All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/5] Add Qcom PM6125 PMIC and use in Sony Xperia Seine PDX201
@ 2022-09-26 19:01 Marijn Suijten
  2022-09-26 19:01 ` [PATCH v4 1/5] dt-bindings: mfd: qcom-spmi-pmic: Add pm6125 compatible Marijn Suijten
                   ` (5 more replies)
  0 siblings, 6 replies; 16+ messages in thread
From: Marijn Suijten @ 2022-09-26 19:01 UTC (permalink / raw)
  To: phone-devel, Andy Gross, Bjorn Andersson, Konrad Dybcio
  Cc: ~postmarketos/upstreaming, AngeloGioacchino Del Regno,
	Martin Botka, Jami Kettunen, Marijn Suijten, Lee Jones,
	Rob Herring, Krzysztof Kozlowski, Stephen Boyd, linux-arm-msm,
	devicetree, linux-kernel

This series adds initial support for the PM6125 PMIC, and its power key
handling and thermal monitoring capabilities are configured for Sony's
PDX201 (Xperia 10II).

One patch for pm660 is included to fix a node address mismatch with its
reg field.

Changes since v3:
- Rebased on next-20220923 to fix (diff-context) conflicts with:
  - https://lore.kernel.org/all/20220902111055.106814-1-luca.weiss@fairphone.com/
  - https://lore.kernel.org/all/20220912061746.6311-35-krzysztof.kozlowski@linaro.org/

v3: https://lore.kernel.org/linux-arm-msm/20220919204826.215845-1-marijn.suijten@somainline.org/T/#t

Changes since v2:
- Rebased on v6.0-rc6 to drop dependent DT patches;
- Dropped iio patch which has already been picked into Jonathan's tree;
- Added qcom,pm6125 compatible in new yaml-ified SPMI-PMIC dt-bindings.

v2: https://lore.kernel.org/linux-arm-msm/20220805135729.1037079-1-marijn.suijten@somainline.org/T/#u

Changes since v1:
- Dropped both pinctrl patches that have already been applied;
- Add -us suffix to qcom,hw-settle-time properties on ADC TM5 nodes
  (this suffix is not present on regular ADC5/VADC nodes);
- Add -state suffix to pm6125_gpio pinctrl nodes;
- Use PMIC_GPIO_FUNC_NORMAL instead of the string-literal "normal";
- Removed #address-cells and #size-cells from empty pmic@1 node;
- Removed ADC5_AMUX_THM3 / ADC5_GPIO2_100K_PU channels from the ADC5
  patch, these are unused on my board and hence untested.

v1: https://lore.kernel.org/phone-devel/20220511220613.1015472-1-marijn.suijten@somainline.org/T/#u

Marijn Suijten (5):
  dt-bindings: mfd: qcom-spmi-pmic: Add pm6125 compatible
  arm64: dts: qcom: pm660: Use unique ADC5_VCOIN address in node name
  arm64: dts: qcom: Add PM6125 PMIC
  arm64: dts: qcom: sm6125-seine: Include PM6125 and configure PON
  arm64: dts: qcom: sm6125-seine: Configure additional trinket
    thermistors

 .../bindings/mfd/qcom,spmi-pmic.yaml          |   1 +
 arch/arm64/boot/dts/qcom/pm6125.dtsi          | 154 +++++++++++++++++
 arch/arm64/boot/dts/qcom/pm660.dtsi           |   2 +-
 .../qcom/sm6125-sony-xperia-seine-pdx201.dts  | 162 +++++++++++++++++-
 4 files changed, 317 insertions(+), 2 deletions(-)
 create mode 100644 arch/arm64/boot/dts/qcom/pm6125.dtsi

--
2.37.3


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [PATCH v4 1/5] dt-bindings: mfd: qcom-spmi-pmic: Add pm6125 compatible
  2022-09-26 19:01 [PATCH v4 0/5] Add Qcom PM6125 PMIC and use in Sony Xperia Seine PDX201 Marijn Suijten
@ 2022-09-26 19:01 ` Marijn Suijten
  2022-09-28  7:35   ` Krzysztof Kozlowski
  2022-09-26 19:01 ` [PATCH v4 2/5] arm64: dts: qcom: pm660: Use unique ADC5_VCOIN address in node name Marijn Suijten
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 16+ messages in thread
From: Marijn Suijten @ 2022-09-26 19:01 UTC (permalink / raw)
  To: phone-devel, Andy Gross, Bjorn Andersson, Konrad Dybcio
  Cc: ~postmarketos/upstreaming, AngeloGioacchino Del Regno,
	Martin Botka, Jami Kettunen, Marijn Suijten, Lee Jones,
	Rob Herring, Krzysztof Kozlowski, Stephen Boyd, linux-arm-msm,
	devicetree, linux-kernel

Document support for the pm6125, typically paired with the sm6125 SoC.

Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
---
 Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml
index 6a3e3ede1ede..a5edab6f2e40 100644
--- a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml
+++ b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml
@@ -33,6 +33,7 @@ properties:
   compatible:
     items:
       - enum:
+          - qcom,pm6125
           - qcom,pm6150
           - qcom,pm6150l
           - qcom,pm6350
-- 
2.37.3


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH v4 2/5] arm64: dts: qcom: pm660: Use unique ADC5_VCOIN address in node name
  2022-09-26 19:01 [PATCH v4 0/5] Add Qcom PM6125 PMIC and use in Sony Xperia Seine PDX201 Marijn Suijten
  2022-09-26 19:01 ` [PATCH v4 1/5] dt-bindings: mfd: qcom-spmi-pmic: Add pm6125 compatible Marijn Suijten
@ 2022-09-26 19:01 ` Marijn Suijten
  2022-09-26 19:01 ` [PATCH v4 3/5] arm64: dts: qcom: Add PM6125 PMIC Marijn Suijten
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 16+ messages in thread
From: Marijn Suijten @ 2022-09-26 19:01 UTC (permalink / raw)
  To: phone-devel, Andy Gross, Bjorn Andersson, Konrad Dybcio
  Cc: ~postmarketos/upstreaming, AngeloGioacchino Del Regno,
	Martin Botka, Jami Kettunen, Marijn Suijten, Lee Jones,
	Rob Herring, Krzysztof Kozlowski, Stephen Boyd, linux-arm-msm,
	devicetree, linux-kernel

The register address in the node name is shadowing vph_pwr@83, whereas
the ADC5_VCOIN register resolves to 0x85.  Fix this copy-paste
discrepancy.

Fixes: 4bf097540506 ("arm64: dts: qcom: pm660: Add VADC and temp alarm nodes")
Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
---
 arch/arm64/boot/dts/qcom/pm660.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/qcom/pm660.dtsi b/arch/arm64/boot/dts/qcom/pm660.dtsi
index e1622b16c08b..02a69ac0149b 100644
--- a/arch/arm64/boot/dts/qcom/pm660.dtsi
+++ b/arch/arm64/boot/dts/qcom/pm660.dtsi
@@ -163,7 +163,7 @@ vadc_vph_pwr: vph_pwr@83 {
 				qcom,pre-scaling = <1 3>;
 			};
 
-			vcoin: vcoin@83 {
+			vcoin: vcoin@85 {
 				reg = <ADC5_VCOIN>;
 				qcom,decimation = <1024>;
 				qcom,pre-scaling = <1 3>;
-- 
2.37.3


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH v4 3/5] arm64: dts: qcom: Add PM6125 PMIC
  2022-09-26 19:01 [PATCH v4 0/5] Add Qcom PM6125 PMIC and use in Sony Xperia Seine PDX201 Marijn Suijten
  2022-09-26 19:01 ` [PATCH v4 1/5] dt-bindings: mfd: qcom-spmi-pmic: Add pm6125 compatible Marijn Suijten
  2022-09-26 19:01 ` [PATCH v4 2/5] arm64: dts: qcom: pm660: Use unique ADC5_VCOIN address in node name Marijn Suijten
@ 2022-09-26 19:01 ` Marijn Suijten
  2022-09-26 19:01 ` [PATCH v4 4/5] arm64: dts: qcom: sm6125-seine: Include PM6125 and configure PON Marijn Suijten
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 16+ messages in thread
From: Marijn Suijten @ 2022-09-26 19:01 UTC (permalink / raw)
  To: phone-devel, Andy Gross, Bjorn Andersson, Konrad Dybcio
  Cc: ~postmarketos/upstreaming, AngeloGioacchino Del Regno,
	Martin Botka, Jami Kettunen, Marijn Suijten, Lee Jones,
	Rob Herring, Krzysztof Kozlowski, Stephen Boyd, linux-arm-msm,
	devicetree, linux-kernel

This PMIC is commonly used on boards with an SM6125 SoC and looks very
similar in layout to the PM6150.

Downstream declares more nodes to be available, but these have been
omitted from this patch: the pwm/lpg block is unused on my reference
device making it impossible to test/validate, and the spmi-clkdiv does
not have a single device-tree binding using this driver yet, hence
inclusion is better postponed until ie. audio which uses these clocks is
brought up.

Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
---
 arch/arm64/boot/dts/qcom/pm6125.dtsi | 154 +++++++++++++++++++++++++++
 1 file changed, 154 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/pm6125.dtsi

diff --git a/arch/arm64/boot/dts/qcom/pm6125.dtsi b/arch/arm64/boot/dts/qcom/pm6125.dtsi
new file mode 100644
index 000000000000..1c8ccda26ffb
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/pm6125.dtsi
@@ -0,0 +1,154 @@
+// SPDX-License-Identifier: BSD-3-Clause
+
+#include <dt-bindings/iio/qcom,spmi-vadc.h>
+#include <dt-bindings/input/input.h>
+#include <dt-bindings/input/linux-event-codes.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/spmi/spmi.h>
+
+/ {
+	thermal-zones {
+		pm6125-thermal {
+			polling-delay-passive = <100>;
+			polling-delay = <0>;
+
+			thermal-sensors = <&pm6125_temp>;
+
+			trips {
+				trip0 {
+					temperature = <95000>;
+					hysteresis = <0>;
+					type = "passive";
+				};
+
+				trip1 {
+					temperature = <115000>;
+					hysteresis = <0>;
+					type = "hot";
+				};
+
+				trip2 {
+					temperature = <145000>;
+					hysteresis = <0>;
+					type = "critical";
+				};
+			};
+		};
+	};
+};
+
+&spmi_bus {
+	pmic@0 {
+		compatible = "qcom,pm6125", "qcom,spmi-pmic";
+		reg = <0x0 SPMI_USID>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		pm6125_pon: pon@800 {
+			compatible = "qcom,pm8998-pon";
+			reg = <0x800>;
+			mode-bootloader = <0x2>;
+			mode-recovery = <0x1>;
+
+			pon_pwrkey: pwrkey {
+				compatible = "qcom,pm8941-pwrkey";
+				interrupts = <0x0 0x8 0x0 IRQ_TYPE_EDGE_BOTH>;
+				debounce = <15625>;
+				linux,code = <KEY_POWER>;
+				bias-pull-up;
+				status = "disabled";
+			};
+
+			pon_resin: resin {
+				compatible = "qcom,pm8941-resin";
+				interrupts = <0x0 0x8 0x1 IRQ_TYPE_EDGE_BOTH>;
+				debounce = <15625>;
+				bias-pull-up;
+				status = "disabled";
+			};
+		};
+
+		pm6125_temp: temp-alarm@2400 {
+			compatible = "qcom,spmi-temp-alarm";
+			reg = <0x2400>;
+			interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
+			io-channels = <&pm6125_adc ADC5_DIE_TEMP>;
+			io-channel-names = "thermal";
+			#thermal-sensor-cells = <0>;
+		};
+
+		pm6125_adc: adc@3100 {
+			compatible = "qcom,spmi-adc5";
+			reg = <0x3100>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
+			#io-channel-cells = <1>;
+
+			ref-gnd@0 {
+				reg = <ADC5_REF_GND>;
+				qcom,pre-scaling = <1 1>;
+			};
+
+			vref-1p25@1 {
+				reg = <ADC5_1P25VREF>;
+				qcom,pre-scaling = <1 1>;
+			};
+
+			die-temp@6 {
+				reg = <ADC5_DIE_TEMP>;
+				qcom,pre-scaling = <1 1>;
+			};
+
+			vph-pwr@83 {
+				reg = <ADC5_VPH_PWR>;
+				qcom,pre-scaling = <1 3>;
+			};
+
+			vcoin@85 {
+				reg = <ADC5_VCOIN>;
+				qcom,pre-scaling = <1 3>;
+			};
+
+			xo-therm@4c {
+				reg = <ADC5_XO_THERM_100K_PU>;
+				qcom,pre-scaling = <1 1>;
+				qcom,hw-settle-time = <200>;
+				qcom,ratiometric;
+			};
+		};
+
+		pm6125_adc_tm: adc-tm@3500 {
+			compatible = "qcom,spmi-adc-tm5";
+			reg = <0x3500>;
+			interrupts = <0x0 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			#thermal-sensor-cells = <1>;
+			status = "disabled";
+		};
+
+		pm6125_rtc: rtc@6000 {
+			compatible = "qcom,pm8941-rtc";
+			reg = <0x6000>, <0x6100>;
+			reg-names = "rtc", "alarm";
+			interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
+			status = "disabled";
+		};
+
+		pm6125_gpio: gpio@c000 {
+			compatible = "qcom,pm6125-gpio", "qcom,spmi-gpio";
+			reg = <0xc000>;
+			gpio-controller;
+			gpio-ranges = <&pm6125_gpio 0 0 9>;
+			#gpio-cells = <2>;
+			interrupt-controller;
+			#interrupt-cells = <2>;
+		};
+	};
+
+	pmic@1 {
+		compatible = "qcom,pm6125", "qcom,spmi-pmic";
+		reg = <0x1 SPMI_USID>;
+	};
+};
-- 
2.37.3


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH v4 4/5] arm64: dts: qcom: sm6125-seine: Include PM6125 and configure PON
  2022-09-26 19:01 [PATCH v4 0/5] Add Qcom PM6125 PMIC and use in Sony Xperia Seine PDX201 Marijn Suijten
                   ` (2 preceding siblings ...)
  2022-09-26 19:01 ` [PATCH v4 3/5] arm64: dts: qcom: Add PM6125 PMIC Marijn Suijten
