Skip to contentSkip to conversation

ARM: dts: stm32: Do clean up in stmpic nodes

PATCH In review Benjamin Gaignard 2 participants 4 messages Feb 28, 2020 – Mar 13, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: stm32: Do clean up in stmpic nodes

Remove unused properties from stpmic node. The issues have been detected by running dtbs_check.

---
 arch/arm/boot/dts/stm32mp157a-avenger96.dts | 8 --------
 arch/arm/boot/dts/stm32mp157c-ed1.dts       | 3 ---
 arch/arm/boot/dts/stm32mp15xx-dkx.dtsi      | 3 ---
 3 files changed, 14 deletions(-)
arch/arm/boot/dts/stm32mp157a-avenger96.dts +0 -8
index cbfa4075907e..1583be1966eb 100644
@@ -135,10 +135,6 @@
 		#interrupt-cells = <2>;
 		status = "okay";
 
-		st,main-control-register = <0x04>;
-		st,vin-control-register = <0xc0>;
-		st,usb-control-register = <0x30>;
-
 		regulators {
 			compatible = "st,stpmic1-regulators";
 
@@ -173,7 +169,6 @@
 				regulator-min-microvolt = <3300000>;
 				regulator-max-microvolt = <3300000>;
 				regulator-always-on;
-				st,mask_reset;
 				regulator-initial-mode = <0>;
 				regulator-over-current-protection;
 			};
@@ -213,8 +208,6 @@
 
 			vdd_usb: ldo4 {
 				regulator-name = "vdd_usb";
-				regulator-min-microvolt = <3300000>;
-				regulator-max-microvolt = <3300000>;
 				interrupts = <IT_CURLIM_LDO4 0>;
 				interrupt-parent = <&pmic>;
 			};
