GNU Linux-libre 6.1.90-gnu
[releases.git] / arch / arm / boot / dts / stih410-b2260.dts
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3  * Copyright (C) 2016 STMicroelectronics (R&D) Limited.
4  * Author: Patrice Chotard <patrice.chotard@st.com>
5  */
6 /dts-v1/;
7 #include "stih410.dtsi"
8 #include <dt-bindings/gpio/gpio.h>
9
10 / {
11         model = "STiH410 B2260";
12         compatible = "st,stih410-b2260", "st,stih410";
13
14         chosen {
15                 stdout-path = &uart1;
16         };
17
18         memory@40000000 {
19                 device_type = "memory";
20                 reg = <0x40000000 0x40000000>;
21         };
22
23         aliases {
24                 serial1 = &uart1;
25                 ethernet0 = &ethernet0;
26         };
27
28         leds {
29                 compatible = "gpio-leds";
30                 user_green_1 {
31                         label = "User_green_1";
32                         gpios = <&pio1 3 GPIO_ACTIVE_LOW>;
33                         linux,default-trigger = "heartbeat";
34                         default-state = "off";
35                 };
36
37                 user_green_2 {
38                         label = "User_green_2";
39                         gpios = <&pio4 1 GPIO_ACTIVE_LOW>;
40                         default-state = "off";
41                 };
42
43                 user_green_3 {
44                         label = "User_green_3";
45                         gpios = <&pio2 1 GPIO_ACTIVE_LOW>;
46                         default-state = "off";
47                 };
48
49                 user_green_4 {
50                         label = "User_green_4";
51                         gpios = <&pio2 5 GPIO_ACTIVE_LOW>;
52                         default-state = "off";
53                 };
54         };
55
56         sound: sound {
57                 compatible = "simple-audio-card";
58                 simple-audio-card,name = "STI-B2260";
59                 status = "okay";
60                 #address-cells = <1>;
61                 #size-cells = <0>;
62
63                 simple-audio-card,dai-link@0 {
64                         reg = <0>;
65                         /* DAC */
66                         format = "i2s";
67                         mclk-fs = <128>;
68                         cpu {
69                                 sound-dai = <&sti_uni_player0>;
70                         };
71
72                         codec {
73                                 sound-dai = <&sti_hdmi>;
74                         };
75                 };
76         };
77
78         miphy28lp_phy: miphy28lp {
79
80                 phy_port1: port@9b2a000 {
81                         st,osc-force-ext;
82                 };
83         };
84
85         usb2_picophy1: phy2 {
86                 status = "okay";
87         };
88
89         usb2_picophy2: phy3 {
90                 status = "okay";
91         };
92
93         soc {
94                 /* Low speed expansion connector */
95                 uart0: serial@9830000 {
96                         label = "LS-UART0";
97                         pinctrl-names = "default", "no-hw-flowctrl";
98                         pinctrl-0 = <&pinctrl_serial0_hw_flowctrl>;
99                         pinctrl-1 = <&pinctrl_serial0>;
100                         rts-gpios = <&pio17 3 GPIO_ACTIVE_LOW>;
101                         uart-has-rtscts;
102                         status = "okay";
103                 };
104
105                 /* Low speed expansion connector */
106                 uart1: serial@9831000 {
107                         label = "LS-UART1";
108                         status = "okay";
109                 };
110
111                 /* Low speed expansion connector */
112                 spi0: spi@9844000 {
113                         label = "LS-SPI0";
114                         cs-gpios = <&pio30 3 0>;
115                         status = "okay";
116                 };
117
118                 /* Low speed expansion connector */
119                 i2c0: i2c@9840000 {
120                         label = "LS-I2C0";
121                         status = "okay";
122                 };
123
124                 /* Low speed expansion connector */
125                 i2c1: i2c@9841000 {
126                         label = "LS-I2C1";
127                         status = "okay";
128                 };
129
130                 /* high speed expansion connector */
131                 i2c2: i2c@9842000 {
132                         label = "HS-I2C2";
133                         pinctrl-0 = <&pinctrl_i2c2_alt2_1>;
134                         status = "okay";
135                 };
136
137                 /* high speed expansion connector */
138                 i2c3: i2c@9843000 {
139                         label = "HS-I2C3";
140                         pinctrl-0 = <&pinctrl_i2c3_alt3_0>;
141                         status = "okay";
142                 };
143
144                 mmc0: sdhci@9060000 {
145                         pinctrl-0 = <&pinctrl_sd0>;
146                         bus-width = <4>;
147                         status = "okay";
148                 };
149
150                 /* high speed expansion connector */
151                 mmc1: sdhci@9080000 {
152                         status = "okay";
153                 };
154
155                 pwm0: pwm@9810000 {
156                         status = "okay";
157                 };
158
159                 pwm1: pwm@9510000 {
160                         status = "okay";
161                 };
162
163                 ohci0: usb@9a03c00 {
164                         status = "okay";
165                 };
166
167                 ehci0: usb@9a03e00 {
168                         status = "okay";
169                 };
170
171                 ohci1: usb@9a83c00 {
172                         status = "okay";
173                 };
174
175                 ehci1: usb@9a83e00 {
176                         status = "okay";
177                 };
178
179                 st_dwc3: dwc3@8f94000 {
180                         status = "okay";
181                 };
182
183                 ethernet0: dwmac@9630000 {
184                         phy-mode = "rgmii";
185                         pinctrl-0 = <&pinctrl_rgmii1 &pinctrl_rgmii1_mdio_1>;
186
187                         snps,reset-gpio = <&pio0 7 0>;
188                         snps,reset-active-low;
189                         snps,reset-delays-us = <0 10000 1000000>;
190
191                         status = "okay";
192                 };
193
194                 sti_uni_player0: sti-uni-player@8d80000 {
195                         status = "okay";
196                 };
197                 /* SSC11 to HDMI */
198                 hdmiddc: i2c@9541000 {
199                         /* HDMI V1.3a supports Standard mode only */
200                         clock-frequency = <100000>;
201                         st,i2c-min-scl-pulse-width-us = <0>;
202                         st,i2c-min-sda-pulse-width-us = <5>;
203                         status = "okay";
204                 };
205
206                 sata1: sata@9b28000 {
207                         status = "okay";
208                 };
209         };
210 };