* [PATCH 0/6] Enable MSM8226 TSENS support
@ 2023-05-07 20:12 Matti Lehtimäki
2023-05-07 20:12 ` [PATCH 1/6] dt-bindings: nvmem: qfprom: Add compatible for MSM8226 Matti Lehtimäki
` (5 more replies)
0 siblings, 6 replies; 23+ messages in thread
From: Matti Lehtimäki @ 2023-05-07 20:12 UTC (permalink / raw)
To: linux-arm-msm
Cc: ~postmarketos/upstreaming, phone-devel, Matti Lehtimäki,
Amit Kucheria, devicetree, Konrad Dybcio, linux-kernel, linux-pm,
Srinivas Kandagatla, Zhang Rui
Add support for tsens in MSM8226. Add qfprom compatible for MSM8226.
Add device tree nodes for qfprom, tsens and thermal zones for MSM8226.
Matti Lehtimäki (6):
dt-bindings: nvmem: qfprom: Add compatible for MSM8226
dt-bindings: thermal: tsens: Add compatible for MSM8226
thermal/drivers/qcom/tsens-v0_1: Add support for MSM8226
ARM: dts: msm8226: Add qfprom node
ARM: dts: msm8226: Add tsens node and related nvmem cells
ARM: dts: msm8226: Add thermal zones node
.../bindings/nvmem/qcom,qfprom.yaml | 1 +
.../bindings/thermal/qcom-tsens.yaml | 1 +
arch/arm/boot/dts/qcom-msm8226.dtsi | 164 ++++++++++++++++++
drivers/thermal/qcom/tsens-v0_1.c | 27 ++-
drivers/thermal/qcom/tsens.c | 3 +
drivers/thermal/qcom/tsens.h | 2 +-
6 files changed, 196 insertions(+), 2 deletions(-)
--
2.34.1
^ permalink raw reply [flat|nested] 23+ messages in thread
* [PATCH 1/6] dt-bindings: nvmem: qfprom: Add compatible for MSM8226
2023-05-07 20:12 [PATCH 0/6] Enable MSM8226 TSENS support Matti Lehtimäki
@ 2023-05-07 20:12 ` Matti Lehtimäki
2023-05-07 20:19 ` Luca Weiss
` (3 more replies)
2023-05-07 20:12 ` [PATCH 2/6] dt-bindings: thermal: tsens: " Matti Lehtimäki
` (4 subsequent siblings)
5 siblings, 4 replies; 23+ messages in thread
From: Matti Lehtimäki @ 2023-05-07 20:12 UTC (permalink / raw)
To: linux-arm-msm
Cc: ~postmarketos/upstreaming, phone-devel, Matti Lehtimäki,
Andy Gross, Bjorn Andersson, Konrad Dybcio, Srinivas Kandagatla,
Rob Herring, Krzysztof Kozlowski, devicetree, linux-kernel
Document QFPROM compatible for MSM8226.
Signed-off-by: Matti Lehtimäki <matti.lehtimaki@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 2173fe82317d..0baf7819ab46 100644
--- a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml
+++ b/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml
@@ -20,6 +20,7 @@ properties:
- qcom,apq8084-qfprom
- qcom,ipq8064-qfprom
- qcom,ipq8074-qfprom
+ - qcom,msm8226-qfprom
- qcom,msm8916-qfprom
- qcom,msm8974-qfprom
- qcom,msm8976-qfprom
--
2.34.1
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH 2/6] dt-bindings: thermal: tsens: Add compatible for MSM8226
2023-05-07 20:12 [PATCH 0/6] Enable MSM8226 TSENS support Matti Lehtimäki
2023-05-07 20:12 ` [PATCH 1/6] dt-bindings: nvmem: qfprom: Add compatible for MSM8226 Matti Lehtimäki
@ 2023-05-07 20:12 ` Matti Lehtimäki
2023-05-07 20:22 ` Luca Weiss
` (3 more replies)
2023-05-07 20:12 ` [PATCH 4/6] ARM: dts: msm8226: Add qfprom node Matti Lehtimäki
` (3 subsequent siblings)
5 siblings, 4 replies; 23+ messages in thread
From: Matti Lehtimäki @ 2023-05-07 20:12 UTC (permalink / raw)
To: linux-arm-msm
Cc: ~postmarketos/upstreaming, phone-devel, Matti Lehtimäki,
Amit Kucheria, Thara Gopinath, Andy Gross, Bjorn Andersson,
Konrad Dybcio, Rafael J. Wysocki, Daniel Lezcano, Zhang Rui,
Rob Herring, Krzysztof Kozlowski, linux-pm, devicetree,
linux-kernel
Qualcomm MSM8226 has tsens v0.1 block.
Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com>
---
Documentation/devicetree/bindings/thermal/qcom-tsens.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml
index 926e9c51c93c..d6b2957d5137 100644
--- a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml
+++ b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml
@@ -29,6 +29,7 @@ properties:
items:
- enum:
- qcom,mdm9607-tsens
+ - qcom,msm8226-tsens
- qcom,msm8916-tsens
- qcom,msm8939-tsens
- qcom,msm8974-tsens
--
2.34.1
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH 4/6] ARM: dts: msm8226: Add qfprom node
2023-05-07 20:12 [PATCH 0/6] Enable MSM8226 TSENS support Matti Lehtimäki
2023-05-07 20:12 ` [PATCH 1/6] dt-bindings: nvmem: qfprom: Add compatible for MSM8226 Matti Lehtimäki
2023-05-07 20:12 ` [PATCH 2/6] dt-bindings: thermal: tsens: " Matti Lehtimäki
@ 2023-05-07 20:12 ` Matti Lehtimäki
2023-05-07 20:27 ` Luca Weiss
` (2 more replies)
2023-05-07 20:12 ` [PATCH 5/6] ARM: dts: msm8226: Add tsens node and related nvmem cells Matti Lehtimäki
` (2 subsequent siblings)
5 siblings, 3 replies; 23+ messages in thread
From: Matti Lehtimäki @ 2023-05-07 20:12 UTC (permalink / raw)
To: linux-arm-msm
Cc: ~postmarketos/upstreaming, phone-devel, Matti Lehtimäki,
Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, devicetree, linux-kernel
Add missing QFPROM definition for MSM8226 SoC.
Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com>
---
arch/arm/boot/dts/qcom-msm8226.dtsi | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/arch/arm/boot/dts/qcom-msm8226.dtsi b/arch/arm/boot/dts/qcom-msm8226.dtsi
index c373081bc21b..c34b8f3139ae 100644
--- a/arch/arm/boot/dts/qcom-msm8226.dtsi
+++ b/arch/arm/boot/dts/qcom-msm8226.dtsi
@@ -505,6 +505,13 @@ restart@fc4ab000 {
reg = <0xfc4ab000 0x4>;
};
+ qfprom: qfprom@fc4bc000 {
+ compatible = "qcom,msm8226-qfprom", "qcom,qfprom";
+ reg = <0xfc4bc000 0x1000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ };
+
spmi_bus: spmi@fc4cf000 {
compatible = "qcom,spmi-pmic-arb";
reg-names = "core", "intr", "cnfg";
--
2.34.1
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH 5/6] ARM: dts: msm8226: Add tsens node and related nvmem cells
2023-05-07 20:12 [PATCH 0/6] Enable MSM8226 TSENS support Matti Lehtimäki
` (2 preceding siblings ...)
2023-05-07 20:12 ` [PATCH 4/6] ARM: dts: msm8226: Add qfprom node Matti Lehtimäki
@ 2023-05-07 20:12 ` Matti Lehtimäki
2023-05-07 20:31 ` Luca Weiss
2023-05-07 20:41 ` Dmitry Baryshkov
2023-05-07 20:12 ` [PATCH 6/6] ARM: dts: msm8226: Add thermal zones node Matti Lehtimäki
2023-06-13 23:48 ` (subset) [PATCH 0/6] Enable MSM8226 TSENS support Bjorn Andersson
5 siblings, 2 replies; 23+ messages in thread
From: Matti Lehtimäki @ 2023-05-07 20:12 UTC (permalink / raw)
To: linux-arm-msm
Cc: ~postmarketos/upstreaming, phone-devel, Matti Lehtimäki,
Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, devicetree, linux-kernel
Specify pre-parsed per-sensor calibration nvmem cells in the qfprom
device node rather than parsing the whole data blob in the driver.
Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com>
---
arch/arm/boot/dts/qcom-msm8226.dtsi | 113 ++++++++++++++++++++++++++++
1 file changed, 113 insertions(+)
diff --git a/arch/arm/boot/dts/qcom-msm8226.dtsi b/arch/arm/boot/dts/qcom-msm8226.dtsi
index c34b8f3139ae..a0c3d25eea65 100644
--- a/arch/arm/boot/dts/qcom-msm8226.dtsi
+++ b/arch/arm/boot/dts/qcom-msm8226.dtsi
@@ -500,6 +500,34 @@ data-pins {
};
};
+ tsens: thermal-sensor@fc4a9000 {
+ compatible = "qcom,msm8226-tsens", "qcom,tsens-v0_1";
+ reg = <0xfc4a9000 0x1000>, /* TM */
+ <0xfc4a8000 0x1000>; /* SROT */
+ nvmem-cells = <&tsens_mode>,
+ <&tsens_base1>, <&tsens_base2>,
+ <&tsens_s0_p1>, <&tsens_s0_p2>,
+ <&tsens_s1_p1>, <&tsens_s1_p2>,
+ <&tsens_s2_p1>, <&tsens_s2_p2>,
+ <&tsens_s3_p1>, <&tsens_s3_p2>,
+ <&tsens_s4_p1>, <&tsens_s4_p2>,
+ <&tsens_s5_p1>, <&tsens_s5_p2>,
+ <&tsens_s6_p1>, <&tsens_s6_p2>;
+ nvmem-cell-names = "mode",
+ "base1", "base2",
+ "s0_p1", "s0_p2",
+ "s1_p1", "s1_p2",
+ "s2_p1", "s2_p2",
+ "s3_p1", "s3_p2",
+ "s4_p1", "s4_p2",
+ "s5_p1", "s5_p2",
+ "s6_p1", "s6_p2";
+ #qcom,sensors = <6>;
+ interrupts = <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "uplow";
+ #thermal-sensor-cells = <1>;
+ };
+
restart@fc4ab000 {
compatible = "qcom,pshold";
reg = <0xfc4ab000 0x4>;
@@ -510,6 +538,91 @@ qfprom: qfprom@fc4bc000 {
reg = <0xfc4bc000 0x1000>;
#address-cells = <1>;
#size-cells = <1>;
+
+ tsens_base1: base1@1c1 {
+ reg = <0x1c1 0x2>;
+ bits = <5 8>;
+ };
+
+ tsens_s0_p1: s0-p1@1c2 {
+ reg = <0x1c2 0x2>;
+ bits = <5 6>;
+ };
+
+ tsens_s1_p1: s1-p1@1c4 {
+ reg = <0x1c4 0x1>;
+ bits = <0 6>;
+ };
+
+ tsens_s2_p1: s2-p1@1c4 {
+ reg = <0x1c4 0x2>;
+ bits = <6 6>;
+ };
+
+ tsens_s3_p1: s3-p1@1c5 {
+ reg = <0x1c5 0x2>;
+ bits = <4 6>;
+ };
+
+ tsens_s4_p1: s4-p1@1c6 {
+ reg = <0x1c6 0x1>;
+ bits = <2 6>;
+ };
+
+ tsens_s5_p1: s5-p1@1c7 {
+ reg = <0x1c7 0x1>;
+ bits = <0 6>;
+ };
+
+ tsens_s6_p1: s6-p1@1ca {
+ reg = <0x1ca 0x2>;
+ bits = <4 6>;
+ };
+
+ tsens_base2: base2@1cc {
+ reg = <0x1cc 0x1>;
+ bits = <0 8>;
+ };
+
+ tsens_s0_p2: s0-p2@1cd {
+ reg = <0x1cd 0x1>;
+ bits = <0 6>;
+ };
+
+ tsens_s1_p2: s1-p2@1cd {
+ reg = <0x1cd 0x2>;
+ bits = <6 6>;
+ };
+
+ tsens_s2_p2: s2-p2@1ce {
+ reg = <0x1ce 0x2>;
+ bits = <4 6>;
+ };
+
+ tsens_s3_p2: s3-p2@1cf {
+ reg = <0x1cf 0x1>;
+ bits = <2 6>;
+ };
+
+ tsens_s4_p2: s4-p2@446 {
+ reg = <0x446 0x2>;
+ bits = <4 6>;
+ };
+
+ tsens_s5_p2: s5-p2@447 {
+ reg = <0x447 0x1>;
+ bits = <2 6>;
+ };
+
+ tsens_s6_p2: s6-p2@44e {
+ reg = <0x44e 0x1>;
+ bits = <1 6>;
+ };
+
+ tsens_mode: mode@44f {
+ reg = <0x44f 0x1>;
+ bits = <5 3>;
+ };
};
spmi_bus: spmi@fc4cf000 {
--
2.34.1
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH 6/6] ARM: dts: msm8226: Add thermal zones node
2023-05-07 20:12 [PATCH 0/6] Enable MSM8226 TSENS support Matti Lehtimäki
` (3 preceding siblings ...)
2023-05-07 20:12 ` [PATCH 5/6] ARM: dts: msm8226: Add tsens node and related nvmem cells Matti Lehtimäki
@ 2023-05-07 20:12 ` Matti Lehtimäki
2023-05-07 20:48 ` Dmitry Baryshkov
2023-06-13 23:48 ` (subset) [PATCH 0/6] Enable MSM8226 TSENS support Bjorn Andersson
5 siblings, 1 reply; 23+ messages in thread
From: Matti Lehtimäki @ 2023-05-07 20:12 UTC (permalink / raw)
To: linux-arm-msm
Cc: ~postmarketos/upstreaming, phone-devel, Matti Lehtimäki,
Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, devicetree, linux-kernel
Add thermal zones present on MSM8226 SoC.
Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com>
---
arch/arm/boot/dts/qcom-msm8226.dtsi | 44 +++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/arch/arm/boot/dts/qcom-msm8226.dtsi b/arch/arm/boot/dts/qcom-msm8226.dtsi
index a0c3d25eea65..f68556b15183 100644
--- a/arch/arm/boot/dts/qcom-msm8226.dtsi
+++ b/arch/arm/boot/dts/qcom-msm8226.dtsi
@@ -752,6 +752,50 @@ smd-edge {
};
};
+ thermal-zones {
+ cpu0-thermal {
+ polling-delay-passive = <250>;
+ polling-delay = <1000>;
+
+ thermal-sensors = <&tsens 5>;
+
+ trips {
+ cpu_alert0: trip0 {
+ temperature = <75000>;
+ hysteresis = <2000>;
+ type = "passive";
+ };
+
+ cpu_crit0: trip1 {
+ temperature = <110000>;
+ hysteresis = <2000>;
+ type = "critical";
+ };
+ };
+ };
+
+ cpu1-thermal {
+ polling-delay-passive = <250>;
+ polling-delay = <1000>;
+
+ thermal-sensors = <&tsens 2>;
+
+ trips {
+ cpu_alert1: trip0 {
+ temperature = <75000>;
+ hysteresis = <2000>;
+ type = "passive";
+ };
+
+ cpu_crit1: trip1 {
+ temperature = <110000>;
+ hysteresis = <2000>;
+ type = "critical";
+ };
+ };
+ };
+ };
+
timer {
compatible = "arm,armv7-timer";
interrupts = <GIC_PPI 2
--
2.34.1
^ permalink raw reply related [flat|nested] 23+ messages in thread
* Re: [PATCH 1/6] dt-bindings: nvmem: qfprom: Add compatible for MSM8226
2023-05-07 20:12 ` [PATCH 1/6] dt-bindings: nvmem: qfprom: Add compatible for MSM8226 Matti Lehtimäki
@ 2023-05-07 20:19 ` Luca Weiss
2023-05-07 21:25 ` Rob Herring
` (2 subsequent siblings)
3 siblings, 0 replies; 23+ messages in thread
From: Luca Weiss @ 2023-05-07 20:19 UTC (permalink / raw)
To: linux-arm-msm, ~postmarketos/upstreaming
Cc: ~postmarketos/upstreaming, phone-devel, Matti Lehtimäki,
Andy Gross, Bjorn Andersson, Konrad Dybcio, Srinivas Kandagatla,
Rob Herring, Krzysztof Kozlowski, devicetree, linux-kernel,
Matti Lehtimäki
On Sonntag, 7. Mai 2023 22:12:19 CEST Matti Lehtimäki wrote:
> Document QFPROM compatible for MSM8226.
>
> Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com>
Reviewed-by: Luca Weiss <luca@z3ntu.xyz>
> ---
> 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
> 2173fe82317d..0baf7819ab46 100644
> --- a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml
> +++ b/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml
> @@ -20,6 +20,7 @@ properties:
> - qcom,apq8084-qfprom
> - qcom,ipq8064-qfprom
> - qcom,ipq8074-qfprom
> + - qcom,msm8226-qfprom
> - qcom,msm8916-qfprom
> - qcom,msm8974-qfprom
> - qcom,msm8976-qfprom
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 2/6] dt-bindings: thermal: tsens: Add compatible for MSM8226
2023-05-07 20:12 ` [PATCH 2/6] dt-bindings: thermal: tsens: " Matti Lehtimäki
@ 2023-05-07 20:22 ` Luca Weiss
2023-05-07 21:25 ` Rob Herring
` (2 subsequent siblings)
3 siblings, 0 replies; 23+ messages in thread
From: Luca Weiss @ 2023-05-07 20:22 UTC (permalink / raw)
To: linux-arm-msm, ~postmarketos/upstreaming
Cc: ~postmarketos/upstreaming, phone-devel, Matti Lehtimäki,
Amit Kucheria, Thara Gopinath, Andy Gross, Bjorn Andersson,
Konrad Dybcio, Rafael J. Wysocki, Daniel Lezcano, Zhang Rui,
Rob Herring, Krzysztof Kozlowski, linux-pm, devicetree,
linux-kernel, Matti Lehtimäki
On Sonntag, 7. Mai 2023 22:12:20 CEST Matti Lehtimäki wrote:
> Qualcomm MSM8226 has tsens v0.1 block.
>
> Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com>
Reviewed-by: Luca Weiss <luca@z3ntu.xyz>
> ---
> Documentation/devicetree/bindings/thermal/qcom-tsens.yaml | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml
> b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml index
> 926e9c51c93c..d6b2957d5137 100644
> --- a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml
> +++ b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml
> @@ -29,6 +29,7 @@ properties:
> items:
> - enum:
> - qcom,mdm9607-tsens
> + - qcom,msm8226-tsens
> - qcom,msm8916-tsens
> - qcom,msm8939-tsens
> - qcom,msm8974-tsens
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 4/6] ARM: dts: msm8226: Add qfprom node
2023-05-07 20:12 ` [PATCH 4/6] ARM: dts: msm8226: Add qfprom node Matti Lehtimäki
@ 2023-05-07 20:27 ` Luca Weiss
2023-05-07 20:50 ` Dmitry Baryshkov
2023-05-10 13:58 ` Krzysztof Kozlowski
2 siblings, 0 replies; 23+ messages in thread
From: Luca Weiss @ 2023-05-07 20:27 UTC (permalink / raw)
To: linux-arm-msm, ~postmarketos/upstreaming
Cc: ~postmarketos/upstreaming, phone-devel, Matti Lehtimäki,
Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, devicetree, linux-kernel,
Matti Lehtimäki
On Sonntag, 7. Mai 2023 22:12:22 CEST Matti Lehtimäki wrote:
> Add missing QFPROM definition for MSM8226 SoC.
>
> Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com>
Reviewed-by: Luca Weiss <luca@z3ntu.xyz>
> ---
> arch/arm/boot/dts/qcom-msm8226.dtsi | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/arch/arm/boot/dts/qcom-msm8226.dtsi
> b/arch/arm/boot/dts/qcom-msm8226.dtsi index c373081bc21b..c34b8f3139ae
> 100644
> --- a/arch/arm/boot/dts/qcom-msm8226.dtsi
> +++ b/arch/arm/boot/dts/qcom-msm8226.dtsi
> @@ -505,6 +505,13 @@ restart@fc4ab000 {
> reg = <0xfc4ab000 0x4>;
> };
>
> + qfprom: qfprom@fc4bc000 {
> + compatible = "qcom,msm8226-qfprom",
"qcom,qfprom";
> + reg = <0xfc4bc000 0x1000>;
> + #address-cells = <1>;
> + #size-cells = <1>;
> + };
> +
> spmi_bus: spmi@fc4cf000 {
> compatible = "qcom,spmi-pmic-arb";
> reg-names = "core", "intr", "cnfg";
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 5/6] ARM: dts: msm8226: Add tsens node and related nvmem cells
2023-05-07 20:12 ` [PATCH 5/6] ARM: dts: msm8226: Add tsens node and related nvmem cells Matti Lehtimäki
@ 2023-05-07 20:31 ` Luca Weiss
2023-05-07 20:41 ` Dmitry Baryshkov
1 sibling, 0 replies; 23+ messages in thread
From: Luca Weiss @ 2023-05-07 20:31 UTC (permalink / raw)
To: linux-arm-msm, ~postmarketos/upstreaming
Cc: ~postmarketos/upstreaming, phone-devel, Matti Lehtimäki,
Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, devicetree, linux-kernel,
Matti Lehtimäki
On Sonntag, 7. Mai 2023 22:12:23 CEST Matti Lehtimäki wrote:
> Specify pre-parsed per-sensor calibration nvmem cells in the qfprom
> device node rather than parsing the whole data blob in the driver.
I haven't double checked all the qfprom offsets but since you verified it
twice on your side, I believe you ;)
Reviewed-by: Luca Weiss <luca@z3ntu.xyz>
>
> Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com>
> ---
> arch/arm/boot/dts/qcom-msm8226.dtsi | 113 ++++++++++++++++++++++++++++
> 1 file changed, 113 insertions(+)
>
> diff --git a/arch/arm/boot/dts/qcom-msm8226.dtsi
> b/arch/arm/boot/dts/qcom-msm8226.dtsi index c34b8f3139ae..a0c3d25eea65
> 100644
> --- a/arch/arm/boot/dts/qcom-msm8226.dtsi
> +++ b/arch/arm/boot/dts/qcom-msm8226.dtsi
> @@ -500,6 +500,34 @@ data-pins {
> };
> };
>
> + tsens: thermal-sensor@fc4a9000 {
> + compatible = "qcom,msm8226-tsens", "qcom,tsens-v0_1";
> + reg = <0xfc4a9000 0x1000>, /* TM */
> + <0xfc4a8000 0x1000>; /* SROT */
> + nvmem-cells = <&tsens_mode>,
> + <&tsens_base1>, <&tsens_base2>,
> + <&tsens_s0_p1>, <&tsens_s0_p2>,
> + <&tsens_s1_p1>, <&tsens_s1_p2>,
> + <&tsens_s2_p1>, <&tsens_s2_p2>,
> + <&tsens_s3_p1>, <&tsens_s3_p2>,
> + <&tsens_s4_p1>, <&tsens_s4_p2>,
> + <&tsens_s5_p1>, <&tsens_s5_p2>,
> + <&tsens_s6_p1>, <&tsens_s6_p2>;
> + nvmem-cell-names = "mode",
> + "base1", "base2",
> + "s0_p1", "s0_p2",
> + "s1_p1", "s1_p2",
> + "s2_p1", "s2_p2",
> + "s3_p1", "s3_p2",
> + "s4_p1", "s4_p2",
> + "s5_p1", "s5_p2",
> + "s6_p1", "s6_p2";
> + #qcom,sensors = <6>;
> + interrupts = <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>;
> + interrupt-names = "uplow";
> + #thermal-sensor-cells = <1>;
> + };
> +
> restart@fc4ab000 {
> compatible = "qcom,pshold";
> reg = <0xfc4ab000 0x4>;
> @@ -510,6 +538,91 @@ qfprom: qfprom@fc4bc000 {
> reg = <0xfc4bc000 0x1000>;
> #address-cells = <1>;
> #size-cells = <1>;
> +
> + tsens_base1: base1@1c1 {
> + reg = <0x1c1 0x2>;
> + bits = <5 8>;
> + };
> +
> + tsens_s0_p1: s0-p1@1c2 {
> + reg = <0x1c2 0x2>;
> + bits = <5 6>;
> + };
> +
> + tsens_s1_p1: s1-p1@1c4 {
> + reg = <0x1c4 0x1>;
> + bits = <0 6>;
> + };
> +
> + tsens_s2_p1: s2-p1@1c4 {
> + reg = <0x1c4 0x2>;
> + bits = <6 6>;
> + };
> +
> + tsens_s3_p1: s3-p1@1c5 {
> + reg = <0x1c5 0x2>;
> + bits = <4 6>;
> + };
> +
> + tsens_s4_p1: s4-p1@1c6 {
> + reg = <0x1c6 0x1>;
> + bits = <2 6>;
> + };
> +
> + tsens_s5_p1: s5-p1@1c7 {
> + reg = <0x1c7 0x1>;
> + bits = <0 6>;
> + };
> +
> + tsens_s6_p1: s6-p1@1ca {
> + reg = <0x1ca 0x2>;
> + bits = <4 6>;
> + };
> +
> + tsens_base2: base2@1cc {
> + reg = <0x1cc 0x1>;
> + bits = <0 8>;
> + };
> +
> + tsens_s0_p2: s0-p2@1cd {
> + reg = <0x1cd 0x1>;
> + bits = <0 6>;
> + };
> +
> + tsens_s1_p2: s1-p2@1cd {
> + reg = <0x1cd 0x2>;
> + bits = <6 6>;
> + };
> +
> + tsens_s2_p2: s2-p2@1ce {
> + reg = <0x1ce 0x2>;
> + bits = <4 6>;
> + };
> +
> + tsens_s3_p2: s3-p2@1cf {
> + reg = <0x1cf 0x1>;
> + bits = <2 6>;
> + };
> +
> + tsens_s4_p2: s4-p2@446 {
> + reg = <0x446 0x2>;
> + bits = <4 6>;
> + };
> +
> + tsens_s5_p2: s5-p2@447 {
> + reg = <0x447 0x1>;
> + bits = <2 6>;
> + };
> +
> + tsens_s6_p2: s6-p2@44e {
> + reg = <0x44e 0x1>;
> + bits = <1 6>;
> + };
> +
> + tsens_mode: mode@44f {
> + reg = <0x44f 0x1>;
> + bits = <5 3>;
> + };
> };
>
> spmi_bus: spmi@fc4cf000 {
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 5/6] ARM: dts: msm8226: Add tsens node and related nvmem cells
2023-05-07 20:12 ` [PATCH 5/6] ARM: dts: msm8226: Add tsens node and related nvmem cells Matti Lehtimäki
2023-05-07 20:31 ` Luca Weiss
@ 2023-05-07 20:41 ` Dmitry Baryshkov
1 sibling, 0 replies; 23+ messages in thread
From: Dmitry Baryshkov @ 2023-05-07 20:41 UTC (permalink / raw)
To: Matti Lehtimäki, linux-arm-msm
Cc: ~postmarketos/upstreaming, phone-devel, Andy Gross,
Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
devicetree, linux-kernel
On 07/05/2023 23:12, Matti Lehtimäki wrote:
> Specify pre-parsed per-sensor calibration nvmem cells in the qfprom
> device node rather than parsing the whole data blob in the driver.
>
> Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com>
> ---
> arch/arm/boot/dts/qcom-msm8226.dtsi | 113 ++++++++++++++++++++++++++++
> 1 file changed, 113 insertions(+)
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
I did not manually check all the offsets, but they look sane to me.
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 6/6] ARM: dts: msm8226: Add thermal zones node
2023-05-07 20:12 ` [PATCH 6/6] ARM: dts: msm8226: Add thermal zones node Matti Lehtimäki
@ 2023-05-07 20:48 ` Dmitry Baryshkov
0 siblings, 0 replies; 23+ messages in thread
From: Dmitry Baryshkov @ 2023-05-07 20:48 UTC (permalink / raw)
To: Matti Lehtimäki, linux-arm-msm
Cc: ~postmarketos/upstreaming, phone-devel, Andy Gross,
Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
devicetree, linux-kernel
On 07/05/2023 23:12, Matti Lehtimäki wrote:
> Add thermal zones present on MSM8226 SoC.
>
> Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> ---
> arch/arm/boot/dts/qcom-msm8226.dtsi | 44 +++++++++++++++++++++++++++++
> 1 file changed, 44 insertions(+)
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 4/6] ARM: dts: msm8226: Add qfprom node
2023-05-07 20:12 ` [PATCH 4/6] ARM: dts: msm8226: Add qfprom node Matti Lehtimäki
2023-05-07 20:27 ` Luca Weiss
@ 2023-05-07 20:50 ` Dmitry Baryshkov
2023-05-10 13:58 ` Krzysztof Kozlowski
2 siblings, 0 replies; 23+ messages in thread
From: Dmitry Baryshkov @ 2023-05-07 20:50 UTC (permalink / raw)
To: Matti Lehtimäki, linux-arm-msm
Cc: ~postmarketos/upstreaming, phone-devel, Andy Gross,
Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
devicetree, linux-kernel
On 07/05/2023 23:12, Matti Lehtimäki wrote:
> Add missing QFPROM definition for MSM8226 SoC.
>
> Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com>
> ---
> arch/arm/boot/dts/qcom-msm8226.dtsi | 7 +++++++
> 1 file changed, 7 insertions(+)
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 2/6] dt-bindings: thermal: tsens: Add compatible for MSM8226
2023-05-07 20:12 ` [PATCH 2/6] dt-bindings: thermal: tsens: " Matti Lehtimäki
2023-05-07 20:22 ` Luca Weiss
@ 2023-05-07 21:25 ` Rob Herring
2023-05-10 13:57 ` Krzysztof Kozlowski
2023-06-05 14:39 ` Daniel Lezcano
3 siblings, 0 replies; 23+ messages in thread
From: Rob Herring @ 2023-05-07 21:25 UTC (permalink / raw)
To: Matti Lehtimäki
Cc: linux-pm, Daniel Lezcano, Thara Gopinath, linux-kernel,
phone-devel, Bjorn Andersson, linux-arm-msm, Andy Gross,
Krzysztof Kozlowski, Rafael J. Wysocki, Rob Herring,
~postmarketos/upstreaming, devicetree, Zhang Rui, Konrad Dybcio,
Amit Kucheria
On Sun, 07 May 2023 23:12:20 +0300, Matti Lehtimäki wrote:
> Qualcomm MSM8226 has tsens v0.1 block.
>
> Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com>
> ---
> Documentation/devicetree/bindings/thermal/qcom-tsens.yaml | 1 +
> 1 file changed, 1 insertion(+)
>
My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check'
on your patch (DT_CHECKER_FLAGS is new in v5.13):
yamllint warnings/errors:
dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-ep.example.dtb: pcie-ep@33800000: Unevaluated properties are not allowed ('assigned-clock-parents', 'assigned-clock-rates', 'assigned-clocks' were unexpected)
From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-ep.yaml
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/rockchip-isp1.example.dtb: camera@3c: port:endpoint:data-lanes: [[1]] is too short
From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/i2c/ovti,ov2685.yaml
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/i2c/ovti,ov2685.example.dtb: camera-sensor@3c: port:endpoint:data-lanes: [[1]] is too short
From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/i2c/ovti,ov2685.yaml
doc reference errors (make refcheckdocs):
Documentation/usb/gadget_uvc.rst: Documentation/userspace-api/media/v4l/pixfmt-packed.yuv.rst
MAINTAINERS: Documentation/devicetree/bindings/pwm/pwm-apple.yaml
See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20230507201225.89694-3-matti.lehtimaki@gmail.com
The base for the series is generally the latest rc1. A different dependency
should be noted in *this* patch.
If you already ran 'make dt_binding_check' and didn't see the above
error(s), then make sure 'yamllint' is installed and dt-schema is up to
date:
pip3 install dtschema --upgrade
Please check and re-submit after running the above command yourself. Note
that DT_SCHEMA_FILES can be set to your schema file to speed up checking
your schema. However, it must be unset to test all examples with your schema.
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 1/6] dt-bindings: nvmem: qfprom: Add compatible for MSM8226
2023-05-07 20:12 ` [PATCH 1/6] dt-bindings: nvmem: qfprom: Add compatible for MSM8226 Matti Lehtimäki
2023-05-07 20:19 ` Luca Weiss
@ 2023-05-07 21:25 ` Rob Herring
2023-05-08 9:04 ` Konrad Dybcio
2023-05-10 13:57 ` Krzysztof Kozlowski
2023-07-13 10:11 ` Srinivas Kandagatla
3 siblings, 1 reply; 23+ messages in thread
From: Rob Herring @ 2023-05-07 21:25 UTC (permalink / raw)
To: Matti Lehtimäki
Cc: Srinivas Kandagatla, phone-devel, linux-arm-msm, Rob Herring,
Andy Gross, Bjorn Andersson, ~postmarketos/upstreaming,
linux-kernel, devicetree, Krzysztof Kozlowski, Konrad Dybcio
On Sun, 07 May 2023 23:12:19 +0300, Matti Lehtimäki wrote:
> Document QFPROM compatible for MSM8226.
>
> Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com>
> ---
> Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml | 1 +
> 1 file changed, 1 insertion(+)
>
My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check'
on your patch (DT_CHECKER_FLAGS is new in v5.13):
yamllint warnings/errors:
dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-ep.example.dtb: pcie-ep@33800000: Unevaluated properties are not allowed ('assigned-clock-parents', 'assigned-clock-rates', 'assigned-clocks' were unexpected)
From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-ep.yaml
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/rockchip-isp1.example.dtb: camera@3c: port:endpoint:data-lanes: [[1]] is too short
From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/i2c/ovti,ov2685.yaml
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/i2c/ovti,ov2685.example.dtb: camera-sensor@3c: port:endpoint:data-lanes: [[1]] is too short
From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/i2c/ovti,ov2685.yaml
doc reference errors (make refcheckdocs):
Documentation/usb/gadget_uvc.rst: Documentation/userspace-api/media/v4l/pixfmt-packed.yuv.rst
MAINTAINERS: Documentation/devicetree/bindings/pwm/pwm-apple.yaml
See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20230507201225.89694-2-matti.lehtimaki@gmail.com
The base for the series is generally the latest rc1. A different dependency
should be noted in *this* patch.
If you already ran 'make dt_binding_check' and didn't see the above
error(s), then make sure 'yamllint' is installed and dt-schema is up to
date:
pip3 install dtschema --upgrade
Please check and re-submit after running the above command yourself. Note
that DT_SCHEMA_FILES can be set to your schema file to speed up checking
your schema. However, it must be unset to test all examples with your schema.
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 1/6] dt-bindings: nvmem: qfprom: Add compatible for MSM8226
2023-05-07 21:25 ` Rob Herring
@ 2023-05-08 9:04 ` Konrad Dybcio
0 siblings, 0 replies; 23+ messages in thread
From: Konrad Dybcio @ 2023-05-08 9:04 UTC (permalink / raw)
To: Rob Herring, Matti Lehtimäki
Cc: Srinivas Kandagatla, phone-devel, linux-arm-msm, Rob Herring,
Andy Gross, Bjorn Andersson, ~postmarketos/upstreaming,
linux-kernel, devicetree, Krzysztof Kozlowski
On 7.05.2023 23:25, Rob Herring wrote:
>
> On Sun, 07 May 2023 23:12:19 +0300, Matti Lehtimäki wrote:
>> Document QFPROM compatible for MSM8226.
>>
>> Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com>
>> ---
>> Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml | 1 +
>> 1 file changed, 1 insertion(+)
>>
>
> My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check'
> on your patch (DT_CHECKER_FLAGS is new in v5.13):
>
> yamllint warnings/errors:
>
> dtschema/dtc warnings/errors:
> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-ep.example.dtb: pcie-ep@33800000: Unevaluated properties are not allowed ('assigned-clock-parents', 'assigned-clock-rates', 'assigned-clocks' were unexpected)
> From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie-ep.yaml
> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/rockchip-isp1.example.dtb: camera@3c: port:endpoint:data-lanes: [[1]] is too short
> From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/i2c/ovti,ov2685.yaml
> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/i2c/ovti,ov2685.example.dtb: camera-sensor@3c: port:endpoint:data-lanes: [[1]] is too short
> From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/i2c/ovti,ov2685.yaml
>
> doc reference errors (make refcheckdocs):
> Documentation/usb/gadget_uvc.rst: Documentation/userspace-api/media/v4l/pixfmt-packed.yuv.rst
> MAINTAINERS: Documentation/devicetree/bindings/pwm/pwm-apple.yaml
Rob, your bot seems to have picked up a false positive
Konrad
>
> See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20230507201225.89694-2-matti.lehtimaki@gmail.com
>
> The base for the series is generally the latest rc1. A different dependency
> should be noted in *this* patch.
>
> If you already ran 'make dt_binding_check' and didn't see the above
> error(s), then make sure 'yamllint' is installed and dt-schema is up to
> date:
>
> pip3 install dtschema --upgrade
>
> Please check and re-submit after running the above command yourself. Note
> that DT_SCHEMA_FILES can be set to your schema file to speed up checking
> your schema. However, it must be unset to test all examples with your schema.
>
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 1/6] dt-bindings: nvmem: qfprom: Add compatible for MSM8226
2023-05-07 20:12 ` [PATCH 1/6] dt-bindings: nvmem: qfprom: Add compatible for MSM8226 Matti Lehtimäki
2023-05-07 20:19 ` Luca Weiss
2023-05-07 21:25 ` Rob Herring
@ 2023-05-10 13:57 ` Krzysztof Kozlowski
2023-07-13 10:11 ` Srinivas Kandagatla
3 siblings, 0 replies; 23+ messages in thread
From: Krzysztof Kozlowski @ 2023-05-10 13:57 UTC (permalink / raw)
To: Matti Lehtimäki, linux-arm-msm
Cc: ~postmarketos/upstreaming, phone-devel, Andy Gross,
Bjorn Andersson, Konrad Dybcio, Srinivas Kandagatla, Rob Herring,
Krzysztof Kozlowski, devicetree, linux-kernel
On 07/05/2023 22:12, Matti Lehtimäki wrote:
> Document QFPROM compatible for MSM8226.
>
> Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com>
> ---
> Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml | 1 +
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Bot's errors can be ignored.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 2/6] dt-bindings: thermal: tsens: Add compatible for MSM8226
2023-05-07 20:12 ` [PATCH 2/6] dt-bindings: thermal: tsens: " Matti Lehtimäki
2023-05-07 20:22 ` Luca Weiss
2023-05-07 21:25 ` Rob Herring
@ 2023-05-10 13:57 ` Krzysztof Kozlowski
2023-06-05 14:39 ` Daniel Lezcano
3 siblings, 0 replies; 23+ messages in thread
From: Krzysztof Kozlowski @ 2023-05-10 13:57 UTC (permalink / raw)
To: Matti Lehtimäki, linux-arm-msm
Cc: ~postmarketos/upstreaming, phone-devel, Amit Kucheria,
Thara Gopinath, Andy Gross, Bjorn Andersson, Konrad Dybcio,
Rafael J. Wysocki, Daniel Lezcano, Zhang Rui, Rob Herring,
Krzysztof Kozlowski, linux-pm, devicetree, linux-kernel
On 07/05/2023 22:12, Matti Lehtimäki wrote:
> Qualcomm MSM8226 has tsens v0.1 block.
>
> Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com>
> ---
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Bot's errors can be ignored.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 4/6] ARM: dts: msm8226: Add qfprom node
2023-05-07 20:12 ` [PATCH 4/6] ARM: dts: msm8226: Add qfprom node Matti Lehtimäki
2023-05-07 20:27 ` Luca Weiss
2023-05-07 20:50 ` Dmitry Baryshkov
@ 2023-05-10 13:58 ` Krzysztof Kozlowski
2023-05-10 14:14 ` Dmitry Baryshkov
2 siblings, 1 reply; 23+ messages in thread
From: Krzysztof Kozlowski @ 2023-05-10 13:58 UTC (permalink / raw)
To: Matti Lehtimäki, linux-arm-msm
Cc: ~postmarketos/upstreaming, phone-devel, Andy Gross,
Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
devicetree, linux-kernel
On 07/05/2023 22:12, Matti Lehtimäki wrote:
> Add missing QFPROM definition for MSM8226 SoC.
>
> Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com>
> ---
> arch/arm/boot/dts/qcom-msm8226.dtsi | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/arch/arm/boot/dts/qcom-msm8226.dtsi b/arch/arm/boot/dts/qcom-msm8226.dtsi
> index c373081bc21b..c34b8f3139ae 100644
> --- a/arch/arm/boot/dts/qcom-msm8226.dtsi
> +++ b/arch/arm/boot/dts/qcom-msm8226.dtsi
> @@ -505,6 +505,13 @@ restart@fc4ab000 {
> reg = <0xfc4ab000 0x4>;
> };
>
> + qfprom: qfprom@fc4bc000 {
We usually call this efuse@
qfprom is Qualcomm specific.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 4/6] ARM: dts: msm8226: Add qfprom node
2023-05-10 13:58 ` Krzysztof Kozlowski
@ 2023-05-10 14:14 ` Dmitry Baryshkov
0 siblings, 0 replies; 23+ messages in thread
From: Dmitry Baryshkov @ 2023-05-10 14:14 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Matti Lehtimäki, linux-arm-msm, ~postmarketos/upstreaming,
phone-devel, Andy Gross, Bjorn Andersson, Konrad Dybcio,
Rob Herring, Krzysztof Kozlowski, devicetree, linux-kernel
On Wed, 10 May 2023 at 16:59, Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org> wrote:
>
> On 07/05/2023 22:12, Matti Lehtimäki wrote:
> > Add missing QFPROM definition for MSM8226 SoC.
> >
> > Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com>
> > ---
> > arch/arm/boot/dts/qcom-msm8226.dtsi | 7 +++++++
> > 1 file changed, 7 insertions(+)
> >
> > diff --git a/arch/arm/boot/dts/qcom-msm8226.dtsi b/arch/arm/boot/dts/qcom-msm8226.dtsi
> > index c373081bc21b..c34b8f3139ae 100644
> > --- a/arch/arm/boot/dts/qcom-msm8226.dtsi
> > +++ b/arch/arm/boot/dts/qcom-msm8226.dtsi
> > @@ -505,6 +505,13 @@ restart@fc4ab000 {
> > reg = <0xfc4ab000 0x4>;
> > };
> >
> > + qfprom: qfprom@fc4bc000 {
>
> We usually call this efuse@
We have 5 efuse@ and 14 qfprom@ (next/master). But that probably means
that we should rename existing qfprom@ to efuse@.
>
> qfprom is Qualcomm specific.
>
> Best regards,
> Krzysztof
>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 2/6] dt-bindings: thermal: tsens: Add compatible for MSM8226
2023-05-07 20:12 ` [PATCH 2/6] dt-bindings: thermal: tsens: " Matti Lehtimäki
` (2 preceding siblings ...)
2023-05-10 13:57 ` Krzysztof Kozlowski
@ 2023-06-05 14:39 ` Daniel Lezcano
3 siblings, 0 replies; 23+ messages in thread
From: Daniel Lezcano @ 2023-06-05 14:39 UTC (permalink / raw)
To: Matti Lehtimäki, linux-arm-msm
Cc: ~postmarketos/upstreaming, phone-devel, Amit Kucheria,
Thara Gopinath, Andy Gross, Bjorn Andersson, Konrad Dybcio,
Rafael J. Wysocki, Zhang Rui, Rob Herring, Krzysztof Kozlowski,
linux-pm, devicetree, linux-kernel
On 07/05/2023 22:12, Matti Lehtimäki wrote:
> Qualcomm MSM8226 has tsens v0.1 block.
>
> Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com>
> ---
Applied, thanks
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: (subset) [PATCH 0/6] Enable MSM8226 TSENS support
2023-05-07 20:12 [PATCH 0/6] Enable MSM8226 TSENS support Matti Lehtimäki
` (4 preceding siblings ...)
2023-05-07 20:12 ` [PATCH 6/6] ARM: dts: msm8226: Add thermal zones node Matti Lehtimäki
@ 2023-06-13 23:48 ` Bjorn Andersson
5 siblings, 0 replies; 23+ messages in thread
From: Bjorn Andersson @ 2023-06-13 23:48 UTC (permalink / raw)
To: linux-arm-msm, Matti Lehtimäki
Cc: devicetree, linux-kernel, phone-devel, Amit Kucheria,
Srinivas Kandagatla, Zhang Rui, linux-pm,
~postmarketos/upstreaming, Konrad Dybcio
On Sun, 7 May 2023 23:12:18 +0300, Matti Lehtimäki wrote:
> Add support for tsens in MSM8226. Add qfprom compatible for MSM8226.
> Add device tree nodes for qfprom, tsens and thermal zones for MSM8226.
>
> Matti Lehtimäki (6):
> dt-bindings: nvmem: qfprom: Add compatible for MSM8226
> dt-bindings: thermal: tsens: Add compatible for MSM8226
> thermal/drivers/qcom/tsens-v0_1: Add support for MSM8226
> ARM: dts: msm8226: Add qfprom node
> ARM: dts: msm8226: Add tsens node and related nvmem cells
> ARM: dts: msm8226: Add thermal zones node
>
> [...]
Applied, thanks!
[4/6] ARM: dts: msm8226: Add qfprom node
commit: 16a9fa7ab27b69be3a34b97ff8c7b034fcc73b88
[5/6] ARM: dts: msm8226: Add tsens node and related nvmem cells
commit: 0f8861c9fc7cc9af6d6f65d6657aa9cf2531b29c
[6/6] ARM: dts: msm8226: Add thermal zones node
commit: 8d4236f62f3acbc6a0def79106c13fe7344d8238
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH 1/6] dt-bindings: nvmem: qfprom: Add compatible for MSM8226
2023-05-07 20:12 ` [PATCH 1/6] dt-bindings: nvmem: qfprom: Add compatible for MSM8226 Matti Lehtimäki
` (2 preceding siblings ...)
2023-05-10 13:57 ` Krzysztof Kozlowski
@ 2023-07-13 10:11 ` Srinivas Kandagatla
3 siblings, 0 replies; 23+ messages in thread
From: Srinivas Kandagatla @ 2023-07-13 10:11 UTC (permalink / raw)
To: Matti Lehtimäki, linux-arm-msm
Cc: ~postmarketos/upstreaming, phone-devel, Andy Gross,
Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
devicetree, linux-kernel
On 07/05/2023 21:12, Matti Lehtimäki wrote:
> Document QFPROM compatible for MSM8226.
>
> Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com>
> ---
Applied thanks,
--srini
> 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 2173fe82317d..0baf7819ab46 100644
> --- a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml
> +++ b/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml
> @@ -20,6 +20,7 @@ properties:
> - qcom,apq8084-qfprom
> - qcom,ipq8064-qfprom
> - qcom,ipq8074-qfprom
> + - qcom,msm8226-qfprom
> - qcom,msm8916-qfprom
> - qcom,msm8974-qfprom
> - qcom,msm8976-qfprom
^ permalink raw reply [flat|nested] 23+ messages in thread
end of thread, other threads:[~2023-07-13 10:11 UTC | newest]
Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-07 20:12 [PATCH 0/6] Enable MSM8226 TSENS support Matti Lehtimäki
2023-05-07 20:12 ` [PATCH 1/6] dt-bindings: nvmem: qfprom: Add compatible for MSM8226 Matti Lehtimäki
2023-05-07 20:19 ` Luca Weiss
2023-05-07 21:25 ` Rob Herring
2023-05-08 9:04 ` Konrad Dybcio
2023-05-10 13:57 ` Krzysztof Kozlowski
2023-07-13 10:11 ` Srinivas Kandagatla
2023-05-07 20:12 ` [PATCH 2/6] dt-bindings: thermal: tsens: " Matti Lehtimäki
2023-05-07 20:22 ` Luca Weiss
2023-05-07 21:25 ` Rob Herring
2023-05-10 13:57 ` Krzysztof Kozlowski
2023-06-05 14:39 ` Daniel Lezcano
2023-05-07 20:12 ` [PATCH 4/6] ARM: dts: msm8226: Add qfprom node Matti Lehtimäki
2023-05-07 20:27 ` Luca Weiss
2023-05-07 20:50 ` Dmitry Baryshkov
2023-05-10 13:58 ` Krzysztof Kozlowski
2023-05-10 14:14 ` Dmitry Baryshkov
2023-05-07 20:12 ` [PATCH 5/6] ARM: dts: msm8226: Add tsens node and related nvmem cells Matti Lehtimäki
2023-05-07 20:31 ` Luca Weiss
2023-05-07 20:41 ` Dmitry Baryshkov
2023-05-07 20:12 ` [PATCH 6/6] ARM: dts: msm8226: Add thermal zones node Matti Lehtimäki
2023-05-07 20:48 ` Dmitry Baryshkov
2023-06-13 23:48 ` (subset) [PATCH 0/6] Enable MSM8226 TSENS support Bjorn Andersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).