Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003  * Google Veyron Brain Rev 0 board device tree source
0004  *
0005  * Copyright 2014 Google, Inc
0006  */
0007 
0008 /dts-v1/;
0009 #include "rk3288-veyron.dtsi"
0010 #include "rk3288-veyron-broadcom-bluetooth.dtsi"
0011 
0012 / {
0013         model = "Google Brain";
0014         compatible = "google,veyron-brain-rev0", "google,veyron-brain",
0015                      "google,veyron", "rockchip,rk3288";
0016 
0017         vcc33_sys: vcc33-sys {
0018                 vin-supply = <&vcc_5v>;
0019         };
0020 
0021         vcc33_io: vcc33_io {
0022                 compatible = "regulator-fixed";
0023                 regulator-name = "vcc33_io";
0024                 regulator-always-on;
0025                 regulator-boot-on;
0026                 vin-supply = <&vcc33_sys>;
0027                 /* This is gated by vcc_18 too */
0028         };
0029 
0030         /* This turns on vbus for host2 and otg (dwc2) */
0031         vcc5_host2: vcc5-host2-regulator {
0032                 compatible = "regulator-fixed";
0033                 enable-active-high;
0034                 gpio = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
0035                 pinctrl-names = "default";
0036                 pinctrl-0 = <&usb2_pwr_en>;
0037                 regulator-name = "vcc5_host2";
0038                 regulator-always-on;
0039                 regulator-boot-on;
0040         };
0041 };
0042 
0043 &pinctrl {
0044         pinctrl-names = "default";
0045         pinctrl-0 = <
0046                 /* Common for sleep and wake, but no owners */
0047                 &ddr0_retention
0048                 &ddrio_pwroff
0049                 &global_pwroff
0050         >;
0051 
0052         hdmi {
0053                 vcc50_hdmi_en: vcc50-hdmi-en {
0054                         rockchip,pins = <7 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
0055                 };
0056         };
0057 
0058         pmic {
0059                 dvs_1: dvs-1 {
0060                         rockchip,pins = <7 RK_PB3 RK_FUNC_GPIO &pcfg_pull_down>;
0061                 };
0062 
0063                 dvs_2: dvs-2 {
0064                         rockchip,pins = <7 RK_PB7 RK_FUNC_GPIO &pcfg_pull_down>;
0065                 };
0066         };
0067 
0068         usb-host {
0069                 usb2_pwr_en: usb2-pwr-en {
0070                         rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
0071                 };
0072         };
0073 };
0074 
0075 &rk808 {
0076         pinctrl-names = "default";
0077         pinctrl-0 = <&pmic_int_l &dvs_1 &dvs_2>;
0078         dvs-gpios = <&gpio7 RK_PB3 GPIO_ACTIVE_HIGH>,
0079                     <&gpio7 RK_PB7 GPIO_ACTIVE_HIGH>;
0080 
0081         /delete-property/ vcc6-supply;
0082 
0083         regulators {
0084                 /* vcc33_io is sourced directly from vcc33_sys */
0085                 /delete-node/ LDO_REG1;
0086 
0087                 /* This is not a pwren anymore, but the real power supply */
0088                 vdd10_lcd: LDO_REG7 {
0089                         regulator-always-on;
0090                         regulator-boot-on;
0091                         regulator-min-microvolt = <1000000>;
0092                         regulator-max-microvolt = <1000000>;
0093                         regulator-name = "vdd10_lcd";
0094                         regulator-suspend-mem-disabled;
0095                 };
0096 
0097                 vcc18_hdmi: SWITCH_REG2 {
0098                         regulator-always-on;
0099                         regulator-boot-on;
0100                         regulator-name = "vcc18_hdmi";
0101                         regulator-suspend-mem-disabled;
0102                 };
0103         };
0104 };
0105 
0106 &vcc50_hdmi {
0107         enable-active-high;
0108         gpio = <&gpio7 RK_PA2 GPIO_ACTIVE_HIGH>;
0109         pinctrl-names = "default";
0110         pinctrl-0 = <&vcc50_hdmi_en>;
0111 };