mips: dts: align LED node names with dtschema
Subsystems (5)
PATCH 1/2 mips: dts: align LED node names with dtschema
From: Arınç ÜNAL <[email protected]>
The node names should be generic and DT schema expects certain pattern:
mt7621-gnubee-gb-pc1.dtb: gpio-leds: 'power', 'system' do not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
--- .../dts/cavium-octeon/dlink_dsr-1000n.dts | 10 ++++----- .../boot/dts/cavium-octeon/dlink_dsr-500n.dts | 6 ++--- arch/mips/boot/dts/ingenic/ci20.dts | 8 +++---- arch/mips/boot/dts/pic32/pic32mzda_sk.dts | 6 ++--- .../boot/dts/qca/ar9132_tl_wr1043nd_v1.dts | 8 +++---- .../mips/boot/dts/qca/ar9331_dragino_ms14.dts | 8 +++---- arch/mips/boot/dts/qca/ar9331_omega.dts | 2 +- arch/mips/boot/dts/qca/ar9331_tl_mr3020.dts | 8 +++---- .../ralink/gardena_smart_gateway_mt7688.dts | 22 +++++++++---------- .../boot/dts/ralink/mt7621-gnubee-gb-pc1.dts | 4 ++-- .../boot/dts/ralink/mt7621-gnubee-gb-pc2.dts | 12 +++++----- 11 files changed, 47 insertions(+), 47 deletions(-)
arch/mips/boot/dts/cavium-octeon/dlink_dsr-1000n.dts +5 -5
@@ -20,27 +20,27 @@ uart0: serial@1180000000800 { leds { compatible = "gpio-leds"; - usb1 { + led-usb1 { label = "usb1"; gpios = <&gpio 9 GPIO_ACTIVE_LOW>; }; - usb2 { + led-usb2 { label = "usb2"; gpios = <&gpio 10 GPIO_ACTIVE_LOW>; }; - wps { + led-wps { label = "wps"; gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; - wireless1 { + led-wireless1 { label = "5g"; gpios = <&gpio 17 GPIO_ACTIVE_LOW>; }; - wireless2 { + led-wireless2 { label = "2.4g"; gpios = <&gpio 18 GPIO_ACTIVE_LOW>; };
arch/mips/boot/dts/cavium-octeon/dlink_dsr-500n.dts +3 -3
@@ -21,15 +21,15 @@ uart0: serial@1180000000800 { leds { compatible = "gpio-leds"; - usb { + led-usb { gpios = <&gpio 9 GPIO_ACTIVE_LOW>; }; - wps { + led-wps { gpios = <&gpio 11 GPIO_ACTIVE_LOW>; }; - wireless { + led-wireless { label = "2.4g"; gpios = <&gpio 18 GPIO_ACTIVE_LOW>; };
arch/mips/boot/dts/ingenic/ci20.dts +4 -4
@@ -42,25 +42,25 @@ switch { leds { compatible = "gpio-leds"; - led0 { + led-0 { label = "ci20:red:led0"; gpios = <&gpc 3 GPIO_ACTIVE_HIGH>; linux,default-trigger = "none"; }; - led1 { + led-1 { label = "ci20:red:led1"; gpios = <&gpc 2 GPIO_ACTIVE_HIGH>; linux,default-trigger = "nand-disk"; }; - led2 { + led-2 { label = "ci20:red:led2"; gpios = <&gpc 1 GPIO_ACTIVE_HIGH>; linux,default-trigger = "cpu1"; }; - led3 { + led-3 { label = "ci20:red:led3"; gpios = <&gpc 0 GPIO_ACTIVE_HIGH>; linux,default-trigger = "cpu0";
arch/mips/boot/dts/pic32/pic32mzda_sk.dts +3 -3
@@ -28,19 +28,19 @@ leds0 { pinctrl-names = "default"; pinctrl-0 = <&user_leds_s0>; - led@1 { + led-1 { label = "pic32mzda_sk:red:led1"; gpios = <&gpio7 0 GPIO_ACTIVE_HIGH>; linux,default-trigger = "heartbeat"; }; - led@2 { + led-2 { label = "pic32mzda_sk:yellow:led2"; gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>; linux,default-trigger = "mmc0"; }; - led@3 { + led-3 { label = "pic32mzda_sk:green:led3"; gpios = <&gpio7 2 GPIO_ACTIVE_HIGH>; default-state = "on";
arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts +4 -4
@@ -41,23 +41,23 @@ button-1 { leds { compatible = "gpio-leds"; - led@0 { + led-0 { label = "tp-link:green:usb"; gpios = <&gpio 1 GPIO_ACTIVE_LOW>; }; - led@1 { + led-1 { label = "tp-link:green:system"; gpios = <&gpio 2 GPIO_ACTIVE_LOW>; linux,default-trigger = "heartbeat"; }; - led@2 { + led-2 { label = "tp-link:green:qss"; gpios = <&gpio 5 GPIO_ACTIVE_HIGH>; }; - led@3 { + led-3 { label = "tp-link:green:wlan"; gpios = <&gpio 9 GPIO_ACTIVE_LOW>; };
arch/mips/boot/dts/qca/ar9331_dragino_ms14.dts +4 -4
@@ -22,25 +22,25 @@ memory@0 { leds { compatible = "gpio-leds"; - wlan { + led-wlan { label = "dragino2:red:wlan"; gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; default-state = "off"; }; - lan { + led-lan { label = "dragino2:red:lan"; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; default-state = "off"; }; - wan { + led-wan { label = "dragino2:red:wan"; gpios = <&gpio 17 GPIO_ACTIVE_LOW>; default-state = "off"; }; - system { + led-system { label = "dragino2:red:system"; gpios = <&gpio 28 GPIO_ACTIVE_HIGH>; default-state = "off";
arch/mips/boot/dts/qca/ar9331_omega.dts +1 -1
@@ -22,7 +22,7 @@ memory@0 { leds { compatible = "gpio-leds"; - system { + led-system { label = "onion:amber:system"; gpios = <&gpio 27 GPIO_ACTIVE_LOW>; default-state = "off";
arch/mips/boot/dts/qca/ar9331_tl_mr3020.dts +4 -4
@@ -22,25 +22,25 @@ memory@0 { leds { compatible = "gpio-leds"; - wlan { + led-wlan { label = "tp-link:green:wlan"; gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; default-state = "off"; }; - lan { + led-lan { label = "tp-link:green:lan"; gpios = <&gpio 17 GPIO_ACTIVE_LOW>; default-state = "off"; }; - wps { + led-wps { label = "tp-link:green:wps"; gpios = <&gpio 26 GPIO_ACTIVE_LOW>; default-state = "off"; }; - led3g { + led-led3g { label = "tp-link:green:3g"; gpios = <&gpio 27 GPIO_ACTIVE_LOW>; default-state = "off";
arch/mips/boot/dts/ralink/gardena_smart_gateway_mt7688.dts +11 -11
@@ -47,67 +47,67 @@ leds { * (see below). So we can't include it in this LED node. */ - power_blue { + led-power-blue { label = "smartgw:power:blue"; gpios = <&gpio 18 GPIO_ACTIVE_HIGH>; default-state = "off"; }; - power_green { + led-power-green { label = "smartgw:power:green"; gpios = <&gpio 19 GPIO_ACTIVE_HIGH>; default-state = "off"; }; - power_red { + led-power-red { label = "smartgw:power:red"; gpios = <&gpio 22 GPIO_ACTIVE_HIGH>; default-state = "off"; }; - radio_blue { + led-radio-blue { label = "smartgw:radio:blue"; gpios = <&gpio 23 GPIO_ACTIVE_HIGH>; default-state = "off"; }; - radio_green { + led-radio-green { label = "smartgw:radio:green"; gpios = <&gpio 24 GPIO_ACTIVE_HIGH>; default-state = "off"; }; - radio_red { + led-radio-red { label = "smartgw:radio:red"; gpios = <&gpio 25 GPIO_ACTIVE_HIGH>; default-state = "off"; }; - internet_blue { + led-internet-blue { label = "smartgw:internet:blue"; gpios = <&gpio 26 GPIO_ACTIVE_HIGH>; default-state = "off"; }; - internet_green { + led-internet-green { label = "smartgw:internet:green"; gpios = <&gpio 27 GPIO_ACTIVE_HIGH>; default-state = "off"; }; - internet_red { + led-internet-red { label = "smartgw:internet:red"; gpios = <&gpio 28 GPIO_ACTIVE_HIGH>; default-state = "off"; }; - ethernet_link { + led-ethernet-link { label = "smartgw:eth:link"; gpios = <&gpio 3 GPIO_ACTIVE_LOW>; linux,default-trigger = "netdev"; }; - ethernet_activity { + led-ethernet-activity { label = "smartgw:eth:act"; gpios = <&gpio 43 GPIO_ACTIVE_LOW>; linux,default-trigger = "netdev";
arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts +2 -2
@@ -33,13 +33,13 @@ key-reset { gpio-leds { compatible = "gpio-leds"; - power { + led-power { label = "green:power"; gpios = <&gpio 6 GPIO_ACTIVE_LOW>; linux,default-trigger = "default-on"; }; - system { + led-system { label = "green:system"; gpios = <&gpio 8 GPIO_ACTIVE_LOW>; linux,default-trigger = "disk-activity";
arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts +6 -6
@@ -33,33 +33,33 @@ key-reset { gpio-leds { compatible = "gpio-leds"; - ethblack-green { + led-ethblack-green { label = "green:ethblack"; gpios = <&gpio 3 GPIO_ACTIVE_LOW>; }; - ethblue-green { + led-ethblue-green { label = "green:ethblue"; gpios = <&gpio 4 GPIO_ACTIVE_LOW>; }; - ethyellow-green { + led-ethyellow-green { label = "green:ethyellow"; gpios = <&gpio 15 GPIO_ACTIVE_LOW>; }; - ethyellow-orange { + led-ethyellow-orange { label = "orange:ethyellow"; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; }; - power { + led-power { label = "green:power"; gpios = <&gpio 6 GPIO_ACTIVE_LOW>; linux,default-trigger = "default-on"; }; - system { + led-system { label = "green:system"; gpios = <&gpio 8 GPIO_ACTIVE_LOW>; linux,default-trigger = "disk-activity";
Signature · 1 line
2.37.2
PATCH 2/2 mips: dts: ralink: mt7621: add port@5 as CPU port
From: Arınç ÜNAL <[email protected]>
On MT7621AT, MT7621DAT, and MT7621ST SoCs, port 5 of the MT7530 switch is connected to the second MAC of the SoC as a CPU port. Add the port and set up the second MAC on the bindings. Revert PHY muxing on GB-PC1.
There's an external PHY connected to the second MAC of the SoC on GB-PC2, therefore, disable port@5 for this device.
--- .../boot/dts/ralink/mt7621-gnubee-gb-pc1.dts | 16 +++++----------- .../boot/dts/ralink/mt7621-gnubee-gb-pc2.dts | 9 ++++++++- arch/mips/boot/dts/ralink/mt7621.dtsi | 19 ++++++++++++++++++- 3 files changed, 31 insertions(+), 13 deletions(-)
arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts +5 -11
@@ -91,22 +91,16 @@ &pcie { status = "okay"; }; -&gmac1 { - status = "okay"; - phy-handle = <ðphy4>; -}; - -&mdio { - ethphy4: ethernet-phy@4 { - reg = <4>; - }; -}; - &switch0 { ports { port@0 { status = "okay"; label = "ethblack"; }; + + port@4 { + status = "okay"; + label = "ethblue"; + }; }; };
arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts +8 -1
@@ -112,9 +112,12 @@ &pcie { }; &gmac1 { - status = "okay"; phy-mode = "rgmii-rxid"; phy-handle = <ðphy5>; + + fixed-link { + status = "disabled"; + }; }; &mdio {
@@ -134,5 +137,9 @@ port@4 { status = "okay"; label = "ethblue"; }; + + port@5 { + status = "disabled"; + }; }; };
arch/mips/boot/dts/ralink/mt7621.dtsi +18 -1
@@ -332,8 +332,13 @@ fixed-link { gmac1: mac@1 { compatible = "mediatek,eth-mac"; reg = <1>; - status = "disabled"; phy-mode = "rgmii"; + + fixed-link { + speed = <1000>; + full-duplex; + pause; + }; }; mdio: mdio-bus {
@@ -384,6 +389,18 @@ port@4 { label = "swp4"; }; + port@5 { + reg = <5>; + ethernet = <&gmac1>; + phy-mode = "rgmii"; + + fixed-link { + speed = <1000>; + full-duplex; + pause; + }; + }; + port@6 { reg = <6>; ethernet = <&gmac0>;
Signature · 1 line
2.37.2
Re: [PATCH 2/2] mips: dts: ralink: mt7621: add port@5 as CPU port
Quoted 10 lines · On Sat, Feb 11, 2023 at 11:50 AM <[email protected]> wrote:
From: Arınç ÜNAL <[email protected]>
On MT7621AT, MT7621DAT, and MT7621ST SoCs, port 5 of the MT7530 switch is connected to the second MAC of the SoC as a CPU port. Add the port and set up the second MAC on the bindings. Revert PHY muxing on GB-PC1.
There's an external PHY connected to the second MAC of the SoC on GB-PC2, therefore, disable port@5 for this device.
Quoted 6 lines
Signed-off-by Arınç ÜNAL <[email protected]>--- .../boot/dts/ralink/mt7621-gnubee-gb-pc1.dts | 16 +++++----------- .../boot/dts/ralink/mt7621-gnubee-gb-pc2.dts | 9 ++++++++- arch/mips/boot/dts/ralink/mt7621.dtsi | 19 ++++++++++++++++++- 3 files changed, 31 insertions(+), 13 deletions(-)
Thanks,
Sergio Paracuellos
Re: [PATCH 2/2] mips: dts: ralink: mt7621: add port@5 as CPU port
In reply to [email protected]Quoted 9 lines · On Sat, Feb 11, 2023 at 01:49:15PM +0300, [email protected] wrote:
From: Arınç ÜNAL <[email protected]>
On MT7621AT, MT7621DAT, and MT7621ST SoCs, port 5 of the MT7530 switch is connected to the second MAC of the SoC as a CPU port. Add the port and set up the second MAC on the bindings. Revert PHY muxing on GB-PC1.
There's an external PHY connected to the second MAC of the SoC on GB-PC2, therefore, disable port@5 for this device.
Quoted 6 lines
Signed-off-by Arınç ÜNAL <[email protected]>--- .../boot/dts/ralink/mt7621-gnubee-gb-pc1.dts | 16 +++++----------- .../boot/dts/ralink/mt7621-gnubee-gb-pc2.dts | 9 ++++++++- arch/mips/boot/dts/ralink/mt7621.dtsi | 19 ++++++++++++++++++- 3 files changed, 31 insertions(+), 13 deletions(-)
applied to mips-next.
Thomas.
Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]
Quoted 8 lines · On Sat, Feb 11, 2023 at 11:50 AM <[email protected]> wrote:
From: Arınç ÜNAL <[email protected]>
The node names should be generic and DT schema expects certain pattern:
mt7621-gnubee-gb-pc1.dtb: gpio-leds: 'power', 'system' do not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
Signed-off-by Arınç ÜNAL <[email protected]>
Quoted 13 lines
--- .../dts/cavium-octeon/dlink_dsr-1000n.dts | 10 ++++----- .../boot/dts/cavium-octeon/dlink_dsr-500n.dts | 6 ++--- arch/mips/boot/dts/ingenic/ci20.dts | 8 +++---- arch/mips/boot/dts/pic32/pic32mzda_sk.dts | 6 ++--- .../boot/dts/qca/ar9132_tl_wr1043nd_v1.dts | 8 +++---- .../mips/boot/dts/qca/ar9331_dragino_ms14.dts | 8 +++---- arch/mips/boot/dts/qca/ar9331_omega.dts | 2 +- arch/mips/boot/dts/qca/ar9331_tl_mr3020.dts | 8 +++---- .../ralink/gardena_smart_gateway_mt7688.dts | 22 +++++++++---------- .../boot/dts/ralink/mt7621-gnubee-gb-pc1.dts | 4 ++-- .../boot/dts/ralink/mt7621-gnubee-gb-pc2.dts | 12 +++++----- 11 files changed, 47 insertions(+), 47 deletions(-)
Thanks,
Sergio Paracuellos
Quoted 7 lines · On Sat, Feb 11, 2023 at 01:49:14PM +0300, [email protected] wrote:
From: Arınç ÜNAL <[email protected]>
The node names should be generic and DT schema expects certain pattern:
mt7621-gnubee-gb-pc1.dtb: gpio-leds: 'power', 'system' do not match any of the regexes: '(^led-[0-9a-f]$|led)', 'pinctrl-[0-9]+'
Signed-off-by Arınç ÜNAL <[email protected]>
Quoted 13 lines
--- .../dts/cavium-octeon/dlink_dsr-1000n.dts | 10 ++++----- .../boot/dts/cavium-octeon/dlink_dsr-500n.dts | 6 ++--- arch/mips/boot/dts/ingenic/ci20.dts | 8 +++---- arch/mips/boot/dts/pic32/pic32mzda_sk.dts | 6 ++--- .../boot/dts/qca/ar9132_tl_wr1043nd_v1.dts | 8 +++---- .../mips/boot/dts/qca/ar9331_dragino_ms14.dts | 8 +++---- arch/mips/boot/dts/qca/ar9331_omega.dts | 2 +- arch/mips/boot/dts/qca/ar9331_tl_mr3020.dts | 8 +++---- .../ralink/gardena_smart_gateway_mt7688.dts | 22 +++++++++---------- .../boot/dts/ralink/mt7621-gnubee-gb-pc1.dts | 4 ++-- .../boot/dts/ralink/mt7621-gnubee-gb-pc2.dts | 12 +++++----- 11 files changed, 47 insertions(+), 47 deletions(-)
applied to mips-next.
Thomas.
Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]