Skip to content

Commit

Permalink
dt-bindings: net: dsa: mediatek,mt7530: expand gpio-controller descri…
Browse files Browse the repository at this point in the history
…ption

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

Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Arınç ÜNAL authored and David S. Miller committed Sep 23, 2022
1 parent 3737c6a commit 0fbca84
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion 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 Down

0 comments on commit 0fbca84

Please sign in to comment.