blob: 600c2948cf3eebdce9be99b91e2ffcbe4224d6f9 [file] [log] [blame]
Akshay Saraswat257863f2014-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";
15
16 compatible = "google,pit-rev#", "google,pit",
17 "google,peach", "samsung,exynos5800", "samsung,exynos5";
18
19 config {
Simon Glassdabafc32015-01-05 20:05:42 -070020 google,bad-wake-gpios = <&gpx0 6 GPIO_ACTIVE_HIGH>;
Akshay Saraswat257863f2014-11-13 22:38:16 +053021 hwid = "PIT TEST A-A 7848";
22 lazy-init = <1>;
23 };
24
25 aliases {
26 serial0 = "/serial@12C30000";
27 console = "/serial@12C30000";
Simon Glass2a61b442015-07-02 18:15:48 -060028 pmic = "/i2c@12CA0000";
Simon Glass96199442015-07-02 18:15:50 -060029 i2c104 = &i2c_tunnel;
Akshay Saraswat257863f2014-11-13 22:38:16 +053030 };
31
32 dmc {
33 mem-manuf = "samsung";
34 mem-type = "ddr3";
35 clock-frequency = <800000000>;
Simon Glassdabafc32015-01-05 20:05:42 -070036 arm-frequency = <900000000>;
Akshay Saraswat257863f2014-11-13 22:38:16 +053037 };
38
39 tmu@10060000 {
40 samsung,min-temp = <25>;
41 samsung,max-temp = <125>;
42 samsung,start-warning = <95>;
43 samsung,start-tripping = <105>;
44 samsung,hw-tripping = <110>;
45 samsung,efuse-min-value = <40>;
46 samsung,efuse-value = <55>;
47 samsung,efuse-max-value = <100>;
48 samsung,slope = <274761730>;
49 samsung,dc-value = <25>;
50 };
51
52 /* MAX77802 is on i2c bus 4 */
Simon Glass2a61b442015-07-02 18:15:48 -060053 i2c@12CA0000 {
Akshay Saraswat257863f2014-11-13 22:38:16 +053054 clock-frequency = <400000>;
55 power-regulator@9 {
56 compatible = "maxim,max77802-pmic";
57 reg = <0x9>;
58 };
59 };
60
Simon Glass2a61b442015-07-02 18:15:48 -060061 i2c@12CD0000 { /* i2c7 */
Akshay Saraswat257863f2014-11-13 22:38:16 +053062 clock-frequency = <100000>;
63 soundcodec@20 {
64 reg = <0x20>;
65 compatible = "maxim,max98090-codec";
66 };
Akshay Saraswat257863f2014-11-13 22:38:16 +053067 };
68
69 sound@3830000 {
70 samsung,codec-type = "max98090";
71 };
72
Simon Glass2a61b442015-07-02 18:15:48 -060073 i2c@12E10000 { /* i2c9 */
Akshay Saraswat257863f2014-11-13 22:38:16 +053074 clock-frequency = <400000>;
75 tpm@20 {
Simon Glass023ff8a2015-05-04 11:31:00 -060076 compatible = "infineon,slb9645tt";
Akshay Saraswat257863f2014-11-13 22:38:16 +053077 reg = <0x20>;
78 };
79 };
80
81 spi@12d30000 { /* spi1 */
82 spi-max-frequency = <50000000>;
83 firmware_storage_spi: flash@0 {
84 reg = <0>;
85
86 /*
87 * A region for the kernel to store a panic event
88 * which the firmware will add to the log.
89 */
90 elog-panic-event-offset = <0x01e00000 0x100000>;
91
92 elog-shrink-size = <0x400>;
93 elog-full-threshold = <0xc00>;
94 };
95 };
96
Akshay Saraswat257863f2014-11-13 22:38:16 +053097 xhci@12000000 {
Simon Glassdabafc32015-01-05 20:05:42 -070098 samsung,vbus-gpio = <&gph0 0 GPIO_ACTIVE_HIGH>;
Akshay Saraswat257863f2014-11-13 22:38:16 +053099 };
100
101 xhci@12400000 {
Simon Glassdabafc32015-01-05 20:05:42 -0700102 samsung,vbus-gpio = <&gph0 1 GPIO_ACTIVE_HIGH>;
Akshay Saraswat257863f2014-11-13 22:38:16 +0530103 };
104
105 fimd@14400000 {
106 samsung,vl-freq = <60>;
107 samsung,vl-col = <1920>;
108 samsung,vl-row = <1080>;
109 samsung,vl-width = <1920>;
110 samsung,vl-height = <1080>;
111
112 samsung,vl-clkp;
113 samsung,vl-dp;
114 samsung,vl-bpix = <4>;
115
116 samsung,vl-hspw = <80>;
117 samsung,vl-hbpd = <172>;
118 samsung,vl-hfpd = <60>;
119 samsung,vl-vspw = <10>;
120 samsung,vl-vbpd = <25>;
121 samsung,vl-vfpd = <10>;
122 samsung,vl-cmd-allow-len = <0xf>;
123
Ajay Kumarc9796562015-03-04 19:05:30 +0530124 samsung,power-on-delay = <30000>;
Akshay Saraswat257863f2014-11-13 22:38:16 +0530125 samsung,winid = <3>;
126 samsung,interface-mode = <1>;
127 samsung,dp-enabled = <1>;
128 samsung,dual-lcd-enabled = <0>;
Ajay Kumarc9796562015-03-04 19:05:30 +0530129
130 samsung,bl-en-gpio = <&gpx2 2 GPIO_ACTIVE_HIGH>;
Akshay Saraswat257863f2014-11-13 22:38:16 +0530131 };
132};
Sjoerd Simonsd2f895f2014-11-27 16:34:08 +0100133
Simon Glass96199442015-07-02 18:15:50 -0600134&spi_2 {
135 spi-max-frequency = <3125000>;
136 spi-deactivate-delay = <200>;
137 status = "okay";
138 num-cs = <1>;
139 samsung,spi-src-clk = <0>;
140 cs-gpios = <&gpb1 2 0>;
141
142 cros_ec: cros-ec@0 {
143 compatible = "google,cros-ec-spi";
144 interrupt-parent = <&gpx1>;
145 interrupts = <5 0>;
146 reg = <0>;
147 spi-half-duplex;
148 spi-max-timeout-ms = <1100>;
149 ec-interrupt = <&gpx1 5 GPIO_ACTIVE_LOW>;
150
151 /*
152 * This describes the flash memory within the EC. Note
153 * that the STM32L flash erases to 0, not 0xff.
154 */
155 #address-cells = <1>;
156 #size-cells = <1>;
157 flash@8000000 {
158 reg = <0x08000000 0x20000>;
159 erase-value = <0>;
160 };
161
162 controller-data {
163 samsung,spi-feedback-delay = <1>;
164 };
165
166 i2c_tunnel: i2c-tunnel {
167 compatible = "google,cros-ec-i2c-tunnel";
168 #address-cells = <1>;
169 #size-cells = <0>;
170 google,remote-bus = <0>;
171
172 battery: sbs-battery@b {
173 compatible = "sbs,sbs-battery";
174 reg = <0xb>;
175 sbs,poll-retry-count = <1>;
176 sbs,i2c-retry-count = <2>;
177 };
178
179 power-regulator@48 {
180 compatible = "ti,tps65090";
181 reg = <0x48>;
182
183 regulators {
184 tps65090_dcdc1: dcdc1 {
185 ti,enable-ext-control;
186 };
187 tps65090_dcdc2: dcdc2 {
188 ti,enable-ext-control;
189 };
190 tps65090_dcdc3: dcdc3 {
191 ti,enable-ext-control;
192 };
193 tps65090_fet1: fet1 {
194 regulator-name = "vcd_led";
195 };
196 tps65090_fet2: fet2 {
197 regulator-name = "video_mid";
198 regulator-always-on;
199 };
200 tps65090_fet3: fet3 {
201 regulator-name = "wwan_r";
202 regulator-always-on;
203 };
204 tps65090_fet4: fet4 {
205 regulator-name = "sdcard";
206 regulator-always-on;
207 };
208 tps65090_fet5: fet5 {
209 regulator-name = "camout";
210 regulator-always-on;
211 };
212 tps65090_fet6: fet6 {
213 regulator-name = "lcd_vdd";
214 };
215 tps65090_fet7: fet7 {
216 regulator-name = "video_mid_1a";
217 regulator-always-on;
218 };
219 tps65090_ldo1: ldo1 {
220 };
221 tps65090_ldo2: ldo2 {
222 };
223 };
224
225 charger {
226 compatible = "ti,tps65090-charger";
227 };
228 };
229 };
230 };
231};
232
Sjoerd Simonsd2f895f2014-11-27 16:34:08 +0100233#include "cros-ec-keyboard.dtsi"