aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel González Cabanelas <dgcbueu@gmail.com>2021-04-27 10:58:15 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2021-05-01 00:37:15 +0200
commit26a5aea9bc76ff17c2dae03f01ab39e7630da3cc (patch)
tree39facaa1cde35f9c5603479db4f450f825a08be5
parentd7956c57284624f4bc7b905d192c81e1d34576fe (diff)
downloadupstream-26a5aea9bc76ff17c2dae03f01ab39e7630da3cc.tar.gz
upstream-26a5aea9bc76ff17c2dae03f01ab39e7630da3cc.tar.bz2
upstream-26a5aea9bc76ff17c2dae03f01ab39e7630da3cc.zip
mvebu: LS421DE: improve pin configuration
The CLK125 output pin at the ethernet PHY is connected via capacitor to GND and nowhere else. Disable it. Also tune the LED masks. The MPP56 and MPP60 pins at the SoC are conected to the μPD720202 USB3.0 chip: - MPP56: wired to PCIe CLKREQ# (out) - MPP60: wired to PCIe RESET# (in) Configure the pcie pinmux for these pins. Signed-off-by: Daniel González Cabanelas <dgcbueu@gmail.com>
-rw-r--r--target/linux/mvebu/files/arch/arm/boot/dts/armada-370-buffalo-ls421de.dts15
1 files changed, 12 insertions, 3 deletions
diff --git a/target/linux/mvebu/files/arch/arm/boot/dts/armada-370-buffalo-ls421de.dts b/target/linux/mvebu/files/arch/arm/boot/dts/armada-370-buffalo-ls421de.dts
index 4e176554c6..59400839a7 100644
--- a/target/linux/mvebu/files/arch/arm/boot/dts/armada-370-buffalo-ls421de.dts
+++ b/target/linux/mvebu/files/arch/arm/boot/dts/armada-370-buffalo-ls421de.dts
@@ -266,15 +266,19 @@
ethphy0: ethernet-phy@0 { /* Marvell 88E1518 */
reg = <0>;
- marvell,reg-init = <0x3 0x10 0x1 0x1991>, /* LED function */
- <0x3 0x11 0x1 0x4401>, /* LED polarity */
- <0x3 0x12 0x1 0x4905>; /* LED timer */
+ marvell,reg-init = <0x2 0x10 0xffff 0x0006>, /* disable CLK125 */
+ <0x3 0x10 0x0000 0x1991>, /* LED function */
+ <0x3 0x11 0x0000 0x4401>, /* LED polarity */
+ <0x3 0x12 0x0000 0x4905>; /* LED timer */
#thermal-sensor-cells = <0>;
};
};
&pciec {
status = "okay";
+ pinctrl-0 = <&pmx_pcie>;
+ pinctrl-names = "default";
+
/* Connected to uPD720202 USB 3.0 Host */
pcie@1,0 {
status = "okay";
@@ -436,4 +440,9 @@
marvell,pins = "mpp55", "mpp57", "mpp62";
marvell,function = "gpio";
};
+
+ pmx_pcie: pmx-pcie {
+ marvell,pins = "mpp56", "mpp60";
+ marvell,function = "pcie";
+ };
};