SM8350 Display/GPU clock enablement
Subsystems (5)
v8 cover SM8350 Display/GPU clock enablement
Changes since v2
- Dropped "clk: Introduce CLK_ASSUME_ENABLED_WHEN_UNUSED"
- Dropped "clk: qcom: sm8250-dispcc: Flag shared RCGs as assumed enable"
- Dropped "clk: qcom: rcg2: Cache rate changes for parked RCGs"
Changes since v3:
- Dropped RBs & SoBs for bigger changes
- Changed author to me for patches with big changes
Changes since v5:
- Reverted dispcc-sm8350 split from dispcc-sm8250 and related .index changes - Bjorn
- Re-added Tags that were thrown out due to the above revert
Changes since v7
- Added Vinods RBs
- Re-ordered patches to make bindings come before
- Removed rpmdpd patch from series
Jonathan Marek (2):
dt-bindings: clock: Add Qcom SM8350 DISPCC bindings
clk: qcom: add support for SM8350 DISPCC
Robert Foss (3):
dt-bindings: clock: Add Qcom SM8350 GPUCC bindings
clk: qcom: add support for SM8350 GPUCC
arm64: dts: qcom: sm8350: Add DISPCC node
.../bindings/clock/qcom,dispcc-sm8x50.yaml | 6 +- .../bindings/clock/qcom,gpucc-sm8350.yaml | 72 ++ arch/arm64/boot/dts/qcom/sm8350.dtsi | 26 + drivers/clk/qcom/Kconfig | 14 +- drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/dispcc-sm8250.c | 63 +- drivers/clk/qcom/gpucc-sm8350.c | 637 ++++++++++++++++++ .../dt-bindings/clock/qcom,dispcc-sm8350.h | 1 + include/dt-bindings/clock/qcom,gpucc-sm8350.h | 52 ++ 9 files changed, 866 insertions(+), 6 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/qcom,gpucc-sm8350.yaml create mode 100644 drivers/clk/qcom/gpucc-sm8350.c create mode 120000 include/dt-bindings/clock/qcom,dispcc-sm8350.h create mode 100644 include/dt-bindings/clock/qcom,gpucc-sm8350.h
Signature · 1 line
2.34.1
PATCH v8 1/5 dt-bindings: clock: Add Qcom SM8350 GPUCC bindings
Add device tree bindings for graphics clock controller for Qualcomm Technology Inc's SM8350 SoCs.
---
Changes since v3
- Separate from qcom,gpucc
- Remove clock-names
- Make example sm8350 based
- Changed author to me due to size of changes
Changes since v5
- Add Ack - Rob
Changes since v5
- Reverted split from dispcc-sm8250
- Re-added tags from v3
.../bindings/clock/qcom,gpucc-sm8350.yaml | 72 +++++++++++++++++++ include/dt-bindings/clock/qcom,gpucc-sm8350.h | 52 ++++++++++++++ 2 files changed, 124 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/qcom,gpucc-sm8350.yaml create mode 100644 include/dt-bindings/clock/qcom,gpucc-sm8350.h
Documentation/devicetree/bindings/clock/qcom,gpucc-sm8350.yaml new file +72 -0
@@ -0,0 +1,72 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/qcom,gpucc-sm8350.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Graphics Clock & Reset Controller Binding + +maintainers: + - Robert Foss <[email protected]> + +description: | + Qualcomm graphics clock control module which supports the clocks, resets and + power domains on Qualcomm SoCs. + + See also: + dt-bindings/clock/qcom,gpucc-sm8350.h + +properties: + compatible: + enum: + - qcom,sm8350-gpucc + + clocks: + items: + - description: Board XO source + - description: GPLL0 main branch source + - description: GPLL0 div branch source + + '#clock-cells': + const: 1 + + '#reset-cells': + const: 1 + + '#power-domain-cells': + const: 1 + + reg: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - '#clock-cells' + - '#reset-cells' + - '#power-domain-cells' + +additionalProperties: false + +examples: + - | + #include <dt-bindings/clock/qcom,gcc-sm8350.h> + #include <dt-bindings/clock/qcom,rpmh.h> + + soc { + #address-cells = <2>; + #size-cells = <2>; + + clock-controller@3d90000 { + compatible = "qcom,sm8350-gpucc"; + reg = <0 0x03d90000 0 0x9000>; + clocks = <&rpmhcc RPMH_CXO_CLK>, + <&gcc GCC_GPU_GPLL0_CLK_SRC>, + <&gcc GCC_GPU_GPLL0_DIV_CLK_SRC>; + #clock-cells = <1>; + #reset-cells = <1>; + #power-domain-cells = <1>; + }; + }; +...
include/dt-bindings/clock/qcom,gpucc-sm8350.h new file +52 -0
52 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH v8 2/5 clk: qcom: add support for SM8350 GPUCC
In reply to Robert FossThe GPUCC manages the clocks for the Adreno GPU found on the sm8350 SoCs.
---
Changes since v1
- Remove .name assignments for clk_parent_data - Dmitry
- Use ARRAY_SIZE where possible - Dmitry
- Remove commented out code - Dmitry
- Set CLAMP_IO flag for gpu_gx_gdsc - Dmitry
- Assign .parent_hws instead of .hw - Dmitry
Changes since v2
- Switch license to dual BSD/GPL - Bjorn
- Add Jonathans SoB - Jonathan
- Add Linaro to copyright statement - Bjorn
- Make .hw.init assignment const - Bjorn
- Extract & deduplicate bi_tcxo parent_data - Bjorn
- Removed further .name assignment - Bjorn
- Move of_device_id declaration - Bjorn
Changes since v3
- Change license to BSD/GPL - Rob/Bjorn
- Switch from .fw_name to .index
Changes since v4
- Change year of copyright statement
- Change to dual license for header file - Rob
Changes since v5
- Change hex to lower case - Konrad
Changes since v6
- Change hex to lower case - Konrad
- Change license go GPL 2.0 only - Konrad
drivers/clk/qcom/Kconfig | 8 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/gpucc-sm8350.c | 637 ++++++++++++++++++++++++++++++++ 3 files changed, 646 insertions(+) create mode 100644 drivers/clk/qcom/gpucc-sm8350.c
drivers/clk/qcom/Kconfig +8 -0
@@ -713,6 +713,14 @@ config SM_GPUCC_8250 Say Y if you want to support graphics controller devices and functionality such as 3D graphics. +config SM_GPUCC_8350 + tristate "SM8350 Graphics Clock Controller" + select SM_GCC_8350 + help + Support for the graphics clock controller on SM8350 devices. + Say Y if you want to support graphics controller devices and + functionality such as 3D graphics. + config SM_VIDEOCC_8150 tristate "SM8150 Video Clock Controller" select SM_GCC_8150
drivers/clk/qcom/Makefile +1 -0
@@ -102,6 +102,7 @@ obj-$(CONFIG_SM_GCC_8450) += gcc-sm8450.o obj-$(CONFIG_SM_GPUCC_6350) += gpucc-sm6350.o obj-$(CONFIG_SM_GPUCC_8150) += gpucc-sm8150.o obj-$(CONFIG_SM_GPUCC_8250) += gpucc-sm8250.o +obj-$(CONFIG_SM_GPUCC_8350) += gpucc-sm8350.o obj-$(CONFIG_SM_VIDEOCC_8150) += videocc-sm8150.o obj-$(CONFIG_SM_VIDEOCC_8250) += videocc-sm8250.o obj-$(CONFIG_SPMI_PMIC_CLKDIV) += clk-spmi-pmic-div.o
drivers/clk/qcom/gpucc-sm8350.c new file +637 -0
637 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH v8 3/5 dt-bindings: clock: Add Qcom SM8350 DISPCC bindings
In reply to Robert FossFrom: Jonathan Marek <[email protected]>
Add sm8350 DISPCC bindings, which are simply a symlink to the sm8250 bindings. Update the documentation with the new compatible.
---
Changes since v2
- Add SoB - Bjorn
Changes since v3
- Separate from qcom,dispcc-sm8x50
- Remove clock-names
- Make example sm8350 based
- Changed author to me due to size of changes
Changes since v4
- Add RB - Rob
Changes since v5
- Reverted split from dispcc-sm8250
- Re-added tags from v3
.../devicetree/bindings/clock/qcom,dispcc-sm8x50.yaml | 6 ++++-- include/dt-bindings/clock/qcom,dispcc-sm8350.h | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) create mode 120000 include/dt-bindings/clock/qcom,dispcc-sm8350.h
Documentation/devicetree/bindings/clock/qcom,dispcc-sm8x50.yaml +4 -2
@@ -4,18 +4,19 @@ $id: http://devicetree.org/schemas/clock/qcom,dispcc-sm8x50.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: Qualcomm Display Clock & Reset Controller Binding for SM8150/SM8250 +title: Qualcomm Display Clock & Reset Controller Binding for SM8150/SM8250/SM8350 maintainers: - Jonathan Marek <[email protected]> description: | Qualcomm display clock control module which supports the clocks, resets and - power domains on SM8150 and SM8250. + power domains on SM8150/SM8250/SM8350. See also: dt-bindings/clock/qcom,dispcc-sm8150.h dt-bindings/clock/qcom,dispcc-sm8250.h + dt-bindings/clock/qcom,dispcc-sm8350.h properties: compatible:
@@ -23,6 +24,7 @@ properties: - qcom,sc8180x-dispcc - qcom,sm8150-dispcc - qcom,sm8250-dispcc + - qcom,sm8350-dispcc clocks: items:
include/dt-bindings/clock/qcom,dispcc-sm8350.h new file +1 -0
@@ -0,0 +1 @@ +qcom,dispcc-sm8250.h
Signature · 1 line
2.34.1
PATCH v8 4/5 clk: qcom: add support for SM8350 DISPCC
In reply to Robert FossFrom: Jonathan Marek <[email protected]>
Add support to the SM8350 display clock controller by extending the SM8250 display clock controller, which is almost identical but has some minor differences.
---
Changes since v1
- Remove comment - Dmitry
Changes since v2
- Add my SoB - Bjorn
- Remove CLK_ASSUME_ENABLED_WHEN_UNUSED flag
Changes since v3
- Add kconfig dependency on SM_GCC_8350 - Konrad
- Change hex to lowercase - Konrad
- Split from dispcc-sm8250.c implementation
- Switch from .fw_name to .index
Changes since v4
- Hex to lowercase - Konrad
- Remove bad match table entries - Konrad
Changes since v5
- Reverted split from dispcc-sm8250
- Re-added tags from v3
Changes since v6
- Added kconfig dependency - Konrad
- Don't remove comment - Konrad
drivers/clk/qcom/Kconfig | 6 +-- drivers/clk/qcom/dispcc-sm8250.c | 63 +++++++++++++++++++++++++++++++- 2 files changed, 65 insertions(+), 4 deletions(-)
drivers/clk/qcom/Kconfig +3 -3
@@ -619,11 +619,11 @@ config SM_DISPCC_6125 splash screen config SM_DISPCC_8250 - tristate "SM8150 and SM8250 Display Clock Controller" - depends on SM_GCC_8150 || SM_GCC_8250 + tristate "SM8150/SM8250/SM8350 Display Clock Controller" + depends on SM_GCC_8150 || SM_GCC_8250 || SM_GCC_8350 help Support for the display clock controller on Qualcomm Technologies, Inc - SM8150 and SM8250 devices. + SM8150/SM8250/SM8350 devices. Say Y if you want to support display devices and functionality such as splash screen.
drivers/clk/qcom/dispcc-sm8250.c +62 -1
87 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH v8 5/5 arm64: dts: qcom: sm8350: Add DISPCC node
In reply to Robert FossAdd the dispcc clock-controller DT node for sm8350.
---
Changes since v2
- Remove interconnect include - Bjorn
Changes since v3
- Switch from .fw_name to .index
Changes since v5
- Revert .fw_name to .index change
Changes since v6
- Add r-b - Konrad
arch/arm64/boot/dts/qcom/sm8350.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+)
arch/arm64/boot/dts/qcom/sm8350.dtsi +26 -0
@@ -4,6 +4,7 @@ */ #include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/clock/qcom,dispcc-sm8350.h> #include <dt-bindings/clock/qcom,gcc-sm8350.h> #include <dt-bindings/clock/qcom,rpmh.h> #include <dt-bindings/dma/qcom-gpi.h>
@@ -2531,6 +2532,31 @@ usb_2_dwc3: usb@a800000 { }; }; + dispcc: clock-controller@af00000 { + compatible = "qcom,sm8350-dispcc"; + reg = <0 0x0af00000 0 0x10000>; + clocks = <&rpmhcc RPMH_CXO_CLK>, + <0>, + <0>, + <0>, + <0>, + <0>, + <0>; + clock-names = "bi_tcxo", + "dsi0_phy_pll_out_byteclk", + "dsi0_phy_pll_out_dsiclk", + "dsi1_phy_pll_out_byteclk", + "dsi1_phy_pll_out_dsiclk", + "dp_phy_pll_link_clk", + "dp_phy_pll_vco_div_clk"; + #clock-cells = <1>; + #reset-cells = <1>; + #power-domain-cells = <1>; + + power-domains = <&rpmhpd SM8350_MMCX>; + power-domain-names = "mmcx"; + }; + adsp: remoteproc@17300000 { compatible = "qcom,sm8350-adsp-pas"; reg = <0 0x17300000 0 0x100>;
Signature · 1 line
2.34.1
Bjorn Andersson
AppliedRe: (subset) [PATCH v8 5/5] arm64: dts: qcom: sm8350: Add DISPCC node
Quoted 3 lines · Robert Foss
Add the dispcc clock-controller DT node for sm8350.
Applied, thanks!
[5/5] arm64: dts: qcom: sm8350: Add DISPCC node
commit: 9fd4887cdec6395a4ff447af8988bce61b707fb0
Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>
Bjorn Andersson
AppliedRe: (subset) [PATCH v8 0/5] SM8350 Display/GPU clock enablement
In reply to Robert FossQuoted 10 lines · Robert Foss
Changes since v2
- Dropped "clk: IntroduceCLK_ASSUME_ENABLED_WHEN_UNUSED"
- Dropped "clk: qcom: sm8250-dispcc: Flag shared RCGs as assumed enable"
- Dropped "clk: qcom: rcg2: Cache rate changes for parked RCGs"Changes since v3:
- Dropped RBs & SoBs for bigger changes
- Changed author to me for patches with big changes[...]
Applied, thanks!
[1/5] dt-bindings: clock: Add Qcom SM8350 GPUCC bindings
commit: e67a004482c092e326b32f24d4542c85fb8f79bf
[3/5] dt-bindings: clock: Add Qcom SM8350 DISPCC bindings
commit: 909e5be2ca882a0384018370f065ef1c611e6ed9Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>