Skip to content

Commit aef9a11

Browse files
committed
arm64: dts: qcom: sdm845-db845c: Add hdmi bridge nodes
Enable MDSS and DSI and add the LT9611 HDMI bridge. Also add the HDMI audio nodes. Signed-off-by: Bjorn Andersson <[email protected]> Co-developed-by: Srinivas Kandagatla <[email protected]> Signed-off-by: Srinivas Kandagatla <[email protected]> Signed-off-by: Vinod Koul <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 04a3605 commit aef9a11

File tree

1 file changed

+118
-0
lines changed

1 file changed

+118
-0
lines changed

arch/arm64/boot/dts/qcom/sdm845-db845c.dts

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,17 @@
7474
};
7575
};
7676

77+
hdmi-out {
78+
compatible = "hdmi-connector";
79+
type = "a";
80+
81+
port {
82+
hdmi_con: endpoint {
83+
remote-endpoint = <&lt9611_out>;
84+
};
85+
};
86+
};
87+
7788
lt9611_1v8: lt9611-vdd18-regulator {
7889
compatible = "regulator-fixed";
7990
regulator-name = "LT9611_1V8";
@@ -382,6 +393,25 @@
382393
firmware-name = "qcom/sdm845/cdsp.mdt";
383394
};
384395

396+
&dsi0 {
397+
status = "okay";
398+
vdda-supply = <&vreg_l26a_1p2>;
399+
400+
ports {
401+
port@1 {
402+
endpoint {
403+
remote-endpoint = <&lt9611_a>;
404+
data-lanes = <0 1 2 3>;
405+
};
406+
};
407+
};
408+
};
409+
410+
&dsi0_phy {
411+
status = "okay";
412+
vdds-supply = <&vreg_l1a_0p875>;
413+
};
414+
385415
&gcc {
386416
protected-clocks = <GCC_QSPI_CORE_CLK>,
387417
<GCC_QSPI_CORE_CLK_SRC>,
@@ -395,6 +425,48 @@
395425
};
396426
};
397427

428+
&i2c10 {
429+
status = "okay";
430+
clock-frequency = <400000>;
431+
432+
lt9611_codec: hdmi-bridge@3b {
433+
compatible = "lontium,lt9611";
434+
reg = <0x3b>;
435+
#sound-dai-cells = <1>;
436+
437+
interrupts-extended = <&tlmm 84 IRQ_TYPE_EDGE_FALLING>;
438+
439+
reset-gpios = <&tlmm 128 GPIO_ACTIVE_HIGH>;
440+
441+
vdd-supply = <&lt9611_1v8>;
442+
vcc-supply = <&lt9611_3v3>;
443+
444+
pinctrl-names = "default";
445+
pinctrl-0 = <&lt9611_irq_pin>, <&dsi_sw_sel>;
446+
447+
ports {
448+
#address-cells = <1>;
449+
#size-cells = <0>;
450+
451+
port@0 {
452+
reg = <0>;
453+
454+
lt9611_out: endpoint {
455+
remote-endpoint = <&hdmi_con>;
456+
};
457+
};
458+
459+
port@1 {
460+
reg = <1>;
461+
462+
lt9611_a: endpoint {
463+
remote-endpoint = <&dsi0_out>;
464+
};
465+
};
466+
};
467+
};
468+
};
469+
398470
&i2c11 {
399471
/* On Low speed expansion */
400472
label = "LS-I2C1";
@@ -407,6 +479,14 @@
407479
status = "okay";
408480
};
409481

482+
&mdss {
483+
status = "okay";
484+
};
485+
486+
&mdss_mdp {
487+
status = "okay";
488+
};
489+
410490
&mss_pil {
411491
status = "okay";
412492
firmware-name = "qcom/sdm845/mba.mbn", "qcom/sdm845/modem.mbn";
@@ -612,6 +692,21 @@
612692
};
613693
};
614694

695+
hdmi-dai-link {
696+
link-name = "HDMI Playback";
697+
cpu {
698+
sound-dai = <&q6afedai QUATERNARY_MI2S_RX>;
699+
};
700+
701+
platform {
702+
sound-dai = <&q6routing>;
703+
};
704+
705+
codec {
706+
sound-dai = <&lt9611_codec 0>;
707+
};
708+
};
709+
615710
slim-dai-link {
616711
link-name = "SLIM Playback";
617712
cpu {
@@ -686,6 +781,21 @@
686781
};
687782
};
688783

784+
dsi_sw_sel: dsi-sw-sel {
785+
pins = "gpio120";
786+
function = "gpio";
787+
788+
drive-strength = <2>;
789+
bias-disable;
790+
output-high;
791+
};
792+
793+
lt9611_irq_pin: lt9611-irq {
794+
pins = "gpio84";
795+
function = "gpio";
796+
bias-disable;
797+
};
798+
689799
pcie0_default_state: pcie0-default {
690800
clkreq {
691801
pins = "gpio36";
@@ -943,6 +1053,14 @@
9431053
};
9441054
};
9451055

1056+
&qup_i2c10_default {
1057+
pinconf {
1058+
pins = "gpio55", "gpio56";
1059+
drive-strength = <2>;
1060+
bias-disable;
1061+
};
1062+
};
1063+
9461064
&qup_uart6_default {
9471065
pinmux {
9481066
pins = "gpio45", "gpio46", "gpio47", "gpio48";

0 commit comments

Comments
 (0)