~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/net/brcm,asp-v2.0.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2 %YAML 1.2
  3 ---
  4 $id: http://devicetree.org/schemas/net/brcm,asp-v2.0.yaml#
  5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6 
  7 title: Broadcom ASP 2.0 Ethernet controller
  8 
  9 maintainers:
 10   - Justin Chen <justin.chen@broadcom.com>
 11   - Florian Fainelli <florian.fainelli@broadcom.com>
 12 
 13 description: Broadcom Ethernet controller first introduced with 72165
 14 
 15 properties:
 16   compatible:
 17     oneOf:
 18       - items:
 19           - enum:
 20               - brcm,bcm74165b0-asp
 21           - const: brcm,asp-v2.2
 22       - items:
 23           - enum:
 24               - brcm,bcm74165-asp
 25           - const: brcm,asp-v2.1
 26       - items:
 27           - enum:
 28               - brcm,bcm72165-asp
 29           - const: brcm,asp-v2.0
 30 
 31   "#address-cells":
 32     const: 1
 33   "#size-cells":
 34     const: 1
 35 
 36   reg:
 37     maxItems: 1
 38 
 39   ranges: true
 40 
 41   interrupts:
 42     minItems: 1
 43     items:
 44       - description: RX/TX interrupt
 45       - description: Port 0 Wake-on-LAN
 46       - description: Port 1 Wake-on-LAN
 47 
 48   clocks:
 49     maxItems: 1
 50 
 51   ethernet-ports:
 52     type: object
 53     properties:
 54       "#address-cells":
 55         const: 1
 56       "#size-cells":
 57         const: 0
 58 
 59     patternProperties:
 60       "^port@[0-9a-f]+$":
 61         type: object
 62 
 63         $ref: ethernet-controller.yaml#
 64 
 65         unevaluatedProperties: false
 66 
 67         properties:
 68           reg:
 69             maxItems: 1
 70             description: Port number
 71 
 72           brcm,channel:
 73             $ref: /schemas/types.yaml#/definitions/uint32
 74             description: |
 75               ASP Channel Number
 76 
 77               The depacketizer channel that consumes packets from
 78               the unimac/port.
 79 
 80         required:
 81           - reg
 82           - brcm,channel
 83 
 84     additionalProperties: false
 85 
 86 patternProperties:
 87   "^mdio@[0-9a-f]+$":
 88     type: object
 89     $ref: brcm,unimac-mdio.yaml
 90 
 91     description:
 92       ASP internal UniMAC MDIO bus
 93 
 94 required:
 95   - compatible
 96   - reg
 97   - interrupts
 98   - clocks
 99   - ranges
100 
101 additionalProperties: false
102 
103 examples:
104   - |
105     #include <dt-bindings/interrupt-controller/irq.h>
106     #include <dt-bindings/interrupt-controller/arm-gic.h>
107 
108     ethernet@9c00000 {
109         compatible = "brcm,bcm72165-asp", "brcm,asp-v2.0";
110         reg = <0x9c00000 0x1fff14>;
111         interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
112         ranges = <0x0 0x9c00000 0x1fff14>;
113         clocks = <&scmi 14>;
114         #address-cells = <1>;
115         #size-cells = <1>;
116 
117         mdio@c614 {
118             compatible = "brcm,asp-v2.0-mdio";
119             reg = <0xc614 0x8>;
120             reg-names = "mdio";
121             #address-cells = <1>;
122             #size-cells = <0>;
123 
124             phy0: ethernet-phy@1 {
125                 reg = <1>;
126             };
127        };
128 
129         mdio@ce14 {
130             compatible = "brcm,asp-v2.0-mdio";
131             reg = <0xce14 0x8>;
132             reg-names = "mdio";
133             #address-cells = <1>;
134             #size-cells = <0>;
135 
136             phy1: ethernet-phy@1 {
137                 reg = <1>;
138             };
139         };
140 
141         ethernet-ports {
142             #address-cells = <1>;
143             #size-cells = <0>;
144 
145             port@0 {
146                 reg = <0>;
147                 brcm,channel = <8>;
148                 phy-mode = "rgmii";
149                 phy-handle = <&phy0>;
150             };
151 
152             port@1 {
153                 reg = <1>;
154                 brcm,channel = <9>;
155                 phy-mode = "rgmii";
156                 phy-handle = <&phy1>;
157             };
158         };
159     };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php