From 8babac21a622927869ffd6c13d9169071c1cb8ad Mon Sep 17 00:00:00 2001
From: Josef Schlehofer <josef.schlehofer@nic.cz>
Date: Thu, 4 Aug 2022 16:58:14 +0200
Subject: [PATCH] patches/openwrt: enable driver for Turris 1.x switch chip

---
 ...2020-enable-driver-CONFIG_AT803X_PHY.patch | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 patches/openwrt/5.15-kernel-configuration/0006-mpc85xx-p2020-enable-driver-CONFIG_AT803X_PHY.patch

diff --git a/patches/openwrt/5.15-kernel-configuration/0006-mpc85xx-p2020-enable-driver-CONFIG_AT803X_PHY.patch b/patches/openwrt/5.15-kernel-configuration/0006-mpc85xx-p2020-enable-driver-CONFIG_AT803X_PHY.patch
new file mode 100644
index 000000000..fe43a84fc
--- /dev/null
+++ b/patches/openwrt/5.15-kernel-configuration/0006-mpc85xx-p2020-enable-driver-CONFIG_AT803X_PHY.patch
@@ -0,0 +1,25 @@
+From 74b4a34abfbab5fc1a3310951eaca9498409155a Mon Sep 17 00:00:00 2001
+From: Josef Schlehofer <pepe.schlehofer@gmail.com>
+Date: Thu, 4 Aug 2022 16:56:13 +0200
+Subject: [PATCH] mpc85xx: p2020 enable: driver CONFIG_AT803X_PHY
+
+This driver is for QCA8337N-AL3C chip, which is used as switch on Turris
+1.x routers
+
+Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
+---
+ target/linux/mpc85xx/p2020/config-default | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/target/linux/mpc85xx/p2020/config-default b/target/linux/mpc85xx/p2020/config-default
+index ef32280dac..e6df5f4f1f 100644
+--- a/target/linux/mpc85xx/p2020/config-default
++++ b/target/linux/mpc85xx/p2020/config-default
+@@ -1,3 +1,4 @@
++CONFIG_AT803X_PHY
+ CONFIG_CPU_RMAP=y
+ CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
+ CONFIG_GENERIC_IRQ_MIGRATION=y
+-- 
+2.34.1
+
-- 
GitLab