]>
Commit | Line | Data |
---|---|---|
25774513 PG |
1 | /* |
2 | * Copyright (C) 2014 STMicroelectronics (R&D) Limited. | |
3 | * Author: Giuseppe Cavallaro <peppe.cavallaro@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 | */ | |
d90394b5 | 9 | #include <dt-bindings/clock/stih407-clks.h> |
0014eb75 | 10 | #include <dt-bindings/gpio/gpio.h> |
d90394b5 | 11 | #include <dt-bindings/media/c8sectpfe.h> |
25774513 PG |
12 | / { |
13 | soc { | |
14 | sbc_serial0: serial@9530000 { | |
15 | status = "okay"; | |
16 | }; | |
17 | ||
18 | leds { | |
19 | compatible = "gpio-leds"; | |
20 | red { | |
25774513 | 21 | label = "Front Panel LED"; |
2402850f | 22 | gpios = <&pio4 1 GPIO_ACTIVE_HIGH>; |
25774513 PG |
23 | linux,default-trigger = "heartbeat"; |
24 | }; | |
25 | green { | |
2402850f | 26 | gpios = <&pio1 3 GPIO_ACTIVE_HIGH>; |
25774513 PG |
27 | default-state = "off"; |
28 | }; | |
29 | }; | |
30 | ||
8aa5f09d MC |
31 | pwm0: pwm@9810000 { |
32 | status = "okay"; | |
33 | }; | |
34 | ||
35 | pwm1: pwm@9510000 { | |
36 | status = "okay"; | |
37 | }; | |
38 | ||
6d5e5817 | 39 | ssc2: i2c@9842000 { |
25774513 | 40 | status = "okay"; |
6d5e5817 PG |
41 | clock-frequency = <100000>; |
42 | st,i2c-min-scl-pulse-width-us = <0>; | |
43 | st,i2c-min-sda-pulse-width-us = <5>; | |
25774513 PG |
44 | }; |
45 | ||
6d5e5817 | 46 | ssc3: i2c@9843000 { |
25774513 | 47 | status = "okay"; |
6d5e5817 PG |
48 | clock-frequency = <100000>; |
49 | st,i2c-min-scl-pulse-width-us = <0>; | |
50 | st,i2c-min-sda-pulse-width-us = <5>; | |
25774513 PG |
51 | }; |
52 | ||
53 | i2c@9844000 { | |
54 | status = "okay"; | |
55 | }; | |
56 | ||
57 | i2c@9845000 { | |
58 | status = "okay"; | |
59 | }; | |
60 | ||
61 | i2c@9540000 { | |
62 | status = "okay"; | |
63 | }; | |
64 | ||
8dccafaa | 65 | mmc0: sdhci@9060000 { |
8f416dcd | 66 | non-removable; |
9286ac48 PG |
67 | status = "okay"; |
68 | }; | |
69 | ||
8dccafaa | 70 | mmc1: sdhci@9080000 { |
9286ac48 PG |
71 | status = "okay"; |
72 | }; | |
73 | ||
25774513 | 74 | /* SSC11 to HDMI */ |
a01a35e0 | 75 | hdmiddc: i2c@9541000 { |
25774513 PG |
76 | status = "okay"; |
77 | /* HDMI V1.3a supports Standard mode only */ | |
78 | clock-frequency = <100000>; | |
79 | st,i2c-min-scl-pulse-width-us = <0>; | |
80 | st,i2c-min-sda-pulse-width-us = <5>; | |
81 | }; | |
b26373c0 | 82 | |
d6d854cc | 83 | miphy28lp_phy: miphy28lp { |
b26373c0 GF |
84 | |
85 | phy_port0: port@9b22000 { | |
86 | st,osc-rdy; | |
87 | }; | |
88 | ||
89 | phy_port1: port@9b2a000 { | |
90 | st,osc-force-ext; | |
91 | }; | |
92 | }; | |
571ac3be PG |
93 | |
94 | st_dwc3: dwc3@8f94000 { | |
95 | status = "okay"; | |
96 | }; | |
97 | ||
60dfa245 MC |
98 | ethernet0: dwmac@9630000 { |
99 | st,tx-retime-src = "clkgen"; | |
100 | status = "okay"; | |
101 | phy-mode = "rgmii"; | |
102 | fixed-link = <0 1 1000 0 0>; | |
103 | }; | |
d90394b5 | 104 | |
8dccafaa | 105 | demux@8a20000 { |
d90394b5 PG |
106 | compatible = "st,stih407-c8sectpfe"; |
107 | status = "okay"; | |
108 | reg = <0x08a20000 0x10000>, | |
109 | <0x08a00000 0x4000>; | |
110 | reg-names = "c8sectpfe", "c8sectpfe-ram"; | |
111 | interrupts = <GIC_SPI 34 IRQ_TYPE_NONE>, | |
112 | <GIC_SPI 35 IRQ_TYPE_NONE>; | |
113 | interrupt-names = "c8sectpfe-error-irq", | |
114 | "c8sectpfe-idle-irq"; | |
115 | pinctrl-0 = <&pinctrl_tsin0_serial>; | |
116 | pinctrl-1 = <&pinctrl_tsin0_parallel>; | |
117 | pinctrl-2 = <&pinctrl_tsin3_serial>; | |
118 | pinctrl-3 = <&pinctrl_tsin4_serial_alt3>; | |
119 | pinctrl-4 = <&pinctrl_tsin5_serial_alt1>; | |
120 | pinctrl-names = "tsin0-serial", | |
121 | "tsin0-parallel", | |
122 | "tsin3-serial", | |
123 | "tsin4-serial", | |
124 | "tsin5-serial"; | |
125 | clocks = <&clk_s_c0_flexgen CLK_PROC_STFE>; | |
126 | clock-names = "c8sectpfe"; | |
127 | ||
128 | /* tsin0 is TSA on NIMA */ | |
d6d854cc | 129 | tsin0: port { |
d90394b5 PG |
130 | tsin-num = <0>; |
131 | serial-not-parallel; | |
132 | i2c-bus = <&ssc2>; | |
0014eb75 | 133 | reset-gpios = <&pio15 4 GPIO_ACTIVE_HIGH>; |
d90394b5 PG |
134 | dvb-card = <STV0367_TDA18212_NIMA_1>; |
135 | }; | |
136 | }; | |
443fd7c9 | 137 | |
800b1388 AP |
138 | sti_uni_player0: sti-uni-player@8d80000 { |
139 | status = "okay"; | |
140 | }; | |
141 | ||
443fd7c9 PG |
142 | sti_uni_player2: sti-uni-player@8d82000 { |
143 | status = "okay"; | |
144 | }; | |
145 | ||
146 | sti_uni_player3: sti-uni-player@8d85000 { | |
147 | status = "okay"; | |
148 | }; | |
149 | ||
150 | sti_sasg_codec: sti-sasg-codec { | |
151 | status = "okay"; | |
152 | pinctrl-names = "default"; | |
153 | pinctrl-0 = <&pinctrl_spdif_out>; | |
154 | }; | |
155 | ||
156 | sound { | |
157 | compatible = "simple-audio-card"; | |
64783ea7 | 158 | simple-audio-card,name = "STI-B2120"; |
443fd7c9 PG |
159 | status = "okay"; |
160 | ||
161 | simple-audio-card,dai-link@0 { | |
800b1388 AP |
162 | /* HDMI */ |
163 | format = "i2s"; | |
164 | mclk-fs = <128>; | |
165 | cpu { | |
166 | sound-dai = <&sti_uni_player0>; | |
167 | }; | |
168 | ||
169 | codec { | |
170 | sound-dai = <&sti_hdmi>; | |
171 | }; | |
172 | }; | |
173 | simple-audio-card,dai-link@1 { | |
443fd7c9 PG |
174 | /* DAC */ |
175 | format = "i2s"; | |
176 | mclk-fs = <256>; | |
800b1388 | 177 | frame-inversion = <1>; |
443fd7c9 PG |
178 | cpu { |
179 | sound-dai = <&sti_uni_player2>; | |
180 | }; | |
181 | ||
182 | codec { | |
183 | sound-dai = <&sti_sasg_codec 1>; | |
184 | }; | |
185 | }; | |
800b1388 | 186 | simple-audio-card,dai-link@2 { |
443fd7c9 PG |
187 | /* SPDIF */ |
188 | format = "left_j"; | |
189 | mclk-fs = <128>; | |
190 | cpu { | |
191 | sound-dai = <&sti_uni_player3>; | |
192 | }; | |
193 | ||
194 | codec { | |
195 | sound-dai = <&sti_sasg_codec 0>; | |
196 | }; | |
197 | }; | |
198 | }; | |
25774513 PG |
199 | }; |
200 | }; |