Commit 214537cd authored by Arınç ÜNAL's avatar Arınç ÜNAL Committed by Jakub Kicinski

dt-bindings: net: dsa: mediatek,mt7530: make trivial changes

Make trivial changes on the binding.

- Update title to include MT7531 switch.
- Add me as a maintainer. List maintainers in alphabetical order by first
name.
- Add description to compatible strings.
- Stretch descriptions up to the 80 character limit.
- Remove lists for single items.
- Remove requiring reg as it's already required by dsa-port.yaml.
- Define acceptable reg values for the CPU ports.
- Remove quotes from $ref: "dsa.yaml#".
Signed-off-by: default avatarArınç ÜNAL <arinc.unal@arinc9.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 146ecbac
...@@ -4,12 +4,13 @@ ...@@ -4,12 +4,13 @@
$id: http://devicetree.org/schemas/net/dsa/mediatek,mt7530.yaml# $id: http://devicetree.org/schemas/net/dsa/mediatek,mt7530.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml#
title: Mediatek MT7530 Ethernet switch title: Mediatek MT7530 and MT7531 Ethernet Switches
maintainers: maintainers:
- Sean Wang <sean.wang@mediatek.com> - Arınç ÜNAL <arinc.unal@arinc9.com>
- Landen Chao <Landen.Chao@mediatek.com> - Landen Chao <Landen.Chao@mediatek.com>
- DENG Qingfang <dqfext@gmail.com> - DENG Qingfang <dqfext@gmail.com>
- Sean Wang <sean.wang@mediatek.com>
description: | description: |
Port 5 of mt7530 and mt7621 switch is muxed between: Port 5 of mt7530 and mt7621 switch is muxed between:
...@@ -61,10 +62,18 @@ description: | ...@@ -61,10 +62,18 @@ description: |
properties: properties:
compatible: compatible:
enum: oneOf:
- mediatek,mt7530 - description:
- mediatek,mt7531 Standalone MT7530 and multi-chip module MT7530 in MT7623AI SoC
- mediatek,mt7621 const: mediatek,mt7530
- description:
Standalone MT7531
const: mediatek,mt7531
- description:
Multi-chip module MT7530 in MT7621AT, MT7621DAT and MT7621ST SoCs
const: mediatek,mt7621
reg: reg:
maxItems: 1 maxItems: 1
...@@ -79,7 +88,7 @@ properties: ...@@ -79,7 +88,7 @@ properties:
gpio-controller: gpio-controller:
type: boolean type: boolean
description: description:
if defined, MT7530's LED controller will run on GPIO mode. If defined, MT7530's LED controller will run on GPIO mode.
"#interrupt-cells": "#interrupt-cells":
const: 1 const: 1
...@@ -92,8 +101,8 @@ properties: ...@@ -92,8 +101,8 @@ properties:
io-supply: io-supply:
description: description:
Phandle to the regulator node necessary for the I/O power. Phandle to the regulator node necessary for the I/O power.
See Documentation/devicetree/bindings/regulator/mt6323-regulator.txt See Documentation/devicetree/bindings/regulator/mt6323-regulator.txt for
for details for the regulator setup on these boards. details for the regulator setup on these boards.
mediatek,mcm: mediatek,mcm:
type: boolean type: boolean
...@@ -110,8 +119,8 @@ properties: ...@@ -110,8 +119,8 @@ properties:
resets: resets:
description: description:
Phandle pointing to the system reset controller with line index for Phandle pointing to the system reset controller with line index for the
the ethsys. ethsys.
maxItems: 1 maxItems: 1
patternProperties: patternProperties:
...@@ -128,27 +137,31 @@ patternProperties: ...@@ -128,27 +137,31 @@ patternProperties:
properties: properties:
reg: reg:
description: description:
Port address described must be 5 or 6 for CPU port and from 0 Port address described must be 5 or 6 for CPU port and from 0 to 5
to 5 for user ports. for user ports.
allOf: allOf:
- $ref: dsa-port.yaml# - $ref: dsa-port.yaml#
- if: - if:
properties: properties:
label: label:
items: const: cpu
- const: cpu
then: then:
required: required:
- reg
- phy-mode - phy-mode
properties:
reg:
enum:
- 5
- 6
required: required:
- compatible - compatible
- reg - reg
allOf: allOf:
- $ref: "dsa.yaml#" - $ref: dsa.yaml#
- if: - if:
required: required:
- mediatek,mcm - mediatek,mcm
...@@ -163,8 +176,7 @@ allOf: ...@@ -163,8 +176,7 @@ allOf:
- if: - if:
properties: properties:
compatible: compatible:
items: const: mediatek,mt7530
- const: mediatek,mt7530
then: then:
required: required:
- core-supply - core-supply
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment