dt-bindings and mt7621 devicetree changes
Subsystems (8)
v2 cover dt-bindings and mt7621 devicetree changes
Hello there!
This patch series removes old MediaTek bindings, improves mediatek,mt7530 and mt7621 memory controller bindings and improves mt7621 DTs.
v2:
- Change memory controller node name to syscon on the schema example.
- Keep cpu compatible string and syscon on the memory controller node.
- Add Rob and Sergio's tags.
Arınç ÜNAL (10):
dt-bindings: net: drop old mediatek bindings
dt-bindings: net: dsa: mediatek,mt7530: change mt7530 switch address
dt-bindings: net: dsa: mediatek,mt7530: expand gpio-controller
description
dt-bindings: memory: mt7621: add syscon as compatible string
mips: dts: ralink: mt7621: fix some dtc warnings
mips: dts: ralink: mt7621: remove interrupt-parent from switch node
mips: dts: ralink: mt7621: change phy-mode of gmac1 to rgmii
mips: dts: ralink: mt7621: change mt7530 switch address
mips: dts: ralink: mt7621: fix external phy on GB-PC2
mips: dts: ralink: mt7621: add GB-PC2 LEDs
.../mediatek,mt7621-memc.yaml | 8 ++- .../bindings/net/dsa/mediatek,mt7530.yaml | 34 ++++++----- .../bindings/net/mediatek,mt7620-gsw.txt | 24 -------- .../bindings/net/ralink,rt2880-net.txt | 59 -------------------- .../bindings/net/ralink,rt3050-esw.txt | 30 ---------- .../boot/dts/ralink/mt7621-gnubee-gb-pc1.dts | 8 +-- .../boot/dts/ralink/mt7621-gnubee-gb-pc2.dts | 50 +++++++++++++---- arch/mips/boot/dts/ralink/mt7621.dtsi | 33 +++++------ 8 files changed, 80 insertions(+), 166 deletions(-)
PATCH v2 1/10 dt-bindings: net: drop old mediatek bindings
Remove these old mediatek bindings which are not used.
--- .../bindings/net/mediatek,mt7620-gsw.txt | 24 -------- .../bindings/net/ralink,rt2880-net.txt | 59 ------------------- .../bindings/net/ralink,rt3050-esw.txt | 30 ---------- 3 files changed, 113 deletions(-) delete mode 100644 Documentation/devicetree/bindings/net/mediatek,mt7620-gsw.txt delete mode 100644 Documentation/devicetree/bindings/net/ralink,rt2880-net.txt delete mode 100644 Documentation/devicetree/bindings/net/ralink,rt3050-esw.txt
Documentation/devicetree/bindings/net/mediatek,mt7620-gsw.txt deleted +0 -24
@@ -1,24 +0,0 @@ -Mediatek Gigabit Switch -======================= - -The mediatek gigabit switch can be found on Mediatek SoCs (mt7620, mt7621). - -Required properties: -- compatible: Should be "mediatek,mt7620-gsw" or "mediatek,mt7621-gsw" -- reg: Address and length of the register set for the device -- interrupts: Should contain the gigabit switches interrupt -- resets: Should contain the gigabit switches resets -- reset-names: Should contain the reset names "gsw" - -Example: - -gsw@10110000 { - compatible = "ralink,mt7620-gsw"; - reg = <0x10110000 8000>; - - resets = <&rstctrl 23>; - reset-names = "gsw"; - - interrupt-parent = <&intc>; - interrupts = <17>; -};
Documentation/devicetree/bindings/net/ralink,rt2880-net.txt deleted +0 -59
59 lines not on this page · raw message
Documentation/devicetree/bindings/net/ralink,rt3050-esw.txt deleted +0 -30
@@ -1,30 +0,0 @@ -Ralink Fast Ethernet Embedded Switch -==================================== - -The ralink fast ethernet embedded switch can be found on Ralink and Mediatek -SoCs (RT3x5x, RT5350, MT76x8). - -Required properties: -- compatible: Should be "ralink,rt3050-esw" -- reg: Address and length of the register set for the device -- interrupts: Should contain the embedded switches interrupt -- resets: Should contain the embedded switches resets -- reset-names: Should contain the reset names "esw" - -Optional properties: -- ralink,portmap: can be used to choose if the default switch setup is - llllw or wllll -- ralink,led_polarity: override the active high/low settings of the leds - -Example: - -esw@10110000 { - compatible = "ralink,rt3050-esw"; - reg = <0x10110000 8000>; - - resets = <&rstctrl 23>; - reset-names = "esw"; - - interrupt-parent = <&intc>; - interrupts = <17>; -};
Signature · 1 line
2.34.1
PATCH v2 2/10 dt-bindings: net: dsa: mediatek,mt7530: change mt7530 switch address
In reply to Arınç ÜNALIn the case of muxing phy0 of the MT7530 switch, the switch and the phy will have the same address on the mdio bus, 0. This causes the ethernet driver to fail since devices on the mdio bus cannot share an address.
Any address can be used for the switch, therefore, change the switch address to 0x1f.
--- .../bindings/net/dsa/mediatek,mt7530.yaml | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-)
Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml +12 -12
@@ -294,9 +294,9 @@ examples: #address-cells = <1>; #size-cells = <0>; - switch@0 { + switch@1f { compatible = "mediatek,mt7530"; - reg = <0>; + reg = <0x1f>; reset-gpios = <&pio 33 0>;
@@ -356,9 +356,9 @@ examples: #address-cells = <1>; #size-cells = <0>; - switch@0 { + switch@1f { compatible = "mediatek,mt7530"; - reg = <0>; + reg = <0x1f>; mediatek,mcm; resets = <ðsys MT2701_ETHSYS_MCM_RST>;
@@ -486,9 +486,9 @@ examples: #address-cells = <1>; #size-cells = <0>; - switch@0 { + switch@1f { compatible = "mediatek,mt7621"; - reg = <0>; + reg = <0x1f>; mediatek,mcm; resets = <&sysc MT7621_RST_MCM>;
@@ -573,9 +573,9 @@ examples: reg = <4>; }; - switch@0 { + switch@1f { compatible = "mediatek,mt7621"; - reg = <0>; + reg = <0x1f>; mediatek,mcm; resets = <&sysc MT7621_RST_MCM>;
@@ -664,9 +664,9 @@ examples: phy-mode = "rgmii"; }; - switch@0 { + switch@1f { compatible = "mediatek,mt7621"; - reg = <0>; + reg = <0x1f>; mediatek,mcm; resets = <&sysc MT7621_RST_MCM>;
@@ -745,9 +745,9 @@ examples: phy-mode = "rgmii"; }; - switch@0 { + switch@1f { compatible = "mediatek,mt7621"; - reg = <0>; + reg = <0x1f>; mediatek,mcm; resets = <&sysc MT7621_RST_MCM>;
Signature · 1 line
2.34.1
PATCH v2 3/10 dt-bindings: net: dsa: mediatek,mt7530: expand gpio-controller description
In reply to Arınç ÜNALExpand the description of the gpio-controller property to include the controllable pins of the MT7530 switch.
The gpio-controller property is only used for the MT7530 switch. Therefore, invalidate it for the MT7531 switch.
--- .../devicetree/bindings/net/dsa/mediatek,mt7530.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml +9 -1
@@ -104,7 +104,14 @@ properties: gpio-controller: type: boolean description: - If defined, MT7530's LED controller will run on GPIO mode. + If defined, LED controller of the MT7530 switch will run on GPIO mode. + + There are 15 controllable pins. + port 0 LED 0..2 as GPIO 0..2 + port 1 LED 0..2 as GPIO 3..5 + port 2 LED 0..2 as GPIO 6..8 + port 3 LED 0..2 as GPIO 9..11 + port 4 LED 0..2 as GPIO 12..14 "#interrupt-cells": const: 1
@@ -272,6 +279,7 @@ allOf: then: $ref: "#/$defs/mt7531-dsa-port" properties: + gpio-controller: false mediatek,mcm: false - if:
Signature · 1 line
2.34.1
PATCH v2 4/10 dt-bindings: memory: mt7621: add syscon as compatible string
In reply to Arınç ÜNALAdd syscon as a constant string on the compatible property as it's required for the SoC to work. Update the example accordingly.
--- .../bindings/memory-controllers/mediatek,mt7621-memc.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/memory-controllers/mediatek,mt7621-memc.yaml +5 -3
@@ -11,7 +11,9 @@ maintainers: properties: compatible: - const: mediatek,mt7621-memc + items: + - const: mediatek,mt7621-memc + - const: syscon reg: maxItems: 1
@@ -24,7 +26,7 @@ additionalProperties: false examples: - | - memory-controller@5000 { - compatible = "mediatek,mt7621-memc"; + syscon@5000 { + compatible = "mediatek,mt7621-memc", "syscon"; reg = <0x5000 0x1000>; };
Signature · 1 line
2.34.1
Rob Herring
maintainerRe: [PATCH v2 net-next 04/10] dt-bindings: memory: mt7621: add syscon as compatible string
Quoted 2 lines · Arınç ÜNAL
Add syscon as a constant string on the compatible property as it's required for the SoC to work. Update the example accordingly.
I read this and start to give you the same reply as v1. Then I remember saying this already...
Update the commit message such that it answers my question and I don't think you just ignored me and have to go find v1. The fact that this change makes the binding match what is already in use in dts files is an important detail.
Quoted 37 lines
Fixes 5278e4a181ff ("dt-bindings: memory: add binding for Mediatek's MT7621 SDRAM memory controller")Signed-off-by Arınç ÜNAL <[email protected]>--- .../bindings/memory-controllers/mediatek,mt7621-memc.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)Documentation/devicetree/bindings/memory-controllers/mediatek,mt7621-memc.yaml +5
-3@@ -11,7 +11,9 @@ maintainers: properties: compatible: - const: mediatek,mt7621-memc + items: + - const: mediatek,mt7621-memc + - const: syscon reg: maxItems: 1@@ -24,7 +26,7 @@ additionalProperties: false examples: - | - memory-controller@5000 { - compatible = "mediatek,mt7621-memc"; + syscon@5000 { + compatible = "mediatek,mt7621-memc", "syscon"; reg = <0x5000 0x1000>; };Signature · 1 line
2.34.1
Re: [PATCH v2 net-next 04/10] dt-bindings: memory: mt7621: add syscon as compatible string
Quoted 11 lines · Rob Herring
Quoted 2 lines · Arınç ÜNAL
Add syscon as a constant string on the compatible property as it's required for the SoC to work. Update the example accordingly.
I read this and start to give you the same reply as v1. Then I remember saying this already...
Update the commit message such that it answers my question and I don't think you just ignored me and have to go find v1. The fact that this change makes the binding match what is already in use in dts files is an important detail.
Sure Rob, will do.
Arınç
PATCH v2 5/10 mips: dts: ralink: mt7621: fix some dtc warnings
In reply to Arınç ÜNALFix the dtc warnings below.
uartlite@c00: $nodename:0: 'uartlite@c00' does not match '^serial(@.*)?$'
From schema: /home/arinc9/Documents/linux/Documentation/devicetree/bindings/serial/8250.yaml
uartlite@c00: Unevaluated properties are not allowed ('clock-names' was unexpected)
From schema: /home/arinc9/Documents/linux/Documentation/devicetree/bindings/serial/8250.yaml
sdhci@1e130000: $nodename:0: 'sdhci@1e130000' does not match '^mmc(@.*)?$'
From schema: /home/arinc9/Documents/linux/Documentation/devicetree/bindings/mmc/mtk-sd.yaml
sdhci@1e130000: Unevaluated properties are not allowed ('bus-width', 'cap-mmc-highspeed', 'cap-sd-highspeed', 'disable-wp', 'max-frequency', 'vmmc-supply', 'vqmmc-supply' were unexpected)
From schema: /home/arinc9/Documents/linux/Documentation/devicetree/bindings/mmc/mtk-sd.yaml
xhci@1e1c0000: $nodename:0: 'xhci@1e1c0000' does not match '^usb(@.*)?'
From schema: /home/arinc9/Documents/linux/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml
xhci@1e1c0000: compatible: ['mediatek,mt8173-xhci'] is too short
From schema: /home/arinc9/Documents/linux/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml
switch0@0: $nodename:0: 'switch0@0' does not match '^(ethernet-)?switch(@.*)?$'
From schema: /home/arinc9/Documents/linux/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml
port@1: status:0: 'off' is not one of ['okay', 'disabled', 'reserved']
From schema: /home/arinc9/.local/lib/python3.10/site-packages/dtschema/schemas/dt-core.yaml
port@2: status:0: 'off' is not one of ['okay', 'disabled', 'reserved']
From schema: /home/arinc9/.local/lib/python3.10/site-packages/dtschema/schemas/dt-core.yaml
port@3: status:0: 'off' is not one of ['okay', 'disabled', 'reserved']
From schema: /home/arinc9/.local/lib/python3.10/site-packages/dtschema/schemas/dt-core.yaml
- Change "uartlite: uartlite@c00" to "serial0: serial@c00" and remove the aliases node.
- Remove "clock-names" from the serial0 node. The property doesn't exist on the 8250.yaml schema.
- Change "sdhci: sdhci@1e130000" to "mmc: mmc@1e130000".
- Change "xhci: xhci@1e1c0000" to "usb: usb@1e1c0000".
- Add "mediatek,mtk-xhci" as the second compatible string on the usb node.
- Change "switch0: switch0@0" to "switch0: switch@0"
- Change "off" to "disabled" for disabled nodes.
Remaining warnings are caused by the lack of json-schema documentation.
/cpuintc: failed to match any schema with compatible: ['mti,cpu-interrupt-controller'] /palmbus@1e000000/wdt@100: failed to match any schema with compatible: ['mediatek,mt7621-wdt'] /palmbus@1e000000/i2c@900: failed to match any schema with compatible: ['mediatek,mt7621-i2c'] /palmbus@1e000000/spi@b00: failed to match any schema with compatible: ['ralink,mt7621-spi'] /ethernet@1e100000: failed to match any schema with compatible: ['mediatek,mt7621-eth']
--- .../boot/dts/ralink/mt7621-gnubee-gb-pc1.dts | 2 +- .../boot/dts/ralink/mt7621-gnubee-gb-pc2.dts | 2 +- arch/mips/boot/dts/ralink/mt7621.dtsi | 28 ++++++++----------- 3 files changed, 13 insertions(+), 19 deletions(-)
arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts +1 -1
@@ -53,7 +53,7 @@ system { }; }; -&sdhci { +&mmc { status = "okay"; };
arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts +1 -1
@@ -37,7 +37,7 @@ key-reset { }; }; -&sdhci { +&mmc { status = "okay"; };
arch/mips/boot/dts/ralink/mt7621.dtsi +11 -17
@@ -33,11 +33,6 @@ cpuintc: cpuintc { compatible = "mti,cpu-interrupt-controller"; }; - aliases { - serial0 = &uartlite; - }; - - mmc_fixed_3v3: regulator-3v3 { compatible = "regulator-fixed"; regulator-name = "mmc_power";
@@ -115,12 +110,11 @@ memc: syscon@5000 { reg = <0x5000 0x1000>; }; - uartlite: uartlite@c00 { + serial0: serial@c00 { compatible = "ns16550a"; reg = <0xc00 0x100>; clocks = <&sysc MT7621_CLK_UART1>; - clock-names = "uart1"; interrupt-parent = <&gic>; interrupts = <GIC_SHARED 26 IRQ_TYPE_LEVEL_HIGH>;
@@ -236,7 +230,7 @@ pinmux { }; }; - sdhci: sdhci@1e130000 { + mmc: mmc@1e130000 { status = "disabled"; compatible = "mediatek,mt7620-mmc";
@@ -262,8 +256,8 @@ sdhci: sdhci@1e130000 { interrupts = <GIC_SHARED 20 IRQ_TYPE_LEVEL_HIGH>; }; - xhci: xhci@1e1c0000 { - compatible = "mediatek,mt8173-xhci"; + usb: usb@1e1c0000 { + compatible = "mediatek,mt8173-xhci", "mediatek,mtk-xhci"; reg = <0x1e1c0000 0x1000 0x1e1d0700 0x0100>; reg-names = "mac", "ippc";
@@ -338,7 +332,7 @@ fixed-link { gmac1: mac@1 { compatible = "mediatek,eth-mac"; reg = <1>; - status = "off"; + status = "disabled"; phy-mode = "rgmii-rxid"; };
@@ -346,7 +340,7 @@ mdio: mdio-bus { #address-cells = <1>; #size-cells = <0>; - switch0: switch0@0 { + switch0: switch@0 { compatible = "mediatek,mt7621"; reg = <0>; mediatek,mcm;
@@ -362,31 +356,31 @@ ports { #size-cells = <0>; port@0 { - status = "off"; + status = "disabled"; reg = <0>; label = "lan0"; }; port@1 { - status = "off"; + status = "disabled"; reg = <1>; label = "lan1"; }; port@2 { - status = "off"; + status = "disabled"; reg = <2>; label = "lan2"; }; port@3 { - status = "off"; + status = "disabled"; reg = <3>; label = "lan3"; }; port@4 { - status = "off"; + status = "disabled"; reg = <4>; label = "lan4"; };
Signature · 1 line
2.34.1
Re: [PATCH v2 net-next 05/10] mips: dts: ralink: mt7621: fix some dtc warnings
Hi Arinc,
Quoted 34 lines · Arınç ÜNAL
Fix the dtc warnings below.
uartlite@c00: $nodename:0: 'uartlite@c00' does not match '^serial(@.*)?$'
From schema:/home/arinc9/Documents/linux/Documentation/devicetree/bindings/serial/8250.yaml
uartlite@c00: Unevaluated properties are not allowed ('clock-names' was unexpected)
From schema:/home/arinc9/Documents/linux/Documentation/devicetree/bindings/serial/8250.yaml
sdhci@1e130000: $nodename:0: 'sdhci@1e130000' does not match '^mmc(@.*)?$'
From schema:/home/arinc9/Documents/linux/Documentation/devicetree/bindings/mmc/mtk-sd.yaml
sdhci@1e130000: Unevaluated properties are not allowed ('bus-width', 'cap-mmc-highspeed', 'cap-sd-highspeed', 'disable-wp', 'max-frequency', 'vmmc-supply', 'vqmmc-supply' were unexpected)
From schema:/home/arinc9/Documents/linux/Documentation/devicetree/bindings/mmc/mtk-sd.yaml
xhci@1e1c0000: $nodename:0: 'xhci@1e1c0000' does not match '^usb(@.*)?'
From schema:/home/arinc9/Documents/linux/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml
xhci@1e1c0000: compatible: ['mediatek,mt8173-xhci'] is too short
From schema:/home/arinc9/Documents/linux/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml
switch0@0: $nodename:0: 'switch0@0' does not match '^(ethernet-)?switch(@.*)?$'
From schema:/home/arinc9/Documents/linux/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml
port@1: status:0: 'off' is not one of ['okay', 'disabled', 'reserved']
From schema:/home/arinc9/.local/lib/python3.10/site-packages/dtschema/schemas/dt-core.yaml
port@2: status:0: 'off' is not one of ['okay', 'disabled', 'reserved']
From schema:/home/arinc9/.local/lib/python3.10/site-packages/dtschema/schemas/dt-core.yaml
port@3: status:0: 'off' is not one of ['okay', 'disabled', 'reserved']
From schema:/home/arinc9/.local/lib/python3.10/site-packages/dtschema/schemas/dt-core.yaml- Change "uartlite: uartlite@c00" to "serial0: serial@c00" and remove the aliases node.
- Remove "clock-names" from the serial0 node. The property doesn't exist on the 8250.yaml schema.
- Change "sdhci: sdhci@1e130000" to "mmc: mmc@1e130000".
- Change "xhci: xhci@1e1c0000" to "usb: usb@1e1c0000".
- Add "mediatek,mtk-xhci" as the second compatible string on the usb node.
- Change "switch0: switch0@0" to "switch0: switch@0"
- Change "off" to "disabled" for disabled nodes.
Quoted 1 line
Remaining warnings are caused by the lack of json-schema documentation.
The followings needs to be ported to yaml schema but exist in its previous txt format:
Quoted 2 lines
/cpuintc: failed to match any schema with compatible: ['mti,cpu-interrupt-controller']
Quoted 1 line
/palmbus@1e000000/wdt@100: failed to match any schema with compatible: ['mediatek,mt7621-wdt']
Quoted 1 line
/palmbus@1e000000/i2c@900: failed to match any schema with compatible: ['mediatek,mt7621-i2c']
Quoted 1 line
/palmbus@1e000000/spi@b00: failed to match any schema with compatible: ['ralink,mt7621-spi']
Quoted 1 line
/ethernet@1e100000: failed to match any schema with compatible: ['mediatek,mt7621-eth']
Quoted 7 lines
Signed-off-by Arınç ÜNAL <[email protected]>--- .../boot/dts/ralink/mt7621-gnubee-gb-pc1.dts | 2 +- .../boot/dts/ralink/mt7621-gnubee-gb-pc2.dts | 2 +- arch/mips/boot/dts/ralink/mt7621.dtsi | 28 ++++++++----------- 3 files changed, 13 insertions(+), 19 deletions(-)
Re: [PATCH v2 net-next 05/10] mips: dts: ralink: mt7621: fix some dtc warnings
Quoted 57 lines · Sergio Paracuellos
Hi Arinc,
Quoted 35 lines · Arınç ÜNAL
Fix the dtc warnings below.
uartlite@c00: $nodename:0: 'uartlite@c00' does not match '^serial(@.*)?$'
From schema:/home/arinc9/Documents/linux/Documentation/devicetree/bindings/serial/8250.yaml
uartlite@c00: Unevaluated properties are not allowed ('clock-names' was unexpected)
From schema:/home/arinc9/Documents/linux/Documentation/devicetree/bindings/serial/8250.yaml
sdhci@1e130000: $nodename:0: 'sdhci@1e130000' does not match '^mmc(@.*)?$'
From schema:/home/arinc9/Documents/linux/Documentation/devicetree/bindings/mmc/mtk-sd.yaml
sdhci@1e130000: Unevaluated properties are not allowed ('bus-width', 'cap-mmc-highspeed', 'cap-sd-highspeed', 'disable-wp', 'max-frequency', 'vmmc-supply', 'vqmmc-supply' were unexpected)
From schema:/home/arinc9/Documents/linux/Documentation/devicetree/bindings/mmc/mtk-sd.yaml
xhci@1e1c0000: $nodename:0: 'xhci@1e1c0000' does not match '^usb(@.*)?'
From schema:/home/arinc9/Documents/linux/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml
xhci@1e1c0000: compatible: ['mediatek,mt8173-xhci'] is too short
From schema:/home/arinc9/Documents/linux/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml
switch0@0: $nodename:0: 'switch0@0' does not match '^(ethernet-)?switch(@.*)?$'
From schema:/home/arinc9/Documents/linux/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml
port@1: status:0: 'off' is not one of ['okay', 'disabled', 'reserved']
From schema:/home/arinc9/.local/lib/python3.10/site-packages/dtschema/schemas/dt-core.yaml
port@2: status:0: 'off' is not one of ['okay', 'disabled', 'reserved']
From schema:/home/arinc9/.local/lib/python3.10/site-packages/dtschema/schemas/dt-core.yaml
port@3: status:0: 'off' is not one of ['okay', 'disabled', 'reserved']
From schema:/home/arinc9/.local/lib/python3.10/site-packages/dtschema/schemas/dt-core.yaml- Change "uartlite: uartlite@c00" to "serial0: serial@c00" and remove the aliases node.
- Remove "clock-names" from the serial0 node. The property doesn't exist on the 8250.yaml schema.
- Change "sdhci: sdhci@1e130000" to "mmc: mmc@1e130000".
- Change "xhci: xhci@1e1c0000" to "usb: usb@1e1c0000".
- Add "mediatek,mtk-xhci" as the second compatible string on the usb node.
- Change "switch0: switch0@0" to "switch0: switch@0"
- Change "off" to "disabled" for disabled nodes.Quoted 1 line
Remaining warnings are caused by the lack of json-schema documentation.
The followings needs to be ported to yaml schema but exist in its previous txt format:
Quoted 2 lines
/cpuintc: failed to match any schema with compatible: ['mti,cpu-interrupt-controller']
Quoted 1 line
/palmbus@1e000000/wdt@100: failed to match any schema with compatible: ['mediatek,mt7621-wdt']
Quoted 1 line
/palmbus@1e000000/i2c@900: failed to match any schema with compatible: ['mediatek,mt7621-i2c']
Quoted 7 lines
Quoted 1 line
/palmbus@1e000000/spi@b00: failed to match any schema with compatible: ['ralink,mt7621-spi']
Quoted 1 line
/ethernet@1e100000: failed to match any schema with compatible: ['mediatek,mt7621-eth']
This binding is old and does not represent the current mtk_eth_soc driver. I already remove this with the first patch in the series so I’d rather do a new schema from scratch.
Arınç
PATCH v2 6/10 mips: dts: ralink: mt7621: remove interrupt-parent from switch node
In reply to Arınç ÜNALThe interrupt-parent property is inherited from the ethernet node as it's a parent node of the switch node. Therefore, remove the unnecessary interrupt-parent property from the switch node.
--- arch/mips/boot/dts/ralink/mt7621.dtsi | 1 - 1 file changed, 1 deletion(-)
arch/mips/boot/dts/ralink/mt7621.dtsi +0 -1
@@ -348,7 +348,6 @@ switch0: switch@0 { reset-names = "mcm"; interrupt-controller; #interrupt-cells = <1>; - interrupt-parent = <&gic>; interrupts = <GIC_SHARED 23 IRQ_TYPE_LEVEL_HIGH>; ports {
Signature · 1 line
2.34.1
PATCH v2 7/10 mips: dts: ralink: mt7621: change phy-mode of gmac1 to rgmii
In reply to Arınç ÜNALChange phy-mode of gmac1 to rgmii on mt7621.dtsi. Same code path is followed for delayed rgmii and rgmii phy-mode on mtk_eth_soc.c.
--- arch/mips/boot/dts/ralink/mt7621.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/boot/dts/ralink/mt7621.dtsi +1 -1
@@ -333,7 +333,7 @@ gmac1: mac@1 { compatible = "mediatek,eth-mac"; reg = <1>; status = "disabled"; - phy-mode = "rgmii-rxid"; + phy-mode = "rgmii"; }; mdio: mdio-bus {
Signature · 1 line
2.34.1
PATCH v2 8/10 mips: dts: ralink: mt7621: change mt7530 switch address
In reply to Arınç ÜNALIn the case of muxing phy0 of the MT7530 switch, the switch and the phy will have the same address on the mdio bus, 0. This causes the ethernet driver to fail since devices on the mdio bus cannot share an address.
Any address can be used for the switch, therefore, change the switch address to 0x1f.
--- arch/mips/boot/dts/ralink/mt7621.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/mips/boot/dts/ralink/mt7621.dtsi +2 -2
@@ -340,9 +340,9 @@ mdio: mdio-bus { #address-cells = <1>; #size-cells = <0>; - switch0: switch@0 { + switch0: switch@1f { compatible = "mediatek,mt7621"; - reg = <0>; + reg = <0x1f>; mediatek,mcm; resets = <&sysc MT7621_RST_MCM>; reset-names = "mcm";
Signature · 1 line
2.34.1
PATCH v2 9/10 mips: dts: ralink: mt7621: fix external phy on GB-PC2
In reply to Arınç ÜNALThe address of the external phy on the mdio bus is 5. Update the devicetree for GB-PC2 accordingly.
--- arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts +3 -3
@@ -83,12 +83,12 @@ &pcie { &gmac1 { status = "okay"; - phy-handle = <ðphy7>; + phy-handle = <ðphy5>; }; &mdio { - ethphy7: ethernet-phy@7 { - reg = <7>; + ethphy5: ethernet-phy@5 { + reg = <5>; phy-mode = "rgmii-rxid"; }; };
Signature · 1 line
2.34.1
PATCH v2 10/10 mips: dts: ralink: mt7621: add GB-PC2 LEDs
In reply to Arınç ÜNALAdd the missing LEDs for GB-PC2. The ethblack-green, ethblue-green, power and system LEDs weren't added previously, because they don't exist on the device schematics. Tests on a GB-PC2 by me and Petr proved otherwise.
The i2c bus cannot be used on GB-PC2 as its pins are wired to LEDs instead, and GB-PC1 does not use it. Therefore, do not enable it on both devices.
--- .../boot/dts/ralink/mt7621-gnubee-gb-pc1.dts | 6 --- .../boot/dts/ralink/mt7621-gnubee-gb-pc2.dts | 42 ++++++++++++++++--- 2 files changed, 36 insertions(+), 12 deletions(-)
arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts +0 -6
@@ -20,12 +20,6 @@ chosen { bootargs = "console=ttyS0,57600"; }; - palmbus: palmbus@1e000000 { - i2c@900 { - status = "okay"; - }; - }; - gpio-keys { compatible = "gpio-keys";
arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts +36 -6
54 lines not on this page · raw message
Signature · 1 line
2.34.1