Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: rockchip: A few fixes for veyron-{fievel,tiger}

Fix/improve a few things for veyron fievel/tiger:

- move 'vccsys' regulator from tiger to fievel, both boards
have it (and tiger includes the fievel .dtsi)
- move 'ext_gmac' node below regulators
- fix GPIO ids of vcc5_host1 and vcc5_host2 regulators
- remove reset configuration from 'gmac' node, this is already done
in rk3288.dtsi
- fixed style issues of some multi-line comments
- switch 'vcc18_lcdt', 'vdd10_lcd' and 'vcc33_ccd' regulators off
during suspend
- no pull-up on the Bluetooth wake-up pin, there is an external
pull-up. The signal is active low, add the 'bt_host_wake_l'
pinctrl config
- move BC 1.2 pins up in the pinctrl config to keep 'wake only' pins
separate
- add BC 1.2 pins to sleep config

Fixes: 0067692b662e ("ARM: dts: rockchip: add veyron-fievel board")
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>

authored by

Matthias Kaehlcke and committed by
Heiko Stuebner
94562040 a5021c45

+38 -31
+34 -24
arch/arm/boot/dts/rk3288-veyron-fievel.dts
··· 20 20 21 21 /delete-node/ bt-activity; 22 22 23 - ext_gmac: external-gmac-clock { 24 - compatible = "fixed-clock"; 25 - #clock-cells = <0>; 26 - clock-frequency = <125000000>; 27 - clock-output-names = "ext_gmac"; 23 + vccsys: vccsys { 24 + compatible = "regulator-fixed"; 25 + regulator-name = "vccsys"; 26 + regulator-boot-on; 27 + regulator-always-on; 28 28 }; 29 29 30 30 /* ··· 41 41 vcc5_host1: vcc5-host1-regulator { 42 42 compatible = "regulator-fixed"; 43 43 enable-active-high; 44 - gpio = <&gpio5 RK_PC1 GPIO_ACTIVE_HIGH>; 44 + gpio = <&gpio5 RK_PC2 GPIO_ACTIVE_HIGH>; 45 45 pinctrl-names = "default"; 46 46 pinctrl-0 = <&hub_usb1_pwr_en>; 47 47 regulator-name = "vcc5_host1"; ··· 52 52 vcc5_host2: vcc5-host2-regulator { 53 53 compatible = "regulator-fixed"; 54 54 enable-active-high; 55 - gpio = <&gpio5 RK_PC2 GPIO_ACTIVE_HIGH>; 55 + gpio = <&gpio5 RK_PB6 GPIO_ACTIVE_HIGH>; 56 56 pinctrl-names = "default"; 57 57 pinctrl-0 = <&hub_usb2_pwr_en>; 58 58 regulator-name = "vcc5_host2"; ··· 70 70 regulator-always-on; 71 71 regulator-boot-on; 72 72 }; 73 + 74 + ext_gmac: external-gmac-clock { 75 + compatible = "fixed-clock"; 76 + #clock-cells = <0>; 77 + clock-frequency = <125000000>; 78 + clock-output-names = "ext_gmac"; 79 + }; 73 80 }; 74 81 75 82 &gmac { ··· 90 83 phy-supply = <&vcc33_lan>; 91 84 pinctrl-names = "default"; 92 85 pinctrl-0 = <&rgmii_pins>, <&phy_rst>, <&phy_pmeb>, <&phy_int>; 93 - resets = <&cru SRST_MAC>; 94 - reset-names = "stmmaceth"; 95 86 rx_delay = <0x10>; 96 87 tx_delay = <0x30>; 97 88 98 - /* Reset for the RTL8211 PHY which requires a 10-ms reset pulse (low) 99 - * with a 30ms settling time. */ 89 + /* 90 + * Reset for the RTL8211 PHY which requires a 10-ms reset pulse (low) 91 + * with a 30ms settling time. 92 + */ 100 93 snps,reset-gpio = <&gpio4 RK_PB0 0>; 101 94 snps,reset-active-low; 102 95 snps,reset-delays-us = <0 10000 30000>; ··· 127 120 regulators { 128 121 /delete-node/ LDO_REG1; 129 122 130 - /* According to the schematic, vcc18_lcdt is for 123 + /* 124 + * According to the schematic, vcc18_lcdt is for 131 125 * HDMI_AVDD_1V8 132 126 */ 133 127 vcc18_lcdt: LDO_REG2 { ··· 138 130 regulator-max-microvolt = <1800000>; 139 131 regulator-name = "vdd18_lcdt"; 140 132 regulator-state-mem { 141 - regulator-on-in-suspend; 142 - regulator-suspend-microvolt = <1800000>; 133 + regulator-off-in-suspend; 143 134 }; 144 135 }; 145 136 146 - /* This is not a pwren anymore, but the real power supply, 137 + /* 138 + * This is not a pwren anymore, but the real power supply, 147 139 * vdd10_lcd for HDMI_AVDD_1V0 148 140 */ 149 141 vdd10_lcd: LDO_REG7 { ··· 153 145 regulator-max-microvolt = <1000000>; 154 146 regulator-name = "vdd10_lcd"; 155 147 regulator-state-mem { 156 - regulator-on-in-suspend; 157 - regulator-suspend-microvolt = <1000000>; 148 + regulator-off-in-suspend; 158 149 }; 159 150 }; 160 151 ··· 165 158 regulator-max-microvolt = <3300000>; 166 159 regulator-name = "vcc33_ccd"; 167 160 regulator-state-mem { 168 - regulator-on-in-suspend; 169 - regulator-suspend-microvolt = <3300000>; 161 + regulator-off-in-suspend; 170 162 }; 171 163 }; 172 164 ··· 186 180 interrupts = <RK_PD7 IRQ_TYPE_LEVEL_LOW>; 187 181 marvell,wakeup-pin = /bits/ 16 <13>; 188 182 pinctrl-names = "default"; 189 - pinctrl-0 = <&bt_host_wake>; 183 + pinctrl-0 = <&bt_host_wake_l>; 190 184 }; 191 185 }; 192 186 ··· 212 206 &ddrio_pwroff 213 207 &global_pwroff 214 208 215 - /* Wake only */ 216 - &bt_dev_wake_awake 217 - &pwr_led1_on 218 - 219 209 /* For usb bc1.2 */ 220 210 &usb_otg_ilim_sel 221 211 &usb_usb_ilim_sel 212 + 213 + /* Wake only */ 214 + &bt_dev_wake_awake 215 + &pwr_led1_on 222 216 >; 223 217 224 218 pinctrl-1 = < ··· 226 220 &ddr0_retention 227 221 &ddrio_pwroff 228 222 &global_pwroff 223 + 224 + /* For usb bc1.2 */ 225 + &usb_otg_ilim_sel 226 + &usb_usb_ilim_sel 229 227 230 228 /* Sleep only */ 231 229 &bt_dev_wake_sleep
-7
arch/arm/boot/dts/rk3288-veyron-tiger.dts
··· 19 19 "google,veyron", "rockchip,rk3288"; 20 20 21 21 /delete-node/ vcc18-lcd; 22 - 23 - vccsys: vccsys { 24 - compatible = "regulator-fixed"; 25 - regulator-name = "vccsys"; 26 - regulator-boot-on; 27 - regulator-always-on; 28 - }; 29 22 }; 30 23 31 24 &backlight {
+4
arch/arm/boot/dts/rk3288-veyron.dtsi
··· 586 586 rockchip,pins = <4 RK_PD7 RK_FUNC_GPIO &pcfg_pull_down>; 587 587 }; 588 588 589 + bt_host_wake_l: bt-host-wake-l { 590 + rockchip,pins = <4 RK_PD7 RK_FUNC_GPIO &pcfg_pull_none>; 591 + }; 592 + 589 593 /* 590 594 * We run sdio0 at max speed; bump up drive strength. 591 595 * We also have external pulls, so disable the internal ones.