UPSTREAM: drm/bridge: Introduce LT9611 DSI to HDMI bridge

Lontium Lt9611 is a DSI to HDMI bridge which supports two DSI ports and
I2S port as an input and HDMI port as output

Change-Id: Iae830d6208c111f1a546c390a6ee62fd609fd701
Co-developed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Co-developed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tested-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org> # fix lt9611_bridge_mode_valid
Link: https://patchwork.freedesktop.org/patch/msgid/20200723163442.1280414-4-vkoul@kernel.org
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
(cherry picked from commit 23278bf54a)
This commit is contained in:
Vinod Koul
2020-07-23 22:04:42 +05:30
committed by 黄国椿
parent 67793711ec
commit 815e3255b6
4 changed files with 1230 additions and 0 deletions

View File

@@ -0,0 +1,60 @@
Lontium LT9611 MIPI-DSI to HDMI bridge bindings
Required properties:
- compatible: "lontium,lt9611"
- reg: i2c address of the bridge
- reset-gpios: a GPIO spec for the reset pin
- interrupts-extended: Specify the interrupts associated with external
- vdd-supply: Reference to the regulator powering the bridge 1.8V power supply pins
- vcc-supply: Reference to the regulator powering the bridge 3.3V power supply pins
ptional properties:
- enable-gpios: a GPIO spec for the power supply enable control
Example:
&dsi {
status = "okay";
ports {
#address-cells = <1>;
#size-cells = <0>;
port@1 {
reg = <1>;
dsi_out_lt9611: endpoint {
remote-endpoint = <&lt9611_in_dsi>;
};
};
};
};
&i2c0 {
status = "okay";
lontium-lt9611@39 {
compatible = "lontium,lt9611";
status = "okay";
reg = <0x39>;
interrupts-extended = <&gpio0 RK_PB5 IRQ_TYPE_EDGE_FALLING>;
reset-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>;
vdd-supply = <&lt9611_1v8>;
vcc-supply = <&lt9611_3v3>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
lt9611_in_dsi: endpoint {
remote-endpoint = <&dsi_out_lt9611>;
};
};
};
};
};

View File

@@ -43,6 +43,19 @@ config DRM_DUMB_VGA_DAC
Support for non-programmable RGB to VGA DAC bridges, such as ADI
ADV7123, TI THS8134 and THS8135 or passive resistor ladder DACs.
config DRM_LONTIUM_LT9611
tristate "Lontium LT9611 DSI/HDMI bridge"
select SND_SOC_HDMI_CODEC if SND_SOC
depends on OF
select DRM_PANEL_BRIDGE
select DRM_KMS_HELPER
select REGMAP_I2C
help
Driver for Lontium LT9611 DSI to HDMI bridge
chip driver that converts dual DSI and I2S to
HDMI signals
Please say Y if you have such hardware.
config DRM_LVDS_ENCODER
tristate "Transparent parallel to LVDS encoder support"
depends on OF

View File

@@ -2,6 +2,7 @@
obj-$(CONFIG_DRM_ANALOGIX_ANX78XX) += analogix-anx78xx.o
obj-$(CONFIG_DRM_CDNS_DSI) += cdns-dsi.o
obj-$(CONFIG_DRM_DUMB_VGA_DAC) += dumb-vga-dac.o
obj-$(CONFIG_DRM_LONTIUM_LT9611) += lontium-lt9611.o
obj-$(CONFIG_DRM_LVDS_ENCODER) += lvds-encoder.o
obj-$(CONFIG_DRM_MEGACHIPS_STDPXXXX_GE_B850V3_FW) += megachips-stdpxxxx-ge-b850v3-fw.o
obj-$(CONFIG_DRM_NXP_PTN3460) += nxp-ptn3460.o

File diff suppressed because it is too large Load Diff