xref: /openbmc/u-boot/arch/arm/dts/rk3288-veyron-jerry.dts (revision 3238474b8f60b17e8a2ccd3e19dee9d836e7a277)
15e9b1503SSimon Glass/*
25e9b1503SSimon Glass * Google Veyron Jerry Rev 3+ board device tree source
35e9b1503SSimon Glass *
45e9b1503SSimon Glass * Copyright 2014 Google, Inc
55e9b1503SSimon Glass *
65e9b1503SSimon Glass * SPDX-License-Identifier:	GPL-2.0
75e9b1503SSimon Glass */
85e9b1503SSimon Glass
95e9b1503SSimon Glass/dts-v1/;
105e9b1503SSimon Glass#include "rk3288-veyron-chromebook.dtsi"
115e9b1503SSimon Glass#include "cros-ec-sbs.dtsi"
125e9b1503SSimon Glass
135e9b1503SSimon Glass/ {
145e9b1503SSimon Glass	model = "Google Jerry";
155e9b1503SSimon Glass	compatible = "google,veyron-jerry-rev7", "google,veyron-jerry-rev6",
165e9b1503SSimon Glass		     "google,veyron-jerry-rev5", "google,veyron-jerry-rev4",
175e9b1503SSimon Glass		     "google,veyron-jerry-rev3", "google,veyron-jerry",
185e9b1503SSimon Glass		     "google,veyron", "rockchip,rk3288";
195e9b1503SSimon Glass
205e9b1503SSimon Glass        chosen {
215e9b1503SSimon Glass                stdout-path = &uart2;
225e9b1503SSimon Glass        };
235e9b1503SSimon Glass
24*3238474bSSimon Glass	panel_regulator: panel-regulator {
255e9b1503SSimon Glass		compatible = "regulator-fixed";
265e9b1503SSimon Glass		enable-active-high;
275e9b1503SSimon Glass		gpio = <&gpio7 14 GPIO_ACTIVE_HIGH>;
285e9b1503SSimon Glass		pinctrl-names = "default";
295e9b1503SSimon Glass		pinctrl-0 = <&lcd_enable_h>;
305e9b1503SSimon Glass		regulator-name = "panel_regulator";
315e9b1503SSimon Glass		vin-supply = <&vcc33_sys>;
325e9b1503SSimon Glass	};
335e9b1503SSimon Glass
345e9b1503SSimon Glass	vcc18_lcd: vcc18-lcd {
355e9b1503SSimon Glass		compatible = "regulator-fixed";
365e9b1503SSimon Glass		enable-active-high;
375e9b1503SSimon Glass		gpio = <&gpio2 13 GPIO_ACTIVE_HIGH>;
385e9b1503SSimon Glass		pinctrl-names = "default";
395e9b1503SSimon Glass		pinctrl-0 = <&avdd_1v8_disp_en>;
405e9b1503SSimon Glass		regulator-name = "vcc18_lcd";
415e9b1503SSimon Glass		regulator-always-on;
425e9b1503SSimon Glass		regulator-boot-on;
435e9b1503SSimon Glass		vin-supply = <&vcc18_wl>;
445e9b1503SSimon Glass	};
455e9b1503SSimon Glass
465e9b1503SSimon Glass	backlight_regulator: backlight-regulator {
475e9b1503SSimon Glass		compatible = "regulator-fixed";
485e9b1503SSimon Glass		enable-active-high;
495e9b1503SSimon Glass		gpio = <&gpio2 12 GPIO_ACTIVE_HIGH>;
505e9b1503SSimon Glass		pinctrl-names = "default";
515e9b1503SSimon Glass		pinctrl-0 = <&bl_pwr_en>;
525e9b1503SSimon Glass		regulator-name = "backlight_regulator";
535e9b1503SSimon Glass		vin-supply = <&vcc33_sys>;
545e9b1503SSimon Glass		startup-delay-us = <15000>;
555e9b1503SSimon Glass	};
565e9b1503SSimon Glass};
575e9b1503SSimon Glass
58aede3accSSimon Glass&dmc {
59aede3accSSimon Glass	rockchip,pctl-timing = <0x29a 0xc8 0x1f4 0x42 0x4e 0x4 0xea 0xa
60aede3accSSimon Glass		0x5 0x0 0xa 0x7 0x19 0x24 0xa 0x7
61aede3accSSimon Glass		0x5 0xa 0x5 0x200 0x5 0x10 0x40 0x0
62aede3accSSimon Glass		0x1 0x7 0x7 0x4 0xc 0x43 0x100 0x0
63aede3accSSimon Glass		0x5 0x0>;
64aede3accSSimon Glass	rockchip,phy-timing = <0x48f9aab4 0xea0910 0x1002c200
65aede3accSSimon Glass		0xa60 0x40 0x10 0x0>;
66aede3accSSimon Glass	rockchip,sdram-params = <0x30B25564 0x627 3 666000000 3 9 1>;
67aede3accSSimon Glass};
68aede3accSSimon Glass
695e9b1503SSimon Glass&gpio_keys {
705e9b1503SSimon Glass	power {
715e9b1503SSimon Glass		gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
725e9b1503SSimon Glass	};
735e9b1503SSimon Glass};
745e9b1503SSimon Glass
755e9b1503SSimon Glass&backlight {
765e9b1503SSimon Glass	power-supply = <&backlight_regulator>;
775e9b1503SSimon Glass};
785e9b1503SSimon Glass
795e9b1503SSimon Glass&panel {
805e9b1503SSimon Glass	power-supply= <&panel_regulator>;
815e9b1503SSimon Glass};
825e9b1503SSimon Glass
835e9b1503SSimon Glass&rk808 {
845e9b1503SSimon Glass	pinctrl-names = "default";
855e9b1503SSimon Glass	pinctrl-0 = <&pmic_int_l &dvs_1 &dvs_2>;
865e9b1503SSimon Glass	dvs-gpios = <&gpio7 12 GPIO_ACTIVE_HIGH>,
875e9b1503SSimon Glass		    <&gpio7 15 GPIO_ACTIVE_HIGH>;
885e9b1503SSimon Glass
895e9b1503SSimon Glass	regulators {
905e9b1503SSimon Glass		mic_vcc: LDO_REG2 {
915e9b1503SSimon Glass			regulator-always-on;
925e9b1503SSimon Glass			regulator-boot-on;
935e9b1503SSimon Glass			regulator-min-microvolt = <1800000>;
945e9b1503SSimon Glass			regulator-max-microvolt = <1800000>;
955e9b1503SSimon Glass			regulator-name = "mic_vcc";
965e9b1503SSimon Glass			regulator-suspend-mem-disabled;
975e9b1503SSimon Glass		};
985e9b1503SSimon Glass	};
995e9b1503SSimon Glass};
1005e9b1503SSimon Glass
1015e9b1503SSimon Glass&sdmmc {
1025e9b1503SSimon Glass	pinctrl-names = "default";
1035e9b1503SSimon Glass	pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd_disabled &sdmmc_cd_gpio
1045e9b1503SSimon Glass			&sdmmc_bus4>;
1055e9b1503SSimon Glass	disable-wp;
1065e9b1503SSimon Glass};
1075e9b1503SSimon Glass
1085e9b1503SSimon Glass&vcc_5v {
1095e9b1503SSimon Glass	enable-active-high;
1105e9b1503SSimon Glass	gpio = <&gpio7 21 GPIO_ACTIVE_HIGH>;
1115e9b1503SSimon Glass	pinctrl-names = "default";
1125e9b1503SSimon Glass	pinctrl-0 = <&drv_5v>;
1135e9b1503SSimon Glass};
1145e9b1503SSimon Glass
1155e9b1503SSimon Glass&vcc50_hdmi {
1165e9b1503SSimon Glass	enable-active-high;
1175e9b1503SSimon Glass	gpio = <&gpio5 19 GPIO_ACTIVE_HIGH>;
1185e9b1503SSimon Glass	pinctrl-names = "default";
1195e9b1503SSimon Glass	pinctrl-0 = <&vcc50_hdmi_en>;
1205e9b1503SSimon Glass};
1215e9b1503SSimon Glass
1225e9b1503SSimon Glass&edp {
1235e9b1503SSimon Glass	pinctrl-names = "default";
1245e9b1503SSimon Glass	pinctrl-0 = <&edp_hpd>;
1255e9b1503SSimon Glass};
1265e9b1503SSimon Glass
1275e9b1503SSimon Glass&pinctrl {
1285e9b1503SSimon Glass	backlight {
1295e9b1503SSimon Glass		bl_pwr_en: bl_pwr_en {
1305e9b1503SSimon Glass			rockchip,pins = <2 12 RK_FUNC_GPIO &pcfg_pull_none>;
1315e9b1503SSimon Glass		};
1325e9b1503SSimon Glass	};
1335e9b1503SSimon Glass
1345e9b1503SSimon Glass	buck-5v {
1355e9b1503SSimon Glass		drv_5v: drv-5v {
1365e9b1503SSimon Glass			rockchip,pins = <7 21 RK_FUNC_GPIO &pcfg_pull_none>;
1375e9b1503SSimon Glass		};
1385e9b1503SSimon Glass	};
1395e9b1503SSimon Glass
1405e9b1503SSimon Glass	edp {
1415e9b1503SSimon Glass		edp_hpd: edp_hpd {
1425e9b1503SSimon Glass			rockchip,pins = <7 11 RK_FUNC_2 &pcfg_pull_down>;
1435e9b1503SSimon Glass		};
1445e9b1503SSimon Glass	};
1455e9b1503SSimon Glass
1465e9b1503SSimon Glass	emmc {
1475e9b1503SSimon Glass		/* Make sure eMMC is not in reset */
1485e9b1503SSimon Glass		emmc_deassert_reset: emmc-deassert-reset {
1495e9b1503SSimon Glass			rockchip,pins = <2 9 RK_FUNC_GPIO &pcfg_pull_none>;
1505e9b1503SSimon Glass		};
1515e9b1503SSimon Glass	};
1525e9b1503SSimon Glass
1535e9b1503SSimon Glass	hdmi {
1545e9b1503SSimon Glass		vcc50_hdmi_en: vcc50-hdmi-en {
1555e9b1503SSimon Glass			rockchip,pins = <5 19 RK_FUNC_GPIO &pcfg_pull_none>;
1565e9b1503SSimon Glass		};
1575e9b1503SSimon Glass	};
1585e9b1503SSimon Glass
1595e9b1503SSimon Glass	lcd {
1605e9b1503SSimon Glass		lcd_enable_h: lcd-en {
1615e9b1503SSimon Glass			rockchip,pins = <7 14 RK_FUNC_GPIO &pcfg_pull_none>;
1625e9b1503SSimon Glass		};
1635e9b1503SSimon Glass
1645e9b1503SSimon Glass		avdd_1v8_disp_en: avdd-1v8-disp-en {
1655e9b1503SSimon Glass			rockchip,pins = <2 13 RK_FUNC_GPIO &pcfg_pull_none>;
1665e9b1503SSimon Glass		};
1675e9b1503SSimon Glass	};
1685e9b1503SSimon Glass
1695e9b1503SSimon Glass	pmic {
1705e9b1503SSimon Glass		dvs_1: dvs-1 {
1715e9b1503SSimon Glass			rockchip,pins = <7 12 RK_FUNC_GPIO &pcfg_pull_down>;
1725e9b1503SSimon Glass		};
1735e9b1503SSimon Glass
1745e9b1503SSimon Glass		dvs_2: dvs-2 {
1755e9b1503SSimon Glass			rockchip,pins = <7 15 RK_FUNC_GPIO &pcfg_pull_down>;
1765e9b1503SSimon Glass		};
1775e9b1503SSimon Glass	};
1785e9b1503SSimon Glass};
1795e9b1503SSimon Glass
1805e9b1503SSimon Glass&i2c4 {
1815e9b1503SSimon Glass	status = "okay";
1825e9b1503SSimon Glass
1835e9b1503SSimon Glass	/*
1845e9b1503SSimon Glass	 * Trackpad pin control is shared between Elan and Synaptics devices
1855e9b1503SSimon Glass	 * so we have to pull it up to the bus level.
1865e9b1503SSimon Glass	 */
1875e9b1503SSimon Glass	pinctrl-names = "default";
1885e9b1503SSimon Glass	pinctrl-0 = <&i2c4_xfer &trackpad_int>;
1895e9b1503SSimon Glass
1905e9b1503SSimon Glass	trackpad@15 {
1915e9b1503SSimon Glass		compatible = "elan,i2c_touchpad";
1925e9b1503SSimon Glass		interrupt-parent = <&gpio7>;
1935e9b1503SSimon Glass		interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
1945e9b1503SSimon Glass		/*
1955e9b1503SSimon Glass		 * Remove the inherited pinctrl settings to avoid clashing
1965e9b1503SSimon Glass		 * with bus-wide ones.
1975e9b1503SSimon Glass		 */
1985e9b1503SSimon Glass		/delete-property/pinctrl-names;
1995e9b1503SSimon Glass		/delete-property/pinctrl-0;
2005e9b1503SSimon Glass		reg = <0x15>;
2015e9b1503SSimon Glass		vcc-supply = <&vcc33_io>;
2025e9b1503SSimon Glass		wakeup-source;
2035e9b1503SSimon Glass	};
2045e9b1503SSimon Glass
2055e9b1503SSimon Glass	trackpad@2c {
2065e9b1503SSimon Glass		compatible = "hid-over-i2c";
2075e9b1503SSimon Glass		interrupt-parent = <&gpio7>;
2085e9b1503SSimon Glass		interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
2095e9b1503SSimon Glass		reg = <0x2c>;
2105e9b1503SSimon Glass		hid-descr-addr = <0x0020>;
2115e9b1503SSimon Glass		vcc-supply = <&vcc33_io>;
2125e9b1503SSimon Glass		wakeup-source;
2135e9b1503SSimon Glass	};
2145e9b1503SSimon Glass};
215