1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0+ 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/net/nxp,tja11xx.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 7c66ec88fSEmmanuel Vadottitle: NXP TJA11xx PHY 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10c66ec88fSEmmanuel Vadot - Andrew Lunn <andrew@lunn.ch> 11c66ec88fSEmmanuel Vadot - Florian Fainelli <f.fainelli@gmail.com> 12c66ec88fSEmmanuel Vadot - Heiner Kallweit <hkallweit1@gmail.com> 13c66ec88fSEmmanuel Vadot 14c66ec88fSEmmanuel Vadotdescription: 15c66ec88fSEmmanuel Vadot Bindings for NXP TJA11xx automotive PHYs 16c66ec88fSEmmanuel Vadot 17*0e8011faSEmmanuel Vadotproperties: 18*0e8011faSEmmanuel Vadot compatible: 19*0e8011faSEmmanuel Vadot enum: 20*0e8011faSEmmanuel Vadot - ethernet-phy-id0180.dc40 21*0e8011faSEmmanuel Vadot - ethernet-phy-id0180.dc41 22*0e8011faSEmmanuel Vadot - ethernet-phy-id0180.dc48 23*0e8011faSEmmanuel Vadot - ethernet-phy-id0180.dd00 24*0e8011faSEmmanuel Vadot - ethernet-phy-id0180.dd01 25*0e8011faSEmmanuel Vadot - ethernet-phy-id0180.dd02 26*0e8011faSEmmanuel Vadot - ethernet-phy-id0180.dc80 27*0e8011faSEmmanuel Vadot - ethernet-phy-id0180.dc82 28*0e8011faSEmmanuel Vadot - ethernet-phy-id001b.b010 29*0e8011faSEmmanuel Vadot - ethernet-phy-id001b.b013 30*0e8011faSEmmanuel Vadot - ethernet-phy-id001b.b030 31*0e8011faSEmmanuel Vadot - ethernet-phy-id001b.b031 32*0e8011faSEmmanuel Vadot 33c66ec88fSEmmanuel VadotallOf: 34c66ec88fSEmmanuel Vadot - $ref: ethernet-phy.yaml# 35*0e8011faSEmmanuel Vadot - if: 36c66ec88fSEmmanuel Vadot properties: 37*0e8011faSEmmanuel Vadot compatible: 38*0e8011faSEmmanuel Vadot contains: 39*0e8011faSEmmanuel Vadot enum: 40*0e8011faSEmmanuel Vadot - ethernet-phy-id0180.dc40 41*0e8011faSEmmanuel Vadot - ethernet-phy-id0180.dc41 42*0e8011faSEmmanuel Vadot - ethernet-phy-id0180.dc48 43*0e8011faSEmmanuel Vadot - ethernet-phy-id0180.dd00 44*0e8011faSEmmanuel Vadot - ethernet-phy-id0180.dd01 45*0e8011faSEmmanuel Vadot - ethernet-phy-id0180.dd02 46c66ec88fSEmmanuel Vadot 47*0e8011faSEmmanuel Vadot then: 48*0e8011faSEmmanuel Vadot properties: 497ef62cebSEmmanuel Vadot nxp,rmii-refclk-in: 507ef62cebSEmmanuel Vadot type: boolean 517ef62cebSEmmanuel Vadot description: | 527ef62cebSEmmanuel Vadot The REF_CLK is provided for both transmitted and received data 537ef62cebSEmmanuel Vadot in RMII mode. This clock signal is provided by the PHY and is 547ef62cebSEmmanuel Vadot typically derived from an external 25MHz crystal. Alternatively, 557ef62cebSEmmanuel Vadot a 50MHz clock signal generated by an external oscillator can be 567ef62cebSEmmanuel Vadot connected to pin REF_CLK. A third option is to connect a 25MHz 577ef62cebSEmmanuel Vadot clock to pin CLK_IN_OUT. So, the REF_CLK should be configured 587ef62cebSEmmanuel Vadot as input or output according to the actual circuit connection. 597ef62cebSEmmanuel Vadot If present, indicates that the REF_CLK will be configured as 607ef62cebSEmmanuel Vadot interface reference clock input when RMII mode enabled. 617ef62cebSEmmanuel Vadot If not present, the REF_CLK will be configured as interface 627ef62cebSEmmanuel Vadot reference clock output when RMII mode enabled. 637ef62cebSEmmanuel Vadot Only supported on TJA1100 and TJA1101. 647ef62cebSEmmanuel Vadot 65*0e8011faSEmmanuel VadotpatternProperties: 66*0e8011faSEmmanuel Vadot "^ethernet-phy@[0-9a-f]+$": 67*0e8011faSEmmanuel Vadot type: object 68*0e8011faSEmmanuel Vadot additionalProperties: false 69*0e8011faSEmmanuel Vadot description: | 70*0e8011faSEmmanuel Vadot Some packages have multiple PHYs. Secondary PHY should be defines as 71*0e8011faSEmmanuel Vadot subnode of the first (parent) PHY. 72*0e8011faSEmmanuel Vadot 73*0e8011faSEmmanuel Vadot properties: 74*0e8011faSEmmanuel Vadot reg: 75*0e8011faSEmmanuel Vadot minimum: 0 76*0e8011faSEmmanuel Vadot maximum: 31 77*0e8011faSEmmanuel Vadot description: 78*0e8011faSEmmanuel Vadot The ID number for the child PHY. Should be +1 of parent PHY. 79*0e8011faSEmmanuel Vadot 80c66ec88fSEmmanuel Vadot required: 81c66ec88fSEmmanuel Vadot - reg 82c66ec88fSEmmanuel Vadot 836be33864SEmmanuel VadotunevaluatedProperties: false 846be33864SEmmanuel Vadot 85c66ec88fSEmmanuel Vadotexamples: 86c66ec88fSEmmanuel Vadot - | 87c66ec88fSEmmanuel Vadot mdio { 88c66ec88fSEmmanuel Vadot #address-cells = <1>; 89c66ec88fSEmmanuel Vadot #size-cells = <0>; 90c66ec88fSEmmanuel Vadot 91c66ec88fSEmmanuel Vadot tja1101_phy0: ethernet-phy@4 { 92*0e8011faSEmmanuel Vadot compatible = "ethernet-phy-id0180.dc40"; 93c66ec88fSEmmanuel Vadot reg = <0x4>; 947ef62cebSEmmanuel Vadot nxp,rmii-refclk-in; 95c66ec88fSEmmanuel Vadot }; 96c66ec88fSEmmanuel Vadot }; 97c66ec88fSEmmanuel Vadot - | 98c66ec88fSEmmanuel Vadot mdio { 99c66ec88fSEmmanuel Vadot #address-cells = <1>; 100c66ec88fSEmmanuel Vadot #size-cells = <0>; 101c66ec88fSEmmanuel Vadot 102c66ec88fSEmmanuel Vadot tja1102_phy0: ethernet-phy@4 { 103c66ec88fSEmmanuel Vadot reg = <0x4>; 104c66ec88fSEmmanuel Vadot #address-cells = <1>; 105c66ec88fSEmmanuel Vadot #size-cells = <0>; 106c66ec88fSEmmanuel Vadot 107c66ec88fSEmmanuel Vadot tja1102_phy1: ethernet-phy@5 { 108c66ec88fSEmmanuel Vadot reg = <0x5>; 109c66ec88fSEmmanuel Vadot }; 110c66ec88fSEmmanuel Vadot }; 111c66ec88fSEmmanuel Vadot }; 112