summaryrefslogtreecommitdiff
path: root/target/linux/ramips
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2017-11-18 11:59:22 +0100
committerMathias Kresin <dev@kresin.me>2017-11-22 08:19:37 +0100
commit6cfa7e57887fe1b021cc50b4b7547d2e51240ac1 (patch)
tree30095e4832baa9b2ebde984c98bd4c264fe5959c /target/linux/ramips
parente626942c3318d4e814857b2f6f2863ccd55a0511 (diff)
downloadmtk-20170518-6cfa7e57887fe1b021cc50b4b7547d2e51240ac1.zip
mtk-20170518-6cfa7e57887fe1b021cc50b4b7547d2e51240ac1.tar.gz
mtk-20170518-6cfa7e57887fe1b021cc50b4b7547d2e51240ac1.tar.bz2
ramips: fix DCH-M225 support
Setting the pins of the uartf group to gpio+i2s at the time the i2c driver loads is to late for the WPS gpio button. The gpio-keys driver fails to load since the pin used by the WPS button is not yet set to GPIO. The WPS button with the rfkill keycode is essential for this wifi only board. Add the missing sound and i2c kernel modules corresponding to the device nodes. Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ramips')
-rw-r--r--target/linux/ramips/dts/DCH-M225.dts7
-rw-r--r--target/linux/ramips/image/mt7620.mk2
2 files changed, 7 insertions, 2 deletions
diff --git a/target/linux/ramips/dts/DCH-M225.dts b/target/linux/ramips/dts/DCH-M225.dts
index 3465c70..3c269a5 100644
--- a/target/linux/ramips/dts/DCH-M225.dts
+++ b/target/linux/ramips/dts/DCH-M225.dts
@@ -89,7 +89,7 @@
#sound-dai-cells = <0>;
status = "okay";
pinctrl-names = "default";
- pinctrl-0 = <&gpio_i2s_pins>, <&wm8960_mclk_pins>;
+ pinctrl-0 = <&wm8960_mclk_pins>;
};
&spi0 {
@@ -157,6 +157,11 @@
ralink,function = "gpio";
};
+ gpio_i2s {
+ ralink,group = "uartf";
+ ralink,function = "gpio i2s";
+ };
+
pa {
ralink,group = "pa";
ralink,function = "pa";
diff --git a/target/linux/ramips/image/mt7620.mk b/target/linux/ramips/image/mt7620.mk
index 1736d9f..af1bda4 100644
--- a/target/linux/ramips/image/mt7620.mk
+++ b/target/linux/ramips/image/mt7620.mk
@@ -445,7 +445,7 @@ define Device/dch-m225
seama-seal -m "signature=wapn22_dlink.2013gui_dap1320b" | \
check-size $$$$(IMAGE_SIZE)
DEVICE_TITLE := D-Link DCH-M225
- DEVICE_PACKAGES := kmod-mt76
+ DEVICE_PACKAGES := kmod-mt76 kmod-sound-core kmod-sound-mt7620 kmod-i2c-ralink
endef
TARGET_DEVICES += dch-m225