This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to add driver to linux 3.14 for ethernet switch over SPI to CPSW (am335x)

Please help.

I can`t find documentacion for change interface from MDIO to SPI in DTS-file.

--

cpsw_emac1 {

    phy_id = <&davinci_mdio>, <1>; 
    phy-mode = "rgmii-txid";
    dual_emac_res_vlan = <2>;
};

--

We use Micrel KS8995 (in linux menu enabled this option) with am335x.

Spidev is work:

&spi1 {
    status = "okay";
    pinctrl-names = "default";
    pinctrl-0 = <&spi1_pins_default>;
    pinctrl-1 = <&spi1_pins_default>;
    spidev0: spi@0 {
        compatible = "spidev";
        reg = <0>;
        spi-max-frequency = <16000000>;
        spi-cpol;
        spi-cpha;
    };
};