Merge tag 'pstore-v4.20-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/kees...
[sfrench/cifs-2.6.git] / arch / arm / boot / 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 = "clk_ignore_unused";
19                 stdout-path = &uart1;
20         };
21
22         memory@40000000 {
23                 device_type = "memory";
24                 reg = <0x40000000 0x40000000>;
25         };
26
27         aliases {
28                 serial1 = &uart1;
29                 ethernet0 = &ethernet0;
30         };
31
32         leds {
33                 compatible = "gpio-leds";
34                 user_green_1 {
35                         label = "User_green_1";
36                         gpios = <&pio1 3 GPIO_ACTIVE_LOW>;
37                         linux,default-trigger = "heartbeat";
38                         default-state = "off";
39                 };
40
41                 user_green_2 {
42                         label = "User_green_2";
43                         gpios = <&pio4 1 GPIO_ACTIVE_LOW>;
44                         default-state = "off";
45                 };
46
47                 user_green_3 {
48                         label = "User_green_3";
49                         gpios = <&pio2 1 GPIO_ACTIVE_LOW>;
50                         default-state = "off";
51                 };
52
53                 user_green_4 {
54                         label = "User_green_4";
55                         gpios = <&pio2 5 GPIO_ACTIVE_LOW>;
56                         default-state = "off";
57                 };
58         };
59
60         sound: sound {
61                 compatible = "simple-audio-card";
62                 simple-audio-card,name = "STI-B2260";
63                 status = "okay";
64                 #address-cells = <1>;
65                 #size-cells = <0>;
66
67                 simple-audio-card,dai-link@0 {
68                         reg = <0>;
69                         /* DAC */
70                         format = "i2s";
71                         mclk-fs = <128>;
72                         cpu {
73                                 sound-dai = <&sti_uni_player0>;
74                         };
75
76                         codec {
77                                 sound-dai = <&sti_hdmi>;
78                         };
79                 };
80         };
81
82         soc {
83                 /* Low speed expansion connector */
84                 uart0: serial@9830000 {
85                         label = "LS-UART0";
86                         pinctrl-names = "default", "no-hw-flowctrl";
87                         pinctrl-0 = <&pinctrl_serial0_hw_flowctrl>;
88                         pinctrl-1 = <&pinctrl_serial0>;
89                         rts-gpios = <&pio17 3 GPIO_ACTIVE_LOW>;
90                         uart-has-rtscts;
91                         status = "okay";
92                 };
93
94                 /* Low speed expansion connector */
95                 uart1: serial@9831000 {
96                         label = "LS-UART1";
97                         status = "okay";
98                 };
99
100                 /* Low speed expansion connector */
101                 spi0: spi@9844000 {
102                         label = "LS-SPI0";
103                         cs-gpios = <&pio30 3 0>;
104                         status = "okay";
105                 };
106
107                 /* Low speed expansion connector */
108                 i2c0: i2c@9840000 {
109                         label = "LS-I2C0";
110                         status = "okay";
111                 };
112
113                 /* Low speed expansion connector */
114                 i2c1: i2c@9841000 {
115                         label = "LS-I2C1";
116                         status = "okay";
117                 };
118
119                 /* high speed expansion connector */
120                 i2c2: i2c@9842000 {
121                         label = "HS-I2C2";
122                         pinctrl-0 = <&pinctrl_i2c2_alt2_1>;
123                         status = "okay";
124                 };
125
126                 /* high speed expansion connector */
127                 i2c3: i2c@9843000 {
128                         label = "HS-I2C3";
129                         pinctrl-0 = <&pinctrl_i2c3_alt3_0>;
130                         status = "okay";
131                 };
132
133                 mmc0: sdhci@9060000 {
134                         pinctrl-0 = <&pinctrl_sd0>;
135                         bus-width = <4>;
136                         status = "okay";
137                 };
138
139                 /* high speed expansion connector */
140                 mmc1: sdhci@9080000 {
141                         status = "okay";
142                 };
143
144                 pwm0: pwm@9810000 {
145                         status = "okay";
146                 };
147
148                 pwm1: pwm@9510000 {
149                         status = "okay";
150                 };
151
152                 usb2_picophy1: phy2@0 {
153                         status = "okay";
154                 };
155
156                 usb2_picophy2: phy3@0 {
157                         status = "okay";
158                 };
159
160                 ohci0: usb@9a03c00 {
161                         status = "okay";
162                 };
163
164                 ehci0: usb@9a03e00 {
165                         status = "okay";
166                 };
167
168                 ohci1: usb@9a83c00 {
169                         status = "okay";
170                 };
171
172                 ehci1: usb@9a83e00 {
173                         status = "okay";
174                 };
175
176                 st_dwc3: dwc3@8f94000 {
177                         status = "okay";
178                 };
179
180                 ethernet0: dwmac@9630000 {
181                         phy-mode = "rgmii";
182                         pinctrl-0 = <&pinctrl_rgmii1 &pinctrl_rgmii1_mdio_1>;
183
184                         snps,phy-bus-name = "stmmac";
185                         snps,phy-bus-id = <0>;
186                         snps,phy-addr = <0>;
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                 miphy28lp_phy: miphy28lp@0 {
207
208                         phy_port1: port@9b2a000 {
209                                 st,osc-force-ext;
210                         };
211                 };
212
213                 sata1: sata@9b28000 {
214                         status = "okay";
215                 };
216         };
217 };