1114abfe1SNeil Armstrong// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
29d59b708SYixun Lan/*
39d59b708SYixun Lan * Copyright (c) 2017 Amlogic, Inc. All rights reserved.
49d59b708SYixun Lan */
59d59b708SYixun Lan
69d59b708SYixun Lan#include <dt-bindings/gpio/gpio.h>
79d59b708SYixun Lan#include <dt-bindings/interrupt-controller/irq.h>
89d59b708SYixun Lan#include <dt-bindings/interrupt-controller/arm-gic.h>
98909e722SJerome Brunet#include <dt-bindings/clock/axg-audio-clkc.h>
1006b7a631SYixun Lan#include <dt-bindings/clock/axg-clkc.h>
11e03421ecSQiufang Dai#include <dt-bindings/clock/axg-aoclkc.h>
12221cf34bSNan Li#include <dt-bindings/gpio/meson-axg-gpio.h>
13098e5303SJerome Brunet#include <dt-bindings/reset/amlogic,meson-axg-reset.h>
149d59b708SYixun Lan
159d59b708SYixun Lan/ {
169d59b708SYixun Lan	compatible = "amlogic,meson-axg";
179d59b708SYixun Lan
189d59b708SYixun Lan	interrupt-parent = <&gic>;
199d59b708SYixun Lan	#address-cells = <2>;
209d59b708SYixun Lan	#size-cells = <2>;
219d59b708SYixun Lan
229d59b708SYixun Lan	reserved-memory {
239d59b708SYixun Lan		#address-cells = <2>;
249d59b708SYixun Lan		#size-cells = <2>;
259d59b708SYixun Lan		ranges;
269d59b708SYixun Lan
279d59b708SYixun Lan		/* 16 MiB reserved for Hardware ROM Firmware */
289d59b708SYixun Lan		hwrom_reserved: hwrom@0 {
299d59b708SYixun Lan			reg = <0x0 0x0 0x0 0x1000000>;
309d59b708SYixun Lan			no-map;
319d59b708SYixun Lan		};
329d59b708SYixun Lan
339d59b708SYixun Lan		/* Alternate 3 MiB reserved for ARM Trusted Firmware (BL31) */
34a5494aedSArnd Bergmann		secmon_reserved: secmon@5000000 {
359d59b708SYixun Lan			reg = <0x0 0x05000000 0x0 0x300000>;
369d59b708SYixun Lan			no-map;
379d59b708SYixun Lan		};
389d59b708SYixun Lan	};
399d59b708SYixun Lan
409d59b708SYixun Lan	cpus {
419d59b708SYixun Lan		#address-cells = <0x2>;
429d59b708SYixun Lan		#size-cells = <0x0>;
439d59b708SYixun Lan
449d59b708SYixun Lan		cpu0: cpu@0 {
459d59b708SYixun Lan			device_type = "cpu";
469d59b708SYixun Lan			compatible = "arm,cortex-a53", "arm,armv8";
479d59b708SYixun Lan			reg = <0x0 0x0>;
489d59b708SYixun Lan			enable-method = "psci";
499d59b708SYixun Lan			next-level-cache = <&l2>;
509d59b708SYixun Lan		};
519d59b708SYixun Lan
529d59b708SYixun Lan		cpu1: cpu@1 {
539d59b708SYixun Lan			device_type = "cpu";
549d59b708SYixun Lan			compatible = "arm,cortex-a53", "arm,armv8";
559d59b708SYixun Lan			reg = <0x0 0x1>;
569d59b708SYixun Lan			enable-method = "psci";
579d59b708SYixun Lan			next-level-cache = <&l2>;
589d59b708SYixun Lan		};
599d59b708SYixun Lan
609d59b708SYixun Lan		cpu2: cpu@2 {
619d59b708SYixun Lan			device_type = "cpu";
629d59b708SYixun Lan			compatible = "arm,cortex-a53", "arm,armv8";
639d59b708SYixun Lan			reg = <0x0 0x2>;
649d59b708SYixun Lan			enable-method = "psci";
659d59b708SYixun Lan			next-level-cache = <&l2>;
669d59b708SYixun Lan		};
679d59b708SYixun Lan
689d59b708SYixun Lan		cpu3: cpu@3 {
699d59b708SYixun Lan			device_type = "cpu";
709d59b708SYixun Lan			compatible = "arm,cortex-a53", "arm,armv8";
719d59b708SYixun Lan			reg = <0x0 0x3>;
729d59b708SYixun Lan			enable-method = "psci";
739d59b708SYixun Lan			next-level-cache = <&l2>;
749d59b708SYixun Lan		};
759d59b708SYixun Lan
769d59b708SYixun Lan		l2: l2-cache0 {
779d59b708SYixun Lan			compatible = "cache";
789d59b708SYixun Lan		};
799d59b708SYixun Lan	};
809d59b708SYixun Lan
819d59b708SYixun Lan	arm-pmu {
829d59b708SYixun Lan		compatible = "arm,cortex-a53-pmu";
839d59b708SYixun Lan		interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
849d59b708SYixun Lan			     <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
859d59b708SYixun Lan			     <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
869d59b708SYixun Lan			     <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
879d59b708SYixun Lan		interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
889d59b708SYixun Lan	};
899d59b708SYixun Lan
909d59b708SYixun Lan	psci {
919d59b708SYixun Lan		compatible = "arm,psci-1.0";
929d59b708SYixun Lan		method = "smc";
939d59b708SYixun Lan	};
949d59b708SYixun Lan
959d59b708SYixun Lan	timer {
969d59b708SYixun Lan		compatible = "arm,armv8-timer";
979d59b708SYixun Lan		interrupts = <GIC_PPI 13
989d59b708SYixun Lan			(GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
999d59b708SYixun Lan			     <GIC_PPI 14
1009d59b708SYixun Lan			(GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
1019d59b708SYixun Lan			     <GIC_PPI 11
1029d59b708SYixun Lan			(GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
1039d59b708SYixun Lan			     <GIC_PPI 10
1049d59b708SYixun Lan			(GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>;
1059d59b708SYixun Lan	};
1069d59b708SYixun Lan
1079d59b708SYixun Lan	xtal: xtal-clk {
1089d59b708SYixun Lan		compatible = "fixed-clock";
1099d59b708SYixun Lan		clock-frequency = <24000000>;
1109d59b708SYixun Lan		clock-output-names = "xtal";
1119d59b708SYixun Lan		#clock-cells = <0>;
1129d59b708SYixun Lan	};
1139d59b708SYixun Lan
1145e395e14SYixun Lan	ao_alt_xtal: ao_alt_xtal-clk {
1155e395e14SYixun Lan		compatible = "fixed-clock";
1165e395e14SYixun Lan		clock-frequency = <32000000>;
1175e395e14SYixun Lan		clock-output-names = "ao_alt_xtal";
1185e395e14SYixun Lan		#clock-cells = <0>;
1195e395e14SYixun Lan	};
1205e395e14SYixun Lan
1219d59b708SYixun Lan	soc {
1229d59b708SYixun Lan		compatible = "simple-bus";
1239d59b708SYixun Lan		#address-cells = <2>;
1249d59b708SYixun Lan		#size-cells = <2>;
1259d59b708SYixun Lan		ranges;
1269d59b708SYixun Lan
127221cf34bSNan Li		apb: apb@ffe00000 {
128221cf34bSNan Li			compatible = "simple-bus";
129221cf34bSNan Li			reg = <0x0 0xffe00000 0x0 0x200000>;
130221cf34bSNan Li			#address-cells = <2>;
131221cf34bSNan Li			#size-cells = <2>;
132221cf34bSNan Li			ranges = <0x0 0x0 0x0 0xffe00000 0x0 0x200000>;
133221cf34bSNan Li
134221cf34bSNan Li			sd_emmc_b: sd@5000 {
135221cf34bSNan Li				compatible = "amlogic,meson-axg-mmc";
136221cf34bSNan Li				reg = <0x0 0x5000 0x0 0x2000>;
137221cf34bSNan Li				interrupts = <GIC_SPI 217 IRQ_TYPE_EDGE_RISING>;
138221cf34bSNan Li				status = "disabled";
139221cf34bSNan Li				clocks = <&clkc CLKID_SD_EMMC_B>,
140221cf34bSNan Li					<&clkc CLKID_SD_EMMC_B_CLK0>,
141221cf34bSNan Li					<&clkc CLKID_FCLK_DIV2>;
142221cf34bSNan Li				clock-names = "core", "clkin0", "clkin1";
143098e5303SJerome Brunet				resets = <&reset RESET_SD_EMMC_B>;
144221cf34bSNan Li			};
145221cf34bSNan Li
146221cf34bSNan Li			sd_emmc_c: mmc@7000 {
147221cf34bSNan Li				compatible = "amlogic,meson-axg-mmc";
148221cf34bSNan Li				reg = <0x0 0x7000 0x0 0x2000>;
149221cf34bSNan Li				interrupts = <GIC_SPI 218 IRQ_TYPE_EDGE_RISING>;
150221cf34bSNan Li				status = "disabled";
151221cf34bSNan Li				clocks = <&clkc CLKID_SD_EMMC_C>,
152221cf34bSNan Li					<&clkc CLKID_SD_EMMC_C_CLK0>,
153221cf34bSNan Li					<&clkc CLKID_FCLK_DIV2>;
154221cf34bSNan Li				clock-names = "core", "clkin0", "clkin1";
155098e5303SJerome Brunet				resets = <&reset RESET_SD_EMMC_C>;
156221cf34bSNan Li			};
157221cf34bSNan Li		};
158221cf34bSNan Li
1598909e722SJerome Brunet		audio: bus@ff642000 {
1608909e722SJerome Brunet			compatible = "simple-bus";
1618909e722SJerome Brunet			reg = <0x0 0xff642000 0x0 0x2000>;
1628909e722SJerome Brunet			#address-cells = <2>;
1638909e722SJerome Brunet			#size-cells = <2>;
1648909e722SJerome Brunet			ranges = <0x0 0x0 0x0 0xff642000 0x0 0x2000>;
1658909e722SJerome Brunet
1668909e722SJerome Brunet			clkc_audio: clock-controller@0 {
1678909e722SJerome Brunet				compatible = "amlogic,axg-audio-clkc";
1688909e722SJerome Brunet				reg = <0x0 0x0 0x0 0xb4>;
1698909e722SJerome Brunet				#clock-cells = <1>;
1708909e722SJerome Brunet
1718909e722SJerome Brunet				clocks = <&clkc CLKID_AUDIO>,
1728909e722SJerome Brunet					 <&clkc CLKID_MPLL0>,
1738909e722SJerome Brunet					 <&clkc CLKID_MPLL1>,
1748909e722SJerome Brunet					 <&clkc CLKID_MPLL2>,
1758909e722SJerome Brunet					 <&clkc CLKID_MPLL3>,
1768909e722SJerome Brunet					 <&clkc CLKID_HIFI_PLL>,
1778909e722SJerome Brunet					 <&clkc CLKID_FCLK_DIV3>,
1788909e722SJerome Brunet					 <&clkc CLKID_FCLK_DIV4>,
1798909e722SJerome Brunet					 <&clkc CLKID_GP0_PLL>;
1808909e722SJerome Brunet				clock-names = "pclk",
1818909e722SJerome Brunet					      "mst_in0",
1828909e722SJerome Brunet					      "mst_in1",
1838909e722SJerome Brunet					      "mst_in2",
1848909e722SJerome Brunet					      "mst_in3",
1858909e722SJerome Brunet					      "mst_in4",
1868909e722SJerome Brunet					      "mst_in5",
1878909e722SJerome Brunet					      "mst_in6",
1888909e722SJerome Brunet					      "mst_in7";
1898909e722SJerome Brunet
1908909e722SJerome Brunet				resets = <&reset RESET_AUDIO>;
1918909e722SJerome Brunet			};
1928909e722SJerome Brunet		};
1938909e722SJerome Brunet
1940cb6c604SKevin Hilman		cbus: bus@ffd00000 {
1959d59b708SYixun Lan			compatible = "simple-bus";
1969d59b708SYixun Lan			reg = <0x0 0xffd00000 0x0 0x25000>;
1979d59b708SYixun Lan			#address-cells = <2>;
1989d59b708SYixun Lan			#size-cells = <2>;
1999d59b708SYixun Lan			ranges = <0x0 0x0 0x0 0xffd00000 0x0 0x25000>;
2009d59b708SYixun Lan
201b0e59f94SYixun Lan			gpio_intc: interrupt-controller@f080 {
202b0e59f94SYixun Lan				compatible = "amlogic,meson-gpio-intc";
203b0e59f94SYixun Lan				reg = <0x0 0xf080 0x0 0x10>;
204b0e59f94SYixun Lan				interrupt-controller;
205b0e59f94SYixun Lan				#interrupt-cells = <2>;
206b0e59f94SYixun Lan				amlogic,channel-interrupts = <64 65 66 67 68 69 70 71>;
207b0e59f94SYixun Lan				status = "disabled";
208b0e59f94SYixun Lan			};
209b0e59f94SYixun Lan
2104a81e5ddSJian Hu			pwm_ab: pwm@1b000 {
2114a81e5ddSJian Hu				compatible = "amlogic,meson-axg-ee-pwm";
2124a81e5ddSJian Hu				reg = <0x0 0x1b000 0x0 0x20>;
2134a81e5ddSJian Hu				#pwm-cells = <3>;
2144a81e5ddSJian Hu				status = "disabled";
2154a81e5ddSJian Hu			};
2164a81e5ddSJian Hu
2174a81e5ddSJian Hu			pwm_cd: pwm@1a000 {
2184a81e5ddSJian Hu				compatible = "amlogic,meson-axg-ee-pwm";
2194a81e5ddSJian Hu				reg = <0x0 0x1a000 0x0 0x20>;
2204a81e5ddSJian Hu				#pwm-cells = <3>;
2214a81e5ddSJian Hu				status = "disabled";
2224a81e5ddSJian Hu			};
2234a81e5ddSJian Hu
22443b9f617SYixun Lan			reset: reset-controller@1004 {
22543b9f617SYixun Lan				compatible = "amlogic,meson-axg-reset";
22643b9f617SYixun Lan				reg = <0x0 0x01004 0x0 0x9c>;
22743b9f617SYixun Lan				#reset-cells = <1>;
22843b9f617SYixun Lan			};
22943b9f617SYixun Lan
2308ae4284eSSunny Luo			spicc0: spi@13000 {
2318ae4284eSSunny Luo				compatible = "amlogic,meson-axg-spicc";
2328ae4284eSSunny Luo				reg = <0x0 0x13000 0x0 0x3c>;
2338ae4284eSSunny Luo				interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
2348ae4284eSSunny Luo				clocks = <&clkc CLKID_SPICC0>;
2358ae4284eSSunny Luo				clock-names = "core";
2368ae4284eSSunny Luo				#address-cells = <1>;
2378ae4284eSSunny Luo				#size-cells = <0>;
2388ae4284eSSunny Luo				status = "disabled";
2398ae4284eSSunny Luo			};
2408ae4284eSSunny Luo
2418ae4284eSSunny Luo			spicc1: spi@15000 {
2428ae4284eSSunny Luo				compatible = "amlogic,meson-axg-spicc";
2438ae4284eSSunny Luo				reg = <0x0 0x15000 0x0 0x3c>;
2448ae4284eSSunny Luo				interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
2458ae4284eSSunny Luo				clocks = <&clkc CLKID_SPICC1>;
2468ae4284eSSunny Luo				clock-names = "core";
2478ae4284eSSunny Luo				#address-cells = <1>;
2488ae4284eSSunny Luo				#size-cells = <0>;
2498ae4284eSSunny Luo				status = "disabled";
2508ae4284eSSunny Luo			};
2518ae4284eSSunny Luo
252dc6f858eSJian Hu			i2c0: i2c@1f000 {
253dc6f858eSJian Hu				compatible = "amlogic,meson-axg-i2c";
254dc6f858eSJian Hu				reg = <0x0 0x1f000 0x0 0x20>;
2552b6ff972SJerome Brunet				interrupts = <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>;
2562b6ff972SJerome Brunet				clocks = <&clkc CLKID_I2C>;
257dc6f858eSJian Hu				#address-cells = <1>;
258dc6f858eSJian Hu				#size-cells = <0>;
2592b6ff972SJerome Brunet				status = "disabled";
260dc6f858eSJian Hu			};
261dc6f858eSJian Hu
262dc6f858eSJian Hu			i2c1: i2c@1e000 {
263dc6f858eSJian Hu				compatible = "amlogic,meson-axg-i2c";
2642b6ff972SJerome Brunet				reg = <0x0 0x1e000 0x0 0x20>;
2652b6ff972SJerome Brunet				interrupts = <GIC_SPI 214 IRQ_TYPE_EDGE_RISING>;
2662b6ff972SJerome Brunet				clocks = <&clkc CLKID_I2C>;
267dc6f858eSJian Hu				#address-cells = <1>;
268dc6f858eSJian Hu				#size-cells = <0>;
269dc6f858eSJian Hu				status = "disabled";
270dc6f858eSJian Hu			};
271dc6f858eSJian Hu
272dc6f858eSJian Hu			i2c2: i2c@1d000 {
273dc6f858eSJian Hu				compatible = "amlogic,meson-axg-i2c";
274dc6f858eSJian Hu				reg = <0x0 0x1d000 0x0 0x20>;
2752b6ff972SJerome Brunet				interrupts = <GIC_SPI 215 IRQ_TYPE_EDGE_RISING>;
2762b6ff972SJerome Brunet				clocks = <&clkc CLKID_I2C>;
277dc6f858eSJian Hu				#address-cells = <1>;
278dc6f858eSJian Hu				#size-cells = <0>;
2792b6ff972SJerome Brunet				status = "disabled";
280dc6f858eSJian Hu			};
281dc6f858eSJian Hu
282dc6f858eSJian Hu			i2c3: i2c@1c000 {
283dc6f858eSJian Hu				compatible = "amlogic,meson-axg-i2c";
284dc6f858eSJian Hu				reg = <0x0 0x1c000 0x0 0x20>;
2852b6ff972SJerome Brunet				interrupts = <GIC_SPI 39 IRQ_TYPE_EDGE_RISING>;
2862b6ff972SJerome Brunet				clocks = <&clkc CLKID_I2C>;
287dc6f858eSJian Hu				#address-cells = <1>;
288dc6f858eSJian Hu				#size-cells = <0>;
2892b6ff972SJerome Brunet				status = "disabled";
290dc6f858eSJian Hu			};
291dc6f858eSJian Hu
2929d59b708SYixun Lan			uart_A: serial@24000 {
29358662130SYixun Lan				compatible = "amlogic,meson-gx-uart";
29477f5cdbdSYixun Lan				reg = <0x0 0x24000 0x0 0x18>;
2959d59b708SYixun Lan				interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>;
2969d59b708SYixun Lan				status = "disabled";
29758662130SYixun Lan				clocks = <&xtal>, <&clkc CLKID_UART0>, <&xtal>;
29858662130SYixun Lan				clock-names = "xtal", "pclk", "baud";
2999d59b708SYixun Lan			};
3009d59b708SYixun Lan
3019d59b708SYixun Lan			uart_B: serial@23000 {
30258662130SYixun Lan				compatible = "amlogic,meson-gx-uart";
30377f5cdbdSYixun Lan				reg = <0x0 0x23000 0x0 0x18>;
3049d59b708SYixun Lan				interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>;
3059d59b708SYixun Lan				status = "disabled";
30658662130SYixun Lan				clocks = <&xtal>, <&clkc CLKID_UART1>, <&xtal>;
30758662130SYixun Lan				clock-names = "xtal", "pclk", "baud";
3089d59b708SYixun Lan			};
3099d59b708SYixun Lan		};
3109d59b708SYixun Lan
31129390d27SYixun Lan		ethmac: ethernet@ff3f0000 {
31229390d27SYixun Lan			compatible = "amlogic,meson-gxbb-dwmac", "snps,dwmac";
31329390d27SYixun Lan			reg = <0x0 0xff3f0000 0x0 0x10000
31429390d27SYixun Lan				0x0 0xff634540 0x0 0x8>;
31529390d27SYixun Lan			interrupts = <GIC_SPI 8 IRQ_TYPE_EDGE_RISING>;
31629390d27SYixun Lan			interrupt-names = "macirq";
31729390d27SYixun Lan			clocks = <&clkc CLKID_ETH>,
31829390d27SYixun Lan				 <&clkc CLKID_FCLK_DIV2>,
31929390d27SYixun Lan				 <&clkc CLKID_MPLL2>;
32029390d27SYixun Lan			clock-names = "stmmaceth", "clkin0", "clkin1";
32129390d27SYixun Lan			status = "disabled";
32229390d27SYixun Lan		};
32329390d27SYixun Lan
3249d59b708SYixun Lan		gic: interrupt-controller@ffc01000 {
3259d59b708SYixun Lan			compatible = "arm,gic-400";
3269d59b708SYixun Lan			reg = <0x0 0xffc01000 0 0x1000>,
3279d59b708SYixun Lan			      <0x0 0xffc02000 0 0x2000>,
3289d59b708SYixun Lan			      <0x0 0xffc04000 0 0x2000>,
3299d59b708SYixun Lan			      <0x0 0xffc06000 0 0x2000>;
3309d59b708SYixun Lan			interrupt-controller;
3319d59b708SYixun Lan			interrupts = <GIC_PPI 9
3329d59b708SYixun Lan				(GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
3339d59b708SYixun Lan			#interrupt-cells = <3>;
3349d59b708SYixun Lan			#address-cells = <0>;
3359d59b708SYixun Lan		};
3369d59b708SYixun Lan
337abfc18f9SQiufang Dai		hiubus: bus@ff63c000 {
338abfc18f9SQiufang Dai			compatible = "simple-bus";
339abfc18f9SQiufang Dai			reg = <0x0 0xff63c000 0x0 0x1c00>;
340abfc18f9SQiufang Dai			#address-cells = <2>;
341abfc18f9SQiufang Dai			#size-cells = <2>;
342abfc18f9SQiufang Dai			ranges = <0x0 0x0 0x0 0xff63c000 0x0 0x1c00>;
343abfc18f9SQiufang Dai
344cc4d6641SJerome Brunet			sysctrl: system-controller@0 {
345cc4d6641SJerome Brunet				compatible = "amlogic,meson-axg-hhi-sysctrl", "syscon", "simple-mfd";
346cc4d6641SJerome Brunet				reg = <0 0 0 0x400>;
347cc4d6641SJerome Brunet
348cc4d6641SJerome Brunet				clkc: clock-controller {
349abfc18f9SQiufang Dai					compatible = "amlogic,axg-clkc";
350abfc18f9SQiufang Dai					#clock-cells = <1>;
351cc4d6641SJerome Brunet				};
352abfc18f9SQiufang Dai			};
353abfc18f9SQiufang Dai		};
354abfc18f9SQiufang Dai
3559d59b708SYixun Lan		mailbox: mailbox@ff63dc00 {
3569d59b708SYixun Lan			compatible = "amlogic,meson-gx-mhu", "amlogic,meson-gxbb-mhu";
3579d59b708SYixun Lan			reg = <0 0xff63dc00 0 0x400>;
3589d59b708SYixun Lan			interrupts = <GIC_SPI 208 IRQ_TYPE_EDGE_RISING>,
3599d59b708SYixun Lan				     <GIC_SPI 209 IRQ_TYPE_EDGE_RISING>,
3609d59b708SYixun Lan				     <GIC_SPI 210 IRQ_TYPE_EDGE_RISING>;
3619d59b708SYixun Lan			#mbox-cells = <1>;
3629d59b708SYixun Lan		};
3639d59b708SYixun Lan
364de05ded6SXingyu Chen		periphs: periphs@ff634000 {
365de05ded6SXingyu Chen			compatible = "simple-bus";
366de05ded6SXingyu Chen			reg = <0x0 0xff634000 0x0 0x2000>;
367de05ded6SXingyu Chen			#address-cells = <2>;
368de05ded6SXingyu Chen			#size-cells = <2>;
369de05ded6SXingyu Chen			ranges = <0x0 0x0 0x0 0xff634000 0x0 0x2000>;
370de05ded6SXingyu Chen
371eafd53d3SJerome Brunet			hwrng: rng {
372eafd53d3SJerome Brunet				compatible = "amlogic,meson-rng";
373eafd53d3SJerome Brunet				reg = <0x0 0x18 0x0 0x4>;
374eafd53d3SJerome Brunet				clocks = <&clkc CLKID_RNG0>;
375eafd53d3SJerome Brunet				clock-names = "core";
376eafd53d3SJerome Brunet			};
377eafd53d3SJerome Brunet
378de05ded6SXingyu Chen			pinctrl_periphs: pinctrl@480 {
379de05ded6SXingyu Chen				compatible = "amlogic,meson-axg-periphs-pinctrl";
380de05ded6SXingyu Chen				#address-cells = <2>;
381de05ded6SXingyu Chen				#size-cells = <2>;
382de05ded6SXingyu Chen				ranges;
383de05ded6SXingyu Chen
384de05ded6SXingyu Chen				gpio: bank@480 {
385de05ded6SXingyu Chen					reg = <0x0 0x00480 0x0 0x40>,
386de05ded6SXingyu Chen						<0x0 0x004e8 0x0 0x14>,
387de05ded6SXingyu Chen						<0x0 0x00520 0x0 0x14>,
388de05ded6SXingyu Chen						<0x0 0x00430 0x0 0x3c>;
389de05ded6SXingyu Chen					reg-names = "mux", "pull", "pull-enable", "gpio";
390de05ded6SXingyu Chen					gpio-controller;
391de05ded6SXingyu Chen					#gpio-cells = <2>;
392de05ded6SXingyu Chen					gpio-ranges = <&pinctrl_periphs 0 0 86>;
393de05ded6SXingyu Chen				};
3944a81e5ddSJian Hu
395221cf34bSNan Li				emmc_pins: emmc {
396221cf34bSNan Li					mux {
397221cf34bSNan Li						groups = "emmc_nand_d0",
398221cf34bSNan Li							"emmc_nand_d1",
399221cf34bSNan Li							"emmc_nand_d2",
400221cf34bSNan Li							"emmc_nand_d3",
401221cf34bSNan Li							"emmc_nand_d4",
402221cf34bSNan Li							"emmc_nand_d5",
403221cf34bSNan Li							"emmc_nand_d6",
404221cf34bSNan Li							"emmc_nand_d7",
405221cf34bSNan Li							"emmc_clk",
406221cf34bSNan Li							"emmc_cmd",
407221cf34bSNan Li							"emmc_ds";
408221cf34bSNan Li						function = "emmc";
409221cf34bSNan Li					};
410221cf34bSNan Li				};
411221cf34bSNan Li
412221cf34bSNan Li				emmc_clk_gate_pins: emmc_clk_gate {
413221cf34bSNan Li					mux {
414221cf34bSNan Li						groups = "BOOT_8";
415221cf34bSNan Li						function = "gpio_periphs";
416221cf34bSNan Li					};
417221cf34bSNan Li					cfg-pull-down {
418221cf34bSNan Li						pins = "BOOT_8";
419221cf34bSNan Li						bias-pull-down;
420221cf34bSNan Li					};
421221cf34bSNan Li				};
422221cf34bSNan Li
423221cf34bSNan Li				sdio_pins: sdio {
424221cf34bSNan Li					mux {
425221cf34bSNan Li						groups = "sdio_d0",
426221cf34bSNan Li							"sdio_d1",
427221cf34bSNan Li							"sdio_d2",
428221cf34bSNan Li							"sdio_d3",
429221cf34bSNan Li							"sdio_cmd",
430221cf34bSNan Li							"sdio_clk";
431221cf34bSNan Li						function = "sdio";
432221cf34bSNan Li					};
433221cf34bSNan Li				};
434221cf34bSNan Li
435221cf34bSNan Li				sdio_clk_gate_pins: sdio_clk_gate {
436221cf34bSNan Li					mux {
437221cf34bSNan Li						groups = "GPIOX_4";
438221cf34bSNan Li						function = "gpio_periphs";
439221cf34bSNan Li					};
440221cf34bSNan Li					cfg-pull-down {
441221cf34bSNan Li						pins = "GPIOX_4";
442221cf34bSNan Li						bias-pull-down;
443221cf34bSNan Li					};
444221cf34bSNan Li				};
445221cf34bSNan Li
446777fa58dSYixun Lan				eth_rmii_x_pins: eth-x-rmii {
447777fa58dSYixun Lan					mux {
448777fa58dSYixun Lan						groups = "eth_mdio_x",
449777fa58dSYixun Lan						       "eth_mdc_x",
450777fa58dSYixun Lan						       "eth_rgmii_rx_clk_x",
451777fa58dSYixun Lan						       "eth_rx_dv_x",
452777fa58dSYixun Lan						       "eth_rxd0_x",
453777fa58dSYixun Lan						       "eth_rxd1_x",
454777fa58dSYixun Lan						       "eth_txen_x",
455777fa58dSYixun Lan						       "eth_txd0_x",
456777fa58dSYixun Lan						       "eth_txd1_x";
457777fa58dSYixun Lan						function = "eth";
458777fa58dSYixun Lan					};
459777fa58dSYixun Lan				};
460777fa58dSYixun Lan
461777fa58dSYixun Lan				eth_rmii_y_pins: eth-y-rmii {
462777fa58dSYixun Lan					mux {
463777fa58dSYixun Lan						groups = "eth_mdio_y",
464777fa58dSYixun Lan						       "eth_mdc_y",
465777fa58dSYixun Lan						       "eth_rgmii_rx_clk_y",
466777fa58dSYixun Lan						       "eth_rx_dv_y",
467777fa58dSYixun Lan						       "eth_rxd0_y",
468777fa58dSYixun Lan						       "eth_rxd1_y",
469777fa58dSYixun Lan						       "eth_txen_y",
470777fa58dSYixun Lan						       "eth_txd0_y",
471777fa58dSYixun Lan						       "eth_txd1_y";
472777fa58dSYixun Lan						function = "eth";
473777fa58dSYixun Lan					};
474777fa58dSYixun Lan				};
475777fa58dSYixun Lan
47629390d27SYixun Lan				eth_rgmii_x_pins: eth-x-rgmii {
47729390d27SYixun Lan					mux {
47829390d27SYixun Lan						groups = "eth_mdio_x",
47929390d27SYixun Lan						       "eth_mdc_x",
48029390d27SYixun Lan						       "eth_rgmii_rx_clk_x",
48129390d27SYixun Lan						       "eth_rx_dv_x",
48229390d27SYixun Lan						       "eth_rxd0_x",
48329390d27SYixun Lan						       "eth_rxd1_x",
48429390d27SYixun Lan						       "eth_rxd2_rgmii",
48529390d27SYixun Lan						       "eth_rxd3_rgmii",
48629390d27SYixun Lan						       "eth_rgmii_tx_clk",
48729390d27SYixun Lan						       "eth_txen_x",
48829390d27SYixun Lan						       "eth_txd0_x",
48929390d27SYixun Lan						       "eth_txd1_x",
49029390d27SYixun Lan						       "eth_txd2_rgmii",
49129390d27SYixun Lan						       "eth_txd3_rgmii";
49229390d27SYixun Lan						function = "eth";
49329390d27SYixun Lan					};
49429390d27SYixun Lan				};
49529390d27SYixun Lan
49629390d27SYixun Lan				eth_rgmii_y_pins: eth-y-rgmii {
49729390d27SYixun Lan					mux {
49829390d27SYixun Lan						groups = "eth_mdio_y",
49929390d27SYixun Lan						       "eth_mdc_y",
50029390d27SYixun Lan						       "eth_rgmii_rx_clk_y",
50129390d27SYixun Lan						       "eth_rx_dv_y",
50229390d27SYixun Lan						       "eth_rxd0_y",
50329390d27SYixun Lan						       "eth_rxd1_y",
50429390d27SYixun Lan						       "eth_rxd2_rgmii",
50529390d27SYixun Lan						       "eth_rxd3_rgmii",
50629390d27SYixun Lan						       "eth_rgmii_tx_clk",
50729390d27SYixun Lan						       "eth_txen_y",
50829390d27SYixun Lan						       "eth_txd0_y",
50929390d27SYixun Lan						       "eth_txd1_y",
51029390d27SYixun Lan						       "eth_txd2_rgmii",
51129390d27SYixun Lan						       "eth_txd3_rgmii";
51229390d27SYixun Lan						function = "eth";
51329390d27SYixun Lan					};
51429390d27SYixun Lan				};
51529390d27SYixun Lan
51689803e8bSJerome Brunet				pdm_dclk_a14_pins: pdm_dclk_a14 {
51789803e8bSJerome Brunet					mux {
51889803e8bSJerome Brunet						groups = "pdm_dclk_a14";
51989803e8bSJerome Brunet						function = "pdm";
52089803e8bSJerome Brunet					};
52189803e8bSJerome Brunet				};
52289803e8bSJerome Brunet
52389803e8bSJerome Brunet				pdm_dclk_a19_pins: pdm_dclk_a19 {
52489803e8bSJerome Brunet					mux {
52589803e8bSJerome Brunet						groups = "pdm_dclk_a19";
52689803e8bSJerome Brunet						function = "pdm";
52789803e8bSJerome Brunet					};
52889803e8bSJerome Brunet				};
52989803e8bSJerome Brunet
53089803e8bSJerome Brunet				pdm_din0_pins: pdm_din0 {
53189803e8bSJerome Brunet					mux {
53289803e8bSJerome Brunet						groups = "pdm_din0";
53389803e8bSJerome Brunet						function = "pdm";
53489803e8bSJerome Brunet					};
53589803e8bSJerome Brunet				};
53689803e8bSJerome Brunet
53789803e8bSJerome Brunet				pdm_din1_pins: pdm_din1 {
53889803e8bSJerome Brunet					mux {
53989803e8bSJerome Brunet						groups = "pdm_din1";
54089803e8bSJerome Brunet						function = "pdm";
54189803e8bSJerome Brunet					};
54289803e8bSJerome Brunet				};
54389803e8bSJerome Brunet
54489803e8bSJerome Brunet				pdm_din2_pins: pdm_din2 {
54589803e8bSJerome Brunet					mux {
54689803e8bSJerome Brunet						groups = "pdm_din2";
54789803e8bSJerome Brunet						function = "pdm";
54889803e8bSJerome Brunet					};
54989803e8bSJerome Brunet				};
55089803e8bSJerome Brunet
55189803e8bSJerome Brunet				pdm_din3_pins: pdm_din3 {
55289803e8bSJerome Brunet					mux {
55389803e8bSJerome Brunet						groups = "pdm_din3";
55489803e8bSJerome Brunet						function = "pdm";
55589803e8bSJerome Brunet					};
55689803e8bSJerome Brunet				};
55789803e8bSJerome Brunet
5584a81e5ddSJian Hu				pwm_a_a_pins: pwm_a_a {
5594a81e5ddSJian Hu					mux {
5604a81e5ddSJian Hu						groups = "pwm_a_a";
5614a81e5ddSJian Hu						function = "pwm_a";
5624a81e5ddSJian Hu					};
5634a81e5ddSJian Hu				};
5644a81e5ddSJian Hu
5654a81e5ddSJian Hu				pwm_a_x18_pins: pwm_a_x18 {
5664a81e5ddSJian Hu					mux {
5674a81e5ddSJian Hu						groups = "pwm_a_x18";
5684a81e5ddSJian Hu						function = "pwm_a";
5694a81e5ddSJian Hu					};
5704a81e5ddSJian Hu				};
5714a81e5ddSJian Hu
5724a81e5ddSJian Hu				pwm_a_x20_pins: pwm_a_x20 {
5734a81e5ddSJian Hu					mux {
5744a81e5ddSJian Hu						groups = "pwm_a_x20";
5754a81e5ddSJian Hu						function = "pwm_a";
5764a81e5ddSJian Hu					};
5774a81e5ddSJian Hu				};
5784a81e5ddSJian Hu
5794a81e5ddSJian Hu				pwm_a_z_pins: pwm_a_z {
5804a81e5ddSJian Hu					mux {
5814a81e5ddSJian Hu						groups = "pwm_a_z";
5824a81e5ddSJian Hu						function = "pwm_a";
5834a81e5ddSJian Hu					};
5844a81e5ddSJian Hu				};
5854a81e5ddSJian Hu
5864a81e5ddSJian Hu				pwm_b_a_pins: pwm_b_a {
5874a81e5ddSJian Hu					mux {
5884a81e5ddSJian Hu						groups = "pwm_b_a";
5894a81e5ddSJian Hu						function = "pwm_b";
5904a81e5ddSJian Hu					};
5914a81e5ddSJian Hu				};
5924a81e5ddSJian Hu
5934a81e5ddSJian Hu				pwm_b_x_pins: pwm_b_x {
5944a81e5ddSJian Hu					mux {
5954a81e5ddSJian Hu						groups = "pwm_b_x";
5964a81e5ddSJian Hu						function = "pwm_b";
5974a81e5ddSJian Hu					};
5984a81e5ddSJian Hu				};
5994a81e5ddSJian Hu
6004a81e5ddSJian Hu				pwm_b_z_pins: pwm_b_z {
6014a81e5ddSJian Hu					mux {
6024a81e5ddSJian Hu						groups = "pwm_b_z";
6034a81e5ddSJian Hu						function = "pwm_b";
6044a81e5ddSJian Hu					};
6054a81e5ddSJian Hu				};
6064a81e5ddSJian Hu
6074a81e5ddSJian Hu				pwm_c_a_pins: pwm_c_a {
6084a81e5ddSJian Hu					mux {
6094a81e5ddSJian Hu						groups = "pwm_c_a";
6104a81e5ddSJian Hu						function = "pwm_c";
6114a81e5ddSJian Hu					};
6124a81e5ddSJian Hu				};
6134a81e5ddSJian Hu
6144a81e5ddSJian Hu				pwm_c_x10_pins: pwm_c_x10 {
6154a81e5ddSJian Hu					mux {
6164a81e5ddSJian Hu						groups = "pwm_c_x10";
6174a81e5ddSJian Hu						function = "pwm_c";
6184a81e5ddSJian Hu					};
6194a81e5ddSJian Hu				};
6204a81e5ddSJian Hu
6214a81e5ddSJian Hu				pwm_c_x17_pins: pwm_c_x17 {
6224a81e5ddSJian Hu					mux {
6234a81e5ddSJian Hu						groups = "pwm_c_x17";
6244a81e5ddSJian Hu						function = "pwm_c";
6254a81e5ddSJian Hu					};
6264a81e5ddSJian Hu				};
6274a81e5ddSJian Hu
6284a81e5ddSJian Hu				pwm_d_x11_pins: pwm_d_x11 {
6294a81e5ddSJian Hu					mux {
6304a81e5ddSJian Hu						groups = "pwm_d_x11";
6314a81e5ddSJian Hu						function = "pwm_d";
6324a81e5ddSJian Hu					};
6334a81e5ddSJian Hu				};
6344a81e5ddSJian Hu
6354a81e5ddSJian Hu				pwm_d_x16_pins: pwm_d_x16 {
6364a81e5ddSJian Hu					mux {
6374a81e5ddSJian Hu						groups = "pwm_d_x16";
6384a81e5ddSJian Hu						function = "pwm_d";
6394a81e5ddSJian Hu					};
6404a81e5ddSJian Hu				};
6418ae4284eSSunny Luo
642c67ee0a8SJerome Brunet				spdif_in_z_pins: spdif_in_z {
643c67ee0a8SJerome Brunet					mux {
644c67ee0a8SJerome Brunet						groups = "spdif_in_z";
645c67ee0a8SJerome Brunet						function = "spdif_in";
646c67ee0a8SJerome Brunet					};
647c67ee0a8SJerome Brunet				};
648c67ee0a8SJerome Brunet
649c67ee0a8SJerome Brunet				spdif_in_a1_pins: spdif_in_a1 {
650c67ee0a8SJerome Brunet					mux {
651c67ee0a8SJerome Brunet						groups = "spdif_in_a1";
652c67ee0a8SJerome Brunet						function = "spdif_in";
653c67ee0a8SJerome Brunet					};
654c67ee0a8SJerome Brunet				};
655c67ee0a8SJerome Brunet
656c67ee0a8SJerome Brunet				spdif_in_a7_pins: spdif_in_a7 {
657c67ee0a8SJerome Brunet					mux {
658c67ee0a8SJerome Brunet						groups = "spdif_in_a7";
659c67ee0a8SJerome Brunet						function = "spdif_in";
660c67ee0a8SJerome Brunet					};
661c67ee0a8SJerome Brunet				};
662c67ee0a8SJerome Brunet
663c67ee0a8SJerome Brunet				spdif_in_a19_pins: spdif_in_a19 {
664c67ee0a8SJerome Brunet					mux {
665c67ee0a8SJerome Brunet						groups = "spdif_in_a19";
666c67ee0a8SJerome Brunet						function = "spdif_in";
667c67ee0a8SJerome Brunet					};
668c67ee0a8SJerome Brunet				};
669c67ee0a8SJerome Brunet
670c67ee0a8SJerome Brunet				spdif_in_a20_pins: spdif_in_a20 {
671c67ee0a8SJerome Brunet					mux {
672c67ee0a8SJerome Brunet						groups = "spdif_in_a20";
673c67ee0a8SJerome Brunet						function = "spdif_in";
674c67ee0a8SJerome Brunet					};
675c67ee0a8SJerome Brunet				};
676c67ee0a8SJerome Brunet
67770d4b64fSJerome Brunet				spdif_out_z_pins: spdif_out_z {
67870d4b64fSJerome Brunet					mux {
67970d4b64fSJerome Brunet						groups = "spdif_out_z";
68070d4b64fSJerome Brunet						function = "spdif_out";
68170d4b64fSJerome Brunet					};
68270d4b64fSJerome Brunet				};
68370d4b64fSJerome Brunet
68470d4b64fSJerome Brunet				spdif_out_a1_pins: spdif_out_a1 {
68570d4b64fSJerome Brunet					mux {
68670d4b64fSJerome Brunet						groups = "spdif_out_a1";
68770d4b64fSJerome Brunet						function = "spdif_out";
68870d4b64fSJerome Brunet					};
68970d4b64fSJerome Brunet				};
69070d4b64fSJerome Brunet
69170d4b64fSJerome Brunet				spdif_out_a11_pins: spdif_out_a11 {
69270d4b64fSJerome Brunet					mux {
69370d4b64fSJerome Brunet						groups = "spdif_out_a11";
69470d4b64fSJerome Brunet						function = "spdif_out";
69570d4b64fSJerome Brunet					};
69670d4b64fSJerome Brunet				};
69770d4b64fSJerome Brunet
69870d4b64fSJerome Brunet				spdif_out_a19_pins: spdif_out_a19 {
69970d4b64fSJerome Brunet					mux {
70070d4b64fSJerome Brunet						groups = "spdif_out_a19";
70170d4b64fSJerome Brunet						function = "spdif_out";
70270d4b64fSJerome Brunet					};
70370d4b64fSJerome Brunet				};
70470d4b64fSJerome Brunet
70570d4b64fSJerome Brunet				spdif_out_a20_pins: spdif_out_a20 {
70670d4b64fSJerome Brunet					mux {
70770d4b64fSJerome Brunet						groups = "spdif_out_a20";
70870d4b64fSJerome Brunet						function = "spdif_out";
70970d4b64fSJerome Brunet					};
71070d4b64fSJerome Brunet				};
71170d4b64fSJerome Brunet
7128ae4284eSSunny Luo				spi0_pins: spi0 {
7138ae4284eSSunny Luo					mux {
7148ae4284eSSunny Luo						groups = "spi0_miso",
7158ae4284eSSunny Luo							"spi0_mosi",
7168ae4284eSSunny Luo							"spi0_clk";
7178ae4284eSSunny Luo						function = "spi0";
7188ae4284eSSunny Luo					};
7198ae4284eSSunny Luo				};
7208ae4284eSSunny Luo
7218ae4284eSSunny Luo				spi0_ss0_pins: spi0_ss0 {
7228ae4284eSSunny Luo					mux {
7238ae4284eSSunny Luo						groups = "spi0_ss0";
7248ae4284eSSunny Luo						function = "spi0";
7258ae4284eSSunny Luo					};
7268ae4284eSSunny Luo				};
7278ae4284eSSunny Luo
7288ae4284eSSunny Luo				spi0_ss1_pins: spi0_ss1 {
7298ae4284eSSunny Luo					mux {
7308ae4284eSSunny Luo						groups = "spi0_ss1";
7318ae4284eSSunny Luo						function = "spi0";
7328ae4284eSSunny Luo					};
7338ae4284eSSunny Luo				};
7348ae4284eSSunny Luo
7358ae4284eSSunny Luo				spi0_ss2_pins: spi0_ss2 {
7368ae4284eSSunny Luo					mux {
7378ae4284eSSunny Luo						groups = "spi0_ss2";
7388ae4284eSSunny Luo						function = "spi0";
7398ae4284eSSunny Luo					};
7408ae4284eSSunny Luo				};
7418ae4284eSSunny Luo
7428ae4284eSSunny Luo
7438ae4284eSSunny Luo				spi1_a_pins: spi1_a {
7448ae4284eSSunny Luo					mux {
7458ae4284eSSunny Luo						groups = "spi1_miso_a",
7468ae4284eSSunny Luo							"spi1_mosi_a",
7478ae4284eSSunny Luo							"spi1_clk_a";
7488ae4284eSSunny Luo						function = "spi1";
7498ae4284eSSunny Luo					};
7508ae4284eSSunny Luo				};
7518ae4284eSSunny Luo
7528ae4284eSSunny Luo				spi1_ss0_a_pins: spi1_ss0_a {
7538ae4284eSSunny Luo					mux {
7548ae4284eSSunny Luo						groups = "spi1_ss0_a";
7558ae4284eSSunny Luo						function = "spi1";
7568ae4284eSSunny Luo					};
7578ae4284eSSunny Luo				};
7588ae4284eSSunny Luo
7598ae4284eSSunny Luo				spi1_ss1_pins: spi1_ss1 {
7608ae4284eSSunny Luo					mux {
7618ae4284eSSunny Luo						groups = "spi1_ss1";
7628ae4284eSSunny Luo						function = "spi1";
7638ae4284eSSunny Luo					};
7648ae4284eSSunny Luo				};
7658ae4284eSSunny Luo
7668ae4284eSSunny Luo				spi1_x_pins: spi1_x {
7678ae4284eSSunny Luo					mux {
7688ae4284eSSunny Luo						groups = "spi1_miso_x",
7698ae4284eSSunny Luo							"spi1_mosi_x",
7708ae4284eSSunny Luo							"spi1_clk_x";
7718ae4284eSSunny Luo						function = "spi1";
7728ae4284eSSunny Luo					};
7738ae4284eSSunny Luo				};
7748ae4284eSSunny Luo
7758ae4284eSSunny Luo				spi1_ss0_x_pins: spi1_ss0_x {
7768ae4284eSSunny Luo					mux {
7778ae4284eSSunny Luo						groups = "spi1_ss0_x";
7788ae4284eSSunny Luo						function = "spi1";
7798ae4284eSSunny Luo					};
7808ae4284eSSunny Luo				};
7818a7669a5SJian Hu
7828a7669a5SJian Hu				i2c0_pins: i2c0 {
7838a7669a5SJian Hu					mux {
7848a7669a5SJian Hu						groups = "i2c0_sck",
7858a7669a5SJian Hu							"i2c0_sda";
7868a7669a5SJian Hu						function = "i2c0";
7878a7669a5SJian Hu					};
7888a7669a5SJian Hu				};
7898a7669a5SJian Hu
7908a7669a5SJian Hu				i2c1_z_pins: i2c1_z {
7918a7669a5SJian Hu					mux {
7928a7669a5SJian Hu						groups = "i2c1_sck_z",
7938a7669a5SJian Hu							"i2c1_sda_z";
7948a7669a5SJian Hu						function = "i2c1";
7958a7669a5SJian Hu					};
7968a7669a5SJian Hu				};
7978a7669a5SJian Hu
7988a7669a5SJian Hu				i2c1_x_pins: i2c1_x {
7998a7669a5SJian Hu					mux {
8008a7669a5SJian Hu						groups = "i2c1_sck_x",
8018a7669a5SJian Hu							"i2c1_sda_x";
8028a7669a5SJian Hu						function = "i2c1";
8038a7669a5SJian Hu					};
8048a7669a5SJian Hu				};
8058a7669a5SJian Hu
8068a7669a5SJian Hu				i2c2_x_pins: i2c2_x {
8078a7669a5SJian Hu					mux {
8088a7669a5SJian Hu						groups = "i2c2_sck_x",
8098a7669a5SJian Hu							"i2c2_sda_x";
8108a7669a5SJian Hu						function = "i2c2";
8118a7669a5SJian Hu					};
8128a7669a5SJian Hu				};
8138a7669a5SJian Hu
8148a7669a5SJian Hu				i2c2_a_pins: i2c2_a {
8158a7669a5SJian Hu					mux {
8168a7669a5SJian Hu						groups = "i2c2_sck_a",
8178a7669a5SJian Hu							"i2c2_sda_a";
8188a7669a5SJian Hu						function = "i2c2";
8198a7669a5SJian Hu					};
8208a7669a5SJian Hu				};
8218a7669a5SJian Hu
8228a7669a5SJian Hu				i2c3_a6_pins: i2c3_a6 {
8238a7669a5SJian Hu					mux {
8248a7669a5SJian Hu						groups = "i2c3_sda_a6",
8258a7669a5SJian Hu							"i2c3_sck_a7";
8268a7669a5SJian Hu						function = "i2c3";
8278a7669a5SJian Hu					};
8288a7669a5SJian Hu				};
8298a7669a5SJian Hu
8308a7669a5SJian Hu				i2c3_a12_pins: i2c3_a12 {
8318a7669a5SJian Hu					mux {
8328a7669a5SJian Hu						groups = "i2c3_sda_a12",
8338a7669a5SJian Hu							"i2c3_sck_a13";
8348a7669a5SJian Hu						function = "i2c3";
8358a7669a5SJian Hu					};
8368a7669a5SJian Hu				};
8378a7669a5SJian Hu
8388a7669a5SJian Hu				i2c3_a19_pins: i2c3_a19 {
8398a7669a5SJian Hu					mux {
8408a7669a5SJian Hu						groups = "i2c3_sda_a19",
8418a7669a5SJian Hu							"i2c3_sck_a20";
8428a7669a5SJian Hu						function = "i2c3";
8438a7669a5SJian Hu					};
8448a7669a5SJian Hu				};
8454eae66a6SYixun Lan
8464eae66a6SYixun Lan				uart_a_pins: uart_a {
8474eae66a6SYixun Lan					mux {
8484eae66a6SYixun Lan						groups = "uart_tx_a",
8494eae66a6SYixun Lan							"uart_rx_a";
8504eae66a6SYixun Lan						function = "uart_a";
8514eae66a6SYixun Lan					};
8524eae66a6SYixun Lan				};
8534eae66a6SYixun Lan
8544eae66a6SYixun Lan				uart_a_cts_rts_pins: uart_a_cts_rts {
8554eae66a6SYixun Lan					mux {
8564eae66a6SYixun Lan						groups = "uart_cts_a",
8574eae66a6SYixun Lan							"uart_rts_a";
8584eae66a6SYixun Lan						function = "uart_a";
8594eae66a6SYixun Lan					};
8604eae66a6SYixun Lan				};
8614eae66a6SYixun Lan
8624eae66a6SYixun Lan				uart_b_x_pins: uart_b_x {
8634eae66a6SYixun Lan					mux {
8644eae66a6SYixun Lan						groups = "uart_tx_b_x",
8654eae66a6SYixun Lan							"uart_rx_b_x";
8664eae66a6SYixun Lan						function = "uart_b";
8674eae66a6SYixun Lan					};
8684eae66a6SYixun Lan				};
8694eae66a6SYixun Lan
8704eae66a6SYixun Lan				uart_b_x_cts_rts_pins: uart_b_x_cts_rts {
8714eae66a6SYixun Lan					mux {
8724eae66a6SYixun Lan						groups = "uart_cts_b_x",
8734eae66a6SYixun Lan							"uart_rts_b_x";
8744eae66a6SYixun Lan						function = "uart_b";
8754eae66a6SYixun Lan					};
8764eae66a6SYixun Lan				};
8774eae66a6SYixun Lan
8784eae66a6SYixun Lan				uart_b_z_pins: uart_b_z {
8794eae66a6SYixun Lan					mux {
8804eae66a6SYixun Lan						groups = "uart_tx_b_z",
8814eae66a6SYixun Lan							"uart_rx_b_z";
8824eae66a6SYixun Lan						function = "uart_b";
8834eae66a6SYixun Lan					};
8844eae66a6SYixun Lan				};
8854eae66a6SYixun Lan
8864eae66a6SYixun Lan				uart_b_z_cts_rts_pins: uart_b_z_cts_rts {
8874eae66a6SYixun Lan					mux {
8884eae66a6SYixun Lan						groups = "uart_cts_b_z",
8894eae66a6SYixun Lan							"uart_rts_b_z";
8904eae66a6SYixun Lan						function = "uart_b";
8914eae66a6SYixun Lan					};
8924eae66a6SYixun Lan				};
8934eae66a6SYixun Lan
8944eae66a6SYixun Lan				uart_ao_b_z_pins: uart_ao_b_z {
8954eae66a6SYixun Lan					mux {
8964eae66a6SYixun Lan						groups = "uart_ao_tx_b_z",
8974eae66a6SYixun Lan							"uart_ao_rx_b_z";
8984eae66a6SYixun Lan						function = "uart_ao_b_z";
8994eae66a6SYixun Lan					};
9004eae66a6SYixun Lan				};
9014eae66a6SYixun Lan
9024eae66a6SYixun Lan				uart_ao_b_z_cts_rts_pins: uart_ao_b_z_cts_rts {
9034eae66a6SYixun Lan					mux {
9044eae66a6SYixun Lan						groups = "uart_ao_cts_b_z",
9054eae66a6SYixun Lan							"uart_ao_rts_b_z";
9064eae66a6SYixun Lan						function = "uart_ao_b_z";
9074eae66a6SYixun Lan					};
9084eae66a6SYixun Lan				};
9090df8fbb9SJerome Brunet
9100df8fbb9SJerome Brunet				mclk_b_pins: mclk_b {
9110df8fbb9SJerome Brunet					mux {
9120df8fbb9SJerome Brunet						groups = "mclk_b";
9130df8fbb9SJerome Brunet						function = "mclk_b";
9140df8fbb9SJerome Brunet					};
9150df8fbb9SJerome Brunet				};
9160df8fbb9SJerome Brunet
9170df8fbb9SJerome Brunet				mclk_c_pins: mclk_c {
9180df8fbb9SJerome Brunet					mux {
9190df8fbb9SJerome Brunet						groups = "mclk_c";
9200df8fbb9SJerome Brunet						function = "mclk_c";
9210df8fbb9SJerome Brunet					};
9220df8fbb9SJerome Brunet				};
9230df8fbb9SJerome Brunet
9240df8fbb9SJerome Brunet				tdma_sclk_pins: tdma_sclk {
9250df8fbb9SJerome Brunet					mux {
9260df8fbb9SJerome Brunet						groups = "tdma_sclk";
9270df8fbb9SJerome Brunet						function = "tdma";
9280df8fbb9SJerome Brunet					};
9290df8fbb9SJerome Brunet				};
9300df8fbb9SJerome Brunet
9310df8fbb9SJerome Brunet				tdma_sclk_slv_pins: tdma_sclk_slv {
9320df8fbb9SJerome Brunet					mux {
9330df8fbb9SJerome Brunet						groups = "tdma_sclk_slv";
9340df8fbb9SJerome Brunet						function = "tdma";
9350df8fbb9SJerome Brunet					};
9360df8fbb9SJerome Brunet				};
9370df8fbb9SJerome Brunet
9380df8fbb9SJerome Brunet				tdma_fs_pins: tdma_fs {
9390df8fbb9SJerome Brunet					mux {
9400df8fbb9SJerome Brunet						groups = "tdma_fs";
9410df8fbb9SJerome Brunet						function = "tdma";
9420df8fbb9SJerome Brunet					};
9430df8fbb9SJerome Brunet				};
9440df8fbb9SJerome Brunet
9450df8fbb9SJerome Brunet				tdma_fs_slv_pins: tdma_fs_slv {
9460df8fbb9SJerome Brunet					mux {
9470df8fbb9SJerome Brunet						groups = "tdma_fs_slv";
9480df8fbb9SJerome Brunet						function = "tdma";
9490df8fbb9SJerome Brunet					};
9500df8fbb9SJerome Brunet				};
9510df8fbb9SJerome Brunet
9520df8fbb9SJerome Brunet				tdma_din0_pins: tdma_din0 {
9530df8fbb9SJerome Brunet					mux {
9540df8fbb9SJerome Brunet						groups = "tdma_din0";
9550df8fbb9SJerome Brunet						function = "tdma";
9560df8fbb9SJerome Brunet					};
9570df8fbb9SJerome Brunet				};
9580df8fbb9SJerome Brunet
9590df8fbb9SJerome Brunet				tdma_dout0_x14_pins: tdma_dout0_x14 {
9600df8fbb9SJerome Brunet					mux {
9610df8fbb9SJerome Brunet						groups = "tdma_dout0_x14";
9620df8fbb9SJerome Brunet						function = "tdma";
9630df8fbb9SJerome Brunet					};
9640df8fbb9SJerome Brunet				};
9650df8fbb9SJerome Brunet
9660df8fbb9SJerome Brunet				tdma_dout0_x15_pins: tdma_dout0_x15 {
9670df8fbb9SJerome Brunet					mux {
9680df8fbb9SJerome Brunet						groups = "tdma_dout0_x15";
9690df8fbb9SJerome Brunet						function = "tdma";
9700df8fbb9SJerome Brunet					};
9710df8fbb9SJerome Brunet				};
9720df8fbb9SJerome Brunet
9730df8fbb9SJerome Brunet				tdma_dout1_pins: tdma_dout1 {
9740df8fbb9SJerome Brunet					mux {
9750df8fbb9SJerome Brunet						groups = "tdma_dout1";
9760df8fbb9SJerome Brunet						function = "tdma";
9770df8fbb9SJerome Brunet					};
9780df8fbb9SJerome Brunet				};
9790df8fbb9SJerome Brunet
9800df8fbb9SJerome Brunet				tdma_din1_pins: tdma_din1 {
9810df8fbb9SJerome Brunet					mux {
9820df8fbb9SJerome Brunet						groups = "tdma_din1";
9830df8fbb9SJerome Brunet						function = "tdma";
9840df8fbb9SJerome Brunet					};
9850df8fbb9SJerome Brunet				};
9860df8fbb9SJerome Brunet
9870df8fbb9SJerome Brunet				tdmb_sclk_pins: tdmb_sclk {
9880df8fbb9SJerome Brunet					mux {
9890df8fbb9SJerome Brunet						groups = "tdmb_sclk";
9900df8fbb9SJerome Brunet						function = "tdmb";
9910df8fbb9SJerome Brunet					};
9920df8fbb9SJerome Brunet				};
9930df8fbb9SJerome Brunet
9940df8fbb9SJerome Brunet				tdmb_sclk_slv_pins: tdmb_sclk_slv {
9950df8fbb9SJerome Brunet					mux {
9960df8fbb9SJerome Brunet						groups = "tdmb_sclk_slv";
9970df8fbb9SJerome Brunet						function = "tdmb";
9980df8fbb9SJerome Brunet					};
9990df8fbb9SJerome Brunet				};
10000df8fbb9SJerome Brunet
10010df8fbb9SJerome Brunet				tdmb_fs_pins: tdmb_fs {
10020df8fbb9SJerome Brunet					mux {
10030df8fbb9SJerome Brunet						groups = "tdmb_fs";
10040df8fbb9SJerome Brunet						function = "tdmb";
10050df8fbb9SJerome Brunet					};
10060df8fbb9SJerome Brunet				};
10070df8fbb9SJerome Brunet
10080df8fbb9SJerome Brunet				tdmb_fs_slv_pins: tdmb_fs_slv {
10090df8fbb9SJerome Brunet					mux {
10100df8fbb9SJerome Brunet						groups = "tdmb_fs_slv";
10110df8fbb9SJerome Brunet						function = "tdmb";
10120df8fbb9SJerome Brunet					};
10130df8fbb9SJerome Brunet				};
10140df8fbb9SJerome Brunet
10150df8fbb9SJerome Brunet				tdmb_din0_pins: tdmb_din0 {
10160df8fbb9SJerome Brunet					mux {
10170df8fbb9SJerome Brunet						groups = "tdmb_din0";
10180df8fbb9SJerome Brunet						function = "tdmb";
10190df8fbb9SJerome Brunet					};
10200df8fbb9SJerome Brunet				};
10210df8fbb9SJerome Brunet
10220df8fbb9SJerome Brunet				tdmb_dout0_pins: tdmb_dout0 {
10230df8fbb9SJerome Brunet					mux {
10240df8fbb9SJerome Brunet						groups = "tdmb_dout0";
10250df8fbb9SJerome Brunet						function = "tdmb";
10260df8fbb9SJerome Brunet					};
10270df8fbb9SJerome Brunet				};
10280df8fbb9SJerome Brunet
10290df8fbb9SJerome Brunet				tdmb_din1_pins: tdmb_din1 {
10300df8fbb9SJerome Brunet					mux {
10310df8fbb9SJerome Brunet						groups = "tdmb_din1";
10320df8fbb9SJerome Brunet						function = "tdmb";
10330df8fbb9SJerome Brunet					};
10340df8fbb9SJerome Brunet				};
10350df8fbb9SJerome Brunet
10360df8fbb9SJerome Brunet				tdmb_dout1_pins: tdmb_dout1 {
10370df8fbb9SJerome Brunet					mux {
10380df8fbb9SJerome Brunet						groups = "tdmb_dout1";
10390df8fbb9SJerome Brunet						function = "tdmb";
10400df8fbb9SJerome Brunet					};
10410df8fbb9SJerome Brunet				};
10420df8fbb9SJerome Brunet
10430df8fbb9SJerome Brunet				tdmb_din2_pins: tdmb_din2 {
10440df8fbb9SJerome Brunet					mux {
10450df8fbb9SJerome Brunet						groups = "tdmb_din2";
10460df8fbb9SJerome Brunet						function = "tdmb";
10470df8fbb9SJerome Brunet					};
10480df8fbb9SJerome Brunet				};
10490df8fbb9SJerome Brunet
10500df8fbb9SJerome Brunet				tdmb_dout2_pins: tdmb_dout2 {
10510df8fbb9SJerome Brunet					mux {
10520df8fbb9SJerome Brunet						groups = "tdmb_dout2";
10530df8fbb9SJerome Brunet						function = "tdmb";
10540df8fbb9SJerome Brunet					};
10550df8fbb9SJerome Brunet				};
10560df8fbb9SJerome Brunet
10570df8fbb9SJerome Brunet				tdmb_din3_pins: tdmb_din3 {
10580df8fbb9SJerome Brunet					mux {
10590df8fbb9SJerome Brunet						groups = "tdmb_din3";
10600df8fbb9SJerome Brunet						function = "tdmb";
10610df8fbb9SJerome Brunet					};
10620df8fbb9SJerome Brunet				};
10630df8fbb9SJerome Brunet
10640df8fbb9SJerome Brunet				tdmb_dout3_pins: tdmb_dout3 {
10650df8fbb9SJerome Brunet					mux {
10660df8fbb9SJerome Brunet						groups = "tdmb_dout3";
10670df8fbb9SJerome Brunet						function = "tdmb";
10680df8fbb9SJerome Brunet					};
10690df8fbb9SJerome Brunet				};
10700df8fbb9SJerome Brunet
10710df8fbb9SJerome Brunet				tdmc_sclk_pins: tdmc_sclk {
10720df8fbb9SJerome Brunet					mux {
10730df8fbb9SJerome Brunet						groups = "tdmc_sclk";
10740df8fbb9SJerome Brunet						function = "tdmc";
10750df8fbb9SJerome Brunet					};
10760df8fbb9SJerome Brunet				};
10770df8fbb9SJerome Brunet
10780df8fbb9SJerome Brunet				tdmc_sclk_slv_pins: tdmc_sclk_slv {
10790df8fbb9SJerome Brunet					mux {
10800df8fbb9SJerome Brunet						groups = "tdmc_sclk_slv";
10810df8fbb9SJerome Brunet						function = "tdmc";
10820df8fbb9SJerome Brunet					};
10830df8fbb9SJerome Brunet				};
10840df8fbb9SJerome Brunet
10850df8fbb9SJerome Brunet				tdmc_fs_pins: tdmc_fs {
10860df8fbb9SJerome Brunet					mux {
10870df8fbb9SJerome Brunet						groups = "tdmc_fs";
10880df8fbb9SJerome Brunet						function = "tdmc";
10890df8fbb9SJerome Brunet					};
10900df8fbb9SJerome Brunet				};
10910df8fbb9SJerome Brunet
10920df8fbb9SJerome Brunet				tdmc_fs_slv_pins: tdmc_fs_slv {
10930df8fbb9SJerome Brunet					mux {
10940df8fbb9SJerome Brunet						groups = "tdmc_fs_slv";
10950df8fbb9SJerome Brunet						function = "tdmc";
10960df8fbb9SJerome Brunet					};
10970df8fbb9SJerome Brunet				};
10980df8fbb9SJerome Brunet
10990df8fbb9SJerome Brunet				tdmc_din0_pins: tdmc_din0 {
11000df8fbb9SJerome Brunet					mux {
11010df8fbb9SJerome Brunet						groups = "tdmc_din0";
11020df8fbb9SJerome Brunet						function = "tdmc";
11030df8fbb9SJerome Brunet					};
11040df8fbb9SJerome Brunet				};
11050df8fbb9SJerome Brunet
11060df8fbb9SJerome Brunet				tdmc_dout0_pins: tdmc_dout0 {
11070df8fbb9SJerome Brunet					mux {
11080df8fbb9SJerome Brunet						groups = "tdmc_dout0";
11090df8fbb9SJerome Brunet						function = "tdmc";
11100df8fbb9SJerome Brunet					};
11110df8fbb9SJerome Brunet				};
11120df8fbb9SJerome Brunet
11130df8fbb9SJerome Brunet				tdmc_din1_pins: tdmc_din1 {
11140df8fbb9SJerome Brunet					mux {
11150df8fbb9SJerome Brunet						groups = "tdmc_din1";
11160df8fbb9SJerome Brunet						function = "tdmc";
11170df8fbb9SJerome Brunet					};
11180df8fbb9SJerome Brunet				};
11190df8fbb9SJerome Brunet
11200df8fbb9SJerome Brunet				tdmc_dout1_pins: tdmc_dout1 {
11210df8fbb9SJerome Brunet					mux {
11220df8fbb9SJerome Brunet						groups = "tdmc_dout1";
11230df8fbb9SJerome Brunet						function = "tdmc";
11240df8fbb9SJerome Brunet					};
11250df8fbb9SJerome Brunet				};
11260df8fbb9SJerome Brunet
11270df8fbb9SJerome Brunet				tdmc_din2_pins: tdmc_din2 {
11280df8fbb9SJerome Brunet					mux {
11290df8fbb9SJerome Brunet						groups = "tdmc_din2";
11300df8fbb9SJerome Brunet						function = "tdmc";
11310df8fbb9SJerome Brunet					};
11320df8fbb9SJerome Brunet				};
11330df8fbb9SJerome Brunet
11340df8fbb9SJerome Brunet				tdmc_dout2_pins: tdmc_dout2 {
11350df8fbb9SJerome Brunet					mux {
11360df8fbb9SJerome Brunet						groups = "tdmc_dout2";
11370df8fbb9SJerome Brunet						function = "tdmc";
11380df8fbb9SJerome Brunet					};
11390df8fbb9SJerome Brunet				};
11400df8fbb9SJerome Brunet
11410df8fbb9SJerome Brunet				tdmc_din3_pins: tdmc_din3 {
11420df8fbb9SJerome Brunet					mux {
11430df8fbb9SJerome Brunet						groups = "tdmc_din3";
11440df8fbb9SJerome Brunet						function = "tdmc";
11450df8fbb9SJerome Brunet					};
11460df8fbb9SJerome Brunet				};
11470df8fbb9SJerome Brunet
11480df8fbb9SJerome Brunet				tdmc_dout3_pins: tdmc_dout3 {
11490df8fbb9SJerome Brunet					mux {
11500df8fbb9SJerome Brunet						groups = "tdmc_dout3";
11510df8fbb9SJerome Brunet						function = "tdmc";
11520df8fbb9SJerome Brunet					};
11530df8fbb9SJerome Brunet				};
1154de05ded6SXingyu Chen			};
1155de05ded6SXingyu Chen		};
1156de05ded6SXingyu Chen
11579d59b708SYixun Lan		sram: sram@fffc0000 {
11589d59b708SYixun Lan			compatible = "amlogic,meson-axg-sram", "mmio-sram";
11599d59b708SYixun Lan			reg = <0x0 0xfffc0000 0x0 0x20000>;
11609d59b708SYixun Lan			#address-cells = <1>;
11619d59b708SYixun Lan			#size-cells = <1>;
11629d59b708SYixun Lan			ranges = <0 0x0 0xfffc0000 0x20000>;
11639d59b708SYixun Lan
11649d59b708SYixun Lan			cpu_scp_lpri: scp-shmem@0 {
11659d59b708SYixun Lan				compatible = "amlogic,meson-axg-scp-shmem";
11669d59b708SYixun Lan				reg = <0x13000 0x400>;
11679d59b708SYixun Lan			};
11689d59b708SYixun Lan
11699d59b708SYixun Lan			cpu_scp_hpri: scp-shmem@200 {
11709d59b708SYixun Lan				compatible = "amlogic,meson-axg-scp-shmem";
11719d59b708SYixun Lan				reg = <0x13400 0x400>;
11729d59b708SYixun Lan			};
11739d59b708SYixun Lan		};
11749d59b708SYixun Lan
11750cb6c604SKevin Hilman		aobus: bus@ff800000 {
11769d59b708SYixun Lan			compatible = "simple-bus";
11779d59b708SYixun Lan			reg = <0x0 0xff800000 0x0 0x100000>;
11789d59b708SYixun Lan			#address-cells = <2>;
11799d59b708SYixun Lan			#size-cells = <2>;
11809d59b708SYixun Lan			ranges = <0x0 0x0 0x0 0xff800000 0x0 0x100000>;
11819d59b708SYixun Lan
1182e03421ecSQiufang Dai			sysctrl_AO: sys-ctrl@0 {
1183e03421ecSQiufang Dai				compatible = "amlogic,meson-axg-ao-sysctrl", "syscon", "simple-mfd";
1184e03421ecSQiufang Dai				reg =  <0x0 0x0 0x0 0x100>;
1185e03421ecSQiufang Dai
1186e03421ecSQiufang Dai				clkc_AO: clock-controller {
1187e03421ecSQiufang Dai					compatible = "amlogic,meson-axg-aoclkc";
1188e03421ecSQiufang Dai					#clock-cells = <1>;
1189e03421ecSQiufang Dai					#reset-cells = <1>;
1190e03421ecSQiufang Dai				};
1191e03421ecSQiufang Dai			};
1192e03421ecSQiufang Dai
1193de05ded6SXingyu Chen			pinctrl_aobus: pinctrl@14 {
1194de05ded6SXingyu Chen				compatible = "amlogic,meson-axg-aobus-pinctrl";
1195de05ded6SXingyu Chen				#address-cells = <2>;
1196de05ded6SXingyu Chen				#size-cells = <2>;
1197de05ded6SXingyu Chen				ranges;
1198de05ded6SXingyu Chen
1199de05ded6SXingyu Chen				gpio_ao: bank@14 {
1200de05ded6SXingyu Chen					reg = <0x0 0x00014 0x0 0x8>,
1201de05ded6SXingyu Chen						<0x0 0x0002c 0x0 0x4>,
1202de05ded6SXingyu Chen						<0x0 0x00024 0x0 0x8>;
1203de05ded6SXingyu Chen					reg-names = "mux", "pull", "gpio";
1204de05ded6SXingyu Chen					gpio-controller;
1205de05ded6SXingyu Chen					#gpio-cells = <2>;
1206de05ded6SXingyu Chen					gpio-ranges = <&pinctrl_aobus 0 0 15>;
1207de05ded6SXingyu Chen				};
12087bd46a79SYixun Lan
1209c054b6c2SJerome Brunet				i2c_ao_sck_4_pins: i2c_ao_sck_4 {
1210c054b6c2SJerome Brunet					mux {
1211c054b6c2SJerome Brunet						groups = "i2c_ao_sck_4";
1212c054b6c2SJerome Brunet						function = "i2c_ao";
1213c054b6c2SJerome Brunet					};
1214c054b6c2SJerome Brunet				};
1215c054b6c2SJerome Brunet
1216c054b6c2SJerome Brunet				i2c_ao_sck_8_pins: i2c_ao_sck_8 {
1217c054b6c2SJerome Brunet					mux {
1218c054b6c2SJerome Brunet						groups = "i2c_ao_sck_8";
1219c054b6c2SJerome Brunet						function = "i2c_ao";
1220c054b6c2SJerome Brunet					};
1221c054b6c2SJerome Brunet				};
1222c054b6c2SJerome Brunet
1223c054b6c2SJerome Brunet				i2c_ao_sck_10_pins: i2c_ao_sck_10 {
1224c054b6c2SJerome Brunet					mux {
1225c054b6c2SJerome Brunet						groups = "i2c_ao_sck_10";
1226c054b6c2SJerome Brunet						function = "i2c_ao";
1227c054b6c2SJerome Brunet					};
1228c054b6c2SJerome Brunet				};
1229c054b6c2SJerome Brunet
1230c054b6c2SJerome Brunet				i2c_ao_sda_5_pins: i2c_ao_sda_5 {
1231c054b6c2SJerome Brunet					mux {
1232c054b6c2SJerome Brunet						groups = "i2c_ao_sda_5";
1233c054b6c2SJerome Brunet						function = "i2c_ao";
1234c054b6c2SJerome Brunet					};
1235c054b6c2SJerome Brunet				};
1236c054b6c2SJerome Brunet
1237c054b6c2SJerome Brunet				i2c_ao_sda_9_pins: i2c_ao_sda_9 {
1238c054b6c2SJerome Brunet					mux {
1239c054b6c2SJerome Brunet						groups = "i2c_ao_sda_9";
1240c054b6c2SJerome Brunet						function = "i2c_ao";
1241c054b6c2SJerome Brunet					};
1242c054b6c2SJerome Brunet				};
1243c054b6c2SJerome Brunet
1244c054b6c2SJerome Brunet				i2c_ao_sda_11_pins: i2c_ao_sda_11 {
1245c054b6c2SJerome Brunet					mux {
1246c054b6c2SJerome Brunet						groups = "i2c_ao_sda_11";
1247c054b6c2SJerome Brunet						function = "i2c_ao";
1248c054b6c2SJerome Brunet					};
1249c054b6c2SJerome Brunet				};
1250c054b6c2SJerome Brunet
12517bd46a79SYixun Lan				remote_input_ao_pins: remote_input_ao {
12527bd46a79SYixun Lan					mux {
12537bd46a79SYixun Lan						groups = "remote_input_ao";
12547bd46a79SYixun Lan						function = "remote_input_ao";
12557bd46a79SYixun Lan					};
12567bd46a79SYixun Lan				};
12574eae66a6SYixun Lan
12584eae66a6SYixun Lan				uart_ao_a_pins: uart_ao_a {
12594eae66a6SYixun Lan					mux {
12604eae66a6SYixun Lan						groups = "uart_ao_tx_a",
12614eae66a6SYixun Lan							"uart_ao_rx_a";
12624eae66a6SYixun Lan						function = "uart_ao_a";
12634eae66a6SYixun Lan					};
12644eae66a6SYixun Lan				};
12654eae66a6SYixun Lan
12664eae66a6SYixun Lan				uart_ao_a_cts_rts_pins: uart_ao_a_cts_rts {
12674eae66a6SYixun Lan					mux {
12684eae66a6SYixun Lan						groups = "uart_ao_cts_a",
12694eae66a6SYixun Lan							"uart_ao_rts_a";
12704eae66a6SYixun Lan						function = "uart_ao_a";
12714eae66a6SYixun Lan					};
12724eae66a6SYixun Lan				};
12734eae66a6SYixun Lan
12744eae66a6SYixun Lan				uart_ao_b_pins: uart_ao_b {
12754eae66a6SYixun Lan					mux {
12764eae66a6SYixun Lan						groups = "uart_ao_tx_b",
12774eae66a6SYixun Lan							"uart_ao_rx_b";
12784eae66a6SYixun Lan						function = "uart_ao_b";
12794eae66a6SYixun Lan					};
12804eae66a6SYixun Lan				};
12814eae66a6SYixun Lan
12824eae66a6SYixun Lan				uart_ao_b_cts_rts_pins: uart_ao_b_cts_rts {
12834eae66a6SYixun Lan					mux {
12844eae66a6SYixun Lan						groups = "uart_ao_cts_b",
12854eae66a6SYixun Lan							"uart_ao_rts_b";
12864eae66a6SYixun Lan						function = "uart_ao_b";
12874eae66a6SYixun Lan					};
12884eae66a6SYixun Lan				};
1289de05ded6SXingyu Chen			};
1290de05ded6SXingyu Chen
1291a04c18cbSJerome Brunet			sec_AO: ao-secure@140 {
1292a04c18cbSJerome Brunet				compatible = "amlogic,meson-gx-ao-secure", "syscon";
1293a04c18cbSJerome Brunet				reg = <0x0 0x140 0x0 0x140>;
1294a04c18cbSJerome Brunet				amlogic,has-chip-id;
1295a04c18cbSJerome Brunet			};
1296a04c18cbSJerome Brunet
12974a81e5ddSJian Hu			pwm_AO_ab: pwm@7000 {
12984a81e5ddSJian Hu				compatible = "amlogic,meson-axg-ao-pwm";
12994a81e5ddSJian Hu				reg = <0x0 0x07000 0x0 0x20>;
13004a81e5ddSJian Hu				#pwm-cells = <3>;
13014a81e5ddSJian Hu				status = "disabled";
13024a81e5ddSJian Hu			};
13034a81e5ddSJian Hu
13044a81e5ddSJian Hu			pwm_AO_cd: pwm@2000 {
1305b4ff05caSJerome Brunet				compatible = "amlogic,meson-axg-ao-pwm";
13064a81e5ddSJian Hu				reg = <0x0 0x02000  0x0 0x20>;
13074a81e5ddSJian Hu				#pwm-cells = <3>;
13084a81e5ddSJian Hu				status = "disabled";
13094a81e5ddSJian Hu			};
13104a81e5ddSJian Hu
1311dc6f858eSJian Hu			i2c_AO: i2c@5000 {
1312dc6f858eSJian Hu				compatible = "amlogic,meson-axg-i2c";
1313dc6f858eSJian Hu				reg = <0x0 0x05000 0x0 0x20>;
1314dc6f858eSJian Hu				interrupts = <GIC_SPI 195 IRQ_TYPE_EDGE_RISING>;
131509eeaf44SJerome Brunet				clocks = <&clkc CLKID_AO_I2C>;
1316dc6f858eSJian Hu				#address-cells = <1>;
1317dc6f858eSJian Hu				#size-cells = <0>;
13182b6ff972SJerome Brunet				status = "disabled";
1319dc6f858eSJian Hu			};
1320dc6f858eSJian Hu
13219d59b708SYixun Lan			uart_AO: serial@3000 {
13229d59b708SYixun Lan				compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart";
13239d59b708SYixun Lan				reg = <0x0 0x3000 0x0 0x18>;
13249d59b708SYixun Lan				interrupts = <GIC_SPI 193 IRQ_TYPE_EDGE_RISING>;
13259adda353SYixun Lan				clocks = <&xtal>, <&clkc_AO CLKID_AO_UART1>, <&xtal>;
13269d59b708SYixun Lan				clock-names = "xtal", "pclk", "baud";
13279d59b708SYixun Lan				status = "disabled";
13289d59b708SYixun Lan			};
13299d59b708SYixun Lan
13309d59b708SYixun Lan			uart_AO_B: serial@4000 {
13319d59b708SYixun Lan				compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart";
13329d59b708SYixun Lan				reg = <0x0 0x4000 0x0 0x18>;
13339d59b708SYixun Lan				interrupts = <GIC_SPI 197 IRQ_TYPE_EDGE_RISING>;
13349adda353SYixun Lan				clocks = <&xtal>, <&clkc_AO CLKID_AO_UART2>, <&xtal>;
13359d59b708SYixun Lan				clock-names = "xtal", "pclk", "baud";
13369d59b708SYixun Lan				status = "disabled";
13379d59b708SYixun Lan			};
13387bd46a79SYixun Lan
13397bd46a79SYixun Lan			ir: ir@8000 {
13407bd46a79SYixun Lan				compatible = "amlogic,meson-gxbb-ir";
13417bd46a79SYixun Lan				reg = <0x0 0x8000 0x0 0x20>;
13427bd46a79SYixun Lan				interrupts = <GIC_SPI 196 IRQ_TYPE_EDGE_RISING>;
13437bd46a79SYixun Lan				status = "disabled";
13447bd46a79SYixun Lan			};
1345a51b74eaSXingyu Chen
1346a51b74eaSXingyu Chen			saradc: adc@9000 {
1347a51b74eaSXingyu Chen				compatible = "amlogic,meson-axg-saradc",
1348a51b74eaSXingyu Chen					"amlogic,meson-saradc";
1349a51b74eaSXingyu Chen				reg = <0x0 0x9000 0x0 0x38>;
1350a51b74eaSXingyu Chen				#io-channel-cells = <1>;
1351a51b74eaSXingyu Chen				interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;
1352a51b74eaSXingyu Chen				clocks = <&xtal>,
1353a51b74eaSXingyu Chen					<&clkc_AO CLKID_AO_SAR_ADC>,
1354a51b74eaSXingyu Chen					<&clkc_AO CLKID_AO_SAR_ADC_CLK>,
1355a51b74eaSXingyu Chen					<&clkc_AO CLKID_AO_SAR_ADC_SEL>;
1356a51b74eaSXingyu Chen				clock-names = "clkin", "core", "adc_clk", "adc_sel";
1357a51b74eaSXingyu Chen				status = "disabled";
1358a51b74eaSXingyu Chen			};
13599d59b708SYixun Lan		};
13609d59b708SYixun Lan	};
13619d59b708SYixun Lan};
1362