From: Mathias Kresin Date: Sat, 26 Jan 2019 08:17:41 +0000 (+0100) Subject: gemini: drop Teltonika RUT1xx artifacts X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fstaging%2Fdedeckeh.git;a=commitdiff_plain;h=67d39c03ec751a7b805a2c4ff82b5736266291b5 gemini: drop Teltonika RUT1xx artifacts Support for the Teltonika RUT1xx was added with the switch to kernel 4.4. Hidding such changes in a kernel switch commit is the wrong way and the support for the Teltonika RUT1xx is pretty much incomplete. Signed-off-by: Mathias Kresin --- diff --git a/target/linux/gemini/image/Makefile b/target/linux/gemini/image/Makefile index aca6e11df2..14e92ad71d 100644 --- a/target/linux/gemini/image/Makefile +++ b/target/linux/gemini/image/Makefile @@ -147,13 +147,6 @@ define Device/raidsonic_ib-4220-b endef TARGET_DEVICES += raidsonic_ib-4220-b -define Device/teltonika_rut1xx - DEVICE_TITLE := Teltonika RUT1xx - DEVICE_DTS := gemini-rut1xx - DEVICE_PACKAGES := $(GEMINI_NAS_PACKAGES) -endef -TARGET_DEVICES += teltonika_rut1xx - # The wiliboard images need some changes to be functional and buildable. # # The dts would need to use the ecoscentric,redboot-fis-partitions partition diff --git a/target/linux/gemini/patches-4.14/0012-ARM-dts-Add-ethernet-PHYs-to-the-a-bunch-of-Geminis.patch b/target/linux/gemini/patches-4.14/0012-ARM-dts-Add-ethernet-PHYs-to-the-a-bunch-of-Geminis.patch index db701e3e99..2549ea3151 100644 --- a/target/linux/gemini/patches-4.14/0012-ARM-dts-Add-ethernet-PHYs-to-the-a-bunch-of-Geminis.patch +++ b/target/linux/gemini/patches-4.14/0012-ARM-dts-Add-ethernet-PHYs-to-the-a-bunch-of-Geminis.patch @@ -13,7 +13,6 @@ Reviewed-by: Andrew Lunn Signed-off-by: Linus Walleij --- arch/arm/boot/dts/gemini-nas4220b.dts | 13 +++++++++++++ - arch/arm/boot/dts/gemini-rut1xx.dts | 13 +++++++++++++ arch/arm/boot/dts/gemini-wbd111.dts | 13 +++++++++++++ arch/arm/boot/dts/gemini-wbd222.dts | 18 ++++++++++++++++++ 4 files changed, 57 insertions(+) @@ -24,28 +23,6 @@ Signed-off-by: Linus Walleij }; }; -+ mdio0: ethernet-phy { -+ compatible = "virtual,mdio-gpio"; -+ gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */ -+ <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */ -+ #address-cells = <1>; -+ #size-cells = <0>; -+ -+ phy0: ethernet-phy@1 { -+ reg = <1>; -+ device_type = "ethernet-phy"; -+ }; -+ }; -+ - soc { - flash@30000000 { - status = "okay"; ---- a/arch/arm/boot/dts/gemini-rut1xx.dts -+++ b/arch/arm/boot/dts/gemini-rut1xx.dts -@@ -58,6 +58,19 @@ - }; - }; - + mdio0: ethernet-phy { + compatible = "virtual,mdio-gpio"; + gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */ diff --git a/target/linux/gemini/patches-4.14/0031-ARM-dts-Add-the-FOTG210-USB-host-to-Gemini.patch b/target/linux/gemini/patches-4.14/0031-ARM-dts-Add-the-FOTG210-USB-host-to-Gemini.patch index cb6fdb8752..d5544a1cb5 100644 --- a/target/linux/gemini/patches-4.14/0031-ARM-dts-Add-the-FOTG210-USB-host-to-Gemini.patch +++ b/target/linux/gemini/patches-4.14/0031-ARM-dts-Add-the-FOTG210-USB-host-to-Gemini.patch @@ -19,7 +19,6 @@ the patch is only included in the series for context. --- arch/arm/boot/dts/gemini-dlink-dir-685.dts | 8 ++++++++ arch/arm/boot/dts/gemini-nas4220b.dts | 8 ++++++++ - arch/arm/boot/dts/gemini-rut1xx.dts | 20 ++++++++++++++++++++ arch/arm/boot/dts/gemini-wbd111.dts | 20 ++++++++++++++++++++ arch/arm/boot/dts/gemini-wbd222.dts | 21 +++++++++++++++++++++ arch/arm/boot/dts/gemini.dtsi | 26 ++++++++++++++++++++++++++ @@ -54,34 +53,6 @@ the patch is only included in the series for context. + + usb@69000000 { + status = "okay"; -+ }; - }; - }; ---- a/arch/arm/boot/dts/gemini-rut1xx.dts -+++ b/arch/arm/boot/dts/gemini-rut1xx.dts -@@ -114,5 +114,25 @@ - pinctrl-names = "default"; - pinctrl-0 = <&gpio1_default_pins>; - }; -+ -+ ethernet@60000000 { -+ status = "okay"; -+ -+ ethernet-port@0 { -+ phy-mode = "rgmii"; -+ phy-handle = <&phy0>; -+ }; -+ ethernet-port@1 { -+ /* Not used in this platform */ -+ }; -+ }; -+ -+ usb@68000000 { -+ status = "okay"; -+ }; -+ -+ usb@69000000 { -+ status = "okay"; + }; }; };