mbox series

[v3,0/4] Add GCC and RPMh clock support for SDX55

Message ID 20201119072714.14460-1-manivannan.sadhasivam@linaro.org
Headers show
Series Add GCC and RPMh clock support for SDX55 | expand

Message

Manivannan Sadhasivam Nov. 19, 2020, 7:27 a.m. UTC
Hello,

This series adds Global Clock Controller (GCC) and RPMh clock support
for SDX55 SoC from Qualcomm with relevant DT bindings.

This series has been tested on SDX55 MTP board. The dts patches for this
SoC/board will be posted later.

Thanks,
Mani

Changes in v3:

* Documented core_bi_pll_test_se clock in dt binding
* Collected reviews

Changes in v2:

* Modified the GCC Kconfig symbol from GCC_SDX55 to SDX_GCC_55
* Added S-o-b tag to bindings patch
* Incorporated review comments from Stephen on the gcc driver
* Added review tag from Bjorn on RPMh patch

Manivannan Sadhasivam (1):
  clk: qcom: Add support for SDX55 RPMh clocks

Naveen Yadav (1):
  clk: qcom: Add SDX55 GCC support

Vinod Koul (2):
  dt-bindings: clock: Add SDX55 GCC clock bindings
  dt-bindings: clock: Introduce RPMHCC bindings for SDX55

 .../bindings/clock/qcom,gcc-sdx55.yaml        |   73 +
 .../bindings/clock/qcom,rpmhcc.yaml           |    1 +
 drivers/clk/qcom/Kconfig                      |    7 +
 drivers/clk/qcom/Makefile                     |    1 +
 drivers/clk/qcom/clk-rpmh.c                   |   20 +
 drivers/clk/qcom/gcc-sdx55.c                  | 1626 +++++++++++++++++
 include/dt-bindings/clock/qcom,gcc-sdx55.h    |  112 ++
 include/dt-bindings/clock/qcom,rpmh.h         |    1 +
 8 files changed, 1841 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/clock/qcom,gcc-sdx55.yaml
 create mode 100644 drivers/clk/qcom/gcc-sdx55.c
 create mode 100644 include/dt-bindings/clock/qcom,gcc-sdx55.h

-- 
2.17.1

Comments

Stephen Boyd Nov. 25, 2020, 2:14 a.m. UTC | #1
Quoting Manivannan Sadhasivam (2020-11-18 23:27:11)
> diff --git a/Documentation/devicetree/bindings/clock/qcom,gcc-sdx55.yaml b/Documentation/devicetree/bindings/clock/qcom,gcc-sdx55.yaml

> new file mode 100644

> index 000000000000..9d8981817ae3

> --- /dev/null

> +++ b/Documentation/devicetree/bindings/clock/qcom,gcc-sdx55.yaml

> @@ -0,0 +1,73 @@

[...]
> +

> +properties:

> +  compatible:

> +    const: qcom,gcc-sdx55

> +

> +  clocks:

> +    items:

[...]
> +      - description: PLL test clock source

> +

> +  clock-names:

> +    items:

[...]
> +      - const: core_bi_pll_test_se


Is it optional? As far as I know this clk has never been implemented
because it's a hardware validation thing and not used otherwise.
Manivannan Sadhasivam Nov. 25, 2020, 3:49 a.m. UTC | #2
On 25 November 2020 7:44:10 AM IST, Stephen Boyd <sboyd@kernel.org> wrote:
>Quoting Manivannan Sadhasivam (2020-11-18 23:27:11)

>> diff --git

>a/Documentation/devicetree/bindings/clock/qcom,gcc-sdx55.yaml

>b/Documentation/devicetree/bindings/clock/qcom,gcc-sdx55.yaml

>> new file mode 100644

>> index 000000000000..9d8981817ae3

>> --- /dev/null

>> +++ b/Documentation/devicetree/bindings/clock/qcom,gcc-sdx55.yaml

>> @@ -0,0 +1,73 @@

>[...]

>> +

>> +properties:

>> +  compatible:

>> +    const: qcom,gcc-sdx55

>> +

>> +  clocks:

>> +    items:

>[...]

>> +      - description: PLL test clock source

>> +

>> +  clock-names:

>> +    items:

>[...]

>> +      - const: core_bi_pll_test_se

>

>Is it optional? As far as I know this clk has never been implemented

>because it's a hardware validation thing and not used otherwise.


It is implemented in drivers but not used as you said. But since it is the parent clk of PLLs I'm not sure we can make it optional. 

Thanks, 
Mani

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.
Stephen Boyd Nov. 27, 2020, 8:10 p.m. UTC | #3
Quoting Manivannan Sadhasivam (2020-11-24 19:49:24)
> 

> 

> On 25 November 2020 7:44:10 AM IST, Stephen Boyd <sboyd@kernel.org> wrote:

> >Quoting Manivannan Sadhasivam (2020-11-18 23:27:11)

> >> diff --git

> >a/Documentation/devicetree/bindings/clock/qcom,gcc-sdx55.yaml

> >b/Documentation/devicetree/bindings/clock/qcom,gcc-sdx55.yaml

> >> new file mode 100644

> >> index 000000000000..9d8981817ae3

> >> --- /dev/null

> >> +++ b/Documentation/devicetree/bindings/clock/qcom,gcc-sdx55.yaml

> >> @@ -0,0 +1,73 @@

> >[...]

> >> +

> >> +properties:

> >> +  compatible:

> >> +    const: qcom,gcc-sdx55

> >> +

> >> +  clocks:

> >> +    items:

> >[...]

> >> +      - description: PLL test clock source

> >> +

> >> +  clock-names:

> >> +    items:

> >[...]

> >> +      - const: core_bi_pll_test_se

> >

> >Is it optional? As far as I know this clk has never been implemented

> >because it's a hardware validation thing and not used otherwise.

> 

> It is implemented in drivers but not used as you said. But since it is the parent clk of PLLs I'm not sure we can make it optional. 


We can leave it out completely if the bootloader code never uses it as a
parent of the PLL. That scenario would be pretty weird and is why we
removed it from the video clk controller in commit abc8f93f33e7 ("clk:
qcom: Get rid of the test clock for videocc-sc7180"). I'm fine if you
want to keep it, but I'm confused why you care so much :)