All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/11] ARM: at91: fixes and enhancement
@ 2022-10-26 12:41 ` Claudiu Beznea
  0 siblings, 0 replies; 26+ messages in thread
From: Claudiu Beznea @ 2022-10-26 12:41 UTC (permalink / raw)
  To: nicolas.ferre, alexandre.belloni, robh+dt,
	krzysztof.kozlowski+dt, linux, arnd
  Cc: linux-arm-kernel, devicetree, linux-kernel, Claudiu Beznea

Hi,

The following series adds:
- one fix for self-refresh on SAMA7G5 (patch 1/11)
- thermal management support for SAMA7G5 (patches 2/11-9/11)
- 2 cleanup patches (patches 10/11, 11/11)

Thank you,
Claudiu Beznea

Claudiu Beznea (11):
  ARM: at91: pm: avoid soft resetting AC DLL
  ARM: dts: at91: sama7g5: add otpc node
  ARM: dts: at91: add io-channel-cells to adc node
  ARM: dts: at91: sama7g5: add cells for temperature calibration
  ARM: dts: at91: sama7g5: add temperature sensor
  ARM: dts: at91: sama7g5: add thermal zones node
  ARM: configs: at91: sama7: use make savedefconfig
  ARM: configs: at91: sama7: add config for microchip otpc
  ARM: configs: at91: sama7: add config for thermal management
  ARM: dts: at91: sama7g5: use generic name for securam
  ARM: dts: at91: sam9x60ek: remove status = "okay" for regulators

 arch/arm/boot/dts/at91-sam9x60ek.dts |  4 --
 arch/arm/boot/dts/sama7g5.dtsi       | 67 +++++++++++++++++++++++++++-
 arch/arm/configs/sama7_defconfig     |  9 +++-
 arch/arm/mach-at91/pm_suspend.S      |  7 ++-
 include/soc/at91/sama7-ddr.h         |  5 ++-
 5 files changed, 83 insertions(+), 9 deletions(-)

-- 
2.34.1


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

* [PATCH 00/11] ARM: at91: fixes and enhancement
@ 2022-10-26 12:41 ` Claudiu Beznea
  0 siblings, 0 replies; 26+ messages in thread
From: Claudiu Beznea @ 2022-10-26 12:41 UTC (permalink / raw)
  To: nicolas.ferre, alexandre.belloni, robh+dt,
	krzysztof.kozlowski+dt, linux, arnd
  Cc: linux-arm-kernel, devicetree, linux-kernel, Claudiu Beznea

Hi,

The following series adds:
- one fix for self-refresh on SAMA7G5 (patch 1/11)
- thermal management support for SAMA7G5 (patches 2/11-9/11)
- 2 cleanup patches (patches 10/11, 11/11)

Thank you,
Claudiu Beznea

Claudiu Beznea (11):
  ARM: at91: pm: avoid soft resetting AC DLL
  ARM: dts: at91: sama7g5: add otpc node
  ARM: dts: at91: add io-channel-cells to adc node
  ARM: dts: at91: sama7g5: add cells for temperature calibration
  ARM: dts: at91: sama7g5: add temperature sensor
  ARM: dts: at91: sama7g5: add thermal zones node
  ARM: configs: at91: sama7: use make savedefconfig
  ARM: configs: at91: sama7: add config for microchip otpc
  ARM: configs: at91: sama7: add config for thermal management
  ARM: dts: at91: sama7g5: use generic name for securam
  ARM: dts: at91: sam9x60ek: remove status = "okay" for regulators

 arch/arm/boot/dts/at91-sam9x60ek.dts |  4 --
 arch/arm/boot/dts/sama7g5.dtsi       | 67 +++++++++++++++++++++++++++-
 arch/arm/configs/sama7_defconfig     |  9 +++-
 arch/arm/mach-at91/pm_suspend.S      |  7 ++-
 include/soc/at91/sama7-ddr.h         |  5 ++-
 5 files changed, 83 insertions(+), 9 deletions(-)

-- 
2.34.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH 01/11] ARM: at91: pm: avoid soft resetting AC DLL
  2022-10-26 12:41 ` Claudiu Beznea
@ 2022-10-26 12:41   ` Claudiu Beznea
  -1 siblings, 0 replies; 26+ messages in thread
From: Claudiu Beznea @ 2022-10-26 12:41 UTC (permalink / raw)
  To: nicolas.ferre, alexandre.belloni, robh+dt,
	krzysztof.kozlowski+dt, linux, arnd
  Cc: linux-arm-kernel, devicetree, linux-kernel, Claudiu Beznea

Do not soft reset AC DLL as controller is buggy and this operation my
introduce glitches in the controller leading to undefined behavior.

Fixes: f0bbf17958e8 ("ARM: at91: pm: add self-refresh support for sama7g5")
Depends-on: a02875c4cbd6 ("ARM: at91: pm: fix self-refresh for sama7g5")
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 arch/arm/mach-at91/pm_suspend.S | 7 ++++++-
 include/soc/at91/sama7-ddr.h    | 5 ++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-at91/pm_suspend.S b/arch/arm/mach-at91/pm_suspend.S
index ffed4d949042..e4904faf1753 100644
--- a/arch/arm/mach-at91/pm_suspend.S
+++ b/arch/arm/mach-at91/pm_suspend.S
@@ -169,10 +169,15 @@ sr_ena_2:
 	cmp	tmp1, #UDDRC_STAT_SELFREF_TYPE_SW
 	bne	sr_ena_2
 
-	/* Put DDR PHY's DLL in bypass mode for non-backup modes. */
+	/* Disable DX DLLs for non-backup modes. */
 	cmp	r7, #AT91_PM_BACKUP
 	beq	sr_ena_3
 
