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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/net/rockchip-dwmac.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/rockchip-dwmac.yaml (Architecture alpha) and /Documentation/devicetree/bindings/net/rockchip-dwmac.yaml (Architecture i386)


  1 # SPDX-License-Identifier: GPL-2.0                  1 # SPDX-License-Identifier: GPL-2.0
  2 %YAML 1.2                                           2 %YAML 1.2
  3 ---                                                 3 ---
  4 $id: http://devicetree.org/schemas/net/rockchi      4 $id: http://devicetree.org/schemas/net/rockchip-dwmac.yaml#
  5 $schema: http://devicetree.org/meta-schemas/co      5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6                                                     6 
  7 title: Rockchip 10/100/1000 Ethernet driver(GM      7 title: Rockchip 10/100/1000 Ethernet driver(GMAC)
  8                                                     8 
  9 maintainers:                                        9 maintainers:
 10   - David Wu <david.wu@rock-chips.com>              10   - David Wu <david.wu@rock-chips.com>
 11                                                    11 
 12 # We need a select here so we don't match all      12 # We need a select here so we don't match all nodes with 'snps,dwmac'
 13 select:                                            13 select:
 14   properties:                                      14   properties:
 15     compatible:                                    15     compatible:
 16       contains:                                    16       contains:
 17         enum:                                      17         enum:
 18           - rockchip,px30-gmac                     18           - rockchip,px30-gmac
 19           - rockchip,rk3128-gmac                   19           - rockchip,rk3128-gmac
 20           - rockchip,rk3228-gmac                   20           - rockchip,rk3228-gmac
 21           - rockchip,rk3288-gmac                   21           - rockchip,rk3288-gmac
 22           - rockchip,rk3308-gmac                   22           - rockchip,rk3308-gmac
 23           - rockchip,rk3328-gmac                   23           - rockchip,rk3328-gmac
 24           - rockchip,rk3366-gmac                   24           - rockchip,rk3366-gmac
 25           - rockchip,rk3368-gmac                   25           - rockchip,rk3368-gmac
 26           - rockchip,rk3399-gmac                   26           - rockchip,rk3399-gmac
 27           - rockchip,rk3568-gmac                   27           - rockchip,rk3568-gmac
 28           - rockchip,rk3576-gmac                   28           - rockchip,rk3576-gmac
 29           - rockchip,rk3588-gmac                   29           - rockchip,rk3588-gmac
 30           - rockchip,rv1108-gmac                   30           - rockchip,rv1108-gmac
 31           - rockchip,rv1126-gmac                   31           - rockchip,rv1126-gmac
 32   required:                                        32   required:
 33     - compatible                                   33     - compatible
 34                                                    34 
 35 allOf:                                             35 allOf:
 36   - $ref: snps,dwmac.yaml#                         36   - $ref: snps,dwmac.yaml#
 37                                                    37 
 38 properties:                                        38 properties:
 39   compatible:                                      39   compatible:
 40     oneOf:                                         40     oneOf:
 41       - items:                                     41       - items:
 42           - enum:                                  42           - enum:
 43               - rockchip,px30-gmac                 43               - rockchip,px30-gmac
 44               - rockchip,rk3128-gmac               44               - rockchip,rk3128-gmac
 45               - rockchip,rk3228-gmac               45               - rockchip,rk3228-gmac
 46               - rockchip,rk3288-gmac               46               - rockchip,rk3288-gmac
 47               - rockchip,rk3308-gmac               47               - rockchip,rk3308-gmac
 48               - rockchip,rk3328-gmac               48               - rockchip,rk3328-gmac
 49               - rockchip,rk3366-gmac               49               - rockchip,rk3366-gmac
 50               - rockchip,rk3368-gmac               50               - rockchip,rk3368-gmac
 51               - rockchip,rk3399-gmac               51               - rockchip,rk3399-gmac
 52               - rockchip,rv1108-gmac               52               - rockchip,rv1108-gmac
 53       - items:                                     53       - items:
 54           - enum:                                  54           - enum:
 55               - rockchip,rk3568-gmac               55               - rockchip,rk3568-gmac
 56               - rockchip,rk3576-gmac               56               - rockchip,rk3576-gmac
 57               - rockchip,rk3588-gmac               57               - rockchip,rk3588-gmac
 58               - rockchip,rv1126-gmac               58               - rockchip,rv1126-gmac
 59           - const: snps,dwmac-4.20a                59           - const: snps,dwmac-4.20a
 60                                                    60 
 61   clocks:                                          61   clocks:
 62     minItems: 5                                    62     minItems: 5
 63     maxItems: 8                                    63     maxItems: 8
 64                                                    64 
 65   clock-names:                                     65   clock-names:
 66     contains:                                      66     contains:
 67       enum:                                        67       enum:
 68         - stmmaceth                                68         - stmmaceth
 69         - mac_clk_tx                               69         - mac_clk_tx
 70         - mac_clk_rx                               70         - mac_clk_rx
 71         - aclk_mac                                 71         - aclk_mac
 72         - pclk_mac                                 72         - pclk_mac
 73         - clk_mac_ref                              73         - clk_mac_ref
 74         - clk_mac_refout                           74         - clk_mac_refout
 75         - clk_mac_speed                            75         - clk_mac_speed
 76                                                    76 
 77   clock_in_out:                                    77   clock_in_out:
 78     description:                                   78     description:
 79       For RGMII, it must be "input", means mai     79       For RGMII, it must be "input", means main clock(125MHz)
 80       is not sourced from SoC's PLL, but input     80       is not sourced from SoC's PLL, but input from PHY.
 81       For RMII, "input" means PHY provides the     81       For RMII, "input" means PHY provides the reference clock(50MHz),
 82       "output" means GMAC provides the referen     82       "output" means GMAC provides the reference clock.
 83     $ref: /schemas/types.yaml#/definitions/str     83     $ref: /schemas/types.yaml#/definitions/string
 84     enum: [input, output]                          84     enum: [input, output]
 85     default: input                                 85     default: input
 86                                                    86 
 87   rockchip,grf:                                    87   rockchip,grf:
 88     description: The phandle of the syscon nod     88     description: The phandle of the syscon node for the general register file.
 89     $ref: /schemas/types.yaml#/definitions/pha     89     $ref: /schemas/types.yaml#/definitions/phandle
 90                                                    90 
 91   rockchip,php-grf:                                91   rockchip,php-grf:
 92     description:                                   92     description:
 93       The phandle of the syscon node for the p     93       The phandle of the syscon node for the peripheral general register file.
 94     $ref: /schemas/types.yaml#/definitions/pha     94     $ref: /schemas/types.yaml#/definitions/phandle
 95                                                    95 
 96   tx_delay:                                        96   tx_delay:
 97     description: Delay value for TXD timing.       97     description: Delay value for TXD timing.
 98     $ref: /schemas/types.yaml#/definitions/uin     98     $ref: /schemas/types.yaml#/definitions/uint32
 99     minimum: 0                                     99     minimum: 0
100     maximum: 0x7F                                 100     maximum: 0x7F
101     default: 0x30                                 101     default: 0x30
102                                                   102 
103   rx_delay:                                       103   rx_delay:
104     description: Delay value for RXD timing.      104     description: Delay value for RXD timing.
105     $ref: /schemas/types.yaml#/definitions/uin    105     $ref: /schemas/types.yaml#/definitions/uint32
106     minimum: 0                                    106     minimum: 0
107     maximum: 0x7F                                 107     maximum: 0x7F
108     default: 0x10                                 108     default: 0x10
109                                                   109 
110   phy-supply:                                     110   phy-supply:
111     description: PHY regulator                    111     description: PHY regulator
112                                                   112 
113 required:                                         113 required:
114   - compatible                                    114   - compatible
115   - clocks                                        115   - clocks
116   - clock-names                                   116   - clock-names
117                                                   117 
118 unevaluatedProperties: false                      118 unevaluatedProperties: false
119                                                   119 
120 examples:                                         120 examples:
121   - |                                             121   - |
122     #include <dt-bindings/interrupt-controller    122     #include <dt-bindings/interrupt-controller/arm-gic.h>
123     #include <dt-bindings/clock/rk3288-cru.h>     123     #include <dt-bindings/clock/rk3288-cru.h>
124                                                   124 
125     gmac: ethernet@ff290000 {                     125     gmac: ethernet@ff290000 {
126         compatible = "rockchip,rk3288-gmac";      126         compatible = "rockchip,rk3288-gmac";
127         reg = <0xff290000 0x10000>;               127         reg = <0xff290000 0x10000>;
128         interrupts = <GIC_SPI 27 IRQ_TYPE_LEVE    128         interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
129         interrupt-names = "macirq";               129         interrupt-names = "macirq";
130         clocks = <&cru SCLK_MAC>,                 130         clocks = <&cru SCLK_MAC>,
131                  <&cru SCLK_MAC_RX>, <&cru SCL    131                  <&cru SCLK_MAC_RX>, <&cru SCLK_MAC_TX>,
132                  <&cru SCLK_MACREF>, <&cru SCL    132                  <&cru SCLK_MACREF>, <&cru SCLK_MACREF_OUT>,
133                  <&cru ACLK_GMAC>, <&cru PCLK_    133                  <&cru ACLK_GMAC>, <&cru PCLK_GMAC>;
134         clock-names = "stmmaceth",                134         clock-names = "stmmaceth",
135                       "mac_clk_rx", "mac_clk_t    135                       "mac_clk_rx", "mac_clk_tx",
136                       "clk_mac_ref", "clk_mac_    136                       "clk_mac_ref", "clk_mac_refout",
137                       "aclk_mac", "pclk_mac";     137                       "aclk_mac", "pclk_mac";
138         assigned-clocks = <&cru SCLK_MAC>;        138         assigned-clocks = <&cru SCLK_MAC>;
139         assigned-clock-parents = <&ext_gmac>;     139         assigned-clock-parents = <&ext_gmac>;
140                                                   140 
141         rockchip,grf = <&grf>;                    141         rockchip,grf = <&grf>;
142         phy-mode = "rgmii-id";                    142         phy-mode = "rgmii-id";
143         clock_in_out = "input";                   143         clock_in_out = "input";
144     };                                            144     };
                                                      

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