X-Git-Url: http://plrg.eecs.uci.edu/git/?p=firefly-linux-kernel-4.4.55.git;a=blobdiff_plain;f=arch%2Farm%2Fboot%2Fdts%2Frk3288-evb-act8846.dts;h=abd6fb7881c3fbae5d567062d89f1a83e4b433b5;hp=43949a6771f08466c0431cd2e7237ea87be6076d;hb=a735c0386bd5f8d3717da834b240bad6706078b2;hpb=527c465a3c8716d93201ae34b7fc52679610596d diff --git a/arch/arm/boot/dts/rk3288-evb-act8846.dts b/arch/arm/boot/dts/rk3288-evb-act8846.dts index 43949a6771f0..abd6fb7881c3 100644 --- a/arch/arm/boot/dts/rk3288-evb-act8846.dts +++ b/arch/arm/boot/dts/rk3288-evb-act8846.dts @@ -43,12 +43,53 @@ / { compatible = "rockchip,rk3288-evb-act8846", "rockchip,rk3288"; + + sdio_pwrseq: sdio-pwrseq { + compatible = "mmc-pwrseq-simple"; + clocks = <&hym8563>; + clock-names = "ext_clock"; + pinctrl-names = "default"; + pinctrl-0 = <&wifi_enable_h>; + + /* + * On the module itself this is one of these (depending + * on the actual card populated): + * - SDIO_RESET_L_WL_REG_ON + * - PDN (power down when low) + */ + reset-gpios = <&gpio4 28 GPIO_ACTIVE_LOW>; + }; + + vcc_lcd: vcc-lcd { + compatible = "regulator-fixed"; + enable-active-high; + gpio = <&gpio7 3 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_en>; + regulator-name = "vcc_lcd"; + vin-supply = <&vcc_io>; + }; + + vcc_wl: vcc-wl { + compatible = "regulator-fixed"; + enable-active-high; + gpio = <&gpio7 9 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&wifi_pwr>; + regulator-name = "vcc_wl"; + vin-supply = <&vcc_18>; + }; }; &cpu0 { cpu0-supply = <&vdd_cpu>; }; +&gpu { + status = "okay"; + mali-supply = <&vdd_gpu>; +}; + &i2c0 { clock-frequency = <400000>; @@ -61,7 +102,12 @@ regulator-max-microvolt = <1350000>; regulator-always-on; regulator-boot-on; + regulator-enable-ramp-delay = <300>; + regulator-ramp-delay = <8000>; vin-supply = <&vcc_sys>; + regulator-state-mem { + regulator-off-in-suspend; + }; }; vdd_gpu: syr828@41 { @@ -72,10 +118,14 @@ regulator-min-microvolt = <850000>; regulator-max-microvolt = <1350000>; regulator-always-on; + regulator-ramp-delay = <6000>; vin-supply = <&vcc_sys>; + regulator-state-mem { + regulator-off-in-suspend; + }; }; - hym8563@51 { + hym8563: hym8563@51 { compatible = "haoyu,hym8563"; reg = <0x51>; @@ -119,8 +169,8 @@ vdd_log: REG3 { regulator-name = "VDD_LOG"; - regulator-min-microvolt = <1000000>; - regulator-max-microvolt = <1000000>; + regulator-min-microvolt = <1150000>; + regulator-max-microvolt = <1150000>; regulator-always-on; }; @@ -133,7 +183,7 @@ vccio_sd: REG5 { regulator-name = "VCCIO_SD"; - regulator-min-microvolt = <3300000>; + regulator-min-microvolt = <1800000>; regulator-max-microvolt = <3300000>; regulator-always-on; }; @@ -189,3 +239,53 @@ }; }; }; + +&i2c1 { + status = "okay"; + clock-frequency = <400000>; + + mpu6050@68 { + compatible = "invensense,mpu6050"; + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&mpu6050_irq_gpio>; + reg = <0x68>; + irq-gpio = <&gpio8 0 IRQ_TYPE_EDGE_RISING>; + mpu-int_config = <0x10>; + mpu-level_shifter = <0>; + mpu-orientation = <0 1 0 1 0 0 0 0 1>; + orientation-x= <0>; + orientation-y= <1>; + orientation-z= <0>; + support-hw-poweroff = <1>; + mpu-debug = <1>; + }; +}; + +&lvds_panel { + power-supply = <&vcc_lcd>; +}; + +&panel { + power-supply = <&vcc_lcd>; +}; + +&pinctrl { + lcd { + lcd_en: lcd-en { + rockchip,pins = <7 3 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + + wifi { + wifi_pwr: wifi-pwr { + rockchip,pins = <7 9 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + + mpu6050 { + mpu6050_irq_gpio: mpu6050-irq-gpio { + rockchip,pins = <8 0 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; +};