+	/* Do not soft reset the AC DLL. */
+	ldr	tmp1, [r3, DDR3PHY_ACDLLCR]
+	bic	tmp1, tmp1, DDR3PHY_ACDLLCR_DLLSRST
+	str	tmp1, [r3, DDR3PHY_ACDLLCR]
+
 	/* Disable DX DLLs. */
 	ldr	tmp1, [r3, #DDR3PHY_DX0DLLCR]
 	orr	tmp1, tmp1, #DDR3PHY_DXDLLCR_DLLDIS
diff --git a/include/soc/at91/sama7-ddr.h b/include/soc/at91/sama7-ddr.h
index 6ce3bd22f6c6..5ad7ac2e3a7c 100644
--- a/include/soc/at91/sama7-ddr.h
+++ b/include/soc/at91/sama7-ddr.h
@@ -26,7 +26,10 @@
 #define	DDR3PHY_PGSR				(0x0C)		/* DDR3PHY PHY General Status Register */
 #define		DDR3PHY_PGSR_IDONE		(1 << 0)	/* Initialization Done */
 
-#define DDR3PHY_ACIOCR				(0x24)		/*  DDR3PHY AC I/O Configuration Register */
+#define	DDR3PHY_ACDLLCR				(0x14)		/* DDR3PHY AC DLL Control Register */
+#define		DDR3PHY_ACDLLCR_DLLSRST		(1 << 30)	/* DLL Soft Reset */
+
+#define DDR3PHY_ACIOCR				(0x24)		/* DDR3PHY AC I/O Configuration Register */
 #define		DDR3PHY_ACIOCR_CSPDD_CS0	(1 << 18)	/* CS#[0] Power Down Driver */
 #define		DDR3PHY_ACIOCR_CKPDD_CK0	(1 << 8)	/* CK[0] Power Down Driver */
 #define		DDR3PHY_ACIORC_ACPDD		(1 << 3)	/* AC Power Down Driver */
-- 
2.34.1


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

* [PATCH 01/11] ARM: at91: pm: avoid soft resetting AC DLL
@ 2022-10-26 12:41   ` Claudiu Beznea
  0 siblings, 0 replies; 26+ messages in thread
From: Claudiu Beznea @ 2022-10-26 12:41 UTC (permalink / raw)
  To: nicolas.ferre, alexandre.belloni, robh+dt,
	krzysztof.kozlowski+dt, linux, arnd
  Cc: linux-arm-kernel, devicetree, linux-kernel, Claudiu Beznea

Do not soft reset AC DLL as controller is buggy and this operation my
introduce glitches in the controller leading to undefined behavior.

Fixes: f0bbf17958e8 ("ARM: at91: pm: add self-refresh support for sama7g5")
Depends-on: a02875c4cbd6 ("ARM: at91: pm: fix self-refresh for sama7g5")
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 arch/arm/mach-at91/pm_suspend.S | 7 ++++++-
 include/soc/at91/sama7-ddr.h    | 5 ++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-at91/pm_suspend.S b/arch/arm/mach-at91/pm_suspend.S
index ffed4d949042..e4904faf1753 100644
--- a/arch/arm/mach-at91/pm_suspend.S
+++ b/arch/arm/mach-at91/pm_suspend.S
@@ -169,10 +169,15 @@ sr_ena_2:
 	cmp	tmp1, #UDDRC_STAT_SELFREF_TYPE_SW
 	bne	sr_ena_2
 
-	/* Put DDR PHY's DLL in bypass mode for non-backup modes. */
+	/* Disable DX DLLs for non-backup modes. */
 	cmp	r7, #AT91_PM_BACKUP
 	beq	sr_ena_3
 
+	/* Do not soft reset the AC DLL. */
+	ldr	tmp1, [r3, DDR3PHY_ACDLLCR]
+	bic	tmp1, tmp1, DDR3PHY_ACDLLCR_DLLSRST
+	str	tmp1, [r3, DDR3PHY_ACDLLCR]
+
 	/* Disable DX DLLs. */
 	ldr	tmp1, [r3, #DDR3PHY_DX0DLLCR]
 	orr	tmp1, tmp1, #DDR3PHY_DXDLLCR_DLLDIS
diff --git a/include/soc/at91/sama7-ddr.h b/include/soc/at91/sama7-ddr.h
index 6ce3bd22f6c6..5ad7ac2e3a7c 100644
--- a/include/soc/at91/sama7-ddr.h
+++ b/include/soc/at91/sama7-ddr.h
@@ -26,7 +26,10 @@
 #define	DDR3PHY_PGSR				(0x0C)		/* DDR3PHY PHY General Status Register */
 #define		DDR3PHY_PGSR_IDONE		(1 << 0)	/* Initialization Done */
 
-#define DDR3PHY_ACIOCR				(0x24)		/*  DDR3PHY AC I/O Configuration Register */
+#define	DDR3PHY_ACDLLCR				(0x14)		/* DDR3PHY AC DLL Control Register */
+#define		DDR3PHY_ACDLLCR_DLLSRST		(1 << 30)	/* DLL Soft Reset */
+
+#define DDR3PHY_ACIOCR				(0x24)		/* DDR3PHY AC I/O Configuration Register */
 #define		DDR3PHY_ACIOCR_CSPDD_CS0	(1 << 18)	/* CS#[0] Power Down Driver */
 #define		DDR3PHY_ACIOCR_CKPDD_CK0	(1 << 8)	/* CK[0] Power Down Driver */
 #define		DDR3PHY_ACIORC_ACPDD		(1 << 3)	/* AC Power Down Driver */
-- 
2.34.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH 02/11] ARM: dts: at91: sama7g5: add otpc node
  2022-10-26 12:41 ` Claudiu Beznea
@ 2022-10-26 12:41   ` Claudiu Beznea
  -1 siblings, 0 replies; 26+ messages in thread
From: Claudiu Beznea @ 2022-10-26 12:41 UTC (permalink / raw)
  To: nicolas.ferre, alexandre.belloni, robh+dt,
	krzysztof.kozlowski+dt, linux, arnd
  Cc: linux-arm-kernel, devicetree, linux-kernel, Claudiu Beznea

Add OTPC node along with temperature calibration cell.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 arch/arm/boot/dts/sama7g5.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/arm/boot/dts/sama7g5.dtsi b/arch/arm/boot/dts/sama7g5.dtsi
index 7bd8ae8e8d38..ccba1ba5336d 100644
--- a/arch/arm/boot/dts/sama7g5.dtsi
+++ b/arch/arm/boot/dts/sama7g5.dtsi
@@ -15,6 +15,7 @@
 #include <dt-bindings/dma/at91.h>
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/mfd/at91-usart.h>
+#include <dt-bindings/nvmem/microchip,sama7g5-otpc.h>
 
 / {
 	model = "Microchip SAMA7G5 family SoC";
@@ -888,6 +889,17 @@ ddr3phy: ddr3phy@e3804000 {
 			reg = <0xe3804000 0x1000>;
 		};
 
+		otpc: otpc@e8c00000 {
+			compatible = "microchip,sama7g5-otpc", "syscon";
+			reg = <0xe8c00000 0x100>;
+			#address-cells = <1>;
+			#size-cells = <1>;
+
+			temperature_calib: calib@1 {
+				reg = <OTP_PKT(1) 76>;
+			};
+		};
+
 		gic: interrupt-controller@e8c11000 {
 			compatible = "arm,cortex-a7-gic";
 			#interrupt-cells = <3>;
-- 
2.34.1


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

* [PATCH 02/11] ARM: dts: at91: sama7g5: add otpc node
@ 2022-10-26 12:41   ` Claudiu Beznea
  0 siblings, 0 replies; 26+ messages in thread
From: Claudiu Beznea @ 2022-10-26 12:41 UTC (permalink / raw)
  To: nicolas.ferre, alexandre.belloni, robh+dt,
	krzysztof.kozlowski+dt, linux, arnd
  Cc: linux-arm-kernel, devicetree, linux-kernel, Claudiu Beznea

Add OTPC node along with temperature calibration cell.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 arch/arm/boot/dts/sama7g5.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/arm/boot/dts/sama7g5.dtsi b/arch/arm/boot/dts/sama7g5.dtsi
index 7bd8ae8e8d38..ccba1ba5336d 100644
--- a/arch/arm/boot/dts/sama7g5.dtsi
+++ b/arch/arm/boot/dts/sama7g5.dtsi
@@ -15,6 +15,7 @@
 #include <dt-bindings/dma/at91.h>
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/mfd/at91-usart.h>
+#include <dt-bindings/nvmem/microchip,sama7g5-otpc.h>
 
 / {
 	model = "Microchip SAMA7G5 family SoC";
@@ -888,6 +889,17 @@ ddr3phy: ddr3phy@e3804000 {
 			reg = <0xe3804000 0x1000>;
 		};
 
+		otpc: otpc@e8c00000 {
+			compatible = "microchip,sama7g5-otpc", "syscon";
+			reg = <0xe8c00000 0x100>;
+			#address-cells = <1>;
+			#size-cells = <1>;
+
+			temperature_calib: calib@1 {
+				reg = <OTP_PKT(1) 76>;
+			};
+		};
+
 		gic: interrupt-controller@e8c11000 {
 			compatible = "arm,cortex-a7-gic";
 			#interrupt-cells = <3>;
-- 
2.34.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH 03/11] ARM: dts: at91: sama7g5: add io-channel-cells to adc node
  2022-10-26 12:41 ` Claudiu Beznea
@ 2022-10-26 12:41   ` Claudiu Beznea
  -1 siblings, 0 replies; 26+ messages in thread
From: Claudiu Beznea @ 2022-10-26 12:41 UTC (permalink / raw)
  To: nicolas.ferre, alexandre.belloni, robh+dt,
	krzysztof.kozlowski+dt, linux, arnd
  Cc: linux-arm-kernel, devicetree, linux-kernel, Claudiu Beznea

Add io-channel-cell to ADC node. It is necessary for DT users of ADC.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 arch/arm/boot/dts/sama7g5.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/boot/dts/sama7g5.dtsi b/arch/arm/boot/dts/sama7g5.dtsi
index ccba1ba5336d..1599b911c97e 100644
--- a/arch/arm/boot/dts/sama7g5.dtsi
+++ b/arch/arm/boot/dts/sama7g5.dtsi
@@ -421,6 +421,7 @@ adc: adc@e1000000 {
 			atmel,min-sample-rate-hz = <200000>;
 			atmel,max-sample-rate-hz = <20000000>;
 			atmel,startup-time-ms = <4>;
+			#io-channel-cells = <1>;
 			status = "disabled";
 		};
 
-- 
2.34.1


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

* [PATCH 03/11] ARM: dts: at91: sama7g5: add io-channel-cells to adc node
@ 2022-10-26 12:41   ` Claudiu Beznea
  0 siblings, 0 replies; 26+ messages in thread
From: Claudiu Beznea @ 2022-10-26 12:41 UTC (permalink / raw)
  To: nicolas.ferre, alexandre.belloni, robh+dt,
	krzysztof.kozlowski+dt, linux, arnd
  Cc: linux-arm-kernel, devicetree, linux-kernel, Claudiu Beznea

Add io-channel-cell to ADC node. It is necessary for DT users of ADC.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 arch/arm/boot/dts/sama7g5.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/boot/dts/sama7g5.dtsi b/arch/arm/boot/dts/sama7g5.dtsi
index ccba1ba5336d..1599b911c97e 100644
--- a/arch/arm/boot/dts/sama7g5.dtsi
+++ b/arch/arm/boot/dts/sama7g5.dtsi
@@ -421,6 +421,7 @@ adc: adc@e1000000 {
 			atmel,min-sample-rate-hz = <200000>;
 			atmel,max-sample-rate-hz = <20000000>;
 			atmel,startup-time-ms = <4>;
+			#io-channel-cells = <1>;
 			status = "disabled";
 		};
 
-- 
2.34.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH 04/11] ARM: dts: at91: sama7g5: add cells for temperature calibration
  2022-10-26 12:41 ` Claudiu Beznea
@ 2022-10-26 12:41   ` Claudiu Beznea
  -1 siblings, 0 replies; 26+ messages in thread
From: Claudiu Beznea @ 2022-10-26 12:41 UTC (permalink / raw)
  To: nicolas.ferre, alexandre.belloni, robh+dt,
	krzysztof.kozlowski+dt, linux, arnd
  Cc: linux-arm-kernel, devicetree, linux-kernel, Claudiu Beznea

Add NVMEM cell to ADC for temperature calibration data.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 arch/arm/boot/dts/sama7g5.dtsi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/boot/dts/sama7g5.dtsi b/arch/arm/boot/dts/sama7g5.dtsi
index 1599b911c97e..1094c0afc0c5 100644
--- a/arch/arm/boot/dts/sama7g5.dtsi
+++ b/arch/arm/boot/dts/sama7g5.dtsi
@@ -422,6 +422,8 @@ adc: adc@e1000000 {
 			atmel,max-sample-rate-hz = <20000000>;
 			atmel,startup-time-ms = <4>;
 			#io-channel-cells = <1>;
+			nvmem-cells = <&temperature_calib>;
+			nvmem-cell-names = "temperature_calib";
 			status = "disabled";
 		};
 
-- 
2.34.1


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

* [PATCH 04/11] ARM: dts: at91: sama7g5: add cells for temperature calibration
@ 2022-10-26 12:41   ` Claudiu Beznea
  0 siblings, 0 replies; 26+ messages in thread
From: Claudiu Beznea @ 2022-10-26 12:41 UTC (permalink / raw)
  To: nicolas.ferre, alexandre.belloni, robh+dt,
	krzysztof.kozlowski+dt, linux, arnd
  Cc: linux-arm-kernel, devicetree, linux-kernel, Claudiu Beznea

Add NVMEM cell to ADC for temperature calibration data.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 arch/arm/boot/dts/sama7g5.dtsi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/boot/dts/sama7g5.dtsi b/arch/arm/boot/dts/sama7g5.dtsi
index 1599b911c97e..1094c0afc0c5 100644
--- a/arch/arm/boot/dts/sama7g5.dtsi
+++ b/arch/arm/boot/dts/sama7g5.dtsi
@@ -422,6 +422,8 @@ adc: adc@e1000000 {
 			atmel,max-sample-rate-hz = <20000000>;
 			atmel,startup-time-ms = <4>;
 			#io-channel-cells = <1>;
+			nvmem-cells = <&temperature_calib>;
+			nvmem-cell-names = "temperature_calib";
 			status = "disabled";
 		};
 
-- 
2.34.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH 05/11] ARM: dts: at91: sama7g5: add temperature sensor
  2022-10-26 12:41 ` Claudiu Beznea
@ 2022-10-26 12:41   ` Claudiu Beznea
  -1 siblings, 0 replies; 26+ messages in thread
From: Claudiu Beznea @ 2022-10-26 12:41 UTC (permalink / raw)
  To: nicolas.ferre, alexandre.belloni, robh+dt,
	krzysztof.kozlowski+dt, linux, arnd
  Cc: linux-arm-kernel, devicetree, linux-kernel, Claudiu Beznea

Add temperature sensor node.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 arch/arm/boot/dts/sama7g5.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/sama7g5.dtsi b/arch/arm/boot/dts/sama7g5.dtsi
index 1094c0afc0c5..52829be04427 100644
--- a/arch/arm/boot/dts/sama7g5.dtsi
+++ b/arch/arm/boot/dts/sama7g5.dtsi
@@ -9,6 +9,7 @@
  *
  */
 
+#include <dt-bindings/iio/adc/at91-sama5d2_adc.h>
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 #include <dt-bindings/clock/at91.h>
@@ -109,6 +110,13 @@ ns_sram: sram@100000 {
 		ranges;
 	};
 
+	thermal_sensor: thermal-sensor {
+		compatible = "generic-adc-thermal";
+		#thermal-sensor-cells = <0>;
+		io-channels = <&adc AT91_SAMA7G5_ADC_TEMP_CHANNEL>;
+		io-channel-names = "sensor-channel";
+	};
+
 	soc {
 		compatible = "simple-bus";
 		#address-cells = <1>;
-- 
2.34.1


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

* [PATCH 05/11] ARM: dts: at91: sama7g5: add temperature sensor
@ 2022-10-26 12:41   ` Claudiu Beznea
  0 siblings, 0 replies; 26+ messages in thread
From: Claudiu Beznea @ 2022-10-26 12:41 UTC (permalink / raw)
  To: nicolas.ferre, alexandre.belloni, robh+dt,
	krzysztof.kozlowski+dt, linux, arnd
  Cc: linux-arm-kernel, devicetree, linux-kernel, Claudiu Beznea

Add temperature sensor node.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 arch/arm/boot/dts/sama7g5.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/sama7g5.dtsi b/arch/arm/boot/dts/sama7g5.dtsi
index 1094c0afc0c5..52829be04427 100644
--- a/arch/arm/boot/dts/sama7g5.dtsi
+++ b/arch/arm/boot/dts/sama7g5.dtsi
@@ -9,6 +9,7 @@
  *
  */
 
+#include <dt-bindings/iio/adc/at91-sama5d2_adc.h>
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 #include <dt-bindings/clock/at91.h>
@@ -109,6 +110,13 @@ ns_sram: sram@100000 {
 		ranges;
 	};
 
+	thermal_sensor: thermal-sensor {
+		compatible = "generic-adc-thermal";
+		#thermal-sensor-cells = <0>;
+		io-channels = <&adc AT91_SAMA7G5_ADC_TEMP_CHANNEL>;
+		io-channel-names = "sensor-channel";
+	};
+
 	soc {
 		compatible = "simple-bus";
 		#address-cells = <1>;
-- 
2.34.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH 06/11] ARM: dts: at91: sama7g5: add thermal zones node
  2022-10-26 12:41 ` Claudiu Beznea
@ 2022-10-26 12:41   ` Claudiu Beznea
  -1 siblings, 0 replies; 26+ messages in thread
From: Claudiu Beznea @ 2022-10-26 12:41 UTC (permalink / raw)
  To: nicolas.ferre, alexandre.belloni, robh+dt,
	krzysztof.kozlowski+dt, linux, arnd
  Cc: linux-arm-kernel, devicetree, linux-kernel, Claudiu Beznea

Add thermal zones node with its associated trips and cooling-maps.
It uses CPUFreq as cooling device for temperatures in the interval
[90, 100) degrees Celsius and describe the temperature of 100 degrees
Celsius as critical temperature. System will be is shutting down when
reaching critical temperature.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 arch/arm/boot/dts/sama7g5.dtsi | 42 ++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/arch/arm/boot/dts/sama7g5.dtsi b/arch/arm/boot/dts/sama7g5.dtsi
index 52829be04427..fb517f9aff30 100644
--- a/arch/arm/boot/dts/sama7g5.dtsi
+++ b/arch/arm/boot/dts/sama7g5.dtsi
@@ -17,6 +17,7 @@
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/mfd/at91-usart.h>
 #include <dt-bindings/nvmem/microchip,sama7g5-otpc.h>
+#include <dt-bindings/thermal/thermal.h>
 
 / {
 	model = "Microchip SAMA7G5 family SoC";
@@ -36,6 +37,7 @@ cpu0: cpu@0 {
 			clocks = <&pmc PMC_TYPE_CORE PMC_CPUPLL>;
 			clock-names = "cpu";
 			operating-points-v2 = <&cpu_opp_table>;
+			#cooling-cells = <2>; /* min followed by max */
 		};
 	};
 
@@ -74,6 +76,46 @@ opp-1000000002 {
 		};
 	};
 
+	thermal-zones {
+		cpu_thermal: cpu-thermal {
+			polling-delay-passive = <1000>;
+			polling-delay = <5000>;
+			thermal-sensors = <&thermal_sensor>;
+
+			trips {
+				cpu_normal: cpu-alert0 {
+					temperature = <90000>;
+					hysteresis = <0>;
+					type = "passive";
+				};
+
+				cpu_hot: cpu-alert1 {
+					temperature = <95000>;
+					hysteresis = <0>;
+					type = "passive";
+				};
+
+				cpu_critical: cpu-critical {
+					temperature = <100000>;
+					hysteresis = <0>;
+					type = "critical";
+				};
+			};
+
+			cooling-maps {
+				map0 {
+					trip = <&cpu_normal>;
+					cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+				};
+
+				map1 {
+					trip = <&cpu_hot>;
+					cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+				};
+			};
+		};
+	};
+
 	clocks {
 		slow_xtal: slow_xtal {
 			compatible = "fixed-clock";
-- 
2.34.1


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

* [PATCH 06/11] ARM: dts: at91: sama7g5: add thermal zones node
@ 2022-10-26 12:41   ` Claudiu Beznea
  0 siblings, 0 replies; 26+ messages in thread
From: Claudiu Beznea @ 2022-10-26 12:41 UTC (permalink / raw)
  To: nicolas.ferre, alexandre.belloni, robh+dt,
	krzysztof.kozlowski+dt, linux, arnd
  Cc: linux-arm-kernel, devicetree, linux-kernel, Claudiu Beznea

Add thermal zones node with its associated trips and cooling-maps.
It uses CPUFreq as cooling device for temperatures in the interval
[90, 100) degrees Celsius and describe the temperature of 100 degrees
Celsius as critical temperature. System will be is shutting down when
reaching critical temperature.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 arch/arm/boot/dts/sama7g5.dtsi | 42 ++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/arch/arm/boot/dts/sama7g5.dtsi b/arch/arm/boot/dts/sama7g5.dtsi
index 52829be04427..fb517f9aff30 100644
--- a/arch/arm/boot/dts/sama7g5.dtsi
+++ b/arch/arm/boot/dts/sama7g5.dtsi
@@ -17,6 +17,7 @@
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/mfd/at91-usart.h>
 #include <dt-bindings/nvmem/microchip,sama7g5-otpc.h>
+#include <dt-bindings/thermal/thermal.h>
 
 / {
 	model = "Microchip SAMA7G5 family SoC";
@@ -36,6 +37,7 @@ cpu0: cpu@0 {
 			clocks = <&pmc PMC_TYPE_CORE PMC_CPUPLL>;
 			clock-names = "cpu";
 			operating-points-v2 = <&cpu_opp_table>;
+			#cooling-cells = <2>; /* min followed by max */
 		};
 	};
 
@@ -74,6 +76,46 @@ opp-1000000002 {
 		};
 	};
 
+	thermal-zones {
+		cpu_thermal: cpu-thermal {
+			polling-delay-passive = <1000>;
+			polling-delay = <5000>;
+			thermal-sensors = <&thermal_sensor>;
+
+			trips {
+				cpu_normal: cpu-alert0 {
+					temperature = <90000>;
+					hysteresis = <0>;
+					type = "passive";
+				};
+
+				cpu_hot: cpu-alert1 {
+					temperature = <95000>;
+					hysteresis = <0>;
+					type = "passive";
+				};
+
+				cpu_critical: cpu-critical {
+					temperature = <100000>;
+					hysteresis = <0>;
+					type = "critical";
+				};
+			};
+
+			cooling-maps {
+				map0 {
+					trip = <&cpu_normal>;
+					cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+				};
+
+				map1 {
+					trip = <&cpu_hot>;
+					cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+				};
+			};
+		};
+	};
+
 	clocks {
 		slow_xtal: slow_xtal {
 			compatible = "fixed-clock";
-- 
2.34.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH 07/11] ARM: configs: at91: sama7: use make savedefconfig
  2022-10-26 12:41 ` Claudiu Beznea
@ 2022-10-26 12:41   ` Claudiu Beznea
  -1 siblings, 0 replies; 26+ messages in thread
From: Claudiu Beznea @ 2022-10-26 12:41 UTC (permalink / raw)
  To: nicolas.ferre, alexandre.belloni, robh+dt,
	krzysztof.kozlowski+dt, linux, arnd
  Cc: linux-arm-kernel, devicetree, linux-kernel, Claudiu Beznea

Use make savedefconfig on sama7_defconfig.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 arch/arm/configs/sama7_defconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/configs/sama7_defconfig b/arch/arm/configs/sama7_defconfig
index 8f28c9d443f0..dcd2705b7c97 100644
--- a/arch/arm/configs/sama7_defconfig
+++ b/arch/arm/configs/sama7_defconfig
@@ -211,13 +211,13 @@ CONFIG_NLS_ISO8859_1=y
 CONFIG_NLS_UTF8=y
 CONFIG_LSM="N"
 CONFIG_CRYPTO_AUTHENC=y
-CONFIG_CRYPTO_GCM=y
+CONFIG_CRYPTO_DES=y
 CONFIG_CRYPTO_CBC=y
 CONFIG_CRYPTO_CFB=y
 CONFIG_CRYPTO_OFB=y
 CONFIG_CRYPTO_XTS=y
+CONFIG_CRYPTO_GCM=y
 CONFIG_CRYPTO_SHA1=y
-CONFIG_CRYPTO_DES=y
 CONFIG_CRYPTO_USER_API_HASH=m
 CONFIG_CRYPTO_USER_API_SKCIPHER=m
 CONFIG_CRYPTO_DEV_ATMEL_AES=y
-- 
2.34.1


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

* [PATCH 07/11] ARM: configs: at91: sama7: use make savedefconfig
@ 2022-10-26 12:41   ` Claudiu Beznea
  0 siblings, 0 replies; 26+ messages in thread
From: Claudiu Beznea @ 2022-10-26 12:41 UTC (permalink / raw)
  To: nicolas.ferre, alexandre.belloni, robh+dt,
	krzysztof.kozlowski+dt, linux, arnd
  Cc: linux-arm-kernel, devicetree, linux-kernel, Claudiu Beznea

Use make savedefconfig on sama7_defconfig.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 arch/arm/configs/sama7_defconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/configs/sama7_defconfig b/arch/arm/configs/sama7_defconfig
index 8f28c9d443f0..dcd2705b7c97 100644
--- a/arch/arm/configs/sama7_defconfig
+++ b/arch/arm/configs/sama7_defconfig
@@ -211,13 +211,13 @@ CONFIG_NLS_ISO8859_1=y
 CONFIG_NLS_UTF8=y
 CONFIG_LSM="N"
 CONFIG_CRYPTO_AUTHENC=y
-CONFIG_CRYPTO_GCM=y
+CONFIG_CRYPTO_DES=y
 CONFIG_CRYPTO_CBC=y
 CONFIG_CRYPTO_CFB=y
 CONFIG_CRYPTO_OFB=y
 CONFIG_CRYPTO_XTS=y
+CONFIG_CRYPTO_GCM=y
 CONFIG_CRYPTO_SHA1=y
-CONFIG_CRYPTO_DES=y
 CONFIG_CRYPTO_USER_API_HASH=m
 CONFIG_CRYPTO_USER_API_SKCIPHER=m
 CONFIG_CRYPTO_DEV_ATMEL_AES=y
-- 
2.34.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH 08/11] ARM: configs: at91: sama7: add config for microchip otpc
  2022-10-26 12:41 ` Claudiu Beznea
@ 2022-10-26 12:41   ` Claudiu Beznea
  -1 siblings, 0 replies; 26+ messages in thread
From: Claudiu Beznea @ 2022-10-26 12:41 UTC (permalink / raw)
  To: nicolas.ferre, alexandre.belloni, robh+dt,
	krzysztof.kozlowski+dt, linux, arnd
  Cc: linux-arm-kernel, devicetree, linux-kernel, Claudiu Beznea

Add config flag for Microchip OTPC.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 arch/arm/configs/sama7_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/sama7_defconfig b/arch/arm/configs/sama7_defconfig
index dcd2705b7c97..d5b748e2e772 100644
--- a/arch/arm/configs/sama7_defconfig
+++ b/arch/arm/configs/sama7_defconfig
@@ -196,6 +196,7 @@ CONFIG_PWM=y
 CONFIG_PWM_ATMEL=y
 CONFIG_MCHP_EIC=y
 CONFIG_RESET_CONTROLLER=y
+CONFIG_NVMEM_MICROCHIP_OTPC=y
 CONFIG_EXT2_FS=y
 CONFIG_EXT3_FS=y
 CONFIG_FANOTIFY=y
-- 
2.34.1


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

* [PATCH 08/11] ARM: configs: at91: sama7: add config for microchip otpc
@ 2022-10-26 12:41   ` Claudiu Beznea
  0 siblings, 0 replies; 26+ messages in thread
From: Claudiu Beznea @ 2022-10-26 12:41 UTC (permalink / raw)
  To: nicolas.ferre, alexandre.belloni, robh+dt,
	krzysztof.kozlowski+dt, linux, arnd
  Cc: linux-arm-kernel, devicetree, linux-kernel, Claudiu Beznea

Add config flag for Microchip OTPC.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 arch/arm/configs/sama7_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/sama7_defconfig b/arch/arm/configs/sama7_defconfig
index dcd2705b7c97..d5b748e2e772 100644
--- a/arch/arm/configs/sama7_defconfig
+++ b/arch/arm/configs/sama7_defconfig
@@ -196,6 +196,7 @@ CONFIG_PWM=y
 CONFIG_PWM_ATMEL=y
 CONFIG_MCHP_EIC=y
 CONFIG_RESET_CONTROLLER=y
+CONFIG_NVMEM_MICROCHIP_OTPC=y
 CONFIG_EXT2_FS=y
 CONFIG_EXT3_FS=y
 CONFIG_FANOTIFY=y
-- 
2.34.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH 09/11] ARM: configs: at91: sama7: add config for thermal management
  2022-10-26 12:41 ` Claudiu Beznea
@ 2022-10-26 12:41   ` Claudiu Beznea
  -1 siblings, 0 replies; 26+ messages in thread
From: Claudiu Beznea @ 2022-10-26 12:41 UTC (permalink / raw)
  To: nicolas.ferre, alexandre.belloni, robh+dt,
	krzysztof.kozlowski+dt, linux, arnd
  Cc: linux-arm-kernel, devicetree, linux-kernel, Claudiu Beznea

Add config flags for thermal management.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 arch/arm/configs/sama7_defconfig | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/configs/sama7_defconfig b/arch/arm/configs/sama7_defconfig
index d5b748e2e772..9b98e190f405 100644
--- a/arch/arm/configs/sama7_defconfig
+++ b/arch/arm/configs/sama7_defconfig
@@ -128,6 +128,10 @@ CONFIG_POWER_RESET=y
 CONFIG_POWER_RESET_AT91_RESET=y
 CONFIG_POWER_RESET_AT91_SAMA5D2_SHDWC=y
 # CONFIG_HWMON is not set
+CONFIG_THERMAL=y
+CONFIG_THERMAL_STATISTICS=y
+CONFIG_CPU_THERMAL=y
+CONFIG_GENERIC_ADC_THERMAL=y
 CONFIG_WATCHDOG=y
 CONFIG_SAMA5D4_WATCHDOG=y
 CONFIG_MFD_ATMEL_FLEXCOM=y
-- 
2.34.1


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

* [PATCH 09/11] ARM: configs: at91: sama7: add config for thermal management
@ 2022-10-26 12:41   ` Claudiu Beznea
  0 siblings, 0 replies; 26+ messages in thread
From: Claudiu Beznea @ 2022-10-26 12:41 UTC (permalink / raw)
  To: nicolas.ferre, alexandre.belloni, robh+dt,
	krzysztof.kozlowski+dt, linux, arnd
  Cc: linux-arm-kernel, devicetree, linux-kernel, Claudiu Beznea

Add config flags for thermal management.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 arch/arm/configs/sama7_defconfig | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/configs/sama7_defconfig b/arch/arm/configs/sama7_defconfig
index d5b748e2e772..9b98e190f405 100644
--- a/arch/arm/configs/sama7_defconfig
+++ b/arch/arm/configs/sama7_defconfig
@@ -128,6 +128,10 @@ CONFIG_POWER_RESET=y
 CONFIG_POWER_RESET_AT91_RESET=y
 CONFIG_POWER_RESET_AT91_SAMA5D2_SHDWC=y
 # CONFIG_HWMON is not set
+CONFIG_THERMAL=y
+CONFIG_THERMAL_STATISTICS=y
+CONFIG_CPU_THERMAL=y
+CONFIG_GENERIC_ADC_THERMAL=y
 CONFIG_WATCHDOG=y
 CONFIG_SAMA5D4_WATCHDOG=y
 CONFIG_MFD_ATMEL_FLEXCOM=y
-- 
2.34.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH 10/11] ARM: dts: at91: sama7g5: use generic name for securam
  2022-10-26 12:41 ` Claudiu Beznea
@ 2022-10-26 12:41   ` Claudiu Beznea
  -1 siblings, 0 replies; 26+ messages in thread
From: Claudiu Beznea @ 2022-10-26 12:41 UTC (permalink / raw)
  To: nicolas.ferre, alexandre.belloni, robh+dt,
	krzysztof.kozlowski+dt, linux, arnd
  Cc: linux-arm-kernel, devicetree, linux-kernel, Claudiu Beznea

Use generic sram name for securam.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 arch/arm/boot/dts/sama7g5.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/sama7g5.dtsi b/arch/arm/boot/dts/sama7g5.dtsi
index fb517f9aff30..1f7093b3755b 100644
--- a/arch/arm/boot/dts/sama7g5.dtsi
+++ b/arch/arm/boot/dts/sama7g5.dtsi
@@ -204,7 +204,7 @@ nand_controller: nand-controller {
 			};
 		};
 
-		securam: securam@e0000000 {
+		securam: sram@e0000000 {
 			compatible = "microchip,sama7g5-securam", "atmel,sama5d2-securam", "mmio-sram";
 			reg = <0xe0000000 0x4000>;
 			clocks = <&pmc PMC_TYPE_PERIPHERAL 18>;
-- 
2.34.1


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

* [PATCH 10/11] ARM: dts: at91: sama7g5: use generic name for securam
@ 2022-10-26 12:41   ` Claudiu Beznea
  0 siblings, 0 replies; 26+ messages in thread
From: Claudiu Beznea @ 2022-10-26 12:41 UTC (permalink / raw)
  To: nicolas.ferre, alexandre.belloni, robh+dt,
	krzysztof.kozlowski+dt, linux, arnd
  Cc: linux-arm-kernel, devicetree, linux-kernel, Claudiu Beznea

Use generic sram name for securam.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 arch/arm/boot/dts/sama7g5.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/sama7g5.dtsi b/arch/arm/boot/dts/sama7g5.dtsi
index fb517f9aff30..1f7093b3755b 100644
--- a/arch/arm/boot/dts/sama7g5.dtsi
+++ b/arch/arm/boot/dts/sama7g5.dtsi
@@ -204,7 +204,7 @@ nand_controller: nand-controller {
 			};
 		};
 
