devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] Cosmetic Work for ARM/Microchip (AT91)
@ 2024-08-14 12:26 Andrei Simion
  2024-08-14 12:26 ` [PATCH 1/5] ARM: dts: microchip: Clean up spacing and indentation Andrei Simion
                   ` (4 more replies)
  0 siblings, 5 replies; 20+ messages in thread
From: Andrei Simion @ 2024-08-14 12:26 UTC (permalink / raw)
  To: claudiu.beznea, nicolas.ferre, alexandre.belloni, robh, krzk+dt,
	conor+dt, peda
  Cc: linux-arm-kernel, linux-kernel, devicetree, cristian.birsan,
	Andrei Simion

This patch set proposes to:
- clean up coding style errors reported by checkpatch.pl
- align the nodename and sub nodename according to the devicetree
specification even with their binding.

Andrei Simion (5):
  ARM: dts: microchip: Clean up spacing and indentation
  ARM: dts: microchip: Rename the eeprom nodename
  ARM: dts: microchip: Rename the pmic node
  ARM: dts: microchip: Rename the usb node
  ARM: dts: microchip: Rename LED sub nodes name

 arch/arm/boot/dts/microchip/aks-cdu.dts          | 12 ++++++------
 arch/arm/boot/dts/microchip/animeo_ip.dts        | 10 +++++-----
 arch/arm/boot/dts/microchip/at91-ariag25.dts     |  4 ++--
 arch/arm/boot/dts/microchip/at91-ariettag25.dts  |  6 +++---
 .../boot/dts/microchip/at91-cosino_mega2560.dts  |  8 ++++----
 arch/arm/boot/dts/microchip/at91-dvk_som60.dts   |  6 +++---
 .../boot/dts/microchip/at91-dvk_su60_somc.dtsi   |  6 +++---
 arch/arm/boot/dts/microchip/at91-foxg20.dts      |  4 ++--
 arch/arm/boot/dts/microchip/at91-gatwick.dts     |  4 ++--
 arch/arm/boot/dts/microchip/at91-kizbox.dts      |  2 +-
 .../boot/dts/microchip/at91-kizbox2-common.dtsi  |  6 +++---
 arch/arm/boot/dts/microchip/at91-kizbox3-hs.dts  |  6 +++---
 .../dts/microchip/at91-kizboxmini-common.dtsi    |  4 ++--
 .../boot/dts/microchip/at91-kizboxmini-mb.dts    |  2 +-
 arch/arm/boot/dts/microchip/at91-lmu5000.dts     |  4 ++--
 .../boot/dts/microchip/at91-nattis-2-natte-2.dts |  2 +-
 arch/arm/boot/dts/microchip/at91-q5xr5.dts       |  4 ++--
 arch/arm/boot/dts/microchip/at91-qil_a9260.dts   |  4 ++--
 arch/arm/boot/dts/microchip/at91-sam9_l9260.dts  |  2 +-
 .../dts/microchip/at91-sam9x60_curiosity.dts     |  6 +++---
 arch/arm/boot/dts/microchip/at91-sam9x60ek.dts   | 12 ++++++------
 .../boot/dts/microchip/at91-sama5d27_som1.dtsi   |  2 +-
 .../boot/dts/microchip/at91-sama5d27_som1_ek.dts | 14 +++++++-------
 .../boot/dts/microchip/at91-sama5d27_wlsom1.dtsi |  2 +-
 .../dts/microchip/at91-sama5d27_wlsom1_ek.dts    |  6 +++---
 .../dts/microchip/at91-sama5d29_curiosity.dts    |  8 ++++----
 arch/arm/boot/dts/microchip/at91-sama5d2_icp.dts | 16 ++++++++--------
 .../boot/dts/microchip/at91-sama5d2_ptc_ek.dts   |  8 ++++----
 .../boot/dts/microchip/at91-sama5d2_xplained.dts |  8 ++++----
 arch/arm/boot/dts/microchip/at91-sama5d3_eds.dts |  6 +++---
 .../dts/microchip/at91-sama5d3_ksz9477_evb.dts   |  2 +-
 .../boot/dts/microchip/at91-sama5d3_xplained.dts |  8 ++++----
 .../boot/dts/microchip/at91-sama5d4_ma5d4evk.dts |  6 +++---
 .../boot/dts/microchip/at91-sama5d4_xplained.dts |  6 +++---
 arch/arm/boot/dts/microchip/at91-sama5d4ek.dts   |  6 +++---
 arch/arm/boot/dts/microchip/at91-sama7g5ek.dts   |  2 +-
 arch/arm/boot/dts/microchip/at91-som60.dtsi      |  4 ++--
 arch/arm/boot/dts/microchip/at91-tse850-3.dts    |  6 +++---
 arch/arm/boot/dts/microchip/at91-vinco.dts       |  6 +++---
 arch/arm/boot/dts/microchip/at91-wb45n.dts       |  2 +-
 arch/arm/boot/dts/microchip/at91-wb45n.dtsi      |  4 ++--
 arch/arm/boot/dts/microchip/at91-wb50n.dts       |  6 +++---
 arch/arm/boot/dts/microchip/at91-wb50n.dtsi      |  4 ++--
 arch/arm/boot/dts/microchip/at91rm9200.dtsi      |  4 ++--
 arch/arm/boot/dts/microchip/at91rm9200ek.dts     | 10 +++++-----
 arch/arm/boot/dts/microchip/at91sam9260.dtsi     |  4 ++--
 arch/arm/boot/dts/microchip/at91sam9260ek.dts    | 10 +++++-----
 arch/arm/boot/dts/microchip/at91sam9261.dtsi     |  4 ++--
 arch/arm/boot/dts/microchip/at91sam9261ek.dts    | 10 +++++-----
 arch/arm/boot/dts/microchip/at91sam9263.dtsi     |  4 ++--
 arch/arm/boot/dts/microchip/at91sam9263ek.dts    | 12 ++++++------
 arch/arm/boot/dts/microchip/at91sam9g20ek.dts    |  4 ++--
 .../boot/dts/microchip/at91sam9g20ek_common.dtsi |  6 +++---
 arch/arm/boot/dts/microchip/at91sam9g45.dtsi     |  6 +++---
 arch/arm/boot/dts/microchip/at91sam9m10g45ek.dts |  6 +++---
 arch/arm/boot/dts/microchip/at91sam9n12.dtsi     |  4 ++--
 arch/arm/boot/dts/microchip/at91sam9n12ek.dts    |  4 ++--
 arch/arm/boot/dts/microchip/at91sam9rl.dtsi      |  2 +-
 arch/arm/boot/dts/microchip/at91sam9rlek.dts     |  2 +-
 arch/arm/boot/dts/microchip/at91sam9x5.dtsi      |  6 +++---
 arch/arm/boot/dts/microchip/at91sam9x5ek.dtsi    |  6 +++---
 arch/arm/boot/dts/microchip/ethernut5.dts        |  4 ++--
 arch/arm/boot/dts/microchip/evk-pro3.dts         |  4 ++--
 arch/arm/boot/dts/microchip/mpa1600.dts          |  2 +-
 arch/arm/boot/dts/microchip/pm9g45.dts           |  4 ++--
 arch/arm/boot/dts/microchip/sam9x60.dtsi         |  6 +++---
 arch/arm/boot/dts/microchip/sama5d2.dtsi         |  6 +++---
 arch/arm/boot/dts/microchip/sama5d3.dtsi         |  6 +++---
 arch/arm/boot/dts/microchip/sama5d34ek.dts       |  2 +-
 arch/arm/boot/dts/microchip/sama5d3xcm_cmp.dtsi  |  2 +-
 arch/arm/boot/dts/microchip/sama5d3xmb.dtsi      |  6 +++---
 arch/arm/boot/dts/microchip/sama5d3xmb_cmp.dtsi  |  2 +-
 arch/arm/boot/dts/microchip/sama5d4.dtsi         |  6 +++---
 arch/arm/boot/dts/microchip/tny_a9263.dts        |  2 +-
 .../arm/boot/dts/microchip/usb_a9260_common.dtsi |  4 ++--
 arch/arm/boot/dts/microchip/usb_a9263.dts        |  4 ++--
 76 files changed, 205 insertions(+), 205 deletions(-)


base-commit: 320eb81df4f6c1a1814fd02ebb4ba41eb80a3c7e
-- 
2.34.1


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

* [PATCH 1/5] ARM: dts: microchip: Clean up spacing and indentation
  2024-08-14 12:26 [PATCH 0/5] Cosmetic Work for ARM/Microchip (AT91) Andrei Simion
@ 2024-08-14 12:26 ` Andrei Simion
  2024-08-14 13:20   ` Krzysztof Kozlowski
  2024-08-14 12:26 ` [PATCH 2/5] ARM: dts: microchip: Rename the eeprom nodename Andrei Simion
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 20+ messages in thread
From: Andrei Simion @ 2024-08-14 12:26 UTC (permalink / raw)
  To: claudiu.beznea, nicolas.ferre, alexandre.belloni, robh, krzk+dt,
	conor+dt, peda
  Cc: linux-arm-kernel, linux-kernel, devicetree, cristian.birsan,
	Andrei Simion

Checkpatch.pl reports some ERRORS related
to coding style (spacing and indentation).
So clean up : checkpatch.pl --fix-inplace

Signed-off-by: Andrei Simion <andrei.simion@microchip.com>
---
Split the bloated patch into small patches on topics
based on comments:
https://lore.kernel.org/linux-arm-kernel/89f51615-0dee-4ab0-ab72-e3c057fee1e7@tuxon.dev/
---
 arch/arm/boot/dts/microchip/at91-cosino_mega2560.dts  | 2 +-
 arch/arm/boot/dts/microchip/at91-sama5d27_som1_ek.dts | 8 ++++----
 arch/arm/boot/dts/microchip/at91-sama5d2_icp.dts      | 8 ++++----
 arch/arm/boot/dts/microchip/at91sam9263ek.dts         | 2 +-
 4 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/arch/arm/boot/dts/microchip/at91-cosino_mega2560.dts b/arch/arm/boot/dts/microchip/at91-cosino_mega2560.dts
index 04cb7bee937d..1279dfb38300 100644
--- a/arch/arm/boot/dts/microchip/at91-cosino_mega2560.dts
+++ b/arch/arm/boot/dts/microchip/at91-cosino_mega2560.dts
@@ -7,7 +7,7 @@
  *			HCE Engineering
  *
  * Derived from at91sam9g35ek.dts by:
- * 	Copyright (C) 2012 Atmel,
+ *	Copyright (C) 2012 Atmel,
  *      2012 Nicolas Ferre <nicolas.ferre@atmel.com>
  */
 
diff --git a/arch/arm/boot/dts/microchip/at91-sama5d27_som1_ek.dts b/arch/arm/boot/dts/microchip/at91-sama5d27_som1_ek.dts
index f3ffb8f01d8a..eab7efe2d5a3 100644
--- a/arch/arm/boot/dts/microchip/at91-sama5d27_som1_ek.dts
+++ b/arch/arm/boot/dts/microchip/at91-sama5d27_som1_ek.dts
@@ -258,10 +258,10 @@ pinctrl_i2c1_default: i2c1_default {
 				};
 
 				pinctrl_i2c1_gpio: i2c1_gpio {
-                                        pinmux = <PIN_PD4__GPIO>,
-                                                 <PIN_PD5__GPIO>;
-                                        bias-disable;
-                                };
+					pinmux = <PIN_PD4__GPIO>,
+						 <PIN_PD5__GPIO>;
+					bias-disable;
+				};
 
 
 				pinctrl_isc_base: isc_base {
diff --git a/arch/arm/boot/dts/microchip/at91-sama5d2_icp.dts b/arch/arm/boot/dts/microchip/at91-sama5d2_icp.dts
index 999adeca6f33..54f5672285e4 100644
--- a/arch/arm/boot/dts/microchip/at91-sama5d2_icp.dts
+++ b/arch/arm/boot/dts/microchip/at91-sama5d2_icp.dts
@@ -407,10 +407,10 @@ pinctrl_i2c1_default: i2c1_default {
 	};
 
 	pinctrl_i2c1_gpio: i2c1_gpio {
-                pinmux = <PIN_PD19__GPIO>,
-                         <PIN_PD20__GPIO>;
-                bias-disable;
-        };
+		pinmux = <PIN_PD19__GPIO>,
+			 <PIN_PD20__GPIO>;
+		bias-disable;
+	};
 
 	pinctrl_key_gpio_default: key_gpio_default {
 		pinmux = <PIN_PD0__GPIO>;
diff --git a/arch/arm/boot/dts/microchip/at91sam9263ek.dts b/arch/arm/boot/dts/microchip/at91sam9263ek.dts
index ce8baff6a9f4..d872d9652194 100644
--- a/arch/arm/boot/dts/microchip/at91sam9263ek.dts
+++ b/arch/arm/boot/dts/microchip/at91sam9263ek.dts
@@ -86,7 +86,7 @@ pinctrl@fffff200 {
 				mmc0 {
 					pinctrl_board_mmc0: mmc0-board {
 						atmel,pins =
-							<AT91_PIOE 18 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH 	/* PE18 gpio CD pin pull up and deglitch */
+							<AT91_PIOE 18 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH	/* PE18 gpio CD pin pull up and deglitch */
 							 AT91_PIOE 19 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;	/* PE19 gpio WP pin pull up */
 					};
 				};
-- 
2.34.1


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

* [PATCH 2/5] ARM: dts: microchip: Rename the eeprom nodename
  2024-08-14 12:26 [PATCH 0/5] Cosmetic Work for ARM/Microchip (AT91) Andrei Simion
  2024-08-14 12:26 ` [PATCH 1/5] ARM: dts: microchip: Clean up spacing and indentation Andrei Simion
@ 2024-08-14 12:26 ` Andrei Simion
  2024-08-14 12:26 ` [PATCH 3/5] ARM: dts: microchip: Rename the pmic node Andrei Simion
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 20+ messages in thread
From: Andrei Simion @ 2024-08-14 12:26 UTC (permalink / raw)
  To: claudiu.beznea, nicolas.ferre, alexandre.belloni, robh, krzk+dt,
	conor+dt, peda
  Cc: linux-arm-kernel, linux-kernel, devicetree, cristian.birsan,
	Andrei Simion

Align the eeprom nodename according to devicetree
specification and at24.yaml

Signed-off-by: Andrei Simion <andrei.simion@microchip.com>
---
Split the bloated patch into small patches on topics
based on comments:
https://lore.kernel.org/linux-arm-kernel/89f51615-0dee-4ab0-ab72-e3c057fee1e7@tuxon.dev/
---
 arch/arm/boot/dts/microchip/at91-sama5d27_som1.dtsi   | 2 +-
 arch/arm/boot/dts/microchip/at91-sama5d2_ptc_ek.dts   | 2 +-
 arch/arm/boot/dts/microchip/at91-sama5d2_xplained.dts | 2 +-
 arch/arm/boot/dts/microchip/at91sam9260ek.dts         | 2 +-
 arch/arm/boot/dts/microchip/at91sam9263ek.dts         | 2 +-
 arch/arm/boot/dts/microchip/at91sam9g20ek_common.dtsi | 2 +-
 arch/arm/boot/dts/microchip/sama5d34ek.dts            | 2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/arch/arm/boot/dts/microchip/at91-sama5d27_som1.dtsi b/arch/arm/boot/dts/microchip/at91-sama5d27_som1.dtsi
