19d59b708SYixun Lan/* 29d59b708SYixun Lan * Copyright (c) 2017 Amlogic, Inc. All rights reserved. 39d59b708SYixun Lan * 49d59b708SYixun Lan * SPDX-License-Identifier: (GPL-2.0+ OR MIT) 59d59b708SYixun Lan */ 69d59b708SYixun Lan 79d59b708SYixun Lan#include <dt-bindings/gpio/gpio.h> 89d59b708SYixun Lan#include <dt-bindings/interrupt-controller/irq.h> 99d59b708SYixun Lan#include <dt-bindings/interrupt-controller/arm-gic.h> 1006b7a631SYixun Lan#include <dt-bindings/clock/axg-clkc.h> 119d59b708SYixun Lan 129d59b708SYixun Lan/ { 139d59b708SYixun Lan compatible = "amlogic,meson-axg"; 149d59b708SYixun Lan 159d59b708SYixun Lan interrupt-parent = <&gic>; 169d59b708SYixun Lan #address-cells = <2>; 179d59b708SYixun Lan #size-cells = <2>; 189d59b708SYixun Lan 199d59b708SYixun Lan reserved-memory { 209d59b708SYixun Lan #address-cells = <2>; 219d59b708SYixun Lan #size-cells = <2>; 229d59b708SYixun Lan ranges; 239d59b708SYixun Lan 249d59b708SYixun Lan /* 16 MiB reserved for Hardware ROM Firmware */ 259d59b708SYixun Lan hwrom_reserved: hwrom@0 { 269d59b708SYixun Lan reg = <0x0 0x0 0x0 0x1000000>; 279d59b708SYixun Lan no-map; 289d59b708SYixun Lan }; 299d59b708SYixun Lan 309d59b708SYixun Lan /* Alternate 3 MiB reserved for ARM Trusted Firmware (BL31) */ 31a5494aedSArnd Bergmann secmon_reserved: secmon@5000000 { 329d59b708SYixun Lan reg = <0x0 0x05000000 0x0 0x300000>; 339d59b708SYixun Lan no-map; 349d59b708SYixun Lan }; 359d59b708SYixun Lan }; 369d59b708SYixun Lan 379d59b708SYixun Lan cpus { 389d59b708SYixun Lan #address-cells = <0x2>; 399d59b708SYixun Lan #size-cells = <0x0>; 409d59b708SYixun Lan 419d59b708SYixun Lan cpu0: cpu@0 { 429d59b708SYixun Lan device_type = "cpu"; 439d59b708SYixun Lan compatible = "arm,cortex-a53", "arm,armv8"; 449d59b708SYixun Lan reg = <0x0 0x0>; 459d59b708SYixun Lan enable-method = "psci"; 469d59b708SYixun Lan next-level-cache = <&l2>; 479d59b708SYixun Lan }; 489d59b708SYixun Lan 499d59b708SYixun Lan cpu1: cpu@1 { 509d59b708SYixun Lan device_type = "cpu"; 519d59b708SYixun Lan compatible = "arm,cortex-a53", "arm,armv8"; 529d59b708SYixun Lan reg = <0x0 0x1>; 539d59b708SYixun Lan enable-method = "psci"; 549d59b708SYixun Lan next-level-cache = <&l2>; 559d59b708SYixun Lan }; 569d59b708SYixun Lan 579d59b708SYixun Lan cpu2: cpu@2 { 589d59b708SYixun Lan device_type = "cpu"; 599d59b708SYixun Lan compatible = "arm,cortex-a53", "arm,armv8"; 609d59b708SYixun Lan reg = <0x0 0x2>; 619d59b708SYixun Lan enable-method = "psci"; 629d59b708SYixun Lan next-level-cache = <&l2>; 639d59b708SYixun Lan }; 649d59b708SYixun Lan 659d59b708SYixun Lan cpu3: cpu@3 { 669d59b708SYixun Lan device_type = "cpu"; 679d59b708SYixun Lan compatible = "arm,cortex-a53", "arm,armv8"; 689d59b708SYixun Lan reg = <0x0 0x3>; 699d59b708SYixun Lan enable-method = "psci"; 709d59b708SYixun Lan next-level-cache = <&l2>; 719d59b708SYixun Lan }; 729d59b708SYixun Lan 739d59b708SYixun Lan l2: l2-cache0 { 749d59b708SYixun Lan compatible = "cache"; 759d59b708SYixun Lan }; 769d59b708SYixun Lan }; 779d59b708SYixun Lan 789d59b708SYixun Lan arm-pmu { 799d59b708SYixun Lan compatible = "arm,cortex-a53-pmu"; 809d59b708SYixun Lan interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>, 819d59b708SYixun Lan <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>, 829d59b708SYixun Lan <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>, 839d59b708SYixun Lan <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>; 849d59b708SYixun Lan interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; 859d59b708SYixun Lan }; 869d59b708SYixun Lan 879d59b708SYixun Lan psci { 889d59b708SYixun Lan compatible = "arm,psci-1.0"; 899d59b708SYixun Lan method = "smc"; 909d59b708SYixun Lan }; 919d59b708SYixun Lan 929d59b708SYixun Lan timer { 939d59b708SYixun Lan compatible = "arm,armv8-timer"; 949d59b708SYixun Lan interrupts = <GIC_PPI 13 959d59b708SYixun Lan (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, 969d59b708SYixun Lan <GIC_PPI 14 979d59b708SYixun Lan (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, 989d59b708SYixun Lan <GIC_PPI 11 999d59b708SYixun Lan (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, 1009d59b708SYixun Lan <GIC_PPI 10 1019d59b708SYixun Lan (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>; 1029d59b708SYixun Lan }; 1039d59b708SYixun Lan 1049d59b708SYixun Lan xtal: xtal-clk { 1059d59b708SYixun Lan compatible = "fixed-clock"; 1069d59b708SYixun Lan clock-frequency = <24000000>; 1079d59b708SYixun Lan clock-output-names = "xtal"; 1089d59b708SYixun Lan #clock-cells = <0>; 1099d59b708SYixun Lan }; 1109d59b708SYixun Lan 1119d59b708SYixun Lan soc { 1129d59b708SYixun Lan compatible = "simple-bus"; 1139d59b708SYixun Lan #address-cells = <2>; 1149d59b708SYixun Lan #size-cells = <2>; 1159d59b708SYixun Lan ranges; 1169d59b708SYixun Lan 1170cb6c604SKevin Hilman cbus: bus@ffd00000 { 1189d59b708SYixun Lan compatible = "simple-bus"; 1199d59b708SYixun Lan reg = <0x0 0xffd00000 0x0 0x25000>; 1209d59b708SYixun Lan #address-cells = <2>; 1219d59b708SYixun Lan #size-cells = <2>; 1229d59b708SYixun Lan ranges = <0x0 0x0 0x0 0xffd00000 0x0 0x25000>; 1239d59b708SYixun Lan 1244a81e5ddSJian Hu pwm_ab: pwm@1b000 { 1254a81e5ddSJian Hu compatible = "amlogic,meson-axg-ee-pwm"; 1264a81e5ddSJian Hu reg = <0x0 0x1b000 0x0 0x20>; 1274a81e5ddSJian Hu #pwm-cells = <3>; 1284a81e5ddSJian Hu status = "disabled"; 1294a81e5ddSJian Hu }; 1304a81e5ddSJian Hu 1314a81e5ddSJian Hu pwm_cd: pwm@1a000 { 1324a81e5ddSJian Hu compatible = "amlogic,meson-axg-ee-pwm"; 1334a81e5ddSJian Hu reg = <0x0 0x1a000 0x0 0x20>; 1344a81e5ddSJian Hu #pwm-cells = <3>; 1354a81e5ddSJian Hu status = "disabled"; 1364a81e5ddSJian Hu }; 1374a81e5ddSJian Hu 13843b9f617SYixun Lan reset: reset-controller@1004 { 13943b9f617SYixun Lan compatible = "amlogic,meson-axg-reset"; 14043b9f617SYixun Lan reg = <0x0 0x01004 0x0 0x9c>; 14143b9f617SYixun Lan #reset-cells = <1>; 14243b9f617SYixun Lan }; 14343b9f617SYixun Lan 1448ae4284eSSunny Luo spicc0: spi@13000 { 1458ae4284eSSunny Luo compatible = "amlogic,meson-axg-spicc"; 1468ae4284eSSunny Luo reg = <0x0 0x13000 0x0 0x3c>; 1478ae4284eSSunny Luo interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>; 1488ae4284eSSunny Luo clocks = <&clkc CLKID_SPICC0>; 1498ae4284eSSunny Luo clock-names = "core"; 1508ae4284eSSunny Luo #address-cells = <1>; 1518ae4284eSSunny Luo #size-cells = <0>; 1528ae4284eSSunny Luo status = "disabled"; 1538ae4284eSSunny Luo }; 1548ae4284eSSunny Luo 1558ae4284eSSunny Luo spicc1: spi@15000 { 1568ae4284eSSunny Luo compatible = "amlogic,meson-axg-spicc"; 1578ae4284eSSunny Luo reg = <0x0 0x15000 0x0 0x3c>; 1588ae4284eSSunny Luo interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>; 1598ae4284eSSunny Luo clocks = <&clkc CLKID_SPICC1>; 1608ae4284eSSunny Luo clock-names = "core"; 1618ae4284eSSunny Luo #address-cells = <1>; 1628ae4284eSSunny Luo #size-cells = <0>; 1638ae4284eSSunny Luo status = "disabled"; 1648ae4284eSSunny Luo }; 1658ae4284eSSunny Luo 166dc6f858eSJian Hu i2c0: i2c@1f000 { 167dc6f858eSJian Hu compatible = "amlogic,meson-axg-i2c"; 168dc6f858eSJian Hu status = "disabled"; 169dc6f858eSJian Hu reg = <0x0 0x1f000 0x0 0x20>; 170dc6f858eSJian Hu interrupts = <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>, 171dc6f858eSJian Hu <GIC_SPI 47 IRQ_TYPE_EDGE_RISING>; 172dc6f858eSJian Hu #address-cells = <1>; 173dc6f858eSJian Hu #size-cells = <0>; 174dc6f858eSJian Hu clocks = <&clkc CLKID_I2C>; 175dc6f858eSJian Hu clock-names = "clk_i2c"; 176dc6f858eSJian Hu }; 177dc6f858eSJian Hu 178dc6f858eSJian Hu i2c1: i2c@1e000 { 179dc6f858eSJian Hu compatible = "amlogic,meson-axg-i2c"; 180dc6f858eSJian Hu #address-cells = <1>; 181dc6f858eSJian Hu #size-cells = <0>; 182dc6f858eSJian Hu reg = <0x0 0x1e000 0x0 0x20>; 183dc6f858eSJian Hu status = "disabled"; 184dc6f858eSJian Hu interrupts = <GIC_SPI 214 IRQ_TYPE_EDGE_RISING>, 185dc6f858eSJian Hu <GIC_SPI 48 IRQ_TYPE_EDGE_RISING>; 186dc6f858eSJian Hu clocks = <&clkc CLKID_I2C>; 187dc6f858eSJian Hu clock-names = "clk_i2c"; 188dc6f858eSJian Hu }; 189dc6f858eSJian Hu 190dc6f858eSJian Hu i2c2: i2c@1d000 { 191dc6f858eSJian Hu compatible = "amlogic,meson-axg-i2c"; 192dc6f858eSJian Hu status = "disabled"; 193dc6f858eSJian Hu reg = <0x0 0x1d000 0x0 0x20>; 194dc6f858eSJian Hu interrupts = <GIC_SPI 215 IRQ_TYPE_EDGE_RISING>, 195dc6f858eSJian Hu <GIC_SPI 49 IRQ_TYPE_EDGE_RISING>; 196dc6f858eSJian Hu #address-cells = <1>; 197dc6f858eSJian Hu #size-cells = <0>; 198dc6f858eSJian Hu clocks = <&clkc CLKID_I2C>; 199dc6f858eSJian Hu clock-names = "clk_i2c"; 200dc6f858eSJian Hu }; 201dc6f858eSJian Hu 202dc6f858eSJian Hu i2c3: i2c@1c000 { 203dc6f858eSJian Hu compatible = "amlogic,meson-axg-i2c"; 204dc6f858eSJian Hu status = "disabled"; 205dc6f858eSJian Hu reg = <0x0 0x1c000 0x0 0x20>; 206dc6f858eSJian Hu interrupts = <GIC_SPI 39 IRQ_TYPE_EDGE_RISING>, 207dc6f858eSJian Hu <GIC_SPI 50 IRQ_TYPE_EDGE_RISING>; 208dc6f858eSJian Hu #address-cells = <1>; 209dc6f858eSJian Hu #size-cells = <0>; 210dc6f858eSJian Hu clocks = <&clkc CLKID_I2C>; 211dc6f858eSJian Hu clock-names = "clk_i2c"; 212dc6f858eSJian Hu }; 213dc6f858eSJian Hu 2149d59b708SYixun Lan uart_A: serial@24000 { 21558662130SYixun Lan compatible = "amlogic,meson-gx-uart"; 21677f5cdbdSYixun Lan reg = <0x0 0x24000 0x0 0x18>; 2179d59b708SYixun Lan interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>; 2189d59b708SYixun Lan status = "disabled"; 21958662130SYixun Lan clocks = <&xtal>, <&clkc CLKID_UART0>, <&xtal>; 22058662130SYixun Lan clock-names = "xtal", "pclk", "baud"; 2219d59b708SYixun Lan }; 2229d59b708SYixun Lan 2239d59b708SYixun Lan uart_B: serial@23000 { 22458662130SYixun Lan compatible = "amlogic,meson-gx-uart"; 22577f5cdbdSYixun Lan reg = <0x0 0x23000 0x0 0x18>; 2269d59b708SYixun Lan interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>; 2279d59b708SYixun Lan status = "disabled"; 22858662130SYixun Lan clocks = <&xtal>, <&clkc CLKID_UART1>, <&xtal>; 22958662130SYixun Lan clock-names = "xtal", "pclk", "baud"; 2309d59b708SYixun Lan }; 2319d59b708SYixun Lan }; 2329d59b708SYixun Lan 23329390d27SYixun Lan ethmac: ethernet@ff3f0000 { 23429390d27SYixun Lan compatible = "amlogic,meson-gxbb-dwmac", "snps,dwmac"; 23529390d27SYixun Lan reg = <0x0 0xff3f0000 0x0 0x10000 23629390d27SYixun Lan 0x0 0xff634540 0x0 0x8>; 23729390d27SYixun Lan interrupts = <GIC_SPI 8 IRQ_TYPE_EDGE_RISING>; 23829390d27SYixun Lan interrupt-names = "macirq"; 23929390d27SYixun Lan clocks = <&clkc CLKID_ETH>, 24029390d27SYixun Lan <&clkc CLKID_FCLK_DIV2>, 24129390d27SYixun Lan <&clkc CLKID_MPLL2>; 24229390d27SYixun Lan clock-names = "stmmaceth", "clkin0", "clkin1"; 24329390d27SYixun Lan status = "disabled"; 24429390d27SYixun Lan }; 24529390d27SYixun Lan 2469d59b708SYixun Lan gic: interrupt-controller@ffc01000 { 2479d59b708SYixun Lan compatible = "arm,gic-400"; 2489d59b708SYixun Lan reg = <0x0 0xffc01000 0 0x1000>, 2499d59b708SYixun Lan <0x0 0xffc02000 0 0x2000>, 2509d59b708SYixun Lan <0x0 0xffc04000 0 0x2000>, 2519d59b708SYixun Lan <0x0 0xffc06000 0 0x2000>; 2529d59b708SYixun Lan interrupt-controller; 2539d59b708SYixun Lan interrupts = <GIC_PPI 9 2549d59b708SYixun Lan (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>; 2559d59b708SYixun Lan #interrupt-cells = <3>; 2569d59b708SYixun Lan #address-cells = <0>; 2579d59b708SYixun Lan }; 2589d59b708SYixun Lan 259abfc18f9SQiufang Dai hiubus: bus@ff63c000 { 260abfc18f9SQiufang Dai compatible = "simple-bus"; 261abfc18f9SQiufang Dai reg = <0x0 0xff63c000 0x0 0x1c00>; 262abfc18f9SQiufang Dai #address-cells = <2>; 263abfc18f9SQiufang Dai #size-cells = <2>; 264abfc18f9SQiufang Dai ranges = <0x0 0x0 0x0 0xff63c000 0x0 0x1c00>; 265abfc18f9SQiufang Dai 266abfc18f9SQiufang Dai clkc: clock-controller@0 { 267abfc18f9SQiufang Dai compatible = "amlogic,axg-clkc"; 268abfc18f9SQiufang Dai #clock-cells = <1>; 269abfc18f9SQiufang Dai reg = <0x0 0x0 0x0 0x320>; 270abfc18f9SQiufang Dai }; 271abfc18f9SQiufang Dai }; 272abfc18f9SQiufang Dai 2739d59b708SYixun Lan mailbox: mailbox@ff63dc00 { 2749d59b708SYixun Lan compatible = "amlogic,meson-gx-mhu", "amlogic,meson-gxbb-mhu"; 2759d59b708SYixun Lan reg = <0 0xff63dc00 0 0x400>; 2769d59b708SYixun Lan interrupts = <GIC_SPI 208 IRQ_TYPE_EDGE_RISING>, 2779d59b708SYixun Lan <GIC_SPI 209 IRQ_TYPE_EDGE_RISING>, 2789d59b708SYixun Lan <GIC_SPI 210 IRQ_TYPE_EDGE_RISING>; 2799d59b708SYixun Lan #mbox-cells = <1>; 2809d59b708SYixun Lan }; 2819d59b708SYixun Lan 282de05ded6SXingyu Chen periphs: periphs@ff634000 { 283de05ded6SXingyu Chen compatible = "simple-bus"; 284de05ded6SXingyu Chen reg = <0x0 0xff634000 0x0 0x2000>; 285de05ded6SXingyu Chen #address-cells = <2>; 286de05ded6SXingyu Chen #size-cells = <2>; 287de05ded6SXingyu Chen ranges = <0x0 0x0 0x0 0xff634000 0x0 0x2000>; 288de05ded6SXingyu Chen 289eafd53d3SJerome Brunet hwrng: rng { 290eafd53d3SJerome Brunet compatible = "amlogic,meson-rng"; 291eafd53d3SJerome Brunet reg = <0x0 0x18 0x0 0x4>; 292eafd53d3SJerome Brunet clocks = <&clkc CLKID_RNG0>; 293eafd53d3SJerome Brunet clock-names = "core"; 294eafd53d3SJerome Brunet }; 295eafd53d3SJerome Brunet 296de05ded6SXingyu Chen pinctrl_periphs: pinctrl@480 { 297de05ded6SXingyu Chen compatible = "amlogic,meson-axg-periphs-pinctrl"; 298de05ded6SXingyu Chen #address-cells = <2>; 299de05ded6SXingyu Chen #size-cells = <2>; 300de05ded6SXingyu Chen ranges; 301de05ded6SXingyu Chen 302de05ded6SXingyu Chen gpio: bank@480 { 303de05ded6SXingyu Chen reg = <0x0 0x00480 0x0 0x40>, 304de05ded6SXingyu Chen <0x0 0x004e8 0x0 0x14>, 305de05ded6SXingyu Chen <0x0 0x00520 0x0 0x14>, 306de05ded6SXingyu Chen <0x0 0x00430 0x0 0x3c>; 307de05ded6SXingyu Chen reg-names = "mux", "pull", "pull-enable", "gpio"; 308de05ded6SXingyu Chen gpio-controller; 309de05ded6SXingyu Chen #gpio-cells = <2>; 310de05ded6SXingyu Chen gpio-ranges = <&pinctrl_periphs 0 0 86>; 311de05ded6SXingyu Chen }; 3124a81e5ddSJian Hu 313777fa58dSYixun Lan eth_rmii_x_pins: eth-x-rmii { 314777fa58dSYixun Lan mux { 315777fa58dSYixun Lan groups = "eth_mdio_x", 316777fa58dSYixun Lan "eth_mdc_x", 317777fa58dSYixun Lan "eth_rgmii_rx_clk_x", 318777fa58dSYixun Lan "eth_rx_dv_x", 319777fa58dSYixun Lan "eth_rxd0_x", 320777fa58dSYixun Lan "eth_rxd1_x", 321777fa58dSYixun Lan "eth_txen_x", 322777fa58dSYixun Lan "eth_txd0_x", 323777fa58dSYixun Lan "eth_txd1_x"; 324777fa58dSYixun Lan function = "eth"; 325777fa58dSYixun Lan }; 326777fa58dSYixun Lan }; 327777fa58dSYixun Lan 328777fa58dSYixun Lan eth_rmii_y_pins: eth-y-rmii { 329777fa58dSYixun Lan mux { 330777fa58dSYixun Lan groups = "eth_mdio_y", 331777fa58dSYixun Lan "eth_mdc_y", 332777fa58dSYixun Lan "eth_rgmii_rx_clk_y", 333777fa58dSYixun Lan "eth_rx_dv_y", 334777fa58dSYixun Lan "eth_rxd0_y", 335777fa58dSYixun Lan "eth_rxd1_y", 336777fa58dSYixun Lan "eth_txen_y", 337777fa58dSYixun Lan "eth_txd0_y", 338777fa58dSYixun Lan "eth_txd1_y"; 339777fa58dSYixun Lan function = "eth"; 340777fa58dSYixun Lan }; 341777fa58dSYixun Lan }; 342777fa58dSYixun Lan 34329390d27SYixun Lan eth_rgmii_x_pins: eth-x-rgmii { 34429390d27SYixun Lan mux { 34529390d27SYixun Lan groups = "eth_mdio_x", 34629390d27SYixun Lan "eth_mdc_x", 34729390d27SYixun Lan "eth_rgmii_rx_clk_x", 34829390d27SYixun Lan "eth_rx_dv_x", 34929390d27SYixun Lan "eth_rxd0_x", 35029390d27SYixun Lan "eth_rxd1_x", 35129390d27SYixun Lan "eth_rxd2_rgmii", 35229390d27SYixun Lan "eth_rxd3_rgmii", 35329390d27SYixun Lan "eth_rgmii_tx_clk", 35429390d27SYixun Lan "eth_txen_x", 35529390d27SYixun Lan "eth_txd0_x", 35629390d27SYixun Lan "eth_txd1_x", 35729390d27SYixun Lan "eth_txd2_rgmii", 35829390d27SYixun Lan "eth_txd3_rgmii"; 35929390d27SYixun Lan function = "eth"; 36029390d27SYixun Lan }; 36129390d27SYixun Lan }; 36229390d27SYixun Lan 36329390d27SYixun Lan eth_rgmii_y_pins: eth-y-rgmii { 36429390d27SYixun Lan mux { 36529390d27SYixun Lan groups = "eth_mdio_y", 36629390d27SYixun Lan "eth_mdc_y", 36729390d27SYixun Lan "eth_rgmii_rx_clk_y", 36829390d27SYixun Lan "eth_rx_dv_y", 36929390d27SYixun Lan "eth_rxd0_y", 37029390d27SYixun Lan "eth_rxd1_y", 37129390d27SYixun Lan "eth_rxd2_rgmii", 37229390d27SYixun Lan "eth_rxd3_rgmii", 37329390d27SYixun Lan "eth_rgmii_tx_clk", 37429390d27SYixun Lan "eth_txen_y", 37529390d27SYixun Lan "eth_txd0_y", 37629390d27SYixun Lan "eth_txd1_y", 37729390d27SYixun Lan "eth_txd2_rgmii", 37829390d27SYixun Lan "eth_txd3_rgmii"; 37929390d27SYixun Lan function = "eth"; 38029390d27SYixun Lan }; 38129390d27SYixun Lan }; 38229390d27SYixun Lan 3834a81e5ddSJian Hu pwm_a_a_pins: pwm_a_a { 3844a81e5ddSJian Hu mux { 3854a81e5ddSJian Hu groups = "pwm_a_a"; 3864a81e5ddSJian Hu function = "pwm_a"; 3874a81e5ddSJian Hu }; 3884a81e5ddSJian Hu }; 3894a81e5ddSJian Hu 3904a81e5ddSJian Hu pwm_a_x18_pins: pwm_a_x18 { 3914a81e5ddSJian Hu mux { 3924a81e5ddSJian Hu groups = "pwm_a_x18"; 3934a81e5ddSJian Hu function = "pwm_a"; 3944a81e5ddSJian Hu }; 3954a81e5ddSJian Hu }; 3964a81e5ddSJian Hu 3974a81e5ddSJian Hu pwm_a_x20_pins: pwm_a_x20 { 3984a81e5ddSJian Hu mux { 3994a81e5ddSJian Hu groups = "pwm_a_x20"; 4004a81e5ddSJian Hu function = "pwm_a"; 4014a81e5ddSJian Hu }; 4024a81e5ddSJian Hu }; 4034a81e5ddSJian Hu 4044a81e5ddSJian Hu pwm_a_z_pins: pwm_a_z { 4054a81e5ddSJian Hu mux { 4064a81e5ddSJian Hu groups = "pwm_a_z"; 4074a81e5ddSJian Hu function = "pwm_a"; 4084a81e5ddSJian Hu }; 4094a81e5ddSJian Hu }; 4104a81e5ddSJian Hu 4114a81e5ddSJian Hu pwm_b_a_pins: pwm_b_a { 4124a81e5ddSJian Hu mux { 4134a81e5ddSJian Hu groups = "pwm_b_a"; 4144a81e5ddSJian Hu function = "pwm_b"; 4154a81e5ddSJian Hu }; 4164a81e5ddSJian Hu }; 4174a81e5ddSJian Hu 4184a81e5ddSJian Hu pwm_b_x_pins: pwm_b_x { 4194a81e5ddSJian Hu mux { 4204a81e5ddSJian Hu groups = "pwm_b_x"; 4214a81e5ddSJian Hu function = "pwm_b"; 4224a81e5ddSJian Hu }; 4234a81e5ddSJian Hu }; 4244a81e5ddSJian Hu 4254a81e5ddSJian Hu pwm_b_z_pins: pwm_b_z { 4264a81e5ddSJian Hu mux { 4274a81e5ddSJian Hu groups = "pwm_b_z"; 4284a81e5ddSJian Hu function = "pwm_b"; 4294a81e5ddSJian Hu }; 4304a81e5ddSJian Hu }; 4314a81e5ddSJian Hu 4324a81e5ddSJian Hu pwm_c_a_pins: pwm_c_a { 4334a81e5ddSJian Hu mux { 4344a81e5ddSJian Hu groups = "pwm_c_a"; 4354a81e5ddSJian Hu function = "pwm_c"; 4364a81e5ddSJian Hu }; 4374a81e5ddSJian Hu }; 4384a81e5ddSJian Hu 4394a81e5ddSJian Hu pwm_c_x10_pins: pwm_c_x10 { 4404a81e5ddSJian Hu mux { 4414a81e5ddSJian Hu groups = "pwm_c_x10"; 4424a81e5ddSJian Hu function = "pwm_c"; 4434a81e5ddSJian Hu }; 4444a81e5ddSJian Hu }; 4454a81e5ddSJian Hu 4464a81e5ddSJian Hu pwm_c_x17_pins: pwm_c_x17 { 4474a81e5ddSJian Hu mux { 4484a81e5ddSJian Hu groups = "pwm_c_x17"; 4494a81e5ddSJian Hu function = "pwm_c"; 4504a81e5ddSJian Hu }; 4514a81e5ddSJian Hu }; 4524a81e5ddSJian Hu 4534a81e5ddSJian Hu pwm_d_x11_pins: pwm_d_x11 { 4544a81e5ddSJian Hu mux { 4554a81e5ddSJian Hu groups = "pwm_d_x11"; 4564a81e5ddSJian Hu function = "pwm_d"; 4574a81e5ddSJian Hu }; 4584a81e5ddSJian Hu }; 4594a81e5ddSJian Hu 4604a81e5ddSJian Hu pwm_d_x16_pins: pwm_d_x16 { 4614a81e5ddSJian Hu mux { 4624a81e5ddSJian Hu groups = "pwm_d_x16"; 4634a81e5ddSJian Hu function = "pwm_d"; 4644a81e5ddSJian Hu }; 4654a81e5ddSJian Hu }; 4668ae4284eSSunny Luo 4678ae4284eSSunny Luo spi0_pins: spi0 { 4688ae4284eSSunny Luo mux { 4698ae4284eSSunny Luo groups = "spi0_miso", 4708ae4284eSSunny Luo "spi0_mosi", 4718ae4284eSSunny Luo "spi0_clk"; 4728ae4284eSSunny Luo function = "spi0"; 4738ae4284eSSunny Luo }; 4748ae4284eSSunny Luo }; 4758ae4284eSSunny Luo 4768ae4284eSSunny Luo spi0_ss0_pins: spi0_ss0 { 4778ae4284eSSunny Luo mux { 4788ae4284eSSunny Luo groups = "spi0_ss0"; 4798ae4284eSSunny Luo function = "spi0"; 4808ae4284eSSunny Luo }; 4818ae4284eSSunny Luo }; 4828ae4284eSSunny Luo 4838ae4284eSSunny Luo spi0_ss1_pins: spi0_ss1 { 4848ae4284eSSunny Luo mux { 4858ae4284eSSunny Luo groups = "spi0_ss1"; 4868ae4284eSSunny Luo function = "spi0"; 4878ae4284eSSunny Luo }; 4888ae4284eSSunny Luo }; 4898ae4284eSSunny Luo 4908ae4284eSSunny Luo spi0_ss2_pins: spi0_ss2 { 4918ae4284eSSunny Luo mux { 4928ae4284eSSunny Luo groups = "spi0_ss2"; 4938ae4284eSSunny Luo function = "spi0"; 4948ae4284eSSunny Luo }; 4958ae4284eSSunny Luo }; 4968ae4284eSSunny Luo 4978ae4284eSSunny Luo 4988ae4284eSSunny Luo spi1_a_pins: spi1_a { 4998ae4284eSSunny Luo mux { 5008ae4284eSSunny Luo groups = "spi1_miso_a", 5018ae4284eSSunny Luo "spi1_mosi_a", 5028ae4284eSSunny Luo "spi1_clk_a"; 5038ae4284eSSunny Luo function = "spi1"; 5048ae4284eSSunny Luo }; 5058ae4284eSSunny Luo }; 5068ae4284eSSunny Luo 5078ae4284eSSunny Luo spi1_ss0_a_pins: spi1_ss0_a { 5088ae4284eSSunny Luo mux { 5098ae4284eSSunny Luo groups = "spi1_ss0_a"; 5108ae4284eSSunny Luo function = "spi1"; 5118ae4284eSSunny Luo }; 5128ae4284eSSunny Luo }; 5138ae4284eSSunny Luo 5148ae4284eSSunny Luo spi1_ss1_pins: spi1_ss1 { 5158ae4284eSSunny Luo mux { 5168ae4284eSSunny Luo groups = "spi1_ss1"; 5178ae4284eSSunny Luo function = "spi1"; 5188ae4284eSSunny Luo }; 5198ae4284eSSunny Luo }; 5208ae4284eSSunny Luo 5218ae4284eSSunny Luo spi1_x_pins: spi1_x { 5228ae4284eSSunny Luo mux { 5238ae4284eSSunny Luo groups = "spi1_miso_x", 5248ae4284eSSunny Luo "spi1_mosi_x", 5258ae4284eSSunny Luo "spi1_clk_x"; 5268ae4284eSSunny Luo function = "spi1"; 5278ae4284eSSunny Luo }; 5288ae4284eSSunny Luo }; 5298ae4284eSSunny Luo 5308ae4284eSSunny Luo spi1_ss0_x_pins: spi1_ss0_x { 5318ae4284eSSunny Luo mux { 5328ae4284eSSunny Luo groups = "spi1_ss0_x"; 5338ae4284eSSunny Luo function = "spi1"; 5348ae4284eSSunny Luo }; 5358ae4284eSSunny Luo }; 5368a7669a5SJian Hu 5378a7669a5SJian Hu i2c0_pins: i2c0 { 5388a7669a5SJian Hu mux { 5398a7669a5SJian Hu groups = "i2c0_sck", 5408a7669a5SJian Hu "i2c0_sda"; 5418a7669a5SJian Hu function = "i2c0"; 5428a7669a5SJian Hu }; 5438a7669a5SJian Hu }; 5448a7669a5SJian Hu 5458a7669a5SJian Hu i2c1_z_pins: i2c1_z { 5468a7669a5SJian Hu mux { 5478a7669a5SJian Hu groups = "i2c1_sck_z", 5488a7669a5SJian Hu "i2c1_sda_z"; 5498a7669a5SJian Hu function = "i2c1"; 5508a7669a5SJian Hu }; 5518a7669a5SJian Hu }; 5528a7669a5SJian Hu 5538a7669a5SJian Hu i2c1_x_pins: i2c1_x { 5548a7669a5SJian Hu mux { 5558a7669a5SJian Hu groups = "i2c1_sck_x", 5568a7669a5SJian Hu "i2c1_sda_x"; 5578a7669a5SJian Hu function = "i2c1"; 5588a7669a5SJian Hu }; 5598a7669a5SJian Hu }; 5608a7669a5SJian Hu 5618a7669a5SJian Hu i2c2_x_pins: i2c2_x { 5628a7669a5SJian Hu mux { 5638a7669a5SJian Hu groups = "i2c2_sck_x", 5648a7669a5SJian Hu "i2c2_sda_x"; 5658a7669a5SJian Hu function = "i2c2"; 5668a7669a5SJian Hu }; 5678a7669a5SJian Hu }; 5688a7669a5SJian Hu 5698a7669a5SJian Hu i2c2_a_pins: i2c2_a { 5708a7669a5SJian Hu mux { 5718a7669a5SJian Hu groups = "i2c2_sck_a", 5728a7669a5SJian Hu "i2c2_sda_a"; 5738a7669a5SJian Hu function = "i2c2"; 5748a7669a5SJian Hu }; 5758a7669a5SJian Hu }; 5768a7669a5SJian Hu 5778a7669a5SJian Hu i2c3_a6_pins: i2c3_a6 { 5788a7669a5SJian Hu mux { 5798a7669a5SJian Hu groups = "i2c3_sda_a6", 5808a7669a5SJian Hu "i2c3_sck_a7"; 5818a7669a5SJian Hu function = "i2c3"; 5828a7669a5SJian Hu }; 5838a7669a5SJian Hu }; 5848a7669a5SJian Hu 5858a7669a5SJian Hu i2c3_a12_pins: i2c3_a12 { 5868a7669a5SJian Hu mux { 5878a7669a5SJian Hu groups = "i2c3_sda_a12", 5888a7669a5SJian Hu "i2c3_sck_a13"; 5898a7669a5SJian Hu function = "i2c3"; 5908a7669a5SJian Hu }; 5918a7669a5SJian Hu }; 5928a7669a5SJian Hu 5938a7669a5SJian Hu i2c3_a19_pins: i2c3_a19 { 5948a7669a5SJian Hu mux { 5958a7669a5SJian Hu groups = "i2c3_sda_a19", 5968a7669a5SJian Hu "i2c3_sck_a20"; 5978a7669a5SJian Hu function = "i2c3"; 5988a7669a5SJian Hu }; 5998a7669a5SJian Hu }; 6004eae66a6SYixun Lan 6014eae66a6SYixun Lan uart_a_pins: uart_a { 6024eae66a6SYixun Lan mux { 6034eae66a6SYixun Lan groups = "uart_tx_a", 6044eae66a6SYixun Lan "uart_rx_a"; 6054eae66a6SYixun Lan function = "uart_a"; 6064eae66a6SYixun Lan }; 6074eae66a6SYixun Lan }; 6084eae66a6SYixun Lan 6094eae66a6SYixun Lan uart_a_cts_rts_pins: uart_a_cts_rts { 6104eae66a6SYixun Lan mux { 6114eae66a6SYixun Lan groups = "uart_cts_a", 6124eae66a6SYixun Lan "uart_rts_a"; 6134eae66a6SYixun Lan function = "uart_a"; 6144eae66a6SYixun Lan }; 6154eae66a6SYixun Lan }; 6164eae66a6SYixun Lan 6174eae66a6SYixun Lan uart_b_x_pins: uart_b_x { 6184eae66a6SYixun Lan mux { 6194eae66a6SYixun Lan groups = "uart_tx_b_x", 6204eae66a6SYixun Lan "uart_rx_b_x"; 6214eae66a6SYixun Lan function = "uart_b"; 6224eae66a6SYixun Lan }; 6234eae66a6SYixun Lan }; 6244eae66a6SYixun Lan 6254eae66a6SYixun Lan uart_b_x_cts_rts_pins: uart_b_x_cts_rts { 6264eae66a6SYixun Lan mux { 6274eae66a6SYixun Lan groups = "uart_cts_b_x", 6284eae66a6SYixun Lan "uart_rts_b_x"; 6294eae66a6SYixun Lan function = "uart_b"; 6304eae66a6SYixun Lan }; 6314eae66a6SYixun Lan }; 6324eae66a6SYixun Lan 6334eae66a6SYixun Lan uart_b_z_pins: uart_b_z { 6344eae66a6SYixun Lan mux { 6354eae66a6SYixun Lan groups = "uart_tx_b_z", 6364eae66a6SYixun Lan "uart_rx_b_z"; 6374eae66a6SYixun Lan function = "uart_b"; 6384eae66a6SYixun Lan }; 6394eae66a6SYixun Lan }; 6404eae66a6SYixun Lan 6414eae66a6SYixun Lan uart_b_z_cts_rts_pins: uart_b_z_cts_rts { 6424eae66a6SYixun Lan mux { 6434eae66a6SYixun Lan groups = "uart_cts_b_z", 6444eae66a6SYixun Lan "uart_rts_b_z"; 6454eae66a6SYixun Lan function = "uart_b"; 6464eae66a6SYixun Lan }; 6474eae66a6SYixun Lan }; 6484eae66a6SYixun Lan 6494eae66a6SYixun Lan uart_ao_b_z_pins: uart_ao_b_z { 6504eae66a6SYixun Lan mux { 6514eae66a6SYixun Lan groups = "uart_ao_tx_b_z", 6524eae66a6SYixun Lan "uart_ao_rx_b_z"; 6534eae66a6SYixun Lan function = "uart_ao_b_z"; 6544eae66a6SYixun Lan }; 6554eae66a6SYixun Lan }; 6564eae66a6SYixun Lan 6574eae66a6SYixun Lan uart_ao_b_z_cts_rts_pins: uart_ao_b_z_cts_rts { 6584eae66a6SYixun Lan mux { 6594eae66a6SYixun Lan groups = "uart_ao_cts_b_z", 6604eae66a6SYixun Lan "uart_ao_rts_b_z"; 6614eae66a6SYixun Lan function = "uart_ao_b_z"; 6624eae66a6SYixun Lan }; 6634eae66a6SYixun Lan }; 664de05ded6SXingyu Chen }; 665de05ded6SXingyu Chen }; 666de05ded6SXingyu Chen 6679d59b708SYixun Lan sram: sram@fffc0000 { 6689d59b708SYixun Lan compatible = "amlogic,meson-axg-sram", "mmio-sram"; 6699d59b708SYixun Lan reg = <0x0 0xfffc0000 0x0 0x20000>; 6709d59b708SYixun Lan #address-cells = <1>; 6719d59b708SYixun Lan #size-cells = <1>; 6729d59b708SYixun Lan ranges = <0 0x0 0xfffc0000 0x20000>; 6739d59b708SYixun Lan 6749d59b708SYixun Lan cpu_scp_lpri: scp-shmem@0 { 6759d59b708SYixun Lan compatible = "amlogic,meson-axg-scp-shmem"; 6769d59b708SYixun Lan reg = <0x13000 0x400>; 6779d59b708SYixun Lan }; 6789d59b708SYixun Lan 6799d59b708SYixun Lan cpu_scp_hpri: scp-shmem@200 { 6809d59b708SYixun Lan compatible = "amlogic,meson-axg-scp-shmem"; 6819d59b708SYixun Lan reg = <0x13400 0x400>; 6829d59b708SYixun Lan }; 6839d59b708SYixun Lan }; 6849d59b708SYixun Lan 6850cb6c604SKevin Hilman aobus: bus@ff800000 { 6869d59b708SYixun Lan compatible = "simple-bus"; 6879d59b708SYixun Lan reg = <0x0 0xff800000 0x0 0x100000>; 6889d59b708SYixun Lan #address-cells = <2>; 6899d59b708SYixun Lan #size-cells = <2>; 6909d59b708SYixun Lan ranges = <0x0 0x0 0x0 0xff800000 0x0 0x100000>; 6919d59b708SYixun Lan 692de05ded6SXingyu Chen pinctrl_aobus: pinctrl@14 { 693de05ded6SXingyu Chen compatible = "amlogic,meson-axg-aobus-pinctrl"; 694de05ded6SXingyu Chen #address-cells = <2>; 695de05ded6SXingyu Chen #size-cells = <2>; 696de05ded6SXingyu Chen ranges; 697de05ded6SXingyu Chen 698de05ded6SXingyu Chen gpio_ao: bank@14 { 699de05ded6SXingyu Chen reg = <0x0 0x00014 0x0 0x8>, 700de05ded6SXingyu Chen <0x0 0x0002c 0x0 0x4>, 701de05ded6SXingyu Chen <0x0 0x00024 0x0 0x8>; 702de05ded6SXingyu Chen reg-names = "mux", "pull", "gpio"; 703de05ded6SXingyu Chen gpio-controller; 704de05ded6SXingyu Chen #gpio-cells = <2>; 705de05ded6SXingyu Chen gpio-ranges = <&pinctrl_aobus 0 0 15>; 706de05ded6SXingyu Chen }; 7077bd46a79SYixun Lan 7087bd46a79SYixun Lan remote_input_ao_pins: remote_input_ao { 7097bd46a79SYixun Lan mux { 7107bd46a79SYixun Lan groups = "remote_input_ao"; 7117bd46a79SYixun Lan function = "remote_input_ao"; 7127bd46a79SYixun Lan }; 7137bd46a79SYixun Lan }; 7144eae66a6SYixun Lan 7154eae66a6SYixun Lan uart_ao_a_pins: uart_ao_a { 7164eae66a6SYixun Lan mux { 7174eae66a6SYixun Lan groups = "uart_ao_tx_a", 7184eae66a6SYixun Lan "uart_ao_rx_a"; 7194eae66a6SYixun Lan function = "uart_ao_a"; 7204eae66a6SYixun Lan }; 7214eae66a6SYixun Lan }; 7224eae66a6SYixun Lan 7234eae66a6SYixun Lan uart_ao_a_cts_rts_pins: uart_ao_a_cts_rts { 7244eae66a6SYixun Lan mux { 7254eae66a6SYixun Lan groups = "uart_ao_cts_a", 7264eae66a6SYixun Lan "uart_ao_rts_a"; 7274eae66a6SYixun Lan function = "uart_ao_a"; 7284eae66a6SYixun Lan }; 7294eae66a6SYixun Lan }; 7304eae66a6SYixun Lan 7314eae66a6SYixun Lan uart_ao_b_pins: uart_ao_b { 7324eae66a6SYixun Lan mux { 7334eae66a6SYixun Lan groups = "uart_ao_tx_b", 7344eae66a6SYixun Lan "uart_ao_rx_b"; 7354eae66a6SYixun Lan function = "uart_ao_b"; 7364eae66a6SYixun Lan }; 7374eae66a6SYixun Lan }; 7384eae66a6SYixun Lan 7394eae66a6SYixun Lan uart_ao_b_cts_rts_pins: uart_ao_b_cts_rts { 7404eae66a6SYixun Lan mux { 7414eae66a6SYixun Lan groups = "uart_ao_cts_b", 7424eae66a6SYixun Lan "uart_ao_rts_b"; 7434eae66a6SYixun Lan function = "uart_ao_b"; 7444eae66a6SYixun Lan }; 7454eae66a6SYixun Lan }; 746de05ded6SXingyu Chen }; 747de05ded6SXingyu Chen 748a04c18cbSJerome Brunet sec_AO: ao-secure@140 { 749a04c18cbSJerome Brunet compatible = "amlogic,meson-gx-ao-secure", "syscon"; 750a04c18cbSJerome Brunet reg = <0x0 0x140 0x0 0x140>; 751a04c18cbSJerome Brunet amlogic,has-chip-id; 752a04c18cbSJerome Brunet }; 753a04c18cbSJerome Brunet 7544a81e5ddSJian Hu pwm_AO_ab: pwm@7000 { 7554a81e5ddSJian Hu compatible = "amlogic,meson-axg-ao-pwm"; 7564a81e5ddSJian Hu reg = <0x0 0x07000 0x0 0x20>; 7574a81e5ddSJian Hu #pwm-cells = <3>; 7584a81e5ddSJian Hu status = "disabled"; 7594a81e5ddSJian Hu }; 7604a81e5ddSJian Hu 7614a81e5ddSJian Hu pwm_AO_cd: pwm@2000 { 762b4ff05caSJerome Brunet compatible = "amlogic,meson-axg-ao-pwm"; 7634a81e5ddSJian Hu reg = <0x0 0x02000 0x0 0x20>; 7644a81e5ddSJian Hu #pwm-cells = <3>; 7654a81e5ddSJian Hu status = "disabled"; 7664a81e5ddSJian Hu }; 7674a81e5ddSJian Hu 768dc6f858eSJian Hu i2c_AO: i2c@5000 { 769dc6f858eSJian Hu compatible = "amlogic,meson-axg-i2c"; 770dc6f858eSJian Hu status = "disabled"; 771dc6f858eSJian Hu reg = <0x0 0x05000 0x0 0x20>; 772dc6f858eSJian Hu interrupts = <GIC_SPI 195 IRQ_TYPE_EDGE_RISING>; 773dc6f858eSJian Hu #address-cells = <1>; 774dc6f858eSJian Hu #size-cells = <0>; 775dc6f858eSJian Hu clocks = <&clkc CLKID_I2C>; 776dc6f858eSJian Hu clock-names = "clk_i2c"; 777dc6f858eSJian Hu }; 778dc6f858eSJian Hu 7799d59b708SYixun Lan uart_AO: serial@3000 { 7809d59b708SYixun Lan compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart"; 7819d59b708SYixun Lan reg = <0x0 0x3000 0x0 0x18>; 7829d59b708SYixun Lan interrupts = <GIC_SPI 193 IRQ_TYPE_EDGE_RISING>; 78306b7a631SYixun Lan clocks = <&xtal>, <&clkc CLKID_CLK81>, <&xtal>; 7849d59b708SYixun Lan clock-names = "xtal", "pclk", "baud"; 7859d59b708SYixun Lan status = "disabled"; 7869d59b708SYixun Lan }; 7879d59b708SYixun Lan 7889d59b708SYixun Lan uart_AO_B: serial@4000 { 7899d59b708SYixun Lan compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart"; 7909d59b708SYixun Lan reg = <0x0 0x4000 0x0 0x18>; 7919d59b708SYixun Lan interrupts = <GIC_SPI 197 IRQ_TYPE_EDGE_RISING>; 79206b7a631SYixun Lan clocks = <&xtal>, <&clkc CLKID_CLK81>, <&xtal>; 7939d59b708SYixun Lan clock-names = "xtal", "pclk", "baud"; 7949d59b708SYixun Lan status = "disabled"; 7959d59b708SYixun Lan }; 7967bd46a79SYixun Lan 7977bd46a79SYixun Lan ir: ir@8000 { 7987bd46a79SYixun Lan compatible = "amlogic,meson-gxbb-ir"; 7997bd46a79SYixun Lan reg = <0x0 0x8000 0x0 0x20>; 8007bd46a79SYixun Lan interrupts = <GIC_SPI 196 IRQ_TYPE_EDGE_RISING>; 8017bd46a79SYixun Lan status = "disabled"; 8027bd46a79SYixun Lan }; 8039d59b708SYixun Lan }; 8049d59b708SYixun Lan }; 8059d59b708SYixun Lan}; 806