-		securam: securam@e0000000 {
+		securam: sram@e0000000 {
 			compatible = "microchip,sama7g5-securam", "atmel,sama5d2-securam", "mmio-sram";
 			reg = <0xe0000000 0x4000>;
 			clocks = <&pmc PMC_TYPE_PERIPHERAL 18>;
-- 
2.34.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH 11/11] ARM: dts: at91: sam9x60ek: remove status = "okay" for regulators
  2022-10-26 12:41 ` Claudiu Beznea
@ 2022-10-26 12:41   ` Claudiu Beznea
  -1 siblings, 0 replies; 26+ messages in thread
From: Claudiu Beznea @ 2022-10-26 12:41 UTC (permalink / raw)
  To: nicolas.ferre, alexandre.belloni, robh+dt,
	krzysztof.kozlowski+dt, linux, arnd
  Cc: linux-arm-kernel, devicetree, linux-kernel, Claudiu Beznea

Remove status = "okay" for sam9x60ek regulator as okay is the default
status.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 arch/arm/boot/dts/at91-sam9x60ek.dts | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/arch/arm/boot/dts/at91-sam9x60ek.dts b/arch/arm/boot/dts/at91-sam9x60ek.dts
index 4ba52ba11dc6..d929c1ba5789 100644
--- a/arch/arm/boot/dts/at91-sam9x60ek.dts
+++ b/arch/arm/boot/dts/at91-sam9x60ek.dts
@@ -76,7 +76,6 @@ vdd_1v8: fixed-regulator-vdd_1v8 {
 		regulator-min-microvolt = <1800000>;
 		regulator-max-microvolt = <1800000>;
 		regulator-always-on;
-		status = "okay";
 	};
 
 	vdd_1v15: fixed-regulator-vdd_1v15 {
@@ -85,7 +84,6 @@ vdd_1v15: fixed-regulator-vdd_1v15 {
 		regulator-min-microvolt = <1150000>;
 		regulator-max-microvolt = <1150000>;
 		regulator-always-on;
-		status = "okay";
 	};
 
 	vdd1_3v3: fixed-regulator-vdd1_3v3 {
@@ -94,7 +92,6 @@ vdd1_3v3: fixed-regulator-vdd1_3v3 {
 		regulator-min-microvolt = <3300000>;
 		regulator-max-microvolt = <3300000>;
 		regulator-always-on;
-		status = "okay";
 	};
 
 	vdd2_3v3: regulator-fixed-vdd2_3v3 {
@@ -103,7 +100,6 @@ vdd2_3v3: regulator-fixed-vdd2_3v3 {
 		regulator-min-microvolt = <3300000>;
 		regulator-max-microvolt = <3300000>;
 		regulator-always-on;
-		status = "okay";
 	};
 };
 
-- 
2.34.1


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

* [PATCH 11/11] ARM: dts: at91: sam9x60ek: remove status = "okay" for regulators
@ 2022-10-26 12:41   ` Claudiu Beznea
  0 siblings, 0 replies; 26+ messages in thread
From: Claudiu Beznea @ 2022-10-26 12:41 UTC (permalink / raw)
  To: nicolas.ferre, alexandre.belloni, robh+dt,
	krzysztof.kozlowski+dt, linux, arnd
  Cc: linux-arm-kernel, devicetree, linux-kernel, Claudiu Beznea

Remove status = "okay" for sam9x60ek regulator as okay is the default
status.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 arch/arm/boot/dts/at91-sam9x60ek.dts | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/arch/arm/boot/dts/at91-sam9x60ek.dts b/arch/arm/boot/dts/at91-sam9x60ek.dts
index 4ba52ba11dc6..d929c1ba5789 100644
--- a/arch/arm/boot/dts/at91-sam9x60ek.dts
+++ b/arch/arm/boot/dts/at91-sam9x60ek.dts
@@ -76,7 +76,6 @@ vdd_1v8: fixed-regulator-vdd_1v8 {
 		regulator-min-microvolt = <1800000>;
 		regulator-max-microvolt = <1800000>;
 		regulator-always-on;
-		status = "okay";
 	};
 
 	vdd_1v15: fixed-regulator-vdd_1v15 {
@@ -85,7 +84,6 @@ vdd_1v15: fixed-regulator-vdd_1v15 {
 		regulator-min-microvolt = <1150000>;
 		regulator-max-microvolt = <1150000>;
 		regulator-always-on;
-		status = "okay";
 	};
 
 	vdd1_3v3: fixed-regulator-vdd1_3v3 {
@@ -94,7 +92,6 @@ vdd1_3v3: fixed-regulator-vdd1_3v3 {
 		regulator-min-microvolt = <3300000>;
 		regulator-max-microvolt = <3300000>;
 		regulator-always-on;
-		status = "okay";
 	};
 
 	vdd2_3v3: regulator-fixed-vdd2_3v3 {
@@ -103,7 +100,6 @@ vdd2_3v3: regulator-fixed-vdd2_3v3 {
 		regulator-min-microvolt = <3300000>;
 		regulator-max-microvolt = <3300000>;
 		regulator-always-on;
-		status = "okay";
 	};
 };
 
-- 
2.34.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH 00/11] ARM: at91: fixes and enhancement
  2022-10-26 12:41 ` Claudiu Beznea
@ 2022-11-01 15:09   ` Claudiu.Beznea
  -1 siblings, 0 replies; 26+ messages in thread
From: Claudiu.Beznea @ 2022-11-01 15:09 UTC (permalink / raw)
  To: Nicolas.Ferre, alexandre.belloni, robh+dt,
	krzysztof.kozlowski+dt, linux, arnd
  Cc: linux-arm-kernel, devicetree, linux-kernel

On 26.10.2022 15:41, Claudiu Beznea wrote:
> Hi,
> 
> The following series adds:
> - one fix for self-refresh on SAMA7G5 (patch 1/11)
> - thermal management support for SAMA7G5 (patches 2/11-9/11)
> - 2 cleanup patches (patches 10/11, 11/11)
> 
> Thank you,
> Claudiu Beznea
> 
> Claudiu Beznea (11):
>   ARM: at91: pm: avoid soft resetting AC DLL

Applied to at91-fixes.

>   ARM: dts: at91: sama7g5: add otpc node

Applid to at91-dt after after s/optc@/efuse@ for node.

>   ARM: dts: at91: add io-channel-cells to adc node
>   ARM: dts: at91: sama7g5: add cells for temperature calibration
>   ARM: dts: at91: sama7g5: add temperature sensor
>   ARM: dts: at91: sama7g5: add thermal zones node

Applied to at91-dt.

>   ARM: configs: at91: sama7: use make savedefconfig
>   ARM: configs: at91: sama7: add config for microchip otpc
>   ARM: configs: at91: sama7: add config for thermal management

Applied to at91-defconfig.

>   ARM: dts: at91: sama7g5: use generic name for securam
>   ARM: dts: at91: sam9x60ek: remove status = "okay" for regulators

Applied to at91-dt, thanks!

> 
>  arch/arm/boot/dts/at91-sam9x60ek.dts |  4 --
>  arch/arm/boot/dts/sama7g5.dtsi       | 67 +++++++++++++++++++++++++++-
>  arch/arm/configs/sama7_defconfig     |  9 +++-
>  arch/arm/mach-at91/pm_suspend.S      |  7 ++-
>  include/soc/at91/sama7-ddr.h         |  5 ++-
>  5 files changed, 83 insertions(+), 9 deletions(-)
> 

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH 00/11] ARM: at91: fixes and enhancement
@ 2022-11-01 15:09   ` Claudiu.Beznea
  0 siblings, 0 replies; 26+ messages in thread
From: Claudiu.Beznea @ 2022-11-01 15:09 UTC (permalink / raw)
  To: Nicolas.Ferre, alexandre.belloni, robh+dt,
	krzysztof.kozlowski+dt, linux, arnd
  Cc: linux-arm-kernel, devicetree, linux-kernel

On 26.10.2022 15:41, Claudiu Beznea wrote:
> Hi,
> 
> The following series adds:
> - one fix for self-refresh on SAMA7G5 (patch 1/11)
> - thermal management support for SAMA7G5 (patches 2/11-9/11)
> - 2 cleanup patches (patches 10/11, 11/11)
> 
> Thank you,
> Claudiu Beznea
> 
> Claudiu Beznea (11):
>   ARM: at91: pm: avoid soft resetting AC DLL

Applied to at91-fixes.

>   ARM: dts: at91: sama7g5: add otpc node

Applid to at91-dt after after s/optc@/efuse@ for node.

>   ARM: dts: at91: add io-channel-cells to adc node
>   ARM: dts: at91: sama7g5: add cells for temperature calibration
>   ARM: dts: at91: sama7g5: add temperature sensor
>   ARM: dts: at91: sama7g5: add thermal zones node

Applied to at91-dt.

>   ARM: configs: at91: sama7: use make savedefconfig
>   ARM: configs: at91: sama7: add config for microchip otpc
>   ARM: configs: at91: sama7: add config for thermal management

Applied to at91-defconfig.

>   ARM: dts: at91: sama7g5: use generic name for securam
>   ARM: dts: at91: sam9x60ek: remove status = "okay" for regulators

Applied to at91-dt, thanks!

> 
>  arch/arm/boot/dts/at91-sam9x60ek.dts |  4 --
>  arch/arm/boot/dts/sama7g5.dtsi       | 67 +++++++++++++++++++++++++++-
>  arch/arm/configs/sama7_defconfig     |  9 +++-
>  arch/arm/mach-at91/pm_suspend.S      |  7 ++-
>  include/soc/at91/sama7-ddr.h         |  5 ++-
>  5 files changed, 83 insertions(+), 9 deletions(-)
> 


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

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

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-26 12:41 [PATCH 00/11] ARM: at91: fixes and enhancement Claudiu Beznea
2022-10-26 12:41 ` Claudiu Beznea
2022-10-26 12:41 ` [PATCH 01/11] ARM: at91: pm: avoid soft resetting AC DLL Claudiu Beznea
2022-10-26 12:41   ` Claudiu Beznea
2022-10-26 12:41 ` [PATCH 02/11] ARM: dts: at91: sama7g5: add otpc node Claudiu Beznea
2022-10-26 12:41   ` Claudiu Beznea
2022-10-26 12:41 ` [PATCH 03/11] ARM: dts: at91: sama7g5: add io-channel-cells to adc node Claudiu Beznea
2022-10-26 12:41   ` Claudiu Beznea
2022-10-26 12:41 ` [PATCH 04/11] ARM: dts: at91: sama7g5: add cells for temperature calibration Claudiu Beznea
2022-10-26 12:41   ` Claudiu Beznea
2022-10-26 12:41 ` [PATCH 05/11] ARM: dts: at91: sama7g5: add temperature sensor Claudiu Beznea
2022-10-26 12:41   ` Claudiu Beznea
2022-10-26 12:41 ` [PATCH 06/11] ARM: dts: at91: sama7g5: add thermal zones node Claudiu Beznea
2022-10-26 12:41   ` Claudiu Beznea
2022-10-26 12:41 ` [PATCH 07/11] ARM: configs: at91: sama7: use make savedefconfig Claudiu Beznea
2022-10-26 12:41   ` Claudiu Beznea
2022-10-26 12:41 ` [PATCH 08/11] ARM: configs: at91: sama7: add config for microchip otpc Claudiu Beznea
2022-10-26 12:41   ` Claudiu Beznea
2022-10-26 12:41 ` [PATCH 09/11] ARM: configs: at91: sama7: add config for thermal management Claudiu Beznea
2022-10-26 12:41   ` Claudiu Beznea
2022-10-26 12:41 ` [PATCH 10/11] ARM: dts: at91: sama7g5: use generic name for securam Claudiu Beznea
2022-10-26 12:41   ` Claudiu Beznea
2022-10-26 12:41 ` [PATCH 11/11] ARM: dts: at91: sam9x60ek: remove status = "okay" for regulators Claudiu Beznea
2022-10-26 12:41   ` Claudiu Beznea
2022-11-01 15:09 ` [PATCH 00/11] ARM: at91: fixes and enhancement Claudiu.Beznea
2022-11-01 15:09   ` Claudiu.Beznea

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.