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.

AM3352: How to configure device tree for multi ethernet port using ksz9477

Part Number: AM3352

HI

On my custom board based on am3352 I have ksz9447 ethernet switch,

I'd like to configure my device tree for the same.

This is my current entry:

     ksz9477S: ksz9477@0 {
                compatible = "microchip,ksz9477";
                reg = <0>;

                /* Bus clock is 132 MHz.  previously 44000000*/
                spi-max-frequency = <1000000>;
                spi-cpha;
                spi-cpol;
                gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
                status = "okay";
                ports {
                        #address-cells = <1>;
                        #size-cells = <0>;

                        port@0 {
                                reg = <0>;
                                label = "lan0";
                        };

                        port@1 {
                                reg = <1>;
                                label = "lan1";
                        };

                        port@2 {
                                reg = <2>;
                                label = "lan2";
                        };

                        port@3 {
                                reg = <3>;
                                label = "lan3";
                        };
                        port@4 {
                                reg = <3>;

                         label = "lan3";
                        };


                        port@6 {

                                reg = <6>;
                                label = "cpu";
                                ethernet = <&davinci_mdio>;
                                fixed-link {
                                        speed = <1000>;
                                        full-duplex;
                                };
                        };
                };

However I can only see eth0 when the board boots.

Please find attached entire dts(decompiled from dtb).

  • Hi,

    Unfortunately TI will not be able to support this question on the ksz9447 external switch. Other users have managed to integrate switches to the AM335x and some have posted responses to the TI forum. I did a site:e2e.ti.com search and did not see a solution posted for the ksz9447. This switch does appear in another thread but the user was not having switching integration issues. It does look like the kernel has a driver for this switch. 

    I would recommend checking or searching the vendor's support forums to see if a solution might have need posted there.

    Best Regards,

    Schuyler

  • I'm using ksz9477 not ksz9447 I made a mistake in my description.

    Is support not available for this too? Please specify where to post in that case.

  • Hi,

    Unfortunately TI will be able to directly support. Hopefully the ksz9477 vendor has a support forum that might have suggested solutions.

    Best Regards,

    Schuyler