blob: 76826dc23b92c3b69f4eda5887793968a0078b98 [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
33 dmc {
34 mem-manuf = "samsung";
35 mem-type = "ddr3";
36 clock-frequency = <800000000>;
Simon Glass6f755eb2015-01-05 20:05:42 -070037 arm-frequency = <900000000>;
Akshay Saraswate6b723f2014-11-13 22:38:16 +053038 };
39
40 tmu@10060000 {
41 samsung,min-temp = <25>;
42 samsung,max-temp = <125>;
43 samsung,start-warning = <95>;
44 samsung,start-tripping = <105>;
45 samsung,hw-tripping = <110>;
46 samsung,efuse-min-value = <40>;
47 samsung,efuse-value = <55>;
48 samsung,efuse-max-value = <100>;
49 samsung,slope = <274761730>;
50 samsung,dc-value = <25>;
51 };
52
53 /* MAX77802 is on i2c bus 4 */
Simon Glassf1ac35b2015-07-02 18:15:48 -060054 i2c@12CA0000 {
Akshay Saraswate6b723f2014-11-13 22:38:16 +053055 clock-frequency = <400000>;
56 power-regulator@9 {
57 compatible = "maxim,max77802-pmic";
58 reg = <0x9>;
59 };
60 };
61
Simon Glassf1ac35b2015-07-02 18:15:48 -060062 i2c@12CD0000 { /* i2c7 */
Akshay Saraswate6b723f2014-11-13 22:38:16 +053063 clock-frequency = <100000>;
64 soundcodec@20 {
65 reg = <0x20>;
66 compatible = "maxim,max98090-codec";
67 };
Akshay Saraswate6b723f2014-11-13 22:38:16 +053068 };
69
70 sound@3830000 {
71 samsung,codec-type = "max98090";
72 };
73
Simon Glassf1ac35b2015-07-02 18:15:48 -060074 i2c@12E10000 { /* i2c9 */
Akshay Saraswate6b723f2014-11-13 22:38:16 +053075 clock-frequency = <400000>;
Simon Glass6e474ea2015-08-22 18:31:37 -060076 tpm@20 {
77 compatible = "infineon,slb9645tt";
78 reg = <0x20>;
Akshay Saraswate6b723f2014-11-13 22:38:16 +053079 };
80 };
81
82 spi@12d30000 { /* spi1 */
83 spi-max-frequency = <50000000>;
84 firmware_storage_spi: flash@0 {
85 reg = <0>;
86
87 /*
88 * A region for the kernel to store a panic event
89 * which the firmware will add to the log.
90 */
91 elog-panic-event-offset = <0x01e00000 0x100000>;
92
93 elog-shrink-size = <0x400>;
94 elog-full-threshold = <0xc00>;
95 };
96 };
97
Akshay Saraswate6b723f2014-11-13 22:38:16 +053098 xhci@12000000 {
Simon Glass6f755eb2015-01-05 20:05:42 -070099 samsung,vbus-gpio = <&gph0 0 GPIO_ACTIVE_HIGH>;
Akshay Saraswate6b723f2014-11-13 22:38:16 +0530100 };
101
102 xhci@12400000 {
Simon Glass6f755eb2015-01-05 20:05:42 -0700103 samsung,vbus-gpio = <&gph0 1 GPIO_ACTIVE_HIGH>;
Akshay Saraswate6b723f2014-11-13 22:38:16 +0530104 };
105
106 fimd@14400000 {
107 samsung,vl-freq = <60>;
108 samsung,vl-col = <1920>;
109 samsung,vl-row = <1080>;
110 samsung,vl-width = <1920>;
111 samsung,vl-height = <1080>;
112
113 samsung,vl-clkp;
114 samsung,vl-dp;
115 samsung,vl-bpix = <4>;
116
117 samsung,vl-hspw = <80>;
118 samsung,vl-hbpd = <172>;
119 samsung,vl-hfpd = <60>;
120 samsung,vl-vspw = <10>;
121 samsung,vl-vbpd = <25>;
122 samsung,vl-vfpd = <10>;
123 samsung,vl-cmd-allow-len = <0xf>;
124
Ajay Kumar607eff62015-03-04 19:05:30 +0530125 samsung,power-on-delay = <30000>;
Akshay Saraswate6b723f2014-11-13 22:38:16 +0530126 samsung,winid = <3>;
127 samsung,interface-mode = <1>;
128 samsung,dp-enabled = <1>;
129 samsung,dual-lcd-enabled = <0>;
Ajay Kumar607eff62015-03-04 19:05:30 +0530130
131 samsung,bl-en-gpio = <&gpx2 2 GPIO_ACTIVE_HIGH>;
Akshay Saraswate6b723f2014-11-13 22:38:16 +0530132 };
133};
Sjoerd Simons93322742014-11-27 16:34:08 +0100134
Simon Glassa0942a62015-07-02 18:15:50 -0600135&spi_2 {
136 spi-max-frequency = <3125000>;
137 spi-deactivate-delay = <200>;
138 status = "okay";
139 num-cs = <1>;
140 samsung,spi-src-clk = <0>;
141 cs-gpios = <&gpb1 2 0>;
142
143 cros_ec: cros-ec@0 {
144 compatible = "google,cros-ec-spi";
145 interrupt-parent = <&gpx1>;
146 interrupts = <5 0>;
147 reg = <0>;
148 spi-half-duplex;
149 spi-max-timeout-ms = <1100>;
150 ec-interrupt = <&gpx1 5 GPIO_ACTIVE_LOW>;
151
152 /*
153 * This describes the flash memory within the EC. Note
154 * that the STM32L flash erases to 0, not 0xff.
155 */
156 #address-cells = <1>;
157 #size-cells = <1>;
158 flash@8000000 {
159 reg = <0x08000000 0x20000>;
160 erase-value = <0>;
161 };
162
163 controller-data {
164 samsung,spi-feedback-delay = <1>;
165 };
166
167 i2c_tunnel: i2c-tunnel {
168 compatible = "google,cros-ec-i2c-tunnel";
169 #address-cells = <1>;
170 #size-cells = <0>;
171 google,remote-bus = <0>;
172
173 battery: sbs-battery@b {
174 compatible = "sbs,sbs-battery";
175 reg = <0xb>;
176 sbs,poll-retry-count = <1>;
177 sbs,i2c-retry-count = <2>;
178 };
179
180 power-regulator@48 {
181 compatible = "ti,tps65090";
182 reg = <0x48>;
183
184 regulators {
185 tps65090_dcdc1: dcdc1 {
186 ti,enable-ext-control;
187 };
188 tps65090_dcdc2: dcdc2 {
189 ti,enable-ext-control;
190 };
191 tps65090_dcdc3: dcdc3 {
192 ti,enable-ext-control;
193 };
194 tps65090_fet1: fet1 {
195 regulator-name = "vcd_led";
196 };
197 tps65090_fet2: fet2 {
198 regulator-name = "video_mid";
199 regulator-always-on;
200 };
201 tps65090_fet3: fet3 {
202 regulator-name = "wwan_r";
203 regulator-always-on;
204 };
205 tps65090_fet4: fet4 {
206 regulator-name = "sdcard";
207 regulator-always-on;
208 };
209 tps65090_fet5: fet5 {
210 regulator-name = "camout";
211 regulator-always-on;
212 };
213 tps65090_fet6: fet6 {
214 regulator-name = "lcd_vdd";
215 };
216 tps65090_fet7: fet7 {
217 regulator-name = "video_mid_1a";
218 regulator-always-on;
219 };
220 tps65090_ldo1: ldo1 {
221 };
222 tps65090_ldo2: ldo2 {
223 };
224 };
225
226 charger {
227 compatible = "ti,tps65090-charger";
228 };
229 };
230 };
231 };
232};
233
Sjoerd Simons93322742014-11-27 16:34:08 +0100234#include "cros-ec-keyboard.dtsi"