@@ -240,7 +233,6 @@
 			vref_ddr: vref_ddr {
 				regulator-name = "vref_ddr";
 				regulator-always-on;
-				regulator-over-current-protection;
 			};
 
 			bst_out: boost {
arch/arm/boot/dts/stm32mp157c-ed1.dts +0 -3
index 1fc43251d697..0c304a024e51 100644
@@ -218,8 +218,6 @@
 
 			vdd_usb: ldo4 {
 				regulator-name = "vdd_usb";
-				regulator-min-microvolt = <3300000>;
-				regulator-max-microvolt = <3300000>;
 				interrupts = <IT_CURLIM_LDO4 0>;
 			};
 
@@ -241,7 +239,6 @@
 			vref_ddr: vref_ddr {
 				regulator-name = "vref_ddr";
 				regulator-always-on;
-				regulator-over-current-protection;
 			};
 
 			bst_out: boost {
arch/arm/boot/dts/stm32mp15xx-dkx.dtsi +0 -3
index f6672e87aef3..e50ae7faa0ec 100644
@@ -304,8 +304,6 @@
 
 			vdd_usb: ldo4 {
 				regulator-name = "vdd_usb";
-				regulator-min-microvolt = <3300000>;
-				regulator-max-microvolt = <3300000>;
 				interrupts = <IT_CURLIM_LDO4 0>;
 			};
 
@@ -328,7 +326,6 @@
 			vref_ddr: vref_ddr {
 				regulator-name = "vref_ddr";
 				regulator-always-on;
-				regulator-over-current-protection;
 			};
 
 			 bst_out: boost {
Signature · 1 line
2.15.0
#1 lore raw

PATCH 1/1 ARM: dts: stm32: Rename stmfx node names

Rename stmfx node names according to yaml description.

---
 arch/arm/boot/dts/stm32746g-eval.dts  | 2 +-
 arch/arm/boot/dts/stm32mp157c-ev1.dts | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
arch/arm/boot/dts/stm32746g-eval.dts +1 -1
index fcc804e3c158..4ea3f98dd275 100644
@@ -165,7 +165,7 @@
 		interrupts = <8 IRQ_TYPE_EDGE_RISING>;
 		interrupt-parent = <&gpioi>;
 
-		stmfx_pinctrl: stmfx-pin-controller {
+		stmfx_pinctrl: pinctrl {
 			compatible = "st,stmfx-0300-pinctrl";
 			gpio-controller;
 			#gpio-cells = <2>;
arch/arm/boot/dts/stm32mp157c-ev1.dts +2 -2
index 228e35e16884..3f4668a43afe 100644
@@ -210,7 +210,7 @@
 		interrupt-parent = <&gpioi>;
 		vdd-supply = <&v3v3>;
 
-		stmfx_pinctrl: stmfx-pin-controller {
+		stmfx_pinctrl: pinctrl {
 			compatible = "st,stmfx-0300-pinctrl";
 			gpio-controller;
 			#gpio-cells = <2>;
@@ -218,7 +218,7 @@
 			#interrupt-cells = <2>;
 			gpio-ranges = <&stmfx_pinctrl 0 0 24>;
 
-			joystick_pins: joystick {
+			joystick_pins: joystick-pins {
 				pins = "gpio0", "gpio1", "gpio2", "gpio3", "gpio4";
 				bias-pull-down;
 			};
Signature · 7 lines
2.15.0


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#2 lore raw

Re: [PATCH] ARM: dts: stm32: Rename stmfx node names

Hi Benjamin

Quoted 4 lines · Benjamin Gaignard

Rename stmfx node names according to yaml description.

---

Applied on stm32-next with commit title updated.

Thanks.
Alex

Quoted 32 lines
  arch/arm/boot/dts/stm32746g-eval.dts  | 2 +-
  arch/arm/boot/dts/stm32mp157c-ev1.dts | 4 ++--
  2 files changed, 3 insertions(+), 3 deletions(-)
arch/arm/boot/dts/stm32746g-eval.dts +1 -1
index fcc804e3c158..4ea3f98dd275 100644
@@ -165,7 +165,7 @@
  		interrupts = <8 IRQ_TYPE_EDGE_RISING>;
  		interrupt-parent = <&gpioi>;
 
-		stmfx_pinctrl: stmfx-pin-controller {
+		stmfx_pinctrl: pinctrl {
  			compatible = "st,stmfx-0300-pinctrl";
  			gpio-controller;
  			#gpio-cells = <2>;
arch/arm/boot/dts/stm32mp157c-ev1.dts +1 -1
index 228e35e16884..3f4668a43afe 100644
@@ -210,7 +210,7 @@
  		interrupt-parent = <&gpioi>;
  		vdd-supply = <&v3v3>;
 
-		stmfx_pinctrl: stmfx-pin-controller {
+		stmfx_pinctrl: pinctrl {
  			compatible = "st,stmfx-0300-pinctrl";
  			gpio-controller;
  			#gpio-cells = <2>;

arch/arm/boot/dts/stm32mp157c-ev1.dts line 224

Quoted 8 lines
arch/arm/boot/dts/stm32mp157c-ev1.dts +1 -1
@@ -218,7 +218,7 @@
  			#interrupt-cells = <2>;
  			gpio-ranges = <&stmfx_pinctrl 0 0 24>;
 
-			joystick_pins: joystick {
+			joystick_pins: joystick-pins {
  				pins = "gpio0", "gpio1", "gpio2", "gpio3", "gpio4";
  				bias-pull-down;
  			};

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#3 lore raw
In reply to Benjamin Gaignard

Hi Benjamin

Quoted 4 lines · Benjamin Gaignard

Remove unused properties from stpmic node. The issues have been detected by running dtbs_check.

Applied on stm32-next with commit title updated.

Thanks.
Alex

Quoted 82 lines
---
  arch/arm/boot/dts/stm32mp157a-avenger96.dts | 8 --------
  arch/arm/boot/dts/stm32mp157c-ed1.dts       | 3 ---
  arch/arm/boot/dts/stm32mp15xx-dkx.dtsi      | 3 ---
  3 files changed, 14 deletions(-)
arch/arm/boot/dts/stm32mp157a-avenger96.dts +0 -8
index cbfa4075907e..1583be1966eb 100644
@@ -135,10 +135,6 @@
  		#interrupt-cells = <2>;
  		status = "okay";
 
-		st,main-control-register = <0x04>;
-		st,vin-control-register = <0xc0>;
-		st,usb-control-register = <0x30>;
-
  		regulators {
  			compatible = "st,stpmic1-regulators";
 
@@ -173,7 +169,6 @@
  				regulator-min-microvolt = <3300000>;
  				regulator-max-microvolt = <3300000>;
  				regulator-always-on;
-				st,mask_reset;
  				regulator-initial-mode = <0>;
  				regulator-over-current-protection;
  			};
@@ -213,8 +208,6 @@
 
  			vdd_usb: ldo4 {
  				regulator-name = "vdd_usb";
-				regulator-min-microvolt = <3300000>;
-				regulator-max-microvolt = <3300000>;
  				interrupts = <IT_CURLIM_LDO4 0>;
  				interrupt-parent = <&pmic>;
  			};
@@ -240,7 +233,6 @@
  			vref_ddr: vref_ddr {
  				regulator-name = "vref_ddr";
  				regulator-always-on;
-				regulator-over-current-protection;
  			};
 
  			bst_out: boost {
arch/arm/boot/dts/stm32mp157c-ed1.dts +0 -3
index 1fc43251d697..0c304a024e51 100644
@@ -218,8 +218,6 @@
 
  			vdd_usb: ldo4 {
  				regulator-name = "vdd_usb";
-				regulator-min-microvolt = <3300000>;
-				regulator-max-microvolt = <3300000>;
  				interrupts = <IT_CURLIM_LDO4 0>;
  			};
 
@@ -241,7 +239,6 @@
  			vref_ddr: vref_ddr {
  				regulator-name = "vref_ddr";
  				regulator-always-on;
-				regulator-over-current-protection;
  			};
 
  			bst_out: boost {
arch/arm/boot/dts/stm32mp15xx-dkx.dtsi +0 -2
index f6672e87aef3..e50ae7faa0ec 100644
@@ -304,8 +304,6 @@
 
  			vdd_usb: ldo4 {
  				regulator-name = "vdd_usb";
-				regulator-min-microvolt = <3300000>;
-				regulator-max-microvolt = <3300000>;
  				interrupts = <IT_CURLIM_LDO4 0>;
  			};
 

arch/arm/boot/dts/stm32mp15xx-dkx.dtsi line 331

Quoted 7 lines
arch/arm/boot/dts/stm32mp15xx-dkx.dtsi +0 -1
@@ -328,7 +326,6 @@
  			vref_ddr: vref_ddr {
  				regulator-name = "vref_ddr";
  				regulator-always-on;
-				regulator-over-current-protection;
  			};
 
  			 bst_out: boost {

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel