From 2a3c9f8fb2c107306d7de2f4281002f633ff06e6 Mon Sep 17 00:00:00 2001 From: zhoupeng Date: Thu, 20 Jul 2017 15:26:28 +0800 Subject: [PATCH] arm64: dts: rk3399-sapphire-excavator-linux: add camera node dts: support tc358749xbg for HDMI IN Change-Id: I5a5874d08ea13c27cac7b3507a46bb1f2288e3f4 Signed-off-by: zhoupeng --- .../rk3399-sapphire-excavator-linux.dts | 42 ++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator-linux.dts b/arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator-linux.dts index cb2d19a9240a..b493f6a2b201 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator-linux.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator-linux.dts @@ -153,7 +153,7 @@ }; &cif_isp0 { - rockchip,camera-modules-attached = <&camera0>; + rockchip,camera-modules-attached = <&camera0 &camera1>; status = "okay"; }; @@ -260,6 +260,34 @@ rockchip,camera-module-flash-support = <0>; rockchip,camera-module-mipi-dphy-index = <0>; }; + + camera1: camera-module@1 { + status = "okay"; + compatible = "toshiba,tc358749xbg-v4l2-i2c-subdev"; + reg = < 0x0f >; + device_type = "v4l2-i2c-subdev"; + + clocks = <&cru SCLK_CIF_OUT>; + clock-names = "clk_cif_out"; + + pinctrl-names = "default"; + pinctrl-0 = <&hdmiin_gpios>; + + //rockchip,pwr-gpio = <&gpio2 6 GPIO_ACTIVE_HIGH>; + //rckchip,pwr-snd-gpio = <&gpio2 9 GPIO_ACTIVE_HIGH>; + //rockchip,pwr-trd-gpio = <&gpio2 5 GPIO_ACTIVE_HIGH>; + //rockchip,rst-gpio = <&gpio2 7 GPIO_ACTIVE_HIGH>; + power-gpios = <&gpio2 6 GPIO_ACTIVE_HIGH>; + power18-gpios = <&gpio2 9 GPIO_ACTIVE_HIGH>; + power33-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; + csi-ctl-gpios = <&gpio2 10 GPIO_ACTIVE_HIGH>; + stanby-gpios = <&gpio2 8 GPIO_ACTIVE_HIGH>; + reset-gpios = <&gpio2 7 GPIO_ACTIVE_HIGH>; + int-gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>; + + rockchip,camera-module-mclk-name = "clk_cif_out"; + rockchip,camera-module-mipi-dphy-index = <0>; + }; }; &i2s2 { @@ -295,4 +323,16 @@ rockchip,pins = <4 30 RK_FUNC_GPIO &pcfg_pull_up>; }; }; + + hdmiin { + hdmiin_gpios: hdmiin-gpios { + rockchip,pins = + <2 5 RK_FUNC_GPIO &pcfg_pull_none>, + <2 6 RK_FUNC_GPIO &pcfg_pull_none>, + <2 7 RK_FUNC_GPIO &pcfg_pull_none>, + <2 8 RK_FUNC_GPIO &pcfg_pull_none>, + <2 9 RK_FUNC_GPIO &pcfg_pull_none>, + <2 12 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; }; -- 2.34.1