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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/net/dsa/brcm,sf2.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 ] ~

Diff markup

Differences between /Documentation/devicetree/bindings/net/dsa/brcm,sf2.yaml (Architecture i386) and /Documentation/devicetree/bindings/net/dsa/brcm,sf2.yaml (Architecture sparc)


  1 # SPDX-License-Identifier: (GPL-2.0-only OR BS      1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2 %YAML 1.2                                           2 %YAML 1.2
  3 ---                                                 3 ---
  4 $id: http://devicetree.org/schemas/net/dsa/brc      4 $id: http://devicetree.org/schemas/net/dsa/brcm,sf2.yaml#
  5 $schema: http://devicetree.org/meta-schemas/co      5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6                                                     6 
  7 title: Broadcom Starfighter 2 integrated switc      7 title: Broadcom Starfighter 2 integrated switch
  8                                                     8 
  9 maintainers:                                        9 maintainers:
 10   - Florian Fainelli <f.fainelli@gmail.com>         10   - Florian Fainelli <f.fainelli@gmail.com>
 11                                                    11 
 12 properties:                                        12 properties:
 13   compatible:                                      13   compatible:
 14     items:                                         14     items:
 15       - enum:                                      15       - enum:
 16           - brcm,bcm4908-switch                    16           - brcm,bcm4908-switch
 17           - brcm,bcm7278-switch-v4.0               17           - brcm,bcm7278-switch-v4.0
 18           - brcm,bcm7278-switch-v4.8               18           - brcm,bcm7278-switch-v4.8
 19           - brcm,bcm7445-switch-v4.0               19           - brcm,bcm7445-switch-v4.0
 20                                                    20 
 21   reg:                                             21   reg:
 22     minItems: 6                                    22     minItems: 6
 23     maxItems: 6                                    23     maxItems: 6
 24                                                    24 
 25   reg-names:                                       25   reg-names:
 26     items:                                         26     items:
 27       - const: core                                27       - const: core
 28       - const: reg                                 28       - const: reg
 29       - const: intrl2_0                            29       - const: intrl2_0
 30       - const: intrl2_1                            30       - const: intrl2_1
 31       - const: fcb                                 31       - const: fcb
 32       - const: acb                                 32       - const: acb
 33                                                    33 
 34   interrupts:                                      34   interrupts:
 35     minItems: 2                                    35     minItems: 2
 36     maxItems: 2                                    36     maxItems: 2
 37                                                    37 
 38   interrupt-names:                                 38   interrupt-names:
 39     items:                                         39     items:
 40       - const: switch_0                            40       - const: switch_0
 41       - const: switch_1                            41       - const: switch_1
 42                                                    42 
 43   resets:                                          43   resets:
 44     maxItems: 1                                    44     maxItems: 1
 45                                                    45 
 46   reset-names:                                     46   reset-names:
 47     const: switch                                  47     const: switch
 48                                                    48 
 49   clocks:                                          49   clocks:
 50     minItems: 1                                    50     minItems: 1
 51     items:                                         51     items:
 52       - description: switch's main clock           52       - description: switch's main clock
 53       - description: dividing of the switch co     53       - description: dividing of the switch core clock
 54                                                    54 
 55   clock-names:                                     55   clock-names:
 56     minItems: 1                                    56     minItems: 1
 57     items:                                         57     items:
 58       - const: sw_switch                           58       - const: sw_switch
 59       - const: sw_switch_mdiv                      59       - const: sw_switch_mdiv
 60                                                    60 
 61   brcm,num-gphy:                                   61   brcm,num-gphy:
 62     $ref: /schemas/types.yaml#/definitions/uin     62     $ref: /schemas/types.yaml#/definitions/uint32
 63     description: maximum number of integrated      63     description: maximum number of integrated gigabit PHYs in the switch
 64                                                    64 
 65   brcm,num-rgmii-ports:                            65   brcm,num-rgmii-ports:
 66     $ref: /schemas/types.yaml#/definitions/uin     66     $ref: /schemas/types.yaml#/definitions/uint32
 67     description: maximum number of RGMII inter     67     description: maximum number of RGMII interfaces supported by the switch
 68                                                    68 
 69   brcm,fcb-pause-override:                         69   brcm,fcb-pause-override:
 70     description: if present indicates that the     70     description: if present indicates that the switch supports Failover Control
 71       Block pause override capability              71       Block pause override capability
 72     type: boolean                                  72     type: boolean
 73                                                    73 
 74   brcm,acb-packets-inflight:                       74   brcm,acb-packets-inflight:
 75     description: if present indicates that the     75     description: if present indicates that the switch Admission Control Block
 76       supports reporting the number of packets     76       supports reporting the number of packets in-flight in a switch queue
 77     type: boolean                                  77     type: boolean
 78                                                    78 
 79   ports:                                           79   ports:
 80     type: object                                   80     type: object
 81     additionalProperties: true                     81     additionalProperties: true
 82                                                    82 
 83     patternProperties:                             83     patternProperties:
 84       '^port@[0-9a-f]$':                           84       '^port@[0-9a-f]$':
 85         $ref: dsa-port.yaml#                       85         $ref: dsa-port.yaml#
 86         unevaluatedProperties: false               86         unevaluatedProperties: false
 87                                                    87 
 88         properties:                                88         properties:
 89           brcm,use-bcm-hdr:                        89           brcm,use-bcm-hdr:
 90             description: if present, indicates     90             description: if present, indicates that the switch port has Broadcom
 91               tags enabled (per-packet metadat     91               tags enabled (per-packet metadata)
 92             type: boolean                          92             type: boolean
 93                                                    93 
 94 required:                                          94 required:
 95   - reg                                            95   - reg
 96   - interrupts                                     96   - interrupts
 97                                                    97 
 98 allOf:                                             98 allOf:
 99   - $ref: dsa.yaml#                                99   - $ref: dsa.yaml#
100   - if:                                           100   - if:
101       properties:                                 101       properties:
102         compatible:                               102         compatible:
103           contains:                               103           contains:
104             enum:                                 104             enum:
105               - brcm,bcm7278-switch-v4.0          105               - brcm,bcm7278-switch-v4.0
106               - brcm,bcm7278-switch-v4.8          106               - brcm,bcm7278-switch-v4.8
107     then:                                         107     then:
108       properties:                                 108       properties:
109         clocks:                                   109         clocks:
110           minItems: 1                             110           minItems: 1
111           maxItems: 1                             111           maxItems: 1
112         clock-names:                              112         clock-names:
113           minItems: 1                             113           minItems: 1
114           maxItems: 1                             114           maxItems: 1
115       required:                                   115       required:
116         - clocks                                  116         - clocks
117         - clock-names                             117         - clock-names
118   - if:                                           118   - if:
119       properties:                                 119       properties:
120         compatible:                               120         compatible:
121           contains:                               121           contains:
122             const: brcm,bcm7445-switch-v4.0       122             const: brcm,bcm7445-switch-v4.0
123     then:                                         123     then:
124       properties:                                 124       properties:
125         clocks:                                   125         clocks:
126           minItems: 2                             126           minItems: 2
127           maxItems: 2                             127           maxItems: 2
128         clock-names:                              128         clock-names:
129           minItems: 2                             129           minItems: 2
130           maxItems: 2                             130           maxItems: 2
131       required:                                   131       required:
132         - clocks                                  132         - clocks
133         - clock-names                             133         - clock-names
134                                                   134 
135 additionalProperties: false                       135 additionalProperties: false
136                                                   136 
137 examples:                                         137 examples:
138   - |                                             138   - |
139     switch@f0b00000 {                             139     switch@f0b00000 {
140             compatible = "brcm,bcm7445-switch-    140             compatible = "brcm,bcm7445-switch-v4.0";
141             reg = <0xf0b00000 0x40000>,           141             reg = <0xf0b00000 0x40000>,
142                   <0xf0b40000 0x110>,             142                   <0xf0b40000 0x110>,
143                   <0xf0b40340 0x30>,              143                   <0xf0b40340 0x30>,
144                   <0xf0b40380 0x30>,              144                   <0xf0b40380 0x30>,
145                   <0xf0b40400 0x34>,              145                   <0xf0b40400 0x34>,
146                   <0xf0b40600 0x208>;             146                   <0xf0b40600 0x208>;
147             reg-names = "core", "reg", "intrl2    147             reg-names = "core", "reg", "intrl2_0", "intrl2_1",
148                         "fcb", "acb";             148                         "fcb", "acb";
149             interrupts = <0 0x18 0>,              149             interrupts = <0 0x18 0>,
150                          <0 0x19 0>;              150                          <0 0x19 0>;
151             clocks = <&sw_switch>, <&sw_switch    151             clocks = <&sw_switch>, <&sw_switch_mdiv>;
152             clock-names = "sw_switch", "sw_swi    152             clock-names = "sw_switch", "sw_switch_mdiv";
153             brcm,num-gphy = <1>;                  153             brcm,num-gphy = <1>;
154             brcm,num-rgmii-ports = <2>;           154             brcm,num-rgmii-ports = <2>;
155             brcm,fcb-pause-override;              155             brcm,fcb-pause-override;
156             brcm,acb-packets-inflight;            156             brcm,acb-packets-inflight;
157                                                   157 
158             ports {                               158             ports {
159                     #address-cells = <1>;         159                     #address-cells = <1>;
160                     #size-cells = <0>;            160                     #size-cells = <0>;
161                                                   161 
162                     port@0 {                      162                     port@0 {
163                             label = "gphy";       163                             label = "gphy";
164                             reg = <0>;            164                             reg = <0>;
165                     };                            165                     };
166             };                                    166             };
167     };                                            167     };
                                                      

~ [ 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