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