* The left most mini-PCIe (USB) slot (the one attached to SIM2) can be power-cycled by setting GPIO 0 to high/low. I have no strong opinion on the name, but since the slot can be used for other things than modems I went for usb2.
* The D240 only needs the MT76x2 module, so update makefile to reflect this. Note that until the default mt7620 target is updated, then kmod-mt76 (and thus kmod-mt7603) will be selected by default. Signed-off-by: Kristian Evensen <kristian.even...@gmail.com> --- target/linux/ramips/dts/D240.dts | 14 ++++++++++++++ target/linux/ramips/image/mt7620.mk | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/target/linux/ramips/dts/D240.dts b/target/linux/ramips/dts/D240.dts index ef45d38..4abf7f5 100644 --- a/target/linux/ramips/dts/D240.dts +++ b/target/linux/ramips/dts/D240.dts @@ -46,6 +46,20 @@ bootargs = "console=ttyS0,115200"; }; + gpio-export { + compatible = "gpio-export"; + #size-cells = <0>; + /* + * The modem ("usb port") connected with the SIM2 slot can be power + * controlled by setting gpio 0 to high/low. + */ + usb2 { + gpio-export,name = "usb2"; + gpio-export,output = <GPIO_ACTIVE_LOW>; + gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; + }; + }; + gpio-leds { compatible = "gpio-leds"; diff --git a/target/linux/ramips/image/mt7620.mk b/target/linux/ramips/image/mt7620.mk index 4a76ab3..0410a9a 100644 --- a/target/linux/ramips/image/mt7620.mk +++ b/target/linux/ramips/image/mt7620.mk @@ -471,6 +471,6 @@ define Device/d240 DTS := D240 IMAGE_SIZE := $(ralink_default_fw_size_16M) DEVICE_TITLE := Sanlinking Technologies D240 - DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76 kmod-sdhci-mt7620 + DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76-core kmod-mt76x2 kmod-sdhci-mt7620 endef TARGET_DEVICES += d240 -- 2.9.3 _______________________________________________ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev