xref: /linux/Documentation/devicetree/bindings/net/nxp,tja11xx.yaml (revision 3fd6c59042dbba50391e30862beac979491145fe)
1d9cc193cSOleksij Rempel# SPDX-License-Identifier: GPL-2.0+
2d9cc193cSOleksij Rempel%YAML 1.2
3d9cc193cSOleksij Rempel---
4d9cc193cSOleksij Rempel$id: http://devicetree.org/schemas/net/nxp,tja11xx.yaml#
5d9cc193cSOleksij Rempel$schema: http://devicetree.org/meta-schemas/core.yaml#
6d9cc193cSOleksij Rempel
7d9cc193cSOleksij Rempeltitle: NXP TJA11xx PHY
8d9cc193cSOleksij Rempel
9d9cc193cSOleksij Rempelmaintainers:
10d9cc193cSOleksij Rempel  - Andrew Lunn <andrew@lunn.ch>
11d9cc193cSOleksij Rempel  - Florian Fainelli <f.fainelli@gmail.com>
12d9cc193cSOleksij Rempel  - Heiner Kallweit <hkallweit1@gmail.com>
13d9cc193cSOleksij Rempel
14d9cc193cSOleksij Rempeldescription:
15d9cc193cSOleksij Rempel  Bindings for NXP TJA11xx automotive PHYs
16d9cc193cSOleksij Rempel
17*2f9caba9SWei Fangproperties:
18*2f9caba9SWei Fang  compatible:
19*2f9caba9SWei Fang    enum:
20*2f9caba9SWei Fang      - ethernet-phy-id0180.dc40
21*2f9caba9SWei Fang      - ethernet-phy-id0180.dc41
22*2f9caba9SWei Fang      - ethernet-phy-id0180.dc48
23*2f9caba9SWei Fang      - ethernet-phy-id0180.dd00
24*2f9caba9SWei Fang      - ethernet-phy-id0180.dd01
25*2f9caba9SWei Fang      - ethernet-phy-id0180.dd02
26*2f9caba9SWei Fang      - ethernet-phy-id0180.dc80
27*2f9caba9SWei Fang      - ethernet-phy-id0180.dc82
28*2f9caba9SWei Fang      - ethernet-phy-id001b.b010
29*2f9caba9SWei Fang      - ethernet-phy-id001b.b013
30*2f9caba9SWei Fang      - ethernet-phy-id001b.b030
31*2f9caba9SWei Fang      - ethernet-phy-id001b.b031
32*2f9caba9SWei Fang
33d9cc193cSOleksij RempelallOf:
34d9cc193cSOleksij Rempel  - $ref: ethernet-phy.yaml#
35*2f9caba9SWei Fang  - if:
36d9cc193cSOleksij Rempel      properties:
37*2f9caba9SWei Fang        compatible:
38*2f9caba9SWei Fang          contains:
39*2f9caba9SWei Fang            enum:
40*2f9caba9SWei Fang              - ethernet-phy-id0180.dc40
41*2f9caba9SWei Fang              - ethernet-phy-id0180.dc41
42*2f9caba9SWei Fang              - ethernet-phy-id0180.dc48
43*2f9caba9SWei Fang              - ethernet-phy-id0180.dd00
44*2f9caba9SWei Fang              - ethernet-phy-id0180.dd01
45*2f9caba9SWei Fang              - ethernet-phy-id0180.dd02
46d9cc193cSOleksij Rempel
47*2f9caba9SWei Fang    then:
48*2f9caba9SWei Fang      properties:
4952b2fe45SWei Fang        nxp,rmii-refclk-in:
5052b2fe45SWei Fang          type: boolean
5152b2fe45SWei Fang          description: |
5252b2fe45SWei Fang            The REF_CLK is provided for both transmitted and received data
5352b2fe45SWei Fang            in RMII mode. This clock signal is provided by the PHY and is
5452b2fe45SWei Fang            typically derived from an external 25MHz crystal. Alternatively,
5552b2fe45SWei Fang            a 50MHz clock signal generated by an external oscillator can be
5652b2fe45SWei Fang            connected to pin REF_CLK. A third option is to connect a 25MHz
5752b2fe45SWei Fang            clock to pin CLK_IN_OUT. So, the REF_CLK should be configured
5852b2fe45SWei Fang            as input or output according to the actual circuit connection.
5952b2fe45SWei Fang            If present, indicates that the REF_CLK will be configured as
6052b2fe45SWei Fang            interface reference clock input when RMII mode enabled.
6152b2fe45SWei Fang            If not present, the REF_CLK will be configured as interface
6252b2fe45SWei Fang            reference clock output when RMII mode enabled.
6352b2fe45SWei Fang            Only supported on TJA1100 and TJA1101.
6452b2fe45SWei Fang
65*2f9caba9SWei Fang  - if:
66*2f9caba9SWei Fang      properties:
67*2f9caba9SWei Fang        compatible:
68*2f9caba9SWei Fang          contains:
69*2f9caba9SWei Fang            enum:
70*2f9caba9SWei Fang              - ethernet-phy-id001b.b010
71*2f9caba9SWei Fang              - ethernet-phy-id001b.b013
72*2f9caba9SWei Fang              - ethernet-phy-id001b.b030
73*2f9caba9SWei Fang              - ethernet-phy-id001b.b031
74*2f9caba9SWei Fang
75*2f9caba9SWei Fang    then:
76*2f9caba9SWei Fang      properties:
77*2f9caba9SWei Fang        nxp,rmii-refclk-out:
78*2f9caba9SWei Fang          type: boolean
79*2f9caba9SWei Fang          description: Enable 50MHz RMII reference clock output on REF_CLK pin.
80d9cc193cSOleksij Rempel
81d9cc193cSOleksij RempelpatternProperties:
82d9cc193cSOleksij Rempel  "^ethernet-phy@[0-9a-f]+$":
836fdc6e23SRob Herring    type: object
846fdc6e23SRob Herring    additionalProperties: false
85d9cc193cSOleksij Rempel    description: |
86d9cc193cSOleksij Rempel      Some packages have multiple PHYs. Secondary PHY should be defines as
87d9cc193cSOleksij Rempel      subnode of the first (parent) PHY.
88d9cc193cSOleksij Rempel
89d9cc193cSOleksij Rempel    properties:
90d9cc193cSOleksij Rempel      reg:
91d9cc193cSOleksij Rempel        minimum: 0
92*2f9caba9SWei Fang        maximum: 31
93d9cc193cSOleksij Rempel        description:
9452b2fe45SWei Fang          The ID number for the child PHY. Should be +1 of parent PHY.
95d9cc193cSOleksij Rempel
96d9cc193cSOleksij Rempel    required:
97d9cc193cSOleksij Rempel      - reg
98d9cc193cSOleksij Rempel
99d9cc193cSOleksij RempelunevaluatedProperties: false
100d9cc193cSOleksij Rempel
101d9cc193cSOleksij Rempelexamples:
102d9cc193cSOleksij Rempel  - |
103d9cc193cSOleksij Rempel    mdio {
104d9cc193cSOleksij Rempel        #address-cells = <1>;
105d9cc193cSOleksij Rempel        #size-cells = <0>;
106d9cc193cSOleksij Rempel
107d9cc193cSOleksij Rempel        tja1101_phy0: ethernet-phy@4 {
108d9cc193cSOleksij Rempel            compatible = "ethernet-phy-id0180.dc40";
109d9cc193cSOleksij Rempel            reg = <0x4>;
110d9cc193cSOleksij Rempel            nxp,rmii-refclk-in;
111d9cc193cSOleksij Rempel        };
112    };
113  - |
114    mdio {
115        #address-cells = <1>;
116        #size-cells = <0>;
117
118        tja1102_phy0: ethernet-phy@4 {
119            reg = <0x4>;
120            #address-cells = <1>;
121            #size-cells = <0>;
122
123            tja1102_phy1: ethernet-phy@5 {
124                reg = <0x5>;
125            };
126        };
127    };
128