/openbmc/u-boot/arch/arm/dts/ |
H A D | ast2400.dtsi | 3 * https://raw.githubusercontent.com/torvalds/linux/34ea5c9d/arch/arm/boot/dts/aspeed-g4.dtsi 9 compatible = "aspeed,ast2400"; 10 #address-cells = <1>; 11 #size-cells = <1>; 12 interrupt-parent = <&vic>; 38 #address-cells = <1>; 39 #size-cells = <0>; 42 compatible = "arm,arm926ej-s"; 54 compatible = "simple-bus"; 55 #address-cells = <1>; [all …]
|
H A D | ast2400-u-boot.dtsi | 1 #include <dt-bindings/clock/ast2400-clock.h> 2 #include <dt-bindings/reset/ast2400-reset.h> 4 #include "ast2400.dtsi" 7 scu: clock-controller@1e6e2000 { label 8 compatible = "aspeed,ast2400-scu"; 10 u-boot,dm-pre-reloc; 11 #clock-cells = <1>; 12 #reset-cells = <1>; 15 rst: reset-controller { 16 u-boot,dm-pre-reloc; [all …]
|
H A D | ast2500.dtsi | 3 * https://raw.githubusercontent.com/torvalds/linux/34ea5c9d/arch/arm/boot/dts/aspeed-g5.dtsi 10 #address-cells = <1>; 11 #size-cells = <1>; 12 interrupt-parent = <&vic>; 38 #address-cells = <1>; 39 #size-cells = <0>; 42 compatible = "arm,arm1176jzf-s"; 54 compatible = "simple-bus"; 55 #address-cells = <1>; 56 #size-cells = <1>; [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/misc/ |
H A D | aspeed-p2a-ctrl.txt | 2 Device tree bindings for Aspeed AST2400/AST2500 PCI-to-AHB Bridge Control Driver 14 - compatible: must be one of: 15 - "aspeed,ast2400-p2a-ctrl" 16 - "aspeed,ast2500-p2a-ctrl" 21 - reg: A hint for the memory regions associated with the P2A controller 22 - memory-region: A phandle to a reserved_memory region to be used for the PCI 25 The p2a-control node should be the child of a syscon node with the required 28 - compatible : Should be one of the following: 29 "aspeed,ast2400-scu", "syscon", "simple-mfd" 30 "aspeed,ast2500-scu", "syscon", "simple-mfd" [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/mfd/ |
H A D | aspeed,ast2x00-scu.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/mfd/aspeed,ast2x00-scu.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 14 - Joel Stanley <joel@jms.id.au> 15 - Andrew Jeffery <andrew@aj.id.au> 20 - enum: 21 - aspeed,ast2400-scu 22 - aspeed,ast2500-scu 23 - aspeed,ast2600-scu [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | aspeed,ast2400-pinctrl.yaml | 1 # SPDX-License-Identifier: GPL-2.0-or-later 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/aspeed,ast2400-pinctrl.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: ASPEED AST2400 Pin Controller 10 - Andrew Jeffery <andrew@aj.id.au> 16 - compatible: Should be one of the following: 17 "aspeed,ast2400-scu", "syscon", "simple-mfd" 24 const: aspeed,ast2400-pinctrl 29 $ref: pinmux-node.yaml# [all …]
|
/openbmc/u-boot/drivers/clk/aspeed/ |
H A D | clk_ast2400.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include <clk-uclass.h> 12 #include <dt-bindings/clock/ast2400-clock.h> 13 #include <dt-bindings/reset/ast2400-reset.h> 19 * For H-PLL and M-PLL the formula is 21 * M - Numerator 22 * N - Denumerator 23 * P - Post Divider 26 * D-PLL and D2-PLL have extra divider (OD + 1), which is not 37 extern u32 ast2400_get_clkin(struct ast2400_scu *scu) in ast2400_get_clkin() argument [all …]
|
/openbmc/linux/drivers/soc/aspeed/ |
H A D | aspeed-lpc-ctrl.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 17 #include <linux/aspeed-lpc-ctrl.h> 19 #define DEVICE_NAME "aspeed-lpc-ctrl" 40 struct regmap *scu; member 45 return container_of(file->private_data, struct aspeed_lpc_ctrl, in file_aspeed_lpc_ctrl() 52 unsigned long vsize = vma->vm_end - vma->vm_start; in aspeed_lpc_ctrl_mmap() 53 pgprot_t prot = vma->vm_page_prot; in aspeed_lpc_ctrl_mmap() 55 if (vma->vm_pgoff + vma_pages(vma) > lpc_ctrl->mem_size >> PAGE_SHIFT) in aspeed_lpc_ctrl_mmap() 56 return -EINVAL; in aspeed_lpc_ctrl_mmap() 58 /* ast2400/2500 AHB accesses are not cache coherent */ in aspeed_lpc_ctrl_mmap() [all …]
|
/openbmc/u-boot/drivers/reset/aspeed/ |
H A D | reset-ast2400.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include <reset-uclass.h> 15 struct ast2400_scu *scu; member 20 struct ast2400_reset_priv *priv = dev_get_priv(reset_ctl->dev); in ast2400_reset_deassert() 21 struct ast2400_scu *scu = priv->scu; in ast2400_reset_deassert() local 24 debug("ast2400_reset_deassert reset_ctl->id %ld \n", reset_ctl->id); in ast2400_reset_deassert() 25 clrbits_le32(&scu->sysreset_ctrl1 , BIT(reset_ctl->id)); in ast2400_reset_deassert() 32 struct ast2400_reset_priv *priv = dev_get_priv(reset_ctl->dev); in ast2400_reset_assert() 33 struct ast2400_scu *scu = priv->scu; in ast2400_reset_assert() local 38 debug("ast2400_reset_assert reset_ctl->id %ld \n", reset_ctl->id); in ast2400_reset_assert() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/spi/ |
H A D | aspeed,ast2600-fmc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/spi/aspeed,ast2600-fmc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com> 11 - Cédric Le Goater <clg@kaod.org> 15 SPI) of the AST2400, AST2500 and AST2600 SOCs. 18 - $ref: spi-controller.yaml# 23 - aspeed,ast2600-fmc 24 - aspeed,ast2600-spi [all …]
|
/openbmc/qemu/include/hw/timer/ |
H A D | aspeed_timer.h | 2 * ASPEED AST2400 Timer 20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 31 #define TYPE_ASPEED_2400_TIMER TYPE_ASPEED_TIMER "-ast2400" 32 #define TYPE_ASPEED_2500_TIMER TYPE_ASPEED_TIMER "-ast2500" 33 #define TYPE_ASPEED_2600_TIMER TYPE_ASPEED_TIMER "-ast2600" 34 #define TYPE_ASPEED_1030_TIMER TYPE_ASPEED_TIMER "-ast1030" 67 AspeedSCUState *scu; member
|
/openbmc/linux/drivers/irqchip/ |
H A D | irq-aspeed-scu-ic.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Aspeed AST24XX, AST25XX, and AST26XX SCU Interrupt Controller 42 struct regmap *scu; member 55 unsigned int mask = scu_ic->irq_enable << ASPEED_SCU_IC_STATUS_SHIFT; in aspeed_scu_ic_irq_handler() 60 * The SCU IC has just one register to control its operation and read in aspeed_scu_ic_irq_handler() 69 regmap_read(scu_ic->scu, scu_ic->reg, &sts); in aspeed_scu_ic_irq_handler() 70 enabled = sts & scu_ic->irq_enable; in aspeed_scu_ic_irq_handler() 73 bit = scu_ic->irq_shift; in aspeed_scu_ic_irq_handler() 74 max = scu_ic->num_irqs + bit; in aspeed_scu_ic_irq_handler() 77 generic_handle_domain_irq(scu_ic->irq_domain, in aspeed_scu_ic_irq_handler() [all …]
|
/openbmc/qemu/hw/arm/ |
H A D | aspeed_ast2400.c | 10 * the COPYING file in the top-level directory. 18 #include "hw/char/serial-mm.h" 20 #include "qemu/error-report.h" 24 #include "target/arm/cpu-qom.h" 148 return qdev_get_gpio_in(DEVICE(&a->vic), sc->irqmap[dev]); in aspeed_soc_ast2400_get_irq() 160 if (sscanf(sc->name, "%7s", socname) != 1) { in aspeed_ast2400_soc_init() 164 for (i = 0; i < sc->num_cpus; i++) { in aspeed_ast2400_soc_init() 165 object_initialize_child(obj, "cpu[*]", &a->cpu[i], in aspeed_ast2400_soc_init() 169 snprintf(typename, sizeof(typename), "aspeed.scu-%s", socname); in aspeed_ast2400_soc_init() 170 object_initialize_child(obj, "scu", &s->scu, typename); in aspeed_ast2400_soc_init() [all …]
|
/openbmc/qemu/include/hw/watchdog/ |
H A D | wdt_aspeed.h | 4 * Copyright (C) 2016-2017 IBM Corp. 7 * COPYING file in the top-level directory. 19 #define TYPE_ASPEED_2400_WDT TYPE_ASPEED_WDT "-ast2400" 20 #define TYPE_ASPEED_2500_WDT TYPE_ASPEED_WDT "-ast2500" 21 #define TYPE_ASPEED_2600_WDT TYPE_ASPEED_WDT "-ast2600" 22 #define TYPE_ASPEED_2700_WDT TYPE_ASPEED_WDT "-ast2700" 23 #define TYPE_ASPEED_1030_WDT TYPE_ASPEED_WDT "-ast1030" 37 AspeedSCUState *scu; member
|
/openbmc/linux/drivers/iio/adc/ |
H A D | aspeed_adc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Aspeed AST2400/2500/2600 ADC 9 * Ast2400/Ast2500: 16 #include <linux/clk-provider.h> 179 struct regmap *scu; in aspeed_adc_set_trim_data() local 185 dev_warn(data->dev, "Couldn't find syscon node\n"); in aspeed_adc_set_trim_data() 186 return -EOPNOTSUPP; in aspeed_adc_set_trim_data() 188 scu = syscon_node_to_regmap(syscon); in aspeed_adc_set_trim_data() 190 if (IS_ERR(scu)) { in aspeed_adc_set_trim_data() 191 dev_warn(data->dev, "Failed to get syscon regmap\n"); in aspeed_adc_set_trim_data() [all …]
|
/openbmc/linux/drivers/gpu/drm/aspeed/ |
H A D | aspeed_gfx_drv.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 #include <linux/dma-mapping.h> 61 u32 dac_reg; /* DAC register in SCU */ 63 u32 vga_scratch_reg; /* VGA scratch register in SCU */ 93 { .compatible = "aspeed,ast2400-gfx", .data = &ast2400_config }, 94 { .compatible = "aspeed,ast2500-gfx", .data = &ast2500_config }, 95 { .compatible = "aspeed,ast2600-gfx", .data = &ast2600_config }, 114 drm->mode_config.min_width = 0; in aspeed_gfx_setup_mode_config() 115 drm->mode_config.min_height = 0; in aspeed_gfx_setup_mode_config() 116 drm->mode_config.max_width = 800; in aspeed_gfx_setup_mode_config() [all …]
|
/openbmc/linux/drivers/clk/ |
H A D | clk-aspeed.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 #define pr_fmt(fmt) "clk-aspeed: " fmt 13 #include <dt-bindings/clock/aspeed-clock.h> 15 #include "clk-aspeed.h" 49 [ASPEED_CLK_GATE_ECLK] = { 0, 6, "eclk-gate", "eclk", 0 }, /* Video Engine */ 50 [ASPEED_CLK_GATE_GCLK] = { 1, 7, "gclk-gate", NULL, 0 }, /* 2D engine */ 51 [ASPEED_CLK_GATE_MCLK] = { 2, -1, "mclk-gate", "mpll", CLK_IS_CRITICAL }, /* SDRAM */ 52 [ASPEED_CLK_GATE_VCLK] = { 3, -1, "vclk-gate", NULL, 0 }, /* Video Capture */ 53 [ASPEED_CLK_GATE_BCLK] = { 4, 8, "bclk-gate", "bclk", CLK_IS_CRITICAL }, /* PCIe/PCI */ 54 [ASPEED_CLK_GATE_DCLK] = { 5, -1, "dclk-gate", NULL, CLK_IS_CRITICAL }, /* DAC */ [all …]
|
/openbmc/qemu/include/hw/misc/ |
H A D | aspeed_scu.h | 9 * the COPYING file in the top-level directory. 17 #define TYPE_ASPEED_SCU "aspeed.scu" 19 #define TYPE_ASPEED_2400_SCU TYPE_ASPEED_SCU "-ast2400" 20 #define TYPE_ASPEED_2500_SCU TYPE_ASPEED_SCU "-ast2500" 21 #define TYPE_ASPEED_2600_SCU TYPE_ASPEED_SCU "-ast2600" 22 #define TYPE_ASPEED_2700_SCU TYPE_ASPEED_SCU "-ast2700" 23 #define TYPE_ASPEED_2700_SCUIO TYPE_ASPEED_SCU "io" "-ast2700" 24 #define TYPE_ASPEED_1030_SCU TYPE_ASPEED_SCU "-ast1030" 84 * arch/arm/mach-aspeed/include/mach/regs-scu.h 86 * Copyright (C) 2012-2020 ASPEED Technology Inc. [all …]
|
/openbmc/linux/drivers/fsi/ |
H A D | fsi-master-ast-cf.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * A FSI master controller, using a simple GPIO bit-banging interface 25 #include "fsi-master.h" 26 #include "cf-fsi-fw.h" 28 #define FW_FILE_NAME "cf-fsi-fw.bin" 30 /* Common SCU based coprocessor control registers */ 90 struct regmap *scu; member 132 msg->msg <<= bits; in msg_push_bits() 133 msg->msg |= data & ((1ull << bits) - 1); in msg_push_bits() 134 msg->bits += bits; in msg_push_bits() [all …]
|
/openbmc/linux/arch/arm/boot/dts/aspeed/ |
H A D | aspeed-g4.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ 2 #include <dt-bindings/clock/aspeed-clock.h> 6 compatible = "aspeed,ast2400"; 7 #address-cells = <1>; 8 #size-cells = <1>; 9 interrupt-parent = <&vic>; 35 #address-cells = <1>; 36 #size-cells = <0>; 39 compatible = "arm,arm926ej-s"; 51 compatible = "simple-bus"; [all …]
|
/openbmc/qemu/docs/system/arm/ |
H A D | aspeed.rst | 1 …-evb``, ``ast2600-evb``, ``ast2700-evb``, ``bletchley-bmc``, ``fuji-bmc``, ``fby35-bmc``, ``fp5280… 6 Aspeed SoC : the AST2400 integrating an ARM926EJ-S CPU (400MHz), the 8 with dual cores ARM Cortex-A7 CPUs (1.2GHz) and more recently the AST2700 9 with quad cores ARM Cortex-A35 64 bits CPUs (1.6GHz) 14 AST2400 SoC based machines : 16 - ``palmetto-bmc`` OpenPOWER Palmetto POWER8 BMC 17 - ``quanta-q71l-bmc`` OpenBMC Quanta BMC 18 - ``supermicrox11-bmc`` Supermicro X11 BMC (ARM926EJ-S) 19 - ``supermicrox11spi-bmc`` Supermicro X11 SPI BMC (ARM1176) 23 - ``ast2500-evb`` Aspeed AST2500 Evaluation board [all …]
|
/openbmc/linux/drivers/pinctrl/aspeed/ |
H A D | pinctrl-aspeed.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 12 #include "pinctrl-aspeed.h" 18 return pdata->pinmux.ngroups; in aspeed_pinctrl_get_groups_count() 26 return pdata->pinmux.groups[group].name; in aspeed_pinctrl_get_group_name() 35 *pins = &pdata->pinmux.groups[group].pins[0]; in aspeed_pinctrl_get_group_pins() 36 *npins = pdata->pinmux.groups[group].npins; in aspeed_pinctrl_get_group_pins() 44 seq_printf(s, " %s", dev_name(pctldev->dev)); in aspeed_pinctrl_pin_dbg_show() 51 return pdata->pinmux.nfunctions; in aspeed_pinmux_get_fn_count() 59 return pdata->pinmux.functions[function].name; in aspeed_pinmux_get_fn_name() 69 *groups = pdata->pinmux.functions[function].groups; in aspeed_pinmux_get_fn_groups() [all …]
|
/openbmc/linux/drivers/gpu/drm/ast/ |
H A D | ast_main.c | 14 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 70 struct drm_device *dev = &ast->base; in ast_enable_mmio() 74 return devm_add_action_or_reset(dev->dev, ast_enable_mmio_release, ast); in ast_enable_mmio() 84 struct drm_device *dev = &ast->base; in ast_device_config_init() 85 struct pci_dev *pdev = to_pci_dev(dev->dev); in ast_device_config_init() 86 struct device_node *np = dev->dev->of_node; in ast_device_config_init() 92 * Find configuration mode and read SCU revision in ast_device_config_init() 95 ast->config_mode = ast_use_defaults; in ast_device_config_init() 97 /* Check if we have device-tree properties */ in ast_device_config_init() 98 if (np && !of_property_read_u32(np, "aspeed,scu-revision-id", &data)) { in ast_device_config_init() [all …]
|
/openbmc/u-boot/drivers/i2c/ |
H A D | ast_i2c.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (C) 2012-2020 ASPEED Technology Inc. 50 scl_low = (divider_ratio >> 1) - 1; in get_clk_reg_val() 51 scl_high = divider_ratio - scl_low - 2; in get_clk_reg_val() 64 writel(~0, &priv->regs->isr); in ast_i2c_clear_interrupts() 72 writel(0, &priv->regs->fcr); in ast_i2c_init_bus() 73 /* Enable Master Mode. Assuming single-master */ in ast_i2c_init_bus() 77 &priv->regs->fcr); in ast_i2c_init_bus() 84 | I2CD_INTR_ABNORMAL, &priv->regs->icr); in ast_i2c_init_bus() 92 priv->regs = devfdt_get_addr_ptr(dev); in ast_i2c_ofdata_to_platdata() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/serial/ |
H A D | 8250.yaml | 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - devicetree@vger.kernel.org 13 - $ref: serial.yaml# 14 - $ref: /schemas/memory-controllers/mc-peripheral-props.yaml# 15 - if: 17 - required: 18 - aspeed,lpc-io-reg 19 - required: 20 - aspeed,lpc-interrupts [all …]
|