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