Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: mscc: ocelot: add MIIM1 bus

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

authored by

Quentin Schulz and committed by
Paul Burton
a0553e01 49e5bb13

+16
+16
arch/mips/boot/dts/mscc/ocelot.dtsi
··· 178 178 pins = "GPIO_12", "GPIO_13"; 179 179 function = "uart2"; 180 180 }; 181 + 182 + miim1: miim1 { 183 + pins = "GPIO_14", "GPIO_15"; 184 + function = "miim1"; 185 + }; 181 186 }; 182 187 183 188 mdio0: mdio@107009c { ··· 205 200 phy3: ethernet-phy@3 { 206 201 reg = <3>; 207 202 }; 203 + }; 204 + 205 + mdio1: mdio@10700c0 { 206 + #address-cells = <1>; 207 + #size-cells = <0>; 208 + compatible = "mscc,ocelot-miim"; 209 + reg = <0x10700c0 0x24>; 210 + interrupts = <15>; 211 + pinctrl-names = "default"; 212 + pinctrl-0 = <&miim1>; 213 + status = "disabled"; 208 214 }; 209 215 }; 210 216 };