提交 a2ce3217 编写于 作者: G Grygorii Strashko 提交者: Rob Herring

dt-bindings: net: ti: cpsw-switch: update to fix comments

After original patch was merged there were additional comments/requests
provided by Rob Herring [1]. Mostly they are related to json-schema usage,
and this patch fixes them. Also SPDX-License-Identifier has been changed to
(GPL-2.0-only OR BSD-2-Clause) as requested.

[1] https://lkml.org/lkml/2019/11/21/875
Fixes: ef63fe72 ("dt-bindings: net: ti: add new cpsw switch driver bindings")
Signed-off-by: NGrygorii Strashko <grygorii.strashko@ti.com>
[robh: Remove 2 more maxItems that aren't necessary]
Signed-off-by: NRob Herring <robh@kernel.org>
上级 71bbcd2e
无相关合并请求
# SPDX-License-Identifier: GPL-2.0 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2 %YAML 1.2
--- ---
$id: http://devicetree.org/schemas/net/ti,cpsw-switch.yaml# $id: http://devicetree.org/schemas/net/ti,cpsw-switch.yaml#
...@@ -44,7 +44,6 @@ properties: ...@@ -44,7 +44,6 @@ properties:
description: CPSW functional clock description: CPSW functional clock
clock-names: clock-names:
maxItems: 1
items: items:
- const: fck - const: fck
...@@ -70,7 +69,6 @@ properties: ...@@ -70,7 +69,6 @@ properties:
Phandle to the system control device node which provides access to Phandle to the system control device node which provides access to
efuse IO range with MAC addresses efuse IO range with MAC addresses
ethernet-ports: ethernet-ports:
type: object type: object
properties: properties:
...@@ -82,8 +80,6 @@ properties: ...@@ -82,8 +80,6 @@ properties:
patternProperties: patternProperties:
"^port@[0-9]+$": "^port@[0-9]+$":
type: object type: object
minItems: 1
maxItems: 2
description: CPSW external ports description: CPSW external ports
allOf: allOf:
...@@ -91,23 +87,20 @@ properties: ...@@ -91,23 +87,20 @@ properties:
properties: properties:
reg: reg:
maxItems: 1 items:
enum: [1, 2] - enum: [1, 2]
description: CPSW port number description: CPSW port number
phys: phys:
$ref: /schemas/types.yaml#definitions/phandle-array
maxItems: 1 maxItems: 1
description: phandle on phy-gmii-sel PHY description: phandle on phy-gmii-sel PHY
label: label:
$ref: /schemas/types.yaml#/definitions/string-array
maxItems: 1
description: label associated with this port description: label associated with this port
ti,dual-emac-pvid: ti,dual-emac-pvid:
$ref: /schemas/types.yaml#/definitions/uint32 allOf:
maxItems: 1 - $ref: /schemas/types.yaml#/definitions/uint32
minimum: 1 minimum: 1
maximum: 1024 maximum: 1024
description: description:
...@@ -136,7 +129,6 @@ properties: ...@@ -136,7 +129,6 @@ properties:
description: CPTS reference clock description: CPTS reference clock
clock-names: clock-names:
maxItems: 1
items: items:
- const: cpts - const: cpts
...@@ -201,7 +193,7 @@ examples: ...@@ -201,7 +193,7 @@ examples:
phys = <&phy_gmii_sel 1>; phys = <&phy_gmii_sel 1>;
phy-handle = <&ethphy0_sw>; phy-handle = <&ethphy0_sw>;
phy-mode = "rgmii"; phy-mode = "rgmii";
ti,dual_emac_pvid = <1>; ti,dual-emac-pvid = <1>;
}; };
cpsw_port2: port@2 { cpsw_port2: port@2 {
...@@ -211,7 +203,7 @@ examples: ...@@ -211,7 +203,7 @@ examples:
phys = <&phy_gmii_sel 2>; phys = <&phy_gmii_sel 2>;
phy-handle = <&ethphy1_sw>; phy-handle = <&ethphy1_sw>;
phy-mode = "rgmii"; phy-mode = "rgmii";
ti,dual_emac_pvid = <2>; ti,dual-emac-pvid = <2>;
}; };
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部