Commit 1a4019f4 authored by David S. Miller's avatar David S. Miller
Browse files

Merge branch 'mt7621-dt'



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: default avatarDavid S. Miller <davem@davemloft.net>
parents d56f9ddf 394c3032
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -11,7 +11,9 @@ maintainers:

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

  reg:
    maxItems: 1
@@ -25,6 +27,6 @@ additionalProperties: false
examples:
  - |
    memory-controller@5000 {
        compatible = "mediatek,mt7621-memc";
        compatible = "mediatek,mt7621-memc", "syscon";
        reg = <0x5000 0x1000>;
    };
+21 −13
Original line number Diff line number Diff line
@@ -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
@@ -263,6 +270,7 @@ allOf:
    then:
      $ref: "#/$defs/mt7531-dsa-port"
      properties:
        gpio-controller: false
        mediatek,mcm: false

  - if:
@@ -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>;

@@ -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>;
@@ -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>;
@@ -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>;
@@ -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>;
@@ -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>;
+0 −24
Original line number Diff line number Diff line
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>;
};
+0 −59
Original line number Diff line number Diff line
Ralink Frame Engine Ethernet controller
=======================================

The Ralink frame engine ethernet controller can be found on Ralink and
Mediatek SoCs (RT288x, RT3x5x, RT366x, RT388x, rt5350, mt7620, mt7621, mt76x8).

Depending on the SoC, there is a number of ports connected to the CPU port
directly and/or via a (gigabit-)switch.

* Ethernet controller node

Required properties:
- compatible: Should be one of "ralink,rt2880-eth", "ralink,rt3050-eth",
  "ralink,rt3050-eth", "ralink,rt3883-eth", "ralink,rt5350-eth",
  "mediatek,mt7620-eth", "mediatek,mt7621-eth"
- reg: Address and length of the register set for the device
- interrupts: Should contain the frame engines interrupt
- resets: Should contain the frame engines resets
- reset-names: Should contain the reset names "fe". If a switch is present
  "esw" is also required.


* Ethernet port node

Required properties:
- compatible: Should be "ralink,eth-port"
- reg: The number of the physical port
- phy-handle: reference to the node describing the phy

Example:

mdio-bus {
	...
	phy0: ethernet-phy@0 {
		phy-mode = "mii";
		reg = <0>;
	};
};

ethernet@400000 {
	compatible = "ralink,rt2880-eth";
	reg = <0x00400000 10000>;

	#address-cells = <1>;
	#size-cells = <0>;

	resets = <&rstctrl 18>;
	reset-names = "fe";

	interrupt-parent = <&cpuintc>;
	interrupts = <5>;

	port@0 {
		compatible = "ralink,eth-port";
		reg = <0>;
		phy-handle = <&phy0>;
	};

};
+0 −30
Original line number Diff line number Diff line
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>;
};
Loading