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
1669d59b708SYixun Lan			uart_A: serial@24000 {
1679d59b708SYixun Lan				compatible = "amlogic,meson-gx-uart", "amlogic,meson-uart";
16877f5cdbdSYixun Lan				reg = <0x0 0x24000 0x0 0x18>;
1699d59b708SYixun Lan				interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>;
1709d59b708SYixun Lan				status = "disabled";
1719d59b708SYixun Lan			};
1729d59b708SYixun Lan
1739d59b708SYixun Lan			uart_B: serial@23000 {
1749d59b708SYixun Lan				compatible = "amlogic,meson-gx-uart", "amlogic,meson-uart";
17577f5cdbdSYixun Lan				reg = <0x0 0x23000 0x0 0x18>;
1769d59b708SYixun Lan				interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>;
1779d59b708SYixun Lan				status = "disabled";
1789d59b708SYixun Lan			};
1799d59b708SYixun Lan		};
1809d59b708SYixun Lan
18129390d27SYixun Lan		ethmac: ethernet@ff3f0000 {
18229390d27SYixun Lan			compatible = "amlogic,meson-gxbb-dwmac", "snps,dwmac";
18329390d27SYixun Lan			reg = <0x0 0xff3f0000 0x0 0x10000
18429390d27SYixun Lan				0x0 0xff634540 0x0 0x8>;
18529390d27SYixun Lan			interrupts = <GIC_SPI 8 IRQ_TYPE_EDGE_RISING>;
18629390d27SYixun Lan			interrupt-names = "macirq";
18729390d27SYixun Lan			clocks = <&clkc CLKID_ETH>,
18829390d27SYixun Lan				 <&clkc CLKID_FCLK_DIV2>,
18929390d27SYixun Lan				 <&clkc CLKID_MPLL2>;
19029390d27SYixun Lan			clock-names = "stmmaceth", "clkin0", "clkin1";
19129390d27SYixun Lan			status = "disabled";
19229390d27SYixun Lan		};
19329390d27SYixun Lan
1949d59b708SYixun Lan		gic: interrupt-controller@ffc01000 {
1959d59b708SYixun Lan			compatible = "arm,gic-400";
1969d59b708SYixun Lan			reg = <0x0 0xffc01000 0 0x1000>,
1979d59b708SYixun Lan			      <0x0 0xffc02000 0 0x2000>,
1989d59b708SYixun Lan			      <0x0 0xffc04000 0 0x2000>,
1999d59b708SYixun Lan			      <0x0 0xffc06000 0 0x2000>;
2009d59b708SYixun Lan			interrupt-controller;
2019d59b708SYixun Lan			interrupts = <GIC_PPI 9
2029d59b708SYixun Lan				(GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
2039d59b708SYixun Lan			#interrupt-cells = <3>;
2049d59b708SYixun Lan			#address-cells = <0>;
2059d59b708SYixun Lan		};
2069d59b708SYixun Lan
207abfc18f9SQiufang Dai		hiubus: bus@ff63c000 {
208abfc18f9SQiufang Dai			compatible = "simple-bus";
209abfc18f9SQiufang Dai			reg = <0x0 0xff63c000 0x0 0x1c00>;
210abfc18f9SQiufang Dai			#address-cells = <2>;
211abfc18f9SQiufang Dai			#size-cells = <2>;
212abfc18f9SQiufang Dai			ranges = <0x0 0x0 0x0 0xff63c000 0x0 0x1c00>;
213abfc18f9SQiufang Dai
214abfc18f9SQiufang Dai			clkc: clock-controller@0 {
215abfc18f9SQiufang Dai				compatible = "amlogic,axg-clkc";
216abfc18f9SQiufang Dai				#clock-cells = <1>;
217abfc18f9SQiufang Dai				reg = <0x0 0x0 0x0 0x320>;
218abfc18f9SQiufang Dai			};
219abfc18f9SQiufang Dai		};
220abfc18f9SQiufang Dai
2219d59b708SYixun Lan		mailbox: mailbox@ff63dc00 {
2229d59b708SYixun Lan			compatible = "amlogic,meson-gx-mhu", "amlogic,meson-gxbb-mhu";
2239d59b708SYixun Lan			reg = <0 0xff63dc00 0 0x400>;
2249d59b708SYixun Lan			interrupts = <GIC_SPI 208 IRQ_TYPE_EDGE_RISING>,
2259d59b708SYixun Lan				     <GIC_SPI 209 IRQ_TYPE_EDGE_RISING>,
2269d59b708SYixun Lan				     <GIC_SPI 210 IRQ_TYPE_EDGE_RISING>;
2279d59b708SYixun Lan			#mbox-cells = <1>;
2289d59b708SYixun Lan		};
2299d59b708SYixun Lan
230de05ded6SXingyu Chen		periphs: periphs@ff634000 {
231de05ded6SXingyu Chen			compatible = "simple-bus";
232de05ded6SXingyu Chen			reg = <0x0 0xff634000 0x0 0x2000>;
233de05ded6SXingyu Chen			#address-cells = <2>;
234de05ded6SXingyu Chen			#size-cells = <2>;
235de05ded6SXingyu Chen			ranges = <0x0 0x0 0x0 0xff634000 0x0 0x2000>;
236de05ded6SXingyu Chen
237eafd53d3SJerome Brunet			hwrng: rng {
238eafd53d3SJerome Brunet				compatible = "amlogic,meson-rng";
239eafd53d3SJerome Brunet				reg = <0x0 0x18 0x0 0x4>;
240eafd53d3SJerome Brunet				clocks = <&clkc CLKID_RNG0>;
241eafd53d3SJerome Brunet				clock-names = "core";
242eafd53d3SJerome Brunet			};
243eafd53d3SJerome Brunet
244de05ded6SXingyu Chen			pinctrl_periphs: pinctrl@480 {
245de05ded6SXingyu Chen				compatible = "amlogic,meson-axg-periphs-pinctrl";
246de05ded6SXingyu Chen				#address-cells = <2>;
247de05ded6SXingyu Chen				#size-cells = <2>;
248de05ded6SXingyu Chen				ranges;
249de05ded6SXingyu Chen
250de05ded6SXingyu Chen				gpio: bank@480 {
251de05ded6SXingyu Chen					reg = <0x0 0x00480 0x0 0x40>,
252de05ded6SXingyu Chen						<0x0 0x004e8 0x0 0x14>,
253de05ded6SXingyu Chen						<0x0 0x00520 0x0 0x14>,
254de05ded6SXingyu Chen						<0x0 0x00430 0x0 0x3c>;
255de05ded6SXingyu Chen					reg-names = "mux", "pull", "pull-enable", "gpio";
256de05ded6SXingyu Chen					gpio-controller;
257de05ded6SXingyu Chen					#gpio-cells = <2>;
258de05ded6SXingyu Chen					gpio-ranges = <&pinctrl_periphs 0 0 86>;
259de05ded6SXingyu Chen				};
2604a81e5ddSJian Hu
26129390d27SYixun Lan				eth_rgmii_x_pins: eth-x-rgmii {
26229390d27SYixun Lan					mux {
26329390d27SYixun Lan						groups = "eth_mdio_x",
26429390d27SYixun Lan						       "eth_mdc_x",
26529390d27SYixun Lan						       "eth_rgmii_rx_clk_x",
26629390d27SYixun Lan						       "eth_rx_dv_x",
26729390d27SYixun Lan						       "eth_rxd0_x",
26829390d27SYixun Lan						       "eth_rxd1_x",
26929390d27SYixun Lan						       "eth_rxd2_rgmii",
27029390d27SYixun Lan						       "eth_rxd3_rgmii",
27129390d27SYixun Lan						       "eth_rgmii_tx_clk",
27229390d27SYixun Lan						       "eth_txen_x",
27329390d27SYixun Lan						       "eth_txd0_x",
27429390d27SYixun Lan						       "eth_txd1_x",
27529390d27SYixun Lan						       "eth_txd2_rgmii",
27629390d27SYixun Lan						       "eth_txd3_rgmii";
27729390d27SYixun Lan						function = "eth";
27829390d27SYixun Lan					};
27929390d27SYixun Lan				};
28029390d27SYixun Lan
28129390d27SYixun Lan				eth_rgmii_y_pins: eth-y-rgmii {
28229390d27SYixun Lan					mux {
28329390d27SYixun Lan						groups = "eth_mdio_y",
28429390d27SYixun Lan						       "eth_mdc_y",
28529390d27SYixun Lan						       "eth_rgmii_rx_clk_y",
28629390d27SYixun Lan						       "eth_rx_dv_y",
28729390d27SYixun Lan						       "eth_rxd0_y",
28829390d27SYixun Lan						       "eth_rxd1_y",
28929390d27SYixun Lan						       "eth_rxd2_rgmii",
29029390d27SYixun Lan						       "eth_rxd3_rgmii",
29129390d27SYixun Lan						       "eth_rgmii_tx_clk",
29229390d27SYixun Lan						       "eth_txen_y",
29329390d27SYixun Lan						       "eth_txd0_y",
29429390d27SYixun Lan						       "eth_txd1_y",
29529390d27SYixun Lan						       "eth_txd2_rgmii",
29629390d27SYixun Lan						       "eth_txd3_rgmii";
29729390d27SYixun Lan						function = "eth";
29829390d27SYixun Lan					};
29929390d27SYixun Lan				};
30029390d27SYixun Lan
3014a81e5ddSJian Hu				pwm_a_a_pins: pwm_a_a {
3024a81e5ddSJian Hu					mux {
3034a81e5ddSJian Hu						groups = "pwm_a_a";
3044a81e5ddSJian Hu						function = "pwm_a";
3054a81e5ddSJian Hu					};
3064a81e5ddSJian Hu				};
3074a81e5ddSJian Hu
3084a81e5ddSJian Hu				pwm_a_x18_pins: pwm_a_x18 {
3094a81e5ddSJian Hu					mux {
3104a81e5ddSJian Hu						groups = "pwm_a_x18";
3114a81e5ddSJian Hu						function = "pwm_a";
3124a81e5ddSJian Hu					};
3134a81e5ddSJian Hu				};
3144a81e5ddSJian Hu
3154a81e5ddSJian Hu				pwm_a_x20_pins: pwm_a_x20 {
3164a81e5ddSJian Hu					mux {
3174a81e5ddSJian Hu						groups = "pwm_a_x20";
3184a81e5ddSJian Hu						function = "pwm_a";
3194a81e5ddSJian Hu					};
3204a81e5ddSJian Hu				};
3214a81e5ddSJian Hu
3224a81e5ddSJian Hu				pwm_a_z_pins: pwm_a_z {
3234a81e5ddSJian Hu					mux {
3244a81e5ddSJian Hu						groups = "pwm_a_z";
3254a81e5ddSJian Hu						function = "pwm_a";
3264a81e5ddSJian Hu					};
3274a81e5ddSJian Hu				};
3284a81e5ddSJian Hu
3294a81e5ddSJian Hu				pwm_b_a_pins: pwm_b_a {
3304a81e5ddSJian Hu					mux {
3314a81e5ddSJian Hu						groups = "pwm_b_a";
3324a81e5ddSJian Hu						function = "pwm_b";
3334a81e5ddSJian Hu					};
3344a81e5ddSJian Hu				};
3354a81e5ddSJian Hu
3364a81e5ddSJian Hu				pwm_b_x_pins: pwm_b_x {
3374a81e5ddSJian Hu					mux {
3384a81e5ddSJian Hu						groups = "pwm_b_x";
3394a81e5ddSJian Hu						function = "pwm_b";
3404a81e5ddSJian Hu					};
3414a81e5ddSJian Hu				};
3424a81e5ddSJian Hu
3434a81e5ddSJian Hu				pwm_b_z_pins: pwm_b_z {
3444a81e5ddSJian Hu					mux {
3454a81e5ddSJian Hu						groups = "pwm_b_z";
3464a81e5ddSJian Hu						function = "pwm_b";
3474a81e5ddSJian Hu					};
3484a81e5ddSJian Hu				};
3494a81e5ddSJian Hu
3504a81e5ddSJian Hu				pwm_c_a_pins: pwm_c_a {
3514a81e5ddSJian Hu					mux {
3524a81e5ddSJian Hu						groups = "pwm_c_a";
3534a81e5ddSJian Hu						function = "pwm_c";
3544a81e5ddSJian Hu					};
3554a81e5ddSJian Hu				};
3564a81e5ddSJian Hu
3574a81e5ddSJian Hu				pwm_c_x10_pins: pwm_c_x10 {
3584a81e5ddSJian Hu					mux {
3594a81e5ddSJian Hu						groups = "pwm_c_x10";
3604a81e5ddSJian Hu						function = "pwm_c";
3614a81e5ddSJian Hu					};
3624a81e5ddSJian Hu				};
3634a81e5ddSJian Hu
3644a81e5ddSJian Hu				pwm_c_x17_pins: pwm_c_x17 {
3654a81e5ddSJian Hu					mux {
3664a81e5ddSJian Hu						groups = "pwm_c_x17";
3674a81e5ddSJian Hu						function = "pwm_c";
3684a81e5ddSJian Hu					};
3694a81e5ddSJian Hu				};
3704a81e5ddSJian Hu
3714a81e5ddSJian Hu				pwm_d_x11_pins: pwm_d_x11 {
3724a81e5ddSJian Hu					mux {
3734a81e5ddSJian Hu						groups = "pwm_d_x11";
3744a81e5ddSJian Hu						function = "pwm_d";
3754a81e5ddSJian Hu					};
3764a81e5ddSJian Hu				};
3774a81e5ddSJian Hu
3784a81e5ddSJian Hu				pwm_d_x16_pins: pwm_d_x16 {
3794a81e5ddSJian Hu					mux {
3804a81e5ddSJian Hu						groups = "pwm_d_x16";
3814a81e5ddSJian Hu						function = "pwm_d";
3824a81e5ddSJian Hu					};
3834a81e5ddSJian Hu				};
3848ae4284eSSunny Luo
3858ae4284eSSunny Luo				spi0_pins: spi0 {
3868ae4284eSSunny Luo					mux {
3878ae4284eSSunny Luo						groups = "spi0_miso",
3888ae4284eSSunny Luo							"spi0_mosi",
3898ae4284eSSunny Luo							"spi0_clk";
3908ae4284eSSunny Luo						function = "spi0";
3918ae4284eSSunny Luo					};
3928ae4284eSSunny Luo				};
3938ae4284eSSunny Luo
3948ae4284eSSunny Luo				spi0_ss0_pins: spi0_ss0 {
3958ae4284eSSunny Luo					mux {
3968ae4284eSSunny Luo						groups = "spi0_ss0";
3978ae4284eSSunny Luo						function = "spi0";
3988ae4284eSSunny Luo					};
3998ae4284eSSunny Luo				};
4008ae4284eSSunny Luo
4018ae4284eSSunny Luo				spi0_ss1_pins: spi0_ss1 {
4028ae4284eSSunny Luo					mux {
4038ae4284eSSunny Luo						groups = "spi0_ss1";
4048ae4284eSSunny Luo						function = "spi0";
4058ae4284eSSunny Luo					};
4068ae4284eSSunny Luo				};
4078ae4284eSSunny Luo
4088ae4284eSSunny Luo				spi0_ss2_pins: spi0_ss2 {
4098ae4284eSSunny Luo					mux {
4108ae4284eSSunny Luo						groups = "spi0_ss2";
4118ae4284eSSunny Luo						function = "spi0";
4128ae4284eSSunny Luo					};
4138ae4284eSSunny Luo				};
4148ae4284eSSunny Luo
4158ae4284eSSunny Luo
4168ae4284eSSunny Luo				spi1_a_pins: spi1_a {
4178ae4284eSSunny Luo					mux {
4188ae4284eSSunny Luo						groups = "spi1_miso_a",
4198ae4284eSSunny Luo							"spi1_mosi_a",
4208ae4284eSSunny Luo							"spi1_clk_a";
4218ae4284eSSunny Luo						function = "spi1";
4228ae4284eSSunny Luo					};
4238ae4284eSSunny Luo				};
4248ae4284eSSunny Luo
4258ae4284eSSunny Luo				spi1_ss0_a_pins: spi1_ss0_a {
4268ae4284eSSunny Luo					mux {
4278ae4284eSSunny Luo						groups = "spi1_ss0_a";
4288ae4284eSSunny Luo						function = "spi1";
4298ae4284eSSunny Luo					};
4308ae4284eSSunny Luo				};
4318ae4284eSSunny Luo
4328ae4284eSSunny Luo				spi1_ss1_pins: spi1_ss1 {
4338ae4284eSSunny Luo					mux {
4348ae4284eSSunny Luo						groups = "spi1_ss1";
4358ae4284eSSunny Luo						function = "spi1";
4368ae4284eSSunny Luo					};
4378ae4284eSSunny Luo				};
4388ae4284eSSunny Luo
4398ae4284eSSunny Luo				spi1_x_pins: spi1_x {
4408ae4284eSSunny Luo					mux {
4418ae4284eSSunny Luo						groups = "spi1_miso_x",
4428ae4284eSSunny Luo							"spi1_mosi_x",
4438ae4284eSSunny Luo							"spi1_clk_x";
4448ae4284eSSunny Luo						function = "spi1";
4458ae4284eSSunny Luo					};
4468ae4284eSSunny Luo				};
4478ae4284eSSunny Luo
4488ae4284eSSunny Luo				spi1_ss0_x_pins: spi1_ss0_x {
4498ae4284eSSunny Luo					mux {
4508ae4284eSSunny Luo						groups = "spi1_ss0_x";
4518ae4284eSSunny Luo						function = "spi1";
4528ae4284eSSunny Luo					};
4538ae4284eSSunny Luo				};
454de05ded6SXingyu Chen			};
455de05ded6SXingyu Chen		};
456de05ded6SXingyu Chen
4579d59b708SYixun Lan		sram: sram@fffc0000 {
4589d59b708SYixun Lan			compatible = "amlogic,meson-axg-sram", "mmio-sram";
4599d59b708SYixun Lan			reg = <0x0 0xfffc0000 0x0 0x20000>;
4609d59b708SYixun Lan			#address-cells = <1>;
4619d59b708SYixun Lan			#size-cells = <1>;
4629d59b708SYixun Lan			ranges = <0 0x0 0xfffc0000 0x20000>;
4639d59b708SYixun Lan
4649d59b708SYixun Lan			cpu_scp_lpri: scp-shmem@0 {
4659d59b708SYixun Lan				compatible = "amlogic,meson-axg-scp-shmem";
4669d59b708SYixun Lan				reg = <0x13000 0x400>;
4679d59b708SYixun Lan			};
4689d59b708SYixun Lan
4699d59b708SYixun Lan			cpu_scp_hpri: scp-shmem@200 {
4709d59b708SYixun Lan				compatible = "amlogic,meson-axg-scp-shmem";
4719d59b708SYixun Lan				reg = <0x13400 0x400>;
4729d59b708SYixun Lan			};
4739d59b708SYixun Lan		};
4749d59b708SYixun Lan
4750cb6c604SKevin Hilman		aobus: bus@ff800000 {
4769d59b708SYixun Lan			compatible = "simple-bus";
4779d59b708SYixun Lan			reg = <0x0 0xff800000 0x0 0x100000>;
4789d59b708SYixun Lan			#address-cells = <2>;
4799d59b708SYixun Lan			#size-cells = <2>;
4809d59b708SYixun Lan			ranges = <0x0 0x0 0x0 0xff800000 0x0 0x100000>;
4819d59b708SYixun Lan
482de05ded6SXingyu Chen			pinctrl_aobus: pinctrl@14 {
483de05ded6SXingyu Chen				compatible = "amlogic,meson-axg-aobus-pinctrl";
484de05ded6SXingyu Chen				#address-cells = <2>;
485de05ded6SXingyu Chen				#size-cells = <2>;
486de05ded6SXingyu Chen				ranges;
487de05ded6SXingyu Chen
488de05ded6SXingyu Chen				gpio_ao: bank@14 {
489de05ded6SXingyu Chen					reg = <0x0 0x00014 0x0 0x8>,
490de05ded6SXingyu Chen						<0x0 0x0002c 0x0 0x4>,
491de05ded6SXingyu Chen						<0x0 0x00024 0x0 0x8>;
492de05ded6SXingyu Chen					reg-names = "mux", "pull", "gpio";
493de05ded6SXingyu Chen					gpio-controller;
494de05ded6SXingyu Chen					#gpio-cells = <2>;
495de05ded6SXingyu Chen					gpio-ranges = <&pinctrl_aobus 0 0 15>;
496de05ded6SXingyu Chen				};
4977bd46a79SYixun Lan
4987bd46a79SYixun Lan				remote_input_ao_pins: remote_input_ao {
4997bd46a79SYixun Lan					mux {
5007bd46a79SYixun Lan						groups = "remote_input_ao";
5017bd46a79SYixun Lan						function = "remote_input_ao";
5027bd46a79SYixun Lan					};
5037bd46a79SYixun Lan				};
504de05ded6SXingyu Chen			};
505de05ded6SXingyu Chen
5064a81e5ddSJian Hu			pwm_AO_ab: pwm@7000 {
5074a81e5ddSJian Hu				compatible = "amlogic,meson-axg-ao-pwm";
5084a81e5ddSJian Hu				reg = <0x0 0x07000 0x0 0x20>;
5094a81e5ddSJian Hu				#pwm-cells = <3>;
5104a81e5ddSJian Hu				status = "disabled";
5114a81e5ddSJian Hu			};
5124a81e5ddSJian Hu
5134a81e5ddSJian Hu			pwm_AO_cd: pwm@2000 {
5144a81e5ddSJian Hu				compatible = "amlogic,axg-ao-pwm";
5154a81e5ddSJian Hu				reg = <0x0 0x02000  0x0 0x20>;
5164a81e5ddSJian Hu				#pwm-cells = <3>;
5174a81e5ddSJian Hu				status = "disabled";
5184a81e5ddSJian Hu			};
5194a81e5ddSJian Hu
5209d59b708SYixun Lan			uart_AO: serial@3000 {
5219d59b708SYixun Lan				compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart";
5229d59b708SYixun Lan				reg = <0x0 0x3000 0x0 0x18>;
5239d59b708SYixun Lan				interrupts = <GIC_SPI 193 IRQ_TYPE_EDGE_RISING>;
52406b7a631SYixun Lan				clocks = <&xtal>, <&clkc CLKID_CLK81>, <&xtal>;
5259d59b708SYixun Lan				clock-names = "xtal", "pclk", "baud";
5269d59b708SYixun Lan				status = "disabled";
5279d59b708SYixun Lan			};
5289d59b708SYixun Lan
5299d59b708SYixun Lan			uart_AO_B: serial@4000 {
5309d59b708SYixun Lan				compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart";
5319d59b708SYixun Lan				reg = <0x0 0x4000 0x0 0x18>;
5329d59b708SYixun Lan				interrupts = <GIC_SPI 197 IRQ_TYPE_EDGE_RISING>;
53306b7a631SYixun Lan				clocks = <&xtal>, <&clkc CLKID_CLK81>, <&xtal>;
5349d59b708SYixun Lan				clock-names = "xtal", "pclk", "baud";
5359d59b708SYixun Lan				status = "disabled";
5369d59b708SYixun Lan			};
5377bd46a79SYixun Lan
5387bd46a79SYixun Lan			ir: ir@8000 {
5397bd46a79SYixun Lan				compatible = "amlogic,meson-gxbb-ir";
5407bd46a79SYixun Lan				reg = <0x0 0x8000 0x0 0x20>;
5417bd46a79SYixun Lan				interrupts = <GIC_SPI 196 IRQ_TYPE_EDGE_RISING>;
5427bd46a79SYixun Lan				status = "disabled";
5437bd46a79SYixun Lan			};
5449d59b708SYixun Lan		};
5459d59b708SYixun Lan	};
5469d59b708SYixun Lan};
547