[OpenWrt-Devel] [PATCH 2/2] brcm63xx: backport and enable DT spi-gpio no CS support

Álvaro Fernández Rojas noltari at gmail.com
Fri Feb 27 15:31:52 EST 2015


Signed-off-by: Álvaro Fernández Rojas <noltari at gmail.com>
---
 target/linux/brcm63xx/config-3.14        | 1 +
 target/linux/brcm63xx/config-3.18        | 1 +
 target/linux/brcm63xx/dts/ct-6373.dts    | 6 ++----
 target/linux/brcm63xx/dts/nb4-fxc-r1.dts | 6 ++----
 target/linux/brcm63xx/dts/nb4-ser-r0.dts | 6 ++----
 5 files changed, 8 insertions(+), 12 deletions(-)

diff --git a/target/linux/brcm63xx/config-3.14 b/target/linux/brcm63xx/config-3.14
index 390d4ec..eaf9774 100644
--- a/target/linux/brcm63xx/config-3.14
+++ b/target/linux/brcm63xx/config-3.14
@@ -76,6 +76,7 @@ CONFIG_GENERIC_IRQ_SHOW=y
 CONFIG_GENERIC_PCI_IOMAP=y
 CONFIG_GENERIC_SMP_IDLE_THREAD=y
 CONFIG_GPIOLIB=y
+CONFIG_GPIO_74X164=y
 CONFIG_GPIO_BCM63XX=y
 CONFIG_GPIO_DEVRES=y
 CONFIG_GPIO_GENERIC=y
diff --git a/target/linux/brcm63xx/config-3.18 b/target/linux/brcm63xx/config-3.18
index 5087033..912dd7d 100644
--- a/target/linux/brcm63xx/config-3.18
+++ b/target/linux/brcm63xx/config-3.18
@@ -80,6 +80,7 @@ CONFIG_GENERIC_IRQ_SHOW=y
 CONFIG_GENERIC_PCI_IOMAP=y
 CONFIG_GENERIC_SMP_IDLE_THREAD=y
 CONFIG_GPIOLIB=y
+CONFIG_GPIO_74X164=y
 CONFIG_GPIO_BCM63XX=y
 CONFIG_GPIO_DEVRES=y
 CONFIG_GPIO_GENERIC=y
diff --git a/target/linux/brcm63xx/dts/ct-6373.dts b/target/linux/brcm63xx/dts/ct-6373.dts
index 3a4079b..b8be39d 100644
--- a/target/linux/brcm63xx/dts/ct-6373.dts
+++ b/target/linux/brcm63xx/dts/ct-6373.dts
@@ -5,7 +5,7 @@
 / {
 	model = "Comtrend CT-6373";
 	compatible = "comtrend,ct-6373", "brcm,bcm6358";
-/*
+
 	spi-gpio {
 		#address-cells = <1>;
 		#size-cells = <1>;
@@ -25,7 +25,7 @@
 			#gpio-cells = <2>;
 		};
 	};
-*/
+
 	gpio-keys-polled {
 		compatible = "gpio-keys-polled";
 		#address-cells = <1>;
@@ -56,7 +56,6 @@
 			label = "CT6373-1:green:wlan";
 			gpios = <&gpio0 9 1>;
 		};
-/*
 		dsl_green {
 			label = "CT6373-1:green:adsl";
 			gpios = <&hc595 0 1>;
@@ -73,7 +72,6 @@
 			label = "CT6373-1:green:fxs2";
 			gpios = <&hc595 3 1>;
 		};
-*/
 	};
 };
 
diff --git a/target/linux/brcm63xx/dts/nb4-fxc-r1.dts b/target/linux/brcm63xx/dts/nb4-fxc-r1.dts
index e984f53..0e9cc24 100644
--- a/target/linux/brcm63xx/dts/nb4-fxc-r1.dts
+++ b/target/linux/brcm63xx/dts/nb4-fxc-r1.dts
@@ -5,7 +5,7 @@
 / {
 	model = "SFR Neuf Box 4 (Foxconn)";
 	compatible = "sfr,nb4-fxc-r1", "brcm,bcm6358";
-/*
+
 	spi-gpio {
 		#address-cells = <1>;
 		#size-cells = <1>;
@@ -25,7 +25,7 @@
 			#gpio-cells = <2>;
 		};
 	};
-*/
+
 	gpio-keys-polled {
 		compatible = "gpio-keys-polled";
 		#address-cells = <1>;
@@ -78,7 +78,6 @@
 			label = "NB4-FXC-r1:green:service";
 			gpios = <&gpio0 30 0>;
 		};
-/*
 		alarm_white {
 			label = "NB4-FXC-r1:white:alarm";
 			gpios = <&hc595 0 1>;
@@ -95,6 +94,5 @@
 			label = "NB4-FXC-r0:white:adsl";
 			gpios = <&hc595 4 1>;
 		};
-*/
 	};
 };
diff --git a/target/linux/brcm63xx/dts/nb4-ser-r0.dts b/target/linux/brcm63xx/dts/nb4-ser-r0.dts
index 1bacaeb..d7abbf1 100644
--- a/target/linux/brcm63xx/dts/nb4-ser-r0.dts
+++ b/target/linux/brcm63xx/dts/nb4-ser-r0.dts
@@ -5,7 +5,7 @@
 / {
 	model = "SFR Neuf Box 4 (Sercomm)";
 	compatible = "sfr,nb4-ser-r0", "brcm,bcm6358";
-/*
+
 	spi-gpio {
 		#address-cells = <1>;
 		#size-cells = <1>;
@@ -25,7 +25,7 @@
 			#gpio-cells = <2>;
 		};
 	};
-*/
+
 	gpio-keys-polled {
 		compatible = "gpio-keys-polled";
 		#address-cells = <1>;
@@ -78,7 +78,6 @@
 			label = "NB4-SER-r0:green:service";
 			gpios = <&gpio0 30 1>;
 		};
-/*
 		alarm_white {
 			label = "NB4-SER-r0:white:alarm";
 			gpios = <&hc595 0 1>;
@@ -95,6 +94,5 @@
 			label = "NB4-SER-r0:white:adsl";
 			gpios = <&hc595 4 1>;
 		};
-*/
 	};
 };
-- 
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list