[source] mvebu: add switch node to clearfog

LEDE Commits lede-commits at lists.infradead.org
Mon Sep 26 04:29:23 PDT 2016


jogo pushed a commit to source.git, branch master:
https://git.lede-project.org/c359d7e81bd0f73bd3931abf5d87589a97cc37df

commit c359d7e81bd0f73bd3931abf5d87589a97cc37df
Author: Jonas Gorski <jonas.gorski at gmail.com>
AuthorDate: Sun Sep 25 13:34:10 2016 +0200

    mvebu: add switch node to clearfog
    
    Add a switch node to clearfog to probe and initialize it on Clearfog
    Pro. This make the switch work and allows using all six switch ports.
    
    Signed-off-by: Jonas Gorski <jonas.gorski at gmail.com>
    Acked-by: Felix Fietkau <nbd at nbd.name>
---
 target/linux/mvebu/image/Makefile                   |  2 +-
 .../patches-4.4/209-clearfog_switch_node.patch      | 21 +++++++++++++++++++++
 2 files changed, 22 insertions(+), 1 deletion(-)

diff --git a/target/linux/mvebu/image/Makefile b/target/linux/mvebu/image/Makefile
index 7d58ed7..377f098 100644
--- a/target/linux/mvebu/image/Makefile
+++ b/target/linux/mvebu/image/Makefile
@@ -175,7 +175,7 @@ define Device/armada-388-clearfog
   KERNEL_INSTALL := 1
   KERNEL := dtb | kernel-bin
   DEVICE_TITLE := SolidRun ClearFog
-  DEVICE_PACKAGES := mkf2fs e2fsprogs
+  DEVICE_PACKAGES := mkf2fs e2fsprogs swconfig
   IMAGES := bundle.tar.gz sdcard.img.gz
   IMAGE/bundle.tar.gz := clearfog-bundle
   IMAGE/sdcard.img.gz := boot-scr | boot-img | sdcard-img | gzip
diff --git a/target/linux/mvebu/patches-4.4/209-clearfog_switch_node.patch b/target/linux/mvebu/patches-4.4/209-clearfog_switch_node.patch
new file mode 100644
index 0000000..55494d0
--- /dev/null
+++ b/target/linux/mvebu/patches-4.4/209-clearfog_switch_node.patch
@@ -0,0 +1,21 @@
+--- a/arch/arm/boot/dts/armada-388-clearfog.dts
++++ b/arch/arm/boot/dts/armada-388-clearfog.dts
+@@ -430,6 +430,18 @@
+ 		};
+ 	};
+ 
++	mvsw61xx {
++		#address-cells = <1>;
++		#size-cells = <0>;
++		compatible = "marvell,88e6176";
++		status = "okay";
++		reg = <0x4>;
++		is-indirect;
++
++		mii-bus = <&mdio>;
++		cpu-port-0 = <5>;
++	};
++
+ 	gpio-keys {
+ 		compatible = "gpio-keys";
+ 		pinctrl-0 = <&rear_button_pins>;



More information about the lede-commits mailing list