arm64: dts: DB820c: Add display and audio support
cover arm64: dts: DB820c: Add display and audio support
Hi Andy,
Now that most of the bits are in mainline, its good time to add display and audio support to DB820c.
These patches are being tested in integration branch from long time.
Am resending 2 SMMU patches (https://patchwork.kernel.org/cover/10726329/)
in this series to keep all the display and sound patches together.
Can you pick these up for 5.1
thanks,
srini
Archit Taneja (3):
arm64: dts: msm8996: Add display smmu node
arm64: qcom: msm8996.dtsi: Add Display nodes
arm64: dts: apq8096-db820c: Add HDMI display support
Jordan Crouse (2):
arm64: dts: msm8996: Add graphics smmu node
arm64: dts: Add Adreno GPU and GPU smmu definitions
Srinivas Kandagatla (1):
arm64: dts: db820c: Add sound card support
.../boot/dts/qcom/apq8096-db820c-pins.dtsi | 52 +++ .../dts/qcom/apq8096-db820c-pmic-pins.dtsi | 9 + arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi | 125 +++++++ arch/arm64/boot/dts/qcom/msm8996-pins.dtsi | 46 +++ arch/arm64/boot/dts/qcom/msm8996.dtsi | 346 ++++++++++++++++++ 5 files changed, 578 insertions(+)
Signature · 1 line
2.20.1
PATCH 1/6 arm64: dts: msm8996: Add graphics smmu node
From: Jordan Crouse <[email protected]>
Add device node for graphics smmu, aka. adreno_smmu.
--- arch/arm64/boot/dts/qcom/msm8996.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
arch/arm64/boot/dts/qcom/msm8996.dtsi +17 -0
@@ -1138,6 +1138,23 @@ }; }; + adreno_smmu: arm,smmu@b40000 { + compatible = "qcom,msm8996-smmu-v2", "qcom,smmu-v2"; + reg = <0xb40000 0x10000>; + + #global-interrupts = <1>; + interrupts = <GIC_SPI 334 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 329 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 330 IRQ_TYPE_LEVEL_HIGH>; + #iommu-cells = <1>; + + clocks = <&mmcc GPU_AHB_CLK>, + <&gcc GCC_MMSS_BIMC_GFX_CLK>; + clock-names = "iface", "bus"; + + power-domains = <&mmcc GPU_GDSC>; + }; + agnoc@0 { power-domains = <&gcc AGGRE0_NOC_GDSC>; compatible = "simple-pm-bus";
Signature · 1 line
2.20.1
PATCH 2/6 arm64: dts: msm8996: Add display smmu node
In reply to Srinivas KandagatlaFrom: Archit Taneja <[email protected]>
Add device node for display smmu, aka. mdp_smmu.
--- arch/arm64/boot/dts/qcom/msm8996.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
arch/arm64/boot/dts/qcom/msm8996.dtsi +17 -0
@@ -1155,6 +1155,23 @@ power-domains = <&mmcc GPU_GDSC>; }; + mdp_smmu: arm,smmu@d00000 { + compatible = "qcom,msm8996-smmu-v2", "qcom,smmu-v2"; + reg = <0xd00000 0x10000>; + + #global-interrupts = <1>; + interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 320 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 321 IRQ_TYPE_LEVEL_HIGH>; + #iommu-cells = <1>; + + clocks = <&mmcc SMMU_MDP_AHB_CLK>, + <&mmcc SMMU_MDP_AXI_CLK>; + clock-names = "iface", "bus"; + + power-domains = <&mmcc MDSS_GDSC>; + }; + agnoc@0 { power-domains = <&gcc AGGRE0_NOC_GDSC>; compatible = "simple-pm-bus";
Signature · 1 line
2.20.1
PATCH 3/6 arm64: qcom: msm8996.dtsi: Add Display nodes
In reply to Srinivas KandagatlaFrom: Archit Taneja <[email protected]>
[Removed instances of mmagic clocks;
Use qcom,msm8996-smmu-v2 bindings]
--- arch/arm64/boot/dts/qcom/msm8996.dtsi | 120 ++++++++++++++++++++++++++ 1 file changed, 120 insertions(+)
arch/arm64/boot/dts/qcom/msm8996.dtsi +120 -0
@@ -1337,6 +1337,126 @@ "bus_slave"; }; }; + + mdss: mdss@900000 { + compatible = "qcom,mdss"; + + reg = <0x900000 0x1000>, + <0x9b0000 0x1040>, + <0x9b8000 0x1040>; + reg-names = "mdss_phys", + "vbif_phys", + "vbif_nrt_phys"; + + power-domains = <&mmcc MDSS_GDSC>; + interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>; + + interrupt-controller; + #interrupt-cells = <1>; + + clocks = <&mmcc MDSS_AHB_CLK>; + clock-names = "iface_clk"; + + #address-cells = <1>; + #size-cells = <1>; + ranges; + + mdp: mdp@901000 { + compatible = "qcom,mdp5"; + reg = <0x901000 0x90000>; + reg-names = "mdp_phys"; + + interrupt-parent = <&mdss>; + interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; + + clocks = <&mmcc MDSS_AHB_CLK>, + <&mmcc MDSS_AXI_CLK>, + <&mmcc MDSS_MDP_CLK>, + <&mmcc SMMU_MDP_AXI_CLK>, + <&mmcc MDSS_VSYNC_CLK>; + clock-names = "iface_clk", + "bus_clk", + "core_clk", + "iommu_clk", + "vsync_clk"; + + iommus = <&mdp_smmu 0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + mdp5_intf3_out: endpoint { + remote-endpoint = <&hdmi_in>; + }; + }; + }; + }; + + hdmi: hdmi-tx@9a0000 { + compatible = "qcom,hdmi-tx-8996"; + reg = <0x009a0000 0x50c>, + <0x00070000 0x6158>, + <0x009e0000 0xfff>; + reg-names = "core_physical", + "qfprom_physical", + "hdcp_physical"; + + interrupt-parent = <&mdss>; + interrupts = <8 IRQ_TYPE_LEVEL_HIGH>; + + clocks = <&mmcc MDSS_MDP_CLK>, + <&mmcc MDSS_AHB_CLK>, + <&mmcc MDSS_HDMI_CLK>, + <&mmcc MDSS_HDMI_AHB_CLK>, + <&mmcc MDSS_EXTPCLK_CLK>; + clock-names = + "mdp_core_clk", + "iface_clk", + "core_clk", + "alt_iface_clk", + "extp_clk"; + + phys = <&hdmi_phy>; + phy-names = "hdmi_phy"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + hdmi_in: endpoint { + remote-endpoint = <&mdp5_intf3_out>; + }; + }; + }; + }; + + hdmi_phy: hdmi-phy@9a0600 { + #phy-cells = <0>; + compatible = "qcom,hdmi-phy-8996"; + reg = <0x9a0600 0x1c4>, + <0x9a0a00 0x124>, + <0x9a0c00 0x124>, + <0x9a0e00 0x124>, + <0x9a1000 0x124>, + <0x9a1200 0x0c8>; + reg-names = "hdmi_pll", + "hdmi_tx_l0", + "hdmi_tx_l1", + "hdmi_tx_l2", + "hdmi_tx_l3", + "hdmi_phy"; + + clocks = <&mmcc MDSS_AHB_CLK>, + <&gcc GCC_HDMI_CLKREF_CLK>; + clock-names = "iface_clk", + "ref_clk"; + }; + }; }; adsp-pil {
Signature · 1 line
2.20.1
PATCH 4/6 arm64: dts: Add Adreno GPU and GPU smmu definitions
In reply to Srinivas KandagatlaFrom: Jordan Crouse <[email protected]>
Add an initial node for the Adreno GPU and it's companion SMMU. The GPU node is mostly complete except for a bare bones power table that will be filled out more completely later.
--- arch/arm64/boot/dts/qcom/msm8996.dtsi | 52 +++++++++++++++++++++++++++ 1 file changed, 52 insertions(+)
arch/arm64/boot/dts/qcom/msm8996.dtsi +52 -0
@@ -84,6 +84,12 @@ qcom,client-id = <1>; qcom,vmid = <15>; }; + + zap_shader_region: gpu@8f200000 { + compatible = "shared-dma-pool"; + reg = <0x0 0x90b00000 0x0 0xa00000>; + no-map; + }; }; cpus {
@@ -1338,6 +1344,52 @@ }; }; + gpu@b00000 { + compatible = "qcom,adreno-530.2", "qcom,adreno"; + #stream-id-cells = <16>; + + reg = <0xb00000 0x3f000>; + reg-names = "kgsl_3d0_reg_memory"; + + interrupts = <0 300 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "kgsl_3d0_irq"; + + clocks = <&mmcc GPU_GX_GFX3D_CLK>, + <&mmcc GPU_AHB_CLK>, + <&mmcc GPU_GX_RBBMTIMER_CLK>, + <&gcc GCC_BIMC_GFX_CLK>, + <&gcc GCC_MMSS_BIMC_GFX_CLK>; + + clock-names = "core", + "iface", + "rbbmtimer", + "mem", + "mem_iface"; + + power-domains = <&mmcc GPU_GDSC>; + iommus = <&adreno_smmu 0>; + + qcom,gpu-quirk-two-pass-use-wfi; + qcom,gpu-quirk-fault-detect-mask; + + /* This is a safe speed for bring up in all bin levels. + * This isn't the fastest the chip can go, but we can + * get there eventually */ + qcom,gpu-pwrlevels { + compatible = "qcom,gpu-pwrlevels"; + qcom,gpu-pwrlevel@0 { + qcom,gpu-freq = <510000000>; + }; + qcom,gpu-pwrlevel@1 { + qcom,gpu-freq = <27000000>; + }; + }; + + zap-shader { + memory-region = <&zap_shader_region>; + }; + }; + mdss: mdss@900000 { compatible = "qcom,mdss";
Signature · 1 line
2.20.1
Re: [PATCH 4/6] arm64: dts: Add Adreno GPU and GPU smmu definitions
Quoted 11 lines · Srinivas Kandagatla
From: Jordan Crouse <[email protected]>
Add an initial node for the Adreno GPU and it's companion SMMU. The GPU node is mostly complete except for a bare bones power table that will be filled out more completely later.
Signed-off-by Jordan Crouse <[email protected]>[Remove mmagic clocks from GPU/smmu nodes]Signed-off-by Vivek Gautam <[email protected]>Signed-off-by Srinivas Kandagatla <[email protected]>
Thanks for sending this.
Quoted 24 lines
--- arch/arm64/boot/dts/qcom/msm8996.dtsi | 52 +++++++++++++++++++++++++++ 1 file changed, 52 insertions(+)arch/arm64/boot/dts/qcom/msm8996.dtsi +6
-0@@ -84,6 +84,12 @@ qcom,client-id = <1>; qcom,vmid = <15>; }; + + zap_shader_region: gpu@8f200000 { + compatible = "shared-dma-pool"; + reg = <0x0 0x90b00000 0x0 0xa00000>; + no-map; + }; }; cpus {@@ -1338,6 +1344,52 @@ }; };
arch/arm64/boot/dts/qcom/msm8996.dtsi line 1355
Quoted 10 lines
arch/arm64/boot/dts/qcom/msm8996.dtsi +9
-0+ gpu@b00000 { + compatible = "qcom,adreno-530.2", "qcom,adreno"; + #stream-id-cells = <16>; + + reg = <0xb00000 0x3f000>; + reg-names = "kgsl_3d0_reg_memory"; + + interrupts = <0 300 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "kgsl_3d0_irq";
We dropped the interrupt name as of:
You should be able to safely omit it.
Quoted 8 lines
arch/arm64/boot/dts/qcom/msm8996.dtsi +8
-0+ + clocks = <&mmcc GPU_GX_GFX3D_CLK>, + <&mmcc GPU_AHB_CLK>, + <&mmcc GPU_GX_RBBMTIMER_CLK>, + <&gcc GCC_BIMC_GFX_CLK>, + <&gcc GCC_MMSS_BIMC_GFX_CLK>; + + clock-names = "core",
arch/arm64/boot/dts/qcom/msm8996.dtsi line 1373
Quoted 10 lines
arch/arm64/boot/dts/qcom/msm8996.dtsi +10
-0+ "iface", + "rbbmtimer", + "mem", + "mem_iface"; + + power-domains = <&mmcc GPU_GDSC>; + iommus = <&adreno_smmu 0>; + + qcom,gpu-quirk-two-pass-use-wfi; + qcom,gpu-quirk-fault-detect-mask;
This was downstream silliness - neither of these "flags" made it upstream (thankfully).
arch/arm64/boot/dts/qcom/msm8996.dtsi line 1385
Quoted 12 lines
arch/arm64/boot/dts/qcom/msm8996.dtsi +12
-0+ + /* This is a safe speed for bring up in all bin levels. + * This isn't the fastest the chip can go, but we can + * get there eventually */ + qcom,gpu-pwrlevels { + compatible = "qcom,gpu-pwrlevels"; + qcom,gpu-pwrlevel@0 { + qcom,gpu-freq = <510000000>; + }; + qcom,gpu-pwrlevel@1 { + qcom,gpu-freq = <27000000>; + };
Hmm - I haven't looked at the integration branch in a while but I'm positive that we had opp tables at some point because the driver supports opp-supported-hw. I hope I didn't just leave that sitting on my hard drive somewhere. I'll check and let you know.
Jordan
Quoted 13 lines
arch/arm64/boot/dts/qcom/msm8996.dtsi +7
-0+ }; + + zap-shader { + memory-region = <&zap_shader_region>; + }; + }; + mdss: mdss@900000 { compatible = "qcom,mdss";Signature · 1 line
2.20.1
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
Re: [PATCH 4/6] arm64: dts: Add Adreno GPU and GPU smmu definitions
Quoted 87 lines · Jordan Crouse
Quoted 11 lines · Srinivas Kandagatla
From: Jordan Crouse <[email protected]>
Add an initial node for the Adreno GPU and it's companion SMMU. The GPU node is mostly complete except for a bare bones power table that will be filled out more completely later.
Signed-off-by Jordan Crouse <[email protected]>[Remove mmagic clocks from GPU/smmu nodes]Signed-off-by Vivek Gautam <[email protected]>Signed-off-by Srinivas Kandagatla <[email protected]>Thanks for sending this.
Quoted 24 lines
--- arch/arm64/boot/dts/qcom/msm8996.dtsi | 52 +++++++++++++++++++++++++++ 1 file changed, 52 insertions(+)arch/arm64/boot/dts/qcom/msm8996.dtsi +6
-0@@ -84,6 +84,12 @@ qcom,client-id = <1>; qcom,vmid = <15>; }; + + zap_shader_region: gpu@8f200000 { + compatible = "shared-dma-pool"; + reg = <0x0 0x90b00000 0x0 0xa00000>; + no-map; + }; }; cpus {@@ -1338,6 +1344,52 @@ }; };arch/arm64/boot/dts/qcom/msm8996.dtsi line 1355
Quoted 10 lines
arch/arm64/boot/dts/qcom/msm8996.dtsi +9
-0+ gpu@b00000 { + compatible = "qcom,adreno-530.2", "qcom,adreno"; + #stream-id-cells = <16>; + + reg = <0xb00000 0x3f000>; + reg-names = "kgsl_3d0_reg_memory"; + + interrupts = <0 300 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "kgsl_3d0_irq";We dropped the interrupt name as of:
You should be able to safely omit it.
Quoted 8 lines
arch/arm64/boot/dts/qcom/msm8996.dtsi +8
-0+ + clocks = <&mmcc GPU_GX_GFX3D_CLK>, + <&mmcc GPU_AHB_CLK>, + <&mmcc GPU_GX_RBBMTIMER_CLK>, + <&gcc GCC_BIMC_GFX_CLK>, + <&gcc GCC_MMSS_BIMC_GFX_CLK>; + + clock-names = "core",arch/arm64/boot/dts/qcom/msm8996.dtsi line 1373
Quoted 10 lines
arch/arm64/boot/dts/qcom/msm8996.dtsi +10
-0+ "iface", + "rbbmtimer", + "mem", + "mem_iface"; + + power-domains = <&mmcc GPU_GDSC>; + iommus = <&adreno_smmu 0>; + + qcom,gpu-quirk-two-pass-use-wfi; + qcom,gpu-quirk-fault-detect-mask;This was downstream silliness - neither of these "flags" made it upstream (thankfully).
Quoted 9 lines
arch/arm64/boot/dts/qcom/msm8996.dtsi +9
-0+ + /* This is a safe speed for bring up in all bin levels. + * This isn't the fastest the chip can go, but we can + * get there eventually */ + qcom,gpu-pwrlevels { + compatible = "qcom,gpu-pwrlevels"; + qcom,gpu-pwrlevel@0 { + qcom,gpu-freq = <510000000>; + };
Quoted 8 lines
arch/arm64/boot/dts/qcom/msm8996.dtsi line 1385
Quoted 3 lines
arch/arm64/boot/dts/qcom/msm8996.dtsi +3
-0+ qcom,gpu-pwrlevel@1 { + qcom,gpu-freq = <27000000>; + };Hmm - I haven't looked at the integration branch in a while but I'm positive that we had opp tables at some point because the driver supports opp-supported-hw. I hope I didn't just leave that sitting on my hard drive somewhere. I'll check and let you know.
Ugh, I just found them sitting unsent in a dusty git branch. I can either send them as incremental patches on top of yours to be squashed later or I can refactor this patch and send it out again, whatever is easiest for you.
Jordan
Quoted 17 lines
Quoted 13 lines
arch/arm64/boot/dts/qcom/msm8996.dtsi +7
-0+ }; + + zap-shader { + memory-region = <&zap_shader_region>; + }; + }; + mdss: mdss@900000 { compatible = "qcom,mdss";Signature · 1 line
2.20.1Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
Re: [PATCH 4/6] arm64: dts: Add Adreno GPU and GPU smmu definitions
Thanks Jordan,
Quoted 3 lines · Jordan Crouse
Ugh, I just found them sitting unsent in a dusty git branch. I can either send them as incremental patches on top of yours to be squashed later or I can refactor this patch and send it out again, whatever is easiest for you.
If you can refactor this patch and send it out, that would be great!
thanks,
srini
PATCH 1/1 arm64: dts: Add Adreno GPU and GPU smmu definitions
In reply to Srinivas KandagatlaAdd an initial node for the Adreno GPU and it's companion SMMU.
---
This is slightly updated version of [1] to include a correct OPP table and other such stuff. I didn't know the best way to send it, so I attached it to the original email and hopefully Andy forgives me. Otherwise, Srinivas can resend it correctly.
[1] https://patchwork.kernel.org/patch/10786185/
arch/arm64/boot/dts/qcom/msm8996.dtsi | 86 +++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+)
arch/arm64/boot/dts/qcom/msm8996.dtsi +86 -0
@@ -84,6 +84,12 @@ qcom,client-id = <1>; qcom,vmid = <15>; }; + + zap_shader_region: gpu@8f200000 { + compatible = "shared-dma-pool"; + reg = <0x0 0x90b00000 0x0 0xa00000>; + no-map; + }; }; cpus {
@@ -796,6 +802,11 @@ reg = <0x24f 0x1>; bits = <1 4>; }; + + gpu_speed_bin: gpu_speed_bin@133 { + reg = <0x133 0x1>; + bits = <5 3>; + }; }; phy@34000 {
@@ -1338,6 +1349,81 @@ }; }; + gpu@b00000 { + compatible = "qcom,adreno-530.2", "qcom,adreno"; + #stream-id-cells = <16>; + + reg = <0xb00000 0x3f000>; + reg-names = "kgsl_3d0_reg_memory"; + + interrupts = <0 300 IRQ_TYPE_LEVEL_HIGH>; + + clocks = <&mmcc GPU_GX_GFX3D_CLK>, + <&mmcc GPU_AHB_CLK>, + <&mmcc GPU_GX_RBBMTIMER_CLK>, + <&gcc GCC_BIMC_GFX_CLK>, + <&gcc GCC_MMSS_BIMC_GFX_CLK>; + + clock-names = "core", + "iface", + "rbbmtimer", + "mem", + "mem_iface"; + + power-domains = <&mmcc GPU_GDSC>; + iommus = <&adreno_smmu 0>; + + nvmem-cells = <&gpu_speed_bin>; + nvmem-cell-names = "speed_bin"; + + qcom,gpu-quirk-two-pass-use-wfi; + qcom,gpu-quirk-fault-detect-mask; + + operating-points-v2 = <&gpu_opp_table>; + + gpu_opp_table: opp-table { + compatible ="operating-points-v2"; + + /* + * 624Mhz and 560Mhz are only available on speed + * bin (1 << 0). All the rest are available on + * all bins of the hardware + */ + opp-624000000 { + opp-hz = /bits/ 64 <624000000>; + opp-supported-hw = <0x01>; + }; + opp-560000000 { + opp-hz = /bits/ 64 <560000000>; + opp-supported-hw = <0x01>; + }; + opp-510000000 { + opp-hz = /bits/ 64 <510000000>; + opp-supported-hw = <0xFF>; + }; + opp-401800000 { + opp-hz = /bits/ 64 <401800000>; + opp-supported-hw = <0xFF>; + }; + opp-315000000 { + opp-hz = /bits/ 64 <315000000>; + opp-supported-hw = <0xFF>; + }; + opp-214000000 { + opp-hz = /bits/ 64 <214000000>; + opp-supported-hw = <0xFF>; + }; + opp-133000000 { + opp-hz = /bits/ 64 <133000000>; + opp-supported-hw = <0xFF>; + }; + }; + + zap-shader { + memory-region = <&zap_shader_region>; + }; + }; + mdss: mdss@900000 { compatible = "qcom,mdss";
Signature · 1 line
2.7.4
Re: [PATCH] arm64: dts: Add Adreno GPU and GPU smmu definitions
Hi,
Quoted 3 lines · Jordan Crouse
Add an initial node for the Adreno GPU and it's companion SMMU.
The SMMU node is in another patch, so may be change the title of this patch and update the commit text too?
Quoted 4 lines
Signed-off-by Vivek Gautam <[email protected]>Signed-off-by Srinivas Kandagatla <[email protected]>Signed-off-by Jordan Crouse <[email protected]>
[snip]
Regards
Vivek
Vivek
--
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
Re: [PATCH] arm64: dts: Add Adreno GPU and GPU smmu definitions
Thanks Vivek,
Quoted 8 lines · Vivek Gautam
Hi,
Quoted 2 lines · Jordan Crouse
Add an initial node for the Adreno GPU and it's companion SMMU.
The SMMU node is in another patch, so may be change the title of this patch and update the commit text too?
I will update this and send v2 of the series!
--srini
PATCH 5/6 arm64: dts: apq8096-db820c: Add HDMI display support
In reply to Srinivas KandagatlaFrom: Archit Taneja <[email protected]>
The APQ8096 DB820c platform provides HDMI output. The MDSS block on 8x96 supports a direct HDMI out. Populate the MDSS, MDP and HDMI DT nodes. Also, add the HDMI HPD and DDC pinctrl nodes with the bias and driver strength specified for this platform.
--- .../boot/dts/qcom/apq8096-db820c-pins.dtsi | 52 +++++++++++++++++++ arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi | 27 ++++++++++ 2 files changed, 79 insertions(+)
arch/arm64/boot/dts/qcom/apq8096-db820c-pins.dtsi +52 -0
@@ -62,4 +62,56 @@ bias-disable; }; }; + + hdmi_hpd_active: hdmi_hpd_active { + mux { + pins = "gpio34"; + function = "hdmi_hot"; + }; + + config { + pins = "gpio34"; + bias-pull-down; + drive-strength = <16>; + }; + }; + + hdmi_hpd_suspend: hdmi_hpd_suspend { + mux { + pins = "gpio34"; + function = "hdmi_hot"; + }; + + config { + pins = "gpio34"; + bias-pull-down; + drive-strength = <2>; + }; + }; + + hdmi_ddc_active: hdmi_ddc_active { + mux { + pins = "gpio32", "gpio33"; + function = "hdmi_ddc"; + }; + + config { + pins = "gpio32", "gpio33"; + drive-strength = <2>; + bias-pull-up; + }; + }; + + hdmi_ddc_suspend: hdmi_ddc_suspend { + mux { + pins = "gpio32", "gpio33"; + function = "hdmi_ddc"; + }; + + config { + pins = "gpio32", "gpio33"; + drive-strength = <2>; + bias-pull-down; + }; + }; };
arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi +27 -0
@@ -452,6 +452,33 @@ perst-gpio = <&msmgpio 114 GPIO_ACTIVE_LOW>; }; }; + + mdss@900000 { + status = "okay"; + + mdp@901000 { + status = "okay"; + }; + + hdmi-phy@9a0600 { + status = "okay"; + + vddio-supply = <&pm8994_l12>; + vcca-supply = <&pm8994_l28>; + #phy-cells = <0>; + }; + + hdmi-tx@9a0000 { + status = "okay"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&hdmi_hpd_active &hdmi_ddc_active>; + pinctrl-1 = <&hdmi_hpd_suspend &hdmi_ddc_suspend>; + + core-vdda-supply = <&pm8994_l12>; + core-vcc-supply = <&pm8994_s4>; + }; + }; };
Signature · 1 line
2.20.1
PATCH 6/6 arm64: dts: db820c: Add sound card support
In reply to Srinivas KandagatlaThis patch adds support both digital and analog audio on DB820c. This board has HDMI port and 3.5mm audio jack to support both digital and analog audio respectively.
--- .../dts/qcom/apq8096-db820c-pmic-pins.dtsi | 9 ++ arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi | 98 ++++++++++++ arch/arm64/boot/dts/qcom/msm8996-pins.dtsi | 46 ++++++ arch/arm64/boot/dts/qcom/msm8996.dtsi | 140 ++++++++++++++++++ 4 files changed, 293 insertions(+)
arch/arm64/boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi +9 -0
@@ -36,6 +36,15 @@ }; }; + + audio_mclk: clk_div1 { + pinconf { + pins = "gpio15"; + function = "func1"; + power-source = <PM8994_GPIO_S4>; // 1.8V + }; + }; + volume_up_gpio: pm8996_gpio2 { pinconf { pins = "gpio2";
arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi +98 -0
131 lines not on this page · raw message
arch/arm64/boot/dts/qcom/msm8996-pins.dtsi +46 -0
52 lines not on this page · raw message
arch/arm64/boot/dts/qcom/msm8996.dtsi +140 -0
176 lines not on this page · raw message
Signature · 1 line
2.20.1