#define DIR825C1_GPIO_LED_BLUE_PLANET 18
#define DIR825C1_GPIO_LED_WIFI_BGN 13
+#define DIR825C1_GPIO_WAN_LED_ENABLE 20
+
#define DIR825C1_GPIO_BTN_RESET 17
#define DIR825C1_GPIO_BTN_WPS 16
.active_low = 1,
},
{
- .name = "d-link:blue:planet",
- .gpio = DIR825C1_GPIO_LED_BLUE_PLANET,
- .active_low = 1,
- }, {
.name = "d-link:blue:wifi_bgn",
.gpio = DIR825C1_GPIO_LED_WIFI_BGN,
.active_low = 1,
};
static struct ar8327_led_cfg dir825c1_ar8327_led_cfg = {
- .led_ctrl0 = 0xc737c737,
- .led_ctrl1 = 0x00000000,
+ .led_ctrl0 = 0x00000000,
+ .led_ctrl1 = 0xc737c737,
.led_ctrl2 = 0x00000000,
- .led_ctrl3 = 0x0030c300,
- .open_drain = false,
+ .led_ctrl3 = 0x00c30c00,
+ .open_drain = true,
};
static struct ar8327_platform_data dir825c1_ar8327_data = {
ath79_gpio_output_select(DIR825C1_GPIO_LED_BLUE_USB,
AR934X_GPIO_OUT_GPIO);
+ gpio_request_one(DIR825C1_GPIO_WAN_LED_ENABLE,
+ GPIOF_OUT_INIT_LOW, "WAN LED enable");
+
ath79_register_leds_gpio(-1, ARRAY_SIZE(dir825c1_leds_gpio),
dir825c1_leds_gpio);