Merge tag 'usb-5.11-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
[linux/fpc-iii.git] / arch / mips / boot / dts / ingenic / cu1830-neo.dts
blobcfcb40edb7d95fc71c9ddb14fba781ad3499f413
1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include "x1830.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/clock/ingenic,sysost.h>
7 #include <dt-bindings/interrupt-controller/irq.h>
9 / {
10         compatible = "yna,cu1830-neo", "ingenic,x1830";
11         model = "YSH & ATIL General Board CU1830-Neo";
13         aliases {
14                 serial1 = &uart1;
15         };
17         chosen {
18                 stdout-path = "serial1:115200n8";
19         };
21         memory {
22                 device_type = "memory";
23                 reg = <0x0 0x08000000>;
24         };
26         leds {
27                 compatible = "gpio-leds";
28                 led-0 {
29                         gpios = <&gpc 17 GPIO_ACTIVE_HIGH>;
30                         linux,default-trigger = "mmc0";
31                 };
32         };
34         ssi0: spi-gpio {
35                 compatible = "spi-gpio";
36                 #address-cells = <1>;
37                 #size-cells = <0>;
38                 num-chipselects = <1>;
40                 mosi-gpios = <&gpc 12 GPIO_ACTIVE_HIGH>;
41                 miso-gpios = <&gpc 11 GPIO_ACTIVE_HIGH>;
42                 sck-gpios = <&gpc 15 GPIO_ACTIVE_HIGH>;
43                 cs-gpios = <&gpc 16 GPIO_ACTIVE_HIGH>;
45                 status = "okay";
47                 spi-max-frequency = <50000000>;
49                 sc16is752: expander@0 {
50                         compatible = "nxp,sc16is752";
51                         reg = <0>; /* CE0 */
52                         spi-max-frequency = <4000000>;
54                         clocks = <&exclk_sc16is752>;
56                         interrupt-parent = <&gpb>;
57                         interrupts = <18 IRQ_TYPE_EDGE_FALLING>;
59                         gpio-controller;
60                         #gpio-cells = <2>;
62                         exclk_sc16is752: sc16is752 {
63                                 compatible = "fixed-clock";
64                                 #clock-cells = <0>;
65                                 clock-frequency = <48000000>;
66                         };
67                 };
68         };
70         wlan_pwrseq: msc1-pwrseq {
71                 compatible = "mmc-pwrseq-simple";
73                 reset-gpios = <&gpc 13 GPIO_ACTIVE_LOW>;
74                 post-power-on-delay-ms = <200>;
75         };
78 &exclk {
79         clock-frequency = <24000000>;
82 &cgu {
83         /*
84          * Use the 32.768 kHz oscillator as the parent of the RTC for a higher
85          * precision.
86          */
87         assigned-clocks = <&cgu X1830_CLK_RTC>;
88         assigned-clock-parents = <&cgu X1830_CLK_RTCLK>;
91 &ost {
92         /* 1500 kHz for the system timer and clocksource */
93         assigned-clocks = <&ost OST_CLK_PERCPU_TIMER>, <&ost OST_CLK_GLOBAL_TIMER>;
94         assigned-clock-rates = <1500000>, <1500000>;
97 &uart1 {
98         status = "okay";
100         pinctrl-names = "default";
101         pinctrl-0 = <&pins_uart1>;
104 &i2c0 {
105         status = "okay";
107         clock-frequency = <400000>;
109         pinctrl-names = "default";
110         pinctrl-0 = <&pins_i2c0>;
112         ads7830: adc@48 {
113                 compatible = "ti,ads7830";
114                 reg = <0x48>;
115         };
118 &dtrng {
119         status = "okay";
122 &msc0 {
123         status = "okay";
125         bus-width = <4>;
126         max-frequency = <50000000>;
128         pinctrl-names = "default";
129         pinctrl-0 = <&pins_msc0>;
131         non-removable;
134 &msc1 {
135         status = "okay";
137         #address-cells = <1>;
138         #size-cells = <0>;
139         bus-width = <4>;
140         max-frequency = <50000000>;
142         pinctrl-names = "default";
143         pinctrl-0 = <&pins_msc1>;
145         non-removable;
147         mmc-pwrseq = <&wlan_pwrseq>;
149         ap6212a: wifi@1 {
150                 compatible = "brcm,bcm4329-fmac";
151                 reg = <1>;
153                 interrupt-parent = <&gpc>;
154                 interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
155                 interrupt-names = "host-wake";
157                 brcm,drive-strength = <10>;
158         };
161 &mac {
162         status = "okay";
164         phy-mode = "rmii";
165         phy-handle = <&ip101gr>;
167         pinctrl-names = "default";
168         pinctrl-0 = <&pins_mac>;
170         snps,reset-gpio = <&gpb 28 GPIO_ACTIVE_LOW>; /* PB28 */
171         snps,reset-active-low;
172         snps,reset-delays-us = <0 10000 30000>;
175 &mdio {
176         status = "okay";
178         ip101gr: ethernet-phy@0 {
179                 compatible = "ethernet-phy-id0243.0c54", "ethernet-phy-ieee802.3-c22";
180                 reg = <0>;
181         };
184 &otg_phy {
185         status = "okay";
188 &otg {
189         status = "okay";
192 &pinctrl {
193         pins_uart1: uart1 {
194                 function = "uart1";
195                 groups = "uart1-data";
196                 bias-pull-up;
197         };
199         pins_i2c0: i2c0 {
200                 function = "i2c0";
201                 groups = "i2c0-data";
202                 bias-pull-up;
203         };
205         pins_msc0: msc0 {
206                 function = "mmc0";
207                 groups = "mmc0-1bit", "mmc0-4bit";
208                 bias-disable;
209         };
211         pins_msc1: msc1 {
212                 function = "mmc1";
213                 groups = "mmc1-1bit", "mmc1-4bit";
214                 bias-disable;
215         };
217         pins_mac: mac {
218                 function = "mac";
219                 groups = "mac";
220                 bias-disable;
221         };