From 43a053b01812cc54c3b629b06233edf1ea91e892 Mon Sep 17 00:00:00 2001 From: Shunqian Zheng Date: Thu, 31 May 2018 09:01:38 +0800 Subject: [PATCH] ARM: dts: rockchip: add cif and adv7181 for px3se-evb This enables cif and adds adv7181 device nodes. Change-Id: Id8ca2ef30ff22032f12ecee3333ac1db51795228 Signed-off-by: Shunqian Zheng --- arch/arm/boot/dts/px3se-evb.dts | 67 +++++++++++++++++++++++++++++++-- 1 file changed, 64 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/px3se-evb.dts b/arch/arm/boot/dts/px3se-evb.dts index fe609cdfed01..f9cd97224799 100644 --- a/arch/arm/boot/dts/px3se-evb.dts +++ b/arch/arm/boot/dts/px3se-evb.dts @@ -145,6 +145,14 @@ vin-supply = <&vcc_io>; }; + vcc_cvbs_33: vcc-cvbs-33 { + compatible = "regulator-fixed"; + regulator-name= "vcc-cvbs-33"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&pmic_vcc_cvbs_33>; + }; + vcc_sys: vcc-sys { compatible = "regulator-fixed"; regulator-name = "vcc_sys"; @@ -173,6 +181,22 @@ vin-supply = <&vcc_io>; }; + dvdd_1v8: dvdd-1v8 { + compatible = "regulator-fixed"; + regulator-name = "dvdd-1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + vin-supply = <&vcc_18>; + }; + + dvdd_3v3: dvdd-3v3 { + compatible = "regulator-fixed"; + regulator-name = "dvdd-3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&vcc_cvbs_33>; + }; + wireless-bluetooth { compatible = "bluetooth-platdata"; @@ -235,6 +259,18 @@ }; }; +&cif_new { + status = "okay"; + + port { + cif_in: endpoint { + remote-endpoint = <&adv7181_out>; + vsync-active = <0>; + hsync-active = <1>; + }; + }; +}; + &cpu0 { cpu-supply = <&vdd_arm>; }; @@ -415,8 +451,6 @@ regulator-name= "pmic-vcc-cvbs-33"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; - regulator-always-on; - regulator-boot-on; regulator-state-mem { regulator-off-in-suspend; }; @@ -449,7 +483,8 @@ &i2c2 { status = "okay"; clock-frequency = <400000>; - ts@14 { + + touchscreen: ts@14 { compatible = "goodix,gt9xx"; reg = <0x14>; touch-gpio = <&gpio1 8 IRQ_TYPE_LEVEL_LOW>; @@ -461,6 +496,26 @@ tp-supply = <&pmic_vcc_tp_33>; status = "okay"; }; + + camera: adv7181@21 { + compatible = "adi,adv7181"; + reg = <0x21>; + + pinctrl-names = "default"; + pinctrl-0 = <&cif_rst>; + + dvdd-supply = <&dvdd_1v8>; + dvddio-supply = <&dvdd_3v3>; + reset-gpios = <&gpio3 11 GPIO_ACTIVE_LOW>; + + status = "okay"; + + port { + adv7181_out: endpoint { + remote-endpoint = <&cif_in>; + }; + }; + }; }; &pwm0 { @@ -543,6 +598,12 @@ }; &pinctrl { + camera { + cif_rst: cif-rst { + rockchip,pins = <3 11 RK_FUNC_GPIO &pcfg_pull_default>; + }; + }; + pmic { pmic_int_l: pmic-int-l { rockchip,pins = <1 11 RK_FUNC_GPIO &pcfg_pull_default>;