ARM: dts: lpc32xx: remove usb bus and elevate all children nodes
Frank Li
maintainerPATCH 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
@@ -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
Frank Li
maintainerPATCH 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
@@ -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
Frank Li
maintainerPATCH v2 3/5 ARM: dts: lpc3250-phy3250: add at25 required properties
In reply to Frank LiAdd 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
@@ -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
Vladimir Zapolskiy
maintainerRe: [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_DTBwarning:
arch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dtb: at25@0 (atmel,at25): 'pagesize' is a required propertyarch/arm/boot/dts/nxp/lpc/lpc3250-phy3250.dtb: at25@0 (atmel,at25): $nodename: 'anyOf' conditional failed, one must be fixed:Signed-off-by Frank Li <[email protected]>---
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
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
Frank Li
maintainerPATCH v2 4/5 ARM: dts: lpc3250-phy3250: rename nodename at@0 to eeprom@0
In reply to Frank LiRename 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
@@ -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
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_DTBSwarnings: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}$'Signed-off-by Frank Li <[email protected]>---
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
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
Frank Li
maintainerPATCH v2 5/5 ARM: dts: lpc3250-phy3250: remove deprecated at25* property
In reply to Frank LiRemove 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
@@ -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
Vladimir Zapolskiy
maintainerRe: [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.
Signed-off-by Frank Li <[email protected]>---
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
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
Frank Li
maintainerRe: [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.
Signed-off-by Frank Li <[email protected]>---
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@@ -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
Vladimir Zapolskiy
maintainerRe: [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.
Signed-off-by Frank Li <[email protected]>---
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@@ -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
Vladimir Zapolskiy
maintainerHi 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_DTBSwarnings:
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#Signed-off-by Frank Li <[email protected]>---
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@@ -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