arm64: dts: rockchip: sapphire-excavator: enabled hdmiin
authorwlq <wlq@rock-chips.com>
Wed, 19 Apr 2017 09:04:30 +0000 (17:04 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 20 Apr 2017 00:59:51 +0000 (08:59 +0800)
Change-Id: I5d09ee8e07e515270fadfcdb1e8bbb98cbfaa8ac
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator-edp.dts

index 08cc37536bb5b150fce2f8970b0a9a814907f2ef..a3d27addb13c3610307e588bda4771f2ac8d82df 100644 (file)
                status = "okay";
        };
 
-       rt5651 {
+       rt5651-sound {
+               status = "disabled";
+       };
+
+       hdmiin-sound {
+               compatible = "rockchip,rockchip-rt5651-tc358749x-sound";
+               rockchip,cpu = <&i2s0>;
+               rockchip,codec = <&rt5651 &rt5651 &tc358749x>;
                status = "okay";
        };
 };
        status = "disabled";
 };
 
+&rt5651 {
+       status = "okay";
+};
+
 &hdmi_sound {
        status = "okay";
 };
                irq_gpio_number = <&gpio1 20 IRQ_TYPE_LEVEL_LOW>;
                rst_gpio_number = <&gpio4 22 GPIO_ACTIVE_HIGH>;
        };
+
+       tc358749x: tc358749x@0f {
+               compatible = "toshiba,tc358749x";
+               reg = <0x0f>;
+               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>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&hdmiin_gpios>;
+               status = "okay";
+       };
+};
+
+&isp0 {
+       status = "okay";
+};
+
+&isp1 {
+       status = "okay";
+};
+
+&isp0_mmu {
+       status = "okay";
+};
+
+&isp1_mmu {
+       status = "okay";
 };
 
 &vopb {
                        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>;
+               };
+       };
 };