index 95ecb7d040a8..8ac85dac5a96 100644
--- a/arch/arm/boot/dts/microchip/at91-sama5d27_som1.dtsi
+++ b/arch/arm/boot/dts/microchip/at91-sama5d27_som1.dtsi
@@ -106,7 +106,7 @@ i2c0: i2c@f8028000 {
 				scl-gpios = <&pioA PIN_PD22 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
 				status = "okay";
 
-				at24@50 {
+				eeprom@50 {
 					compatible = "atmel,24c02";
 					reg = <0x50>;
 					pagesize = <8>;
diff --git a/arch/arm/boot/dts/microchip/at91-sama5d2_ptc_ek.dts b/arch/arm/boot/dts/microchip/at91-sama5d2_ptc_ek.dts
index 200b20515ab1..e4ae60ef5f8a 100644
--- a/arch/arm/boot/dts/microchip/at91-sama5d2_ptc_ek.dts
+++ b/arch/arm/boot/dts/microchip/at91-sama5d2_ptc_ek.dts
@@ -231,7 +231,7 @@ i2c1: i2c@fc028000 {
 				scl-gpios = <&pioA PIN_PC7 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
 				status = "okay";
 
-				at24@50 {
+				eeprom@50 {
 					compatible = "atmel,24c02";
 					reg = <0x50>;
 					pagesize = <8>;
diff --git a/arch/arm/boot/dts/microchip/at91-sama5d2_xplained.dts b/arch/arm/boot/dts/microchip/at91-sama5d2_xplained.dts
index 6680031387e8..4bab3f25b855 100644
--- a/arch/arm/boot/dts/microchip/at91-sama5d2_xplained.dts
+++ b/arch/arm/boot/dts/microchip/at91-sama5d2_xplained.dts
@@ -411,7 +411,7 @@ i2c1: i2c@fc028000 {
 				scl-gpios = <&pioA PIN_PD5 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
 				status = "okay";
 
-				at24@54 {
+				eeprom@54 {
 					compatible = "atmel,24c02";
 					reg = <0x54>;
 					pagesize = <16>;
diff --git a/arch/arm/boot/dts/microchip/at91sam9260ek.dts b/arch/arm/boot/dts/microchip/at91sam9260ek.dts
index 720c15472c4a..6bd60dce8378 100644
--- a/arch/arm/boot/dts/microchip/at91sam9260ek.dts
+++ b/arch/arm/boot/dts/microchip/at91sam9260ek.dts
@@ -165,7 +165,7 @@ button-4 {
 	i2c-gpio-0 {
 		status = "okay";
 
-		24c512@50 {
+		eeprom@50 {
 			compatible = "atmel,24c512";
 			reg = <0x50>;
 		};
diff --git a/arch/arm/boot/dts/microchip/at91sam9263ek.dts b/arch/arm/boot/dts/microchip/at91sam9263ek.dts
index d872d9652194..ecf4960c88fa 100644
--- a/arch/arm/boot/dts/microchip/at91sam9263ek.dts
+++ b/arch/arm/boot/dts/microchip/at91sam9263ek.dts
@@ -253,7 +253,7 @@ button-right-click {
 	i2c-gpio-0 {
 		status = "okay";
 
-		24c512@50 {
+		eeprom@50 {
 			compatible = "atmel,24c512";
 			reg = <0x50>;
 			pagesize = <128>;
diff --git a/arch/arm/boot/dts/microchip/at91sam9g20ek_common.dtsi b/arch/arm/boot/dts/microchip/at91sam9g20ek_common.dtsi
index 565b99e79c52..4e7cfbbd4241 100644
--- a/arch/arm/boot/dts/microchip/at91sam9g20ek_common.dtsi
+++ b/arch/arm/boot/dts/microchip/at91sam9g20ek_common.dtsi
@@ -220,7 +220,7 @@ usb0: ohci@500000 {
 	i2c-gpio-0 {
 		status = "okay";
 
-		24c512@50 {
+		eeprom@50 {
 			compatible = "atmel,24c512";
 			reg = <0x50>;
 			vcc-supply = <&reg_3v3>;
diff --git a/arch/arm/boot/dts/microchip/sama5d34ek.dts b/arch/arm/boot/dts/microchip/sama5d34ek.dts
index bffd61397cb5..18943b873fff 100644
--- a/arch/arm/boot/dts/microchip/sama5d34ek.dts
+++ b/arch/arm/boot/dts/microchip/sama5d34ek.dts
@@ -36,7 +36,7 @@ i2c0: i2c@f0014000 {
 			i2c1: i2c@f0018000 {
 				status = "okay";
 
-				24c256@50 {
+				eeprom@50 {
 					compatible = "atmel,24c256";
 					reg = <0x50>;
 					pagesize = <64>;
-- 
2.34.1


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

* [PATCH 3/5] ARM: dts: microchip: Rename the pmic node
  2024-08-14 12:26 [PATCH 0/5] Cosmetic Work for ARM/Microchip (AT91) Andrei Simion
  2024-08-14 12:26 ` [PATCH 1/5] ARM: dts: microchip: Clean up spacing and indentation Andrei Simion
  2024-08-14 12:26 ` [PATCH 2/5] ARM: dts: microchip: Rename the eeprom nodename Andrei Simion
@ 2024-08-14 12:26 ` Andrei Simion
  2024-08-14 13:20   ` Krzysztof Kozlowski
  2024-08-14 12:26 ` [PATCH 4/5] ARM: dts: microchip: Rename the usb node Andrei Simion
  2024-08-14 12:26 ` [PATCH 5/5] ARM: dts: microchip: Rename LED sub nodes name Andrei Simion
  4 siblings, 1 reply; 20+ messages in thread
From: Andrei Simion @ 2024-08-14 12:26 UTC (permalink / raw)
  To: claudiu.beznea, nicolas.ferre, alexandre.belloni, robh, krzk+dt,
	conor+dt, peda
  Cc: linux-arm-kernel, linux-kernel, devicetree, cristian.birsan,
	Andrei Simion

Rename the pmic node according to the devicetree
specification.

Signed-off-by: Andrei Simion <andrei.simion@microchip.com>
---
Split the bloated patch into small patches on topics
based on comments
https://lore.kernel.org/linux-arm-kernel/89f51615-0dee-4ab0-ab72-e3c057fee1e7@tuxon.dev/
---
 arch/arm/boot/dts/microchip/at91-kizbox2-common.dtsi    | 2 +-
 arch/arm/boot/dts/microchip/at91-sama5d27_wlsom1.dtsi   | 2 +-
 arch/arm/boot/dts/microchip/at91-sama5d29_curiosity.dts | 2 +-
 arch/arm/boot/dts/microchip/at91-sama5d2_icp.dts        | 2 +-
 arch/arm/boot/dts/microchip/at91-sama5d3_xplained.dts   | 2 +-
 arch/arm/boot/dts/microchip/at91-sama7g5ek.dts          | 2 +-
 arch/arm/boot/dts/microchip/sama5d3xcm_cmp.dtsi         | 2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/arch/arm/boot/dts/microchip/at91-kizbox2-common.dtsi b/arch/arm/boot/dts/microchip/at91-kizbox2-common.dtsi
index e5e21dff882f..a44d92305dbb 100644
--- a/arch/arm/boot/dts/microchip/at91-kizbox2-common.dtsi
+++ b/arch/arm/boot/dts/microchip/at91-kizbox2-common.dtsi
@@ -85,7 +85,7 @@ led-3 {
 &i2c1 {
 	status = "okay";
 
-	pmic: act8865@5b {
+	act8865: pmic@5b {
 		compatible = "active-semi,act8865";
 		reg = <0x5b>;
 		status = "okay";
diff --git a/arch/arm/boot/dts/microchip/at91-sama5d27_wlsom1.dtsi b/arch/arm/boot/dts/microchip/at91-sama5d27_wlsom1.dtsi
index 4617805c7748..2114b2ad9a91 100644
--- a/arch/arm/boot/dts/microchip/at91-sama5d27_wlsom1.dtsi
+++ b/arch/arm/boot/dts/microchip/at91-sama5d27_wlsom1.dtsi
@@ -67,7 +67,7 @@ &i2c1 {
 	scl-gpios = <&pioA PIN_PD20 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
 	status = "okay";
 
-	mcp16502@5b {
+	pmic@5b {
 		compatible = "microchip,mcp16502";
 		reg = <0x5b>;
 		status = "okay";
diff --git a/arch/arm/boot/dts/microchip/at91-sama5d29_curiosity.dts b/arch/arm/boot/dts/microchip/at91-sama5d29_curiosity.dts
index 6b02b7bcfd49..412cc65472ff 100644
--- a/arch/arm/boot/dts/microchip/at91-sama5d29_curiosity.dts
+++ b/arch/arm/boot/dts/microchip/at91-sama5d29_curiosity.dts
@@ -141,7 +141,7 @@ &i2c0 {
 	i2c-sda-hold-time-ns = <350>;
 	status = "okay";
 
-	mcp16502@5b {
+	pmic@5b {
 		compatible = "microchip,mcp16502";
 		reg = <0x5b>;
 		status = "okay";
diff --git a/arch/arm/boot/dts/microchip/at91-sama5d2_icp.dts b/arch/arm/boot/dts/microchip/at91-sama5d2_icp.dts
index 54f5672285e4..e4648682c994 100644
--- a/arch/arm/boot/dts/microchip/at91-sama5d2_icp.dts
+++ b/arch/arm/boot/dts/microchip/at91-sama5d2_icp.dts
@@ -187,7 +187,7 @@ i2c6: i2c@600 {
 		i2c-digital-filter-width-ns = <35>;
 		status = "okay";
 
-		mcp16502@5b {
+		pmic@5b {
 			compatible = "microchip,mcp16502";
 			reg = <0x5b>;
 			status = "okay";
diff --git a/arch/arm/boot/dts/microchip/at91-sama5d3_xplained.dts b/arch/arm/boot/dts/microchip/at91-sama5d3_xplained.dts
index 820033727088..5662992cf213 100644
--- a/arch/arm/boot/dts/microchip/at91-sama5d3_xplained.dts
+++ b/arch/arm/boot/dts/microchip/at91-sama5d3_xplained.dts
@@ -87,7 +87,7 @@ i2c0: i2c@f0014000 {
 			i2c1: i2c@f0018000 {
 				status = "okay";
 
-				pmic: act8865@5b {
+				act8865: pmic@5b {
 					compatible = "active-semi,act8865";
 					reg = <0x5b>;
 					status = "disabled";
diff --git a/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts b/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts
index 40f4480e298b..dd0370cd41b4 100644
--- a/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts
+++ b/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts
@@ -236,7 +236,7 @@ i2c1: i2c@600 {
 		i2c-digital-filter-width-ns = <35>;
 		status = "okay";
 
-		mcp16502@5b {
+		pmic@5b {
 			compatible = "microchip,mcp16502";
 			reg = <0x5b>;
 			status = "okay";
diff --git a/arch/arm/boot/dts/microchip/sama5d3xcm_cmp.dtsi b/arch/arm/boot/dts/microchip/sama5d3xcm_cmp.dtsi
index 830a0954ba1b..362806afef44 100644
--- a/arch/arm/boot/dts/microchip/sama5d3xcm_cmp.dtsi
+++ b/arch/arm/boot/dts/microchip/sama5d3xcm_cmp.dtsi
@@ -79,7 +79,7 @@ ethernet-phy@7 {
 			};
 
 			i2c1: i2c@f0018000 {
-				pmic: act8865@5b {
+				act8865: pmic@5b {
 					compatible = "active-semi,act8865";
 					reg = <0x5b>;
 					status = "disabled";
-- 
2.34.1


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

* [PATCH 4/5] ARM: dts: microchip: Rename the usb node
  2024-08-14 12:26 [PATCH 0/5] Cosmetic Work for ARM/Microchip (AT91) Andrei Simion
                   ` (2 preceding siblings ...)
  2024-08-14 12:26 ` [PATCH 3/5] ARM: dts: microchip: Rename the pmic node Andrei Simion
@ 2024-08-14 12:26 ` Andrei Simion
  2024-08-14 13:22   ` Krzysztof Kozlowski
  2024-08-14 12:26 ` [PATCH 5/5] ARM: dts: microchip: Rename LED sub nodes name Andrei Simion
  4 siblings, 1 reply; 20+ messages in thread
From: Andrei Simion @ 2024-08-14 12:26 UTC (permalink / raw)
  To: claudiu.beznea, nicolas.ferre, alexandre.belloni, robh, krzk+dt,
	conor+dt, peda
  Cc: linux-arm-kernel, linux-kernel, devicetree, cristian.birsan,
	Andrei Simion

Rename the usb node according to devicetree
specification and update the label according
with the node-specific standard as: ohci, ehci
or gadget.

Signed-off-by: Andrei Simion <andrei.simion@microchip.com>
---
Split the bloated patch into small patches on topics
based on comments:
https://lore.kernel.org/linux-arm-kernel/89f51615-0dee-4ab0-ab72-e3c057fee1e7@tuxon.dev/
---
 arch/arm/boot/dts/microchip/aks-cdu.dts                  | 4 ++--
 arch/arm/boot/dts/microchip/animeo_ip.dts                | 2 +-
 arch/arm/boot/dts/microchip/at91-ariag25.dts             | 4 ++--
 arch/arm/boot/dts/microchip/at91-ariettag25.dts          | 6 +++---
 arch/arm/boot/dts/microchip/at91-cosino_mega2560.dts     | 6 +++---
 arch/arm/boot/dts/microchip/at91-dvk_som60.dts           | 6 +++---
 arch/arm/boot/dts/microchip/at91-dvk_su60_somc.dtsi      | 6 +++---
 arch/arm/boot/dts/microchip/at91-foxg20.dts              | 4 ++--
 arch/arm/boot/dts/microchip/at91-gatwick.dts             | 4 ++--
 arch/arm/boot/dts/microchip/at91-kizbox.dts              | 2 +-
 arch/arm/boot/dts/microchip/at91-kizbox2-common.dtsi     | 4 ++--
 arch/arm/boot/dts/microchip/at91-kizbox3-hs.dts          | 6 +++---
 arch/arm/boot/dts/microchip/at91-kizboxmini-common.dtsi  | 4 ++--
 arch/arm/boot/dts/microchip/at91-kizboxmini-mb.dts       | 2 +-
 arch/arm/boot/dts/microchip/at91-lmu5000.dts             | 4 ++--
 arch/arm/boot/dts/microchip/at91-nattis-2-natte-2.dts    | 2 +-
 arch/arm/boot/dts/microchip/at91-q5xr5.dts               | 4 ++--
 arch/arm/boot/dts/microchip/at91-qil_a9260.dts           | 4 ++--
 arch/arm/boot/dts/microchip/at91-sam9_l9260.dts          | 2 +-
 arch/arm/boot/dts/microchip/at91-sam9x60_curiosity.dts   | 6 +++---
 arch/arm/boot/dts/microchip/at91-sam9x60ek.dts           | 6 +++---
 arch/arm/boot/dts/microchip/at91-sama5d27_som1_ek.dts    | 6 +++---
 arch/arm/boot/dts/microchip/at91-sama5d27_wlsom1_ek.dts  | 6 +++---
 arch/arm/boot/dts/microchip/at91-sama5d29_curiosity.dts  | 6 +++---
 arch/arm/boot/dts/microchip/at91-sama5d2_icp.dts         | 6 +++---
 arch/arm/boot/dts/microchip/at91-sama5d2_ptc_ek.dts      | 6 +++---
 arch/arm/boot/dts/microchip/at91-sama5d2_xplained.dts    | 6 +++---
 arch/arm/boot/dts/microchip/at91-sama5d3_eds.dts         | 6 +++---
 arch/arm/boot/dts/microchip/at91-sama5d3_ksz9477_evb.dts | 2 +-
 arch/arm/boot/dts/microchip/at91-sama5d3_xplained.dts    | 6 +++---
 arch/arm/boot/dts/microchip/at91-sama5d4_ma5d4evk.dts    | 6 +++---
 arch/arm/boot/dts/microchip/at91-sama5d4_xplained.dts    | 6 +++---
 arch/arm/boot/dts/microchip/at91-sama5d4ek.dts           | 6 +++---
 arch/arm/boot/dts/microchip/at91-som60.dtsi              | 4 ++--
 arch/arm/boot/dts/microchip/at91-tse850-3.dts            | 6 +++---
 arch/arm/boot/dts/microchip/at91-vinco.dts               | 6 +++---
 arch/arm/boot/dts/microchip/at91-wb45n.dts               | 2 +-
 arch/arm/boot/dts/microchip/at91-wb45n.dtsi              | 4 ++--
 arch/arm/boot/dts/microchip/at91-wb50n.dts               | 6 +++---
 arch/arm/boot/dts/microchip/at91-wb50n.dtsi              | 4 ++--
 arch/arm/boot/dts/microchip/at91rm9200.dtsi              | 4 ++--
 arch/arm/boot/dts/microchip/at91rm9200ek.dts             | 4 ++--
 arch/arm/boot/dts/microchip/at91sam9260.dtsi             | 4 ++--
 arch/arm/boot/dts/microchip/at91sam9260ek.dts            | 4 ++--
 arch/arm/boot/dts/microchip/at91sam9261.dtsi             | 4 ++--
 arch/arm/boot/dts/microchip/at91sam9261ek.dts            | 4 ++--
 arch/arm/boot/dts/microchip/at91sam9263.dtsi             | 4 ++--
 arch/arm/boot/dts/microchip/at91sam9263ek.dts            | 4 ++--
 arch/arm/boot/dts/microchip/at91sam9g20ek_common.dtsi    | 4 ++--
 arch/arm/boot/dts/microchip/at91sam9g45.dtsi             | 6 +++---
 arch/arm/boot/dts/microchip/at91sam9m10g45ek.dts         | 6 +++---
 arch/arm/boot/dts/microchip/at91sam9n12.dtsi             | 4 ++--
 arch/arm/boot/dts/microchip/at91sam9n12ek.dts            | 4 ++--
 arch/arm/boot/dts/microchip/at91sam9rl.dtsi              | 2 +-
 arch/arm/boot/dts/microchip/at91sam9rlek.dts             | 2 +-
 arch/arm/boot/dts/microchip/at91sam9x5.dtsi              | 6 +++---
 arch/arm/boot/dts/microchip/at91sam9x5ek.dtsi            | 6 +++---
 arch/arm/boot/dts/microchip/ethernut5.dts                | 4 ++--
 arch/arm/boot/dts/microchip/evk-pro3.dts                 | 4 ++--
 arch/arm/boot/dts/microchip/mpa1600.dts                  | 2 +-
 arch/arm/boot/dts/microchip/pm9g45.dts                   | 4 ++--
 arch/arm/boot/dts/microchip/sam9x60.dtsi                 | 6 +++---
 arch/arm/boot/dts/microchip/sama5d2.dtsi                 | 6 +++---
 arch/arm/boot/dts/microchip/sama5d3.dtsi                 | 6 +++---
 arch/arm/boot/dts/microchip/sama5d3xmb.dtsi              | 6 +++---
 arch/arm/boot/dts/microchip/sama5d3xmb_cmp.dtsi          | 2 +-
 arch/arm/boot/dts/microchip/sama5d4.dtsi                 | 6 +++---
 arch/arm/boot/dts/microchip/tny_a9263.dts                | 2 +-
 arch/arm/boot/dts/microchip/usb_a9260_common.dtsi        | 4 ++--
 arch/arm/boot/dts/microchip/usb_a9263.dts                | 4 ++--
 70 files changed, 158 insertions(+), 158 deletions(-)

diff --git a/arch/arm/boot/dts/microchip/aks-cdu.dts b/arch/arm/boot/dts/microchip/aks-cdu.dts
index 742fcf525e1b..52e166c8a365 100644
--- a/arch/arm/boot/dts/microchip/aks-cdu.dts
+++ b/arch/arm/boot/dts/microchip/aks-cdu.dts
@@ -50,13 +50,13 @@ macb0: ethernet@fffc4000 {
 				status = "okay";
 			};
 
-			usb1: gadget@fffa4000 {
+			gadget: usb@fffa4000 {
 				atmel,vbus-gpio = <&pioC 15 GPIO_ACTIVE_HIGH>;
 				status = "okay";
 			};
 		};
 
-		usb0: ohci@500000 {
+		ohci: usb@500000 {
 			num-ports = <2>;
 			status = "okay";
 		};
diff --git a/arch/arm/boot/dts/microchip/animeo_ip.dts b/arch/arm/boot/dts/microchip/animeo_ip.dts
index 29936bfbeeb7..911c8d9ee013 100644
--- a/arch/arm/boot/dts/microchip/animeo_ip.dts
+++ b/arch/arm/boot/dts/microchip/animeo_ip.dts
@@ -136,7 +136,7 @@ ubi@60000 {
 			};
 		};
 
-		usb0: ohci@500000 {
+		ohci: usb@500000 {
 			num-ports = <2>;
 			atmel,vbus-gpio = <&pioB 15 GPIO_ACTIVE_LOW>;
 			status = "okay";
diff --git a/arch/arm/boot/dts/microchip/at91-ariag25.dts b/arch/arm/boot/dts/microchip/at91-ariag25.dts
index 713d18f80356..fedcf30a924e 100644
--- a/arch/arm/boot/dts/microchip/at91-ariag25.dts
+++ b/arch/arm/boot/dts/microchip/at91-ariag25.dts
@@ -173,11 +173,11 @@ &usart3 {
 	status = "okay";
 };
 
-&usb0 {
+&ohci {
 	status = "okay";
 	num-ports = <3>;
 };
 
-&usb1 {
+&ehci {
 	status = "okay";
 };
diff --git a/arch/arm/boot/dts/microchip/at91-ariettag25.dts b/arch/arm/boot/dts/microchip/at91-ariettag25.dts
index 2c52a71752c2..04a001d5c236 100644
--- a/arch/arm/boot/dts/microchip/at91-ariettag25.dts
+++ b/arch/arm/boot/dts/microchip/at91-ariettag25.dts
@@ -73,15 +73,15 @@ timer@1 {
 	};
 };
 
-&usb0 {
+&ohci {
 	num-ports = <3>;
 	status = "okay";
 };
 
-&usb1 {
+&ehci {
 	status = "okay";
 };
 
-&usb2 {
+&gadget {
 	status = "okay";
 };
diff --git a/arch/arm/boot/dts/microchip/at91-cosino_mega2560.dts b/arch/arm/boot/dts/microchip/at91-cosino_mega2560.dts
index 1279dfb38300..0e11fa5ba36c 100644
--- a/arch/arm/boot/dts/microchip/at91-cosino_mega2560.dts
+++ b/arch/arm/boot/dts/microchip/at91-cosino_mega2560.dts
@@ -56,7 +56,7 @@ &usart2 {
 	status = "okay";
 };
 
-&usb0 {
+&ohci {
 	num-ports = <3>;
 	atmel,vbus-gpio = <0 /* &pioD 18 GPIO_ACTIVE_LOW */
 			   &pioD 19 GPIO_ACTIVE_LOW
@@ -65,11 +65,11 @@ &pioD 20 GPIO_ACTIVE_LOW
 	status = "okay";
 };
 
-&usb1 {
+&ehci {
 	status = "okay";
 };
 
-&usb2 {
+&gadget {
 	atmel,vbus-gpio = <&pioB 16 GPIO_ACTIVE_HIGH>;
 	status = "okay";
 };
diff --git a/arch/arm/boot/dts/microchip/at91-dvk_som60.dts b/arch/arm/boot/dts/microchip/at91-dvk_som60.dts
index ededd5b0d27b..cfb8b6586eb5 100644
--- a/arch/arm/boot/dts/microchip/at91-dvk_som60.dts
+++ b/arch/arm/boot/dts/microchip/at91-dvk_som60.dts
@@ -81,15 +81,15 @@ &macb1 {
 	status = "okay";
 };
 
-&usb0 {
+&gadget {
 	status = "okay";
 };
 
-&usb1 {
+&ohci {
 	status = "okay";
 };
 
-&usb2 {
+&ehci {
 	status = "okay";
 };
 
diff --git a/arch/arm/boot/dts/microchip/at91-dvk_su60_somc.dtsi b/arch/arm/boot/dts/microchip/at91-dvk_su60_somc.dtsi
index 3542ad8a243e..32c9c37a4a5c 100644
--- a/arch/arm/boot/dts/microchip/at91-dvk_su60_somc.dtsi
+++ b/arch/arm/boot/dts/microchip/at91-dvk_su60_somc.dtsi
@@ -145,15 +145,15 @@ ethernet-phy@1 {
 	};
 };
 
-&usb0 {
+&gadget{
 	status = "okay";
 };
 
-&usb1 {
+&ohci {
 	status = "okay";
 };
 
-&usb2 {
+&ehci {
 	status = "okay";
 };
 
diff --git a/arch/arm/boot/dts/microchip/at91-foxg20.dts b/arch/arm/boot/dts/microchip/at91-foxg20.dts
index 9dfd5de808d1..506703cd9691 100644
--- a/arch/arm/boot/dts/microchip/at91-foxg20.dts
+++ b/arch/arm/boot/dts/microchip/at91-foxg20.dts
@@ -45,7 +45,7 @@ timer@2 {
 				};
 			};
 
-			usb1: gadget@fffa4000 {
+			gadget: usb@fffa4000 {
 				atmel,vbus-gpio = <&pioC 6 GPIO_ACTIVE_HIGH>;
 				status = "okay";
 			};
@@ -131,7 +131,7 @@ watchdog@fffffd40 {
 			};
 		};
 
-		usb0: ohci@500000 {
+		ohci: usb@500000 {
 			num-ports = <2>;
 			status = "okay";
 		};
diff --git a/arch/arm/boot/dts/microchip/at91-gatwick.dts b/arch/arm/boot/dts/microchip/at91-gatwick.dts
index 551300fd7746..f036c6a5821b 100644
--- a/arch/arm/boot/dts/microchip/at91-gatwick.dts
+++ b/arch/arm/boot/dts/microchip/at91-gatwick.dts
@@ -111,11 +111,11 @@ spidev@0 {
 	};
 };
 
-&usb1 {
+&ohci {
 	status = "okay";
 	/delete-property/atmel,oc-gpio;
 };
 
-&usb2 {
+&ehci {
 	status = "okay";
 };
diff --git a/arch/arm/boot/dts/microchip/at91-kizbox.dts b/arch/arm/boot/dts/microchip/at91-kizbox.dts
index 307663b4eec2..984ff0db4d8e 100644
--- a/arch/arm/boot/dts/microchip/at91-kizbox.dts
+++ b/arch/arm/boot/dts/microchip/at91-kizbox.dts
@@ -175,7 +175,7 @@ &watchdog {
 	status = "okay";
 };
 
-&usb0 {
+&ohci {
 	num-ports = <1>;
 	status = "okay";
 };
diff --git a/arch/arm/boot/dts/microchip/at91-kizbox2-common.dtsi b/arch/arm/boot/dts/microchip/at91-kizbox2-common.dtsi
index a44d92305dbb..6ccf4b94abe3 100644
--- a/arch/arm/boot/dts/microchip/at91-kizbox2-common.dtsi
+++ b/arch/arm/boot/dts/microchip/at91-kizbox2-common.dtsi
@@ -223,11 +223,11 @@ ubi@20000 {
 	};
 };
 
-&usb1 {
+&ohci {
 	status = "okay";
 };
 
-&usb2 {
+&ehci {
 	status = "okay";
 };
 
diff --git a/arch/arm/boot/dts/microchip/at91-kizbox3-hs.dts b/arch/arm/boot/dts/microchip/at91-kizbox3-hs.dts
index fec7269088d1..fa0a0d884111 100644
--- a/arch/arm/boot/dts/microchip/at91-kizbox3-hs.dts
+++ b/arch/arm/boot/dts/microchip/at91-kizbox3-hs.dts
@@ -296,14 +296,14 @@ i2c6: i2c@600 {
 	};
 };
 
-&usb0 {
+&gadget {
 	status = "okay";
 };
 
-&usb1 {
+&ohci {
 	status = "okay";
 };
 
-&usb2 {
+&ehci {
 	status = "okay";
 };
diff --git a/arch/arm/boot/dts/microchip/at91-kizboxmini-common.dtsi b/arch/arm/boot/dts/microchip/at91-kizboxmini-common.dtsi
index 42640fe6b6d0..ebf92ba1d66c 100644
--- a/arch/arm/boot/dts/microchip/at91-kizboxmini-common.dtsi
+++ b/arch/arm/boot/dts/microchip/at91-kizboxmini-common.dtsi
@@ -157,12 +157,12 @@ ubi@20000 {
 	};
 };
 
-&usb0 {
+&ohci {
 	num-ports = <1>;
 	status = "okay";
 };
 
-&usb1 {
+&ehci {
 	status = "okay";
 };
 
diff --git a/arch/arm/boot/dts/microchip/at91-kizboxmini-mb.dts b/arch/arm/boot/dts/microchip/at91-kizboxmini-mb.dts
index c07d3076a9bc..914261d31a2a 100644
--- a/arch/arm/boot/dts/microchip/at91-kizboxmini-mb.dts
+++ b/arch/arm/boot/dts/microchip/at91-kizboxmini-mb.dts
@@ -13,7 +13,7 @@ / {
 		     "atmel,at91sam9x5", "atmel,at91sam9";
 };
 
-&usb0 {
+&ohci {
 	num-ports = <2>;
 };
 
diff --git a/arch/arm/boot/dts/microchip/at91-lmu5000.dts b/arch/arm/boot/dts/microchip/at91-lmu5000.dts
index f8863d7c0798..04a743cb646d 100644
--- a/arch/arm/boot/dts/microchip/at91-lmu5000.dts
+++ b/arch/arm/boot/dts/microchip/at91-lmu5000.dts
@@ -130,12 +130,12 @@ &usart2 {
 	status = "okay";
 };
 
-&usb0 {
+&ohci {
 	num-ports = <2>;
 	status = "okay";
 };
 
-&usb1 {
+&gadget {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_usb1_vbus_gpio>;
 	atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>;
diff --git a/arch/arm/boot/dts/microchip/at91-nattis-2-natte-2.dts b/arch/arm/boot/dts/microchip/at91-nattis-2-natte-2.dts
index f71377c9b757..b6767f8a8285 100644
--- a/arch/arm/boot/dts/microchip/at91-nattis-2-natte-2.dts
+++ b/arch/arm/boot/dts/microchip/at91-nattis-2-natte-2.dts
@@ -297,7 +297,7 @@ &dbgu {
 	atmel,use-dma-rx;
 };
 
-&usb0 {
+&gadget {
 	status = "okay";
 
 	atmel,vbus-gpio = <&pioD 28 GPIO_ACTIVE_HIGH>;
diff --git a/arch/arm/boot/dts/microchip/at91-q5xr5.dts b/arch/arm/boot/dts/microchip/at91-q5xr5.dts
index 9cf60b6f695c..8d91810b2b42 100644
--- a/arch/arm/boot/dts/microchip/at91-q5xr5.dts
+++ b/arch/arm/boot/dts/microchip/at91-q5xr5.dts
@@ -167,12 +167,12 @@ &pinctrl_usart0_dcd
 	status = "okay";
 };
 
-&usb0 {
+&ohci {
 	num-ports = <2>;
 	status = "okay";
 };
 
-&usb1 {
+&gadget {
 	status = "okay";
 };
 
diff --git a/arch/arm/boot/dts/microchip/at91-qil_a9260.dts b/arch/arm/boot/dts/microchip/at91-qil_a9260.dts
index 5ccb3c139592..51451cd24f26 100644
--- a/arch/arm/boot/dts/microchip/at91-qil_a9260.dts
+++ b/arch/arm/boot/dts/microchip/at91-qil_a9260.dts
@@ -42,7 +42,7 @@ timer@2 {
 				};
 			};
 
-			usb1: gadget@fffa4000 {
+			gadget: usb@fffa4000 {
 				atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>;
 				status = "okay";
 			};
@@ -114,7 +114,7 @@ shdwc: poweroff@fffffd10 {
 			};
 		};
 
-		usb0: ohci@500000 {
+		ohci: usb@500000 {
 			num-ports = <2>;
 			status = "okay";
 		};
diff --git a/arch/arm/boot/dts/microchip/at91-sam9_l9260.dts b/arch/arm/boot/dts/microchip/at91-sam9_l9260.dts
index 2fb51b9aca2a..907c4ff1334b 100644
--- a/arch/arm/boot/dts/microchip/at91-sam9_l9260.dts
+++ b/arch/arm/boot/dts/microchip/at91-sam9_l9260.dts
@@ -105,7 +105,7 @@ nand0: nand@40000000 {
 			status = "okay";
 		};
 
-		usb0: ohci@500000 {
+		ohci: usb@500000 {
 			status = "okay";
 		};
 
diff --git a/arch/arm/boot/dts/microchip/at91-sam9x60_curiosity.dts b/arch/arm/boot/dts/microchip/at91-sam9x60_curiosity.dts
index b9ffd9e5faac..74de7777d08b 100644
--- a/arch/arm/boot/dts/microchip/at91-sam9x60_curiosity.dts
+++ b/arch/arm/boot/dts/microchip/at91-sam9x60_curiosity.dts
@@ -482,14 +482,14 @@ timer1: timer@1 {
 	};
 };
 
-&usb0 {
+&gadget {
 	atmel,vbus-gpio = <&pioA 27 GPIO_ACTIVE_HIGH>;
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_usba_vbus>;
 	status = "okay";
 };
 
-&usb1 {
+&ohci {
 	num-ports = <3>;
 	atmel,vbus-gpio = <0
 			   &pioD 18 GPIO_ACTIVE_HIGH
@@ -499,7 +499,7 @@ &pioD 18 GPIO_ACTIVE_HIGH
 	status = "okay";
 };
 
-&usb2 {
+&ehci {
 	status = "okay";
 };
 
diff --git a/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts b/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts
index 3b38707d736e..b9a21f9f9a6d 100644
--- a/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts
+++ b/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts
@@ -641,14 +641,14 @@ timer1: timer@1 {
 	};
 };
 
-&usb0 {
+&gadget {
 	atmel,vbus-gpio = <&pioB 16 GPIO_ACTIVE_HIGH>;
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_usba_vbus>;
 	status = "okay";
 };
 
-&usb1 {
+&ohci {
 	num-ports = <3>;
 	atmel,vbus-gpio = <0
 			   &pioD 15 GPIO_ACTIVE_HIGH
@@ -658,7 +658,7 @@ &pioD 15 GPIO_ACTIVE_HIGH
 	status = "okay";
 };
 
-&usb2 {
+&ehci {
 	status = "okay";
 };
 
diff --git a/arch/arm/boot/dts/microchip/at91-sama5d27_som1_ek.dts b/arch/arm/boot/dts/microchip/at91-sama5d27_som1_ek.dts
index eab7efe2d5a3..8a9207cb8e08 100644
--- a/arch/arm/boot/dts/microchip/at91-sama5d27_som1_ek.dts
+++ b/arch/arm/boot/dts/microchip/at91-sama5d27_som1_ek.dts
@@ -30,14 +30,14 @@ chosen {
 	};
 
 	ahb {
-		usb0: gadget@300000 {
+		gadget: usb@300000 {
 			atmel,vbus-gpio = <&pioA PIN_PD20 GPIO_ACTIVE_HIGH>;
 			pinctrl-names = "default";
 			pinctrl-0 = <&pinctrl_usba_vbus>;
 			status = "okay";
 		};
 
-		usb1: ohci@400000 {
+		ohci: usb@400000 {
 			num-ports = <3>;
 			atmel,vbus-gpio = <0 /* &pioA PIN_PD20 GPIO_ACTIVE_HIGH */
 					   &pioA PIN_PA27 GPIO_ACTIVE_HIGH
@@ -48,7 +48,7 @@ &pioA PIN_PA27 GPIO_ACTIVE_HIGH
 			status = "okay";
 		};
 
-		usb2: ehci@500000 {
+		ehci: usb@500000 {
 			status = "okay";
 		};
 
diff --git a/arch/arm/boot/dts/microchip/at91-sama5d27_wlsom1_ek.dts b/arch/arm/boot/dts/microchip/at91-sama5d27_wlsom1_ek.dts
index 15239834d886..bd09d21ec4d2 100644
--- a/arch/arm/boot/dts/microchip/at91-sama5d27_wlsom1_ek.dts
+++ b/arch/arm/boot/dts/microchip/at91-sama5d27_wlsom1_ek.dts
@@ -239,14 +239,14 @@ &uart3 {
 	status = "okay";
 };
 
-&usb0 {
+&gadget {
 	atmel,vbus-gpio = <&pioA PIN_PA16 GPIO_ACTIVE_HIGH>;
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_usba_vbus>;
 	status = "okay";
 };
 
-&usb1 {
+&ohci {
 	num-ports = <3>;
 	atmel,vbus-gpio = <0
 			   &pioA PIN_PA10 GPIO_ACTIVE_HIGH
@@ -257,7 +257,7 @@ &pioA PIN_PA10 GPIO_ACTIVE_HIGH
 	status = "okay";
 };
 
-&usb2 {
+&ehci {
 	phy_type = "hsic";
 	status = "okay";
 };
diff --git a/arch/arm/boot/dts/microchip/at91-sama5d29_curiosity.dts b/arch/arm/boot/dts/microchip/at91-sama5d29_curiosity.dts
index 412cc65472ff..66eef92d7f7a 100644
--- a/arch/arm/boot/dts/microchip/at91-sama5d29_curiosity.dts
+++ b/arch/arm/boot/dts/microchip/at91-sama5d29_curiosity.dts
@@ -574,14 +574,14 @@ &uart4 {
 	status = "okay";
 };
 
-&usb0 {
+&gadget {
 	atmel,vbus-gpio = <&pioA PIN_PB13 GPIO_ACTIVE_HIGH>;
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_usba_vbus>;
 	status = "okay";
 };
 
-&usb1 {
+&ohci {
 	num-ports = <3>;
 	atmel,vbus-gpio = <0
 			   &pioA PIN_PA6 GPIO_ACTIVE_HIGH
@@ -591,7 +591,7 @@ &pioA PIN_PA6 GPIO_ACTIVE_HIGH
 	status = "okay";
 };
 
-&usb2 {
+&ehci {
 	status = "okay";
 };
 
diff --git a/arch/arm/boot/dts/microchip/at91-sama5d2_icp.dts b/arch/arm/boot/dts/microchip/at91-sama5d2_icp.dts
index e4648682c994..50186626fd3b 100644
--- a/arch/arm/boot/dts/microchip/at91-sama5d2_icp.dts
+++ b/arch/arm/boot/dts/microchip/at91-sama5d2_icp.dts
@@ -766,21 +766,21 @@ &uart3 {
 	status = "okay";
 };
 
-&usb0 {
+&gadget {
 	atmel,vbus-gpio = <&pioA PIN_PD23 GPIO_ACTIVE_HIGH>;
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_usba_vbus>;
 	status = "okay";
 };
 
-&usb1 {
+&ohci {
 	num-ports = <3>;
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_usb_default>;
 	status = "okay";
 };
 
-&usb2 {
+&ehci {
 	phy_type = "hsic";
 	status = "okay";
 };
diff --git a/arch/arm/boot/dts/microchip/at91-sama5d2_ptc_ek.dts b/arch/arm/boot/dts/microchip/at91-sama5d2_ptc_ek.dts
index e4ae60ef5f8a..117d049191a5 100644
--- a/arch/arm/boot/dts/microchip/at91-sama5d2_ptc_ek.dts
+++ b/arch/arm/boot/dts/microchip/at91-sama5d2_ptc_ek.dts
@@ -40,14 +40,14 @@ main_xtal {
 	};
 
 	ahb {
-		usb0: gadget@300000 {
+		gadget: usb@300000 {
 			atmel,vbus-gpio = <&pioA PIN_PB11 GPIO_ACTIVE_HIGH>;
 			pinctrl-names = "default";
 			pinctrl-0 = <&pinctrl_usba_vbus>;
 			status = "okay";
 		};
 
-		usb1: ohci@400000 {
+		ohci: usb@400000 {
 			num-ports = <3>;
 			atmel,vbus-gpio = <0
 					   &pioA PIN_PB12 GPIO_ACTIVE_HIGH
@@ -58,7 +58,7 @@ &pioA PIN_PB12 GPIO_ACTIVE_HIGH
 			status = "okay";
 		};
 
-		usb2: ehci@500000 {
+		ehci: usb@500000 {
 			status = "okay";
 		};
 
diff --git a/arch/arm/boot/dts/microchip/at91-sama5d2_xplained.dts b/arch/arm/boot/dts/microchip/at91-sama5d2_xplained.dts
index 4bab3f25b855..ae3b7842deb4 100644
--- a/arch/arm/boot/dts/microchip/at91-sama5d2_xplained.dts
+++ b/arch/arm/boot/dts/microchip/at91-sama5d2_xplained.dts
@@ -39,14 +39,14 @@ main_xtal {
 	};
 
 	ahb {
-		usb0: gadget@300000 {
+		gadget: usb@300000 {
 			atmel,vbus-gpio = <&pioA PIN_PA31 GPIO_ACTIVE_HIGH>;
 			pinctrl-names = "default";
 			pinctrl-0 = <&pinctrl_usba_vbus>;
 			status = "okay";
 		};
 
-		usb1: ohci@400000 {
+		ohci: usb@400000 {
 			num-ports = <3>;
 			atmel,vbus-gpio = <0 /* &pioA PIN_PB9 GPIO_ACTIVE_HIGH */
 					   &pioA PIN_PB10 GPIO_ACTIVE_HIGH
@@ -57,7 +57,7 @@ &pioA PIN_PB10 GPIO_ACTIVE_HIGH
 			status = "okay";
 		};
 
-		usb2: ehci@500000 {
+		ehci: usb@500000 {
 			status = "okay";
 		};
 
diff --git a/arch/arm/boot/dts/microchip/at91-sama5d3_eds.dts b/arch/arm/boot/dts/microchip/at91-sama5d3_eds.dts
index c287b03d768b..189f1b3ae24d 100644
--- a/arch/arm/boot/dts/microchip/at91-sama5d3_eds.dts
+++ b/arch/arm/boot/dts/microchip/at91-sama5d3_eds.dts
@@ -284,14 +284,14 @@ timer1: timer@1 {
 	};
 };
 
-&usb0 {	/* USB Device port with VBUS detection. */
+&gadget {/* USB Device port with VBUS detection. */
 	atmel,vbus-gpio = <&pioE 9 GPIO_ACTIVE_HIGH>;
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_usba_vbus>;
 	status = "okay";
 };
 
-&usb1 {	/* 3-port Host. First port is unused. */
+&ohci {	/* 3-port Host. First port is unused. */
 	atmel,vbus-gpio = <0
 			   &pioE 3 GPIO_ACTIVE_HIGH
 			   &pioE 4 GPIO_ACTIVE_HIGH
@@ -302,6 +302,6 @@ &pioE 4 GPIO_ACTIVE_HIGH
 	status = "okay";
 };
 
-&usb2 {
+&ehci {
 	status = "okay";
 };
diff --git a/arch/arm/boot/dts/microchip/at91-sama5d3_ksz9477_evb.dts b/arch/arm/boot/dts/microchip/at91-sama5d3_ksz9477_evb.dts
index b66570080894..b44d15c9cc19 100644
--- a/arch/arm/boot/dts/microchip/at91-sama5d3_ksz9477_evb.dts
+++ b/arch/arm/boot/dts/microchip/at91-sama5d3_ksz9477_evb.dts
@@ -175,7 +175,7 @@ timer1: timer@1 {
 	};
 };
 
-&usb0 {
+&gadget {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_usba_vbus>;
 	atmel,vbus-gpio = <&pioE 9 GPIO_ACTIVE_HIGH>;
diff --git a/arch/arm/boot/dts/microchip/at91-sama5d3_xplained.dts b/arch/arm/boot/dts/microchip/at91-sama5d3_xplained.dts
index 5662992cf213..35ece73a1a03 100644
--- a/arch/arm/boot/dts/microchip/at91-sama5d3_xplained.dts
+++ b/arch/arm/boot/dts/microchip/at91-sama5d3_xplained.dts
@@ -276,14 +276,14 @@ pinctrl_vcc_mmc0_reg_gpio: vcc_mmc0_reg_gpio_default {
 			};
 		};
 
-		usb0: gadget@500000 {
+		gadget: usb@500000 {
 			atmel,vbus-gpio = <&pioE 9 GPIO_ACTIVE_HIGH>;	/* PE9, conflicts with A9 */
 			pinctrl-names = "default";
 			pinctrl-0 = <&pinctrl_usba_vbus>;
 			status = "okay";
 		};
 
-		usb1: ohci@600000 {
+		ohci: usb@600000 {
 			num-ports = <3>;
 			atmel,vbus-gpio = <0
 					   &pioE 3 GPIO_ACTIVE_LOW
@@ -294,7 +294,7 @@ &pioE 4 GPIO_ACTIVE_LOW
 			status = "okay";
 		};
 
-		usb2: ehci@700000 {
+		ehci: usb@700000 {
 			status = "okay";
 		};
 
diff --git a/arch/arm/boot/dts/microchip/at91-sama5d4_ma5d4evk.dts b/arch/arm/boot/dts/microchip/at91-sama5d4_ma5d4evk.dts
index 8adf567f2f0f..ec7dfb03dce1 100644
--- a/arch/arm/boot/dts/microchip/at91-sama5d4_ma5d4evk.dts
+++ b/arch/arm/boot/dts/microchip/at91-sama5d4_ma5d4evk.dts
@@ -15,14 +15,14 @@ chosen {
 	};
 
 	ahb {
-		usb0: gadget@400000 {
+		gadget: usb@400000 {
 			atmel,vbus-gpio = <&pioE 31 GPIO_ACTIVE_HIGH>;
 			pinctrl-names = "default";
 			pinctrl-0 = <&pinctrl_usba_vbus>;
 			status = "okay";
 		};
 
-		usb1: ohci@500000 {
+		ohci: usb@500000 {
 			num-ports = <3>;
 			atmel,vbus-gpio = <0
 					   &pioE 11 GPIO_ACTIVE_LOW
@@ -31,7 +31,7 @@ &pioE 14 GPIO_ACTIVE_LOW
 			status = "okay";
 		};
 
-		usb2: ehci@600000 {
+		ehci: usb@600000 {
 			status = "okay";
 		};
 
diff --git a/arch/arm/boot/dts/microchip/at91-sama5d4_xplained.dts b/arch/arm/boot/dts/microchip/at91-sama5d4_xplained.dts
index 95d701d13fef..ae64182d0264 100644
--- a/arch/arm/boot/dts/microchip/at91-sama5d4_xplained.dts
+++ b/arch/arm/boot/dts/microchip/at91-sama5d4_xplained.dts
@@ -157,14 +157,14 @@ pinctrl_vcc_mmc1_reg: vcc_mmc1_reg {
 			};
 		};
 
-		usb0: gadget@400000 {
+		gadget: usb@400000 {
 			atmel,vbus-gpio = <&pioE 31 GPIO_ACTIVE_HIGH>;
 			pinctrl-names = "default";
 			pinctrl-0 = <&pinctrl_usba_vbus>;
 			status = "okay";
 		};
 
-		usb1: ohci@500000 {
+		ohci: usb@500000 {
 			num-ports = <3>;
 			atmel,vbus-gpio = <0
 					   &pioE 11 GPIO_ACTIVE_HIGH
@@ -175,7 +175,7 @@ &pioE 14 GPIO_ACTIVE_HIGH
 			status = "okay";
 		};
 
-		usb2: ehci@600000 {
+		ehci: usb@600000 {
 			status = "okay";
 		};
 
diff --git a/arch/arm/boot/dts/microchip/at91-sama5d4ek.dts b/arch/arm/boot/dts/microchip/at91-sama5d4ek.dts
index 20ac775059ca..35296dbb7a39 100644
--- a/arch/arm/boot/dts/microchip/at91-sama5d4ek.dts
+++ b/arch/arm/boot/dts/microchip/at91-sama5d4ek.dts
@@ -191,14 +191,14 @@ pinctrl_mxt_ts: mxt_irq {
 			};
 		};
 
-		usb0: gadget@400000 {
+		gadget: usb@400000 {
 			atmel,vbus-gpio = <&pioE 31 GPIO_ACTIVE_HIGH>;
 			pinctrl-names = "default";
 			pinctrl-0 = <&pinctrl_usba_vbus>;
 			status = "okay";
 		};
 
-		usb1: ohci@500000 {
+		ohci: usb@500000 {
 			num-ports = <3>;
 			atmel,vbus-gpio = <0 /* &pioE 10 GPIO_ACTIVE_LOW */
 					   &pioE 11 GPIO_ACTIVE_LOW
@@ -207,7 +207,7 @@ &pioE 12 GPIO_ACTIVE_LOW
 			status = "okay";
 		};
 
-		usb2: ehci@600000 {
+		ehci: usb@600000 {
 			status = "okay";
 		};
 
diff --git a/arch/arm/boot/dts/microchip/at91-som60.dtsi b/arch/arm/boot/dts/microchip/at91-som60.dtsi
index 39474a112b16..1c649e0e995f 100644
--- a/arch/arm/boot/dts/microchip/at91-som60.dtsi
+++ b/arch/arm/boot/dts/microchip/at91-som60.dtsi
@@ -211,13 +211,13 @@ ubi@e0000 {
 	};
 };
 
-&usb0 {
+&gadget {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_usba_vbus>;
 	atmel,vbus-gpio = <&pioC 14 GPIO_ACTIVE_HIGH>;
 };
 
-&usb1 {
+&ohci {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_usb_vbus &pinctrl_usb_oc>;
 	num-ports = <3>;
diff --git a/arch/arm/boot/dts/microchip/at91-tse850-3.dts b/arch/arm/boot/dts/microchip/at91-tse850-3.dts
index 9d58a3931207..5bab12604dfa 100644
--- a/arch/arm/boot/dts/microchip/at91-tse850-3.dts
+++ b/arch/arm/boot/dts/microchip/at91-tse850-3.dts
@@ -275,7 +275,7 @@ phy0: ethernet-phy@3 {
 	};
 };
 
-&usb0 {
+&gadget {
 	status = "okay";
 
 	pinctrl-names = "default";
@@ -283,7 +283,7 @@ &usb0 {
 	atmel,vbus-gpio = <&pioC 31 GPIO_ACTIVE_HIGH>;
 };
 
-&usb1 {
+&ohci {
 	status = "okay";
 
 	num-ports = <1>;
@@ -291,7 +291,7 @@ &usb1 {
 	atmel,oc-gpio = <&pioC 15 GPIO_ACTIVE_LOW>;
 };
 
-&usb2 {
+&ehci {
 	status = "okay";
 };
 
diff --git a/arch/arm/boot/dts/microchip/at91-vinco.dts b/arch/arm/boot/dts/microchip/at91-vinco.dts
index ecbdacf48708..5e025f3be1b6 100644
--- a/arch/arm/boot/dts/microchip/at91-vinco.dts
+++ b/arch/arm/boot/dts/microchip/at91-vinco.dts
@@ -155,14 +155,14 @@ pinctrl_usba_vbus: usba_vbus {
 			};
 		};
 
-		usb0: gadget@400000 {
+		gadget: usb@400000 {
 			atmel,vbus-gpio = <&pioE 31 GPIO_ACTIVE_HIGH>;
 			pinctrl-names = "default";
 			pinctrl-0 = <&pinctrl_usba_vbus>;
 			status = "disabled";
 		};
 
-		usb1: ohci@500000 {
+		ohci: usb@500000 {
 			num-ports = <3>;
 			atmel,vbus-gpio = <0
 					   &pioE 11 GPIO_ACTIVE_LOW
@@ -171,7 +171,7 @@ &pioE 12 GPIO_ACTIVE_LOW
 			status = "disabled";
 		};
 
-		usb2: ehci@600000 {
+		ehci: usb@600000 {
 			/* 4G Modem */
 			status = "okay";
 		};
diff --git a/arch/arm/boot/dts/microchip/at91-wb45n.dts b/arch/arm/boot/dts/microchip/at91-wb45n.dts
index ef73f727f7bd..6b8f02b4aebe 100644
--- a/arch/arm/boot/dts/microchip/at91-wb45n.dts
+++ b/arch/arm/boot/dts/microchip/at91-wb45n.dts
@@ -28,7 +28,7 @@ &watchdog {
 	status = "okay";
 };
 
-&usb0 {
+&ohci {
 	status = "okay";
 };
 
diff --git a/arch/arm/boot/dts/microchip/at91-wb45n.dtsi b/arch/arm/boot/dts/microchip/at91-wb45n.dtsi
index 430c75358086..9299e7fe4990 100644
--- a/arch/arm/boot/dts/microchip/at91-wb45n.dtsi
+++ b/arch/arm/boot/dts/microchip/at91-wb45n.dtsi
@@ -121,7 +121,7 @@ logs@7fa0000 {
 	};
 };
 
-&usb0 {
+&ohci {
 	num-ports = <2>;
 	atmel,vbus-gpio = <
 		&pioB 12 GPIO_ACTIVE_HIGH
@@ -138,7 +138,7 @@ &spi0 {
 	cs-gpios = <&pioA 14 0>, <&pioA 7 0>, <0>, <0>;
 };
 
-&usb2 {
+&gadget {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_board_usb2>;
 	atmel,vbus-gpio = <&pioB 11 GPIO_ACTIVE_HIGH>;
diff --git a/arch/arm/boot/dts/microchip/at91-wb50n.dts b/arch/arm/boot/dts/microchip/at91-wb50n.dts
index ec2becf6133b..d5480b9e5342 100644
--- a/arch/arm/boot/dts/microchip/at91-wb50n.dts
+++ b/arch/arm/boot/dts/microchip/at91-wb50n.dts
@@ -88,15 +88,15 @@ &spi1 {
 	status = "okay";
 };
 
-&usb0 {
+&gadget {
 	status = "okay";
 };
 
-&usb1 {
+&ohci {
 	status = "okay";
 };
 
-&usb2 {
+&ehci {
 	status = "okay";
 };
 
diff --git a/arch/arm/boot/dts/microchip/at91-wb50n.dtsi b/arch/arm/boot/dts/microchip/at91-wb50n.dtsi
index 74b249bb6351..280ef9b98a71 100644
--- a/arch/arm/boot/dts/microchip/at91-wb50n.dtsi
+++ b/arch/arm/boot/dts/microchip/at91-wb50n.dtsi
@@ -181,13 +181,13 @@ user@6ae0000 {
 	};
 };
 
-&usb0 {
+&gadget {
 	atmel,vbus-gpio = <&pioB 13 GPIO_ACTIVE_LOW>;
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_usba_vbus>;
 };
 
-&usb1 {
+&ohci {
 	num-ports = <3>;
 	atmel,vbus-gpio = <&pioA 2 GPIO_ACTIVE_LOW>;
 	atmel,oc-gpio = <&pioA 4 GPIO_ACTIVE_LOW>;
diff --git a/arch/arm/boot/dts/microchip/at91rm9200.dtsi b/arch/arm/boot/dts/microchip/at91rm9200.dtsi
index 16c675e3a890..bbb7bdc152be 100644
--- a/arch/arm/boot/dts/microchip/at91rm9200.dtsi
+++ b/arch/arm/boot/dts/microchip/at91rm9200.dtsi
@@ -662,7 +662,7 @@ usart3: serial@fffcc000 {
 				status = "disabled";
 			};
 
-			usb1: gadget@fffb0000 {
+			gadget: usb@fffb0000 {
 				compatible = "atmel,at91rm9200-udc";
 				reg = <0xfffb0000 0x4000>;
 				interrupts = <11 IRQ_TYPE_LEVEL_HIGH 2>;
@@ -702,7 +702,7 @@ &pioB 1 GPIO_ACTIVE_HIGH
 			status = "disabled";
 		};
 
-		usb0: ohci@300000 {
+		ohci: usb@300000 {
 			compatible = "atmel,at91rm9200-ohci", "usb-ohci";
 			reg = <0x00300000 0x100000>;
 			interrupts = <23 IRQ_TYPE_LEVEL_HIGH 2>;
diff --git a/arch/arm/boot/dts/microchip/at91rm9200ek.dts b/arch/arm/boot/dts/microchip/at91rm9200ek.dts
index 4624a6f076f8..3089912dd6be 100644
--- a/arch/arm/boot/dts/microchip/at91rm9200ek.dts
+++ b/arch/arm/boot/dts/microchip/at91rm9200ek.dts
@@ -43,7 +43,7 @@ timer@2 {
 				};
 			};
 
-			usb1: gadget@fffb0000 {
+			gadget: usb@fffb0000 {
 				atmel,vbus-gpio = <&pioD 4 GPIO_ACTIVE_HIGH>;
 				atmel,pullup-gpio = <&pioD 5 GPIO_ACTIVE_HIGH>;
 				status = "okay";
@@ -89,7 +89,7 @@ rtc: rtc@fffffe00 {
 			};
 		};
 
-		usb0: ohci@300000 {
+		ohci: usb@300000 {
 			num-ports = <2>;
 			status = "okay";
 		};
diff --git a/arch/arm/boot/dts/microchip/at91sam9260.dtsi b/arch/arm/boot/dts/microchip/at91sam9260.dtsi
index e56d5546554c..1ba88aded4ca 100644
--- a/arch/arm/boot/dts/microchip/at91sam9260.dtsi
+++ b/arch/arm/boot/dts/microchip/at91sam9260.dtsi
@@ -637,7 +637,7 @@ macb0: ethernet@fffc4000 {
 				status = "disabled";
 			};
 
-			usb1: gadget@fffa4000 {
+			gadget: usb@fffa4000 {
 				compatible = "atmel,at91sam9260-udc";
 				reg = <0xfffa4000 0x4000>;
 				interrupts = <10 IRQ_TYPE_LEVEL_HIGH 2>;
@@ -742,7 +742,7 @@ gpbr: syscon@fffffd50 {
 			};
 		};
 
-		usb0: ohci@500000 {
+		ohci: usb@500000 {
 			compatible = "atmel,at91rm9200-ohci", "usb-ohci";
 			reg = <0x00500000 0x100000>;
 			interrupts = <20 IRQ_TYPE_LEVEL_HIGH 2>;
diff --git a/arch/arm/boot/dts/microchip/at91sam9260ek.dts b/arch/arm/boot/dts/microchip/at91sam9260ek.dts
index 6bd60dce8378..ed259e2cb853 100644
--- a/arch/arm/boot/dts/microchip/at91sam9260ek.dts
+++ b/arch/arm/boot/dts/microchip/at91sam9260ek.dts
@@ -45,7 +45,7 @@ timer@2 {
 				};
 			};
 
-			usb1: gadget@fffa4000 {
+			gadget: usb@fffa4000 {
 				atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>;
 				status = "okay";
 			};
@@ -131,7 +131,7 @@ gpbr: syscon@fffffd50 {
 			};
 		};
 
-		usb0: ohci@500000 {
+		ohci: usb@500000 {
 			num-ports = <2>;
 			status = "okay";
 		};
diff --git a/arch/arm/boot/dts/microchip/at91sam9261.dtsi b/arch/arm/boot/dts/microchip/at91sam9261.dtsi
index 307b60658014..6492f6a88879 100644
--- a/arch/arm/boot/dts/microchip/at91sam9261.dtsi
+++ b/arch/arm/boot/dts/microchip/at91sam9261.dtsi
@@ -77,7 +77,7 @@ ahb {
 		#size-cells = <1>;
 		ranges;
 
-		usb0: ohci@500000 {
+		ohci: usb@500000 {
 			compatible = "atmel,at91rm9200-ohci", "usb-ohci";
 			reg = <0x00500000 0x100000>;
 			interrupts = <20 IRQ_TYPE_LEVEL_HIGH 2>;
@@ -142,7 +142,7 @@ tcb0: timer@fffa0000 {
 				clock-names = "t0_clk", "t1_clk", "t2_clk", "slow_clk";
 			};
 
-			usb1: gadget@fffa4000 {
+			gadget: usb@fffa4000 {
 				compatible = "atmel,at91sam9261-udc";
 				reg = <0xfffa4000 0x4000>;
 				interrupts = <10 IRQ_TYPE_LEVEL_HIGH 2>;
diff --git a/arch/arm/boot/dts/microchip/at91sam9261ek.dts b/arch/arm/boot/dts/microchip/at91sam9261ek.dts
index 045cb253f23a..4d9269cc5f32 100644
--- a/arch/arm/boot/dts/microchip/at91sam9261ek.dts
+++ b/arch/arm/boot/dts/microchip/at91sam9261ek.dts
@@ -31,7 +31,7 @@ main_xtal {
 	};
 
 	ahb {
-		usb0: ohci@500000 {
+		ohci: usb@500000 {
 			status = "okay";
 		};
 
@@ -136,7 +136,7 @@ timer1: timer@2 {
 				};
 			};
 
-			usb1: gadget@fffa4000 {
+			gadget: usb@fffa4000 {
 				atmel,vbus-gpio = <&pioB 29 GPIO_ACTIVE_HIGH>;
 				status = "okay";
 			};
diff --git a/arch/arm/boot/dts/microchip/at91sam9263.dtsi b/arch/arm/boot/dts/microchip/at91sam9263.dtsi
index 75d8ff2d12c8..a6c2ba5ce7d4 100644
--- a/arch/arm/boot/dts/microchip/at91sam9263.dtsi
+++ b/arch/arm/boot/dts/microchip/at91sam9263.dtsi
@@ -636,7 +636,7 @@ macb0: ethernet@fffbc000 {
 				status = "disabled";
 			};
 
-			usb1: gadget@fff78000 {
+			gadget: usb@fff78000 {
 				compatible = "atmel,at91sam9263-udc";
 				reg = <0xfff78000 0x4000>;
 				interrupts = <24 IRQ_TYPE_LEVEL_HIGH 2>;
@@ -768,7 +768,7 @@ fb0: fb@700000 {
 			status = "disabled";
 		};
 
-		usb0: ohci@a00000 {
+		ohci: usb@a00000 {
 			compatible = "atmel,at91rm9200-ohci", "usb-ohci";
 			reg = <0x00a00000 0x100000>;
 			interrupts = <29 IRQ_TYPE_LEVEL_HIGH 2>;
diff --git a/arch/arm/boot/dts/microchip/at91sam9263ek.dts b/arch/arm/boot/dts/microchip/at91sam9263ek.dts
index ecf4960c88fa..a8ea36db4c04 100644
--- a/arch/arm/boot/dts/microchip/at91sam9263ek.dts
+++ b/arch/arm/boot/dts/microchip/at91sam9263ek.dts
@@ -61,7 +61,7 @@ macb0: ethernet@fffbc000 {
 				status = "okay";
 			};
 
-			usb1: gadget@fff78000 {
+			gadget: usb@fff78000 {
 				atmel,vbus-gpio = <&pioA 25 GPIO_ACTIVE_HIGH>;
 				status = "okay";
 			};
@@ -207,7 +207,7 @@ data@7ca0000 {
 			};
 		};
 
-		usb0: ohci@a00000 {
+		ohci: usb@a00000 {
 			num-ports = <2>;
 			status = "okay";
 			atmel,vbus-gpio = <&pioA 24 GPIO_ACTIVE_HIGH
diff --git a/arch/arm/boot/dts/microchip/at91sam9g20ek_common.dtsi b/arch/arm/boot/dts/microchip/at91sam9g20ek_common.dtsi
index 4e7cfbbd4241..1ca5227bfae2 100644
--- a/arch/arm/boot/dts/microchip/at91sam9g20ek_common.dtsi
+++ b/arch/arm/boot/dts/microchip/at91sam9g20ek_common.dtsi
@@ -90,7 +90,7 @@ macb0: ethernet@fffc4000 {
 				status = "okay";
 			};
 
-			usb1: gadget@fffa4000 {
+			gadget: usb@fffa4000 {
 				pinctrl-0 = <&pinctrl_usb1_vbus_gpio>;
 				pinctrl-names = "default";
 				atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>;
@@ -211,7 +211,7 @@ data@7ca0000 {
 			};
 		};
 
-		usb0: ohci@500000 {
+		ohci: usb@500000 {
 			num-ports = <2>;
 			status = "okay";
 		};
diff --git a/arch/arm/boot/dts/microchip/at91sam9g45.dtsi b/arch/arm/boot/dts/microchip/at91sam9g45.dtsi
index 325c63a53118..40a34fe95a19 100644
--- a/arch/arm/boot/dts/microchip/at91sam9g45.dtsi
+++ b/arch/arm/boot/dts/microchip/at91sam9g45.dtsi
@@ -913,7 +913,7 @@ spi1: spi@fffa8000 {
 				status = "disabled";
 			};
 
-			usb2: gadget@fff78000 {
+			gadget: usb@fff78000 {
 				compatible = "atmel,at91sam9g45-udc";
 				reg = <0x00600000 0x80000
 				       0xfff78000 0x400>;
@@ -964,7 +964,7 @@ fb0: fb@500000 {
 			status = "disabled";
 		};
 
-		usb0: ohci@700000 {
+		ohci: usb@700000 {
 			compatible = "atmel,at91rm9200-ohci", "usb-ohci";
 			reg = <0x00700000 0x100000>;
 			interrupts = <22 IRQ_TYPE_LEVEL_HIGH 2>;
@@ -973,7 +973,7 @@ usb0: ohci@700000 {
 			status = "disabled";
 		};
 
-		usb1: ehci@800000 {
+		ehci: usb@800000 {
 			compatible = "atmel,at91sam9g45-ehci", "usb-ehci";
 			reg = <0x00800000 0x100000>;
 			interrupts = <22 IRQ_TYPE_LEVEL_HIGH 2>;
diff --git a/arch/arm/boot/dts/microchip/at91sam9m10g45ek.dts b/arch/arm/boot/dts/microchip/at91sam9m10g45ek.dts
index 071db4f16313..dbcc243dafe8 100644
--- a/arch/arm/boot/dts/microchip/at91sam9m10g45ek.dts
+++ b/arch/arm/boot/dts/microchip/at91sam9m10g45ek.dts
@@ -174,7 +174,7 @@ flash@0 {
 				};
 			};
 
-			usb2: gadget@fff78000 {
+			gadget: usb@fff78000 {
 				atmel,vbus-gpio = <&pioB 19 GPIO_ACTIVE_HIGH>;
 				status = "okay";
 			};
@@ -303,14 +303,14 @@ data@4000000 {
 			};
 		};
 
-		usb0: ohci@700000 {
+		ohci: usb@700000 {
 			status = "okay";
 			num-ports = <2>;
 			atmel,vbus-gpio = <&pioD 1 GPIO_ACTIVE_LOW
 					   &pioD 3 GPIO_ACTIVE_LOW>;
 		};
 
-		usb1: ehci@800000 {
+		ehci: usb@800000 {
 			status = "okay";
 		};
 	};
diff --git a/arch/arm/boot/dts/microchip/at91sam9n12.dtsi b/arch/arm/boot/dts/microchip/at91sam9n12.dtsi
index 8dc04e9031a6..0ada88b307d2 100644
--- a/arch/arm/boot/dts/microchip/at91sam9n12.dtsi
+++ b/arch/arm/boot/dts/microchip/at91sam9n12.dtsi
@@ -738,7 +738,7 @@ pwm0: pwm@f8034000 {
 				status = "disabled";
 			};
 
-			usb1: gadget@f803c000 {
+			gadget: usb@f803c000 {
 				compatible = "atmel,at91sam9260-udc";
 				reg = <0xf803c000 0x4000>;
 				interrupts = <23 IRQ_TYPE_LEVEL_HIGH 2>;
@@ -748,7 +748,7 @@ usb1: gadget@f803c000 {
 			};
 		};
 
-		usb0: ohci@500000 {
+		ohci: usb@500000 {
 			compatible = "atmel,at91rm9200-ohci", "usb-ohci";
 			reg = <0x00500000 0x00100000>;
 			interrupts = <22 IRQ_TYPE_LEVEL_HIGH 2>;
diff --git a/arch/arm/boot/dts/microchip/at91sam9n12ek.dts b/arch/arm/boot/dts/microchip/at91sam9n12ek.dts
index 643c3b2ab97e..734975137ef9 100644
--- a/arch/arm/boot/dts/microchip/at91sam9n12ek.dts
+++ b/arch/arm/boot/dts/microchip/at91sam9n12ek.dts
@@ -142,7 +142,7 @@ hlcdc_panel_output: endpoint@0 {
 				};
 			};
 
-			usb1: gadget@f803c000 {
+			gadget: usb@f803c000 {
 				pinctrl-names = "default";
 				pinctrl-0 = <&pinctrl_usb1_vbus_sense>;
 				atmel,vbus-gpio = <&pioB 16 GPIO_ACTIVE_HIGH>;
@@ -180,7 +180,7 @@ nand@3 {
 			};
 		};
 
-		usb0: ohci@500000 {
+		ohci: usb@500000 {
 			num-ports = <1>;
 			atmel,vbus-gpio = <&pioB 7 GPIO_ACTIVE_LOW>;
 			status = "okay";
diff --git a/arch/arm/boot/dts/microchip/at91sam9rl.dtsi b/arch/arm/boot/dts/microchip/at91sam9rl.dtsi
index 7436b5c862b1..406696600b51 100644
--- a/arch/arm/boot/dts/microchip/at91sam9rl.dtsi
+++ b/arch/arm/boot/dts/microchip/at91sam9rl.dtsi
@@ -282,7 +282,7 @@ adc0: adc@fffd0000 {
 				atmel,adc-startup-time = <40>;
 			};
 
-			usb0: gadget@fffd4000 {
+			gadget: usb@fffd4000 {
 				compatible = "atmel,at91sam9rl-udc";
 				reg = <0x00600000 0x100000>,
 				      <0xfffd4000 0x4000>;
diff --git a/arch/arm/boot/dts/microchip/at91sam9rlek.dts b/arch/arm/boot/dts/microchip/at91sam9rlek.dts
index a57351270551..ca6b035c4301 100644
--- a/arch/arm/boot/dts/microchip/at91sam9rlek.dts
+++ b/arch/arm/boot/dts/microchip/at91sam9rlek.dts
@@ -172,7 +172,7 @@ &pinctrl_adc0_ad5
 				status = "okay";
 			};
 
-			usb0: gadget@fffd4000 {
+			gadget: usb@fffd4000 {
 				atmel,vbus-gpio = <&pioA 8 GPIO_ACTIVE_HIGH>;
 				status = "okay";
 			};
diff --git a/arch/arm/boot/dts/microchip/at91sam9x5.dtsi b/arch/arm/boot/dts/microchip/at91sam9x5.dtsi
index a7456c2191fa..9f5e13296294 100644
--- a/arch/arm/boot/dts/microchip/at91sam9x5.dtsi
+++ b/arch/arm/boot/dts/microchip/at91sam9x5.dtsi
@@ -847,7 +847,7 @@ spi1: spi@f0004000 {
 				status = "disabled";
 			};
 
-			usb2: gadget@f803c000 {
+			gadget: usb@f803c000 {
 				compatible = "atmel,at91sam9g45-udc";
 				reg = <0x00500000 0x80000
 				       0xf803c000 0x400>;
@@ -886,7 +886,7 @@ pwm0: pwm@f8034000 {
 			};
 		};
 
-		usb0: ohci@600000 {
+		ohci: usb@600000 {
 			compatible = "atmel,at91rm9200-ohci", "usb-ohci";
 			reg = <0x00600000 0x100000>;
 			interrupts = <22 IRQ_TYPE_LEVEL_HIGH 2>;
@@ -895,7 +895,7 @@ usb0: ohci@600000 {
 			status = "disabled";
 		};
 
-		usb1: ehci@700000 {
+		ehci: usb@700000 {
 			compatible = "atmel,at91sam9g45-ehci", "usb-ehci";
 			reg = <0x00700000 0x100000>;
 			interrupts = <22 IRQ_TYPE_LEVEL_HIGH 2>;
diff --git a/arch/arm/boot/dts/microchip/at91sam9x5ek.dtsi b/arch/arm/boot/dts/microchip/at91sam9x5ek.dtsi
index 9618b8d965b0..f489397458b4 100644
--- a/arch/arm/boot/dts/microchip/at91sam9x5ek.dtsi
+++ b/arch/arm/boot/dts/microchip/at91sam9x5ek.dtsi
@@ -144,7 +144,7 @@ &usart0 {
 	status = "okay";
 };
 
-&usb0 {
+&ohci {
 	num-ports = <3>;
 	atmel,vbus-gpio = <0 /* &pioD 18 GPIO_ACTIVE_LOW *//* Activate to have access to port A */
 			   &pioD 19 GPIO_ACTIVE_LOW
@@ -153,11 +153,11 @@ &pioD 20 GPIO_ACTIVE_LOW
 	status = "okay";
 };
 
-&usb1 {
+&ehci {
 	status = "okay";
 };
 
-&usb2 {
+&gadget {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_board_usb2>;
 	atmel,vbus-gpio = <&pioB 16 GPIO_ACTIVE_HIGH>;
diff --git a/arch/arm/boot/dts/microchip/ethernut5.dts b/arch/arm/boot/dts/microchip/ethernut5.dts
index ad7a0850252a..fcc75c522897 100644
--- a/arch/arm/boot/dts/microchip/ethernut5.dts
+++ b/arch/arm/boot/dts/microchip/ethernut5.dts
@@ -60,7 +60,7 @@ macb0: ethernet@fffc4000 {
 				status = "okay";
 			};
 
-			usb1: gadget@fffa4000 {
+			gadget: usb@fffa4000 {
 				atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>;
 				status = "okay";
 			};
@@ -101,7 +101,7 @@ data@20000 {
 			};
 		};
 
-		usb0: ohci@500000 {
+		ohci: usb@500000 {
 			num-ports = <2>;
 			status = "okay";
 		};
diff --git a/arch/arm/boot/dts/microchip/evk-pro3.dts b/arch/arm/boot/dts/microchip/evk-pro3.dts
index 6d519d02d190..1bcb350ec2bd 100644
--- a/arch/arm/boot/dts/microchip/evk-pro3.dts
+++ b/arch/arm/boot/dts/microchip/evk-pro3.dts
@@ -35,7 +35,7 @@ usart2: serial@fffb8000 {
 				status = "okay";
 			};
 
-			usb1: gadget@fffa4000 {
+			gadget: usb@fffa4000 {
 				atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>;
 				status = "okay";
 			};
@@ -45,7 +45,7 @@ watchdog@fffffd40 {
 			};
 		};
 
-		usb0: ohci@500000 {
+		ohci: usb@500000 {
 			num-ports = <2>;
 			status = "okay";
 		};
diff --git a/arch/arm/boot/dts/microchip/mpa1600.dts b/arch/arm/boot/dts/microchip/mpa1600.dts
index 005c2758e229..96489d568f5d 100644
--- a/arch/arm/boot/dts/microchip/mpa1600.dts
+++ b/arch/arm/boot/dts/microchip/mpa1600.dts
@@ -57,7 +57,7 @@ ssc1: ssc@fffd4000 {
 			};
 		};
 
-		usb0: ohci@300000 {
+		ohci: usb@300000 {
 			num-ports = <1>;
 			status = "okay";
 		};
diff --git a/arch/arm/boot/dts/microchip/pm9g45.dts b/arch/arm/boot/dts/microchip/pm9g45.dts
index c349fd3758a6..202ead5ff464 100644
--- a/arch/arm/boot/dts/microchip/pm9g45.dts
+++ b/arch/arm/boot/dts/microchip/pm9g45.dts
@@ -139,12 +139,12 @@ data@900000 {
 			};
 		};
 
-		usb0: ohci@700000 {
+		ohci: usb@700000 {
 			status = "okay";
 			num-ports = <2>;
 		};
 
-		usb1: ehci@800000 {
+		ehci: usb@800000 {
 			status = "okay";
 		};
 	};
diff --git a/arch/arm/boot/dts/microchip/sam9x60.dtsi b/arch/arm/boot/dts/microchip/sam9x60.dtsi
index 551b46894f47..f4f654696c65 100644
--- a/arch/arm/boot/dts/microchip/sam9x60.dtsi
+++ b/arch/arm/boot/dts/microchip/sam9x60.dtsi
@@ -74,7 +74,7 @@ ahb {
 		#size-cells = <1>;
 		ranges;
 
-		usb0: gadget@500000 {
+		gadget: usb@500000 {
 			#address-cells = <1>;
 			#size-cells = <0>;
 			compatible = "microchip,sam9x60-udc";
@@ -88,7 +88,7 @@ usb0: gadget@500000 {
 			status = "disabled";
 		};
 
-		usb1: ohci@600000 {
+		ohci: usb@600000 {
 			compatible = "atmel,at91rm9200-ohci", "usb-ohci";
 			reg = <0x00600000 0x100000>;
 			interrupts = <22 IRQ_TYPE_LEVEL_HIGH 2>;
@@ -97,7 +97,7 @@ usb1: ohci@600000 {
 			status = "disabled";
 		};
 
-		usb2: ehci@700000 {
+		ehci: usb@700000 {
 			compatible = "atmel,at91sam9g45-ehci", "usb-ehci";
 			reg = <0x00700000 0x100000>;
 			interrupts = <22 IRQ_TYPE_LEVEL_HIGH 2>;
diff --git a/arch/arm/boot/dts/microchip/sama5d2.dtsi b/arch/arm/boot/dts/microchip/sama5d2.dtsi
index 5f8e297e19ed..e00bcdfa061b 100644
--- a/arch/arm/boot/dts/microchip/sama5d2.dtsi
+++ b/arch/arm/boot/dts/microchip/sama5d2.dtsi
@@ -126,7 +126,7 @@ nfc_sram: sram@100000 {
 
 		};
 
-		usb0: gadget@300000 {
+		gadget: usb@300000 {
 			compatible = "atmel,sama5d3-udc";
 			reg = <0x00300000 0x100000
 			       0xfc02c000 0x400>;
@@ -136,7 +136,7 @@ usb0: gadget@300000 {
 			status = "disabled";
 		};
 
-		usb1: ohci@400000 {
+		ohci: usb@400000 {
 			compatible = "atmel,at91rm9200-ohci", "usb-ohci";
 			reg = <0x00400000 0x100000>;
 			interrupts = <41 IRQ_TYPE_LEVEL_HIGH 2>;
@@ -145,7 +145,7 @@ usb1: ohci@400000 {
 			status = "disabled";
 		};
 
-		usb2: ehci@500000 {
+		ehci: usb@500000 {
 			compatible = "atmel,at91sam9g45-ehci", "usb-ehci";
 			reg = <0x00500000 0x100000>;
 			interrupts = <41 IRQ_TYPE_LEVEL_HIGH 2>;
diff --git a/arch/arm/boot/dts/microchip/sama5d3.dtsi b/arch/arm/boot/dts/microchip/sama5d3.dtsi
index d4fc0c1dfc10..ac179e5820a8 100644
--- a/arch/arm/boot/dts/microchip/sama5d3.dtsi
+++ b/arch/arm/boot/dts/microchip/sama5d3.dtsi
@@ -1064,7 +1064,7 @@ nfc_sram: sram@200000 {
 			ranges = <0 0x200000 0x2400>;
 		};
 
-		usb0: gadget@500000 {
+		gadget: usb@500000 {
 			compatible = "atmel,sama5d3-udc";
 			reg = <0x00500000 0x100000
 			       0xf8030000 0x4000>;
@@ -1074,7 +1074,7 @@ usb0: gadget@500000 {
 			status = "disabled";
 		};
 
-		usb1: ohci@600000 {
+		ohci: usb@600000 {
 			compatible = "atmel,at91rm9200-ohci", "usb-ohci";
 			reg = <0x00600000 0x100000>;
 			interrupts = <32 IRQ_TYPE_LEVEL_HIGH 2>;
@@ -1083,7 +1083,7 @@ usb1: ohci@600000 {
 			status = "disabled";
 		};
 
-		usb2: ehci@700000 {
+		ehci: usb@700000 {
 			compatible = "atmel,at91sam9g45-ehci", "usb-ehci";
 			reg = <0x00700000 0x100000>;
 			interrupts = <32 IRQ_TYPE_LEVEL_HIGH 2>;
diff --git a/arch/arm/boot/dts/microchip/sama5d3xmb.dtsi b/arch/arm/boot/dts/microchip/sama5d3xmb.dtsi
index 3652c9e24124..c4afdf729337 100644
--- a/arch/arm/boot/dts/microchip/sama5d3xmb.dtsi
+++ b/arch/arm/boot/dts/microchip/sama5d3xmb.dtsi
@@ -165,14 +165,14 @@ watchdog@fffffe40 {
 			};
 		};
 
-		usb0: gadget@500000 {
+		gadget: usb@500000 {
 			atmel,vbus-gpio = <&pioD 29 GPIO_ACTIVE_HIGH>;
 			pinctrl-names = "default";
 			pinctrl-0 = <&pinctrl_usba_vbus>;
 			status = "okay";
 		};
 
-		usb1: ohci@600000 {
+		ohci: usb@600000 {
 			num-ports = <3>;
 			atmel,vbus-gpio = <&pioD 25 GPIO_ACTIVE_HIGH
 					   &pioD 26 GPIO_ACTIVE_LOW
@@ -181,7 +181,7 @@ &pioD 27 GPIO_ACTIVE_LOW
 			status = "okay";
 		};
 
-		usb2: ehci@700000 {
+		ehci: usb@700000 {
 			status = "okay";
 		};
 	};
diff --git a/arch/arm/boot/dts/microchip/sama5d3xmb_cmp.dtsi b/arch/arm/boot/dts/microchip/sama5d3xmb_cmp.dtsi
index 5d9e97fecf83..47b889f7e77b 100644
--- a/arch/arm/boot/dts/microchip/sama5d3xmb_cmp.dtsi
+++ b/arch/arm/boot/dts/microchip/sama5d3xmb_cmp.dtsi
@@ -216,7 +216,7 @@ watchdog@fffffe40 {
 			};
 		};
 
-		usb0: gadget@500000 {
+		gadget: usb@500000 {
 			atmel,vbus-gpio = <&pioD 29 GPIO_ACTIVE_HIGH>;
 			pinctrl-names = "default";
 			pinctrl-0 = <&pinctrl_usba_vbus>;
diff --git a/arch/arm/boot/dts/microchip/sama5d4.dtsi b/arch/arm/boot/dts/microchip/sama5d4.dtsi
index 58ceed997889..58cd45a5758e 100644
--- a/arch/arm/boot/dts/microchip/sama5d4.dtsi
+++ b/arch/arm/boot/dts/microchip/sama5d4.dtsi
@@ -109,7 +109,7 @@ vdec0: vdec@300000 {
 			clocks = <&pmc PMC_TYPE_PERIPHERAL 19>;
 		};
 
-		usb0: gadget@400000 {
+		gadget: usb@400000 {
 			compatible = "atmel,sama5d3-udc";
 			reg = <0x00400000 0x100000
 			       0xfc02c000 0x4000>;
@@ -119,7 +119,7 @@ usb0: gadget@400000 {
 			status = "disabled";
 		};
 
-		usb1: ohci@500000 {
+		ohci: usb@500000 {
 			compatible = "atmel,at91rm9200-ohci", "usb-ohci";
 			reg = <0x00500000 0x100000>;
 			interrupts = <46 IRQ_TYPE_LEVEL_HIGH 2>;
@@ -128,7 +128,7 @@ usb1: ohci@500000 {
 			status = "disabled";
 		};
 
-		usb2: ehci@600000 {
+		ehci: usb@600000 {
 			compatible = "atmel,at91sam9g45-ehci", "usb-ehci";
 			reg = <0x00600000 0x100000>;
 			interrupts = <46 IRQ_TYPE_LEVEL_HIGH 2>;
diff --git a/arch/arm/boot/dts/microchip/tny_a9263.dts b/arch/arm/boot/dts/microchip/tny_a9263.dts
index 62b7d9f9a926..f788bf61ae72 100644
--- a/arch/arm/boot/dts/microchip/tny_a9263.dts
+++ b/arch/arm/boot/dts/microchip/tny_a9263.dts
@@ -47,7 +47,7 @@ timer@2 {
 				};
 			};
 
-			usb1: gadget@fff78000 {
+			gadget: usb@fff78000 {
 				atmel,vbus-gpio = <&pioB 11 GPIO_ACTIVE_HIGH>;
 				status = "okay";
 			};
diff --git a/arch/arm/boot/dts/microchip/usb_a9260_common.dtsi b/arch/arm/boot/dts/microchip/usb_a9260_common.dtsi
index 8744b5f6f792..997555441a9a 100644
--- a/arch/arm/boot/dts/microchip/usb_a9260_common.dtsi
+++ b/arch/arm/boot/dts/microchip/usb_a9260_common.dtsi
@@ -39,7 +39,7 @@ macb0: ethernet@fffc4000 {
 				status = "okay";
 			};
 
-			usb1: gadget@fffa4000 {
+			gadget: usb@fffa4000 {
 				atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>;
 				status = "okay";
 			};
@@ -111,7 +111,7 @@ data@7ca0000 {
 			};
 		};
 
-		usb0: ohci@500000 {
+		ohci: usb@500000 {
 			num-ports = <2>;
 			status = "okay";
 		};
diff --git a/arch/arm/boot/dts/microchip/usb_a9263.dts b/arch/arm/boot/dts/microchip/usb_a9263.dts
index 45745915b2e1..73458f2e5216 100644
--- a/arch/arm/boot/dts/microchip/usb_a9263.dts
+++ b/arch/arm/boot/dts/microchip/usb_a9263.dts
@@ -52,7 +52,7 @@ macb0: ethernet@fffbc000 {
 				status = "okay";
 			};
 
-			usb1: gadget@fff78000 {
+			gadget: usb@fff78000 {
 				atmel,vbus-gpio = <&pioB 11 GPIO_ACTIVE_HIGH>;
 				status = "okay";
 			};
@@ -139,7 +139,7 @@ data@7ca0000 {
 			};
 		};
 
-		usb0: ohci@a00000 {
+		ohci: usb@a00000 {
 			num-ports = <2>;
 			status = "okay";
 		};
-- 
2.34.1


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

* [PATCH 5/5] ARM: dts: microchip: Rename LED sub nodes name
  2024-08-14 12:26 [PATCH 0/5] Cosmetic Work for ARM/Microchip (AT91) Andrei Simion
                   ` (3 preceding siblings ...)
  2024-08-14 12:26 ` [PATCH 4/5] ARM: dts: microchip: Rename the usb node Andrei Simion
@ 2024-08-14 12:26 ` Andrei Simion
  2024-08-14 13:23   ` Krzysztof Kozlowski
  2024-08-15  7:57   ` Alexander Dahl
  4 siblings, 2 replies; 20+ messages in thread
From: Andrei Simion @ 2024-08-14 12:26 UTC (permalink / raw)
  To: claudiu.beznea, nicolas.ferre, alexandre.belloni, robh, krzk+dt,
	conor+dt, peda
  Cc: linux-arm-kernel, linux-kernel, devicetree, cristian.birsan,
	Andrei Simion

dtbs_check warnings:
leds: 'd[0-9]', 'ds[0-9]' do not match any of the regexes:
'(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
leds: 'red', 'green', 'blue' do not match any of regexes:
'(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'

Rename the led sub nodes according to devicetree
specification and leds-gpio.yaml.

Signed-off-by: Andrei Simion <andrei.simion@microchip.com>
---
Split the bloadted patch into small patches on topics
based on comments:
https://lore.kernel.org/linux-arm-kernel/89f51615-0dee-4ab0-ab72-e3c057fee1e7@tuxon.dev/
---
 arch/arm/boot/dts/microchip/aks-cdu.dts        | 8 ++++----
 arch/arm/boot/dts/microchip/animeo_ip.dts      | 8 ++++----
 arch/arm/boot/dts/microchip/at91-sam9x60ek.dts | 6 +++---
 arch/arm/boot/dts/microchip/at91rm9200ek.dts   | 6 +++---
 arch/arm/boot/dts/microchip/at91sam9260ek.dts  | 4 ++--
 arch/arm/boot/dts/microchip/at91sam9261ek.dts  | 6 +++---
 arch/arm/boot/dts/microchip/at91sam9263ek.dts  | 4 ++--
 arch/arm/boot/dts/microchip/at91sam9g20ek.dts  | 4 ++--
 8 files changed, 23 insertions(+), 23 deletions(-)

diff --git a/arch/arm/boot/dts/microchip/aks-cdu.dts b/arch/arm/boot/dts/microchip/aks-cdu.dts
index 52e166c8a365..95a0639c5579 100644
--- a/arch/arm/boot/dts/microchip/aks-cdu.dts
+++ b/arch/arm/boot/dts/microchip/aks-cdu.dts
@@ -98,23 +98,23 @@ rootfs@500000 {
 	leds {
 		compatible = "gpio-leds";
 
-		red {
+		led-red {
 			gpios = <&pioC 10 GPIO_ACTIVE_HIGH>;
 			linux,default-trigger = "none";
 		};
 
-		green {
+		led-green {
 			gpios = <&pioA 5 GPIO_ACTIVE_LOW>;
 			linux,default-trigger = "none";
 			default-state = "on";
 		};
 
-		yellow {
+		led-yellow {
 			gpios = <&pioB 20 GPIO_ACTIVE_LOW>;
 			linux,default-trigger = "none";
 		};
 
-		blue {
+		led-blue {
 			gpios = <&pioB 21 GPIO_ACTIVE_LOW>;
 			linux,default-trigger = "none";
 		};
diff --git a/arch/arm/boot/dts/microchip/animeo_ip.dts b/arch/arm/boot/dts/microchip/animeo_ip.dts
index 911c8d9ee013..52ac840bcd35 100644
--- a/arch/arm/boot/dts/microchip/animeo_ip.dts
+++ b/arch/arm/boot/dts/microchip/animeo_ip.dts
@@ -146,23 +146,23 @@ ohci: usb@500000 {
 	leds {
 		compatible = "gpio-leds";
 
-		power_green {
+		led-power-green {
 			label = "power_green";
 			gpios = <&pioC 17 GPIO_ACTIVE_HIGH>;
 			linux,default-trigger = "heartbeat";
 		};
 
-		power_red {
+		led-power-red {
 			label = "power_red";
 			gpios = <&pioA 2 GPIO_ACTIVE_HIGH>;
 		};
 
-		tx_green {
+		led-tx-green {
 			label = "tx_green";
 			gpios = <&pioC 19 GPIO_ACTIVE_HIGH>;
 		};
 
-		tx_red {
+		led-tx-red {
 			label = "tx_red";
 			gpios = <&pioC 18 GPIO_ACTIVE_HIGH>;
 		};
diff --git a/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts b/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts
index b9a21f9f9a6d..da31b07d6828 100644
--- a/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts
+++ b/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts
@@ -53,17 +53,17 @@ leds {
 		pinctrl-0 = <&pinctrl_gpio_leds>;
 		status = "okay"; /* Conflict with pwm0. */
 
-		red {
+		led-red {
 			label = "red";
 			gpios = <&pioB 11 GPIO_ACTIVE_HIGH>;
 		};
 
-		green {
+		led-green {
 			label = "green";
 			gpios = <&pioB 12 GPIO_ACTIVE_HIGH>;
 		};
 
-		blue {
+		led-blue {
 			label = "blue";
 			gpios = <&pioB 13 GPIO_ACTIVE_HIGH>;
 			linux,default-trigger = "heartbeat";
diff --git a/arch/arm/boot/dts/microchip/at91rm9200ek.dts b/arch/arm/boot/dts/microchip/at91rm9200ek.dts
index 3089912dd6be..641d443e6ca9 100644
--- a/arch/arm/boot/dts/microchip/at91rm9200ek.dts
+++ b/arch/arm/boot/dts/microchip/at91rm9200ek.dts
@@ -127,19 +127,19 @@ root@350000  {
 	leds {
 		compatible = "gpio-leds";
 
-		ds2 {
+		led-ds2 {
 			label = "green";
 			gpios = <&pioB 0 GPIO_ACTIVE_LOW>;
 			linux,default-trigger = "mmc0";
 		};
 
-		ds4 {
+		led-ds4 {
 			label = "yellow";
 			gpios = <&pioB 1 GPIO_ACTIVE_LOW>;
 			linux,default-trigger = "heartbeat";
 		};
 
-		ds6 {
+		led-ds6 {
 			label = "red";
 			gpios = <&pioB 2 GPIO_ACTIVE_LOW>;
 		};
diff --git a/arch/arm/boot/dts/microchip/at91sam9260ek.dts b/arch/arm/boot/dts/microchip/at91sam9260ek.dts
index ed259e2cb853..4933971d0585 100644
--- a/arch/arm/boot/dts/microchip/at91sam9260ek.dts
+++ b/arch/arm/boot/dts/microchip/at91sam9260ek.dts
@@ -174,13 +174,13 @@ eeprom@50 {
 	leds {
 		compatible = "gpio-leds";
 
-		ds1 {
+		led-ds1 {
 			label = "ds1";
 			gpios = <&pioA 9 GPIO_ACTIVE_HIGH>;
 			linux,default-trigger = "heartbeat";
 		};
 
-		ds5 {
+		led-ds5 {
 			label = "ds5";
 			gpios = <&pioA 6 GPIO_ACTIVE_LOW>;
 		};
diff --git a/arch/arm/boot/dts/microchip/at91sam9261ek.dts b/arch/arm/boot/dts/microchip/at91sam9261ek.dts
index 4d9269cc5f32..9c44177db714 100644
--- a/arch/arm/boot/dts/microchip/at91sam9261ek.dts
+++ b/arch/arm/boot/dts/microchip/at91sam9261ek.dts
@@ -192,19 +192,19 @@ watchdog@fffffd40 {
 	leds {
 		compatible = "gpio-leds";
 
-		ds8 {
+		led-ds8 {
 			label = "ds8";
 			gpios = <&pioA 13 GPIO_ACTIVE_LOW>;
 			linux,default-trigger = "none";
 		};
 
-		ds7 {
+		led-ds7 {
 			label = "ds7";
 			gpios = <&pioA 14 GPIO_ACTIVE_LOW>;
 			linux,default-trigger = "nand-disk";
 		};
 
-		ds1 {
+		led-ds1 {
 			label = "ds1";
 			gpios = <&pioA 23 GPIO_ACTIVE_LOW>;
 			linux,default-trigger = "heartbeat";
diff --git a/arch/arm/boot/dts/microchip/at91sam9263ek.dts b/arch/arm/boot/dts/microchip/at91sam9263ek.dts
index a8ea36db4c04..cf5434f9449d 100644
--- a/arch/arm/boot/dts/microchip/at91sam9263ek.dts
+++ b/arch/arm/boot/dts/microchip/at91sam9263ek.dts
@@ -219,13 +219,13 @@ &pioA 21 GPIO_ACTIVE_HIGH
 	leds {
 		compatible = "gpio-leds";
 
-		d3 {
+		led-d3 {
 			label = "d3";
 			gpios = <&pioB 7 GPIO_ACTIVE_HIGH>;
 			linux,default-trigger = "heartbeat";
 		};
 
-		d2 {
+		led-d2 {
 			label = "d2";
 			gpios = <&pioC 29 GPIO_ACTIVE_LOW>;
 			linux,default-trigger = "nand-disk";
diff --git a/arch/arm/boot/dts/microchip/at91sam9g20ek.dts b/arch/arm/boot/dts/microchip/at91sam9g20ek.dts
index 6de7a7cd3c07..1e62fd371ddb 100644
--- a/arch/arm/boot/dts/microchip/at91sam9g20ek.dts
+++ b/arch/arm/boot/dts/microchip/at91sam9g20ek.dts
@@ -14,13 +14,13 @@ / {
 	leds {
 		compatible = "gpio-leds";
 
-		ds1 {
+		led-ds1 {
 			label = "ds1";
 			gpios = <&pioA 9 GPIO_ACTIVE_HIGH>;
 			linux,default-trigger = "heartbeat";
 		};
 
-		ds5 {
+		led-ds5 {
 			label = "ds5";
 			gpios = <&pioA 6 GPIO_ACTIVE_LOW>;
 		};
-- 
2.34.1


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

* Re: [PATCH 1/5] ARM: dts: microchip: Clean up spacing and indentation
  2024-08-14 12:26 ` [PATCH 1/5] ARM: dts: microchip: Clean up spacing and indentation Andrei Simion
@ 2024-08-14 13:20   ` Krzysztof Kozlowski
  2024-08-14 13:32     ` Andrei.Simion
  0 siblings, 1 reply; 20+ messages in thread
From: Krzysztof Kozlowski @ 2024-08-14 13:20 UTC (permalink / raw)
  To: Andrei Simion, claudiu.beznea, nicolas.ferre, alexandre.belloni,
	robh, krzk+dt, conor+dt, peda
  Cc: linux-arm-kernel, linux-kernel, devicetree, cristian.birsan

On 14/08/2024 14:26, Andrei Simion wrote:
> Checkpatch.pl reports some ERRORS related
> to coding style (spacing and indentation).
> So clean up : checkpatch.pl --fix-inplace

Please wrap commit message according to Linux coding style / submission
process (neither too early nor over the limit):
https://elixir.bootlin.com/linux/v6.4-rc1/source/Documentation/process/submitting-patches.rst#L597

Please be specific what are you changing.


> 
> Signed-off-by: Andrei Simion <andrei.simion@microchip.com>
> ---
> Split the bloated patch into small patches on topics
> based on comments:
> https://lore.kernel.org/linux-arm-kernel/89f51615-0dee-4ab0-ab72-e3c057fee1e7@tuxon.dev/
> ---
>  arch/arm/boot/dts/microchip/at91-cosino_mega2560.dts  | 2 +-
>  arch/arm/boot/dts/microchip/at91-sama5d27_som1_ek.dts | 8 ++++----
>  arch/arm/boot/dts/microchip/at91-sama5d2_icp.dts      | 8 ++++----
>  arch/arm/boot/dts/microchip/at91sam9263ek.dts         | 2 +-
>  4 files changed, 10 insertions(+), 10 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/microchip/at91-cosino_mega2560.dts b/arch/arm/boot/dts/microchip/at91-cosino_mega2560.dts
> index 04cb7bee937d..1279dfb38300 100644
> --- a/arch/arm/boot/dts/microchip/at91-cosino_mega2560.dts
> +++ b/arch/arm/boot/dts/microchip/at91-cosino_mega2560.dts
> @@ -7,7 +7,7 @@
>   *			HCE Engineering
>   *
>   * Derived from at91sam9g35ek.dts by:
> - * 	Copyright (C) 2012 Atmel,
> + *	Copyright (C) 2012 Atmel,

Not sure what you are fixing here, but unnecessary tab was here before
and still exists...

>   *      2012 Nicolas Ferre <nicolas.ferre@atmel.com>
>   */
>  

Best regards,
Krzysztof


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

* Re: [PATCH 3/5] ARM: dts: microchip: Rename the pmic node
  2024-08-14 12:26 ` [PATCH 3/5] ARM: dts: microchip: Rename the pmic node Andrei Simion
@ 2024-08-14 13:20   ` Krzysztof Kozlowski
  2024-08-14 13:58     ` Krzysztof Kozlowski
  0 siblings, 1 reply; 20+ messages in thread
From: Krzysztof Kozlowski @ 2024-08-14 13:20 UTC (permalink / raw)
  To: Andrei Simion, claudiu.beznea, nicolas.ferre, alexandre.belloni,
	robh, krzk+dt, conor+dt, peda
  Cc: linux-arm-kernel, linux-kernel, devicetree, cristian.birsan

On 14/08/2024 14:26, Andrei Simion wrote:
> Rename the pmic node according to the devicetree
> specification.
> 
> Signed-off-by: Andrei Simion <andrei.simion@microchip.com>
> ---
> Split the bloated patch into small patches on topics
> based on comments
> https://lore.kernel.org/linux-arm-kernel/89f51615-0dee-4ab0-ab72-e3c057fee1e7@tuxon.dev/
> ---

All renames should be rather together.

Best regards,
Krzysztof


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

* Re: [PATCH 4/5] ARM: dts: microchip: Rename the usb node
  2024-08-14 12:26 ` [PATCH 4/5] ARM: dts: microchip: Rename the usb node Andrei Simion
@ 2024-08-14 13:22   ` Krzysztof Kozlowski
  2024-09-05 13:51     ` Andrei.Simion
  0 siblings, 1 reply; 20+ messages in thread
From: Krzysztof Kozlowski @ 2024-08-14 13:22 UTC (permalink / raw)
  To: Andrei Simion, claudiu.beznea, nicolas.ferre, alexandre.belloni,
	robh, krzk+dt, conor+dt, peda
  Cc: linux-arm-kernel, linux-kernel, devicetree, cristian.birsan

On 14/08/2024 14:26, Andrei Simion wrote:
> Rename the usb node according to devicetree
> specification and update the label according
> with the node-specific standard as: ohci, ehci
> or gadget.

Please wrap commit message according to Linux coding style / submission
process (neither too early nor over the limit):
https://elixir.bootlin.com/linux/v6.4-rc1/source/Documentation/process/submitting-patches.rst#L597

...


> 
> diff --git a/arch/arm/boot/dts/microchip/aks-cdu.dts b/arch/arm/boot/dts/microchip/aks-cdu.dts
> index 742fcf525e1b..52e166c8a365 100644
> --- a/arch/arm/boot/dts/microchip/aks-cdu.dts
> +++ b/arch/arm/boot/dts/microchip/aks-cdu.dts
> @@ -50,13 +50,13 @@ macb0: ethernet@fffc4000 {
>  				status = "okay";
>  			};
>  
> -			usb1: gadget@fffa4000 {
> +			gadget: usb@fffa4000 {
>  				atmel,vbus-gpio = <&pioC 15 GPIO_ACTIVE_HIGH>;
>  				status = "okay";
>  			};
>  		};
>  
> -		usb0: ohci@500000 {
> +		ohci: usb@500000 {

I don't think that these label renames are correct.

>  			num-ports = <2>;
>  			status = "okay";
>  		};
> diff --git a/arch/arm/boot/dts/microchip/animeo_ip.dts b/arch/arm/boot/dts/microchip/animeo_ip.dts
> index 29936bfbeeb7..911c8d9ee013 100644
> --- a/arch/arm/boot/dts/microchip/animeo_ip.dts
> +++ b/arch/arm/boot/dts/microchip/animeo_ip.dts
> @@ -136,7 +136,7 @@ ubi@60000 {
>  			};
>  		};
>  
> -		usb0: ohci@500000 {
> +		ohci: usb@500000 {
>  			num-ports = <2>;
>  			atmel,vbus-gpio = <&pioB 15 GPIO_ACTIVE_LOW>;
>  			status = "okay";
> diff --git a/arch/arm/boot/dts/microchip/at91-ariag25.dts b/arch/arm/boot/dts/microchip/at91-ariag25.dts
> index 713d18f80356..fedcf30a924e 100644
> --- a/arch/arm/boot/dts/microchip/at91-ariag25.dts
> +++ b/arch/arm/boot/dts/microchip/at91-ariag25.dts
> @@ -173,11 +173,11 @@ &usart3 {
>  	status = "okay";
>  };
>  
> -&usb0 {
> +&ohci {
>  	status = "okay";
>  	num-ports = <3>;
>  };
>  
> -&usb1 {
> +&ehci {
>  	status = "okay";
>  };

And how now the sorting works? I don't get the point of it. What is
exactly wrong in the label that justifies the code reshuffling.

BTW, is this some sort of v2? If so, provide changelog and properly
version your patches.

Best regards,
Krzysztof


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

* Re: [PATCH 5/5] ARM: dts: microchip: Rename LED sub nodes name
  2024-08-14 12:26 ` [PATCH 5/5] ARM: dts: microchip: Rename LED sub nodes name Andrei Simion
@ 2024-08-14 13:23   ` Krzysztof Kozlowski
  2024-08-15  7:57   ` Alexander Dahl
  1 sibling, 0 replies; 20+ messages in thread
From: Krzysztof Kozlowski @ 2024-08-14 13:23 UTC (permalink / raw)
  To: Andrei Simion, claudiu.beznea, nicolas.ferre, alexandre.belloni,
	robh, krzk+dt, conor+dt, peda
  Cc: linux-arm-kernel, linux-kernel, devicetree, cristian.birsan

On 14/08/2024 14:26, Andrei Simion wrote:
> dtbs_check warnings:
> leds: 'd[0-9]', 'ds[0-9]' do not match any of the regexes:
> '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
> leds: 'red', 'green', 'blue' do not match any of regexes:
> '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
> 
> Rename the led sub nodes according to devicetree
> specification and leds-gpio.yaml.
> 
> Signed-off-by: Andrei Simion <andrei.simion@microchip.com>
> ---
> Split the bloadted patch into small patches on topics
> based on comments:
> https://lore.kernel.org/linux-arm-kernel/89f51615-0dee-4ab0-ab72-e3c057fee1e7@tuxon.dev/
> ---

Changelog / v2 is missing.

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

Best regards,
Krzysztof


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

* Re: [PATCH 1/5] ARM: dts: microchip: Clean up spacing and indentation
  2024-08-14 13:20   ` Krzysztof Kozlowski
@ 2024-08-14 13:32     ` Andrei.Simion
  2024-08-14 13:57       ` Krzysztof Kozlowski
  0 siblings, 1 reply; 20+ messages in thread
From: Andrei.Simion @ 2024-08-14 13:32 UTC (permalink / raw)
  To: krzk, claudiu.beznea, Nicolas.Ferre, alexandre.belloni, robh,
	krzk+dt, conor+dt, peda
  Cc: linux-arm-kernel, linux-kernel, devicetree, Cristian.Birsan

On 14.08.2024 16:20, Krzysztof Kozlowski wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> On 14/08/2024 14:26, Andrei Simion wrote:
>> Checkpatch.pl reports some ERRORS related
>> to coding style (spacing and indentation).
>> So clean up : checkpatch.pl --fix-inplace
> 
> Please wrap commit message according to Linux coding style / submission
> process (neither too early nor over the limit):
> https://elixir.bootlin.com/linux/v6.4-rc1/source/Documentation/process/submitting-patches.rst#L597
> 

checkpatch.pl has no lower limit for the number of characters.
If you want 75 cols. OK for me.


> Please be specific what are you changing.
> 

It was a bigger/bloated patch and I split it into smaller 
ones based on what ARM/Microchip (AT91) Maintainer said.

> 
>>
>> Signed-off-by: Andrei Simion <andrei.simion@microchip.com>
>> ---
>> Split the bloated patch into small patches on topics
>> based on comments:
>> https://lore.kernel.org/linux-arm-kernel/89f51615-0dee-4ab0-ab72-e3c057fee1e7@tuxon.dev/
>> ---
>>  arch/arm/boot/dts/microchip/at91-cosino_mega2560.dts  | 2 +-
>>  arch/arm/boot/dts/microchip/at91-sama5d27_som1_ek.dts | 8 ++++----
>>  arch/arm/boot/dts/microchip/at91-sama5d2_icp.dts      | 8 ++++----
>>  arch/arm/boot/dts/microchip/at91sam9263ek.dts         | 2 +-
>>  4 files changed, 10 insertions(+), 10 deletions(-)
>>
>> diff --git a/arch/arm/boot/dts/microchip/at91-cosino_mega2560.dts b/arch/arm/boot/dts/microchip/at91-cosino_mega2560.dts
>> index 04cb7bee937d..1279dfb38300 100644
>> --- a/arch/arm/boot/dts/microchip/at91-cosino_mega2560.dts
>> +++ b/arch/arm/boot/dts/microchip/at91-cosino_mega2560.dts
>> @@ -7,7 +7,7 @@
>>   *                   HCE Engineering
>>   *
>>   * Derived from at91sam9g35ek.dts by:
>> - *   Copyright (C) 2012 Atmel,
>> + *   Copyright (C) 2012 Atmel,
> 
> Not sure what you are fixing here, but unnecessary tab was here before
> and still exists...
> 

WARNING: please, no space before tabs
#10: FILE: arch/arm/boot/dts/microchip/at91-cosino_mega2560.dts:10:
+ * ^ICopyright (C) 2012 Atmel,$

after this patch : this warning disappears.

>>   *      2012 Nicolas Ferre <nicolas.ferre@atmel.com>
>>   */
>>
> 
> Best regards,
> Krzysztof
> 

BR,
Andrei Simion


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

* Re: [PATCH 1/5] ARM: dts: microchip: Clean up spacing and indentation
  2024-08-14 13:32     ` Andrei.Simion
@ 2024-08-14 13:57       ` Krzysztof Kozlowski
  2024-08-14 14:20         ` Andrei.Simion
  0 siblings, 1 reply; 20+ messages in thread
From: Krzysztof Kozlowski @ 2024-08-14 13:57 UTC (permalink / raw)
  To: Andrei.Simion, claudiu.beznea, Nicolas.Ferre, alexandre.belloni,
	robh, krzk+dt, conor+dt, peda
  Cc: linux-arm-kernel, linux-kernel, devicetree, Cristian.Birsan

On 14/08/2024 15:32, Andrei.Simion@microchip.com wrote:
> On 14.08.2024 16:20, Krzysztof Kozlowski wrote:
>> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>>
>> On 14/08/2024 14:26, Andrei Simion wrote:
>>> Checkpatch.pl reports some ERRORS related
>>> to coding style (spacing and indentation).
>>> So clean up : checkpatch.pl --fix-inplace
>>
>> Please wrap commit message according to Linux coding style / submission
>> process (neither too early nor over the limit):
>> https://elixir.bootlin.com/linux/v6.4-rc1/source/Documentation/process/submitting-patches.rst#L597
>>
> 
> checkpatch.pl has no lower limit for the number of characters.
> If you want 75 cols. OK for me.

That
has
nothing
to
do
with
checkpatch
but
with
readability. Please
read
submitting patches document.

> 
> 
>> Please be specific what are you changing.
>>
> 
> It was a bigger/bloated patch and I split it into smaller 
> ones based on what ARM/Microchip (AT91) Maintainer said.

I meant, what the commit is doing.

> 
>>
>>>
>>> Signed-off-by: Andrei Simion <andrei.simion@microchip.com>
>>> ---
>>> Split the bloated patch into small patches on topics
>>> based on comments:
>>> https://lore.kernel.org/linux-arm-kernel/89f51615-0dee-4ab0-ab72-e3c057fee1e7@tuxon.dev/
>>> ---
>>>  arch/arm/boot/dts/microchip/at91-cosino_mega2560.dts  | 2 +-
>>>  arch/arm/boot/dts/microchip/at91-sama5d27_som1_ek.dts | 8 ++++----
>>>  arch/arm/boot/dts/microchip/at91-sama5d2_icp.dts      | 8 ++++----
>>>  arch/arm/boot/dts/microchip/at91sam9263ek.dts         | 2 +-
>>>  4 files changed, 10 insertions(+), 10 deletions(-)
>>>
>>> diff --git a/arch/arm/boot/dts/microchip/at91-cosino_mega2560.dts b/arch/arm/boot/dts/microchip/at91-cosino_mega2560.dts
>>> index 04cb7bee937d..1279dfb38300 100644
>>> --- a/arch/arm/boot/dts/microchip/at91-cosino_mega2560.dts
>>> +++ b/arch/arm/boot/dts/microchip/at91-cosino_mega2560.dts
>>> @@ -7,7 +7,7 @@
>>>   *                   HCE Engineering
>>>   *
>>>   * Derived from at91sam9g35ek.dts by:
>>> - *   Copyright (C) 2012 Atmel,
>>> + *   Copyright (C) 2012 Atmel,
>>
>> Not sure what you are fixing here, but unnecessary tab was here before
>> and still exists...
>>
> 
> WARNING: please, no space before tabs
> #10: FILE: arch/arm/boot/dts/microchip/at91-cosino_mega2560.dts:10:
> + * ^ICopyright (C) 2012 Atmel,$
> 
> after this patch : this warning disappears.

Yeah, but code is not correct, is it?

Do not run checkpatch --inplace and commit the changes. Who gave you
such idea?

Instead fix the actual issue in a correct way.



Best regards,
Krzysztof


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

* Re: [PATCH 3/5] ARM: dts: microchip: Rename the pmic node
  2024-08-14 13:20   ` Krzysztof Kozlowski
@ 2024-08-14 13:58     ` Krzysztof Kozlowski
  0 siblings, 0 replies; 20+ messages in thread
From: Krzysztof Kozlowski @ 2024-08-14 13:58 UTC (permalink / raw)
  To: Andrei Simion, claudiu.beznea, nicolas.ferre, alexandre.belloni,
	robh, krzk+dt, conor+dt, peda
  Cc: linux-arm-kernel, linux-kernel, devicetree, cristian.birsan

On 14/08/2024 15:20, Krzysztof Kozlowski wrote:
> On 14/08/2024 14:26, Andrei Simion wrote:
>> Rename the pmic node according to the devicetree
>> specification.
>>
>> Signed-off-by: Andrei Simion <andrei.simion@microchip.com>
>> ---
>> Split the bloated patch into small patches on topics
>> based on comments
>> https://lore.kernel.org/linux-arm-kernel/89f51615-0dee-4ab0-ab72-e3c057fee1e7@tuxon.dev/
>> ---
> 
> All renames should be rather together.
> 

I retract my statement, I thought you keep renaming one type of devices
per patch. Other renames are a bit different, so it was reasonable to
keep them separate.

Best regards,
Krzysztof


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

* Re: [PATCH 1/5] ARM: dts: microchip: Clean up spacing and indentation
  2024-08-14 13:57       ` Krzysztof Kozlowski
@ 2024-08-14 14:20         ` Andrei.Simion
  0 siblings, 0 replies; 20+ messages in thread
From: Andrei.Simion @ 2024-08-14 14:20 UTC (permalink / raw)
  To: krzk, claudiu.beznea, Nicolas.Ferre, alexandre.belloni, robh,
	krzk+dt, conor+dt, peda
  Cc: linux-arm-kernel, linux-kernel, devicetree, Cristian.Birsan

On 14.08.2024 16:57, Krzysztof Kozlowski wrote:
>> WARNING: please, no space before tabs
>> #10: FILE: arch/arm/boot/dts/microchip/at91-cosino_mega2560.dts:10:
>> + * ^ICopyright (C) 2012 Atmel,$
>>
>> after this patch : this warning disappears.
> Yeah, but code is not correct, is it?
> 
> Do not run checkpatch --inplace and commit the changes. Who gave you
> such idea?
>

No one gave me this idea. 

> Instead fix the actual issue in a correct way.
> 
> 

OK. I understand.

> 
> Best regards,
> Krzysztof

Best Regards,
Andrei Simion

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

* Re: [PATCH 5/5] ARM: dts: microchip: Rename LED sub nodes name
  2024-08-14 12:26 ` [PATCH 5/5] ARM: dts: microchip: Rename LED sub nodes name Andrei Simion
  2024-08-14 13:23   ` Krzysztof Kozlowski
@ 2024-08-15  7:57   ` Alexander Dahl
  2024-08-16  8:52     ` Andrei.Simion
  1 sibling, 1 reply; 20+ messages in thread
From: Alexander Dahl @ 2024-08-15  7:57 UTC (permalink / raw)
  To: Andrei Simion
  Cc: claudiu.beznea, nicolas.ferre, alexandre.belloni, robh, krzk+dt,
	conor+dt, peda, linux-arm-kernel, linux-kernel, devicetree,
	cristian.birsan, linux-leds

Hello Andrei,

Am Wed, Aug 14, 2024 at 03:26:33PM +0300 schrieb Andrei Simion:
> dtbs_check warnings:
> leds: 'd[0-9]', 'ds[0-9]' do not match any of the regexes:
> '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
> leds: 'red', 'green', 'blue' do not match any of regexes:
> '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
> 
> Rename the led sub nodes according to devicetree
> specification and leds-gpio.yaml.
> 
> Signed-off-by: Andrei Simion <andrei.simion@microchip.com>
> ---
> Split the bloadted patch into small patches on topics
> based on comments:
> https://lore.kernel.org/linux-arm-kernel/89f51615-0dee-4ab0-ab72-e3c057fee1e7@tuxon.dev/
> ---
>  arch/arm/boot/dts/microchip/aks-cdu.dts        | 8 ++++----
>  arch/arm/boot/dts/microchip/animeo_ip.dts      | 8 ++++----
>  arch/arm/boot/dts/microchip/at91-sam9x60ek.dts | 6 +++---
>  arch/arm/boot/dts/microchip/at91rm9200ek.dts   | 6 +++---
>  arch/arm/boot/dts/microchip/at91sam9260ek.dts  | 4 ++--
>  arch/arm/boot/dts/microchip/at91sam9261ek.dts  | 6 +++---
>  arch/arm/boot/dts/microchip/at91sam9263ek.dts  | 4 ++--
>  arch/arm/boot/dts/microchip/at91sam9g20ek.dts  | 4 ++--
>  8 files changed, 23 insertions(+), 23 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/microchip/aks-cdu.dts b/arch/arm/boot/dts/microchip/aks-cdu.dts
> index 52e166c8a365..95a0639c5579 100644
> --- a/arch/arm/boot/dts/microchip/aks-cdu.dts
> +++ b/arch/arm/boot/dts/microchip/aks-cdu.dts
> @@ -98,23 +98,23 @@ rootfs@500000 {
>  	leds {
>  		compatible = "gpio-leds";
>  
> -		red {
> +		led-red {
>  			gpios = <&pioC 10 GPIO_ACTIVE_HIGH>;
>  			linux,default-trigger = "none";
>  		};
>  
> -		green {
> +		led-green {
>  			gpios = <&pioA 5 GPIO_ACTIVE_LOW>;
>  			linux,default-trigger = "none";
>  			default-state = "on";
>  		};
>  
> -		yellow {
> +		led-yellow {
>  			gpios = <&pioB 20 GPIO_ACTIVE_LOW>;
>  			linux,default-trigger = "none";
>  		};
>  
> -		blue {
> +		led-blue {
>  			gpios = <&pioB 21 GPIO_ACTIVE_LOW>;
>  			linux,default-trigger = "none";
>  		};

As reported with <20240730-rambling-helping-2f03f5ddee6a@thorsis.com>
already, this will probably change sysfs paths and thus might break
userspace depending on those paths.  Did you consider adding a label
to avoid this?

(Added linux-leds to Cc.)

Greets
Alex

> diff --git a/arch/arm/boot/dts/microchip/animeo_ip.dts b/arch/arm/boot/dts/microchip/animeo_ip.dts
> index 911c8d9ee013..52ac840bcd35 100644
> --- a/arch/arm/boot/dts/microchip/animeo_ip.dts
> +++ b/arch/arm/boot/dts/microchip/animeo_ip.dts
> @@ -146,23 +146,23 @@ ohci: usb@500000 {
>  	leds {
>  		compatible = "gpio-leds";
>  
> -		power_green {
> +		led-power-green {
>  			label = "power_green";
>  			gpios = <&pioC 17 GPIO_ACTIVE_HIGH>;
>  			linux,default-trigger = "heartbeat";
>  		};
>  
> -		power_red {
> +		led-power-red {
>  			label = "power_red";
>  			gpios = <&pioA 2 GPIO_ACTIVE_HIGH>;
>  		};
>  
> -		tx_green {
> +		led-tx-green {
>  			label = "tx_green";
>  			gpios = <&pioC 19 GPIO_ACTIVE_HIGH>;
>  		};
>  
> -		tx_red {
> +		led-tx-red {
>  			label = "tx_red";
>  			gpios = <&pioC 18 GPIO_ACTIVE_HIGH>;
>  		};
> diff --git a/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts b/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts
> index b9a21f9f9a6d..da31b07d6828 100644
> --- a/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts
> +++ b/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts
> @@ -53,17 +53,17 @@ leds {
>  		pinctrl-0 = <&pinctrl_gpio_leds>;
>  		status = "okay"; /* Conflict with pwm0. */
>  
> -		red {
> +		led-red {
>  			label = "red";
>  			gpios = <&pioB 11 GPIO_ACTIVE_HIGH>;
>  		};
>  
> -		green {
> +		led-green {
>  			label = "green";
>  			gpios = <&pioB 12 GPIO_ACTIVE_HIGH>;
>  		};
>  
> -		blue {
> +		led-blue {
>  			label = "blue";
>  			gpios = <&pioB 13 GPIO_ACTIVE_HIGH>;
>  			linux,default-trigger = "heartbeat";
> diff --git a/arch/arm/boot/dts/microchip/at91rm9200ek.dts b/arch/arm/boot/dts/microchip/at91rm9200ek.dts
> index 3089912dd6be..641d443e6ca9 100644
> --- a/arch/arm/boot/dts/microchip/at91rm9200ek.dts
> +++ b/arch/arm/boot/dts/microchip/at91rm9200ek.dts
> @@ -127,19 +127,19 @@ root@350000  {
>  	leds {
>  		compatible = "gpio-leds";
>  
> -		ds2 {
> +		led-ds2 {
>  			label = "green";
>  			gpios = <&pioB 0 GPIO_ACTIVE_LOW>;
>  			linux,default-trigger = "mmc0";
>  		};
>  
> -		ds4 {
> +		led-ds4 {
>  			label = "yellow";
>  			gpios = <&pioB 1 GPIO_ACTIVE_LOW>;
>  			linux,default-trigger = "heartbeat";
>  		};
>  
> -		ds6 {
> +		led-ds6 {
>  			label = "red";
>  			gpios = <&pioB 2 GPIO_ACTIVE_LOW>;
>  		};
> diff --git a/arch/arm/boot/dts/microchip/at91sam9260ek.dts b/arch/arm/boot/dts/microchip/at91sam9260ek.dts
> index ed259e2cb853..4933971d0585 100644
> --- a/arch/arm/boot/dts/microchip/at91sam9260ek.dts
> +++ b/arch/arm/boot/dts/microchip/at91sam9260ek.dts
> @@ -174,13 +174,13 @@ eeprom@50 {
>  	leds {
>  		compatible = "gpio-leds";
>  
> -		ds1 {
> +		led-ds1 {
>  			label = "ds1";
>  			gpios = <&pioA 9 GPIO_ACTIVE_HIGH>;
>  			linux,default-trigger = "heartbeat";
>  		};
>  
> -		ds5 {
> +		led-ds5 {
>  			label = "ds5";
>  			gpios = <&pioA 6 GPIO_ACTIVE_LOW>;
>  		};
> diff --git a/arch/arm/boot/dts/microchip/at91sam9261ek.dts b/arch/arm/boot/dts/microchip/at91sam9261ek.dts
> index 4d9269cc5f32..9c44177db714 100644
> --- a/arch/arm/boot/dts/microchip/at91sam9261ek.dts
> +++ b/arch/arm/boot/dts/microchip/at91sam9261ek.dts
> @@ -192,19 +192,19 @@ watchdog@fffffd40 {
>  	leds {
>  		compatible = "gpio-leds";
>  
> -		ds8 {
> +		led-ds8 {
>  			label = "ds8";
>  			gpios = <&pioA 13 GPIO_ACTIVE_LOW>;
>  			linux,default-trigger = "none";
>  		};
>  
> -		ds7 {
> +		led-ds7 {
>  			label = "ds7";
>  			gpios = <&pioA 14 GPIO_ACTIVE_LOW>;
>  			linux,default-trigger = "nand-disk";
>  		};
>  
> -		ds1 {
> +		led-ds1 {
>  			label = "ds1";
>  			gpios = <&pioA 23 GPIO_ACTIVE_LOW>;
>  			linux,default-trigger = "heartbeat";
> diff --git a/arch/arm/boot/dts/microchip/at91sam9263ek.dts b/arch/arm/boot/dts/microchip/at91sam9263ek.dts
> index a8ea36db4c04..cf5434f9449d 100644
> --- a/arch/arm/boot/dts/microchip/at91sam9263ek.dts
> +++ b/arch/arm/boot/dts/microchip/at91sam9263ek.dts
> @@ -219,13 +219,13 @@ &pioA 21 GPIO_ACTIVE_HIGH
>  	leds {
>  		compatible = "gpio-leds";
>  
> -		d3 {
> +		led-d3 {
>  			label = "d3";
>  			gpios = <&pioB 7 GPIO_ACTIVE_HIGH>;
>  			linux,default-trigger = "heartbeat";
>  		};
>  
> -		d2 {
> +		led-d2 {
>  			label = "d2";
>  			gpios = <&pioC 29 GPIO_ACTIVE_LOW>;
>  			linux,default-trigger = "nand-disk";
> diff --git a/arch/arm/boot/dts/microchip/at91sam9g20ek.dts b/arch/arm/boot/dts/microchip/at91sam9g20ek.dts
> index 6de7a7cd3c07..1e62fd371ddb 100644
> --- a/arch/arm/boot/dts/microchip/at91sam9g20ek.dts
> +++ b/arch/arm/boot/dts/microchip/at91sam9g20ek.dts
> @@ -14,13 +14,13 @@ / {
>  	leds {
>  		compatible = "gpio-leds";
>  
> -		ds1 {
> +		led-ds1 {
>  			label = "ds1";
>  			gpios = <&pioA 9 GPIO_ACTIVE_HIGH>;
>  			linux,default-trigger = "heartbeat";
>  		};
>  
> -		ds5 {
> +		led-ds5 {
>  			label = "ds5";
>  			gpios = <&pioA 6 GPIO_ACTIVE_LOW>;
>  		};
> -- 
> 2.34.1
> 
> 

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

* Re: [PATCH 5/5] ARM: dts: microchip: Rename LED sub nodes name
  2024-08-15  7:57   ` Alexander Dahl
@ 2024-08-16  8:52     ` Andrei.Simion
  2024-08-16  9:06       ` Alexander Dahl
  0 siblings, 1 reply; 20+ messages in thread
From: Andrei.Simion @ 2024-08-16  8:52 UTC (permalink / raw)
  To: claudiu.beznea, Nicolas.Ferre, alexandre.belloni, robh, krzk+dt,
	conor+dt, peda, linux-arm-kernel, linux-kernel, devicetree,
	Cristian.Birsan, linux-leds

Hello Alex,

On 15.08.2024 10:57, Alexander Dahl wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> Hello Andrei,
>> Am Wed, Aug 14, 2024 at 03:26:33PM +0300 schrieb Andrei Simion:
>> dtbs_check warnings:
>> leds: 'd[0-9]', 'ds[0-9]' do not match any of the regexes:
>> '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
>> leds: 'red', 'green', 'blue' do not match any of regexes:
>> '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
>>
>> Rename the led sub nodes according to devicetree
>> specification and leds-gpio.yaml.
>>
>> Signed-off-by: Andrei Simion <andrei.simion@microchip.com>
>> ---
>> Split the bloadted patch into small patches on topics
>> based on comments:
>> https://lore.kernel.org/linux-arm-kernel/89f51615-0dee-4ab0-ab72-e3c057fee1e7@tuxon.dev/
>> ---
>>  arch/arm/boot/dts/microchip/aks-cdu.dts        | 8 ++++----
>>  arch/arm/boot/dts/microchip/animeo_ip.dts      | 8 ++++----
>>  arch/arm/boot/dts/microchip/at91-sam9x60ek.dts | 6 +++---
>>  arch/arm/boot/dts/microchip/at91rm9200ek.dts   | 6 +++---
>>  arch/arm/boot/dts/microchip/at91sam9260ek.dts  | 4 ++--
>>  arch/arm/boot/dts/microchip/at91sam9261ek.dts  | 6 +++---
>>  arch/arm/boot/dts/microchip/at91sam9263ek.dts  | 4 ++--
>>  arch/arm/boot/dts/microchip/at91sam9g20ek.dts  | 4 ++--
>>  8 files changed, 23 insertions(+), 23 deletions(-)
>>
>> diff --git a/arch/arm/boot/dts/microchip/aks-cdu.dts b/arch/arm/boot/dts/microchip/aks-cdu.dts
>> index 52e166c8a365..95a0639c5579 100644
>> --- a/arch/arm/boot/dts/microchip/aks-cdu.dts
>> +++ b/arch/arm/boot/dts/microchip/aks-cdu.dts
>> @@ -98,23 +98,23 @@ rootfs@500000 {
>>       leds {
>>               compatible = "gpio-leds";
>>
>> -             red {
>> +             led-red {
>>                       gpios = <&pioC 10 GPIO_ACTIVE_HIGH>;
>>                       linux,default-trigger = "none";
>>               };
>>
>> -             green {
>> +             led-green {
>>                       gpios = <&pioA 5 GPIO_ACTIVE_LOW>;
>>                       linux,default-trigger = "none";
>>                       default-state = "on";
>>               };
>>
>> -             yellow {
>> +             led-yellow {
>>                       gpios = <&pioB 20 GPIO_ACTIVE_LOW>;
>>                       linux,default-trigger = "none";
>>               };
>>
>> -             blue {
>> +             led-blue {
>>                       gpios = <&pioB 21 GPIO_ACTIVE_LOW>;
>>                       linux,default-trigger = "none";
>>               };
> 
> As reported with <20240730-rambling-helping-2f03f5ddee6a@thorsis.com>
> already, this will probably change sysfs paths and thus might break
> userspace depending on those paths.  Did you consider adding a label
> to avoid this?
> 
> (Added linux-leds to Cc.)
> 

https://elixir.bootlin.com/linux/v6.11-rc3/source/Documentation/devicetree/bindings/leds/common.yaml#L54
Based on the information provided above: "If omitted, the label is 
taken from the node name (excluding the unit address)." and "This 
property is deprecated"
So, in your opinion what should I do? use function and color?
My patch reason is to rename the label to avoid the warnings.

Best Regards,
Andrei Simion

> Greets
> Alex
> 
>> diff --git a/arch/arm/boot/dts/microchip/animeo_ip.dts b/arch/arm/boot/dts/microchip/animeo_ip.dts
>> index 911c8d9ee013..52ac840bcd35 100644
>> --- a/arch/arm/boot/dts/microchip/animeo_ip.dts
>> +++ b/arch/arm/boot/dts/microchip/animeo_ip.dts
>> @@ -146,23 +146,23 @@ ohci: usb@500000 {
>>       leds {
>>               compatible = "gpio-leds";
>>
>> -             power_green {
>> +             led-power-green {
>>                       label = "power_green";
>>                       gpios = <&pioC 17 GPIO_ACTIVE_HIGH>;
>>                       linux,default-trigger = "heartbeat";
>>               };
>>
>> -             power_red {
>> +             led-power-red {
>>                       label = "power_red";
>>                       gpios = <&pioA 2 GPIO_ACTIVE_HIGH>;
>>               };
>>
>> -             tx_green {
>> +             led-tx-green {
>>                       label = "tx_green";
>>                       gpios = <&pioC 19 GPIO_ACTIVE_HIGH>;
>>               };
>>
>> -             tx_red {
>> +             led-tx-red {
>>                       label = "tx_red";
>>                       gpios = <&pioC 18 GPIO_ACTIVE_HIGH>;
>>               };
>> diff --git a/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts b/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts
>> index b9a21f9f9a6d..da31b07d6828 100644
>> --- a/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts
>> +++ b/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts
>> @@ -53,17 +53,17 @@ leds {
>>               pinctrl-0 = <&pinctrl_gpio_leds>;
>>               status = "okay"; /* Conflict with pwm0. */
>>
>> -             red {
>> +             led-red {
>>                       label = "red";
>>                       gpios = <&pioB 11 GPIO_ACTIVE_HIGH>;
>>               };
>>
>> -             green {
>> +             led-green {
>>                       label = "green";
>>                       gpios = <&pioB 12 GPIO_ACTIVE_HIGH>;
>>               };
>>
>> -             blue {
>> +             led-blue {
>>                       label = "blue";
>>                       gpios = <&pioB 13 GPIO_ACTIVE_HIGH>;
>>                       linux,default-trigger = "heartbeat";
>> diff --git a/arch/arm/boot/dts/microchip/at91rm9200ek.dts b/arch/arm/boot/dts/microchip/at91rm9200ek.dts
>> index 3089912dd6be..641d443e6ca9 100644
>> --- a/arch/arm/boot/dts/microchip/at91rm9200ek.dts
>> +++ b/arch/arm/boot/dts/microchip/at91rm9200ek.dts
>> @@ -127,19 +127,19 @@ root@350000  {
>>       leds {
>>               compatible = "gpio-leds";
>>
>> -             ds2 {
>> +             led-ds2 {
>>                       label = "green";
>>                       gpios = <&pioB 0 GPIO_ACTIVE_LOW>;
>>                       linux,default-trigger = "mmc0";
>>               };
>>
>> -             ds4 {
>> +             led-ds4 {
>>                       label = "yellow";
>>                       gpios = <&pioB 1 GPIO_ACTIVE_LOW>;
>>                       linux,default-trigger = "heartbeat";
>>               };
>>
>> -             ds6 {
>> +             led-ds6 {
>>                       label = "red";
>>                       gpios = <&pioB 2 GPIO_ACTIVE_LOW>;
>>               };
>> diff --git a/arch/arm/boot/dts/microchip/at91sam9260ek.dts b/arch/arm/boot/dts/microchip/at91sam9260ek.dts
>> index ed259e2cb853..4933971d0585 100644
>> --- a/arch/arm/boot/dts/microchip/at91sam9260ek.dts
>> +++ b/arch/arm/boot/dts/microchip/at91sam9260ek.dts
>> @@ -174,13 +174,13 @@ eeprom@50 {
>>       leds {
>>               compatible = "gpio-leds";
>>
>> -             ds1 {
>> +             led-ds1 {
>>                       label = "ds1";
>>                       gpios = <&pioA 9 GPIO_ACTIVE_HIGH>;
>>                       linux,default-trigger = "heartbeat";
>>               };
>>
>> -             ds5 {
>> +             led-ds5 {
>>                       label = "ds5";
>>                       gpios = <&pioA 6 GPIO_ACTIVE_LOW>;
>>               };
>> diff --git a/arch/arm/boot/dts/microchip/at91sam9261ek.dts b/arch/arm/boot/dts/microchip/at91sam9261ek.dts
>> index 4d9269cc5f32..9c44177db714 100644
>> --- a/arch/arm/boot/dts/microchip/at91sam9261ek.dts
>> +++ b/arch/arm/boot/dts/microchip/at91sam9261ek.dts
>> @@ -192,19 +192,19 @@ watchdog@fffffd40 {
>>       leds {
>>               compatible = "gpio-leds";
>>
>> -             ds8 {
>> +             led-ds8 {
>>                       label = "ds8";
>>                       gpios = <&pioA 13 GPIO_ACTIVE_LOW>;
>>                       linux,default-trigger = "none";
>>               };
>>
>> -             ds7 {
>> +             led-ds7 {
>>                       label = "ds7";
>>                       gpios = <&pioA 14 GPIO_ACTIVE_LOW>;
>>                       linux,default-trigger = "nand-disk";
>>               };
>>
>> -             ds1 {
>> +             led-ds1 {
>>                       label = "ds1";
>>                       gpios = <&pioA 23 GPIO_ACTIVE_LOW>;
>>                       linux,default-trigger = "heartbeat";
>> diff --git a/arch/arm/boot/dts/microchip/at91sam9263ek.dts b/arch/arm/boot/dts/microchip/at91sam9263ek.dts
>> index a8ea36db4c04..cf5434f9449d 100644
>> --- a/arch/arm/boot/dts/microchip/at91sam9263ek.dts
>> +++ b/arch/arm/boot/dts/microchip/at91sam9263ek.dts
>> @@ -219,13 +219,13 @@ &pioA 21 GPIO_ACTIVE_HIGH
>>       leds {
>>               compatible = "gpio-leds";
>>
>> -             d3 {
>> +             led-d3 {
>>                       label = "d3";
>>                       gpios = <&pioB 7 GPIO_ACTIVE_HIGH>;
>>                       linux,default-trigger = "heartbeat";
>>               };
>>
>> -             d2 {
>> +             led-d2 {
>>                       label = "d2";
>>                       gpios = <&pioC 29 GPIO_ACTIVE_LOW>;
>>                       linux,default-trigger = "nand-disk";
>> diff --git a/arch/arm/boot/dts/microchip/at91sam9g20ek.dts b/arch/arm/boot/dts/microchip/at91sam9g20ek.dts
>> index 6de7a7cd3c07..1e62fd371ddb 100644
>> --- a/arch/arm/boot/dts/microchip/at91sam9g20ek.dts
>> +++ b/arch/arm/boot/dts/microchip/at91sam9g20ek.dts
>> @@ -14,13 +14,13 @@ / {
>>       leds {
>>               compatible = "gpio-leds";
>>
>> -             ds1 {
>> +             led-ds1 {
>>                       label = "ds1";
>>                       gpios = <&pioA 9 GPIO_ACTIVE_HIGH>;
>>                       linux,default-trigger = "heartbeat";
>>               };
>>
>> -             ds5 {
>> +             led-ds5 {
>>                       label = "ds5";
>>                       gpios = <&pioA 6 GPIO_ACTIVE_LOW>;
>>               };
>> --
>> 2.34.1
>>
>>


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

* Re: [PATCH 5/5] ARM: dts: microchip: Rename LED sub nodes name
  2024-08-16  8:52     ` Andrei.Simion
@ 2024-08-16  9:06       ` Alexander Dahl
  2024-08-20  6:32         ` Andrei.Simion
  0 siblings, 1 reply; 20+ messages in thread
From: Alexander Dahl @ 2024-08-16  9:06 UTC (permalink / raw)
  To: Andrei.Simion
  Cc: claudiu.beznea, Nicolas.Ferre, alexandre.belloni, robh, krzk+dt,
	conor+dt, peda, linux-arm-kernel, linux-kernel, devicetree,
	Cristian.Birsan, linux-leds

Hello Andrei,

Am Fri, Aug 16, 2024 at 08:52:14AM +0000 schrieb Andrei.Simion@microchip.com:
> Hello Alex,
> 
> On 15.08.2024 10:57, Alexander Dahl wrote:
> > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> > 
> > Hello Andrei,
> >> Am Wed, Aug 14, 2024 at 03:26:33PM +0300 schrieb Andrei Simion:
> >> dtbs_check warnings:
> >> leds: 'd[0-9]', 'ds[0-9]' do not match any of the regexes:
> >> '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
> >> leds: 'red', 'green', 'blue' do not match any of regexes:
> >> '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
> >>
> >> Rename the led sub nodes according to devicetree
> >> specification and leds-gpio.yaml.
> >>
> >> Signed-off-by: Andrei Simion <andrei.simion@microchip.com>
> >> ---
> >> Split the bloadted patch into small patches on topics
> >> based on comments:
> >> https://lore.kernel.org/linux-arm-kernel/89f51615-0dee-4ab0-ab72-e3c057fee1e7@tuxon.dev/
> >> ---
> >>  arch/arm/boot/dts/microchip/aks-cdu.dts        | 8 ++++----
> >>  arch/arm/boot/dts/microchip/animeo_ip.dts      | 8 ++++----
> >>  arch/arm/boot/dts/microchip/at91-sam9x60ek.dts | 6 +++---
> >>  arch/arm/boot/dts/microchip/at91rm9200ek.dts   | 6 +++---
> >>  arch/arm/boot/dts/microchip/at91sam9260ek.dts  | 4 ++--
> >>  arch/arm/boot/dts/microchip/at91sam9261ek.dts  | 6 +++---
> >>  arch/arm/boot/dts/microchip/at91sam9263ek.dts  | 4 ++--
> >>  arch/arm/boot/dts/microchip/at91sam9g20ek.dts  | 4 ++--
> >>  8 files changed, 23 insertions(+), 23 deletions(-)
> >>
> >> diff --git a/arch/arm/boot/dts/microchip/aks-cdu.dts b/arch/arm/boot/dts/microchip/aks-cdu.dts
> >> index 52e166c8a365..95a0639c5579 100644
> >> --- a/arch/arm/boot/dts/microchip/aks-cdu.dts
> >> +++ b/arch/arm/boot/dts/microchip/aks-cdu.dts
> >> @@ -98,23 +98,23 @@ rootfs@500000 {
> >>       leds {
> >>               compatible = "gpio-leds";
> >>
> >> -             red {
> >> +             led-red {
> >>                       gpios = <&pioC 10 GPIO_ACTIVE_HIGH>;
> >>                       linux,default-trigger = "none";
> >>               };
> >>
> >> -             green {
> >> +             led-green {
> >>                       gpios = <&pioA 5 GPIO_ACTIVE_LOW>;
> >>                       linux,default-trigger = "none";
> >>                       default-state = "on";
> >>               };
> >>
> >> -             yellow {
> >> +             led-yellow {
> >>                       gpios = <&pioB 20 GPIO_ACTIVE_LOW>;
> >>                       linux,default-trigger = "none";
> >>               };
> >>
> >> -             blue {
> >> +             led-blue {
> >>                       gpios = <&pioB 21 GPIO_ACTIVE_LOW>;
> >>                       linux,default-trigger = "none";
> >>               };
> > 
> > As reported with <20240730-rambling-helping-2f03f5ddee6a@thorsis.com>
> > already, this will probably change sysfs paths and thus might break
> > userspace depending on those paths.  Did you consider adding a label
> > to avoid this?
> > 
> > (Added linux-leds to Cc.)
> > 
> 
> https://elixir.bootlin.com/linux/v6.11-rc3/source/Documentation/devicetree/bindings/leds/common.yaml#L54
> Based on the information provided above: "If omitted, the label is 
> taken from the node name (excluding the unit address)." and "This 
> property is deprecated"
> So, in your opinion what should I do? use function and color?
> My patch reason is to rename the label to avoid the warnings.

I understood the intention, and I appreciate the effort of eliminating
those warnings.  I would add the label property here and use the
previous node name as value.  The deprecation statement makes sense
when introducing new nodes with new LEDs.  In this case there's
already a somewhat deprecated name, but if that should stay stable,
then in my opinion adding the label property is the best choice.

Example, before:

  yellow {
    gpios = < ... >;
    linux,default-trigger = ...;
  };

After:

  led-yellow {
    label = "yellow";
    gpios = < ... >;
    linux,default-trigger = ...;
  };

This way the sysfs path should be /sys/class/leds/yellow before and
after, and the dts warnings be gone, right?

Greets
Alex

> 
> Best Regards,
> Andrei Simion
> 
> > Greets
> > Alex
> > 
> >> diff --git a/arch/arm/boot/dts/microchip/animeo_ip.dts b/arch/arm/boot/dts/microchip/animeo_ip.dts
> >> index 911c8d9ee013..52ac840bcd35 100644
> >> --- a/arch/arm/boot/dts/microchip/animeo_ip.dts
> >> +++ b/arch/arm/boot/dts/microchip/animeo_ip.dts
> >> @@ -146,23 +146,23 @@ ohci: usb@500000 {
> >>       leds {
> >>               compatible = "gpio-leds";
> >>
> >> -             power_green {
> >> +             led-power-green {
> >>                       label = "power_green";
> >>                       gpios = <&pioC 17 GPIO_ACTIVE_HIGH>;
> >>                       linux,default-trigger = "heartbeat";
> >>               };
> >>
> >> -             power_red {
> >> +             led-power-red {
> >>                       label = "power_red";
> >>                       gpios = <&pioA 2 GPIO_ACTIVE_HIGH>;
> >>               };
> >>
> >> -             tx_green {
> >> +             led-tx-green {
> >>                       label = "tx_green";
> >>                       gpios = <&pioC 19 GPIO_ACTIVE_HIGH>;
> >>               };
> >>
> >> -             tx_red {
> >> +             led-tx-red {
> >>                       label = "tx_red";
> >>                       gpios = <&pioC 18 GPIO_ACTIVE_HIGH>;
> >>               };
> >> diff --git a/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts b/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts
> >> index b9a21f9f9a6d..da31b07d6828 100644
> >> --- a/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts
> >> +++ b/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts
> >> @@ -53,17 +53,17 @@ leds {
> >>               pinctrl-0 = <&pinctrl_gpio_leds>;
> >>               status = "okay"; /* Conflict with pwm0. */
> >>
> >> -             red {
> >> +             led-red {
> >>                       label = "red";
> >>                       gpios = <&pioB 11 GPIO_ACTIVE_HIGH>;
> >>               };
> >>
> >> -             green {
> >> +             led-green {
> >>                       label = "green";
> >>                       gpios = <&pioB 12 GPIO_ACTIVE_HIGH>;
> >>               };
> >>
> >> -             blue {
> >> +             led-blue {
> >>                       label = "blue";
> >>                       gpios = <&pioB 13 GPIO_ACTIVE_HIGH>;
> >>                       linux,default-trigger = "heartbeat";
> >> diff --git a/arch/arm/boot/dts/microchip/at91rm9200ek.dts b/arch/arm/boot/dts/microchip/at91rm9200ek.dts
> >> index 3089912dd6be..641d443e6ca9 100644
> >> --- a/arch/arm/boot/dts/microchip/at91rm9200ek.dts
> >> +++ b/arch/arm/boot/dts/microchip/at91rm9200ek.dts
> >> @@ -127,19 +127,19 @@ root@350000  {
> >>       leds {
> >>               compatible = "gpio-leds";
> >>
> >> -             ds2 {
> >> +             led-ds2 {
> >>                       label = "green";
> >>                       gpios = <&pioB 0 GPIO_ACTIVE_LOW>;
> >>                       linux,default-trigger = "mmc0";
> >>               };
> >>
> >> -             ds4 {
> >> +             led-ds4 {
> >>                       label = "yellow";
> >>                       gpios = <&pioB 1 GPIO_ACTIVE_LOW>;
> >>                       linux,default-trigger = "heartbeat";
> >>               };
> >>
> >> -             ds6 {
> >> +             led-ds6 {
> >>                       label = "red";
> >>                       gpios = <&pioB 2 GPIO_ACTIVE_LOW>;
> >>               };
> >> diff --git a/arch/arm/boot/dts/microchip/at91sam9260ek.dts b/arch/arm/boot/dts/microchip/at91sam9260ek.dts
> >> index ed259e2cb853..4933971d0585 100644
> >> --- a/arch/arm/boot/dts/microchip/at91sam9260ek.dts
> >> +++ b/arch/arm/boot/dts/microchip/at91sam9260ek.dts
> >> @@ -174,13 +174,13 @@ eeprom@50 {
> >>       leds {
> >>               compatible = "gpio-leds";
> >>
> >> -             ds1 {
> >> +             led-ds1 {
> >>                       label = "ds1";
> >>                       gpios = <&pioA 9 GPIO_ACTIVE_HIGH>;
> >>                       linux,default-trigger = "heartbeat";
> >>               };
> >>
> >> -             ds5 {
> >> +             led-ds5 {
> >>                       label = "ds5";
> >>                       gpios = <&pioA 6 GPIO_ACTIVE_LOW>;
> >>               };
> >> diff --git a/arch/arm/boot/dts/microchip/at91sam9261ek.dts b/arch/arm/boot/dts/microchip/at91sam9261ek.dts
> >> index 4d9269cc5f32..9c44177db714 100644
> >> --- a/arch/arm/boot/dts/microchip/at91sam9261ek.dts
> >> +++ b/arch/arm/boot/dts/microchip/at91sam9261ek.dts
> >> @@ -192,19 +192,19 @@ watchdog@fffffd40 {
> >>       leds {
> >>               compatible = "gpio-leds";
> >>
> >> -             ds8 {
> >> +             led-ds8 {
> >>                       label = "ds8";
> >>                       gpios = <&pioA 13 GPIO_ACTIVE_LOW>;
> >>                       linux,default-trigger = "none";
> >>               };
> >>
> >> -             ds7 {
> >> +             led-ds7 {
> >>                       label = "ds7";
> >>                       gpios = <&pioA 14 GPIO_ACTIVE_LOW>;
> >>                       linux,default-trigger = "nand-disk";
> >>               };
> >>
> >> -             ds1 {
> >> +             led-ds1 {
> >>                       label = "ds1";
> >>                       gpios = <&pioA 23 GPIO_ACTIVE_LOW>;
> >>                       linux,default-trigger = "heartbeat";
> >> diff --git a/arch/arm/boot/dts/microchip/at91sam9263ek.dts b/arch/arm/boot/dts/microchip/at91sam9263ek.dts
> >> index a8ea36db4c04..cf5434f9449d 100644
> >> --- a/arch/arm/boot/dts/microchip/at91sam9263ek.dts
> >> +++ b/arch/arm/boot/dts/microchip/at91sam9263ek.dts
> >> @@ -219,13 +219,13 @@ &pioA 21 GPIO_ACTIVE_HIGH
> >>       leds {
> >>               compatible = "gpio-leds";
> >>
> >> -             d3 {
> >> +             led-d3 {
> >>                       label = "d3";
> >>                       gpios = <&pioB 7 GPIO_ACTIVE_HIGH>;
> >>                       linux,default-trigger = "heartbeat";
> >>               };
> >>
> >> -             d2 {
> >> +             led-d2 {
> >>                       label = "d2";
> >>                       gpios = <&pioC 29 GPIO_ACTIVE_LOW>;
> >>                       linux,default-trigger = "nand-disk";
> >> diff --git a/arch/arm/boot/dts/microchip/at91sam9g20ek.dts b/arch/arm/boot/dts/microchip/at91sam9g20ek.dts
> >> index 6de7a7cd3c07..1e62fd371ddb 100644
> >> --- a/arch/arm/boot/dts/microchip/at91sam9g20ek.dts
> >> +++ b/arch/arm/boot/dts/microchip/at91sam9g20ek.dts
> >> @@ -14,13 +14,13 @@ / {
> >>       leds {
> >>               compatible = "gpio-leds";
> >>
> >> -             ds1 {
> >> +             led-ds1 {
> >>                       label = "ds1";
> >>                       gpios = <&pioA 9 GPIO_ACTIVE_HIGH>;
> >>                       linux,default-trigger = "heartbeat";
> >>               };
> >>
> >> -             ds5 {
> >> +             led-ds5 {
> >>                       label = "ds5";
> >>                       gpios = <&pioA 6 GPIO_ACTIVE_LOW>;
> >>               };
> >> --
> >> 2.34.1
> >>
> >>
> 

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

* Re: [PATCH 5/5] ARM: dts: microchip: Rename LED sub nodes name
  2024-08-16  9:06       ` Alexander Dahl
@ 2024-08-20  6:32         ` Andrei.Simion
  0 siblings, 0 replies; 20+ messages in thread
From: Andrei.Simion @ 2024-08-20  6:32 UTC (permalink / raw)
  To: claudiu.beznea, Nicolas.Ferre, alexandre.belloni, robh, krzk+dt,
	conor+dt, peda, linux-arm-kernel, linux-kernel, devicetree,
	Cristian.Birsan, linux-leds

On 16.08.2024 12:06, Alexander Dahl wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> Hello Andrei,
> 
> Am Fri, Aug 16, 2024 at 08:52:14AM +0000 schrieb Andrei.Simion@microchip.com:
>> Hello Alex,
>>
>> On 15.08.2024 10:57, Alexander Dahl wrote:
>>> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>>>
>>> Hello Andrei,
>>>> Am Wed, Aug 14, 2024 at 03:26:33PM +0300 schrieb Andrei Simion:
>>>> dtbs_check warnings:
>>>> leds: 'd[0-9]', 'ds[0-9]' do not match any of the regexes:
>>>> '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
>>>> leds: 'red', 'green', 'blue' do not match any of regexes:
>>>> '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
>>>>
>>>> Rename the led sub nodes according to devicetree
>>>> specification and leds-gpio.yaml.
>>>>
>>>> Signed-off-by: Andrei Simion <andrei.simion@microchip.com>
>>>> ---
>>>> Split the bloadted patch into small patches on topics
>>>> based on comments:
>>>> https://lore.kernel.org/linux-arm-kernel/89f51615-0dee-4ab0-ab72-e3c057fee1e7@tuxon.dev/
>>>> ---
>>>>  arch/arm/boot/dts/microchip/aks-cdu.dts        | 8 ++++----
>>>>  arch/arm/boot/dts/microchip/animeo_ip.dts      | 8 ++++----
>>>>  arch/arm/boot/dts/microchip/at91-sam9x60ek.dts | 6 +++---
>>>>  arch/arm/boot/dts/microchip/at91rm9200ek.dts   | 6 +++---
>>>>  arch/arm/boot/dts/microchip/at91sam9260ek.dts  | 4 ++--
>>>>  arch/arm/boot/dts/microchip/at91sam9261ek.dts  | 6 +++---
>>>>  arch/arm/boot/dts/microchip/at91sam9263ek.dts  | 4 ++--
>>>>  arch/arm/boot/dts/microchip/at91sam9g20ek.dts  | 4 ++--
>>>>  8 files changed, 23 insertions(+), 23 deletions(-)
>>>>
>>>> diff --git a/arch/arm/boot/dts/microchip/aks-cdu.dts b/arch/arm/boot/dts/microchip/aks-cdu.dts
>>>> index 52e166c8a365..95a0639c5579 100644
>>>> --- a/arch/arm/boot/dts/microchip/aks-cdu.dts
>>>> +++ b/arch/arm/boot/dts/microchip/aks-cdu.dts
>>>> @@ -98,23 +98,23 @@ rootfs@500000 {
>>>>       leds {
>>>>               compatible = "gpio-leds";
>>>>
>>>> -             red {
>>>> +             led-red {
>>>>                       gpios = <&pioC 10 GPIO_ACTIVE_HIGH>;
>>>>                       linux,default-trigger = "none";
>>>>               };
>>>>
>>>> -             green {
>>>> +             led-green {
>>>>                       gpios = <&pioA 5 GPIO_ACTIVE_LOW>;
>>>>                       linux,default-trigger = "none";
>>>>                       default-state = "on";
>>>>               };
>>>>
>>>> -             yellow {
>>>> +             led-yellow {
>>>>                       gpios = <&pioB 20 GPIO_ACTIVE_LOW>;
>>>>                       linux,default-trigger = "none";
>>>>               };
>>>>
>>>> -             blue {
>>>> +             led-blue {
>>>>                       gpios = <&pioB 21 GPIO_ACTIVE_LOW>;
>>>>                       linux,default-trigger = "none";
>>>>               };
>>>
>>> As reported with <20240730-rambling-helping-2f03f5ddee6a@thorsis.com>
>>> already, this will probably change sysfs paths and thus might break
>>> userspace depending on those paths.  Did you consider adding a label
>>> to avoid this?
>>>
>>> (Added linux-leds to Cc.)
>>>
>>
>> https://elixir.bootlin.com/linux/v6.11-rc3/source/Documentation/devicetree/bindings/leds/common.yaml#L54
>> Based on the information provided above: "If omitted, the label is
>> taken from the node name (excluding the unit address)." and "This
>> property is deprecated"
>> So, in your opinion what should I do? use function and color?
>> My patch reason is to rename the label to avoid the warnings.
> 
> I understood the intention, and I appreciate the effort of eliminating
> those warnings.  I would add the label property here and use the
> previous node name as value.  The deprecation statement makes sense
> when introducing new nodes with new LEDs.  In this case there's
> already a somewhat deprecated name, but if that should stay stable,
> then in my opinion adding the label property is the best choice.
> 
> Example, before:
> 
>   yellow {
>     gpios = < ... >;
>     linux,default-trigger = ...;
>   };
> 
> After:
> 
>   led-yellow {
>     label = "yellow";
>     gpios = < ... >;
>     linux,default-trigger = ...;
>   };
> 
> This way the sysfs path should be /sys/class/leds/yellow before and
> after, and the dts warnings be gone, right?
> 

OK. I will create one more patch for this patch set in the 
next version, and I will add you as Suggested-by.

Best Regards,
Andrei 

> Greets
> Alex
> 
>>
>> Best Regards,
>> Andrei Simion
>>
>>> Greets
>>> Alex
>>>
>>>> diff --git a/arch/arm/boot/dts/microchip/animeo_ip.dts b/arch/arm/boot/dts/microchip/animeo_ip.dts
>>>> index 911c8d9ee013..52ac840bcd35 100644
>>>> --- a/arch/arm/boot/dts/microchip/animeo_ip.dts
>>>> +++ b/arch/arm/boot/dts/microchip/animeo_ip.dts
>>>> @@ -146,23 +146,23 @@ ohci: usb@500000 {
>>>>       leds {
>>>>               compatible = "gpio-leds";
>>>>
>>>> -             power_green {
>>>> +             led-power-green {
>>>>                       label = "power_green";
>>>>                       gpios = <&pioC 17 GPIO_ACTIVE_HIGH>;
>>>>                       linux,default-trigger = "heartbeat";
>>>>               };
>>>>
>>>> -             power_red {
>>>> +             led-power-red {
>>>>                       label = "power_red";
>>>>                       gpios = <&pioA 2 GPIO_ACTIVE_HIGH>;
>>>>               };
>>>>
>>>> -             tx_green {
>>>> +             led-tx-green {
>>>>                       label = "tx_green";
>>>>                       gpios = <&pioC 19 GPIO_ACTIVE_HIGH>;
>>>>               };
>>>>
>>>> -             tx_red {
>>>> +             led-tx-red {
>>>>                       label = "tx_red";
>>>>                       gpios = <&pioC 18 GPIO_ACTIVE_HIGH>;
>>>>               };
>>>> diff --git a/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts b/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts
>>>> index b9a21f9f9a6d..da31b07d6828 100644
>>>> --- a/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts
>>>> +++ b/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts
>>>> @@ -53,17 +53,17 @@ leds {
>>>>               pinctrl-0 = <&pinctrl_gpio_leds>;
>>>>               status = "okay"; /* Conflict with pwm0. */
>>>>
>>>> -             red {
>>>> +             led-red {
>>>>                       label = "red";
>>>>                       gpios = <&pioB 11 GPIO_ACTIVE_HIGH>;
>>>>               };
>>>>
>>>> -             green {
>>>> +             led-green {
>>>>                       label = "green";
>>>>                       gpios = <&pioB 12 GPIO_ACTIVE_HIGH>;
>>>>               };
>>>>
>>>> -             blue {
>>>> +             led-blue {
>>>>                       label = "blue";
>>>>                       gpios = <&pioB 13 GPIO_ACTIVE_HIGH>;
>>>>                       linux,default-trigger = "heartbeat";
>>>> diff --git a/arch/arm/boot/dts/microchip/at91rm9200ek.dts b/arch/arm/boot/dts/microchip/at91rm9200ek.dts
>>>> index 3089912dd6be..641d443e6ca9 100644
>>>> --- a/arch/arm/boot/dts/microchip/at91rm9200ek.dts
>>>> +++ b/arch/arm/boot/dts/microchip/at91rm9200ek.dts
>>>> @@ -127,19 +127,19 @@ root@350000  {
>>>>       leds {
>>>>               compatible = "gpio-leds";
>>>>
>>>> -             ds2 {
>>>> +             led-ds2 {
>>>>                       label = "green";
>>>>                       gpios = <&pioB 0 GPIO_ACTIVE_LOW>;
>>>>                       linux,default-trigger = "mmc0";
>>>>               };
>>>>
>>>> -             ds4 {
>>>> +             led-ds4 {
>>>>                       label = "yellow";
>>>>                       gpios = <&pioB 1 GPIO_ACTIVE_LOW>;
>>>>                       linux,default-trigger = "heartbeat";
>>>>               };
>>>>
>>>> -             ds6 {
>>>> +             led-ds6 {
>>>>                       label = "red";
>>>>                       gpios = <&pioB 2 GPIO_ACTIVE_LOW>;
>>>>               };
>>>> diff --git a/arch/arm/boot/dts/microchip/at91sam9260ek.dts b/arch/arm/boot/dts/microchip/at91sam9260ek.dts
>>>> index ed259e2cb853..4933971d0585 100644
>>>> --- a/arch/arm/boot/dts/microchip/at91sam9260ek.dts
>>>> +++ b/arch/arm/boot/dts/microchip/at91sam9260ek.dts
>>>> @@ -174,13 +174,13 @@ eeprom@50 {
>>>>       leds {
>>>>               compatible = "gpio-leds";
>>>>
>>>> -             ds1 {
>>>> +             led-ds1 {
>>>>                       label = "ds1";
>>>>                       gpios = <&pioA 9 GPIO_ACTIVE_HIGH>;
>>>>                       linux,default-trigger = "heartbeat";
>>>>               };
>>>>
>>>> -             ds5 {
>>>> +             led-ds5 {
>>>>                       label = "ds5";
>>>>                       gpios = <&pioA 6 GPIO_ACTIVE_LOW>;
>>>>               };
>>>> diff --git a/arch/arm/boot/dts/microchip/at91sam9261ek.dts b/arch/arm/boot/dts/microchip/at91sam9261ek.dts
>>>> index 4d9269cc5f32..9c44177db714 100644
>>>> --- a/arch/arm/boot/dts/microchip/at91sam9261ek.dts
>>>> +++ b/arch/arm/boot/dts/microchip/at91sam9261ek.dts
>>>> @@ -192,19 +192,19 @@ watchdog@fffffd40 {
>>>>       leds {
>>>>               compatible = "gpio-leds";
>>>>
>>>> -             ds8 {
>>>> +             led-ds8 {
>>>>                       label = "ds8";
>>>>                       gpios = <&pioA 13 GPIO_ACTIVE_LOW>;
>>>>                       linux,default-trigger = "none";
>>>>               };
>>>>
>>>> -             ds7 {
>>>> +             led-ds7 {
>>>>                       label = "ds7";
>>>>                       gpios = <&pioA 14 GPIO_ACTIVE_LOW>;
>>>>                       linux,default-trigger = "nand-disk";
>>>>               };
>>>>
>>>> -             ds1 {
>>>> +             led-ds1 {
>>>>                       label = "ds1";
>>>>                       gpios = <&pioA 23 GPIO_ACTIVE_LOW>;
>>>>                       linux,default-trigger = "heartbeat";
>>>> diff --git a/arch/arm/boot/dts/microchip/at91sam9263ek.dts b/arch/arm/boot/dts/microchip/at91sam9263ek.dts
>>>> index a8ea36db4c04..cf5434f9449d 100644
>>>> --- a/arch/arm/boot/dts/microchip/at91sam9263ek.dts
>>>> +++ b/arch/arm/boot/dts/microchip/at91sam9263ek.dts
>>>> @@ -219,13 +219,13 @@ &pioA 21 GPIO_ACTIVE_HIGH
>>>>       leds {
>>>>               compatible = "gpio-leds";
>>>>
>>>> -             d3 {
>>>> +             led-d3 {
>>>>                       label = "d3";
>>>>                       gpios = <&pioB 7 GPIO_ACTIVE_HIGH>;
>>>>                       linux,default-trigger = "heartbeat";
>>>>               };
>>>>
>>>> -             d2 {
>>>> +             led-d2 {
>>>>                       label = "d2";
>>>>                       gpios = <&pioC 29 GPIO_ACTIVE_LOW>;
>>>>                       linux,default-trigger = "nand-disk";
>>>> diff --git a/arch/arm/boot/dts/microchip/at91sam9g20ek.dts b/arch/arm/boot/dts/microchip/at91sam9g20ek.dts
>>>> index 6de7a7cd3c07..1e62fd371ddb 100644
>>>> --- a/arch/arm/boot/dts/microchip/at91sam9g20ek.dts
>>>> +++ b/arch/arm/boot/dts/microchip/at91sam9g20ek.dts
>>>> @@ -14,13 +14,13 @@ / {
>>>>       leds {
>>>>               compatible = "gpio-leds";
>>>>
>>>> -             ds1 {
>>>> +             led-ds1 {
>>>>                       label = "ds1";
>>>>                       gpios = <&pioA 9 GPIO_ACTIVE_HIGH>;
>>>>                       linux,default-trigger = "heartbeat";
>>>>               };
>>>>
>>>> -             ds5 {
>>>> +             led-ds5 {
>>>>                       label = "ds5";
>>>>                       gpios = <&pioA 6 GPIO_ACTIVE_LOW>;
>>>>               };
>>>> --
>>>> 2.34.1
>>>>
>>>>
>>


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

* Re: [PATCH 4/5] ARM: dts: microchip: Rename the usb node
  2024-08-14 13:22   ` Krzysztof Kozlowski
@ 2024-09-05 13:51     ` Andrei.Simion
  2024-09-05 13:55       ` Krzysztof Kozlowski
  0 siblings, 1 reply; 20+ messages in thread
From: Andrei.Simion @ 2024-09-05 13:51 UTC (permalink / raw)
  To: krzk, claudiu.beznea, Nicolas.Ferre, alexandre.belloni, robh,
	krzk+dt, conor+dt, peda
  Cc: linux-arm-kernel, linux-kernel, devicetree, Cristian.Birsan

Hi,

On 14.08.2024 16:22, Krzysztof Kozlowski wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> On 14/08/2024 14:26, Andrei Simion wrote:
>> Rename the usb node according to devicetree
>> specification and update the label according
>> with the node-specific standard as: ohci, ehci
>> or gadget.
> 
> Please wrap commit message according to Linux coding style / submission
> process (neither too early nor over the limit):
> https://elixir.bootlin.com/linux/v6.4-rc1/source/Documentation/process/submitting-patches.rst#L597
> 
> ...
> 

In V2 I will wrap the commit message according to Linux coding style / submission process

> 
>>
>> diff --git a/arch/arm/boot/dts/microchip/aks-cdu.dts b/arch/arm/boot/dts/microchip/aks-cdu.dts
>> index 742fcf525e1b..52e166c8a365 100644
>> --- a/arch/arm/boot/dts/microchip/aks-cdu.dts
>> +++ b/arch/arm/boot/dts/microchip/aks-cdu.dts
>> @@ -50,13 +50,13 @@ macb0: ethernet@fffc4000 {
>>                               status = "okay";
>>                       };
>>
>> -                     usb1: gadget@fffa4000 {
>> +                     gadget: usb@fffa4000 {
>>                               atmel,vbus-gpio = <&pioC 15 GPIO_ACTIVE_HIGH>;
>>                               status = "okay";
>>                       };
>>               };
>>
>> -             usb0: ohci@500000 {
>> +             ohci: usb@500000 {
> 
> I don't think that these label renames are correct.
> 

I checked in other dts dtsi (other silicon vendors) the USB node 
and it uses ohci, ehci, gadget, etc as a label.  Also, I verified the
address in the datasheet and they are correctly labeled (meant that 
they were: usb gadget, usb ohci, usb ehci)

From what point of view is it not correct?
I would like to know so I can do it right


>>                       num-ports = <2>;
>>                       status = "okay";
>>               };
>> diff --git a/arch/arm/boot/dts/microchip/animeo_ip.dts b/arch/arm/boot/dts/microchip/animeo_ip.dts
>> index 29936bfbeeb7..911c8d9ee013 100644
>> --- a/arch/arm/boot/dts/microchip/animeo_ip.dts
>> +++ b/arch/arm/boot/dts/microchip/animeo_ip.dts
>> @@ -136,7 +136,7 @@ ubi@60000 {
>>                       };
>>               };
>>
>> -             usb0: ohci@500000 {
>> +             ohci: usb@500000 {
>>                       num-ports = <2>;
>>                       atmel,vbus-gpio = <&pioB 15 GPIO_ACTIVE_LOW>;
>>                       status = "okay";
>> diff --git a/arch/arm/boot/dts/microchip/at91-ariag25.dts b/arch/arm/boot/dts/microchip/at91-ariag25.dts
>> index 713d18f80356..fedcf30a924e 100644
>> --- a/arch/arm/boot/dts/microchip/at91-ariag25.dts
>> +++ b/arch/arm/boot/dts/microchip/at91-ariag25.dts
>> @@ -173,11 +173,11 @@ &usart3 {
>>       status = "okay";
>>  };
>>
>> -&usb0 {
>> +&ohci {
>>       status = "okay";
>>       num-ports = <3>;
>>  };
>>
>> -&usb1 {
>> +&ehci {
>>       status = "okay";
>>  };
> 
> And how now the sorting works? I don't get the point of it. What is
> exactly wrong in the label that justifies the code reshuffling.
> 

The point is to be easy to determine what kind of standard 
represents/implements the usb node.

> BTW, is this some sort of v2? If so, provide changelog and properly
> version your patches.
> 

It was a new series and from now on there will be v2

BR,
Andrei Simion

> Best regards,
> Krzysztof
> 


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

* Re: [PATCH 4/5] ARM: dts: microchip: Rename the usb node
  2024-09-05 13:51     ` Andrei.Simion
@ 2024-09-05 13:55       ` Krzysztof Kozlowski
  0 siblings, 0 replies; 20+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-05 13:55 UTC (permalink / raw)
  To: Andrei.Simion, claudiu.beznea, Nicolas.Ferre, alexandre.belloni,
	robh, krzk+dt, conor+dt, peda
  Cc: linux-arm-kernel, linux-kernel, devicetree, Cristian.Birsan

On 05/09/2024 15:51, Andrei.Simion@microchip.com wrote:
> Hi,
> 
> On 14.08.2024 16:22, Krzysztof Kozlowski wrote:
>> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>>
>> On 14/08/2024 14:26, Andrei Simion wrote:
>>> Rename the usb node according to devicetree
>>> specification and update the label according
>>> with the node-specific standard as: ohci, ehci
>>> or gadget.
>>
>> Please wrap commit message according to Linux coding style / submission
>> process (neither too early nor over the limit):
>> https://elixir.bootlin.com/linux/v6.4-rc1/source/Documentation/process/submitting-patches.rst#L597
>>
>> ...
>>
> 
> In V2 I will wrap the commit message according to Linux coding style / submission process
> 
>>
>>>
>>> diff --git a/arch/arm/boot/dts/microchip/aks-cdu.dts b/arch/arm/boot/dts/microchip/aks-cdu.dts
>>> index 742fcf525e1b..52e166c8a365 100644
>>> --- a/arch/arm/boot/dts/microchip/aks-cdu.dts
>>> +++ b/arch/arm/boot/dts/microchip/aks-cdu.dts
>>> @@ -50,13 +50,13 @@ macb0: ethernet@fffc4000 {
>>>                               status = "okay";
>>>                       };
>>>
>>> -                     usb1: gadget@fffa4000 {
>>> +                     gadget: usb@fffa4000 {
>>>                               atmel,vbus-gpio = <&pioC 15 GPIO_ACTIVE_HIGH>;
>>>                               status = "okay";
>>>                       };
>>>               };
>>>
>>> -             usb0: ohci@500000 {
>>> +             ohci: usb@500000 {
>>
>> I don't think that these label renames are correct.
>>
> 
> I checked in other dts dtsi (other silicon vendors) the USB node 
> and it uses ohci, ehci, gadget, etc as a label.  Also, I verified the
> address in the datasheet and they are correctly labeled (meant that 
> they were: usb gadget, usb ohci, usb ehci)
> 
> From what point of view is it not correct?
> I would like to know so I can do it right

Because:
1. You drop existing information about interface number. That's USB0.
2. You did not provide answer why.


> 
> 
>>>                       num-ports = <2>;
>>>                       status = "okay";
>>>               };
>>> diff --git a/arch/arm/boot/dts/microchip/animeo_ip.dts b/arch/arm/boot/dts/microchip/animeo_ip.dts
>>> index 29936bfbeeb7..911c8d9ee013 100644
>>> --- a/arch/arm/boot/dts/microchip/animeo_ip.dts
>>> +++ b/arch/arm/boot/dts/microchip/animeo_ip.dts
>>> @@ -136,7 +136,7 @@ ubi@60000 {
>>>                       };
>>>               };
>>>
>>> -             usb0: ohci@500000 {
>>> +             ohci: usb@500000 {
>>>                       num-ports = <2>;
>>>                       atmel,vbus-gpio = <&pioB 15 GPIO_ACTIVE_LOW>;
>>>                       status = "okay";
>>> diff --git a/arch/arm/boot/dts/microchip/at91-ariag25.dts b/arch/arm/boot/dts/microchip/at91-ariag25.dts
>>> index 713d18f80356..fedcf30a924e 100644
>>> --- a/arch/arm/boot/dts/microchip/at91-ariag25.dts
>>> +++ b/arch/arm/boot/dts/microchip/at91-ariag25.dts
>>> @@ -173,11 +173,11 @@ &usart3 {
>>>       status = "okay";
>>>  };
>>>
>>> -&usb0 {
>>> +&ohci {
>>>       status = "okay";
>>>       num-ports = <3>;
>>>  };
>>>
>>> -&usb1 {
>>> +&ehci {
>>>       status = "okay";
>>>  };
>>
>> And how now the sorting works? I don't get the point of it. What is
>> exactly wrong in the label that justifies the code reshuffling.
>>
> 
> The point is to be easy to determine what kind of standard 
> represents/implements the usb node.

For one, number of interface is important, e.g. because it matches
schematics or datasheet. For other, maybe the standard. You did not
provide any rationale for this.

Plus you ignored comment about sorting.


Best regards,
Krzysztof


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

end of thread, other threads:[~2024-09-05 13:55 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-14 12:26 [PATCH 0/5] Cosmetic Work for ARM/Microchip (AT91) Andrei Simion
2024-08-14 12:26 ` [PATCH 1/5] ARM: dts: microchip: Clean up spacing and indentation Andrei Simion
2024-08-14 13:20   ` Krzysztof Kozlowski
2024-08-14 13:32     ` Andrei.Simion
2024-08-14 13:57       ` Krzysztof Kozlowski
2024-08-14 14:20         ` Andrei.Simion
2024-08-14 12:26 ` [PATCH 2/5] ARM: dts: microchip: Rename the eeprom nodename Andrei Simion
2024-08-14 12:26 ` [PATCH 3/5] ARM: dts: microchip: Rename the pmic node Andrei Simion
2024-08-14 13:20   ` Krzysztof Kozlowski
2024-08-14 13:58     ` Krzysztof Kozlowski
2024-08-14 12:26 ` [PATCH 4/5] ARM: dts: microchip: Rename the usb node Andrei Simion
2024-08-14 13:22   ` Krzysztof Kozlowski
2024-09-05 13:51     ` Andrei.Simion
2024-09-05 13:55       ` Krzysztof Kozlowski
2024-08-14 12:26 ` [PATCH 5/5] ARM: dts: microchip: Rename LED sub nodes name Andrei Simion
2024-08-14 13:23   ` Krzysztof Kozlowski
2024-08-15  7:57   ` Alexander Dahl
2024-08-16  8:52     ` Andrei.Simion
2024-08-16  9:06       ` Alexander Dahl
2024-08-20  6:32         ` Andrei.Simion

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).