@ 2022-09-26 19:01 ` Marijn Suijten
  2022-09-26 19:01 ` [PATCH v4 5/5] arm64: dts: qcom: sm6125-seine: Configure additional trinket thermistors Marijn Suijten
  2022-11-07  3:12 ` [PATCH v4 0/5] Add Qcom PM6125 PMIC and use in Sony Xperia Seine PDX201 Bjorn Andersson
  5 siblings, 0 replies; 16+ messages in thread
From: Marijn Suijten @ 2022-09-26 19:01 UTC (permalink / raw)
  To: phone-devel, Andy Gross, Bjorn Andersson, Konrad Dybcio
  Cc: ~postmarketos/upstreaming, AngeloGioacchino Del Regno,
	Martin Botka, Jami Kettunen, Marijn Suijten, Lee Jones,
	Rob Herring, Krzysztof Kozlowski, Stephen Boyd, linux-arm-msm,
	devicetree, linux-kernel

The Sony Xperia Seine board uses the PM6125; include it and configure
the PON buttons that provide the power and volume-up key.

Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
---
 .../boot/dts/qcom/sm6125-sony-xperia-seine-pdx201.dts | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/qcom/sm6125-sony-xperia-seine-pdx201.dts b/arch/arm64/boot/dts/qcom/sm6125-sony-xperia-seine-pdx201.dts
index 6a8b88cc4385..684c3ae6668f 100644
--- a/arch/arm64/boot/dts/qcom/sm6125-sony-xperia-seine-pdx201.dts
+++ b/arch/arm64/boot/dts/qcom/sm6125-sony-xperia-seine-pdx201.dts
@@ -6,8 +6,8 @@
 /dts-v1/;
 
 #include "sm6125.dtsi"
+#include "pm6125.dtsi"
 #include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
 #include <dt-bindings/input/gpio-keys.h>
 
 / {
@@ -86,6 +86,15 @@ &hsusb_phy1 {
 	status = "okay";
 };
 
+&pon_pwrkey {
+	status = "okay";
+};
+
+&pon_resin {
+	status = "okay";
+	linux,code = <KEY_VOLUMEUP>;
+};
+
 &sdc2_off_state {
 	sd-cd-pins {
 		pins = "gpio98";
-- 
2.37.3


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH v4 5/5] arm64: dts: qcom: sm6125-seine: Configure additional trinket thermistors
  2022-09-26 19:01 [PATCH v4 0/5] Add Qcom PM6125 PMIC and use in Sony Xperia Seine PDX201 Marijn Suijten
                   ` (3 preceding siblings ...)
  2022-09-26 19:01 ` [PATCH v4 4/5] arm64: dts: qcom: sm6125-seine: Include PM6125 and configure PON Marijn Suijten
@ 2022-09-26 19:01 ` Marijn Suijten
  2022-11-07  3:12 ` [PATCH v4 0/5] Add Qcom PM6125 PMIC and use in Sony Xperia Seine PDX201 Bjorn Andersson
  5 siblings, 0 replies; 16+ messages in thread
From: Marijn Suijten @ 2022-09-26 19:01 UTC (permalink / raw)
  To: phone-devel, Andy Gross, Bjorn Andersson, Konrad Dybcio
  Cc: ~postmarketos/upstreaming, AngeloGioacchino Del Regno,
	Martin Botka, Jami Kettunen, Marijn Suijten, Lee Jones,
	Rob Herring, Krzysztof Kozlowski, Stephen Boyd, linux-arm-msm,
	devicetree, linux-kernel

In addition to PMIC-specific (pm6125) thermistors downstream extends
this set with the rf-pa0/rf-pa1, quiet, camera-flash and UFS/eMMC
thermistors in sm6125 (trinket) board and seine-specific DT files.  All
thermistors report sensible temperature readings in userspace.

The sensors are also added to their respective Thermal Monitor node,
with thermal zones to match where applicable: emmc-ufs and camera-flash
are not available on the TM5 block, hence cannot be configured with a
tripping point and will not have a thermal zone.

Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
---
 .../qcom/sm6125-sony-xperia-seine-pdx201.dts  | 151 ++++++++++++++++++
 1 file changed, 151 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sm6125-sony-xperia-seine-pdx201.dts b/arch/arm64/boot/dts/qcom/sm6125-sony-xperia-seine-pdx201.dts
index 684c3ae6668f..6361dda83124 100644
--- a/arch/arm64/boot/dts/qcom/sm6125-sony-xperia-seine-pdx201.dts
+++ b/arch/arm64/boot/dts/qcom/sm6125-sony-xperia-seine-pdx201.dts
@@ -9,6 +9,7 @@
 #include "pm6125.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/gpio-keys.h>
+#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
 
 / {
 	/* required for bootloader to select correct board */
@@ -80,12 +81,162 @@ cmdline_mem: memory@ffd00000 {
 			no-map;
 		};
 	};
+
+	thermal-zones {
+		rf-pa0-thermal {
+			polling-delay-passive = <0>;
+			polling-delay = <0>;
+			thermal-sensors = <&pm6125_adc_tm 0>;
+
+			trips {
+				active-config0 {
+					temperature = <125000>;
+					hysteresis = <1000>;
+					type = "critical";
+				};
+			};
+		};
+
+		quiet-thermal {
+			polling-delay-passive = <0>;
+			polling-delay = <5000>;
+			thermal-sensors = <&pm6125_adc_tm 1>;
+
+			trips {
+				active-config0 {
+					temperature = <125000>;
+					hysteresis = <1000>;
+					type = "critical";
+				};
+			};
+		};
+
+		xo-thermal {
+			polling-delay-passive = <0>;
+			polling-delay = <0>;
+			thermal-sensors = <&pm6125_adc_tm 2>;
+
+			trips {
+				active-config0 {
+					temperature = <125000>;
+					hysteresis = <1000>;
+					type = "critical";
+				};
+			};
+		};
+
+		rf-pa1-thermal {
+			polling-delay-passive = <0>;
+			polling-delay = <0>;
+			thermal-sensors = <&pm6125_adc_tm 3>;
+
+			trips {
+				active-config0 {
+					temperature = <125000>;
+					hysteresis = <1000>;
+					type = "critical";
+				};
+			};
+		};
+	};
 };
 
 &hsusb_phy1 {
 	status = "okay";
 };
 
+&pm6125_adc {
+	pinctrl-names = "default";
+	pinctrl-0 = <&camera_flash_therm &emmc_ufs_therm &rf_pa1_therm>;
+
+	rf-pa0-therm@4d {
+		reg = <ADC5_AMUX_THM1_100K_PU>;
+		qcom,ratiometric;
+		qcom,hw-settle-time = <200>;
+		qcom,pre-scaling = <1 1>;
+	};
+
+	quiet-therm@4e {
+		reg = <ADC5_AMUX_THM2_100K_PU>;
+		qcom,ratiometric;
+		qcom,hw-settle-time = <200>;
+		qcom,pre-scaling = <1 1>;
+	};
+
+	camera-flash-therm@52 {
+		reg = <ADC5_GPIO1_100K_PU>;
+		qcom,ratiometric;
+		qcom,hw-settle-time = <200>;
+		qcom,pre-scaling = <1 1>;
+	};
+
+	emmc-ufs-therm@54 {
+		reg = <ADC5_GPIO3_100K_PU>;
+		qcom,ratiometric;
+		qcom,hw-settle-time = <200>;
+		qcom,pre-scaling = <1 1>;
+	};
+
+	rf-pa1-therm@55 {
+		reg = <ADC5_GPIO4_100K_PU>;
+		qcom,ratiometric;
+		qcom,hw-settle-time = <200>;
+		qcom,pre-scaling = <1 1>;
+	};
+};
+
+&pm6125_adc_tm {
+	status = "okay";
+
+	rf-pa0-therm@0 {
+		reg = <0>;
+		io-channels = <&pm6125_adc ADC5_AMUX_THM1_100K_PU>;
+		qcom,ratiometric;
+		qcom,hw-settle-time-us = <200>;
+	};
+
+	quiet-therm@1 {
+		reg = <1>;
+		io-channels = <&pm6125_adc ADC5_AMUX_THM2_100K_PU>;
+		qcom,ratiometric;
+		qcom,hw-settle-time-us = <200>;
+	};
+
+	xo-therm@2 {
+		reg = <2>;
+		io-channels = <&pm6125_adc ADC5_XO_THERM_100K_PU>;
+		qcom,ratiometric;
+		qcom,hw-settle-time-us = <200>;
+	};
+
+	rf-pa1-therm@3 {
+		reg = <3>;
+		io-channels = <&pm6125_adc ADC5_GPIO4_100K_PU>;
+		qcom,ratiometric;
+		qcom,hw-settle-time-us = <200>;
+	};
+};
+
+&pm6125_gpio {
+	camera_flash_therm: camera-flash-therm-state {
+		pins = "gpio3";
+		function = PMIC_GPIO_FUNC_NORMAL;
+		bias-high-impedance;
+	};
+
+	emmc_ufs_therm: emmc-ufs-therm-state {
+		pins = "gpio6";
+		function = PMIC_GPIO_FUNC_NORMAL;
+		bias-high-impedance;
+	};
+
+	rf_pa1_therm: rf-pa1-therm-state {
+		pins = "gpio7";
+		function = PMIC_GPIO_FUNC_NORMAL;
+		bias-high-impedance;
+	};
+};
+
 &pon_pwrkey {
 	status = "okay";
 };
-- 
2.37.3


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* Re: [PATCH v4 1/5] dt-bindings: mfd: qcom-spmi-pmic: Add pm6125 compatible
  2022-09-26 19:01 ` [PATCH v4 1/5] dt-bindings: mfd: qcom-spmi-pmic: Add pm6125 compatible Marijn Suijten
