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 FangpatternProperties: 66*2f9caba9SWei Fang "^ethernet-phy@[0-9a-f]+$": 67*2f9caba9SWei Fang type: object 68*2f9caba9SWei Fang additionalProperties: false 69*2f9caba9SWei Fang description: | 70*2f9caba9SWei Fang Some packages have multiple PHYs. Secondary PHY should be defines as 71*2f9caba9SWei Fang subnode of the first (parent) PHY. 72*2f9caba9SWei Fang 73*2f9caba9SWei Fang properties: 74*2f9caba9SWei Fang reg: 75*2f9caba9SWei Fang minimum: 0 76*2f9caba9SWei Fang maximum: 31 77*2f9caba9SWei Fang description: 78*2f9caba9SWei Fang The ID number for the child PHY. Should be +1 of parent PHY. 79*2f9caba9SWei Fang 80d9cc193cSOleksij Rempel required: 81d9cc193cSOleksij Rempel - reg 82d9cc193cSOleksij Rempel 836fdc6e23SRob HerringunevaluatedProperties: false 846fdc6e23SRob Herring 85d9cc193cSOleksij Rempelexamples: 86d9cc193cSOleksij Rempel - | 87d9cc193cSOleksij Rempel mdio { 88d9cc193cSOleksij Rempel #address-cells = <1>; 89d9cc193cSOleksij Rempel #size-cells = <0>; 90d9cc193cSOleksij Rempel 91d9cc193cSOleksij Rempel tja1101_phy0: ethernet-phy@4 { 92*2f9caba9SWei Fang compatible = "ethernet-phy-id0180.dc40"; 93d9cc193cSOleksij Rempel reg = <0x4>; 9452b2fe45SWei Fang nxp,rmii-refclk-in; 95d9cc193cSOleksij Rempel }; 96d9cc193cSOleksij Rempel }; 97d9cc193cSOleksij Rempel - | 98d9cc193cSOleksij Rempel mdio { 99d9cc193cSOleksij Rempel #address-cells = <1>; 100d9cc193cSOleksij Rempel #size-cells = <0>; 101d9cc193cSOleksij Rempel 102d9cc193cSOleksij Rempel tja1102_phy0: ethernet-phy@4 { 103d9cc193cSOleksij Rempel reg = <0x4>; 104d9cc193cSOleksij Rempel #address-cells = <1>; 105d9cc193cSOleksij Rempel #size-cells = <0>; 106d9cc193cSOleksij Rempel 107d9cc193cSOleksij Rempel tja1102_phy1: ethernet-phy@5 { 108d9cc193cSOleksij Rempel reg = <0x5>; 109d9cc193cSOleksij Rempel }; 110d9cc193cSOleksij Rempel }; 111d9cc193cSOleksij Rempel }; 112