blob: e15750105bba18551410504dba1b49043e6cbe46 [file] [log] [blame]
Arun Kumar K3528dd32014-05-09 06:06:25 +09001/*
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
28 memory {
29 reg = <0x20000000 0x80000000>;
30 };
31
32 fixed-rate-clocks {
33 oscclk {
34 compatible = "samsung,exynos5420-oscclk";
35 clock-frequency = <24000000>;
36 };
37 };
38
39 gpio-keys {
40 compatible = "gpio-keys";
41
42 pinctrl-names = "default";
43 pinctrl-0 = <&power_key_irq>;
44
45 power {
46 label = "Power";
47 gpios = <&gpx1 2 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_POWER>;
49 gpio-key,wakeup;
50 };
51 };
52
53 backlight {
54 compatible = "pwm-backlight";
55 pwms = <&pwm 0 1000000 0>;
56 brightness-levels = <0 100 500 1000 1500 2000 2500 2800>;
57 default-brightness-level = <7>;
58 pinctrl-0 = <&pwm0_out>;
59 pinctrl-names = "default";
60 };
Tushar Beheraead39932014-05-17 07:44:10 +090061
62 sound {
63 compatible = "google,snow-audio-max98090";
64
65 samsung,i2s-controller = <&i2s0>;
66 samsung,audio-codec = <&max98090>;
67 };
Vivek Gautam14a35ad2014-05-19 22:29:42 +090068
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 };
Arun Kumar K3528dd32014-05-09 06:06:25 +090090};
91
92&pinctrl_0 {
Tushar Beheraead39932014-05-17 07:44:10 +090093 max98090_irq: max98090-irq {
94 samsung,pins = "gpx0-2";
95 samsung,pin-function = <0>;
96 samsung,pin-pud = <0>;
97 samsung,pin-drv = <0>;
98 };
99
Arun Kumar K3528dd32014-05-09 06:06:25 +0900100 tpm_irq: tpm-irq {
101 samsung,pins = "gpx1-0";
102 samsung,pin-function = <0>;
103 samsung,pin-pud = <0>;
104 samsung,pin-drv = <0>;
105 };
106
107 power_key_irq: power-key-irq {
108 samsung,pins = "gpx1-2";
109 samsung,pin-function = <0>;
110 samsung,pin-pud = <0>;
111 samsung,pin-drv = <0>;
112 };
Rahul Sharma6ac189f2014-05-16 05:23:21 +0900113
114 hdmi_hpd_irq: hdmi-hpd-irq {
115 samsung,pins = "gpx3-7";
116 samsung,pin-function = <0>;
117 samsung,pin-pud = <1>;
118 samsung,pin-drv = <0>;
119 };
Arun Kumar K3528dd32014-05-09 06:06:25 +0900120};
121
Vivek Gautam14a35ad2014-05-19 22:29:42 +0900122&pinctrl_3 {
123 usb300_vbus_en: usb300-vbus-en {
124 samsung,pins = "gph0-0";
125 samsung,pin-function = <1>;
126 samsung,pin-pud = <0>;
127 samsung,pin-drv = <0>;
128 };
129
130 usb301_vbus_en: usb301-vbus-en {
131 samsung,pins = "gph0-1";
132 samsung,pin-function = <1>;
133 samsung,pin-pud = <0>;
134 samsung,pin-drv = <0>;
135 };
136};
137
Arun Kumar K3528dd32014-05-09 06:06:25 +0900138&rtc {
139 status = "okay";
140};
141
142&uart_3 {
143 status = "okay";
144};
145
146&mmc_0 {
147 status = "okay";
148 num-slots = <1>;
149 broken-cd;
150 caps2-mmc-hs200-1_8v;
151 supports-highspeed;
152 non-removable;
153 card-detect-delay = <200>;
154 clock-frequency = <400000000>;
155 samsung,dw-mshc-ciu-div = <3>;
156 samsung,dw-mshc-sdr-timing = <0 4>;
157 samsung,dw-mshc-ddr-timing = <0 2>;
158 pinctrl-names = "default";
159 pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus4 &sd0_bus8>;
160
161 slot@0 {
162 reg = <0>;
163 bus-width = <8>;
164 };
165};
166
167&mmc_2 {
168 status = "okay";
169 num-slots = <1>;
170 supports-highspeed;
171 card-detect-delay = <200>;
172 clock-frequency = <400000000>;
173 samsung,dw-mshc-ciu-div = <3>;
174 samsung,dw-mshc-sdr-timing = <2 3>;
175 samsung,dw-mshc-ddr-timing = <1 2>;
176 pinctrl-names = "default";
177 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>;
178
179 slot@0 {
180 reg = <0>;
181 bus-width = <4>;
182 };
183};
184
Tushar Beheraead39932014-05-17 07:44:10 +0900185&hsi2c_7 {
186 status = "okay";
187
188 max98090: codec@10 {
189 compatible = "maxim,max98090";
190 reg = <0x10>;
191 interrupts = <2 0>;
192 interrupt-parent = <&gpx0>;
193 pinctrl-names = "default";
194 pinctrl-0 = <&max98090_irq>;
195 };
196};
197
Arun Kumar K3528dd32014-05-09 06:06:25 +0900198&hsi2c_9 {
199 status = "okay";
200 clock-frequency = <400000>;
201
202 tpm@20 {
203 compatible = "infineon,slb9645tt";
204 reg = <0x20>;
205
206 /* Unused irq; but still need to configure the pins */
207 pinctrl-names = "default";
208 pinctrl-0 = <&tpm_irq>;
209 };
210};
211
Rahul Sharma6ac189f2014-05-16 05:23:21 +0900212&i2c_2 {
213 status = "okay";
214 samsung,i2c-sda-delay = <100>;
215 samsung,i2c-max-bus-freq = <66000>;
216 samsung,i2c-slave-addr = <0x50>;
217};
218
219&hdmi {
220 status = "okay";
221 hpd-gpio = <&gpx3 7 GPIO_ACTIVE_HIGH>;
222 pinctrl-names = "default";
223 pinctrl-0 = <&hdmi_hpd_irq>;
224 ddc = <&i2c_2>;
225};
226
Vivek Gautam14a35ad2014-05-19 22:29:42 +0900227&usbdrd3_0 {
228 vbus-supply = <&usb300_vbus_reg>;
229};
230
231&usbdrd3_1 {
232 vbus-supply = <&usb301_vbus_reg>;
233};
234
Arun Kumar K3528dd32014-05-09 06:06:25 +0900235/*
236 * Use longest HW watchdog in SoC (32 seconds) since the hardware
237 * watchdog provides no debugging information (compared to soft/hard
238 * lockup detectors) and so should be last resort.
239 */
240&watchdog {
241 timeout-sec = <32>;
242};
Tushar Beheraead39932014-05-17 07:44:10 +0900243
244&i2s0 {
245 status = "okay";
246};