Skip to contentSkip to conversation

ARM: dts: lpc32xx: remove usb bus and elevate all children nodes

PATCH In review Frank Li 2 participants 11 messages Nov 14, 2025 – Nov 17, 2025

Subsystems (3)
lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH v2 1/5 ARM: dts: lpc32xx: remove usb bus and elevate all children nodes

Remove usb bus and elevate all children nodes because usb bus is not existed and only group usb devices logically.

Update register address and related full node name.

Fix below CHECK_DTBS warnings:
arm/boot/dts/nxp/lpc/lpc3250-ea3250.dtb: usb (simple-bus): $nodename:0: 'usb' does not match '^([a-z][a-z0-9\\-]+-bus|bus|localbus|soc|axi|ahb|apb)(@.+)?$'
from schema $id: http://devicetree.org/schemas/simple-bus.yaml#

---
change in v2
- elevate usb children node
- fab leave unchange now utils finish discussion.

---
 arch/arm/boot/dts/nxp/lpc/lpc32xx.dtsi | 77 ++++++++++++--------------
 1 file changed, 35 insertions(+), 42 deletions(-)
arch/arm/boot/dts/nxp/lpc/lpc32xx.dtsi +35 -42
index 4dff0d7694322..d6243adbc05bc 100644
@@ -86,51 +86,44 @@ dma: dma-controller@31000000 {
 			#dma-cells = <2>;
 		};
 
