From 9d83a08e9bc16aa3783bed5da92d61e411a24bba Mon Sep 17 00:00:00 2001 From: Damon Ding Date: Fri, 25 Mar 2022 11:49:23 +0800 Subject: [PATCH] ARM: dts: rockchip: rv1103: add bt656-to-hdmi ext board support Signed-off-by: Damon Ding Change-Id: I5f360c625b9bf4bda35714e92c1d721beec37a44 --- ...103-evb-ext-sii902x-bt656-to-hdmi-v10.dtsi | 98 +++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 arch/arm/boot/dts/rv1103-evb-ext-sii902x-bt656-to-hdmi-v10.dtsi diff --git a/arch/arm/boot/dts/rv1103-evb-ext-sii902x-bt656-to-hdmi-v10.dtsi b/arch/arm/boot/dts/rv1103-evb-ext-sii902x-bt656-to-hdmi-v10.dtsi new file mode 100644 index 000000000000..b6d9f8276eea --- /dev/null +++ b/arch/arm/boot/dts/rv1103-evb-ext-sii902x-bt656-to-hdmi-v10.dtsi @@ -0,0 +1,98 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2022 Rockchip Electronics Co., Ltd. + */ + +#include + +/ { + gpio_i2c: i2c@0 { + compatible = "i2c-gpio"; + gpios = <&gpio3 RK_PA5 GPIO_ACTIVE_HIGH>, /* sda */ + <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>; /* scl */ + i2c-gpio,delay-us = <2>; /* ~100 kHz */ + #address-cells = <1>; + #size-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&gpio_i2c_pins>; + status = "okay"; + + sii9022: sii9022@39 { + compatible = "sil,sii9022"; + reg = <0x39>; + pinctrl-names = "default"; + pinctrl-0 = <&sii902x_hdmi_int>; + interrupt-parent = <&gpio1>; + interrupts = ; + reset-gpio = <&gpio1 RK_PD1 GPIO_ACTIVE_LOW>; + enable-gpio = <&gpio1 RK_PD0 GPIO_ACTIVE_HIGH>; + /* + * MEDIA_BUS_FMT_YUYV8_1X16 for bt1120 + * MEDIA_BUS_FMT_YUYV8_2X8 for bt656 + */ + bus-format = ; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + sii9022_in_rgb: endpoint { + remote-endpoint = <&rgb_out_sii9022>; + }; + }; + }; + }; + }; +}; + +&display_subsystem { + status = "okay"; +}; + +&pinctrl { + sii902x { + sii902x_hdmi_int: sii902x-hdmi-int { + rockchip,pins = <1 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; + + gpio_i2c { + gpio_i2c_pins: gpio-i2c-pins { + rockchip,pins = + /* gpio_i2c_sda */ + <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none_smt>, + /* gpio_i2c_scl */ + <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none_smt>; + }; + }; +}; + +&rgb { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&bt656_pins>; + + ports { + port@1 { + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + + rgb_out_sii9022: endpoint@0 { + reg = <0>; + remote-endpoint = <&sii9022_in_rgb>; + }; + }; + }; +}; + +&rgb_in_vop { + status = "okay"; +}; + +&vop { + status = "okay"; +};