xref: /freebsd-src/sys/contrib/device-tree/src/arm/sunplus/sunplus-sp7021.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Device Tree Source for Sunplus SP7021
4*f126890aSEmmanuel Vadot *
5*f126890aSEmmanuel Vadot * Copyright (C) 2021 Sunplus Technology Co.
6*f126890aSEmmanuel Vadot */
7*f126890aSEmmanuel Vadot
8*f126890aSEmmanuel Vadot#include <dt-bindings/clock/sunplus,sp7021-clkc.h>
9*f126890aSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h>
10*f126890aSEmmanuel Vadot#include <dt-bindings/reset/sunplus,sp7021-reset.h>
11*f126890aSEmmanuel Vadot#include <dt-bindings/pinctrl/sppctl-sp7021.h>
12*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
13*f126890aSEmmanuel Vadot
14*f126890aSEmmanuel Vadot#define XTAL	27000000
15*f126890aSEmmanuel Vadot
16*f126890aSEmmanuel Vadot/ {
17*f126890aSEmmanuel Vadot	compatible = "sunplus,sp7021";
18*f126890aSEmmanuel Vadot	model = "Sunplus SP7021";
19*f126890aSEmmanuel Vadot
20*f126890aSEmmanuel Vadot	clocks {
21*f126890aSEmmanuel Vadot		extclk: osc0 {
22*f126890aSEmmanuel Vadot			compatible = "fixed-clock";
23*f126890aSEmmanuel Vadot			#clock-cells = <0>;
24*f126890aSEmmanuel Vadot			clock-frequency = <XTAL>;
25*f126890aSEmmanuel Vadot			clock-output-names = "extclk";
26*f126890aSEmmanuel Vadot		};
27*f126890aSEmmanuel Vadot	};
28*f126890aSEmmanuel Vadot
29*f126890aSEmmanuel Vadot	soc@9c000000 {
30*f126890aSEmmanuel Vadot		compatible = "simple-bus";
31*f126890aSEmmanuel Vadot		#address-cells = <1>;
32*f126890aSEmmanuel Vadot		#size-cells = <1>;
33*f126890aSEmmanuel Vadot		ranges = <0 0x9c000000 0x400000>;
34*f126890aSEmmanuel Vadot		interrupt-parent = <&intc>;
35*f126890aSEmmanuel Vadot
36*f126890aSEmmanuel Vadot		clkc: clock-controller@4 {
37*f126890aSEmmanuel Vadot			compatible = "sunplus,sp7021-clkc";
38*f126890aSEmmanuel Vadot			reg = <0x4 0x28>,
39*f126890aSEmmanuel Vadot			      <0x200 0x44>,
40*f126890aSEmmanuel Vadot			      <0x268 0x04>;
41*f126890aSEmmanuel Vadot			clocks = <&extclk>;
42*f126890aSEmmanuel Vadot			#clock-cells = <1>;
43*f126890aSEmmanuel Vadot		};
44*f126890aSEmmanuel Vadot
45*f126890aSEmmanuel Vadot		intc: interrupt-controller@780 {
46*f126890aSEmmanuel Vadot			compatible = "sunplus,sp7021-intc";
47*f126890aSEmmanuel Vadot			reg = <0x780 0x80>, <0xa80 0x80>;
48*f126890aSEmmanuel Vadot			interrupt-controller;
49*f126890aSEmmanuel Vadot			#interrupt-cells = <2>;
50*f126890aSEmmanuel Vadot		};
51*f126890aSEmmanuel Vadot
52*f126890aSEmmanuel Vadot		otp: otp@af00 {
53*f126890aSEmmanuel Vadot			compatible = "sunplus,sp7021-ocotp";
54*f126890aSEmmanuel Vadot			reg = <0xaf00 0x34>, <0xaf80 0x58>;
55*f126890aSEmmanuel Vadot			reg-names = "hb_gpio", "otprx";
56*f126890aSEmmanuel Vadot			clocks = <&clkc CLK_OTPRX>;
57*f126890aSEmmanuel Vadot			resets = <&rstc RST_OTPRX>;
58*f126890aSEmmanuel Vadot			#address-cells = <1>;
59*f126890aSEmmanuel Vadot			#size-cells = <1>;
60*f126890aSEmmanuel Vadot
61*f126890aSEmmanuel Vadot			therm_calib: thermal-calibration@14 {
62*f126890aSEmmanuel Vadot				reg = <0x14 0x3>;
63*f126890aSEmmanuel Vadot			};
64*f126890aSEmmanuel Vadot			disc_vol: disconnect-voltage@18 {
65*f126890aSEmmanuel Vadot				reg = <0x18 0x2>;
66*f126890aSEmmanuel Vadot			};
67*f126890aSEmmanuel Vadot			mac_addr0: mac-address0@34 {
68*f126890aSEmmanuel Vadot				reg = <0x34 0x6>;
69*f126890aSEmmanuel Vadot			};
70*f126890aSEmmanuel Vadot			mac_addr1: mac-address1@3a {
71*f126890aSEmmanuel Vadot				reg = <0x3a 0x6>;
72*f126890aSEmmanuel Vadot			};
73*f126890aSEmmanuel Vadot		};
74*f126890aSEmmanuel Vadot
75*f126890aSEmmanuel Vadot		pctl: pinctrl@100 {
76*f126890aSEmmanuel Vadot			compatible = "sunplus,sp7021-pctl";
77*f126890aSEmmanuel Vadot			reg = <0x100 0x100>,
78*f126890aSEmmanuel Vadot			      <0x300 0x100>,
79*f126890aSEmmanuel Vadot			      <0x32e4 0x1C>,
80*f126890aSEmmanuel Vadot			      <0x80 0x20>;
81*f126890aSEmmanuel Vadot			reg-names = "moon2", "gpioxt", "first", "moon1";
82*f126890aSEmmanuel Vadot			gpio-controller;
83*f126890aSEmmanuel Vadot			#gpio-cells = <2>;
84*f126890aSEmmanuel Vadot			clocks = <&clkc CLK_GPIO>;
85*f126890aSEmmanuel Vadot			resets = <&rstc RST_GPIO>;
86*f126890aSEmmanuel Vadot
87*f126890aSEmmanuel Vadot			emac_pins: pinmux-emac-pins {
88*f126890aSEmmanuel Vadot				sunplus,pins = <
89*f126890aSEmmanuel Vadot					SPPCTL_IOPAD(49,SPPCTL_PCTL_G_PMUX,MUXF_L2SW_CLK_OUT,0)
90*f126890aSEmmanuel Vadot					SPPCTL_IOPAD(44,SPPCTL_PCTL_G_PMUX,MUXF_L2SW_MAC_SMI_MDC,0)
91*f126890aSEmmanuel Vadot					SPPCTL_IOPAD(43,SPPCTL_PCTL_G_PMUX,MUXF_L2SW_MAC_SMI_MDIO,0)
92*f126890aSEmmanuel Vadot					SPPCTL_IOPAD(52,SPPCTL_PCTL_G_PMUX,MUXF_L2SW_P0_MAC_RMII_TXEN,0)
93*f126890aSEmmanuel Vadot					SPPCTL_IOPAD(50,SPPCTL_PCTL_G_PMUX,MUXF_L2SW_P0_MAC_RMII_TXD0,0)
94*f126890aSEmmanuel Vadot					SPPCTL_IOPAD(51,SPPCTL_PCTL_G_PMUX,MUXF_L2SW_P0_MAC_RMII_TXD1,0)
95*f126890aSEmmanuel Vadot					SPPCTL_IOPAD(46,SPPCTL_PCTL_G_PMUX,MUXF_L2SW_P0_MAC_RMII_CRSDV,0)
96*f126890aSEmmanuel Vadot					SPPCTL_IOPAD(47,SPPCTL_PCTL_G_PMUX,MUXF_L2SW_P0_MAC_RMII_RXD0,0)
97*f126890aSEmmanuel Vadot					SPPCTL_IOPAD(48,SPPCTL_PCTL_G_PMUX,MUXF_L2SW_P0_MAC_RMII_RXD1,0)
98*f126890aSEmmanuel Vadot					SPPCTL_IOPAD(45,SPPCTL_PCTL_G_PMUX,MUXF_L2SW_P0_MAC_RMII_RXER,0)
99*f126890aSEmmanuel Vadot					SPPCTL_IOPAD(59,SPPCTL_PCTL_G_PMUX,MUXF_L2SW_P1_MAC_RMII_TXEN,0)
100*f126890aSEmmanuel Vadot					SPPCTL_IOPAD(57,SPPCTL_PCTL_G_PMUX,MUXF_L2SW_P1_MAC_RMII_TXD0,0)
101*f126890aSEmmanuel Vadot					SPPCTL_IOPAD(58,SPPCTL_PCTL_G_PMUX,MUXF_L2SW_P1_MAC_RMII_TXD1,0)
102*f126890aSEmmanuel Vadot					SPPCTL_IOPAD(54,SPPCTL_PCTL_G_PMUX,MUXF_L2SW_P1_MAC_RMII_CRSDV,0)
103*f126890aSEmmanuel Vadot					SPPCTL_IOPAD(55,SPPCTL_PCTL_G_PMUX,MUXF_L2SW_P1_MAC_RMII_RXD0,0)
104*f126890aSEmmanuel Vadot					SPPCTL_IOPAD(56,SPPCTL_PCTL_G_PMUX,MUXF_L2SW_P1_MAC_RMII_RXD1,0)
105*f126890aSEmmanuel Vadot					SPPCTL_IOPAD(53,SPPCTL_PCTL_G_PMUX,MUXF_L2SW_P1_MAC_RMII_RXER,0)
106*f126890aSEmmanuel Vadot				>;
107*f126890aSEmmanuel Vadot				sunplus,zerofunc = <
108*f126890aSEmmanuel Vadot					MUXF_L2SW_LED_FLASH0
109*f126890aSEmmanuel Vadot					MUXF_L2SW_LED_FLASH1
110*f126890aSEmmanuel Vadot					MUXF_L2SW_LED_ON0
111*f126890aSEmmanuel Vadot					MUXF_L2SW_LED_ON1
112*f126890aSEmmanuel Vadot					MUXF_DAISY_MODE
113*f126890aSEmmanuel Vadot				>;
114*f126890aSEmmanuel Vadot			};
115*f126890aSEmmanuel Vadot
116*f126890aSEmmanuel Vadot			emmc_pins: pinmux-emmc-pins {
117*f126890aSEmmanuel Vadot				function = "CARD0_EMMC";
118*f126890aSEmmanuel Vadot				groups = "CARD0_EMMC";
119*f126890aSEmmanuel Vadot			};
120*f126890aSEmmanuel Vadot
121*f126890aSEmmanuel Vadot			leds_pins: pinmux-leds-pins {
122*f126890aSEmmanuel Vadot				sunplus,pins = < SPPCTL_IOPAD(0,SPPCTL_PCTL_G_GPIO,0,SPPCTL_PCTL_L_OUT) >;
123*f126890aSEmmanuel Vadot			};
124*f126890aSEmmanuel Vadot
125*f126890aSEmmanuel Vadot			sdcard_pins: pinmux-sdcard-pins {
126*f126890aSEmmanuel Vadot				function = "SD_CARD";
127*f126890aSEmmanuel Vadot				groups = "SD_CARD";
128*f126890aSEmmanuel Vadot				sunplus,pins = < SPPCTL_IOPAD(91, SPPCTL_PCTL_G_GPIO, 0, 0) >;
129*f126890aSEmmanuel Vadot			};
130*f126890aSEmmanuel Vadot
131*f126890aSEmmanuel Vadot			spi0_pins: pinmux-spi0-pins {
132*f126890aSEmmanuel Vadot				sunplus,pins = <
133*f126890aSEmmanuel Vadot					SPPCTL_IOPAD(26,SPPCTL_PCTL_G_GPIO,0,0)
134*f126890aSEmmanuel Vadot					SPPCTL_IOPAD(28,SPPCTL_PCTL_G_GPIO,0,0)
135*f126890aSEmmanuel Vadot					SPPCTL_IOPAD(23,SPPCTL_PCTL_G_PMUX,MUXF_SPI0S_DO,0)
136*f126890aSEmmanuel Vadot					SPPCTL_IOPAD(25,SPPCTL_PCTL_G_PMUX,MUXF_SPI0S_DI,0)
137*f126890aSEmmanuel Vadot					SPPCTL_IOPAD(27,SPPCTL_PCTL_G_PMUX,MUXF_SPI0S_CLK,0)
138*f126890aSEmmanuel Vadot				>;
139*f126890aSEmmanuel Vadot			};
140*f126890aSEmmanuel Vadot
141*f126890aSEmmanuel Vadot			uart0_pins: pinmux-uart0-pins {
142*f126890aSEmmanuel Vadot				function = "UA0";
143*f126890aSEmmanuel Vadot				groups = "UA0";
144*f126890aSEmmanuel Vadot			};
145*f126890aSEmmanuel Vadot
146*f126890aSEmmanuel Vadot			uart1_pins: pinmux-uart1-pins {
147*f126890aSEmmanuel Vadot				sunplus,pins = <
148*f126890aSEmmanuel Vadot					SPPCTL_IOPAD(14,SPPCTL_PCTL_G_PMUX,MUXF_UA4_TX,0)
149*f126890aSEmmanuel Vadot					SPPCTL_IOPAD(16,SPPCTL_PCTL_G_PMUX,MUXF_UA4_RX,0)
150*f126890aSEmmanuel Vadot				>;
151*f126890aSEmmanuel Vadot			};
152*f126890aSEmmanuel Vadot
153*f126890aSEmmanuel Vadot			uart2_pins: pinmux-uart2-pins {
154*f126890aSEmmanuel Vadot				sunplus,pins = <
155*f126890aSEmmanuel Vadot					SPPCTL_IOPAD(16,SPPCTL_PCTL_G_PMUX,MUXF_UA2_TX,0)
156*f126890aSEmmanuel Vadot					SPPCTL_IOPAD(17,SPPCTL_PCTL_G_PMUX,MUXF_UA2_RX,0)
157*f126890aSEmmanuel Vadot					SPPCTL_IOPAD(18,SPPCTL_PCTL_G_PMUX,MUXF_UA2_RTS,0)
158*f126890aSEmmanuel Vadot					SPPCTL_IOPAD(19,SPPCTL_PCTL_G_PMUX,MUXF_UA2_CTS,0)
159*f126890aSEmmanuel Vadot				>;
160*f126890aSEmmanuel Vadot			};
161*f126890aSEmmanuel Vadot
162*f126890aSEmmanuel Vadot			uart4_pins: pinmux-uart4-pins {
163*f126890aSEmmanuel Vadot				sunplus,pins = <
164*f126890aSEmmanuel Vadot					SPPCTL_IOPAD(22,SPPCTL_PCTL_G_PMUX,MUXF_UA4_TX,0)
165*f126890aSEmmanuel Vadot					SPPCTL_IOPAD(20,SPPCTL_PCTL_G_PMUX,MUXF_UA4_RX,0)
166*f126890aSEmmanuel Vadot					SPPCTL_IOPAD(23,SPPCTL_PCTL_G_PMUX,MUXF_UA4_RTS,0)
167*f126890aSEmmanuel Vadot					SPPCTL_IOPAD(21,SPPCTL_PCTL_G_PMUX,MUXF_UA4_CTS,0)
168*f126890aSEmmanuel Vadot				>;
169*f126890aSEmmanuel Vadot			};
170*f126890aSEmmanuel Vadot		};
171*f126890aSEmmanuel Vadot
172*f126890aSEmmanuel Vadot		rstc: reset@54 {
173*f126890aSEmmanuel Vadot			compatible = "sunplus,sp7021-reset";
174*f126890aSEmmanuel Vadot			reg = <0x54 0x28>;
175*f126890aSEmmanuel Vadot			#reset-cells = <1>;
176*f126890aSEmmanuel Vadot		};
177*f126890aSEmmanuel Vadot
178*f126890aSEmmanuel Vadot		rtc: rtc@3a00 {
179*f126890aSEmmanuel Vadot			compatible = "sunplus,sp7021-rtc";
180*f126890aSEmmanuel Vadot			reg = <0x3a00 0x80>;
181*f126890aSEmmanuel Vadot			reg-names = "rtc";
182*f126890aSEmmanuel Vadot			clocks = <&clkc CLK_RTC>;
183*f126890aSEmmanuel Vadot			resets = <&rstc RST_RTC>;
184*f126890aSEmmanuel Vadot			interrupts = <163 IRQ_TYPE_EDGE_RISING>;
185*f126890aSEmmanuel Vadot		};
186*f126890aSEmmanuel Vadot
187*f126890aSEmmanuel Vadot		spi_controller0: spi@2d80 {
188*f126890aSEmmanuel Vadot			compatible = "sunplus,sp7021-spi";
189*f126890aSEmmanuel Vadot			reg = <0x2d80 0x80>, <0x2e00 0x80>;
190*f126890aSEmmanuel Vadot			reg-names = "master", "slave";
191*f126890aSEmmanuel Vadot			interrupts = <144 IRQ_TYPE_LEVEL_HIGH>,
192*f126890aSEmmanuel Vadot				     <146 IRQ_TYPE_LEVEL_HIGH>,
193*f126890aSEmmanuel Vadot				     <145 IRQ_TYPE_LEVEL_HIGH>;
194*f126890aSEmmanuel Vadot			interrupt-names = "dma_w", "master_risc", "slave_risc";
195*f126890aSEmmanuel Vadot			clocks = <&clkc CLK_SPI_COMBO_0>;
196*f126890aSEmmanuel Vadot			resets = <&rstc RST_SPI_COMBO_0>;
197*f126890aSEmmanuel Vadot
198*f126890aSEmmanuel Vadot			pinctrl-names = "default";
199*f126890aSEmmanuel Vadot			pinctrl-0 = <&spi0_pins>;
200*f126890aSEmmanuel Vadot			cs-gpios = <&pctl 26 GPIO_ACTIVE_LOW>,
201*f126890aSEmmanuel Vadot				   <&pctl 28 GPIO_ACTIVE_LOW>;
202*f126890aSEmmanuel Vadot		};
203*f126890aSEmmanuel Vadot
204*f126890aSEmmanuel Vadot		spi_controller1: spi@f480 {
205*f126890aSEmmanuel Vadot			compatible = "sunplus,sp7021-spi";
206*f126890aSEmmanuel Vadot			reg = <0xf480 0x80>, <0xf500 0x80>;
207*f126890aSEmmanuel Vadot			reg-names = "master", "slave";
208*f126890aSEmmanuel Vadot			interrupts = <67 IRQ_TYPE_LEVEL_HIGH>,
209*f126890aSEmmanuel Vadot				     <69 IRQ_TYPE_LEVEL_HIGH>,
210*f126890aSEmmanuel Vadot				     <68 IRQ_TYPE_LEVEL_HIGH>;
211*f126890aSEmmanuel Vadot			interrupt-names = "dma_w", "master_risc", "slave_risc";
212*f126890aSEmmanuel Vadot			clocks = <&clkc CLK_SPI_COMBO_1>;
213*f126890aSEmmanuel Vadot			resets = <&rstc RST_SPI_COMBO_1>;
214*f126890aSEmmanuel Vadot			status = "disabled";
215*f126890aSEmmanuel Vadot		};
216*f126890aSEmmanuel Vadot
217*f126890aSEmmanuel Vadot		spi_controller2: spi@f600 {
218*f126890aSEmmanuel Vadot			compatible = "sunplus,sp7021-spi";
219*f126890aSEmmanuel Vadot			reg = <0xf600 0x80>, <0xf680 0x80>;
220*f126890aSEmmanuel Vadot			reg-names = "master", "slave";
221*f126890aSEmmanuel Vadot			interrupts = <70 IRQ_TYPE_LEVEL_HIGH>,
222*f126890aSEmmanuel Vadot				     <72 IRQ_TYPE_LEVEL_HIGH>,
223*f126890aSEmmanuel Vadot				     <71 IRQ_TYPE_LEVEL_HIGH>;
224*f126890aSEmmanuel Vadot			interrupt-names = "dma_w", "master_risc", "slave_risc";
225*f126890aSEmmanuel Vadot			clocks = <&clkc CLK_SPI_COMBO_2>;
226*f126890aSEmmanuel Vadot			resets = <&rstc RST_SPI_COMBO_2>;
227*f126890aSEmmanuel Vadot			status = "disabled";
228*f126890aSEmmanuel Vadot		};
229*f126890aSEmmanuel Vadot
230*f126890aSEmmanuel Vadot		spi_controller3: spi@f780 {
231*f126890aSEmmanuel Vadot			compatible = "sunplus,sp7021-spi";
232*f126890aSEmmanuel Vadot			reg = <0xf780 0x80>, <0xf800 0x80>;
233*f126890aSEmmanuel Vadot			reg-names = "master", "slave";
234*f126890aSEmmanuel Vadot			interrupts = <73 IRQ_TYPE_LEVEL_HIGH>,
235*f126890aSEmmanuel Vadot				     <75 IRQ_TYPE_LEVEL_HIGH>,
236*f126890aSEmmanuel Vadot				     <74 IRQ_TYPE_LEVEL_HIGH>;
237*f126890aSEmmanuel Vadot			interrupt-names = "dma_w", "master_risc", "slave_risc";
238*f126890aSEmmanuel Vadot			clocks = <&clkc CLK_SPI_COMBO_3>;
239*f126890aSEmmanuel Vadot			resets = <&rstc RST_SPI_COMBO_3>;
240*f126890aSEmmanuel Vadot			status = "disabled";
241*f126890aSEmmanuel Vadot		};
242*f126890aSEmmanuel Vadot
243*f126890aSEmmanuel Vadot		uart0: serial@900 {
244*f126890aSEmmanuel Vadot			compatible = "sunplus,sp7021-uart";
245*f126890aSEmmanuel Vadot			reg = <0x900 0x80>;
246*f126890aSEmmanuel Vadot			interrupts = <53 IRQ_TYPE_LEVEL_HIGH>;
247*f126890aSEmmanuel Vadot			clocks = <&clkc CLK_UA0>;
248*f126890aSEmmanuel Vadot			resets = <&rstc RST_UA0>;
249*f126890aSEmmanuel Vadot			pinctrl-names = "default";
250*f126890aSEmmanuel Vadot			pinctrl-0 = <&uart0_pins>;
251*f126890aSEmmanuel Vadot		};
252*f126890aSEmmanuel Vadot
253*f126890aSEmmanuel Vadot		uart1: serial@980 {
254*f126890aSEmmanuel Vadot			compatible = "sunplus,sp7021-uart";
255*f126890aSEmmanuel Vadot			reg = <0x980 0x80>;
256*f126890aSEmmanuel Vadot			interrupts = <54 IRQ_TYPE_LEVEL_HIGH>;
257*f126890aSEmmanuel Vadot			clocks = <&clkc CLK_UA1>;
258*f126890aSEmmanuel Vadot			resets = <&rstc RST_UA1>;
259*f126890aSEmmanuel Vadot			pinctrl-names = "default";
260*f126890aSEmmanuel Vadot			pinctrl-0 = <&uart1_pins>;
261*f126890aSEmmanuel Vadot			status = "disabled";
262*f126890aSEmmanuel Vadot		};
263*f126890aSEmmanuel Vadot
264*f126890aSEmmanuel Vadot		uart2: serial@800 {
265*f126890aSEmmanuel Vadot			compatible = "sunplus,sp7021-uart";
266*f126890aSEmmanuel Vadot			reg = <0x800 0x80>;
267*f126890aSEmmanuel Vadot			interrupts = <55 IRQ_TYPE_LEVEL_HIGH>;
268*f126890aSEmmanuel Vadot			clocks = <&clkc CLK_UA2>;
269*f126890aSEmmanuel Vadot			resets = <&rstc RST_UA2>;
270*f126890aSEmmanuel Vadot			pinctrl-names = "default";
271*f126890aSEmmanuel Vadot			pinctrl-0 = <&uart2_pins>;
272*f126890aSEmmanuel Vadot			status = "disabled";
273*f126890aSEmmanuel Vadot		};
274*f126890aSEmmanuel Vadot
275*f126890aSEmmanuel Vadot		uart3: serial@880 {
276*f126890aSEmmanuel Vadot			compatible = "sunplus,sp7021-uart";
277*f126890aSEmmanuel Vadot			reg = <0x880 0x80>;
278*f126890aSEmmanuel Vadot			interrupts = <56 IRQ_TYPE_LEVEL_HIGH>;
279*f126890aSEmmanuel Vadot			clocks = <&clkc CLK_UA3>;
280*f126890aSEmmanuel Vadot			resets = <&rstc RST_UA3>;
281*f126890aSEmmanuel Vadot			status = "disabled";
282*f126890aSEmmanuel Vadot		};
283*f126890aSEmmanuel Vadot
284*f126890aSEmmanuel Vadot		uart4: serial@8780 {
285*f126890aSEmmanuel Vadot			compatible = "sunplus,sp7021-uart";
286*f126890aSEmmanuel Vadot			reg = <0x8780 0x80>;
287*f126890aSEmmanuel Vadot			interrupts = <134 IRQ_TYPE_LEVEL_HIGH>;
288*f126890aSEmmanuel Vadot			clocks = <&clkc CLK_UA4>;
289*f126890aSEmmanuel Vadot			resets = <&rstc RST_UA4>;
290*f126890aSEmmanuel Vadot			pinctrl-names = "default";
291*f126890aSEmmanuel Vadot			pinctrl-0 = <&uart4_pins>;
292*f126890aSEmmanuel Vadot			status = "disabled";
293*f126890aSEmmanuel Vadot		};
294*f126890aSEmmanuel Vadot	};
295*f126890aSEmmanuel Vadot
296*f126890aSEmmanuel Vadot	leds {
297*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
298*f126890aSEmmanuel Vadot		pinctrl-names = "default";
299*f126890aSEmmanuel Vadot		pinctrl-0 = <&leds_pins>;
300*f126890aSEmmanuel Vadot		system-led {
301*f126890aSEmmanuel Vadot			label = "system-led";
302*f126890aSEmmanuel Vadot			gpios = <&pctl 0 GPIO_ACTIVE_HIGH>;
303*f126890aSEmmanuel Vadot			default-state = "off";
304*f126890aSEmmanuel Vadot			linux,default-trigger = "heartbeat";
305*f126890aSEmmanuel Vadot		};
306*f126890aSEmmanuel Vadot	};
307*f126890aSEmmanuel Vadot};
308