-		usb {
-			#address-cells = <1>;
-			#size-cells = <1>;
-			compatible = "simple-bus";
-			ranges = <0x0 0x31020000 0x00001000>;
-
-			/*
-			 * Enable either ohci or usbd (gadget)!
-			 */
-			ohci: usb@0 {
-				compatible = "nxp,ohci-nxp", "usb-ohci";
-				reg = <0x0 0x300>;
-				interrupt-parent = <&sic1>;
-				interrupts = <27 IRQ_TYPE_LEVEL_HIGH>;
-				clocks = <&usbclk LPC32XX_USB_CLK_HOST>;
-				status = "disabled";
-			};
+		/*
+		 * Enable either ohci or usbd (gadget)!
+		 */
+		ohci: usb@31020000 {
+			compatible = "nxp,ohci-nxp", "usb-ohci";
+			reg = <0x31020000 0x300>;
+			interrupt-parent = <&sic1>;
+			interrupts = <27 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&usbclk LPC32XX_USB_CLK_HOST>;
+			status = "disabled";
+		};
 
-			usbd: usbd@0 {
-				compatible = "nxp,lpc3220-udc";
-				reg = <0x0 0x300>;
-				interrupt-parent = <&sic1>;
-				interrupts = <29 IRQ_TYPE_LEVEL_HIGH>,
-					     <30 IRQ_TYPE_LEVEL_HIGH>,
-					     <28 IRQ_TYPE_LEVEL_HIGH>,
-					     <26 IRQ_TYPE_LEVEL_LOW>;
-				clocks = <&usbclk LPC32XX_USB_CLK_DEVICE>;
-				status = "disabled";
-			};
+		usbd: usbd@31020000 {
+			compatible = "nxp,lpc3220-udc";
+			reg = <0x31020000 0x300>;
+			interrupt-parent = <&sic1>;
+			interrupts = <29 IRQ_TYPE_LEVEL_HIGH>,
+				     <30 IRQ_TYPE_LEVEL_HIGH>,
+				     <28 IRQ_TYPE_LEVEL_HIGH>,
+				     <26 IRQ_TYPE_LEVEL_LOW>;
+			clocks = <&usbclk LPC32XX_USB_CLK_DEVICE>;
+			status = "disabled";
+		};
 
-			i2cusb: i2c@300 {
-				compatible = "nxp,pnx-i2c";
-				reg = <0x300 0x100>;
-				interrupt-parent = <&sic1>;
-				interrupts = <31 IRQ_TYPE_LEVEL_HIGH>;
-				clocks = <&usbclk LPC32XX_USB_CLK_I2C>;
-				#address-cells = <1>;
-				#size-cells = <0>;
-			};
+		i2cusb: i2c@31020300 {
+			compatible = "nxp,pnx-i2c";
+			reg = <0x31020300 0x100>;
+			interrupt-parent = <&sic1>;
+			interrupts = <31 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&usbclk LPC32XX_USB_CLK_I2C>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+		};
 
-			usbclk: clock-controller@f00 {
-				compatible = "nxp,lpc3220-usb-clk";
-				reg = <0xf00 0x100>;
-				#clock-cells = <1>;
-			};
+		usbclk: clock-controller@31020f00 {
+			compatible = "nxp,lpc3220-usb-clk";
+			reg = <0x31020f00 0x100>;
+			#clock-cells = <1>;
 		};
 
 		clcd: clcd@31040000 {
Signature · 1 line
2.34.1
author maintainer
#1 lore raw

PATCH v2 2/5 ARM: dts: lpc3250-ea3250: add key- prefix for gpio-keys

Add key- prefix to fix below CHECK_DTB warning:
arch/arm/boot/dts/nxp/lpc/lpc3250-ea3250.dtb: gpio-keys (gpio-keys): 'joy0', ... do not match any of the regexes: '^(button|...)$', 'pinctrl-[0-9]+

---
Changes in v2
- add Reviewed-by: Vladimir Zapolskiy <[email protected]>

---
 arch/arm/boot/dts/nxp/lpc/lpc3250-ea3250.dts | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
arch/arm/boot/dts/nxp/lpc/lpc3250-ea3250.dts +9 -9
index 63c6f17bb7c9f..837a3cfa8e7c8 100644
@@ -27,55 +27,55 @@ button {
 			gpios = <&gpio 4 1 0>; /* GPI_P3 1 */
 		};
 
-		key1 {
+		key-1 {
 			label = "KEY1";
 			linux,code = <1>;
 			gpios = <&pca9532 0 0>;
 		};
 
-		key2 {
+		key-2 {
 			label = "KEY2";
 			linux,code = <2>;
 			gpios = <&pca9532 1 0>;
 		};
 
-		key3 {
+		key-3 {
 			label = "KEY3";
 			linux,code = <3>;
 			gpios = <&pca9532 2 0>;
 		};
 
-		key4 {
+		key-4 {
 			label = "KEY4";
 			linux,code = <4>;
 			gpios = <&pca9532 3 0>;
 		};
 
-		joy0 {
+		key-joy0 {
 			label = "Joystick Key 0";
 			linux,code = <10>;
 			gpios = <&gpio 2 0 0>; /* P2.0 */
 		};
 
-		joy1 {
+		key-joy1 {
 			label = "Joystick Key 1";
 			linux,code = <11>;
 			gpios = <&gpio 2 1 0>; /* P2.1 */
 		};
 
-		joy2 {
+		key-joy2 {
 			label = "Joystick Key 2";
 			linux,code = <12>;
 			gpios = <&gpio 2 2 0>; /* P2.2 */
 		};
 
-		joy3 {
+		key-joy3 {
 			label = "Joystick Key 3";
 			linux,code = <13>;
 			gpios = <&gpio 2 3 0>; /* P2.3 */
 		};
 
-		joy4 {
+		key-joy4 {
 			label = "Joystick Key 4";
 			linux,code = <14>;
 			gpios = <&gpio 2 4 0>; /* P2.4 */
Signature · 1 line
2.34.1
author maintainer
#2 lore raw

PATCH v2 3/5 ARM: dts: lpc3250-phy3250: add at25 required properties

In reply to Frank Li

Add at25 required properties (size, address-width and pagesize), which duplicate deprecated properties.

Fix below CHECK_DTB warning:
arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dtb: at25@0 (atmel,at25): 'pagesize' is a required property arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dtb: at25@0 (atmel,at25): $nodename: 'anyOf' conditional failed, one must be fixed:

---
change in v2
- move node name change to new patch

---
 arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dts +4 -0
index 21a6d0bca1e8a..732d590f6cfdf 100644
@@ -216,6 +216,10 @@ eeprom: at25@0 {
 		at25,byte-len = <0x8000>;
 		at25,addr-mode = <2>;
 		at25,page-size = <64>;
+
+		size = <0x8000>;
+		address-width = <16>;
+		pagesize = <64>;
 	};
 };
 
Signature · 1 line
2.34.1
#3 lore raw

Re: [PATCH v2 3/5] ARM: dts: lpc3250-phy3250: add at25 required properties

Hi Frank.

Quoted 20 lines · Frank Li

Add at25 required properties (size, address-width and pagesize), which duplicate deprecated properties.

Fix below CHECK_DTB warning:
arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dtb: at25@0 (atmel,at25): 'pagesize' is a required property arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dtb: at25@0 (atmel,at25): $nodename: 'anyOf' conditional failed, one must be fixed:

---
change in v2
- move node name change to new patch

---
  arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dts | 4 ++++
  1 file changed, 4 insertions(+)
arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dts +0 -0
index 21a6d0bca1e8a..732d590f6cfdf 100644

arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dts eeprom: at25@0 { · line 225

Quoted 10 lines
arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dts +4 -0
@@ -216,6 +216,10 @@ eeprom: at25@0 {
  		at25,byte-len = <0x8000>;
  		at25,addr-mode = <2>;
  		at25,page-size = <64>;
+
+		size = <0x8000>;
+		address-width = <16>;
+		pagesize = <64>;
  	};
  };
 

I see that I was imprecise in my ask, please replace (remove) the deprecated properties with the new ones added. There is no reason to keep both, forward compatibility should not be supported.

Sorry for any caused confusion.

Signature · 2 lines
Best wishes,
Vladimir
author maintainer
#4 lore raw

PATCH v2 4/5 ARM: dts: lpc3250-phy3250: rename nodename at@0 to eeprom@0

In reply to Frank Li

Rename nodename at@0 to eeprom@0 to fix below CHECK_DTBS warnings:
arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dtb: at25@0 (atmel,at25): $nodename: 'anyOf' conditional failed, one must be fixed:

	'at25@0' does not match '^eeprom@[0-9a-f]{1,2}$'
	'at25@0' does not match '^fram@[0-9a-f]{1,2}$'

---
change in v2
- new patch

---
 arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dts +1 -1
index 732d590f6cfdf..15463a96938cc 100644
@@ -200,7 +200,7 @@ &ssp0 {
 	cs-gpios = <&gpio 3 5 0>;
 	status = "okay";
 
-	eeprom: at25@0 {
+	eeprom: eeprom@0 {
 		compatible = "atmel,at25";
 		reg = <0>;
 		spi-max-frequency = <5000000>;
Signature · 1 line
2.34.1
maintainer Reviewed-by on v2 4/5
#5 lore raw

Re: [PATCH v2 4/5] ARM: dts: lpc3250-phy3250: rename nodename at@0 to eeprom@0

Quoted 18 lines · Frank Li

Rename nodename at@0 to eeprom@0 to fix below CHECK_DTBS warnings:
arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dtb: at25@0 (atmel,at25): $nodename: 'anyOf' conditional failed, one must be fixed:

	'at25@0' does not match '^eeprom@[0-9a-f]{1,2}$'
	'at25@0' does not match '^fram@[0-9a-f]{1,2}$'

---
change in v2
- new patch

---
  arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dts | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dts +0 -0
index 732d590f6cfdf..15463a96938cc 100644

arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dts &ssp0 { · line 206

Quoted 8 lines
arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dts +1 -1
@@ -200,7 +200,7 @@ &ssp0 {
  	cs-gpios = <&gpio 3 5 0>;
  	status = "okay";
 
-	eeprom: at25@0 {
+	eeprom: eeprom@0 {
  		compatible = "atmel,at25";
  		reg = <0>;
  		spi-max-frequency = <5000000>;
Signature · 2 lines
Best wishes,
Vladimir
author maintainer
#6 lore raw

PATCH v2 5/5 ARM: dts: lpc3250-phy3250: remove deprecated at25* property

In reply to Frank Li

Remove duplicated deprecated at25* property because the same common property already were added.

---
changes in v2
- new patch

---
 arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dts | 4 ----
 1 file changed, 4 deletions(-)
arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dts +0 -4
index 15463a96938cc..0f96ea0337a1f 100644
@@ -213,10 +213,6 @@ eeprom: eeprom@0 {
 		pl022,wait-state = <0>;
 		pl022,duplex = <0>;
 
-		at25,byte-len = <0x8000>;
-		at25,addr-mode = <2>;
-		at25,page-size = <64>;
-
 		size = <0x8000>;
 		address-width = <16>;
 		pagesize = <64>;
Signature · 1 line
2.34.1
#7 lore raw

Re: [PATCH v2 5/5] ARM: dts: lpc3250-phy3250: remove deprecated at25* property

Quoted 16 lines · Frank Li

Remove duplicated deprecated at25* property because the same common property already were added.

---
changes in v2
- new patch

---
  arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dts | 4 ----
  1 file changed, 4 deletions(-)
arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dts +0 -0
index 15463a96938cc..0f96ea0337a1f 100644

arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dts eeprom: eeprom@0 { · line 218

Quoted 10 lines
arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dts +0 -4
@@ -213,10 +213,6 @@ eeprom: eeprom@0 {
  		pl022,wait-state = <0>;
  		pl022,duplex = <0>;
 
-		at25,byte-len = <0x8000>;
-		at25,addr-mode = <2>;
-		at25,page-size = <64>;
-
  		size = <0x8000>;
  		address-width = <16>;
  		pagesize = <64>;

Just squash this change with the 3/5 from the series, or I can do it on patch application.

My ask about splitting the changes was about a separation of the 4/5 change, and it was done as expected, thank you.

--
Best wishes,
Vladimir

author maintainer
#8 lore raw

Re: [PATCH v2 5/5] ARM: dts: lpc3250-phy3250: remove deprecated at25* property

Quoted 21 lines · Vladimir Zapolskiy
Quoted 20 lines · Frank Li

Remove duplicated deprecated at25* property because the same common property already were added.

---
changes in v2
- new patch

---
  arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dts | 4 ----
  1 file changed, 4 deletions(-)
arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dts +0 -2
index 15463a96938cc..0f96ea0337a1f 100644
@@ -213,10 +213,6 @@ eeprom: eeprom@0 {
  		pl022,wait-state = <0>;
  		pl022,duplex = <0>;
-		at25,byte-len = <0x8000>;
-		at25,addr-mode = <2>;
Quoted 8 lines

arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dts eeprom: eeprom@0 { · line 218

Quoted 5 lines
arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dts +0 -2
-		at25,page-size = <64>;
-
  		size = <0x8000>;
  		address-width = <16>;
  		pagesize = <64>;

Just squash this change with the 3/5 from the series, or I can do it on patch application.

Yes, you can squash when apply.

Frank

Quoted 7 lines

My ask about splitting the changes was about a separation of the 4/5 change, and it was done as expected, thank you.

--
Best wishes,
Vladimir

#9 lore raw

Re: [PATCH v2 5/5] ARM: dts: lpc3250-phy3250: remove deprecated at25* property

Quoted 31 lines · Frank Li
Quoted 21 lines · Vladimir Zapolskiy
Quoted 20 lines · Frank Li

Remove duplicated deprecated at25* property because the same common property already were added.

---
changes in v2
- new patch

---
   arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dts | 4 ----
   1 file changed, 4 deletions(-)
arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dts +0 -2
index 15463a96938cc..0f96ea0337a1f 100644
@@ -213,10 +213,6 @@ eeprom: eeprom@0 {
   		pl022,wait-state = <0>;
   		pl022,duplex = <0>;
-		at25,byte-len = <0x8000>;
-		at25,addr-mode = <2>;
Quoted 8 lines

arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dts eeprom: eeprom@0 { · line 218

Quoted 5 lines
arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dts +0 -2
-		at25,page-size = <64>;
-
   		size = <0x8000>;
   		address-width = <16>;
   		pagesize = <64>;

Just squash this change with the 3/5 from the series, or I can do it on patch application.

Quoted 2 lines

Yes, you can squash when apply.

Good, no need to resend these changes for you, but I would skip sending a PR for v6.19, the patches will be targeted for v6.20.

Quoted 3 lines
Quoted 3 lines

My ask about splitting the changes was about a separation of the 4/5 change, and it was done as expected, thank you.

Signature · 2 lines
Best wishes,
Vladimir
#10 lore raw
In reply to Frank Li

Hi Frank.

Quoted 99 lines · Frank Li

Remove usb bus and elevate all children nodes because usb bus is not existed and only group usb devices logically.

Update register address and related full node name.

Fix below CHECK_DTBS warnings:
arm/boot/dts/nxp/lpc/lpc3250-ea3250.dtb: usb (simple-bus): $nodename:0: 'usb' does not match '^([a-z][a-z0-9\\-]+-bus|bus|localbus|soc|axi|ahb|apb)(@.+)?$'
from schema $id: http://devicetree.org/schemas/simple-bus.yaml#

---
change in v2
- elevate usb children node
- fab leave unchange now utils finish discussion.

---
  arch/arm/boot/dts/nxp/lpc/lpc32xx.dtsi | 77 ++++++++++++--------------
  1 file changed, 35 insertions(+), 42 deletions(-)
arch/arm/boot/dts/nxp/lpc/lpc32xx.dtsi +31 -39
index 4dff0d7694322..d6243adbc05bc 100644
@@ -86,51 +86,44 @@ dma: dma-controller@31000000 {
  			#dma-cells = <2>;
  		};
 
-		usb {
-			#address-cells = <1>;
-			#size-cells = <1>;
-			compatible = "simple-bus";
-			ranges = <0x0 0x31020000 0x00001000>;
-
-			/*
-			 * Enable either ohci or usbd (gadget)!
-			 */
-			ohci: usb@0 {
-				compatible = "nxp,ohci-nxp", "usb-ohci";
-				reg = <0x0 0x300>;
-				interrupt-parent = <&sic1>;
-				interrupts = <27 IRQ_TYPE_LEVEL_HIGH>;
-				clocks = <&usbclk LPC32XX_USB_CLK_HOST>;
-				status = "disabled";
-			};
+		/*
+		 * Enable either ohci or usbd (gadget)!
+		 */
+		ohci: usb@31020000 {
+			compatible = "nxp,ohci-nxp", "usb-ohci";
+			reg = <0x31020000 0x300>;
+			interrupt-parent = <&sic1>;
+			interrupts = <27 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&usbclk LPC32XX_USB_CLK_HOST>;
+			status = "disabled";
+		};
 
-			usbd: usbd@0 {
-				compatible = "nxp,lpc3220-udc";
-				reg = <0x0 0x300>;
-				interrupt-parent = <&sic1>;
-				interrupts = <29 IRQ_TYPE_LEVEL_HIGH>,
-					     <30 IRQ_TYPE_LEVEL_HIGH>,
-					     <28 IRQ_TYPE_LEVEL_HIGH>,
-					     <26 IRQ_TYPE_LEVEL_LOW>;
-				clocks = <&usbclk LPC32XX_USB_CLK_DEVICE>;
-				status = "disabled";
-			};
+		usbd: usbd@31020000 {
+			compatible = "nxp,lpc3220-udc";
+			reg = <0x31020000 0x300>;
+			interrupt-parent = <&sic1>;
+			interrupts = <29 IRQ_TYPE_LEVEL_HIGH>,
+				     <30 IRQ_TYPE_LEVEL_HIGH>,
+				     <28 IRQ_TYPE_LEVEL_HIGH>,
+				     <26 IRQ_TYPE_LEVEL_LOW>;
+			clocks = <&usbclk LPC32XX_USB_CLK_DEVICE>;
+			status = "disabled";
+		};
 
-			i2cusb: i2c@300 {
-				compatible = "nxp,pnx-i2c";
-				reg = <0x300 0x100>;
-				interrupt-parent = <&sic1>;
-				interrupts = <31 IRQ_TYPE_LEVEL_HIGH>;
-				clocks = <&usbclk LPC32XX_USB_CLK_I2C>;
-				#address-cells = <1>;
-				#size-cells = <0>;
-			};
+		i2cusb: i2c@31020300 {
+			compatible = "nxp,pnx-i2c";
+			reg = <0x31020300 0x100>;
+			interrupt-parent = <&sic1>;
+			interrupts = <31 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&usbclk LPC32XX_USB_CLK_I2C>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+		};
 
-			usbclk: clock-controller@f00 {
-				compatible = "nxp,lpc3220-usb-clk";

arch/arm/boot/dts/nxp/lpc/lpc32xx.dtsi dma: dma-controller@31000000 { · line 129

Quoted 10 lines
arch/arm/boot/dts/nxp/lpc/lpc32xx.dtsi +4 -3
-				reg = <0xf00 0x100>;
-				#clock-cells = <1>;
-			};
+		usbclk: clock-controller@31020f00 {
+			compatible = "nxp,lpc3220-usb-clk";
+			reg = <0x31020f00 0x100>;
+			#clock-cells = <1>;
  		};
 
  		clcd: clcd@31040000 {

As for me the change looks good, but I need some time to do a regression testing, I'll do it over the weekend.

Thank you for the contribution!

Signature · 2 lines
Best wishes,
Vladimir