2023-05-26 07:22:35

by Kathiravan Thirumoorthy

[permalink] [raw]
Subject: [PATCH 0/3] Add QFPROM support for few IPQ SoCs

Like any other SOCs, Qualcomm's IPQ SOCs also have an efuse region which
exposes the HW quirks like CPU Freq limit and so on. This series add the
basic support for the efuse. Feature specific fuses will be added along
with the feature set.

Kathiravan T (4):
dt-bindings: nvmem: qfprom: add compatible for few IPQ SoCs
arm64: dts: qcom: ipq5332: add QFPROM node
arm64: dts: qcom: ipq6018: add QFPROM node
arm64: dts: qcom: ipq9574: add QFPROM node

Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml | 3 +++
arch/arm64/boot/dts/qcom/ipq5332.dtsi | 7 +++++++
arch/arm64/boot/dts/qcom/ipq6018.dtsi | 7 +++++++
arch/arm64/boot/dts/qcom/ipq9574.dtsi | 7 +++++++
4 files changed, 24 insertions(+)

--
2.17.1



2023-05-26 07:23:13

by Kathiravan Thirumoorthy

[permalink] [raw]
Subject: [PATCH 3/4] arm64: dts: qcom: ipq6018: add QFPROM node

IPQ6018 has efuse region to determine the various HW quirks. Lets
add the initial support and the individual fuses will be added as they
are required.

Signed-off-by: Kathiravan T <[email protected]>
---
arch/arm64/boot/dts/qcom/ipq6018.dtsi | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm64/boot/dts/qcom/ipq6018.dtsi
index f531797f2619..856879fd0207 100644
--- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi
+++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi
@@ -206,6 +206,13 @@
dma-ranges;
compatible = "simple-bus";

+ qfprom: efuse@a4000 {
+ compatible = "qcom,ipq6018-qfprom", "qcom,qfprom";
+ reg = <0x0 0x000a4000 0x0 0x2000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ };
+
qusb_phy_1: qusb@59000 {
compatible = "qcom,ipq6018-qusb2-phy";
reg = <0x0 0x00059000 0x0 0x180>;
--
2.17.1


2023-05-26 10:18:11

by Konrad Dybcio

[permalink] [raw]
Subject: Re: [PATCH 3/4] arm64: dts: qcom: ipq6018: add QFPROM node



On 26.05.2023 09:04, Kathiravan T wrote:
> IPQ6018 has efuse region to determine the various HW quirks. Lets
> add the initial support and the individual fuses will be added as they
> are required.
>
> Signed-off-by: Kathiravan T <[email protected]>
> ---
> arch/arm64/boot/dts/qcom/ipq6018.dtsi | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm64/boot/dts/qcom/ipq6018.dtsi
> index f531797f2619..856879fd0207 100644
> --- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi
> +++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi
> @@ -206,6 +206,13 @@
> dma-ranges;
> compatible = "simple-bus";
>
> + qfprom: efuse@a4000 {
This should be a bit lower down (0xa4000 > 0x59000)

Konrad
> + compatible = "qcom,ipq6018-qfprom", "qcom,qfprom";
> + reg = <0x0 0x000a4000 0x0 0x2000>;
> + #address-cells = <1>;
> + #size-cells = <1>;
> + };
> +
> qusb_phy_1: qusb@59000 {
> compatible = "qcom,ipq6018-qusb2-phy";
> reg = <0x0 0x00059000 0x0 0x180>;

2023-05-26 10:39:45

by Kathiravan Thirumoorthy

[permalink] [raw]
Subject: Re: [PATCH 3/4] arm64: dts: qcom: ipq6018: add QFPROM node


On 5/26/2023 2:54 PM, Konrad Dybcio wrote:
>
> On 26.05.2023 09:04, Kathiravan T wrote:
>> IPQ6018 has efuse region to determine the various HW quirks. Lets
>> add the initial support and the individual fuses will be added as they
>> are required.
>>
>> Signed-off-by: Kathiravan T <[email protected]>
>> ---
>> arch/arm64/boot/dts/qcom/ipq6018.dtsi | 7 +++++++
>> 1 file changed, 7 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm64/boot/dts/qcom/ipq6018.dtsi
>> index f531797f2619..856879fd0207 100644
>> --- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi
>> +++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi
>> @@ -206,6 +206,13 @@
>> dma-ranges;
>> compatible = "simple-bus";
>>
>> + qfprom: efuse@a4000 {
> This should be a bit lower down (0xa4000 > 0x59000)


Sorry, missed this. Will address in V2.


>
> Konrad
>> + compatible = "qcom,ipq6018-qfprom", "qcom,qfprom";
>> + reg = <0x0 0x000a4000 0x0 0x2000>;
>> + #address-cells = <1>;
>> + #size-cells = <1>;
>> + };
>> +
>> qusb_phy_1: qusb@59000 {
>> compatible = "qcom,ipq6018-qusb2-phy";
>> reg = <0x0 0x00059000 0x0 0x180>;