@ 2022-09-28  7:35   ` Krzysztof Kozlowski
  2022-09-28  8:10     ` Marijn Suijten
  0 siblings, 1 reply; 16+ messages in thread
From: Krzysztof Kozlowski @ 2022-09-28  7:35 UTC (permalink / raw)
  To: Marijn Suijten, phone-devel, Andy Gross, Bjorn Andersson, Konrad Dybcio
  Cc: ~postmarketos/upstreaming, AngeloGioacchino Del Regno,
	Martin Botka, Jami Kettunen, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Stephen Boyd, linux-arm-msm, devicetree,
	linux-kernel

On 26/09/2022 21:01, Marijn Suijten wrote:
> Document support for the pm6125, typically paired with the sm6125 SoC.
> 
> Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
> ---
>  Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 1 +
>  1 file changed, 1 insertion(+)


Please add Acked-by/Reviewed-by tags when posting new versions. However,
there's no need to repost patches *only* to add the tags. The upstream
maintainer will do that for acks received on the version they apply.

https://elixir.bootlin.com/linux/v5.17/source/Documentation/process/submitting-patches.rst#L540

If a tag was not added on purpose, please state why and what changed.


Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH v4 1/5] dt-bindings: mfd: qcom-spmi-pmic: Add pm6125 compatible
  2022-09-28  7:35   ` Krzysztof Kozlowski
@ 2022-09-28  8:10     ` Marijn Suijten
  2022-09-28  8:14       ` Krzysztof Kozlowski
  0 siblings, 1 reply; 16+ messages in thread
From: Marijn Suijten @ 2022-09-28  8:10 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: phone-devel, Andy Gross, Bjorn Andersson, Konrad Dybcio,
	~postmarketos/upstreaming, AngeloGioacchino Del Regno,
	Martin Botka, Jami Kettunen, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Stephen Boyd, linux-arm-msm, devicetree,
	linux-kernel

On 2022-09-28 09:35:40, Krzysztof Kozlowski wrote:
> On 26/09/2022 21:01, Marijn Suijten wrote:
> > Document support for the pm6125, typically paired with the sm6125 SoC.
> > 
> > Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
> > ---
> >  Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 1 +
> >  1 file changed, 1 insertion(+)
> 
> 
> Please add Acked-by/Reviewed-by tags when posting new versions. However,
> there's no need to repost patches *only* to add the tags. The upstream
> maintainer will do that for acks received on the version they apply.
> 
> https://elixir.bootlin.com/linux/v5.17/source/Documentation/process/submitting-patches.rst#L540
> 
> If a tag was not added on purpose, please state why and what changed.
> 
> 
> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

https://lore.kernel.org/linux-arm-msm/0ec65132-7d7a-2f8d-cc16-cb76efc343d6@linaro.org/

Thanks, I thought of it this morning while browsing lore, but only got
to a screen just now so you beat me to it by ~30 minutes.

No need to lecture me on the rules, but I can't promise this won't
happen again.

- Marijn

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH v4 1/5] dt-bindings: mfd: qcom-spmi-pmic: Add pm6125 compatible
  2022-09-28  8:10     ` Marijn Suijten
