Skip to content

Commit 15eb162

Browse files
robherringkuba-moo
authored andcommitted
dt-bindings: net: Convert Socionext NetSec Ethernet to DT schema
Convert the Socionext NetSec Ethernet binding to DT schema format. Signed-off-by: Rob Herring <[email protected]> Acked-by: Jassi Brar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 4e426e2 commit 15eb162

File tree

3 files changed

+74
-57
lines changed

3 files changed

+74
-57
lines changed
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/net/socionext,synquacer-netsec.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Socionext NetSec Ethernet Controller IP
8+
9+
maintainers:
10+
- Jassi Brar <[email protected]>
11+
- Ilias Apalodimas <[email protected]>
12+
13+
allOf:
14+
- $ref: ethernet-controller.yaml#
15+
16+
properties:
17+
compatible:
18+
const: socionext,synquacer-netsec
19+
20+
reg:
21+
items:
22+
- description: control register area
23+
- description: EEPROM holding the MAC address and microengine firmware
24+
25+
clocks:
26+
maxItems: 1
27+
28+
clock-names:
29+
const: phy_ref_clk
30+
31+
dma-coherent: true
32+
33+
interrupts:
34+
maxItems: 1
35+
36+
mdio:
37+
$ref: mdio.yaml#
38+
39+
required:
40+
- compatible
41+
- reg
42+
- clocks
43+
- clock-names
44+
- interrupts
45+
- mdio
46+
47+
unevaluatedProperties: false
48+
49+
examples:
50+
- |
51+
#include <dt-bindings/interrupt-controller/arm-gic.h>
52+
53+
ethernet@522d0000 {
54+
compatible = "socionext,synquacer-netsec";
55+
reg = <0x522d0000 0x10000>, <0x10000000 0x10000>;
56+
interrupts = <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>;
57+
clocks = <&clk_netsec>;
58+
clock-names = "phy_ref_clk";
59+
phy-mode = "rgmii";
60+
max-speed = <1000>;
61+
max-frame-size = <9000>;
62+
phy-handle = <&phy1>;
63+
64+
mdio {
65+
#address-cells = <1>;
66+
#size-cells = <0>;
67+
phy1: ethernet-phy@1 {
68+
compatible = "ethernet-phy-ieee802.3-c22";
69+
reg = <1>;
70+
};
71+
};
72+
};
73+
...

Documentation/devicetree/bindings/net/socionext-netsec.txt

Lines changed: 0 additions & 56 deletions
This file was deleted.

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19066,7 +19066,7 @@ M: Jassi Brar <[email protected]>
1906619066
M: Ilias Apalodimas <[email protected]>
1906719067
1906819068
S: Maintained
19069-
F: Documentation/devicetree/bindings/net/socionext-netsec.txt
19069+
F: Documentation/devicetree/bindings/net/socionext,synquacer-netsec.yaml
1907019070
F: drivers/net/ethernet/socionext/netsec.c
1907119071

1907219072
SOCIONEXT (SNI) Synquacer SPI DRIVER

0 commit comments

Comments
 (0)