1c66ec88fSEmmanuel VadotQualcomm Ethernet ETHQOS device 2c66ec88fSEmmanuel Vadot 3c66ec88fSEmmanuel VadotThis documents dwmmac based ethernet device which supports Gigabit 4c66ec88fSEmmanuel Vadotethernet for version v2.3.0 onwards. 5c66ec88fSEmmanuel Vadot 6c66ec88fSEmmanuel VadotThis device has following properties: 7c66ec88fSEmmanuel Vadot 8c66ec88fSEmmanuel VadotRequired properties: 9c66ec88fSEmmanuel Vadot 10*c9ccf3a3SEmmanuel Vadot- compatible: Should be one of: 11*c9ccf3a3SEmmanuel Vadot "qcom,qcs404-ethqos" 12*c9ccf3a3SEmmanuel Vadot "qcom,sm8150-ethqos" 13c66ec88fSEmmanuel Vadot 14c66ec88fSEmmanuel Vadot- reg: Address and length of the register set for the device 15c66ec88fSEmmanuel Vadot 16c66ec88fSEmmanuel Vadot- reg-names: Should contain register names "stmmaceth", "rgmii" 17c66ec88fSEmmanuel Vadot 18c66ec88fSEmmanuel Vadot- clocks: Should contain phandle to clocks 19c66ec88fSEmmanuel Vadot 20c66ec88fSEmmanuel Vadot- clock-names: Should contain clock names "stmmaceth", "pclk", 21c66ec88fSEmmanuel Vadot "ptp_ref", "rgmii" 22c66ec88fSEmmanuel Vadot 23c66ec88fSEmmanuel Vadot- interrupts: Should contain phandle to interrupts 24c66ec88fSEmmanuel Vadot 25c66ec88fSEmmanuel Vadot- interrupt-names: Should contain interrupt names "macirq", "eth_lpi" 26c66ec88fSEmmanuel Vadot 27c66ec88fSEmmanuel VadotRest of the properties are defined in stmmac.txt file in same directory 28c66ec88fSEmmanuel Vadot 29c66ec88fSEmmanuel Vadot 30c66ec88fSEmmanuel VadotExample: 31c66ec88fSEmmanuel Vadot 32c66ec88fSEmmanuel Vadotethernet: ethernet@7a80000 { 33c66ec88fSEmmanuel Vadot compatible = "qcom,qcs404-ethqos"; 34c66ec88fSEmmanuel Vadot reg = <0x07a80000 0x10000>, 35c66ec88fSEmmanuel Vadot <0x07a96000 0x100>; 36c66ec88fSEmmanuel Vadot reg-names = "stmmaceth", "rgmii"; 37c66ec88fSEmmanuel Vadot clock-names = "stmmaceth", "pclk", "ptp_ref", "rgmii"; 38c66ec88fSEmmanuel Vadot clocks = <&gcc GCC_ETH_AXI_CLK>, 39c66ec88fSEmmanuel Vadot <&gcc GCC_ETH_SLAVE_AHB_CLK>, 40c66ec88fSEmmanuel Vadot <&gcc GCC_ETH_PTP_CLK>, 41c66ec88fSEmmanuel Vadot <&gcc GCC_ETH_RGMII_CLK>; 42c66ec88fSEmmanuel Vadot interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>, 43c66ec88fSEmmanuel Vadot <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>; 44c66ec88fSEmmanuel Vadot interrupt-names = "macirq", "eth_lpi"; 45c66ec88fSEmmanuel Vadot snps,reset-gpio = <&tlmm 60 GPIO_ACTIVE_LOW>; 46c66ec88fSEmmanuel Vadot snps,reset-active-low; 47c66ec88fSEmmanuel Vadot 48c66ec88fSEmmanuel Vadot snps,txpbl = <8>; 49c66ec88fSEmmanuel Vadot snps,rxpbl = <2>; 50c66ec88fSEmmanuel Vadot snps,aal; 51c66ec88fSEmmanuel Vadot snps,tso; 52c66ec88fSEmmanuel Vadot 53c66ec88fSEmmanuel Vadot phy-handle = <&phy1>; 54c66ec88fSEmmanuel Vadot phy-mode = "rgmii"; 55c66ec88fSEmmanuel Vadot 56c66ec88fSEmmanuel Vadot mdio { 57c66ec88fSEmmanuel Vadot #address-cells = <0x1>; 58c66ec88fSEmmanuel Vadot #size-cells = <0x0>; 59c66ec88fSEmmanuel Vadot compatible = "snps,dwmac-mdio"; 60c66ec88fSEmmanuel Vadot phy1: phy@4 { 61c66ec88fSEmmanuel Vadot device_type = "ethernet-phy"; 62c66ec88fSEmmanuel Vadot reg = <0x4>; 63c66ec88fSEmmanuel Vadot }; 64c66ec88fSEmmanuel Vadot }; 65c66ec88fSEmmanuel Vadot 66c66ec88fSEmmanuel Vadot}; 67