ARM: dts: gemini: Fix some minor DTS issues
cover ARM: dts: gemini: Fix some minor DTS issues
We have recommended practices for node naming and we have some keys that could be better represented. Some compatible top-level should be updated to the recommendation from the bindings. This small series fixes up these minor issues.
---
Linus Walleij (4):
ARM: dts: gemini: Fix switch node names in the DIR-685
ARM: dts: gemini: Fix wiligear compatible strings
ARM: dts: gemini: Map reset keys to KEY_RESTART
ARM: dts: gemini: Fix switch node names on Vitesse switches
arch/arm/boot/dts/gemini/gemini-dlink-dir-685.dts | 30 +++++++++++------------ arch/arm/boot/dts/gemini/gemini-dlink-dns-313.dts | 4 +-- arch/arm/boot/dts/gemini/gemini-sl93512r.dts | 16 ++++++------ arch/arm/boot/dts/gemini/gemini-sq201.dts | 16 ++++++------ arch/arm/boot/dts/gemini/gemini-wbd111.dts | 6 ++--- arch/arm/boot/dts/gemini/gemini-wbd222.dts | 6 ++--- 6 files changed, 39 insertions(+), 39 deletions(-)
---
base-commit: 6613476e225e090cc9aad49be7fa504e290dd33d
change-id: 20240209-gemini-dts-3efe33dec69e
Best regards,
Signature · 1 line
Linus Walleij <[email protected]>
PATCH 1/4 ARM: dts: gemini: Fix switch node names in the DIR-685
The formally correct node names have "ethernet-*" prefix on switch, ports, port and phy, fix it up.
--- arch/arm/boot/dts/gemini/gemini-dlink-dir-685.dts | 26 +++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-)
arch/arm/boot/dts/gemini/gemini-dlink-dir-685.dts +13 -13
@@ -187,7 +187,7 @@ touchkeys@26 { }; /* This is a RealTek RTL8366RB switch and PHY using SMI over GPIO */ - switch { + ethernet-switch { compatible = "realtek,rtl8366rb"; /* 22 = MDIO (has input reads), 21 = MDC (clock, output only) */ mdc-gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
@@ -204,36 +204,36 @@ switch_intc: interrupt-controller { #interrupt-cells = <1>; }; - ports { + ethernet-ports { #address-cells = <1>; #size-cells = <0>; - port@0 { + ethernet-port@0 { reg = <0>; label = "lan0"; phy-handle = <&phy0>; }; - port@1 { + ethernet-port@1 { reg = <1>; label = "lan1"; phy-handle = <&phy1>; }; - port@2 { + ethernet-port@2 { reg = <2>; label = "lan2"; phy-handle = <&phy2>; }; - port@3 { + ethernet-port@3 { reg = <3>; label = "lan3"; phy-handle = <&phy3>; }; - port@4 { + ethernet-port@4 { reg = <4>; label = "wan"; phy-handle = <&phy4>; }; - rtl8366rb_cpu_port: port@5 { + rtl8366rb_cpu_port: ethernet-port@5 { reg = <5>; label = "cpu"; ethernet = <&gmac0>;
@@ -252,27 +252,27 @@ mdio { #address-cells = <1>; #size-cells = <0>; - phy0: phy@0 { + phy0: ethernet-phy@0 { reg = <0>; interrupt-parent = <&switch_intc>; interrupts = <0>; }; - phy1: phy@1 { + phy1: ethernet-phy@1 { reg = <1>; interrupt-parent = <&switch_intc>; interrupts = <1>; }; - phy2: phy@2 { + phy2: ethernet-phy@2 { reg = <2>; interrupt-parent = <&switch_intc>; interrupts = <2>; }; - phy3: phy@3 { + phy3: ethernet-phy@3 { reg = <3>; interrupt-parent = <&switch_intc>; interrupts = <3>; }; - phy4: phy@4 { + phy4: ethernet-phy@4 { reg = <4>; interrupt-parent = <&switch_intc>; interrupts = <12>;
Signature · 1 line
2.34.1
PATCH 2/4 ARM: dts: gemini: Fix wiligear compatible strings
In reply to Linus WalleijThese board strings were deprecated in the bindings ages ago, switch the boards over to the real names.
--- arch/arm/boot/dts/gemini/gemini-wbd111.dts | 2 +- arch/arm/boot/dts/gemini/gemini-wbd222.dts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/gemini/gemini-wbd111.dts +1 -1
@@ -10,7 +10,7 @@ / { model = "Wiliboard WBD-111"; - compatible = "wiliboard,wbd111", "cortina,gemini"; + compatible = "wiligear,wiliboard-wbd111", "cortina,gemini"; #address-cells = <1>; #size-cells = <1>;
arch/arm/boot/dts/gemini/gemini-wbd222.dts +1 -1
@@ -10,7 +10,7 @@ / { model = "Wiliboard WBD-222"; - compatible = "wiliboard,wbd222", "cortina,gemini"; + compatible = "wiligear,wiliboard-wbd222", "cortina,gemini"; #address-cells = <1>; #size-cells = <1>;
Signature · 1 line
2.34.1
PATCH 3/4 ARM: dts: gemini: Map reset keys to KEY_RESTART
In reply to Linus WalleijThis maps the misc "reset", "setup" and "facory reset" keys to the only key a standard userspace is likely to understand: KEY_RESTART. On OpenWrt this will simply restart the system under controlled forms.
--- arch/arm/boot/dts/gemini/gemini-dlink-dir-685.dts | 4 ++-- arch/arm/boot/dts/gemini/gemini-dlink-dns-313.dts | 4 ++-- arch/arm/boot/dts/gemini/gemini-sl93512r.dts | 2 +- arch/arm/boot/dts/gemini/gemini-sq201.dts | 2 +- arch/arm/boot/dts/gemini/gemini-wbd111.dts | 4 ++-- arch/arm/boot/dts/gemini/gemini-wbd222.dts | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-)
arch/arm/boot/dts/gemini/gemini-dlink-dir-685.dts +2 -2
@@ -27,10 +27,10 @@ chosen { gpio_keys { compatible = "gpio-keys"; - button-esc { + button-reset { debounce-interval = <100>; wakeup-source; - linux,code = <KEY_ESC>; + linux,code = <KEY_RESTART>; label = "reset"; /* Collides with LPC_LAD[0], UART DCD, SSP 97RST */ gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
arch/arm/boot/dts/gemini/gemini-dlink-dns-313.dts +2 -2
@@ -33,10 +33,10 @@ chosen { gpio_keys { compatible = "gpio-keys"; - button-esc { + button-reset { debounce-interval = <100>; wakeup-source; - linux,code = <KEY_ESC>; + linux,code = <KEY_RESTART>; label = "reset"; gpios = <&gpio1 31 GPIO_ACTIVE_LOW>; };
arch/arm/boot/dts/gemini/gemini-sl93512r.dts +1 -1
@@ -43,7 +43,7 @@ button-wps { button-setup { debounce-interval = <50>; wakeup-source; - linux,code = <KEY_SETUP>; + linux,code = <KEY_RESTART>; label = "factory reset"; /* Conflict with NAND flash */ gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
arch/arm/boot/dts/gemini/gemini-sq201.dts +1 -1
@@ -30,7 +30,7 @@ gpio_keys { button-setup { debounce-interval = <100>; wakeup-source; - linux,code = <KEY_SETUP>; + linux,code = <KEY_RESTART>; label = "factory reset"; /* Conflict with NAND flash */ gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
arch/arm/boot/dts/gemini/gemini-wbd111.dts +2 -2
@@ -28,10 +28,10 @@ chosen { gpio_keys { compatible = "gpio-keys"; - button-setup { + button-reset { debounce-interval = <100>; wakeup-source; - linux,code = <KEY_SETUP>; + linux,code = <KEY_RESTART>; label = "reset"; /* Conflict with ICE */ gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
arch/arm/boot/dts/gemini/gemini-wbd222.dts +2 -2
@@ -27,10 +27,10 @@ chosen { gpio_keys { compatible = "gpio-keys"; - button-setup { + button-reset { debounce-interval = <100>; wakeup-source; - linux,code = <KEY_SETUP>; + linux,code = <KEY_RESTART>; label = "reset"; /* Conflict with ICE */ gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
Signature · 1 line
2.34.1
PATCH 4/4 ARM: dts: gemini: Fix switch node names on Vitesse switches
In reply to Linus WalleijThe formally correct node names have "ethernet-*" prefix on switch, ports and port, fix it up.
--- arch/arm/boot/dts/gemini/gemini-sl93512r.dts | 14 +++++++------- arch/arm/boot/dts/gemini/gemini-sq201.dts | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-)
arch/arm/boot/dts/gemini/gemini-sl93512r.dts +7 -7
@@ -93,7 +93,7 @@ spi { cs-gpios = <&gpio1 31 GPIO_ACTIVE_HIGH>; num-chipselects = <1>; - switch@0 { + ethernet-switch@0 { compatible = "vitesse,vsc7385"; reg = <0>; /* Specified for 2.5 MHz or below */
@@ -101,27 +101,27 @@ switch@0 { gpio-controller; #gpio-cells = <2>; - ports { + ethernet-ports { #address-cells = <1>; #size-cells = <0>; - port@0 { + ethernet-port@0 { reg = <0>; label = "lan1"; }; - port@1 { + ethernet-port@1 { reg = <1>; label = "lan2"; }; - port@2 { + ethernet-port@2 { reg = <2>; label = "lan3"; }; - port@3 { + ethernet-port@3 { reg = <3>; label = "lan4"; }; - vsc: port@6 { + vsc: ethernet-port@6 { reg = <6>; label = "cpu"; ethernet = <&gmac1>;
arch/arm/boot/dts/gemini/gemini-sq201.dts +7 -7
@@ -78,7 +78,7 @@ spi { cs-gpios = <&gpio1 31 GPIO_ACTIVE_HIGH>; num-chipselects = <1>; - switch@0 { + ethernet-switch@0 { compatible = "vitesse,vsc7395"; reg = <0>; /* Specified for 2.5 MHz or below */
@@ -86,27 +86,27 @@ switch@0 { gpio-controller; #gpio-cells = <2>; - ports { + ethernet-ports { #address-cells = <1>; #size-cells = <0>; - port@0 { + ethernet-port@0 { reg = <0>; label = "lan1"; }; - port@1 { + ethernet-port@1 { reg = <1>; label = "lan2"; }; - port@2 { + ethernet-port@2 { reg = <2>; label = "lan3"; }; - port@3 { + ethernet-port@3 { reg = <3>; label = "lan4"; }; - vsc: port@6 { + vsc: ethernet-port@6 { reg = <6>; label = "cpu"; ethernet = <&gmac1>;
Signature · 1 line
2.34.1