Skip to contentSkip to conversation

Add power monitor support on sam9x75-curiosity board

PATCH Applied Mihai Sain 2 participants 9 messages Nov 22, 2024 – Dec 8, 2024

Subsystems (2)
lore
Share & tools
lore

Mihai Sain

author
#0 lore raw

cover Add power monitor support on sam9x75-curiosity board

This patch series adds power monitor support and moves i2c address/size to dtsi.

[root@SAM9X75 ~]$ lsiio
Device 001: pac1934
Device 000: f804c000.adc
Trigger 000: f804c000.adc-dev0-external_rising

[root@SAM9X75 ~]$ awk -f pac1934.awk

VDD3V3 current:   15.7075 mA, voltage: 3298.34 mV
VDDOUT4 current:    8.436 mA, voltage: 1205.08 mV
VDDCORE current:  121.237 mA, voltage: 1250 mV
VDDIODDR current: 34.3125 mA, voltage: 1354.49 mV

Mihai Sain (2):
ARM: dts: microchip: sam9x7: Move i2c address/size to dtsi
ARM: dts: microchip: sam9x75_curiosity: Add power monitor support

 .../dts/microchip/at91-sam9x75_curiosity.dts  | 54 ++++++++++++++++++-
 arch/arm/boot/dts/microchip/sam9x7.dtsi       | 26 +++++++++
 2 files changed, 78 insertions(+), 2 deletions(-)

base-commit: 28eb75e178d389d325f1666e422bc13bbbb9804c

Signature · 1 line
2.47.0
author
#1 lore raw

PATCH 1/2 ARM: dts: microchip: sam9x7: Move i2c address/size to dtsi

Since these properties are common for all i2c subnodes, move them to SoC dtsi from board dts.

---
 .../dts/microchip/at91-sam9x75_curiosity.dts  |  2 --
 arch/arm/boot/dts/microchip/sam9x7.dtsi       | 26 +++++++++++++++++++
 2 files changed, 26 insertions(+), 2 deletions(-)
arch/arm/boot/dts/microchip/at91-sam9x75_curiosity.dts +0 -2
index 87b6ea97590b..d453800f8e35 100644
@@ -88,8 +88,6 @@ &flx6 {
 };
 
 &i2c6 {
-	#address-cells = <1>;
-	#size-cells = <0>;
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_flx6_default>;
 	i2c-analog-filter;
arch/arm/boot/dts/microchip/sam9x7.dtsi +26 -0
index beb1f34b38d3..aedba0a8318f 100644
@@ -151,6 +151,8 @@ i2c4: i2c@600 {
 				compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
 				reg = <0x600 0x200>;
 				interrupts = <13 IRQ_TYPE_LEVEL_HIGH 7>;
+				#address-cells = <1>;
+				#size-cells = <0>;
 				clocks = <&pmc PMC_TYPE_PERIPHERAL 13>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -220,6 +222,8 @@ i2c5: i2c@600 {
 				compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
 				reg = <0x600 0x200>;
 				interrupts = <14 IRQ_TYPE_LEVEL_HIGH 7>;
+				#address-cells = <1>;
+				#size-cells = <0>;
 				clocks = <&pmc PMC_TYPE_PERIPHERAL 14>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -312,6 +316,8 @@ i2c11: i2c@600 {
 				compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
 				reg = <0x600 0x200>;
 				interrupts = <32 IRQ_TYPE_LEVEL_HIGH 7>;
+				#address-cells = <1>;
+				#size-cells = <0>;
 				clocks = <&pmc PMC_TYPE_PERIPHERAL 32>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -362,6 +368,8 @@ i2c12: i2c@600 {
 				compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
 				reg = <0x600 0x200>;
 				interrupts = <33 IRQ_TYPE_LEVEL_HIGH 7>;
+				#address-cells = <1>;
+				#size-cells = <0>;
 				clocks = <&pmc PMC_TYPE_PERIPHERAL 33>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -533,6 +541,8 @@ i2c6: i2c@600 {
 				compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
 				reg = <0x600 0x200>;
 				interrupts = <9 IRQ_TYPE_LEVEL_HIGH 7>;
+				#address-cells = <1>;
+				#size-cells = <0>;
 				clocks = <&pmc PMC_TYPE_PERIPHERAL 9>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -583,6 +593,8 @@ i2c7: i2c@600 {
 				compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
 				reg = <0x600 0x200>;
 				interrupts = <10 IRQ_TYPE_LEVEL_HIGH 7>;
+				#address-cells = <1>;
+				#size-cells = <0>;
 				clocks = <&pmc PMC_TYPE_PERIPHERAL 10>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -633,6 +645,8 @@ i2c8: i2c@600 {
 				compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
 				reg = <0x600 0x200>;
 				interrupts = <11 IRQ_TYPE_LEVEL_HIGH 7>;
+				#address-cells = <1>;
+				#size-cells = <0>;
 				clocks = <&pmc PMC_TYPE_PERIPHERAL 11>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -702,6 +716,8 @@ i2c0: i2c@600 {
 				compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
 				reg = <0x600 0x200>;
 				interrupts = <5 IRQ_TYPE_LEVEL_HIGH 7>;
+				#address-cells = <1>;
+				#size-cells = <0>;
 				clocks = <&pmc PMC_TYPE_PERIPHERAL 5>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -771,6 +787,8 @@ i2c1: i2c@600 {
 				compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
 				reg = <0x600 0x200>;
 				interrupts = <6 IRQ_TYPE_LEVEL_HIGH 7>;
+				#address-cells = <1>;
+				#size-cells = <0>;
 				clocks = <&pmc PMC_TYPE_PERIPHERAL 6>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -840,6 +858,8 @@ i2c2: i2c@600 {
 				compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
 				reg = <0x600 0x200>;
 				interrupts = <7 IRQ_TYPE_LEVEL_HIGH 7>;
+				#address-cells = <1>;
+				#size-cells = <0>;
 				clocks = <&pmc PMC_TYPE_PERIPHERAL 7>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -909,6 +929,8 @@ i2c3: i2c@600 {
 				compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
 				reg = <0x600 0x200>;
 				interrupts = <8 IRQ_TYPE_LEVEL_HIGH 7>;
+				#address-cells = <1>;
+				#size-cells = <0>;
 				clocks = <&pmc PMC_TYPE_PERIPHERAL 8>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -984,6 +1006,8 @@ i2c9: i2c@600 {
 				compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
 				reg = <0x600 0x200>;
 				interrupts = <15 IRQ_TYPE_LEVEL_HIGH 7>;
+				#address-cells = <1>;
+				#size-cells = <0>;
 				clocks = <&pmc PMC_TYPE_PERIPHERAL 15>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -1034,6 +1058,8 @@ i2c10: i2c@600 {
 				compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
 				reg = <0x600 0x200>;
 				interrupts = <16 IRQ_TYPE_LEVEL_HIGH 7>;
+				#address-cells = <1>;
+				#size-cells = <0>;
 				clocks = <&pmc PMC_TYPE_PERIPHERAL 16>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
Signature · 1 line
2.47.0
maintainer Reviewed-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] ARM: dts: microchip: sam9x7: Move i2c address/size to dtsi

Hi, Mihai,

Quoted 4 lines · Mihai Sain

Since these properties are common for all i2c subnodes, move them to SoC dtsi from board dts.

Quoted 139 lines
---
 .../dts/microchip/at91-sam9x75_curiosity.dts  |  2 --
 arch/arm/boot/dts/microchip/sam9x7.dtsi       | 26 +++++++++++++++++++
 2 files changed, 26 insertions(+), 2 deletions(-)
arch/arm/boot/dts/microchip/at91-sam9x75_curiosity.dts +0 -2
index 87b6ea97590b..d453800f8e35 100644
@@ -88,8 +88,6 @@ &flx6 {
 };
 
 &i2c6 {
-	#address-cells = <1>;
-	#size-cells = <0>;
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_flx6_default>;
 	i2c-analog-filter;
arch/arm/boot/dts/microchip/sam9x7.dtsi +26 -0
index beb1f34b38d3..aedba0a8318f 100644
@@ -151,6 +151,8 @@ i2c4: i2c@600 {
 				compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
 				reg = <0x600 0x200>;
 				interrupts = <13 IRQ_TYPE_LEVEL_HIGH 7>;
+				#address-cells = <1>;
+				#size-cells = <0>;
 				clocks = <&pmc PMC_TYPE_PERIPHERAL 13>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -220,6 +222,8 @@ i2c5: i2c@600 {
 				compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
 				reg = <0x600 0x200>;
 				interrupts = <14 IRQ_TYPE_LEVEL_HIGH 7>;
+				#address-cells = <1>;
+				#size-cells = <0>;
 				clocks = <&pmc PMC_TYPE_PERIPHERAL 14>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -312,6 +316,8 @@ i2c11: i2c@600 {
 				compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
 				reg = <0x600 0x200>;
 				interrupts = <32 IRQ_TYPE_LEVEL_HIGH 7>;
+				#address-cells = <1>;
+				#size-cells = <0>;
 				clocks = <&pmc PMC_TYPE_PERIPHERAL 32>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -362,6 +368,8 @@ i2c12: i2c@600 {
 				compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
 				reg = <0x600 0x200>;
 				interrupts = <33 IRQ_TYPE_LEVEL_HIGH 7>;
+				#address-cells = <1>;
+				#size-cells = <0>;
 				clocks = <&pmc PMC_TYPE_PERIPHERAL 33>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -533,6 +541,8 @@ i2c6: i2c@600 {
 				compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
 				reg = <0x600 0x200>;
 				interrupts = <9 IRQ_TYPE_LEVEL_HIGH 7>;
+				#address-cells = <1>;
+				#size-cells = <0>;
 				clocks = <&pmc PMC_TYPE_PERIPHERAL 9>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -583,6 +593,8 @@ i2c7: i2c@600 {
 				compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
 				reg = <0x600 0x200>;
 				interrupts = <10 IRQ_TYPE_LEVEL_HIGH 7>;
+				#address-cells = <1>;
+				#size-cells = <0>;
 				clocks = <&pmc PMC_TYPE_PERIPHERAL 10>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -633,6 +645,8 @@ i2c8: i2c@600 {
 				compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
 				reg = <0x600 0x200>;
 				interrupts = <11 IRQ_TYPE_LEVEL_HIGH 7>;
+				#address-cells = <1>;
+				#size-cells = <0>;
 				clocks = <&pmc PMC_TYPE_PERIPHERAL 11>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -702,6 +716,8 @@ i2c0: i2c@600 {
 				compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
 				reg = <0x600 0x200>;
 				interrupts = <5 IRQ_TYPE_LEVEL_HIGH 7>;
+				#address-cells = <1>;
+				#size-cells = <0>;
 				clocks = <&pmc PMC_TYPE_PERIPHERAL 5>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -771,6 +787,8 @@ i2c1: i2c@600 {
 				compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
 				reg = <0x600 0x200>;
 				interrupts = <6 IRQ_TYPE_LEVEL_HIGH 7>;
+				#address-cells = <1>;
+				#size-cells = <0>;
 				clocks = <&pmc PMC_TYPE_PERIPHERAL 6>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -840,6 +858,8 @@ i2c2: i2c@600 {
 				compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
 				reg = <0x600 0x200>;
 				interrupts = <7 IRQ_TYPE_LEVEL_HIGH 7>;
+				#address-cells = <1>;
+				#size-cells = <0>;
 				clocks = <&pmc PMC_TYPE_PERIPHERAL 7>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -909,6 +929,8 @@ i2c3: i2c@600 {
 				compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
 				reg = <0x600 0x200>;
 				interrupts = <8 IRQ_TYPE_LEVEL_HIGH 7>;
+				#address-cells = <1>;
+				#size-cells = <0>;
 				clocks = <&pmc PMC_TYPE_PERIPHERAL 8>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -984,6 +1006,8 @@ i2c9: i2c@600 {
 				compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
 				reg = <0x600 0x200>;
 				interrupts = <15 IRQ_TYPE_LEVEL_HIGH 7>;
+				#address-cells = <1>;
+				#size-cells = <0>;
 				clocks = <&pmc PMC_TYPE_PERIPHERAL 15>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
@@ -1034,6 +1058,8 @@ i2c10: i2c@600 {
 				compatible = "microchip,sam9x7-i2c", "microchip,sam9x60-i2c";
 				reg = <0x600 0x200>;
 				interrupts = <16 IRQ_TYPE_LEVEL_HIGH 7>;
+				#address-cells = <1>;
+				#size-cells = <0>;
 				clocks = <&pmc PMC_TYPE_PERIPHERAL 16>;
 				dmas = <&dma0
 					(AT91_XDMAC_DT_MEM_IF(0) |
author
#3 lore raw

PATCH 2/2 ARM: dts: microchip: sam9x75_curiosity: Add power monitor support

In reply to Mihai Sain

Add PAC1934 support in order to monitor the board power consumption. Device is connected on flexcom7 in twi mode.

[root@SAM9X75 ~]$ awk -f pac1934.awk

VDD3V3 current:   10.675 mA, voltage: 3295.41 mV
VDDOUT4 current:  5.7625 mA, voltage: 1196.78 mV
VDDCORE current: 115.442 mA, voltage: 1243.65 mV
VDDIODDR current: 29.585 mA, voltage: 1345.21 mV
---
 .../dts/microchip/at91-sam9x75_curiosity.dts  | 52 +++++++++++++++++++
 1 file changed, 52 insertions(+)
arch/arm/boot/dts/microchip/at91-sam9x75_curiosity.dts +52 -0
index d453800f8e35..76d7a756e08c 100644
@@ -198,6 +198,52 @@ regulator-state-standby {
 	};
 };
 
+&flx7 {
+	atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
+	status = "okay";
+};
+
+&i2c7 {
+	dmas = <0>, <0>;
+	i2c-analog-filter;
+	i2c-digital-filter;
+	i2c-digital-filter-width-ns = <35>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_flx7_default>;
+	status = "okay";
+
+	power-monitor@10 {
+		compatible = "microchip,pac1934";
+		reg = <0x10>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		channel@1 {
+			reg = <0x1>;
+			shunt-resistor-micro-ohms = <10000>;
+			label = "VDD3V3";
+		};
+
+		channel@2 {
+			reg = <0x2>;
+			shunt-resistor-micro-ohms = <10000>;
+			label = "VDDOUT4";
+		};
+
+		channel@3 {
+			reg = <0x3>;
+			shunt-resistor-micro-ohms = <10000>;
+			label = "VDDCORE";
+		};
+
+		channel@4 {
+			reg = <0x4>;
+			shunt-resistor-micro-ohms = <10000>;
+			label = "VDDIODDR";
+		};
+	};
+};
+
 &i2s {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_i2s_default>;
@@ -231,6 +277,12 @@ pinctrl_flx6_default: flx6-default {
 				<AT91_PIOA 24 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>,
 				<AT91_PIOA 25 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
 		};
+
+		pinctrl_flx7_default: flx7-default {
+			atmel,pins =
+				<AT91_PIOC 0 AT91_PERIPH_C AT91_PINCTRL_PULL_UP>,
+				<AT91_PIOC 1 AT91_PERIPH_C AT91_PINCTRL_PULL_UP>;
+		};
 	};
 
 	gpio-keys {
Signature · 1 line
2.47.0
maintainer
#4 lore raw

Re: [PATCH 2/2] ARM: dts: microchip: sam9x75_curiosity: Add power monitor support

Hi, Mihai,

Quoted 42 lines · Mihai Sain

Add PAC1934 support in order to monitor the board power consumption. Device is connected on flexcom7 in twi mode.

[root@SAM9X75 ~]$ awk -f pac1934.awk

VDD3V3 current:   10.675 mA, voltage: 3295.41 mV
VDDOUT4 current:  5.7625 mA, voltage: 1196.78 mV
VDDCORE current: 115.442 mA, voltage: 1243.65 mV
VDDIODDR current: 29.585 mA, voltage: 1345.21 mV
---
 .../dts/microchip/at91-sam9x75_curiosity.dts  | 52 +++++++++++++++++++
 1 file changed, 52 insertions(+)
arch/arm/boot/dts/microchip/at91-sam9x75_curiosity.dts +20 -0
index d453800f8e35..76d7a756e08c 100644
@@ -198,6 +198,52 @@ regulator-state-standby {
 	};
 };
 
+&flx7 {
+	atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
+	status = "okay";
+};
+
+&i2c7 {
+	dmas = <0>, <0>;
+	i2c-analog-filter;
+	i2c-digital-filter;
+	i2c-digital-filter-width-ns = <35>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_flx7_default>;
+	status = "okay";
+
+	power-monitor@10 {
+		compatible = "microchip,pac1934";
+		reg = <0x10>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+

arch/arm/boot/dts/microchip/at91-sam9x75_curiosity.dts regulator-state-standby { · line 230

Quoted 10 lines
arch/arm/boot/dts/microchip/at91-sam9x75_curiosity.dts +10 -0
+		channel@1 {
+			reg = <0x1>;
+			shunt-resistor-micro-ohms = <10000>;
+			label = "VDD3V3";
+		};
+
+		channel@2 {
+			reg = <0x2>;
+			shunt-resistor-micro-ohms = <10000>;
+			label = "VDDOUT4";

On the schematics at [1] this seems to be named DCDC4. Is there a mistake on [1] or this patch needs adjustments? If so, I can do it while applying.

Thank you,
Claudiu

[1]
https://ww1.microchip.com/downloads/aemDocuments/documents/MPU32/ProductDocuments/UserGuides/SAM9X75-Curiosity-User-Guide-DS60001859.pdf

Quoted 32 lines
arch/arm/boot/dts/microchip/at91-sam9x75_curiosity.dts +22 -0
+		};
+
+		channel@3 {
+			reg = <0x3>;
+			shunt-resistor-micro-ohms = <10000>;
+			label = "VDDCORE";
+		};
+
+		channel@4 {
+			reg = <0x4>;
+			shunt-resistor-micro-ohms = <10000>;
+			label = "VDDIODDR";
+		};
+	};
+};
+
 &i2s {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_i2s_default>;
@@ -231,6 +277,12 @@ pinctrl_flx6_default: flx6-default {
 				<AT91_PIOA 24 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>,
 				<AT91_PIOA 25 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
 		};
+
+		pinctrl_flx7_default: flx7-default {
+			atmel,pins =
+				<AT91_PIOC 0 AT91_PERIPH_C AT91_PINCTRL_PULL_UP>,
+				<AT91_PIOC 1 AT91_PERIPH_C AT91_PINCTRL_PULL_UP>;
+		};
 	};
 
 	gpio-keys {
#5 lore raw

RE: [PATCH 2/2] ARM: dts: microchip: sam9x75_curiosity: Add power monitor support

Hi Claudiu,

Quoted 7 lines

arch/arm/boot/dts/microchip/at91-sam9x75_curiosity.dts regulator-state-standby { · line 230

Quoted 4 lines
arch/arm/boot/dts/microchip/at91-sam9x75_curiosity.dts +4 -0
+             channel@2 {
+                     reg = <0x2>;
+                     shunt-resistor-micro-ohms = <10000>;
+                     label = "VDDOUT4";

On the schematics at [1] this seems to be named DCDC4. Is there a mistake on
[1] or this patch needs adjustments? If so, I can do it while applying.

I just wanted to use a more friendly name for buck4, since this regulator is not used.

Quoted 8 lines

Thank you,
Claudiu

[1]
https://ww1.microchip.com/downloads/aemDocuments/documents/MPU32/ProductDocumen
ts/UserGuides/SAM9X75-Curiosity-User-Guide-DS60001859.pdf

Regards,
Mihai

maintainer
#6 lore raw

Re: [PATCH 2/2] ARM: dts: microchip: sam9x75_curiosity: Add power monitor support

Hi, Mihai,

Quoted 11 lines · On 02.12.2024 10:32, [email protected] wrote:

Hi Claudiu,

Quoted 7 lines

arch/arm/boot/dts/microchip/at91-sam9x75_curiosity.dts regulator-state-standby { · line 230

Quoted 4 lines
arch/arm/boot/dts/microchip/at91-sam9x75_curiosity.dts +4 -0
+             channel@2 {
+                     reg = <0x2>;
+                     shunt-resistor-micro-ohms = <10000>;
+                     label = "VDDOUT4";

On the schematics at [1] this seems to be named DCDC4. Is there a mistake on
[1] or this patch needs adjustments? If so, I can do it while applying.

I just wanted to use a more friendly name for buck4, since this regulator is not used.

For consistency with the rest of the channel names and the fact that we describe the HW though device tree, I would keep the schematics naming ("DCDC4" in this case). No need to re-send, I can adjust while applying. Just let me know if all good with you, too.

Thank you,
Claudiu

Quoted 12 lines
Quoted 9 lines

Thank you,
Claudiu

[1]
https://ww1.microchip.com/downloads/aemDocuments/documents/MPU32/ProductDocumen
ts/UserGuides/SAM9X75-Curiosity-User-Guide-DS60001859.pdf

Regards,
Mihai

#7 lore raw

RE: [PATCH 2/2] ARM: dts: microchip: sam9x75_curiosity: Add power monitor support

Quoted 13 lines

Hi, Mihai,

Quoted 10 lines · On 02.12.2024 10:32, [email protected] wrote:

Hi Claudiu,

Quoted 7 lines

arch/arm/boot/dts/microchip/at91-sam9x75_curiosity.dts regulator-state-standby { · line 230

Quoted 4 lines
arch/arm/boot/dts/microchip/at91-sam9x75_curiosity.dts +4 -0
+             channel@2 {
+                     reg = <0x2>;
+                     shunt-resistor-micro-ohms = <10000>;
+                     label = "VDDOUT4";

On the schematics at [1] this seems to be named DCDC4. Is there a mistake on
[1] or this patch needs adjustments? If so, I can do it while applying.

Quoted 7 lines
Quoted 1 line

I just wanted to use a more friendly name for buck4, since this regulator is

not used.

For consistency with the rest of the channel names and the fact that we describe the HW though device tree, I would keep the schematics naming ("DCDC4" in this case). No need to re-send, I can adjust while applying. Just let me know if all good with you, too.

Yes.
I agree we should use the schematics naming for buck4.

Quoted 6 lines

Thank you,
Claudiu

Quoted 2 lines
Quoted 2 lines
Quoted 11 lines
Quoted 5 lines
Quoted 5 lines

Thank you,
Claudiu

[1]

https://ww1.microchip.com/downloads/aemDocuments/documents/MPU32/ProductDocumen

Quoted 5 lines
Quoted 2 lines

ts/UserGuides/SAM9X75-Curiosity-User-Guide-DS60001859.pdf

Regards,
Mihai

Regards,
Mihai

maintainer Applied
#8 lore raw
In reply to Mihai Sain
Quoted 3 lines · Mihai Sain

Mihai Sain (2):
ARM: dts: microchip: sam9x7: Move i2c address/size to dtsi
ARM: dts: microchip: sam9x75_curiosity: Add power monitor support

Applied to at91-dt, thanks!