@ 2022-09-28  8:14       ` Krzysztof Kozlowski
  2022-09-28  8:23         ` Marijn Suijten
  0 siblings, 1 reply; 16+ messages in thread
From: Krzysztof Kozlowski @ 2022-09-28  8:14 UTC (permalink / raw)
  To: Marijn Suijten
  Cc: phone-devel, Andy Gross, Bjorn Andersson, Konrad Dybcio,
	~postmarketos/upstreaming, AngeloGioacchino Del Regno,
	Martin Botka, Jami Kettunen, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Stephen Boyd, linux-arm-msm, devicetree,
	linux-kernel

On 28/09/2022 10:10, Marijn Suijten wrote:
> On 2022-09-28 09:35:40, Krzysztof Kozlowski wrote:
>> On 26/09/2022 21:01, Marijn Suijten wrote:
>>> Document support for the pm6125, typically paired with the sm6125 SoC.
>>>
>>> Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
>>> ---
>>>  Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 1 +
>>>  1 file changed, 1 insertion(+)
>>
>>
>> Please add Acked-by/Reviewed-by tags when posting new versions. However,
>> there's no need to repost patches *only* to add the tags. The upstream
>> maintainer will do that for acks received on the version they apply.
>>
>> https://elixir.bootlin.com/linux/v5.17/source/Documentation/process/submitting-patches.rst#L540
>>
>> If a tag was not added on purpose, please state why and what changed.
>>
>>
>> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> 
> https://lore.kernel.org/linux-arm-msm/0ec65132-7d7a-2f8d-cc16-cb76efc343d6@linaro.org/
> 
> Thanks, I thought of it this morning while browsing lore, but only got
> to a screen just now so you beat me to it by ~30 minutes.
> 
> No need to lecture me on the rules, but I can't promise this won't
> happen again.


