1# SPDX-License-Identifier: GPL-2.0+
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/net/nxp,tja11xx.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: NXP TJA11xx PHY
8
9maintainers:
10  - Andrew Lunn <andrew@lunn.ch>
11  - Florian Fainelli <f.fainelli@gmail.com>
12  - Heiner Kallweit <hkallweit1@gmail.com>
13
14description:
15  Bindings for NXP TJA11xx automotive PHYs
16
17allOf:
18  - $ref: ethernet-phy.yaml#
19
20patternProperties:
21  "^ethernet-phy@[0-9a-f]+$":
22    type: object
23    description: |
24      Some packages have multiple PHYs. Secondary PHY should be defines as
25      subnode of the first (parent) PHY.
26
27    properties:
28      reg:
29        minimum: 0
30        maximum: 31
31        description:
32          The ID number for the child PHY. Should be +1 of parent PHY.
33
34    required:
35      - reg
36
37examples:
38  - |
39    mdio {
40        #address-cells = <1>;
41        #size-cells = <0>;
42
43        tja1101_phy0: ethernet-phy@4 {
44            reg = <0x4>;
45        };
46    };
47  - |
48    mdio {
49        #address-cells = <1>;
50        #size-cells = <0>;
51
52        tja1102_phy0: ethernet-phy@4 {
53            reg = <0x4>;
54            #address-cells = <1>;
55            #size-cells = <0>;
56
57            tja1102_phy1: ethernet-phy@5 {
58                reg = <0x5>;
59            };
60        };
61    };
62