Skip to contentSkip to conversation

ARM: dts: imx6sll: Remove regulator-3p0 unit address

PATCH Applied Fabio Estevam 2 participants 4 messages Oct 25, 2024 – Nov 2, 2024

Subsystems (2)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/3 ARM: dts: imx6sll: Remove regulator-3p0 unit address

From: Fabio Estevam <[email protected]>

According to imx-thermal.yaml, the anatop regulators should not contain unit-address/reg entries.

Change it accordingly.

---
 arch/arm/boot/dts/nxp/imx/imx6sll.dtsi | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
arch/arm/boot/dts/nxp/imx/imx6sll.dtsi +1 -4
index 85fe2a4ab97a..0fc22c03ccea 100644
@@ -507,12 +507,9 @@ anatop: anatop@20c8000 {
 				interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>,
 					     <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
 					     <GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>;
-				#address-cells = <1>;
-				#size-cells = <0>;
 
-				reg_3p0: regulator-3p0@20c8120 {
+				reg_3p0: regulator-3p0 {
 					compatible = "fsl,anatop-regulator";
-					reg = <0x20c8120>;
 					regulator-name = "vdd3p0";
 					regulator-min-microvolt = <2625000>;
 					regulator-max-microvolt = <3400000>;
Signature · 1 line
2.34.1
author reviewer
#1 lore raw

PATCH 2/3 ARM: dts: imx6sx: Fix tempmon description

From: Fabio Estevam <[email protected]>

According to imx-thermal.yaml, the valid compatible string for i.MX6SX is just: compatible = "fsl,imx6sx-tempmon".

Also pass #thermal-sensor-cells = <0> as it is a required property.

---
 arch/arm/boot/dts/nxp/imx/imx6sx.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/boot/dts/nxp/imx/imx6sx.dtsi +2 -1
index b386448486df..a4abaee771eb 100644
@@ -715,13 +715,14 @@ reg_soc: regulator-vddsoc {
 				};
 
 				tempmon: tempmon {
-					compatible = "fsl,imx6sx-tempmon", "fsl,imx6q-tempmon";
+					compatible = "fsl,imx6sx-tempmon";
 					interrupt-parent = <&gpc>;
 					interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
 					fsl,tempmon = <&anatop>;
 					nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>;
 					nvmem-cell-names = "calib", "temp_grade";
 					clocks = <&clks IMX6SX_CLK_PLL3_USB_OTG>;
+					#thermal-sensor-cells = <0>;
 				};
 			};
 
Signature · 1 line
2.34.1
author reviewer
#2 lore raw

PATCH 3/3 ARM: dts: imx6sl: Pass tempmon #thermal-sensor-cells

In reply to Fabio Estevam

From: Fabio Estevam <[email protected]>

According to fsl,imx-anatop.yaml, #thermal-sensor-cells is a required property.

Add it to fix the following dt-schema warning:

tempmon: '#thermal-sensor-cells' is a required property

---
 arch/arm/boot/dts/nxp/imx/imx6sl.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/nxp/imx/imx6sl.dtsi +1 -0
index 6aa61235e39e..6c98670a44ff 100644
@@ -631,6 +631,7 @@ tempmon: tempmon {
 					nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>;
 					nvmem-cell-names = "calib", "temp_grade";
 					clocks = <&clks IMX6SL_CLK_PLL3_USB_OTG>;
+					#thermal-sensor-cells = <0>;
 				};
 			};
 
Signature · 1 line
2.34.1