ucidef_set_led_default "power" "POWER" "d105:red:power" "1"
set_usb_led "d105:green:usb"
;;
+ dcs-930l-b1)
+ ucidef_set_led_default "power" "POWER" "d-link:red:power" "1"
+ ucidef_set_led_netdev "wifi" "WiFi" "d-link:blue:wps"
+ ;;
dir-300-b1|\
dir-600-b1|\
dir-600-b2|\
all5003 | \
broadway | \
dcs-930| \
+ dcs-930l-b1| \
ht-tm02| \
ncs601w | \
wnce2001)
dcs-930 | dir-300-b1 | dir-600-b1 | dir-600-b2 | dir-610-a1 | dir-615-h1 | dir-615-d | dir-620-a1| dir-620-d1| dir-300-b7| dir-320-b1)
status_led="d-link:green:status"
;;
+ dcs-930l-b1)
+ status_led="d-link:red:power"
+ ;;
dir-645)
status_led="d-link:green:wps"
;;
*"DCS-930")
name="dcs-930"
;;
+ *"DCS-930L B1")
+ name="dcs-930l-b1"
+ ;;
*"DIR-300 B1")
name="dir-300-b1"
;;
d105 | \
dap-1350 | \
dcs-930 | \
+ dcs-930l-b1 | \
dir-300-b1 | \
dir-300-b7 | \
dir-320-b1 | \
--- /dev/null
+/dts-v1/;
+
+/include/ "rt5350.dtsi"
+
+/ {
+ compatible = "DCS-930L-B1", "ralink,rt5350-soc";
+ model = "D-Link DCS-930L B1";
+
+ palmbus@10000000 {
+ spi@b00 {
+ status = "okay";
+ m25p80@0 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "mx25l3205d";
+ reg = <0 0>;
+ linux,modalias = "m25p80", "s25fl064k";
+ spi-max-frequency = <10000000>;
+
+ partition@0 {
+ label = "u-boot";
+ reg = <0x0 0x30000>;
+ read-only;
+ };
+
+ partition@30000 {
+ label = "u-boot-env";
+ reg = <0x30000 0x10000>;
+ read-only;
+ };
+
+ factory: partition@40000 {
+ label = "factory";
+ reg = <0x40000 0x10000>;
+ read-only;
+ };
+
+ partition@50000 {
+ label = "firmware";
+ reg = <0x50000 0x3b0000>;
+ };
+ };
+ };
+ };
+
+ pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = "i2c", "jtag", "uartf", "led";
+ ralink,function = "gpio";
+ };
+ };
+ };
+
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
+ esw@10110000 {
+ ralink,portmap = <0x2f>;
+ };
+
+ wmac@10180000 {
+ ralink,mtd-eeprom = <&factory 0>;
+ };
+
+ ehci@101c0000 {
+ status = "okay";
+ };
+
+ ohci@101c1000 {
+ status = "okay";
+ };
+
+ gpio-leds {
+ compatible = "gpio-leds";
+ power {
+ label = "d-link:red:power";
+ gpios = <&gpio0 17 1>;
+ };
+ wps {
+ label = "d-link:blue:wps";
+ gpios = <&gpio0 19 1>;
+ };
+ };
+
+ gpio-keys-polled {
+ compatible = "gpio-keys-polled";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ poll-interval = <20>;
+ reset {
+ label = "reset";
+ gpios = <&gpio0 0 1>;
+ linux,code = <0x198>;
+ };
+ wps {
+ label = "wps";
+ gpios = <&gpio0 20 1>;
+ linux,code = <0x211>;
+ };
+ };
+};
endef
BuildFirmware/DCS930/initramfs=$(call BuildFirmware/OF/initramfs,$(1),$(2),$(3))
Image/Build/Profile/DCS930=$(call BuildFirmware/DCS930/$(1),$(1),dcs-930,DCS-930)
+Image/Build/Profile/DCS930LB1=$(call BuildFirmware/DCS930/$(1),$(1),dcs-930l-b1,DCS-930L-B1)
Image/Build/Profile/ESR-9753=$(call BuildFirmware/Default4M/$(1),$(1),esr-9753,ESR-9753)
$(call Image/Build/Profile/DAP1350,$(1))
$(call Image/Build/Profile/DAP1350WW,$(1))
$(call Image/Build/Profile/DCS930,$(1))
+ $(call Image/Build/Profile/DCS930LB1,$(1))
$(call Image/Build/Profile/ESR-9753,$(1))
$(call Image/Build/Profile/F7C027,$(1))
$(call Image/Build/Profile/F5D8235V2,$(1))
$(eval $(call Profile,DCS930))
+define Profile/DCS930LB1
+ NAME:=Dlink DCS-930L B1
+ PACKAGES:=kmod-video-core kmod-video-uvc \
+ kmod-sound-core kmod-usb-audio \
+ kmod-usb-core kmod-usb-ohci kmod-usb2
+endef
+
+define Profile/DCS930LB1/Description
+ Package set for Dlink DCS-930L B1 board
+endef
+
+$(eval $(call Profile,DCS930LB1))
+
define Profile/DIR610A1
NAME:=Dlink DIR-610 A1
PACKAGES:=kmod-ledtrig-netdev kmod-ledtrig-timer