blob: 4c139bf143a5aff64923e15573b185cf4347f1f1 [file] [log] [blame]
Akshay Saraswate6b723f2014-11-13 22:38:16 +05301/*
2 * SAMSUNG/GOOGLE Peach-Pit board device tree source
3 *
4 * Copyright (c) 2013 Samsung Electronics Co., Ltd.
5 * http://www.samsung.com
6 *
7 * SPDX-License-Identifier: GPL-2.0+
8 */
9
10/dts-v1/;
11#include "exynos54xx.dtsi"
12
13/ {
14 model = "Samsung/Google Peach Pi board based on Exynos5800";
Przemyslaw Marczak3b72b602015-10-27 13:07:56 +010015 cpu-model = "Exynos5800";
Akshay Saraswate6b723f2014-11-13 22:38:16 +053016
17 compatible = "google,pit-rev#", "google,pit",
18 "google,peach", "samsung,exynos5800", "samsung,exynos5";
19
20 config {
Simon Glass6f755eb2015-01-05 20:05:42 -070021 google,bad-wake-gpios = <&gpx0 6 GPIO_ACTIVE_HIGH>;
Akshay Saraswate6b723f2014-11-13 22:38:16 +053022 hwid = "PIT TEST A-A 7848";
23 lazy-init = <1>;
24 };
25
26 aliases {
27 serial0 = "/serial@12C30000";
28 console = "/serial@12C30000";
Simon Glassf1ac35b2015-07-02 18:15:48 -060029 pmic = "/i2c@12CA0000";
Simon Glassa0942a62015-07-02 18:15:50 -060030 i2c104 = &i2c_tunnel;
Akshay Saraswate6b723f2014-11-13 22:38:16 +053031 };
32
Simon Glassf948f5d2016-02-21 21:08:58 -070033 backlight: backlight {
34 compatible = "pwm-backlight";
35 pwms = <&pwm 0 1000000 0>;
36 brightness-levels = <0 100 500 1000 1500 2000 2500 2800>;
37 default-brightness-level = <7>;
38 enable-gpios = <&gpx2 2 GPIO_ACTIVE_HIGH>;
39 power-supply = <&tps65090_fet1>;
40 };
41
42 panel: panel {
43 compatible = "auo,b133htn01";
44 power-supply = <&tps65090_fet6>;
45 backlight = <&backlight>;
46
47 port {
48 panel_in: endpoint {
49 remote-endpoint = <&dp_out>;
50 };
51 };
52 };
53
Akshay Saraswate6b723f2014-11-13 22:38:16 +053054 dmc {
55 mem-manuf = "samsung";
56 mem-type = "ddr3";
57 clock-frequency = <800000000>;
Simon Glass6f755eb2015-01-05 20:05:42 -070058 arm-frequency = <900000000>;
Akshay Saraswate6b723f2014-11-13 22:38:16 +053059 };
60
61 tmu@10060000 {
62 samsung,min-temp = <25>;
63 samsung,max-temp = <125>;
64 samsung,start-warning = <95>;
65 samsung,start-tripping = <105>;
66 samsung,hw-tripping = <110>;
67 samsung,efuse-min-value = <40>;
68 samsung,efuse-value = <55>;
69 samsung,efuse-max-value = <100>;
70 samsung,slope = <274761730>;
71 samsung,dc-value = <25>;
72 };
73
74 /* MAX77802 is on i2c bus 4 */
Simon Glassf1ac35b2015-07-02 18:15:48 -060075 i2c@12CA0000 {
Akshay Saraswate6b723f2014-11-13 22:38:16 +053076 clock-frequency = <400000>;
77 power-regulator@9 {
78 compatible = "maxim,max77802-pmic";
79 reg = <0x9>;
80 };
81 };
82
Simon Glassf1ac35b2015-07-02 18:15:48 -060083 i2c@12CD0000 { /* i2c7 */
Akshay Saraswate6b723f2014-11-13 22:38:16 +053084 clock-frequency = <100000>;
85 soundcodec@20 {
86 reg = <0x20>;
87 compatible = "maxim,max98090-codec";
88 };
Akshay Saraswate6b723f2014-11-13 22:38:16 +053089 };
90
91 sound@3830000 {
92 samsung,codec-type = "max98090";
93 };
94
Simon Glassf1ac35b2015-07-02 18:15:48 -060095 i2c@12E10000 { /* i2c9 */
Akshay Saraswate6b723f2014-11-13 22:38:16 +053096 clock-frequency = <400000>;
Simon Glass6e474ea2015-08-22 18:31:37 -060097 tpm@20 {
98 compatible = "infineon,slb9645tt";
99 reg = <0x20>;
Akshay Saraswate6b723f2014-11-13 22:38:16 +0530100 };
101 };
102
103 spi@12d30000 { /* spi1 */
104 spi-max-frequency = <50000000>;
105 firmware_storage_spi: flash@0 {
106 reg = <0>;
107
108 /*
109 * A region for the kernel to store a panic event
110 * which the firmware will add to the log.
111 */
112 elog-panic-event-offset = <0x01e00000 0x100000>;
113
114 elog-shrink-size = <0x400>;
115 elog-full-threshold = <0xc00>;
116 };
117 };
118
Akshay Saraswate6b723f2014-11-13 22:38:16 +0530119 xhci@12000000 {
Simon Glass6f755eb2015-01-05 20:05:42 -0700120 samsung,vbus-gpio = <&gph0 0 GPIO_ACTIVE_HIGH>;
Akshay Saraswate6b723f2014-11-13 22:38:16 +0530121 };
122
123 xhci@12400000 {
Simon Glass6f755eb2015-01-05 20:05:42 -0700124 samsung,vbus-gpio = <&gph0 1 GPIO_ACTIVE_HIGH>;
Akshay Saraswate6b723f2014-11-13 22:38:16 +0530125 };
126
127 fimd@14400000 {
128 samsung,vl-freq = <60>;
129 samsung,vl-col = <1920>;
130 samsung,vl-row = <1080>;
131 samsung,vl-width = <1920>;
132 samsung,vl-height = <1080>;
133
134 samsung,vl-clkp;
135 samsung,vl-dp;
136 samsung,vl-bpix = <4>;
137
138 samsung,vl-hspw = <80>;
139 samsung,vl-hbpd = <172>;
140 samsung,vl-hfpd = <60>;
141 samsung,vl-vspw = <10>;
142 samsung,vl-vbpd = <25>;
143 samsung,vl-vfpd = <10>;
144 samsung,vl-cmd-allow-len = <0xf>;
145
Ajay Kumar607eff62015-03-04 19:05:30 +0530146 samsung,power-on-delay = <30000>;
Akshay Saraswate6b723f2014-11-13 22:38:16 +0530147 samsung,winid = <3>;
148 samsung,interface-mode = <1>;
149 samsung,dp-enabled = <1>;
150 samsung,dual-lcd-enabled = <0>;
Ajay Kumar607eff62015-03-04 19:05:30 +0530151
152 samsung,bl-en-gpio = <&gpx2 2 GPIO_ACTIVE_HIGH>;
Akshay Saraswate6b723f2014-11-13 22:38:16 +0530153 };
154};
Sjoerd Simons93322742014-11-27 16:34:08 +0100155
Simon Glassf948f5d2016-02-21 21:08:58 -0700156&dp {
157 status = "okay";
158 samsung,color-space = <0>;
159 samsung,dynamic-range = <0>;
160 samsung,ycbcr-coeff = <0>;
161 samsung,color-depth = <1>;
162 samsung,link-rate = <0x0a>;
163 samsung,lane-count = <2>;
164 samsung,hpd-gpio = <&gpx2 6 GPIO_ACTIVE_HIGH>;
165
166 ports {
167 port {
168 dp_out: endpoint {
169 remote-endpoint = <&panel_in>;
170 };
171 };
172 };
173};
174
Simon Glassa0942a62015-07-02 18:15:50 -0600175&spi_2 {
176 spi-max-frequency = <3125000>;
177 spi-deactivate-delay = <200>;
178 status = "okay";
179 num-cs = <1>;
180 samsung,spi-src-clk = <0>;
181 cs-gpios = <&gpb1 2 0>;
182
183 cros_ec: cros-ec@0 {
184 compatible = "google,cros-ec-spi";
185 interrupt-parent = <&gpx1>;
186 interrupts = <5 0>;
187 reg = <0>;
188 spi-half-duplex;
189 spi-max-timeout-ms = <1100>;
190 ec-interrupt = <&gpx1 5 GPIO_ACTIVE_LOW>;
191
192 /*
193 * This describes the flash memory within the EC. Note
194 * that the STM32L flash erases to 0, not 0xff.
195 */
196 #address-cells = <1>;
197 #size-cells = <1>;
198 flash@8000000 {
199 reg = <0x08000000 0x20000>;
200 erase-value = <0>;
201 };
202
203 controller-data {
204 samsung,spi-feedback-delay = <1>;
205 };
206
207 i2c_tunnel: i2c-tunnel {
208 compatible = "google,cros-ec-i2c-tunnel";
209 #address-cells = <1>;
210 #size-cells = <0>;
211 google,remote-bus = <0>;
212
213 battery: sbs-battery@b {
214 compatible = "sbs,sbs-battery";
215 reg = <0xb>;
216 sbs,poll-retry-count = <1>;
217 sbs,i2c-retry-count = <2>;
218 };
219
220 power-regulator@48 {
221 compatible = "ti,tps65090";
222 reg = <0x48>;
223
224 regulators {
225 tps65090_dcdc1: dcdc1 {
226 ti,enable-ext-control;
227 };
228 tps65090_dcdc2: dcdc2 {
229 ti,enable-ext-control;
230 };
231 tps65090_dcdc3: dcdc3 {
232 ti,enable-ext-control;
233 };
234 tps65090_fet1: fet1 {
235 regulator-name = "vcd_led";
236 };
237 tps65090_fet2: fet2 {
238 regulator-name = "video_mid";
239 regulator-always-on;
240 };
241 tps65090_fet3: fet3 {
242 regulator-name = "wwan_r";
243 regulator-always-on;
244 };
245 tps65090_fet4: fet4 {
246 regulator-name = "sdcard";
247 regulator-always-on;
248 };
249 tps65090_fet5: fet5 {
250 regulator-name = "camout";
251 regulator-always-on;
252 };
253 tps65090_fet6: fet6 {
254 regulator-name = "lcd_vdd";
255 };
256 tps65090_fet7: fet7 {
257 regulator-name = "video_mid_1a";
258 regulator-always-on;
259 };
260 tps65090_ldo1: ldo1 {
261 };
262 tps65090_ldo2: ldo2 {
263 };
264 };
265
266 charger {
267 compatible = "ti,tps65090-charger";
268 };
269 };
270 };
271 };
272};
273
Sjoerd Simons93322742014-11-27 16:34:08 +0100274#include "cros-ec-keyboard.dtsi"