net:phy:motorcomm: support modifying RGMII_TX_CLK delay train from dts
authorSamin Guo <samin.guo@starfivetech.com>
Tue, 1 Nov 2022 11:03:46 +0000 (19:03 +0800)
committerSamin Guo <samin.guo@starfivetech.com>
Tue, 1 Nov 2022 11:03:46 +0000 (19:03 +0800)
commit9cfd98c804906e4233650780271426825d2e4edb
tree2c8a9d5f886d620a113c121c3989fb140625dd94
parentf960eb1402bcd993cc55105f27f9a7f393e41a68
net:phy:motorcomm: support modifying RGMII_TX_CLK delay train from dts

support use original or inverted RGMII_TX_CLK delay train.
10M/100M/1000M can be configured independently.

tx_inverted_xx = val;

for example:
&gmac0 {
    #address-cells = <1>;
    #size-cells = <0>;
    phy0: ethernet-phy@0 {
    tx_inverted_10 = <0>;
    tx_inverted_100 = <1>;
    tx_inverted_1000 = <1>;
    };
};

0: original (default)
1: inverted

Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
drivers/net/phy/motorcomm.c