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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/net/loongson,ls1b-gmac.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/loongson,ls1b-gmac.yaml (Architecture i386) and /Documentation/devicetree/bindings/net/loongson,ls1b-gmac.yaml (Architecture m68k)


  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/loongso      4 $id: http://devicetree.org/schemas/net/loongson,ls1b-gmac.yaml#
  5 $schema: http://devicetree.org/meta-schemas/co      5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6                                                     6 
  7 title: Loongson-1B Gigabit Ethernet MAC Contro      7 title: Loongson-1B Gigabit Ethernet MAC Controller
  8                                                     8 
  9 maintainers:                                        9 maintainers:
 10   - Keguang Zhang <keguang.zhang@gmail.com>         10   - Keguang Zhang <keguang.zhang@gmail.com>
 11                                                    11 
 12 description: |                                     12 description: |
 13   Loongson-1B Gigabit Ethernet MAC Controller      13   Loongson-1B Gigabit Ethernet MAC Controller is based on
 14   Synopsys DesignWare MAC (version 3.50a).         14   Synopsys DesignWare MAC (version 3.50a).
 15                                                    15 
 16   Main features                                    16   Main features
 17   - Dual 10/100/1000Mbps GMAC controllers          17   - Dual 10/100/1000Mbps GMAC controllers
 18   - Full-duplex operation (IEEE 802.3x flow co     18   - Full-duplex operation (IEEE 802.3x flow control automatic transmission)
 19   - Half-duplex operation (CSMA/CD Protocol an     19   - Half-duplex operation (CSMA/CD Protocol and back-pressure support)
 20   - RX Checksum Offload                            20   - RX Checksum Offload
 21   - TX Checksum insertion                          21   - TX Checksum insertion
 22   - MII interface                                  22   - MII interface
 23   - RGMII interface                                23   - RGMII interface
 24                                                    24 
 25 select:                                            25 select:
 26   properties:                                      26   properties:
 27     compatible:                                    27     compatible:
 28       contains:                                    28       contains:
 29         enum:                                      29         enum:
 30           - loongson,ls1b-gmac                     30           - loongson,ls1b-gmac
 31   required:                                        31   required:
 32     - compatible                                   32     - compatible
 33                                                    33 
 34 properties:                                        34 properties:
 35   compatible:                                      35   compatible:
 36     items:                                         36     items:
 37       - enum:                                      37       - enum:
 38           - loongson,ls1b-gmac                     38           - loongson,ls1b-gmac
 39       - const: snps,dwmac-3.50a                    39       - const: snps,dwmac-3.50a
 40                                                    40 
 41   reg:                                             41   reg:
 42     maxItems: 1                                    42     maxItems: 1
 43                                                    43 
 44   clocks:                                          44   clocks:
 45     maxItems: 1                                    45     maxItems: 1
 46                                                    46 
 47   clock-names:                                     47   clock-names:
 48     items:                                         48     items:
 49       - const: stmmaceth                           49       - const: stmmaceth
 50                                                    50 
 51   interrupts:                                      51   interrupts:
 52     maxItems: 1                                    52     maxItems: 1
 53                                                    53 
 54   interrupt-names:                                 54   interrupt-names:
 55     items:                                         55     items:
 56       - const: macirq                              56       - const: macirq
 57                                                    57 
 58   loongson,ls1-syscon:                             58   loongson,ls1-syscon:
 59     $ref: /schemas/types.yaml#/definitions/pha     59     $ref: /schemas/types.yaml#/definitions/phandle
 60     description:                                   60     description:
 61       Phandle to the syscon containing some ex     61       Phandle to the syscon containing some extra configurations
 62       including PHY interface mode.                62       including PHY interface mode.
 63                                                    63 
 64   phy-mode:                                        64   phy-mode:
 65     enum:                                          65     enum:
 66       - mii                                        66       - mii
 67       - rgmii-id                                   67       - rgmii-id
 68                                                    68 
 69 required:                                          69 required:
 70   - compatible                                     70   - compatible
 71   - reg                                            71   - reg
 72   - clocks                                         72   - clocks
 73   - clock-names                                    73   - clock-names
 74   - interrupts                                     74   - interrupts
 75   - interrupt-names                                75   - interrupt-names
 76   - loongson,ls1-syscon                            76   - loongson,ls1-syscon
 77                                                    77 
 78 allOf:                                             78 allOf:
 79   - $ref: snps,dwmac.yaml#                         79   - $ref: snps,dwmac.yaml#
 80                                                    80 
 81 unevaluatedProperties: false                       81 unevaluatedProperties: false
 82                                                    82 
 83 examples:                                          83 examples:
 84   - |                                              84   - |
 85     #include <dt-bindings/clock/loongson,ls1x-     85     #include <dt-bindings/clock/loongson,ls1x-clk.h>
 86     #include <dt-bindings/interrupt-controller     86     #include <dt-bindings/interrupt-controller/irq.h>
 87                                                    87 
 88     gmac0: ethernet@1fe10000 {                     88     gmac0: ethernet@1fe10000 {
 89         compatible = "loongson,ls1b-gmac", "sn     89         compatible = "loongson,ls1b-gmac", "snps,dwmac-3.50a";
 90         reg = <0x1fe10000 0x10000>;                90         reg = <0x1fe10000 0x10000>;
 91                                                    91 
 92         clocks = <&clkc LS1X_CLKID_AHB>;           92         clocks = <&clkc LS1X_CLKID_AHB>;
 93         clock-names = "stmmaceth";                 93         clock-names = "stmmaceth";
 94                                                    94 
 95         interrupt-parent = <&intc1>;               95         interrupt-parent = <&intc1>;
 96         interrupts = <2 IRQ_TYPE_LEVEL_HIGH>;      96         interrupts = <2 IRQ_TYPE_LEVEL_HIGH>;
 97         interrupt-names = "macirq";                97         interrupt-names = "macirq";
 98                                                    98 
 99         loongson,ls1-syscon = <&syscon>;           99         loongson,ls1-syscon = <&syscon>;
100                                                   100 
101         phy-handle = <&phy0>;                     101         phy-handle = <&phy0>;
102         phy-mode = "mii";                         102         phy-mode = "mii";
103         snps,pbl = <1>;                           103         snps,pbl = <1>;
104                                                   104 
105         mdio {                                    105         mdio {
106             #address-cells = <1>;                 106             #address-cells = <1>;
107             #size-cells = <0>;                    107             #size-cells = <0>;
108             compatible = "snps,dwmac-mdio";       108             compatible = "snps,dwmac-mdio";
109                                                   109 
110             phy0: ethernet-phy@0 {                110             phy0: ethernet-phy@0 {
111                 reg = <0x0>;                      111                 reg = <0x0>;
112             };                                    112             };
113         };                                        113         };
114     };                                            114     };
                                                      

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