2012-11-21 11:32:21 +07:00
|
|
|
/*
|
|
|
|
* Google Snow board device tree source
|
|
|
|
*
|
|
|
|
* Copyright (c) 2012 Google, Inc
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
2013-06-17 22:02:08 +07:00
|
|
|
#include "exynos5250.dtsi"
|
2013-12-21 08:09:25 +07:00
|
|
|
#include "exynos5250-cros-common.dtsi"
|
2012-11-21 11:32:21 +07:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Google Snow";
|
2014-03-21 00:17:22 +07:00
|
|
|
compatible = "google,snow", "samsung,exynos5250", "samsung,exynos5";
|
2012-11-21 11:32:21 +07:00
|
|
|
|
2013-04-16 23:29:01 +07:00
|
|
|
aliases {
|
|
|
|
i2c104 = &i2c_104;
|
|
|
|
};
|
|
|
|
|
2014-02-24 06:47:28 +07:00
|
|
|
rtc@101E0000 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2013-04-04 12:16:11 +07:00
|
|
|
pinctrl@11400000 {
|
2014-05-16 03:16:11 +07:00
|
|
|
ec_irq: ec-irq {
|
|
|
|
samsung,pins = "gpx1-6";
|
|
|
|
samsung,pin-function = <0>;
|
|
|
|
samsung,pin-pud = <0>;
|
|
|
|
samsung,pin-drv = <0>;
|
|
|
|
};
|
|
|
|
|
2013-04-04 12:16:11 +07:00
|
|
|
sd3_clk: sd3-clk {
|
|
|
|
samsung,pin-drv = <0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
sd3_cmd: sd3-cmd {
|
|
|
|
samsung,pin-pud = <3>;
|
|
|
|
samsung,pin-drv = <0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
sd3_bus4: sd3-bus-width4 {
|
|
|
|
samsung,pin-drv = <0>;
|
|
|
|
};
|
2014-05-16 03:16:14 +07:00
|
|
|
|
2014-05-17 05:43:18 +07:00
|
|
|
max98095_en: max98095-en {
|
|
|
|
samsung,pins = "gpx1-7";
|
|
|
|
samsung,pin-function = <0>;
|
|
|
|
samsung,pin-pud = <3>;
|
|
|
|
samsung,pin-drv = <0>;
|
|
|
|
};
|
|
|
|
|
2014-05-16 03:16:14 +07:00
|
|
|
tps65090_irq: tps65090-irq {
|
|
|
|
samsung,pins = "gpx2-6";
|
|
|
|
samsung,pin-function = <0>;
|
|
|
|
samsung,pin-pud = <0>;
|
|
|
|
samsung,pin-drv = <0>;
|
|
|
|
};
|
2014-05-16 03:22:41 +07:00
|
|
|
|
2014-05-19 20:23:43 +07:00
|
|
|
usb3_vbus_en: usb3-vbus-en {
|
|
|
|
samsung,pins = "gpx2-7";
|
|
|
|
samsung,pin-function = <1>;
|
|
|
|
samsung,pin-pud = <0>;
|
|
|
|
samsung,pin-drv = <0>;
|
|
|
|
};
|
|
|
|
|
2014-05-16 03:22:41 +07:00
|
|
|
hdmi_hpd_irq: hdmi-hpd-irq {
|
|
|
|
samsung,pins = "gpx3-7";
|
|
|
|
samsung,pin-function = <0>;
|
|
|
|
samsung,pin-pud = <1>;
|
|
|
|
samsung,pin-drv = <0>;
|
|
|
|
};
|
2013-04-04 12:16:11 +07:00
|
|
|
};
|
|
|
|
|
2014-05-16 03:16:07 +07:00
|
|
|
pinctrl@13400000 {
|
|
|
|
arb_their_claim: arb-their-claim {
|
|
|
|
samsung,pins = "gpe0-4";
|
|
|
|
samsung,pin-function = <0>;
|
|
|
|
samsung,pin-pud = <3>;
|
|
|
|
samsung,pin-drv = <0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
arb_our_claim: arb-our-claim {
|
|
|
|
samsung,pins = "gpf0-3";
|
|
|
|
samsung,pin-function = <1>;
|
|
|
|
samsung,pin-pud = <0>;
|
|
|
|
samsung,pin-drv = <0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2012-11-21 11:32:21 +07:00
|
|
|
gpio-keys {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
|
|
|
|
lid-switch {
|
|
|
|
label = "Lid";
|
2013-04-04 12:16:11 +07:00
|
|
|
gpios = <&gpx3 5 1>;
|
2012-11-21 11:32:21 +07:00
|
|
|
linux,input-type = <5>; /* EV_SW */
|
|
|
|
linux,code = <0>; /* SW_LID */
|
|
|
|
debounce-interval = <1>;
|
|
|
|
gpio-key,wakeup;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2014-05-16 03:16:14 +07:00
|
|
|
vbat: vbat-fixed-regulator {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "vbat-supply";
|
|
|
|
regulator-boot-on;
|
|
|
|
};
|
|
|
|
|
2013-04-16 23:29:01 +07:00
|
|
|
i2c-arbitrator {
|
|
|
|
compatible = "i2c-arb-gpio-challenge";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
i2c-parent = <&{/i2c@12CA0000}>;
|
|
|
|
|
|
|
|
our-claim-gpio = <&gpf0 3 1>;
|
|
|
|
their-claim-gpios = <&gpe0 4 1>;
|
|
|
|
slew-delay-us = <10>;
|
|
|
|
wait-retry-us = <3000>;
|
|
|
|
wait-free-us = <50000>;
|
|
|
|
|
2014-05-16 03:16:07 +07:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&arb_our_claim &arb_their_claim>;
|
|
|
|
|
2013-04-16 23:29:01 +07:00
|
|
|
/* Use ID 104 as a hint that we're on physical bus 4 */
|
|
|
|
i2c_104: i2c@0 {
|
|
|
|
reg = <0>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
2013-04-16 23:29:02 +07:00
|
|
|
|
|
|
|
battery: sbs-battery@b {
|
|
|
|
compatible = "sbs,sbs-battery";
|
|
|
|
reg = <0xb>;
|
|
|
|
sbs,poll-retry-count = <1>;
|
|
|
|
};
|
2013-04-28 05:14:10 +07:00
|
|
|
|
2014-06-05 05:20:20 +07:00
|
|
|
cros_ec: embedded-controller {
|
2013-04-28 05:14:10 +07:00
|
|
|
compatible = "google,cros-ec-i2c";
|
|
|
|
reg = <0x1e>;
|
|
|
|
interrupts = <6 0>;
|
|
|
|
interrupt-parent = <&gpx1>;
|
2014-05-16 03:16:11 +07:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&ec_irq>;
|
2013-04-28 05:14:10 +07:00
|
|
|
wakeup-source;
|
|
|
|
};
|
2014-05-16 03:16:14 +07:00
|
|
|
|
|
|
|
power-regulator {
|
|
|
|
compatible = "ti,tps65090";
|
|
|
|
reg = <0x48>;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Config irq to disable internal pulls
|
|
|
|
* even though we run in polling mode.
|
|
|
|
*/
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&tps65090_irq>;
|
|
|
|
|
|
|
|
vsys1-supply = <&vbat>;
|
|
|
|
vsys2-supply = <&vbat>;
|
|
|
|
vsys3-supply = <&vbat>;
|
|
|
|
infet1-supply = <&vbat>;
|
|
|
|
infet2-supply = <&vbat>;
|
|
|
|
infet3-supply = <&vbat>;
|
|
|
|
infet4-supply = <&vbat>;
|
|
|
|
infet5-supply = <&vbat>;
|
|
|
|
infet6-supply = <&vbat>;
|
|
|
|
infet7-supply = <&vbat>;
|
|
|
|
vsys-l1-supply = <&vbat>;
|
|
|
|
vsys-l2-supply = <&vbat>;
|
|
|
|
|
|
|
|
regulators {
|
|
|
|
dcdc1 {
|
|
|
|
ti,enable-ext-control;
|
|
|
|
};
|
|
|
|
dcdc2 {
|
|
|
|
ti,enable-ext-control;
|
|
|
|
};
|
|
|
|
dcdc3 {
|
|
|
|
ti,enable-ext-control;
|
|
|
|
};
|
|
|
|
fet1 {
|
|
|
|
regulator-name = "vcd_led";
|
|
|
|
ti,overcurrent-wait = <3>;
|
|
|
|
};
|
|
|
|
tps65090_fet2: fet2 {
|
|
|
|
regulator-name = "video_mid";
|
|
|
|
regulator-always-on;
|
|
|
|
ti,overcurrent-wait = <3>;
|
|
|
|
};
|
|
|
|
fet3 {
|
|
|
|
regulator-name = "wwan_r";
|
|
|
|
regulator-always-on;
|
|
|
|
ti,overcurrent-wait = <3>;
|
|
|
|
};
|
|
|
|
fet4 {
|
|
|
|
regulator-name = "sdcard";
|
|
|
|
ti,overcurrent-wait = <3>;
|
|
|
|
};
|
|
|
|
fet5 {
|
|
|
|
regulator-name = "camout";
|
|
|
|
regulator-always-on;
|
|
|
|
ti,overcurrent-wait = <3>;
|
|
|
|
};
|
|
|
|
fet6 {
|
|
|
|
regulator-name = "lcd_vdd";
|
|
|
|
ti,overcurrent-wait = <3>;
|
|
|
|
};
|
|
|
|
tps65090_fet7: fet7 {
|
|
|
|
regulator-name = "video_mid_1a";
|
|
|
|
regulator-always-on;
|
|
|
|
ti,overcurrent-wait = <3>;
|
|
|
|
};
|
|
|
|
ldo1 {
|
|
|
|
};
|
|
|
|
ldo2 {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
charger {
|
|
|
|
compatible = "ti,tps65090-charger";
|
|
|
|
};
|
|
|
|
};
|
2013-04-16 23:29:01 +07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2013-12-19 02:31:19 +07:00
|
|
|
mmc@12200000 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
mmc@12220000 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2012-11-21 11:32:21 +07:00
|
|
|
/*
|
|
|
|
* On Snow we've got SIP WiFi and so can keep drive strengths low to
|
|
|
|
* reduce EMI.
|
|
|
|
*/
|
2013-10-21 03:48:16 +07:00
|
|
|
mmc@12230000 {
|
2013-12-19 02:31:19 +07:00
|
|
|
status = "okay";
|
2012-11-21 11:32:21 +07:00
|
|
|
slot@0 {
|
2013-04-04 12:16:11 +07:00
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&sd3_clk &sd3_cmd &sd3_bus4>;
|
2012-11-21 11:32:21 +07:00
|
|
|
};
|
|
|
|
};
|
2013-02-13 06:24:15 +07:00
|
|
|
|
2014-05-17 05:43:18 +07:00
|
|
|
i2c@12CD0000 {
|
|
|
|
max98095: codec@11 {
|
|
|
|
compatible = "maxim,max98095";
|
|
|
|
reg = <0x11>;
|
|
|
|
pinctrl-0 = <&max98095_en>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
i2s0: i2s@03830000 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
sound {
|
|
|
|
compatible = "google,snow-audio-max98095";
|
|
|
|
|
2014-07-08 06:20:08 +07:00
|
|
|
samsung,model = "Snow-I2S-MAX98095";
|
2014-05-17 05:43:18 +07:00
|
|
|
samsung,i2s-controller = <&i2s0>;
|
|
|
|
samsung,audio-codec = <&max98095>;
|
|
|
|
};
|
|
|
|
|
2014-05-19 20:23:43 +07:00
|
|
|
usb3_vbus_reg: regulator-usb3 {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "P5.0V_USB3CON";
|
|
|
|
regulator-min-microvolt = <5000000>;
|
|
|
|
regulator-max-microvolt = <5000000>;
|
|
|
|
gpio = <&gpx2 7 0>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&usb3_vbus_en>;
|
|
|
|
enable-active-high;
|
|
|
|
};
|
|
|
|
|
|
|
|
phy@12100000 {
|
|
|
|
vbus-supply = <&usb3_vbus_reg>;
|
|
|
|
};
|
|
|
|
|
2013-02-13 06:24:15 +07:00
|
|
|
usb@12110000 {
|
2013-05-09 00:37:16 +07:00
|
|
|
samsung,vbus-gpio = <&gpx1 1 0>;
|
2013-02-13 06:24:15 +07:00
|
|
|
};
|
2013-03-09 15:19:22 +07:00
|
|
|
|
|
|
|
fixed-rate-clocks {
|
|
|
|
xxti {
|
|
|
|
compatible = "samsung,clock-xxti";
|
|
|
|
clock-frequency = <24000000>;
|
|
|
|
};
|
|
|
|
};
|
2014-05-16 03:22:41 +07:00
|
|
|
|
|
|
|
hdmi {
|
|
|
|
hdmi-en-supply = <&tps65090_fet7>;
|
|
|
|
vdd-supply = <&ldo8_reg>;
|
|
|
|
vdd_osc-supply = <&ldo10_reg>;
|
|
|
|
vdd_pll-supply = <&ldo8_reg>;
|
|
|
|
};
|
2014-05-19 20:38:18 +07:00
|
|
|
|
|
|
|
backlight {
|
|
|
|
compatible = "pwm-backlight";
|
|
|
|
pwms = <&pwm 0 1000000 0>;
|
|
|
|
brightness-levels = <0 100 500 1000 1500 2000 2500 2800>;
|
|
|
|
default-brightness-level = <7>;
|
|
|
|
pinctrl-0 = <&pwm0_out>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
};
|
|
|
|
|
2014-05-19 20:56:49 +07:00
|
|
|
fimd@14400000 {
|
|
|
|
status = "okay";
|
|
|
|
samsung,invert-vclk;
|
|
|
|
};
|
2014-05-19 20:58:47 +07:00
|
|
|
|
|
|
|
dp-controller@145B0000 {
|
|
|
|
status = "okay";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&dp_hpd>;
|
|
|
|
samsung,color-space = <0>;
|
|
|
|
samsung,dynamic-range = <0>;
|
|
|
|
samsung,ycbcr-coeff = <0>;
|
|
|
|
samsung,color-depth = <1>;
|
|
|
|
samsung,link-rate = <0x0a>;
|
|
|
|
samsung,lane-count = <2>;
|
|
|
|
samsung,hpd-gpio = <&gpx0 7 0>;
|
|
|
|
|
|
|
|
display-timings {
|
|
|
|
native-mode = <&timing1>;
|
|
|
|
|
|
|
|
timing1: timing@1 {
|
|
|
|
clock-frequency = <70589280>;
|
|
|
|
hactive = <1366>;
|
|
|
|
vactive = <768>;
|
|
|
|
hfront-porch = <40>;
|
|
|
|
hback-porch = <40>;
|
|
|
|
hsync-len = <32>;
|
|
|
|
vback-porch = <10>;
|
|
|
|
vfront-porch = <12>;
|
|
|
|
vsync-len = <6>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2012-11-21 11:32:21 +07:00
|
|
|
};
|
2014-06-05 05:20:20 +07:00
|
|
|
|
|
|
|
#include "cros-ec-keyboard.dtsi"
|