Skip to content

Commit

Permalink
MIPS: mscc: ocelot: add MIIM1 bus
Browse files Browse the repository at this point in the history
There is an additional MIIM (MDIO) bus in this SoC so let's declare it
in the dtsi.

This bus requires GPIO 14 and 15 pins that need to be muxed. There is no
support for internal PHY reset on this bus on the contrary of MIIM0 so
there is only one register address space and not two.

Signed-off-by: Quentin Schulz <quentin.schulz@bootlin.com>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/20014/
Cc: robh+dt@kernel.org
Cc: mark.rutland@arm.com
Cc: ralf@linux-mips.org
Cc: jhogan@kernel.org
Cc: linux-mips@linux-mips.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: thomas.petazzoni@bootlin.com
  • Loading branch information
Quentin Schulz authored and Paul Burton committed Jul 26, 2018
1 parent 49e5bb1 commit a0553e0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions arch/mips/boot/dts/mscc/ocelot.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,11 @@
pins = "GPIO_12", "GPIO_13";
function = "uart2";
};

miim1: miim1 {
pins = "GPIO_14", "GPIO_15";
function = "miim1";
};
};

mdio0: mdio@107009c {
Expand All @@ -201,5 +206,16 @@
reg = <3>;
};
};

mdio1: mdio@10700c0 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "mscc,ocelot-miim";
reg = <0x10700c0 0x24>;
interrupts = <15>;
pinctrl-names = "default";
pinctrl-0 = <&miim1>;
status = "disabled";
};
};
};

0 comments on commit a0553e0

Please sign in to comment.