This is a automated message, don't get it too personal. A lot of people
are not aware they have to do it, so I just one, same reply. I don't
know whether you are aware of the process and just forgot to include it.
If that's the case, just ignore the message.

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH v4 1/5] dt-bindings: mfd: qcom-spmi-pmic: Add pm6125 compatible
  2022-09-28  8:14       ` Krzysztof Kozlowski
@ 2022-09-28  8:23         ` Marijn Suijten
  2022-09-28  8:30           ` Krzysztof Kozlowski
  0 siblings, 1 reply; 16+ messages in thread
From: Marijn Suijten @ 2022-09-28  8:23 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: phone-devel, Andy Gross, Bjorn Andersson, Konrad Dybcio,
	~postmarketos/upstreaming, AngeloGioacchino Del Regno,
	Martin Botka, Jami Kettunen, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Stephen Boyd, linux-arm-msm, devicetree,
	linux-kernel

On 2022-09-28 10:14:05, Krzysztof Kozlowski wrote:
> On 28/09/2022 10:10, Marijn Suijten wrote:
> > On 2022-09-28 09:35:40, Krzysztof Kozlowski wrote:
> >> On 26/09/2022 21:01, Marijn Suijten wrote:
> >>> Document support for the pm6125, typically paired with the sm6125 SoC.
> >>>
> >>> Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
> >>> ---
> >>>  Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 1 +
> >>>  1 file changed, 1 insertion(+)
> >>
> >>
> >> Please add Acked-by/Reviewed-by tags when posting new versions. However,
> >> there's no need to repost patches *only* to add the tags. The upstream
> >> maintainer will do that for acks received on the version they apply.
> >>
> >> https://elixir.bootlin.com/linux/v5.17/source/Documentation/process/submitting-patches.rst#L540
> >>
> >> If a tag was not added on purpose, please state why and what changed.
> >>
> >>
> >> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> > 
> > https://lore.kernel.org/linux-arm-msm/0ec65132-7d7a-2f8d-cc16-cb76efc343d6@linaro.org/
> > 
> > Thanks, I thought of it this morning while browsing lore, but only got
> > to a screen just now so you beat me to it by ~30 minutes.
> > 
> > No need to lecture me on the rules, but I can't promise this won't
> > happen again.
> 
> 
> This is a automated message, don't get it too personal. A lot of people
> are not aware they have to do it, so I just one, same reply. I don't
> know whether you are aware of the process and just forgot to include it.
> If that's the case, just ignore the message.

That's useful, what software are you using for this?  Perhaps I can run
it as well, both to preempt myself and others.
(Side-note: I should get accustomed to `b4 shazam` to automatically pick
 this up from the list, instead of rebasing / re-applying local patches)

- Marijn

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH v4 1/5] dt-bindings: mfd: qcom-spmi-pmic: Add pm6125 compatible
  2022-09-28  8:23         ` Marijn Suijten
@ 2022-09-28  8:30           ` Krzysztof Kozlowski
  2022-09-28 15:44             ` Konstantin Ryabitsev
  0 siblings, 1 reply; 16+ messages in thread
From: Krzysztof Kozlowski @ 2022-09-28  8:30 UTC (permalink / raw)
  To: Marijn Suijten
  Cc: phone-devel, Andy Gross, Bjorn Andersson, Konrad Dybcio,
	~postmarketos/upstreaming, AngeloGioacchino Del Regno,
	Martin Botka, Jami Kettunen, Lee Jones, Rob Herring,
	Krzysztof Kozlowski, Stephen Boyd, linux-arm-msm, devicetree,
	linux-kernel

On 28/09/2022 10:23, Marijn Suijten wrote:
>>
>>
>> This is a automated message, don't get it too personal. A lot of people
>> are not aware they have to do it, so I just one, same reply. I don't
>> know whether you are aware of the process and just forgot to include it.
>> If that's the case, just ignore the message.
> 
> That's useful, what software are you using for this?  Perhaps I can run
> it as well, both to preempt myself and others.

