* [PATCH 1/3] dt-bindings: nvmem: qfprom: add sdm670 compatible
@ 2022-12-05 23:01 Richard Acayan
2022-12-05 23:01 ` [PATCH 2/3] arm64: dts: qcom: sdm670: add qfprom node Richard Acayan
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Richard Acayan @ 2022-12-05 23:01 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Srinivas Kandagatla,
Rob Herring, Krzysztof Kozlowski, linux-arm-msm, devicetree
Cc: Richard Acayan
There is some configuration in SDM670's QFPROM. Add the compatible for
it.
Signed-off-by: Richard Acayan <mailingradian@gmail.com>
---
Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml b/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml
index 2eab2f46cb65..01ec2143a3b5 100644
--- a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml
+++ b/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml
@@ -27,6 +27,7 @@ properties:
- qcom,sc7180-qfprom
- qcom,sc7280-qfprom
- qcom,sdm630-qfprom
+ - qcom,sdm670-qfprom
- qcom,sdm845-qfprom
- qcom,sm6115-qfprom
- const: qcom,qfprom
--
2.38.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/3] arm64: dts: qcom: sdm670: add qfprom node
2022-12-05 23:01 [PATCH 1/3] dt-bindings: nvmem: qfprom: add sdm670 compatible Richard Acayan
@ 2022-12-05 23:01 ` Richard Acayan
2022-12-05 23:21 ` Bjorn Andersson
2022-12-05 23:01 ` [PATCH 3/3] arm64: dts: qcom: sdm670: add missing usb hstx nvmem cell Richard Acayan
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: Richard Acayan @ 2022-12-05 23:01 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Srinivas Kandagatla,
Rob Herring, Krzysztof Kozlowski, linux-arm-msm, devicetree
Cc: Richard Acayan
Some hardware quirks and capabilities can be determined by reading the
fuse-programmable read-only memory. Add the QFPROM node so consumers
know if they need to do anything extra to support the hardware.
Signed-off-by: Richard Acayan <mailingradian@gmail.com>
---
arch/arm64/boot/dts/qcom/sdm670.dtsi | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sdm670.dtsi b/arch/arm64/boot/dts/qcom/sdm670.dtsi
index f93705bc549f..933ad2fabf3a 100644
--- a/arch/arm64/boot/dts/qcom/sdm670.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm670.dtsi
@@ -731,6 +731,13 @@ gcc: clock-controller@100000 {
#power-domain-cells = <1>;
};
+ qfprom: qfprom@780000 {
+ compatible = "qcom,sdm670-qfprom", "qcom,qfprom";
+ reg = <0 0x780000 0 0x1000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ };
+
sdhc_1: mmc@7c4000 {
compatible = "qcom,sdm670-sdhci", "qcom,sdhci-msm-v5";
reg = <0 0x007c4000 0 0x1000>,
--
2.38.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 3/3] arm64: dts: qcom: sdm670: add missing usb hstx nvmem cell
2022-12-05 23:01 [PATCH 1/3] dt-bindings: nvmem: qfprom: add sdm670 compatible Richard Acayan
2022-12-05 23:01 ` [PATCH 2/3] arm64: dts: qcom: sdm670: add qfprom node Richard Acayan
@ 2022-12-05 23:01 ` Richard Acayan
2022-12-06 8:50 ` [PATCH 1/3] dt-bindings: nvmem: qfprom: add sdm670 compatible Krzysztof Kozlowski
2023-01-03 11:58 ` Srinivas Kandagatla
3 siblings, 0 replies; 8+ messages in thread
From: Richard Acayan @ 2022-12-05 23:01 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Srinivas Kandagatla,
Rob Herring, Krzysztof Kozlowski, linux-arm-msm, devicetree
Cc: Richard Acayan
This nvmem cell is present on SDM670 as well as SDM845. Add it in SDM670
so there is proper tuning.
Signed-off-by: Richard Acayan <mailingradian@gmail.com>
---
arch/arm64/boot/dts/qcom/sdm670.dtsi | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sdm670.dtsi b/arch/arm64/boot/dts/qcom/sdm670.dtsi
index 933ad2fabf3a..2a44cccc47ee 100644
--- a/arch/arm64/boot/dts/qcom/sdm670.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm670.dtsi
@@ -736,6 +736,11 @@ qfprom: qfprom@780000 {
reg = <0 0x780000 0 0x1000>;
#address-cells = <1>;
#size-cells = <1>;
+
+ qusb2p_hstx_trim: hstx-trim-primary@1eb {
+ reg = <0x1eb 0x1>;
+ bits = <1 4>;
+ };
};
sdhc_1: mmc@7c4000 {
@@ -1418,6 +1423,8 @@ usb_1_hsphy: phy@88e2000 {
resets = <&gcc GCC_QUSB2PHY_PRIM_BCR>;
+ nvmem-cells = <&qusb2p_hstx_trim>;
+
status = "disabled";
};
--
2.38.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 2/3] arm64: dts: qcom: sdm670: add qfprom node
2022-12-05 23:01 ` [PATCH 2/3] arm64: dts: qcom: sdm670: add qfprom node Richard Acayan
@ 2022-12-05 23:21 ` Bjorn Andersson
2022-12-06 22:27 ` Richard Acayan
0 siblings, 1 reply; 8+ messages in thread
From: Bjorn Andersson @ 2022-12-05 23:21 UTC (permalink / raw)
To: Richard Acayan
Cc: Andy Gross, Konrad Dybcio, Srinivas Kandagatla, Rob Herring,
Krzysztof Kozlowski, linux-arm-msm, devicetree
On Mon, Dec 05, 2022 at 06:01:15PM -0500, Richard Acayan wrote:
> Some hardware quirks and capabilities can be determined by reading the
> fuse-programmable read-only memory. Add the QFPROM node so consumers
> know if they need to do anything extra to support the hardware.
>
> Signed-off-by: Richard Acayan <mailingradian@gmail.com>
> ---
> arch/arm64/boot/dts/qcom/sdm670.dtsi | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/sdm670.dtsi b/arch/arm64/boot/dts/qcom/sdm670.dtsi
> index f93705bc549f..933ad2fabf3a 100644
> --- a/arch/arm64/boot/dts/qcom/sdm670.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sdm670.dtsi
> @@ -731,6 +731,13 @@ gcc: clock-controller@100000 {
> #power-domain-cells = <1>;
> };
>
> + qfprom: qfprom@780000 {
> + compatible = "qcom,sdm670-qfprom", "qcom,qfprom";
> + reg = <0 0x780000 0 0x1000>;
I suspect the qfprom block is inherited from SDM845, if so 0x780000
contains raw, uncorrected data, while 0x784000 contains ECC-corrected
versions of these. Please validate and use the same.
Also, please pad the address to 8 digits, to make it easier to check the
sort order.
Thanks,
Bjorn
> + #address-cells = <1>;
> + #size-cells = <1>;
> + };
> +
> sdhc_1: mmc@7c4000 {
> compatible = "qcom,sdm670-sdhci", "qcom,sdhci-msm-v5";
> reg = <0 0x007c4000 0 0x1000>,
> --
> 2.38.1
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/3] dt-bindings: nvmem: qfprom: add sdm670 compatible
2022-12-05 23:01 [PATCH 1/3] dt-bindings: nvmem: qfprom: add sdm670 compatible Richard Acayan
2022-12-05 23:01 ` [PATCH 2/3] arm64: dts: qcom: sdm670: add qfprom node Richard Acayan
2022-12-05 23:01 ` [PATCH 3/3] arm64: dts: qcom: sdm670: add missing usb hstx nvmem cell Richard Acayan
@ 2022-12-06 8:50 ` Krzysztof Kozlowski
2023-01-03 11:58 ` Srinivas Kandagatla
3 siblings, 0 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2022-12-06 8:50 UTC (permalink / raw)
To: Richard Acayan, Andy Gross, Bjorn Andersson, Konrad Dybcio,
Srinivas Kandagatla, Rob Herring, Krzysztof Kozlowski,
linux-arm-msm, devicetree
On 06/12/2022 00:01, Richard Acayan wrote:
> There is some configuration in SDM670's QFPROM. Add the compatible for
> it.
>
> Signed-off-by: Richard Acayan <mailingradian@gmail.com>
> ---
> Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml | 1 +
> 1 file changed, 1 insertion(+)
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/3] arm64: dts: qcom: sdm670: add qfprom node
2022-12-05 23:21 ` Bjorn Andersson
@ 2022-12-06 22:27 ` Richard Acayan
0 siblings, 0 replies; 8+ messages in thread
From: Richard Acayan @ 2022-12-06 22:27 UTC (permalink / raw)
To: Bjorn Andersson
Cc: Andy Gross, Konrad Dybcio, Srinivas Kandagatla, Rob Herring,
Krzysztof Kozlowski, linux-arm-msm, devicetree
On Mon, Dec 05, 2022 at 05:21:03PM -0600, Bjorn Andersson wrote:
> On Mon, Dec 05, 2022 at 06:01:15PM -0500, Richard Acayan wrote:
>> Some hardware quirks and capabilities can be determined by reading the
>> fuse-programmable read-only memory. Add the QFPROM node so consumers
>> know if they need to do anything extra to support the hardware.
>>
>> Signed-off-by: Richard Acayan <mailingradian@gmail.com>
>> ---
>> arch/arm64/boot/dts/qcom/sdm670.dtsi | 7 +++++++
>> 1 file changed, 7 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/qcom/sdm670.dtsi b/arch/arm64/boot/dts/qcom/sdm670.dtsi
>> index f93705bc549f..933ad2fabf3a 100644
>> --- a/arch/arm64/boot/dts/qcom/sdm670.dtsi
>> +++ b/arch/arm64/boot/dts/qcom/sdm670.dtsi
>> @@ -731,6 +731,13 @@ gcc: clock-controller@100000 {
>> #power-domain-cells = <1>;
>> };
>>
>> + qfprom: qfprom@780000 {
>> + compatible = "qcom,sdm670-qfprom", "qcom,qfprom";
>> + reg = <0 0x780000 0 0x1000>;
>
> I suspect the qfprom block is inherited from SDM845, if so 0x780000
> contains raw, uncorrected data, while 0x784000 contains ECC-corrected
> versions of these. Please validate and use the same.
I just compared the qusb2p_hstx_trim values at 0x7801eb and 0x7841eb and
this seems to be true. Will change in the next version.
>
> Also, please pad the address to 8 digits, to make it easier to check the
> sort order.
Ack.
>
> Thanks,
> Bjorn
>
>> + #address-cells = <1>;
>> + #size-cells = <1>;
>> + };
>> +
>> sdhc_1: mmc@7c4000 {
>> compatible = "qcom,sdm670-sdhci", "qcom,sdhci-msm-v5";
>> reg = <0 0x007c4000 0 0x1000>,
>> --
>> 2.38.1
>>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/3] dt-bindings: nvmem: qfprom: add sdm670 compatible
2022-12-05 23:01 [PATCH 1/3] dt-bindings: nvmem: qfprom: add sdm670 compatible Richard Acayan
` (2 preceding siblings ...)
2022-12-06 8:50 ` [PATCH 1/3] dt-bindings: nvmem: qfprom: add sdm670 compatible Krzysztof Kozlowski
@ 2023-01-03 11:58 ` Srinivas Kandagatla
3 siblings, 0 replies; 8+ messages in thread
From: Srinivas Kandagatla @ 2023-01-03 11:58 UTC (permalink / raw)
To: Richard Acayan, Andy Gross, Bjorn Andersson, Konrad Dybcio,
Rob Herring, Krzysztof Kozlowski, linux-arm-msm, devicetree
On 05/12/2022 23:01, Richard Acayan wrote:
> There is some configuration in SDM670's QFPROM. Add the compatible for
> it.
>
> Signed-off-by: Richard Acayan <mailingradian@gmail.com>
> ---
> Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml | 1 +
> 1 file changed, 1 insertion(+)
Applied thanks,
--srini
>
> diff --git a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml b/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml
> index 2eab2f46cb65..01ec2143a3b5 100644
> --- a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml
> +++ b/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml
> @@ -27,6 +27,7 @@ properties:
> - qcom,sc7180-qfprom
> - qcom,sc7280-qfprom
> - qcom,sdm630-qfprom
> + - qcom,sdm670-qfprom
> - qcom,sdm845-qfprom
> - qcom,sm6115-qfprom
> - const: qcom,qfprom
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/3] dt-bindings: nvmem: qfprom: add sdm670 compatible
@ 2022-12-06 23:17 Richard Acayan
0 siblings, 0 replies; 8+ messages in thread
From: Richard Acayan @ 2022-12-06 23:17 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Srinivas Kandagatla,
Rob Herring, Krzysztof Kozlowski, linux-arm-msm, devicetree
Cc: Richard Acayan
There is some configuration in SDM670's QFPROM. Add the compatible for
it.
Signed-off-by: Richard Acayan <mailingradian@gmail.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
Changes since v1:
- add ack tag
Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml b/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml
index 2eab2f46cb65..01ec2143a3b5 100644
--- a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml
+++ b/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml
@@ -27,6 +27,7 @@ properties:
- qcom,sc7180-qfprom
- qcom,sc7280-qfprom
- qcom,sdm630-qfprom
+ - qcom,sdm670-qfprom
- qcom,sdm845-qfprom
- qcom,sm6115-qfprom
- const: qcom,qfprom
--
2.38.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
end of thread, other threads:[~2023-01-03 11:58 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-05 23:01 [PATCH 1/3] dt-bindings: nvmem: qfprom: add sdm670 compatible Richard Acayan
2022-12-05 23:01 ` [PATCH 2/3] arm64: dts: qcom: sdm670: add qfprom node Richard Acayan
2022-12-05 23:21 ` Bjorn Andersson
2022-12-06 22:27 ` Richard Acayan
2022-12-05 23:01 ` [PATCH 3/3] arm64: dts: qcom: sdm670: add missing usb hstx nvmem cell Richard Acayan
2022-12-06 8:50 ` [PATCH 1/3] dt-bindings: nvmem: qfprom: add sdm670 compatible Krzysztof Kozlowski
2023-01-03 11:58 ` Srinivas Kandagatla
2022-12-06 23:17 Richard Acayan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.