Skip to content

Commit

Permalink
Merge branch 'mt7621-dt'
Browse files Browse the repository at this point in the history
Arınç ÜNAL says:

====================
dt-bindings and mt7621 devicetree changes

This patch series removes old MediaTek bindings, improves mediatek,mt7530
and mt7621 memory controller bindings and improves mt7621 DTs.

v4:
- Keep memory-controller node name.
- Change syscon to memory-controller on mt7621.dtsi.

v3:
- Explain the mt7621 memory controller binding change in more details.
- Remove explaining the remaining DTC warnings from the patch log as there
are new schemas submitted for them.

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.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Sep 23, 2022
2 parents d56f9dd + 394c303 commit 1a4019f
Show file tree
Hide file tree
Showing 8 changed files with 80 additions and 166 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ maintainers:

properties:
compatible:
const: mediatek,mt7621-memc
items:
- const: mediatek,mt7621-memc
- const: syscon

reg:
maxItems: 1
Expand All @@ -25,6 +27,6 @@ additionalProperties: false
examples:
- |
memory-controller@5000 {
compatible = "mediatek,mt7621-memc";
compatible = "mediatek,mt7621-memc", "syscon";
reg = <0x5000 0x1000>;
};
34 changes: 21 additions & 13 deletions Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -263,6 +270,7 @@ allOf:
then:
$ref: "#/$defs/mt7531-dsa-port"
properties:
gpio-controller: false
mediatek,mcm: false

- if:
Expand All @@ -285,9 +293,9 @@ examples:
#address-cells = <1>;
#size-cells = <0>;
switch@0 {
switch@1f {
compatible = "mediatek,mt7530";
reg = <0>;
reg = <0x1f>;
reset-gpios = <&pio 33 0>;
Expand Down Expand Up @@ -346,9 +354,9 @@ examples:
#address-cells = <1>;
#size-cells = <0>;
switch@0 {
switch@1f {
compatible = "mediatek,mt7530";
reg = <0>;
reg = <0x1f>;
mediatek,mcm;
resets = <&ethsys MT2701_ETHSYS_MCM_RST>;
Expand Down Expand Up @@ -474,9 +482,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>;
Expand Down Expand Up @@ -560,9 +568,9 @@ examples:
reg = <4>;
};
switch@0 {
switch@1f {
compatible = "mediatek,mt7621";
reg = <0>;
reg = <0x1f>;
mediatek,mcm;
resets = <&sysc MT7621_RST_MCM>;
Expand Down Expand Up @@ -650,9 +658,9 @@ examples:
phy-mode = "rgmii";
};
switch@0 {
switch@1f {
compatible = "mediatek,mt7621";
reg = <0>;
reg = <0x1f>;
mediatek,mcm;
resets = <&sysc MT7621_RST_MCM>;
Expand Down Expand Up @@ -730,9 +738,9 @@ examples:
phy-mode = "rgmii";
};
switch@0 {
switch@1f {
compatible = "mediatek,mt7621";
reg = <0>;
reg = <0x1f>;
mediatek,mcm;
resets = <&sysc MT7621_RST_MCM>;
Expand Down
24 changes: 0 additions & 24 deletions Documentation/devicetree/bindings/net/mediatek,mt7620-gsw.txt

This file was deleted.

59 changes: 0 additions & 59 deletions Documentation/devicetree/bindings/net/ralink,rt2880-net.txt

This file was deleted.

30 changes: 0 additions & 30 deletions Documentation/devicetree/bindings/net/ralink,rt3050-esw.txt

This file was deleted.

8 changes: 1 addition & 7 deletions arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@
bootargs = "console=ttyS0,57600";
};

palmbus: palmbus@1e000000 {
i2c@900 {
status = "okay";
};
};

gpio-keys {
compatible = "gpio-keys";

Expand Down Expand Up @@ -53,7 +47,7 @@
};
};

&sdhci {
&mmc {
status = "okay";
};

Expand Down
50 changes: 40 additions & 10 deletions arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@
bootargs = "console=ttyS0,57600";
};

palmbus: palmbus@1e000000 {
i2c@900 {
status = "okay";
};
};

gpio-keys {
compatible = "gpio-keys";

Expand All @@ -35,9 +29,45 @@
linux,code = <KEY_RESTART>;
};
};

gpio-leds {
compatible = "gpio-leds";

ethblack-green {
label = "green:ethblack";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};

ethblue-green {
label = "green:ethblue";
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};

ethyellow-green {
label = "green:ethyellow";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};

ethyellow-orange {
label = "orange:ethyellow";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};

power {
label = "green:power";
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-on";
};

system {
label = "green:system";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
linux,default-trigger = "disk-activity";
};
};
};

&sdhci {
&mmc {
status = "okay";
};

Expand Down Expand Up @@ -83,12 +113,12 @@

&gmac1 {
status = "okay";
phy-handle = <&ethphy7>;
phy-handle = <&ethphy5>;
};

&mdio {
ethphy7: ethernet-phy@7 {
reg = <7>;
ethphy5: ethernet-phy@5 {
reg = <5>;
phy-mode = "rgmii-rxid";
};
};
Expand Down
Loading

0 comments on commit 1a4019f

Please sign in to comment.