https://gitlab.com/robherring/pw-utils/-/blob/master/mail-add-acks-reply
https://gitlab.com/robherring/pw-utils/-/blob/master/pw-review#L97

> (Side-note: I should get accustomed to `b4 shazam` to automatically pick
>  this up from the list, instead of rebasing / re-applying local patches)

Would be nice if b4 could update patches in current branch adding the
tags... but git reset --hard && b4 shazam should work as well.

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH v4 1/5] dt-bindings: mfd: qcom-spmi-pmic: Add pm6125 compatible
  2022-09-28  8:30           ` Krzysztof Kozlowski
@ 2022-09-28 15:44             ` Konstantin Ryabitsev
  2022-09-28 17:36               ` Krzysztof Kozlowski
  2022-09-30 12:31               ` Marijn Suijten
  0 siblings, 2 replies; 16+ messages in thread
From: Konstantin Ryabitsev @ 2022-09-28 15:44 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Marijn Suijten, phone-devel, Andy Gross, Bjorn Andersson,
	Konrad Dybcio, ~postmarketos/upstreaming,
	AngeloGioacchino Del Regno, Martin Botka, Jami Kettunen,
	Lee Jones, Rob Herring, Krzysztof Kozlowski, Stephen Boyd,
	linux-arm-msm, devicetree, linux-kernel

On Wed, Sep 28, 2022 at 10:30:00AM +0200, Krzysztof Kozlowski wrote:
> > (Side-note: I should get accustomed to `b4 shazam` to automatically pick
> >  this up from the list, instead of rebasing / re-applying local patches)
> 
> Would be nice if b4 could update patches in current branch adding the
> tags... but git reset --hard && b4 shazam should work as well.

FYI, it can do just that using "b4 trailers -uF [msgid]". See:
https://b4.docs.kernel.org/en/stable-0.10.y/contributor/trailers.html

-K

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH v4 1/5] dt-bindings: mfd: qcom-spmi-pmic: Add pm6125 compatible
  2022-09-28 15:44             ` Konstantin Ryabitsev
@ 2022-09-28 17:36               ` Krzysztof Kozlowski
  2022-09-30 12:31               ` Marijn Suijten
  1 sibling, 0 replies; 16+ messages in thread
From: Krzysztof Kozlowski @ 2022-09-28 17:36 UTC (permalink / raw)
  To: Konstantin Ryabitsev
  Cc: Marijn Suijten, phone-devel, Andy Gross, Bjorn Andersson,
	Konrad Dybcio, ~postmarketos/upstreaming,
	AngeloGioacchino Del Regno, Martin Botka, Jami Kettunen,
	Lee Jones, Rob Herring, Krzysztof Kozlowski, Stephen Boyd,
	linux-arm-msm, devicetree, linux-kernel

On 28/09/2022 17:44, Konstantin Ryabitsev wrote:
> On Wed, Sep 28, 2022 at 10:30:00AM +0200, Krzysztof Kozlowski wrote:
>>> (Side-note: I should get accustomed to `b4 shazam` to automatically pick
>>>  this up from the list, instead of rebasing / re-applying local patches)
>>
>> Would be nice if b4 could update patches in current branch adding the
>> tags... but git reset --hard && b4 shazam should work as well.
> 
> FYI, it can do just that using "b4 trailers -uF [msgid]". See:
> https://b4.docs.kernel.org/en/stable-0.10.y/contributor/trailers.html


Wow, that's cool! Thanks!

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH v4 1/5] dt-bindings: mfd: qcom-spmi-pmic: Add pm6125 compatible
  2022-09-28 15:44             ` Konstantin Ryabitsev
  2022-09-28 17:36               ` Krzysztof Kozlowski
@ 2022-09-30 12:31               ` Marijn Suijten
  2022-09-30 13:14                 ` b4 prep range-diff (was Re: [PATCH v4 1/5] dt-bindings: mfd: qcom-spmi-pmic: Add pm6125 compatible) Konstantin Ryabitsev
  1 sibling, 1 reply; 16+ messages in thread
From: Marijn Suijten @ 2022-09-30 12:31 UTC (permalink / raw)
  To: Konstantin Ryabitsev
  Cc: Krzysztof Kozlowski, phone-devel, Andy Gross, Bjorn Andersson,
	Konrad Dybcio, ~postmarketos/upstreaming,
	AngeloGioacchino Del Regno, Martin Botka, Jami Kettunen,
	Lee Jones, Rob Herring, Krzysztof Kozlowski, Stephen Boyd,
	linux-arm-msm, devicetree, linux-kernel

On 2022-09-28 11:44:37, Konstantin Ryabitsev wrote:
> On Wed, Sep 28, 2022 at 10:30:00AM +0200, Krzysztof Kozlowski wrote:
> > > (Side-note: I should get accustomed to `b4 shazam` to automatically pick
> > >  this up from the list, instead of rebasing / re-applying local patches)
> > 
> > Would be nice if b4 could update patches in current branch adding the
> > tags... but git reset --hard && b4 shazam should work as well.
> 
> FYI, it can do just that using "b4 trailers -uF [msgid]". See:
> https://b4.docs.kernel.org/en/stable-0.10.y/contributor/trailers.html

That's super cool and will save a lot of time.  I'll also have to get
accustomed to `b4 prep` and `b4 send`, though typically prefer to look
at the `diff` between two `format-patch` revisions to make sure the
changelog is complete and no erratic changes made it in.

- Marijn

^ permalink raw reply	[flat|nested] 16+ messages in thread

* b4 prep range-diff (was Re: [PATCH v4 1/5] dt-bindings: mfd: qcom-spmi-pmic: Add pm6125 compatible)
  2022-09-30 12:31               ` Marijn Suijten
