problem of using sama5d36 with linux os for dsa (88e6095)

This forum is for users of Microchip MPUs and who are interested in using Linux OS.

Moderator: nferre

laozhu007
Posts: 1
Joined: Sun Apr 21, 2019 8:08 am

problem of using sama5d36 with linux os for dsa (88e6095)

Sun Apr 21, 2019 8:26 am

I'm using sama5d36 in linux os. The hardware environment is sama5d36 gmac port in mii mode and 3 chips of 88e69095 in triangle connections. Each 88e6095 port8 and port9 connect to another 88e6095. Three 88e6095 smi adds are 0x15, 0x16 and 0x17 respectively. Port10 of the chip with smi add 0x16 connect to sama5d36 gmac. I have plant the linux os and start up in spi flash, while the switches can't recognized by the cpu and os. How to modify the dts file? And whether the dsa driver need to be modified? pls give me some suggestion. Thank you very much!
User avatar
metel
Contact:
Location: Czech Republic
Posts: 1
Joined: Thu Mar 19, 2020 8:28 pm

Re: problem of using sama5d36 with linux os for dsa (88e6095)

Thu Mar 19, 2020 9:25 pm

Our environment is as follows:
- a switch (88e6097) connected to the smi bus at address 0x00 (single-mode addressing).
- mdio-gpio driver using the following pins: PB16 /* MDC */, PB17 /* MDIO */
- pin PB18 is connected to reset (88e6097)

It reports:
mdio-gpio mdio: ignoring dependency for device, assuming no driver

And our dts file contains:
[code]
ahb {
apb {
pinctrl@fffff400 {
board {
pinctrl_mdio3: mdio3_smi {
atmel,pins =
<AT91_PIOB 16 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP
AT91_PIOB 17 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
};

pinctrl_pinb18r: pinb18_rst {
atmel,pins =
<AT91_PIOB 18 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
};
};
};
};
};

mdio {
#address-cells = <1>;
#size-cells = <0>;

compatible = "virtual,mdio-gpio";

pinctrl-names = "default";
pinctrl-0 = <&pinctrl_mdio3>;

gpios = <&pioB 16 GPIO_ACTIVE_HIGH /* MDC */
&pioB 17 GPIO_ACTIVE_HIGH>; /* MDIO */

status = "okay";

switch0: switch0@0 {
compatible = "marvell,mv88e6085";
reg = <0>;
dsa,member = <0 0>;

pinctrl-names = "default";
pinctrl-0 = <&pinctrl_pinb18r>;
reset-gpios = <&pioB 18 GPIO_ACTIVE_LOW>;

ports {
#address-cells = <1>;
#size-cells = <0>;

port@0 {
reg = <0>;
ethernet = <&macb1>;
fixed-link {
speed = <10>;
full-duplex;
};
};

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

};

};
[/code]

Return to “LINUX”

Who is online

Users browsing this forum: No registered users and 5 guests