MSM8976 MDSS/GPU/WCNSS support
Subsystems (7)
cover MSM8976 MDSS/GPU/WCNSS support
This patch series provide support for display subsystem, gpu and also adds wireless connectivity subsystem support.
Adam Skladowski (8):
arm64: dts: qcom: msm8976: Add IOMMU nodes
dt-bindings: dsi-controller-main: Document missing msm8976 compatible
dt-bindings: msm: qcom,mdss: Include ommited fam-b compatible
arm64: dts: qcom: msm8976: Add MDSS nodes
dt-bindings: drm/msm/gpu: Document AON clock for A506/A510
arm64: dts: qcom: msm8976: Add Adreno GPU
arm64: dts: qcom: msm8976: Declare and wire SDC pins
arm64: dts: qcom: msm8976: Add WCNSS node
.../display/msm/dsi-controller-main.yaml | 2 + .../devicetree/bindings/display/msm/gpu.yaml | 6 +- .../bindings/display/msm/qcom,mdss.yaml | 1 + arch/arm64/boot/dts/qcom/msm8976.dtsi | 610 +++++++++++++++++- 4 files changed, 613 insertions(+), 6 deletions(-)
Signature · 1 line
2.43.0
PATCH 1/8 arm64: dts: qcom: msm8976: Add IOMMU nodes
Add the nodes describing the apps and gpu iommu and its context banks that are found on msm8976 SoCs.
--- arch/arm64/boot/dts/qcom/msm8976.dtsi | 80 +++++++++++++++++++++++++++ 1 file changed, 80 insertions(+)
arch/arm64/boot/dts/qcom/msm8976.dtsi +80 -0
@@ -808,6 +808,86 @@ tcsr: syscon@1937000 { reg = <0x01937000 0x30000>; }; + apps_iommu: iommu@1e20000 { + compatible = "qcom,msm8976-iommu", "qcom,msm-iommu-v2"; + ranges = <0 0x01e20000 0x20000>; + + clocks = <&gcc GCC_SMMU_CFG_CLK>, + <&gcc GCC_APSS_TCU_CLK>; + clock-names = "iface", "bus"; + + qcom,iommu-secure-id = <17>; + + #address-cells = <1>; + #size-cells = <1>; + #iommu-cells = <1>; + + /* VFE */ + iommu-ctx@15000 { + compatible = "qcom,msm-iommu-v2-ns"; + reg = <0x15000 0x1000>; + qcom,ctx-asid = <20>; + interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>; + }; + + /* VENUS NS */ + iommu-ctx@16000 { + compatible = "qcom,msm-iommu-v2-ns"; + reg = <0x16000 0x1000>; + qcom,ctx-asid = <21>; + interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>; + }; + + /* MDP0 */ + iommu-ctx@17000 { + compatible = "qcom,msm-iommu-v2-ns"; + reg = <0x17000 0x1000>; + qcom,ctx-asid = <22>; + interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>; + }; + }; + + gpu_iommu: iommu@1f08000 { + compatible = "qcom,msm8976-iommu", "qcom,msm-iommu-v2"; + ranges = <0 0x01f08000 0x8000>; + + clocks = <&gcc GCC_SMMU_CFG_CLK>, + <&gcc GCC_GFX3D_TCU_CLK>; + clock-names = "iface", "bus"; + + power-domains = <&gcc OXILI_GX_GDSC>; + + qcom,iommu-secure-id = <18>; + + #address-cells = <1>; + #size-cells = <1>; + #iommu-cells = <1>; + + /* gfx3d user */ + iommu-ctx@0 { + compatible = "qcom,msm-iommu-v2-ns"; + reg = <0x0 0x1000>; + qcom,ctx-asid = <0>; + interrupts = <GIC_SPI 240 IRQ_TYPE_LEVEL_HIGH>; + }; + + /* gfx3d secure */ + iommu-ctx@1000 { + compatible = "qcom,msm-iommu-v2-sec"; + reg = <0x1000 0x1000>; + qcom,ctx-asid = <2>; + interrupts = <GIC_SPI 241 IRQ_TYPE_LEVEL_HIGH>; + }; + + /* gfx3d priv */ + iommu-ctx@2000 { + compatible = "qcom,msm-iommu-v2-sec"; + reg = <0x2000 0x1000>; + qcom,ctx-asid = <1>; + interrupts = <GIC_SPI 242 IRQ_TYPE_LEVEL_HIGH>; + }; + }; + spmi_bus: spmi@200f000 { compatible = "qcom,spmi-pmic-arb"; reg = <0x0200f000 0x1000>,
Signature · 1 line
2.43.0
Re: [PATCH 1/8] arm64: dts: qcom: msm8976: Add IOMMU nodes
Quoted 13 lines · Adam Skladowski
Add the nodes describing the apps and gpu iommu and its context banks that are found on msm8976 SoCs.
Signed-off-by Adam Skladowski <[email protected]>--- arch/arm64/boot/dts/qcom/msm8976.dtsi | 80 +++++++++++++++++++++++++++ 1 file changed, 80 insertions(+)arch/arm64/boot/dts/qcom/msm8976.dtsi +0
-0
arch/arm64/boot/dts/qcom/msm8976.dtsi tcsr: syscon@1937000 { · line 813
Quoted 6 lines
arch/arm64/boot/dts/qcom/msm8976.dtsi +3
-0@@ -808,6 +808,86 @@ tcsr: syscon@1937000 { reg = <0x01937000 0x30000>; }; + apps_iommu: iommu@1e20000 { + compatible = "qcom,msm8976-iommu", "qcom,msm-iommu-v2"; + ranges = <0 0x01e20000 0x20000>;
So.. there's no 'reg', does devm_platform_ioremap_resource() pick up the corresponding reg space?
Konrad
PATCH 2/8 dt-bindings: dsi-controller-main: Document missing msm8976 compatible
In reply to Adam SkladowskiWhen all dsi-ctrl compats were added msm8976 was missed, include it too.
--- .../devicetree/bindings/display/msm/dsi-controller-main.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/display/msm/dsi-controller-main.yaml +2 -0
@@ -19,6 +19,7 @@ properties: - qcom,msm8916-dsi-ctrl - qcom,msm8953-dsi-ctrl - qcom,msm8974-dsi-ctrl + - qcom,msm8976-dsi-ctrl - qcom,msm8996-dsi-ctrl - qcom,msm8998-dsi-ctrl - qcom,qcm2290-dsi-ctrl
@@ -248,6 +249,7 @@ allOf: contains: enum: - qcom,msm8953-dsi-ctrl + - qcom,msm8976-dsi-ctrl then: properties: clocks:
Signature · 1 line
2.43.0
Re: [PATCH 2/8] dt-bindings: dsi-controller-main: Document missing msm8976 compatible
Quoted 4 lines · Adam Skladowski
When all dsi-ctrl compats were added msm8976 was missed, include it too.
Signed-off-by Adam Skladowski <[email protected]>---
Best regards,
Krzysztof
PATCH 3/8 dt-bindings: msm: qcom,mdss: Include ommited fam-b compatible
In reply to Adam SkladowskiDuring conversion 28nm-hpm-fam-b compat got lost, add it.
--- Documentation/devicetree/bindings/display/msm/qcom,mdss.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/display/msm/qcom,mdss.yaml +1 -0
@@ -127,6 +127,7 @@ patternProperties: - qcom,dsi-phy-20nm - qcom,dsi-phy-28nm-8226 - qcom,dsi-phy-28nm-hpm + - qcom,dsi-phy-28nm-hpm-fam-b - qcom,dsi-phy-28nm-lp - qcom,hdmi-phy-8084 - qcom,hdmi-phy-8660
Signature · 1 line
2.43.0
Re: [PATCH 3/8] dt-bindings: msm: qcom,mdss: Include ommited fam-b compatible
Quoted 1 line · Adam Skladowski
During conversion 28nm-hpm-fam-b compat got lost, add it.
Please add Fixes tag and put this commit as first in your patchset or even as separate one.
Best regards,
Krzysztof
Re: [PATCH 3/8] dt-bindings: msm: qcom,mdss: Include ommited fam-b compatible
Quoted 6 lines · Krzysztof Kozlowski
Quoted 1 line · Adam Skladowski
During conversion 28nm-hpm-fam-b compat got lost, add it.
Please add Fixes tag and put this commit as first in your patchset or even as separate one.
Krzysztof, if that was the only issue, could you please ack this patch, I can then merge it
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH 3/8] dt-bindings: msm: qcom,mdss: Include ommited fam-b compatible
In reply to Adam SkladowskiQuoted 4 lines · Adam Skladowski
During conversion 28nm-hpm-fam-b compat got lost, add it.
Signed-off-by Adam Skladowski <[email protected]>---
Best regards,
Krzysztof
PATCH 4/8 arm64: dts: qcom: msm8976: Add MDSS nodes
In reply to Adam SkladowskiAdd MDSS nodes to support displays on MSM8976 SoC.
--- arch/arm64/boot/dts/qcom/msm8976.dtsi | 268 +++++++++++++++++++++++++- 1 file changed, 264 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/qcom/msm8976.dtsi +264 -4
@@ -785,10 +785,10 @@ gcc: clock-controller@1800000 { clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>, <&rpmcc RPM_SMD_XO_A_CLK_SRC>, - <0>, - <0>, - <0>, - <0>; + <&mdss_dsi0_phy 1>, + <&mdss_dsi0_phy 0>, + <&mdss_dsi1_phy 1>, + <&mdss_dsi1_phy 0>; clock-names = "xo", "xo_a", "dsi0pll",
@@ -808,6 +808,266 @@ tcsr: syscon@1937000 { reg = <0x01937000 0x30000>; }; + mdss: display-subsystem@1a00000 { + compatible = "qcom,mdss"; + + reg = <0x01a00000 0x1000>, + <0x01ab0000 0x3000>; + reg-names = "mdss_phys", "vbif_phys"; + + power-domains = <&gcc MDSS_GDSC>; + interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>; + + interrupt-controller; + #interrupt-cells = <1>; + + clocks = <&gcc GCC_MDSS_AHB_CLK>, + <&gcc GCC_MDSS_AXI_CLK>, + <&gcc GCC_MDSS_VSYNC_CLK>, + <&gcc GCC_MDSS_MDP_CLK>; + clock-names = "iface", + "bus", + "vsync", + "core"; + + #address-cells = <1>; + #size-cells = <1>; + ranges; + + status = "disabled"; + + mdss_mdp: display-controller@1a01000 { + compatible = "qcom,msm8976-mdp5", "qcom,mdp5"; + reg = <0x01a01000 0x89000>; + reg-names = "mdp_phys"; + + interrupt-parent = <&mdss>; + interrupts = <0>; + + clocks = <&gcc GCC_MDSS_AHB_CLK>, + <&gcc GCC_MDSS_AXI_CLK>, + <&gcc GCC_MDSS_MDP_CLK>, + <&gcc GCC_MDSS_VSYNC_CLK>, + <&gcc GCC_MDP_TBU_CLK>, + <&gcc GCC_MDP_RT_TBU_CLK>; + clock-names = "iface", + "bus", + "core", + "vsync", + "tbu", + "tbu_rt"; + + operating-points-v2 = <&mdp_opp_table>; + power-domains = <&gcc MDSS_GDSC>; + + iommus = <&apps_iommu 22>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + mdss_mdp5_intf1_out: endpoint { + remote-endpoint = <&mdss_dsi0_in>; + }; + }; + + port@1 { + reg = <1>; + mdss_mdp5_intf2_out: endpoint { + remote-endpoint = <&mdss_dsi1_in>; + }; + }; + }; + + mdp_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-177780000 { + opp-hz = /bits/ 64 <177780000>; + required-opps = <&rpmpd_opp_svs>; + }; + + opp-270000000 { + opp-hz = /bits/ 64 <270000000>; + required-opps = <&rpmpd_opp_svs_plus>; + }; + + opp-320000000 { + opp-hz = /bits/ 64 <320000000>; + required-opps = <&rpmpd_opp_nom>; + }; + opp-360000000 { + opp-hz = /bits/ 64 <360000000>; + required-opps = <&rpmpd_opp_turbo>; + }; + }; + }; + + mdss_dsi0: dsi@1a94000 { + compatible = "qcom,msm8976-dsi-ctrl", "qcom,mdss-dsi-ctrl"; + reg = <0x01a94000 0x25c>; + reg-names = "dsi_ctrl"; + + interrupt-parent = <&mdss>; + interrupts = <4>; + + clocks = <&gcc GCC_MDSS_MDP_CLK>, + <&gcc GCC_MDSS_AHB_CLK>, + <&gcc GCC_MDSS_AXI_CLK>, + <&gcc GCC_MDSS_BYTE0_CLK>, + <&gcc GCC_MDSS_PCLK0_CLK>, + <&gcc GCC_MDSS_ESC0_CLK>; + clock-names = "mdp_core", + "iface", + "bus", + "byte", + "pixel", + "core"; + + assigned-clocks = <&gcc GCC_MDSS_BYTE0_CLK_SRC>, + <&gcc GCC_MDSS_PCLK0_CLK_SRC>; + assigned-clock-parents = <&mdss_dsi0_phy 0>, + <&mdss_dsi0_phy 1>; + + phys = <&mdss_dsi0_phy>; + + operating-points-v2 = <&dsi0_opp_table>; + power-domains = <&gcc MDSS_GDSC>; + + #address-cells = <1>; + #size-cells = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + mdss_dsi0_in: endpoint { + remote-endpoint = <&mdss_mdp5_intf1_out>; + }; + }; + + port@1 { + reg = <1>; + mdss_dsi0_out: endpoint { + }; + }; + }; + + dsi0_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-125000000 { + opp-hz = /bits/ 64 <125000000>; + required-opps = <&rpmpd_opp_svs>; + + }; + + opp-161250000 { + opp-hz = /bits/ 64 <161250000>; + required-opps = <&rpmpd_opp_svs_plus>; + }; + + opp-187500000 { + opp-hz = /bits/ 64 <187500000>; + required-opps = <&rpmpd_opp_nom>; + }; + }; + }; + + mdss_dsi1: dsi@1a96000 { + compatible = "qcom,msm8976-dsi-ctrl", "qcom,mdss-dsi-ctrl"; + reg = <0x01a96000 0x300>; + reg-names = "dsi_ctrl"; + + interrupt-parent = <&mdss>; + interrupts = <5>; + + clocks = <&gcc GCC_MDSS_MDP_CLK>, + <&gcc GCC_MDSS_AHB_CLK>, + <&gcc GCC_MDSS_AXI_CLK>, + <&gcc GCC_MDSS_BYTE1_CLK>, + <&gcc GCC_MDSS_PCLK1_CLK>, + <&gcc GCC_MDSS_ESC1_CLK>; + clock-names = "mdp_core", + "iface", + "bus", + "byte", + "pixel", + "core"; + + assigned-clocks = <&gcc GCC_MDSS_BYTE1_CLK_SRC>, + <&gcc GCC_MDSS_PCLK1_CLK_SRC>; + assigned-clock-parents = <&mdss_dsi1_phy 0>, + <&mdss_dsi1_phy 1>; + + phys = <&mdss_dsi1_phy>; + + power-domains = <&gcc MDSS_GDSC>; + + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + mdss_dsi1_in: endpoint { + remote-endpoint = <&mdss_mdp5_intf2_out>; + }; + }; + + port@1 { + reg = <1>; + mdss_dsi1_out: endpoint { + }; + }; + }; + }; + + mdss_dsi0_phy: phy@1a94a00 { + compatible = "qcom,dsi-phy-28nm-hpm-fam-b"; + reg = <0x01a94a00 0xd4>, + <0x01a94400 0x280>, + <0x01a94b80 0x30>; + reg-names = "dsi_pll", + "dsi_phy", + "dsi_phy_regulator"; + + #clock-cells = <1>; + #phy-cells = <0>; + + clocks = <&gcc GCC_MDSS_AHB_CLK>, + <&rpmcc RPM_SMD_XO_CLK_SRC>; + clock-names = "iface", "ref"; + + status = "disabled"; + }; + + mdss_dsi1_phy: phy@1a96a00 { + compatible = "qcom,dsi-phy-28nm-hpm-fam-b"; + reg = <0x01a96a00 0xd4>, + <0x01a96400 0x280>, + <0x01a96b80 0x30>; + reg-names = "dsi_pll", + "dsi_phy", + "dsi_phy_regulator"; + + #clock-cells = <1>; + #phy-cells = <0>; + + clocks = <&gcc GCC_MDSS_AHB_CLK>, + <&rpmcc RPM_SMD_XO_CLK_SRC>; + clock-names = "iface", "ref"; + + status = "disabled"; + }; + }; + apps_iommu: iommu@1e20000 { compatible = "qcom,msm8976-iommu", "qcom,msm-iommu-v2"; ranges = <0 0x01e20000 0x20000>;
Signature · 1 line
2.43.0
Re: [PATCH 4/8] arm64: dts: qcom: msm8976: Add MDSS nodes
Quoted 37 lines · Adam Skladowski
Add MDSS nodes to support displays on MSM8976 SoC.
Signed-off-by Adam Skladowski <[email protected]>--- arch/arm64/boot/dts/qcom/msm8976.dtsi | 268 +++++++++++++++++++++++++- 1 file changed, 264 insertions(+), 4 deletions(-)arch/arm64/boot/dts/qcom/msm8976.dtsi +11
-4@@ -785,10 +785,10 @@ gcc: clock-controller@1800000 { clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>, <&rpmcc RPM_SMD_XO_A_CLK_SRC>, - <0>, - <0>, - <0>, - <0>; + <&mdss_dsi0_phy 1>, + <&mdss_dsi0_phy 0>, + <&mdss_dsi1_phy 1>, + <&mdss_dsi1_phy 0>; clock-names = "xo", "xo_a", "dsi0pll",@@ -808,6 +808,266 @@ tcsr: syscon@1937000 { reg = <0x01937000 0x30000>; }; + mdss: display-subsystem@1a00000 { + compatible = "qcom,mdss"; + + reg = <0x01a00000 0x1000>, + <0x01ab0000 0x3000>; + reg-names = "mdss_phys", "vbif_phys"; +
arch/arm64/boot/dts/qcom/msm8976.dtsi tcsr: syscon@1937000 { · line 827
Quoted 10 lines
arch/arm64/boot/dts/qcom/msm8976.dtsi +10
-0+ power-domains = <&gcc MDSS_GDSC>; + interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>; + + interrupt-controller; + #interrupt-cells = <1>; + + clocks = <&gcc GCC_MDSS_AHB_CLK>, + <&gcc GCC_MDSS_AXI_CLK>, + <&gcc GCC_MDSS_VSYNC_CLK>, + <&gcc GCC_MDSS_MDP_CLK>;
The last entry is misaligned
[...]
arch/arm64/boot/dts/qcom/msm8976.dtsi tcsr: syscon@1937000 { · line 829
Quoted 2 lines
arch/arm64/boot/dts/qcom/msm8976.dtsi +2
-0+ port@0 { + reg = <0>;
Please add a newline between properties and subnodes
And then the rest looks good, I think!
Konrad
PATCH 5/8 dt-bindings: drm/msm/gpu: Document AON clock for A506/A510
In reply to Adam SkladowskiAdreno 506(MSM8953) and Adreno 510(MSM8976) require Always-on branch clock to be enabled, describe it.
--- Documentation/devicetree/bindings/display/msm/gpu.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/display/msm/gpu.yaml +4 -2
@@ -133,7 +133,7 @@ allOf: properties: clocks: minItems: 2 - maxItems: 7 + maxItems: 8 clock-names: items:
@@ -148,6 +148,8 @@ allOf: description: GPU Memory Interface clock - const: alt_mem_iface description: GPU Alternative Memory Interface clock + - const: alwayson + description: GPU Always-On clock - const: gfx3d description: GPU 3D engine clock - const: rbbmtimer
@@ -155,7 +157,7 @@ allOf: - const: rbcpr description: GPU RB Core Power Reduction clock minItems: 2 - maxItems: 7 + maxItems: 8 required: - clocks
Signature · 1 line
2.43.0
Re: [PATCH 5/8] dt-bindings: drm/msm/gpu: Document AON clock for A506/A510
Quoted 13 lines · Adam Skladowski
Adreno 506(MSM8953) and Adreno 510(MSM8976) require Always-on branch clock to be enabled, describe it.
Signed-off-by Adam Skladowski <[email protected]>--- Documentation/devicetree/bindings/display/msm/gpu.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)Documentation/devicetree/bindings/display/msm/gpu.yaml +0
-0
Documentation/devicetree/bindings/display/msm/gpu.yaml allOf: · line 136
Quoted 5 lines
Documentation/devicetree/bindings/display/msm/gpu.yaml +1
-1@@ -133,7 +133,7 @@ allOf: properties: clocks: minItems: 2 - maxItems: 7 + maxItems: 8
I would prefer we start enforcing the order. The initial flexibility was because of conversion from the old bindings and dealing with some technical debt, AFAIU.
This is requirement of new clock, so maybe better add dedicated if:then case which will be enforcing the order with always-on at the end.
Best regards,
Krzysztof
PATCH 6/8 arm64: dts: qcom: msm8976: Add Adreno GPU
In reply to Adam SkladowskiAdd Adreno GPU node.
--- arch/arm64/boot/dts/qcom/msm8976.dtsi | 66 +++++++++++++++++++++++++++ 1 file changed, 66 insertions(+)
arch/arm64/boot/dts/qcom/msm8976.dtsi +66 -0
@@ -1068,6 +1068,72 @@ mdss_dsi1_phy: phy@1a96a00 { }; }; + adreno_gpu: gpu@1c00000 { + compatible = "qcom,adreno-510.0", "qcom,adreno"; + + reg = <0x01c00000 0x40000>; + reg-names = "kgsl_3d0_reg_memory"; + + interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "kgsl_3d0_irq"; + + clock-names = "core", + "iface", + "mem", + "mem_iface", + "rbbmtimer", + "alwayson"; + + clocks = <&gcc GCC_GFX3D_OXILI_CLK>, + <&gcc GCC_GFX3D_OXILI_AHB_CLK>, + <&gcc GCC_GFX3D_OXILI_GMEM_CLK>, + <&gcc GCC_GFX3D_BIMC_CLK>, + <&gcc GCC_GFX3D_OXILI_TIMER_CLK>, + <&gcc GCC_GFX3D_OXILI_AON_CLK>; + + power-domains = <&rpmpd MSM8976_VDDCX>; + + iommus = <&gpu_iommu 0>; + + status = "disabled"; + + operating-points-v2 = <&gpu_opp_table>; + + gpu_opp_table: opp-table { + compatible ="operating-points-v2"; + + opp-200000000 { + opp-hz = /bits/ 64 <200000000>; + opp-level = <RPM_SMD_LEVEL_LOW_SVS>; + opp-supported-hw = <0xff>; + }; + + opp-300000000 { + opp-hz = /bits/ 64 <300000000>; + opp-level = <RPM_SMD_LEVEL_SVS>; + opp-supported-hw = <0xff>; + }; + + opp-400000000 { + opp-hz = /bits/ 64 <400000000>; + opp-level = <RPM_SMD_LEVEL_NOM>; + opp-supported-hw = <0xff>; + }; + + opp-480000000 { + opp-hz = /bits/ 64 <480000000>; + opp-level = <RPM_SMD_LEVEL_NOM_PLUS>; + opp-supported-hw = <0xff>; + }; + + opp-540000000 { + opp-hz = /bits/ 64 <540000000>; + opp-level = <RPM_SMD_LEVEL_TURBO>; + opp-supported-hw = <0xff>; + }; + }; + }; + apps_iommu: iommu@1e20000 { compatible = "qcom,msm8976-iommu", "qcom,msm-iommu-v2"; ranges = <0 0x01e20000 0x20000>;
Signature · 1 line
2.43.0
Re: [PATCH 6/8] arm64: dts: qcom: msm8976: Add Adreno GPU
Quoted 27 lines · Adam Skladowski
Add Adreno GPU node.
Signed-off-by Adam Skladowski <[email protected]>--- arch/arm64/boot/dts/qcom/msm8976.dtsi | 66 +++++++++++++++++++++++++++ 1 file changed, 66 insertions(+)arch/arm64/boot/dts/qcom/msm8976.dtsi +12
-0@@ -1068,6 +1068,72 @@ mdss_dsi1_phy: phy@1a96a00 { }; }; + adreno_gpu: gpu@1c00000 { + compatible = "qcom,adreno-510.0", "qcom,adreno"; + + reg = <0x01c00000 0x40000>; + reg-names = "kgsl_3d0_reg_memory"; + + interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "kgsl_3d0_irq"; + + clock-names = "core", + "iface", + "mem",
arch/arm64/boot/dts/qcom/msm8976.dtsi mdss_dsi1_phy: phy@1a96a00 { · line 1092
Quoted 10 lines
arch/arm64/boot/dts/qcom/msm8976.dtsi +10
-0+ "mem_iface", + "rbbmtimer", + "alwayson"; + + clocks = <&gcc GCC_GFX3D_OXILI_CLK>, + <&gcc GCC_GFX3D_OXILI_AHB_CLK>, + <&gcc GCC_GFX3D_OXILI_GMEM_CLK>, + <&gcc GCC_GFX3D_BIMC_CLK>, + <&gcc GCC_GFX3D_OXILI_TIMER_CLK>, + <&gcc GCC_GFX3D_OXILI_AON_CLK>;
The entries are misaligned
property
property-names
(and without a separating newline, please)
Quoted 4 lines
arch/arm64/boot/dts/qcom/msm8976.dtsi +4
-0+ + power-domains = <&rpmpd MSM8976_VDDCX>; + + iommus = <&gpu_iommu 0>;
arch/arm64/boot/dts/qcom/msm8976.dtsi mdss_dsi1_phy: phy@1a96a00 { · line 1106
Quoted 10 lines
arch/arm64/boot/dts/qcom/msm8976.dtsi +10
-0+ + status = "disabled"; + + operating-points-v2 = <&gpu_opp_table>; + + gpu_opp_table: opp-table { + compatible ="operating-points-v2"; + + opp-200000000 { + opp-hz = /bits/ 64 <200000000>;
A random downstream I took has:
19.2 MHz
266.6 MHz
300.0 MHz
432.0 MHz
480.0 MHz
550.0 MHz
600.0 MHz
arch/arm64/boot/dts/qcom/msm8976.dtsi mdss_dsi1_phy: phy@1a96a00 { · line 1107
Quoted 1 line
arch/arm64/boot/dts/qcom/msm8976.dtsi +1
-0+ opp-level = <RPM_SMD_LEVEL_LOW_SVS>;
you want required-opps here instead
Konrad
PATCH 7/8 arm64: dts: qcom: msm8976: Declare and wire SDC pins
In reply to Adam SkladowskiDeclare pinctrls for SDC pins and wire them to consumers.
--- arch/arm64/boot/dts/qcom/msm8976.dtsi | 100 ++++++++++++++++++++++++++ 1 file changed, 100 insertions(+)
arch/arm64/boot/dts/qcom/msm8976.dtsi +100 -0
@@ -771,6 +771,96 @@ blsp2_i2c4_sleep: blsp2-i2c4-sleep-state { drive-strength = <2>; bias-disable; }; + + sdc1_default: sdc1-default-state { + clk-pins { + pins = "sdc1_clk"; + drive-strength = <16>; + bias-disable; + }; + + cmd-pins { + pins = "sdc1_cmd"; + drive-strength = <10>; + bias-pull-up; + }; + + data-pins { + pins = "sdc1_data"; + drive-strength = <10>; + bias-pull-up; + }; + + rclk-pins { + pins = "sdc1_rclk"; + bias-pull-down; + }; + }; + + sdc1_sleep: sdc1-sleep-state { + clk-pins { + pins = "sdc1_clk"; + drive-strength = <2>; + bias-disable; + }; + + cmd-pins { + pins = "sdc1_cmd"; + drive-strength = <2>; + bias-pull-up; + }; + + data-pins { + pins = "sdc1_data"; + drive-strength = <2>; + bias-pull-up; + }; + + rclk-pins { + pins = "sdc1_rclk"; + bias-pull-down; + }; + }; + + sdc2_default: sdc2-default-state { + clk-pins { + pins = "sdc2_clk"; + drive-strength = <16>; + bias-disable; + }; + + cmd-pins { + pins = "sdc2_cmd"; + drive-strength = <10>; + bias-pull-up; + }; + + data-pins { + pins = "sdc2_data"; + drive-strength = <10>; + bias-pull-up; + }; + }; + + sdc2_sleep: sdc2-sleep-state { + clk-pins { + pins = "sdc2_clk"; + drive-strength = <2>; + bias-disable; + }; + + cmd-pins { + pins = "sdc2_cmd"; + drive-strength = <2>; + bias-pull-up; + }; + + data-pins { + pins = "sdc2_data"; + drive-strength = <2>; + bias-pull-up; + }; + }; }; gcc: clock-controller@1800000 {
@@ -1246,6 +1336,11 @@ sdhc_1: mmc@7824900 { <&gcc GCC_SDCC1_APPS_CLK>, <&rpmcc RPM_SMD_XO_CLK_SRC>; clock-names = "iface", "core", "xo"; + + pinctrl-0 = <&sdc1_default>; + pinctrl-1 = <&sdc1_sleep>; + pinctrl-names = "default", "sleep"; + status = "disabled"; };
@@ -1262,6 +1357,11 @@ sdhc_2: mmc@7864900 { <&gcc GCC_SDCC2_APPS_CLK>, <&rpmcc RPM_SMD_XO_CLK_SRC>; clock-names = "iface", "core", "xo"; + + pinctrl-0 = <&sdc2_default>; + pinctrl-1 = <&sdc2_sleep>; + pinctrl-names = "default", "sleep"; + status = "disabled"; };
Signature · 1 line
2.43.0
Marijn Suijten
reviewerRe: [PATCH 7/8] arm64: dts: qcom: msm8976: Declare and wire SDC pins
Quoted 3 lines · Adam Skladowski
Declare pinctrls for SDC pins and wire them to consumers.
Signed-off-by Adam Skladowski <[email protected]>
Where'd the original sign-offs go?
https://lore.kernel.org/linux-arm-msm/[email protected]/
Thanks taking taking care of this SoC though. My SM8976 Suzu device finally emitted the magic smoke after rebasing on the latest MSM8976 patches, and will need board repairs or a replacement before patches can be tested again :(
- Marijn
Quoted 132 lines
--- arch/arm64/boot/dts/qcom/msm8976.dtsi | 100 ++++++++++++++++++++++++++ 1 file changed, 100 insertions(+)arch/arm64/boot/dts/qcom/msm8976.dtsi +100
-0@@ -771,6 +771,96 @@ blsp2_i2c4_sleep: blsp2-i2c4-sleep-state { drive-strength = <2>; bias-disable; }; + + sdc1_default: sdc1-default-state { + clk-pins { + pins = "sdc1_clk"; + drive-strength = <16>; + bias-disable; + }; + + cmd-pins { + pins = "sdc1_cmd"; + drive-strength = <10>; + bias-pull-up; + }; + + data-pins { + pins = "sdc1_data"; + drive-strength = <10>; + bias-pull-up; + }; + + rclk-pins { + pins = "sdc1_rclk"; + bias-pull-down; + }; + }; + + sdc1_sleep: sdc1-sleep-state { + clk-pins { + pins = "sdc1_clk"; + drive-strength = <2>; + bias-disable; + }; + + cmd-pins { + pins = "sdc1_cmd"; + drive-strength = <2>; + bias-pull-up; + }; + + data-pins { + pins = "sdc1_data"; + drive-strength = <2>; + bias-pull-up; + }; + + rclk-pins { + pins = "sdc1_rclk"; + bias-pull-down; + }; + }; + + sdc2_default: sdc2-default-state { + clk-pins { + pins = "sdc2_clk"; + drive-strength = <16>; + bias-disable; + }; + + cmd-pins { + pins = "sdc2_cmd"; + drive-strength = <10>; + bias-pull-up; + }; + + data-pins { + pins = "sdc2_data"; + drive-strength = <10>; + bias-pull-up; + }; + }; + + sdc2_sleep: sdc2-sleep-state { + clk-pins { + pins = "sdc2_clk"; + drive-strength = <2>; + bias-disable; + }; + + cmd-pins { + pins = "sdc2_cmd"; + drive-strength = <2>; + bias-pull-up; + }; + + data-pins { + pins = "sdc2_data"; + drive-strength = <2>; + bias-pull-up; + }; + }; }; gcc: clock-controller@1800000 {@@ -1246,6 +1336,11 @@ sdhc_1: mmc@7824900 { <&gcc GCC_SDCC1_APPS_CLK>, <&rpmcc RPM_SMD_XO_CLK_SRC>; clock-names = "iface", "core", "xo"; + + pinctrl-0 = <&sdc1_default>; + pinctrl-1 = <&sdc1_sleep>; + pinctrl-names = "default", "sleep"; + status = "disabled"; };@@ -1262,6 +1357,11 @@ sdhc_2: mmc@7864900 { <&gcc GCC_SDCC2_APPS_CLK>, <&rpmcc RPM_SMD_XO_CLK_SRC>; clock-names = "iface", "core", "xo"; + + pinctrl-0 = <&sdc2_default>; + pinctrl-1 = <&sdc2_sleep>; + pinctrl-names = "default", "sleep"; + status = "disabled"; };Signature · 1 line
2.43.0
PATCH 8/8 arm64: dts: qcom: msm8976: Add WCNSS node
In reply to Adam SkladowskiAdd node describing wireless connectivity subsystem.
--- arch/arm64/boot/dts/qcom/msm8976.dtsi | 96 +++++++++++++++++++++++++++ 1 file changed, 96 insertions(+)
arch/arm64/boot/dts/qcom/msm8976.dtsi +96 -0
@@ -861,6 +861,36 @@ data-pins { bias-pull-up; }; }; + + wcss_wlan_default: wcss-wlan-default-state { + wcss_wlan2-pins { + pins = "gpio40"; + function = "wcss_wlan2"; + drive-strength = <6>; + bias-pull-up; + }; + + wcss_wlan1-pins { + pins = "gpio41"; + function = "wcss_wlan1"; + drive-strength = <6>; + bias-pull-up; + }; + + wcss_wlan0-pins { + pins = "gpio42"; + function = "wcss_wlan0"; + drive-strength = <6>; + bias-pull-up; + }; + + wcss_wlan-pins { + pins = "gpio43", "gpio44"; + function = "wcss_wlan"; + drive-strength = <6>; + bias-pull-up; + }; + }; }; gcc: clock-controller@1800000 {
@@ -1540,6 +1570,72 @@ blsp2_i2c4: i2c@7af8000 { status = "disabled"; }; + wcnss: remoteproc@a204000 { + compatible = "qcom,pronto-v3-pil", "qcom,pronto"; + reg = <0xa204000 0x2000>, <0xa202000 0x1000>, <0xa21b000 0x3000>; + reg-names = "ccu", "dxe", "pmu"; + + memory-region = <&wcnss_fw_mem>; + + interrupts-extended = <&intc GIC_SPI 149 IRQ_TYPE_EDGE_RISING>, + <&wcnss_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&wcnss_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, + <&wcnss_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, + <&wcnss_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", "handover", "stop-ack"; + + power-domains = <&rpmpd MSM8976_VDDCX>, + <&rpmpd MSM8976_VDDMX>; + power-domain-names = "cx", "mx"; + + qcom,smem-states = <&wcnss_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + pinctrl-names = "default"; + pinctrl-0 = <&wcss_wlan_default>; + + status = "disabled"; + + wcnss_iris: iris { + /* Separate chip, compatible is board-specific */ + clocks = <&rpmcc RPM_SMD_RF_CLK2>; + clock-names = "xo"; + }; + + smd-edge { + interrupts = <GIC_SPI 142 IRQ_TYPE_EDGE_RISING>; + + qcom,ipc = <&apcs 8 17>; + qcom,smd-edge = <6>; + qcom,remote-pid = <4>; + + label = "pronto"; + + wcnss_ctrl: wcnss { + compatible = "qcom,wcnss"; + qcom,smd-channels = "WCNSS_CTRL"; + + qcom,mmio = <&wcnss>; + + wcnss_bt: bluetooth { + compatible = "qcom,wcnss-bt"; + }; + + wcnss_wifi: wifi { + compatible = "qcom,wcnss-wlan"; + + interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "tx", "rx"; + + qcom,smem-states = <&apps_smsm 10>, <&apps_smsm 9>; + qcom,smem-state-names = "tx-enable", + "tx-rings-empty"; + }; + }; + }; + }; + intc: interrupt-controller@b000000 { compatible = "qcom,msm-qgic2"; reg = <0x0b000000 0x1000>, <0x0b002000 0x1000>;
Signature · 1 line
2.43.0
Re: [PATCH 8/8] arm64: dts: qcom: msm8976: Add WCNSS node
Quoted 12 lines · Adam Skladowski
Add node describing wireless connectivity subsystem.
Signed-off-by Adam Skladowski <[email protected]>--- arch/arm64/boot/dts/qcom/msm8976.dtsi | 96 +++++++++++++++++++++++++++ 1 file changed, 96 insertions(+)arch/arm64/boot/dts/qcom/msm8976.dtsi +0
-0
arch/arm64/boot/dts/qcom/msm8976.dtsi data-pins { · line 866
Quoted 6 lines
arch/arm64/boot/dts/qcom/msm8976.dtsi +3
-0@@ -861,6 +861,36 @@ data-pins { bias-pull-up; }; }; + + wcss_wlan_default: wcss-wlan-default-state { + wcss_wlan2-pins {
No underscores in node names
Quoted 31 lines
arch/arm64/boot/dts/qcom/msm8976.dtsi +27
-0+ pins = "gpio40"; + function = "wcss_wlan2"; + drive-strength = <6>; + bias-pull-up; + }; + + wcss_wlan1-pins { + pins = "gpio41"; + function = "wcss_wlan1"; + drive-strength = <6>; + bias-pull-up; + }; + + wcss_wlan0-pins { + pins = "gpio42"; + function = "wcss_wlan0"; + drive-strength = <6>; + bias-pull-up; + }; + + wcss_wlan-pins { + pins = "gpio43", "gpio44"; + function = "wcss_wlan"; + drive-strength = <6>; + bias-pull-up; + }; + }; }; gcc: clock-controller@1800000 {
arch/arm64/boot/dts/qcom/msm8976.dtsi blsp2_i2c4: i2c@7af8000 { · line 1576
Quoted 7 lines
arch/arm64/boot/dts/qcom/msm8976.dtsi +4
-0@@ -1540,6 +1570,72 @@ blsp2_i2c4: i2c@7af8000 { status = "disabled"; }; + wcnss: remoteproc@a204000 { + compatible = "qcom,pronto-v3-pil", "qcom,pronto"; + reg = <0xa204000 0x2000>, <0xa202000 0x1000>, <0xa21b000 0x3000>; + reg-names = "ccu", "dxe", "pmu";
One a line, please
arch/arm64/boot/dts/qcom/msm8976.dtsi blsp2_i2c4: i2c@7af8000 { · line 1585
Quoted 9 lines
arch/arm64/boot/dts/qcom/msm8976.dtsi +9
-0+ + memory-region = <&wcnss_fw_mem>; + + interrupts-extended = <&intc GIC_SPI 149 IRQ_TYPE_EDGE_RISING>, + <&wcnss_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&wcnss_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, + <&wcnss_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, + <&wcnss_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", "handover", "stop-ack";
And here too
arch/arm64/boot/dts/qcom/msm8976.dtsi blsp2_i2c4: i2c@7af8000 { · line 1595
Quoted 10 lines
arch/arm64/boot/dts/qcom/msm8976.dtsi +10
-0+ + power-domains = <&rpmpd MSM8976_VDDCX>, + <&rpmpd MSM8976_VDDMX>; + power-domain-names = "cx", "mx"; + + qcom,smem-states = <&wcnss_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + pinctrl-names = "default"; + pinctrl-0 = <&wcss_wlan_default>;
rev order
Konrad
Dmitry Baryshkov
AppliedQuoted 13 lines · Adam Skladowski
This patch series provide support for display subsystem, gpu and also adds wireless connectivity subsystem support.
Adam Skladowski (8):
arm64: dts: qcom: msm8976: Add IOMMU nodes
dt-bindings: dsi-controller-main: Document missing msm8976 compatible
dt-bindings: msm: qcom,mdss: Include ommited fam-b compatible
arm64: dts: qcom: msm8976: Add MDSS nodes
dt-bindings: drm/msm/gpu: Document AON clock for A506/A510
arm64: dts: qcom: msm8976: Add Adreno GPU
arm64: dts: qcom: msm8976: Declare and wire SDC pins
arm64: dts: qcom: msm8976: Add WCNSS node
Quoted 1 line
[...]
Applied, thanks!
[2/8] dt-bindings: dsi-controller-main: Document missing msm8976 compatible
https://gitlab.freedesktop.org/lumag/msm/-/commit/db36595c6889 [3/8] dt-bindings: msm: qcom,mdss: Include ommited fam-b compatible https://gitlab.freedesktop.org/lumag/msm/-/commit/3b63880de42b
Best regards,
Signature · 1 line
Dmitry Baryshkov <[email protected]>
Re: (subset) [PATCH 0/8] MSM8976 MDSS/GPU/WCNSS support
In reply to Adam SkladowskiQuoted 13 lines · Adam Skladowski
This patch series provide support for display subsystem, gpu and also adds wireless connectivity subsystem support.
Adam Skladowski (8):
arm64: dts: qcom: msm8976: Add IOMMU nodes
dt-bindings: dsi-controller-main: Document missing msm8976 compatible
dt-bindings: msm: qcom,mdss: Include ommited fam-b compatible
arm64: dts: qcom: msm8976: Add MDSS nodes
dt-bindings: drm/msm/gpu: Document AON clock for A506/A510
arm64: dts: qcom: msm8976: Add Adreno GPU
arm64: dts: qcom: msm8976: Declare and wire SDC pins
arm64: dts: qcom: msm8976: Add WCNSS node
Quoted 1 line
[...]
Applied, thanks!
[1/8] arm64: dts: qcom: msm8976: Add IOMMU nodes
commit: 418c2ffd7df9bfc25c21172bd881b78d7569fb4d
Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>