Commit | Line | Data |
---|---|---|
3528dd34 AK |
1 | /* |
2 | * Google Peach Pit Rev 6+ board device tree source | |
3 | * | |
4 | * Copyright (c) 2014 Google, Inc | |
5 | * | |
6 | * This program is free software; you can redistribute it and/or modify | |
7 | * it under the terms of the GNU General Public License version 2 as | |
8 | * published by the Free Software Foundation. | |
9 | */ | |
10 | ||
11 | /dts-v1/; | |
12 | #include <dt-bindings/input/input.h> | |
13 | #include <dt-bindings/gpio/gpio.h> | |
14 | #include "exynos5420.dtsi" | |
15 | ||
16 | / { | |
17 | model = "Google Peach Pit Rev 6+"; | |
18 | ||
19 | compatible = "google,pit-rev16", | |
20 | "google,pit-rev15", "google,pit-rev14", | |
21 | "google,pit-rev13", "google,pit-rev12", | |
22 | "google,pit-rev11", "google,pit-rev10", | |
23 | "google,pit-rev9", "google,pit-rev8", | |
24 | "google,pit-rev7", "google,pit-rev6", | |
25 | "google,pit", "google,peach","samsung,exynos5420", | |
26 | "samsung,exynos5"; | |
27 | ||
522c8ff5 TB |
28 | backlight { |
29 | compatible = "pwm-backlight"; | |
30 | pwms = <&pwm 0 1000000 0>; | |
31 | brightness-levels = <0 100 500 1000 1500 2000 2500 2800>; | |
32 | default-brightness-level = <7>; | |
33 | pinctrl-0 = <&pwm0_out>; | |
34 | pinctrl-names = "default"; | |
3528dd34 AK |
35 | }; |
36 | ||
37 | fixed-rate-clocks { | |
38 | oscclk { | |
39 | compatible = "samsung,exynos5420-oscclk"; | |
40 | clock-frequency = <24000000>; | |
41 | }; | |
42 | }; | |
43 | ||
44 | gpio-keys { | |
45 | compatible = "gpio-keys"; | |
46 | ||
47 | pinctrl-names = "default"; | |
48 | pinctrl-0 = <&power_key_irq>; | |
49 | ||
50 | power { | |
51 | label = "Power"; | |
52 | gpios = <&gpx1 2 GPIO_ACTIVE_LOW>; | |
53 | linux,code = <KEY_POWER>; | |
54 | gpio-key,wakeup; | |
55 | }; | |
56 | }; | |
57 | ||
522c8ff5 TB |
58 | memory { |
59 | reg = <0x20000000 0x80000000>; | |
3528dd34 | 60 | }; |
ead3993e TB |
61 | |
62 | sound { | |
63 | compatible = "google,snow-audio-max98090"; | |
64 | ||
65 | samsung,i2s-controller = <&i2s0>; | |
66 | samsung,audio-codec = <&max98090>; | |
67 | }; | |
14a35ada VG |
68 | |
69 | usb300_vbus_reg: regulator-usb300 { | |
70 | compatible = "regulator-fixed"; | |
71 | regulator-name = "P5.0V_USB3CON0"; | |
72 | regulator-min-microvolt = <5000000>; | |
73 | regulator-max-microvolt = <5000000>; | |
74 | gpio = <&gph0 0 0>; | |
75 | pinctrl-names = "default"; | |
76 | pinctrl-0 = <&usb300_vbus_en>; | |
77 | enable-active-high; | |
78 | }; | |
79 | ||
80 | usb301_vbus_reg: regulator-usb301 { | |
81 | compatible = "regulator-fixed"; | |
82 | regulator-name = "P5.0V_USB3CON1"; | |
83 | regulator-min-microvolt = <5000000>; | |
84 | regulator-max-microvolt = <5000000>; | |
85 | gpio = <&gph0 1 0>; | |
86 | pinctrl-names = "default"; | |
87 | pinctrl-0 = <&usb301_vbus_en>; | |
88 | enable-active-high; | |
89 | }; | |
3528dd34 AK |
90 | }; |
91 | ||
522c8ff5 TB |
92 | &dp { |
93 | status = "okay"; | |
94 | pinctrl-names = "default"; | |
95 | pinctrl-0 = <&dp_hpd_gpio>; | |
96 | samsung,color-space = <0>; | |
97 | samsung,dynamic-range = <0>; | |
98 | samsung,ycbcr-coeff = <0>; | |
99 | samsung,color-depth = <1>; | |
100 | samsung,link-rate = <0x06>; | |
101 | samsung,lane-count = <2>; | |
102 | samsung,hpd-gpio = <&gpx2 6 0>; | |
ead3993e | 103 | |
522c8ff5 TB |
104 | display-timings { |
105 | native-mode = <&timing1>; | |
3528dd34 | 106 | |
522c8ff5 TB |
107 | timing1: timing@1 { |
108 | clock-frequency = <70589280>; | |
109 | hactive = <1366>; | |
110 | vactive = <768>; | |
111 | hfront-porch = <40>; | |
112 | hback-porch = <40>; | |
113 | hsync-len = <32>; | |
114 | vback-porch = <10>; | |
115 | vfront-porch = <12>; | |
116 | vsync-len = <6>; | |
117 | }; | |
3528dd34 | 118 | }; |
522c8ff5 | 119 | }; |
6ac189fc | 120 | |
522c8ff5 TB |
121 | &fimd { |
122 | status = "okay"; | |
123 | samsung,invert-vclk; | |
124 | }; | |
94b62c38 | 125 | |
522c8ff5 TB |
126 | &hdmi { |
127 | status = "okay"; | |
128 | hpd-gpio = <&gpx3 7 GPIO_ACTIVE_HIGH>; | |
129 | pinctrl-names = "default"; | |
130 | pinctrl-0 = <&hdmi_hpd_irq>; | |
131 | ddc = <&i2c_2>; | |
3528dd34 AK |
132 | }; |
133 | ||
522c8ff5 TB |
134 | &hsi2c_7 { |
135 | status = "okay"; | |
136 | ||
137 | max98090: codec@10 { | |
138 | compatible = "maxim,max98090"; | |
139 | reg = <0x10>; | |
140 | interrupts = <2 0>; | |
141 | interrupt-parent = <&gpx0>; | |
142 | pinctrl-names = "default"; | |
143 | pinctrl-0 = <&max98090_irq>; | |
14a35ada | 144 | }; |
522c8ff5 | 145 | }; |
14a35ada | 146 | |
522c8ff5 TB |
147 | &hsi2c_9 { |
148 | status = "okay"; | |
149 | clock-frequency = <400000>; | |
150 | ||
151 | tpm@20 { | |
152 | compatible = "infineon,slb9645tt"; | |
153 | reg = <0x20>; | |
154 | ||
155 | /* Unused irq; but still need to configure the pins */ | |
156 | pinctrl-names = "default"; | |
157 | pinctrl-0 = <&tpm_irq>; | |
14a35ada VG |
158 | }; |
159 | }; | |
160 | ||
522c8ff5 | 161 | &i2c_2 { |
3528dd34 | 162 | status = "okay"; |
522c8ff5 TB |
163 | samsung,i2c-sda-delay = <100>; |
164 | samsung,i2c-max-bus-freq = <66000>; | |
165 | samsung,i2c-slave-addr = <0x50>; | |
3528dd34 AK |
166 | }; |
167 | ||
522c8ff5 | 168 | &i2s0 { |
3528dd34 AK |
169 | status = "okay"; |
170 | }; | |
171 | ||
172 | &mmc_0 { | |
173 | status = "okay"; | |
174 | num-slots = <1>; | |
175 | broken-cd; | |
176 | caps2-mmc-hs200-1_8v; | |
177 | supports-highspeed; | |
178 | non-removable; | |
179 | card-detect-delay = <200>; | |
180 | clock-frequency = <400000000>; | |
181 | samsung,dw-mshc-ciu-div = <3>; | |
182 | samsung,dw-mshc-sdr-timing = <0 4>; | |
183 | samsung,dw-mshc-ddr-timing = <0 2>; | |
184 | pinctrl-names = "default"; | |
185 | pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus4 &sd0_bus8>; | |
186 | ||
187 | slot@0 { | |
188 | reg = <0>; | |
189 | bus-width = <8>; | |
190 | }; | |
191 | }; | |
192 | ||
193 | &mmc_2 { | |
194 | status = "okay"; | |
195 | num-slots = <1>; | |
196 | supports-highspeed; | |
197 | card-detect-delay = <200>; | |
198 | clock-frequency = <400000000>; | |
199 | samsung,dw-mshc-ciu-div = <3>; | |
200 | samsung,dw-mshc-sdr-timing = <2 3>; | |
201 | samsung,dw-mshc-ddr-timing = <1 2>; | |
202 | pinctrl-names = "default"; | |
203 | pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>; | |
204 | ||
205 | slot@0 { | |
206 | reg = <0>; | |
207 | bus-width = <4>; | |
208 | }; | |
209 | }; | |
210 | ||
ead3993e | 211 | |
522c8ff5 TB |
212 | &pinctrl_0 { |
213 | max98090_irq: max98090-irq { | |
214 | samsung,pins = "gpx0-2"; | |
215 | samsung,pin-function = <0>; | |
216 | samsung,pin-pud = <0>; | |
217 | samsung,pin-drv = <0>; | |
ead3993e | 218 | }; |
ead3993e | 219 | |
522c8ff5 TB |
220 | tpm_irq: tpm-irq { |
221 | samsung,pins = "gpx1-0"; | |
222 | samsung,pin-function = <0>; | |
223 | samsung,pin-pud = <0>; | |
224 | samsung,pin-drv = <0>; | |
225 | }; | |
3528dd34 | 226 | |
522c8ff5 TB |
227 | power_key_irq: power-key-irq { |
228 | samsung,pins = "gpx1-2"; | |
229 | samsung,pin-function = <0>; | |
230 | samsung,pin-pud = <0>; | |
231 | samsung,pin-drv = <0>; | |
232 | }; | |
3528dd34 | 233 | |
522c8ff5 TB |
234 | dp_hpd_gpio: dp_hpd_gpio { |
235 | samsung,pins = "gpx2-6"; | |
236 | samsung,pin-function = <0>; | |
237 | samsung,pin-pud = <3>; | |
238 | samsung,pin-drv = <0>; | |
239 | }; | |
240 | ||
241 | hdmi_hpd_irq: hdmi-hpd-irq { | |
242 | samsung,pins = "gpx3-7"; | |
243 | samsung,pin-function = <0>; | |
244 | samsung,pin-pud = <1>; | |
245 | samsung,pin-drv = <0>; | |
3528dd34 AK |
246 | }; |
247 | }; | |
248 | ||
522c8ff5 TB |
249 | &pinctrl_3 { |
250 | usb300_vbus_en: usb300-vbus-en { | |
251 | samsung,pins = "gph0-0"; | |
252 | samsung,pin-function = <1>; | |
253 | samsung,pin-pud = <0>; | |
254 | samsung,pin-drv = <0>; | |
255 | }; | |
256 | ||
257 | usb301_vbus_en: usb301-vbus-en { | |
258 | samsung,pins = "gph0-1"; | |
259 | samsung,pin-function = <1>; | |
260 | samsung,pin-pud = <0>; | |
261 | samsung,pin-drv = <0>; | |
262 | }; | |
263 | }; | |
264 | ||
265 | &rtc { | |
6ac189fc | 266 | status = "okay"; |
6ac189fc RS |
267 | }; |
268 | ||
522c8ff5 | 269 | &uart_3 { |
6ac189fc | 270 | status = "okay"; |
6ac189fc RS |
271 | }; |
272 | ||
0ce9f47a | 273 | &usbdrd_phy0 { |
14a35ada VG |
274 | vbus-supply = <&usb300_vbus_reg>; |
275 | }; | |
276 | ||
0ce9f47a | 277 | &usbdrd_phy1 { |
14a35ada VG |
278 | vbus-supply = <&usb301_vbus_reg>; |
279 | }; | |
280 | ||
3528dd34 AK |
281 | /* |
282 | * Use longest HW watchdog in SoC (32 seconds) since the hardware | |
283 | * watchdog provides no debugging information (compared to soft/hard | |
284 | * lockup detectors) and so should be last resort. | |
285 | */ | |
286 | &watchdog { | |
287 | timeout-sec = <32>; | |
288 | }; | |
ead3993e | 289 |