@ 2022-09-30 13:14                 ` Konstantin Ryabitsev
  0 siblings, 0 replies; 16+ messages in thread
From: Konstantin Ryabitsev @ 2022-09-30 13:14 UTC (permalink / raw)
  To: Marijn Suijten, Krzysztof Kozlowski, linux-kernel, tools

On Fri, Sep 30, 2022 at 02:31:18PM +0200, Marijn Suijten wrote:
> > FYI, it can do just that using "b4 trailers -uF [msgid]". See:
> > https://b4.docs.kernel.org/en/stable-0.10.y/contributor/trailers.html
> 
> That's super cool and will save a lot of time.  I'll also have to get
> accustomed to `b4 prep` and `b4 send`, though typically prefer to look
> at the `diff` between two `format-patch` revisions to make sure the
> changelog is complete and no erratic changes made it in.

(Dropping most people from CCs and adding the tools list.)

Hmm... Yes, we can do this, since we keep previously sent revisions tagged in
the tree. Something like:

    b4 prep --compare v3

to show you a range-diff between v3 and the current revision.

-K

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH v4 0/5] Add Qcom PM6125 PMIC and use in Sony Xperia Seine PDX201
  2022-09-26 19:01 [PATCH v4 0/5] Add Qcom PM6125 PMIC and use in Sony Xperia Seine PDX201 Marijn Suijten
                   ` (4 preceding siblings ...)
  2022-09-26 19:01 ` [PATCH v4 5/5] arm64: dts: qcom: sm6125-seine: Configure additional trinket thermistors Marijn Suijten
@ 2022-11-07  3:12 ` Bjorn Andersson
  5 siblings, 0 replies; 16+ messages in thread
From: Bjorn Andersson @ 2022-11-07  3:12 UTC (permalink / raw)
  To: phone-devel, marijn.suijten, Andy Gross, konrad.dybcio
  Cc: ~postmarketos/upstreaming, krzysztof.kozlowski+dt, devicetree,
	Rob Herring, linux-arm-msm, angelogioacchino.delregno,
	linux-kernel, sboyd, martin.botka, lee, jami.kettunen

On Mon, 26 Sep 2022 21:01:43 +0200, Marijn Suijten wrote:
> This series adds initial support for the PM6125 PMIC, and its power key
> handling and thermal monitoring capabilities are configured for Sony's
> PDX201 (Xperia 10II).
> 
> One patch for pm660 is included to fix a node address mismatch with its
> reg field.
> 
> [...]

Applied, thanks!

[1/5] dt-bindings: mfd: qcom-spmi-pmic: Add pm6125 compatible
      commit: 3da503c26ec572628802b4ffbe738a5d373cd3f6
[2/5] arm64: dts: qcom: pm660: Use unique ADC5_VCOIN address in node name
      commit: 02549ba5de0a09a27616496c3512db5af4ad7862
[3/5] arm64: dts: qcom: Add PM6125 PMIC
      commit: 7c969c6e216654cab8b124383dd99a276049994d
[4/5] arm64: dts: qcom: sm6125-seine: Include PM6125 and configure PON
      commit: 7401035f2ef8841d0db9724507b45841d16894b6
[5/5] arm64: dts: qcom: sm6125-seine: Configure additional trinket thermistors
      commit: 4ba146dd8897353e4e18a12c7866127f85c251e7

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2022-11-07  3:15 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-26 19:01 [PATCH v4 0/5] Add Qcom PM6125 PMIC and use in Sony Xperia Seine PDX201 Marijn Suijten
2022-09-26 19:01 ` [PATCH v4 1/5] dt-bindings: mfd: qcom-spmi-pmic: Add pm6125 compatible Marijn Suijten
2022-09-28  7:35   ` Krzysztof Kozlowski
2022-09-28  8:10     ` Marijn Suijten
2022-09-28  8:14       ` Krzysztof Kozlowski
2022-09-28  8:23         ` Marijn Suijten
2022-09-28  8:30           ` Krzysztof Kozlowski
2022-09-28 15:44             ` Konstantin Ryabitsev
2022-09-28 17:36               ` Krzysztof Kozlowski
2022-09-30 12:31               ` Marijn Suijten
2022-09-30 13:14                 ` b4 prep range-diff (was Re: [PATCH v4 1/5] dt-bindings: mfd: qcom-spmi-pmic: Add pm6125 compatible) Konstantin Ryabitsev
2022-09-26 19:01 ` [PATCH v4 2/5] arm64: dts: qcom: pm660: Use unique ADC5_VCOIN address in node name Marijn Suijten
2022-09-26 19:01 ` [PATCH v4 3/5] arm64: dts: qcom: Add PM6125 PMIC Marijn Suijten
2022-09-26 19:01 ` [PATCH v4 4/5] arm64: dts: qcom: sm6125-seine: Include PM6125 and configure PON Marijn Suijten
2022-09-26 19:01 ` [PATCH v4 5/5] arm64: dts: qcom: sm6125-seine: Configure additional trinket thermistors Marijn Suijten
2022-11-07  3:12 ` [PATCH v4 0/5] Add Qcom PM6125 PMIC and use in Sony Xperia Seine PDX201 Bjorn Andersson

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.