From 47128c306f2025f68debda191ddd409d0526b8e3 Mon Sep 17 00:00:00 2001 From: wangjianxin Date: Thu, 7 Nov 2024 07:42:44 +0000 Subject: [PATCH] k230 01studio enable hdmi Signed-off-by: wangjianxin --- .../boot/dts/canaan/k230-canmv-01studio.dts | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/arch/riscv/boot/dts/canaan/k230-canmv-01studio.dts b/arch/riscv/boot/dts/canaan/k230-canmv-01studio.dts index 4dd6924f1c921..ae66f7ce3872b 100644 --- a/arch/riscv/boot/dts/canaan/k230-canmv-01studio.dts +++ b/arch/riscv/boot/dts/canaan/k230-canmv-01studio.dts @@ -51,3 +51,61 @@ dr_mode = "host"; status = "okay"; }; + +&i2c3 { + status = "okay"; + + lt9611: hdmi-bridge@3b { + compatible = "lontium,lt9611"; + reg = <0x3b>; + reset-gpios = <&gpio0_ports 22 GPIO_ACTIVE_HIGH>; + interrupt-parent = <&gpio0_ports>; + interrupts = <23 IRQ_TYPE_EDGE_FALLING>; + ports { + #address-cells = <1>; + #size-cells = <0>; + port@1 { + reg = <1>; + lt9611_in: endpoint { + remote-endpoint = <&dsi_out_lt9611>; + }; + }; + + port@2 { + reg = <2>; + lt9611_out: endpoint { + remote-endpoint = <&hdmi_connector_in>; + }; + }; + }; + }; +}; + +&dsi { + ports { + port@1 { + reg = <1>; + dsi_out_lt9611: endpoint { + remote-endpoint = <<9611_in>; + }; + }; + }; +}; + +/ { + hdmi: connector { + compatible = "hdmi-connector"; + label = "hdmi"; + type = "a"; + + port { + hdmi_connector_in: endpoint { + remote-endpoint = <<9611_out>; + }; + }; + }; +}; + +&vo { + vth_line = <10>; +};