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	soc {
79		/* Low speed expansion connector */
80		uart0: serial@9830000 {
81			label = "LS-UART0";
82			pinctrl-names = "default", "no-hw-flowctrl";
83			pinctrl-0 = <&pinctrl_serial0_hw_flowctrl>;
84			pinctrl-1 = <&pinctrl_serial0>;
85			rts-gpios = <&pio17 3 GPIO_ACTIVE_LOW>;
86			uart-has-rtscts;
87			status = "okay";
88		};
89
90		/* Low speed expansion connector */
91		uart1: serial@9831000 {
92			label = "LS-UART1";
93			status = "okay";
94		};
95
96		/* Low speed expansion connector */
97		spi0: spi@9844000 {
98			label = "LS-SPI0";
99			cs-gpios = <&pio30 3 0>;
100			status = "okay";
101		};
102
103		/* Low speed expansion connector */
104		i2c0: i2c@9840000 {
105			label = "LS-I2C0";
106			status = "okay";
107		};
108
109		/* Low speed expansion connector */
110		i2c1: i2c@9841000 {
111			label = "LS-I2C1";
112			status = "okay";
113		};
114
115		/* high speed expansion connector */
116		i2c2: i2c@9842000 {
117			label = "HS-I2C2";
118			pinctrl-0 = <&pinctrl_i2c2_alt2_1>;
119			status = "okay";
120		};
121
122		/* high speed expansion connector */
123		i2c3: i2c@9843000 {
124			label = "HS-I2C3";
125			pinctrl-0 = <&pinctrl_i2c3_alt3_0>;
126			status = "okay";
127		};
128
129		mmc0: sdhci@9060000 {
130			pinctrl-0 = <&pinctrl_sd0>;
131			bus-width = <4>;
132			status = "okay";
133		};
134
135		/* high speed expansion connector */
136		mmc1: sdhci@9080000 {
137			status = "okay";
138		};
139
140		pwm0: pwm@9810000 {
141			status = "okay";
142		};
143
144		pwm1: pwm@9510000 {
145			status = "okay";
146		};
147
148		usb2_picophy1: phy2@0 {
149			status = "okay";
150		};
151
152		usb2_picophy2: phy3@0 {
153			status = "okay";
154		};
155
156		ohci0: usb@9a03c00 {
157			status = "okay";
158		};
159
160		ehci0: usb@9a03e00 {
161			status = "okay";
162		};
163
164		ohci1: usb@9a83c00 {
165			status = "okay";
166		};
167
168		ehci1: usb@9a83e00 {
169			status = "okay";
170		};
171
172		st_dwc3: dwc3@8f94000 {
173			status = "okay";
174		};
175
176		ethernet0: dwmac@9630000 {
177			phy-mode = "rgmii";
178			pinctrl-0 = <&pinctrl_rgmii1 &pinctrl_rgmii1_mdio_1>;
179
180			snps,reset-gpio = <&pio0 7 0>;
181			snps,reset-active-low;
182			snps,reset-delays-us = <0 10000 1000000>;
183
184			status = "okay";
185		};
186
187		sti_uni_player0: sti-uni-player@8d80000 {
188			status = "okay";
189		};
190		/* SSC11 to HDMI */
191		hdmiddc: i2c@9541000 {
192			/* HDMI V1.3a supports Standard mode only */
193			clock-frequency = <100000>;
194			st,i2c-min-scl-pulse-width-us = <0>;
195			st,i2c-min-sda-pulse-width-us = <5>;
196			status = "okay";
197		};
198
199		miphy28lp_phy: miphy28lp@0 {
200
201			phy_port1: port@9b2a000 {
202				st,osc-force-ext;
203			};
204		};
205
206		sata1: sata@9b28000 {
207			status = "okay";
208		};
209	};
210};
211