mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 01:59:02 +00:00
58f4667a37
New stm32 target introduces support for stm32mp1 based devices.
For now it includes an initial support of the STM32MP135F-DK device.
The specifications bellow only list supported features.
Specifications
--------------
SOC: STM32MP135FAF7
RAM: 512 MiB
Storage: SD Card
Ethernet: 2x 100 Mbps
Wireless: 2.4GHz Cypress CYW43455 (802.11b/g/n)
LEDs: Heartbeat (Blue)
Buttons: 1x Reset, 1x User (USER2)
USB: 4x 2.0 Type-A
Signed-off-by: Thomas Richard <thomas.richard@bootlin.com>
Link: https://github.com/openwrt/openwrt/pull/16716
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 851e7f77e4
)
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar <ynezz@true.cz>
59 lines
1.6 KiB
Diff
59 lines
1.6 KiB
Diff
From b255afeeb33efaa974b1b2454b1f58252d783b67 Mon Sep 17 00:00:00 2001
|
|
From: Christophe Roullier <christophe.roullier@foss.st.com>
|
|
Date: Mon, 10 Jun 2024 10:03:09 +0200
|
|
Subject: [PATCH 5/5] ARM: dts: stm32: add ethernet1 for STM32MP135F-DK board
|
|
|
|
Ethernet1: RMII with crystal
|
|
Ethernet2: RMII with no cristal, need "phy-supply" property to work,
|
|
today this property was managed by Ethernet glue, but should be present
|
|
and managed in PHY node. So I will push second Ethernet in next step.
|
|
|
|
PHYs used are SMSC (LAN8742A)
|
|
|
|
Signed-off-by: Christophe Roullier <christophe.roullier@foss.st.com>
|
|
Reviewed-by: Marek Vasut <marex@denx.de>
|
|
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
|
|
---
|
|
arch/arm/boot/dts/st/stm32mp135f-dk.dts | 23 +++++++++++++++++++++++
|
|
1 file changed, 23 insertions(+)
|
|
|
|
--- a/arch/arm/boot/dts/st/stm32mp135f-dk.dts
|
|
+++ b/arch/arm/boot/dts/st/stm32mp135f-dk.dts
|
|
@@ -19,6 +19,7 @@
|
|
compatible = "st,stm32mp135f-dk", "st,stm32mp135";
|
|
|
|
aliases {
|
|
+ ethernet0 = ðernet1;
|
|
serial0 = &uart4;
|
|
serial1 = &usart1;
|
|
serial2 = &uart8;
|
|
@@ -92,6 +93,28 @@
|
|
};
|
|
};
|
|
};
|
|
+
|
|
+ðernet1 {
|
|
+ status = "okay";
|
|
+ pinctrl-0 = <ð1_rmii_pins_a>;
|
|
+ pinctrl-1 = <ð1_rmii_sleep_pins_a>;
|
|
+ pinctrl-names = "default", "sleep";
|
|
+ phy-mode = "rmii";
|
|
+ phy-handle = <&phy0_eth1>;
|
|
+
|
|
+ mdio {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ compatible = "snps,dwmac-mdio";
|
|
+
|
|
+ phy0_eth1: ethernet-phy@0 {
|
|
+ compatible = "ethernet-phy-id0007.c131";
|
|
+ reg = <0>;
|
|
+ reset-gpios = <&mcp23017 9 GPIO_ACTIVE_LOW>;
|
|
+ wakeup-source;
|
|
+ };
|
|
+ };
|
|
+};
|
|
|
|
&i2c1 {
|
|
pinctrl-names = "default", "sleep";
|