diff --git a/iopsys-brcm63xx-arm/base-files/etc/board-db/boards/WE7202242SA b/iopsys-brcm63xx-arm/base-files/etc/board-db/boards/WE7202242SA index 7c9c746796e6fac905baff4b59ded0d5710ee562..3c8584f8f499be857a4158d5dd6a4c4760c08aae 100644 --- a/iopsys-brcm63xx-arm/base-files/etc/board-db/boards/WE7202242SA +++ b/iopsys-brcm63xx-arm/base-files/etc/board-db/boards/WE7202242SA @@ -23,3 +23,125 @@ config board 'board' option adslWanPort '' option vdslWanPort '' option wpsButtonGpio '0' + +############################################################################### +# +# Button config, start +# +############### gpio buttons, driver config +config gpio_button gpio_buttons + list buttons gpio_reset + list buttons gpio_wps + +config gpio_button gpio_reset + option addr 9 + option active low + +config gpio_button gpio_wps + option addr 4 + option active low + +############### mapping function button to driver button +config button RESET + list button gpio_reset + option minpress 5000 + option hotplug resetbutton + +# +# Button config , end +# +############################################################################### + +############################################################################### +# +# Led config, start +# +############### gpio led, driver config + +config gpio_led gpio_leds + list leds LOGO_red + list leds LOGO_green + list leds LOGO_blue + list leds WPS_blue + list leds WPS_red + +config gpio_led LOGO_red + #option sysfs_attr LOGO_red + option sysfs_attr Reserved_16 + option active hi + option mode led_linux + +config gpio_led LOGO_green + #option sysfs_attr LOGO_green + option sysfs_attr Reserved_17 + option active hi + option mode led_linux + +config gpio_led LOGO_blue + #option sysfs_attr LOGO_blue + option sysfs_attr Reserved_26 + option active hi + option mode led_linux + +config gpio_led WPS_blue + option sysfs_attr WPS_blue + option sysfs_attr Reserved_20 + option active hi + option mode led_linux + +config gpio_led WPS_red + option sysfs_attr WPS_red + option sysfs_attr Reserved_15 + option active hi + option mode led_linux + +################ mapping led function to driver led +config led_map led_map + list functions status + list functions internet + list functions wps + +config led_map led_status + list led_action_ok 'LOGO_green = ON' + list led_action_ok 'LOGO_red = OFF' + + list led_action_off 'LOGO_green = OFF' + list led_action_off 'LOGO_red = OFF' + + list led_action_notice 'LOGO_green = FLASH_SLOW' + list led_action_notice 'LOGO_red = FLASH_SLOW' + + list led_action_alert 'LOGO_green = OFF' + list led_action_alert 'LOGO_red = FLASH_SLOW' + + list led_action_error 'LOGO_green = OFF' + list led_action_error 'LOGO_red = FLASH_FAST' + +config led_map led_wps + list led_action_ok 'WPS_blue = ON' + list led_action_ok 'WPS_red = OFF' + + list led_action_off 'WPS_blue = OFF' + list led_action_off 'WPS_red = OFF' + + list led_action_notice 'WPS_blue = FLASH_SLOW' + list led_action_notice 'WPS_red = OFF' + + list led_action_alert 'WPS_blue = FLASH_FAST' + list led_action_alert 'WPS_red = OFF' + + list led_action_error 'WPS_blue = OFF' + list led_action_error 'WPS_red = FLASH_FAST' + +config led_map led_internet + list led_action_ok 'LOGO_blue = ON' + + list led_action_off 'LOGO_blue = OFF' + + list led_action_notice 'LOGO_blue = FLASH_SLOW' + + list led_action_alert 'LOGO_blue = FLASH_FAST' + + list led_action_alert 'LOGO_blue = FLASH_FAST' + + list led_action_eok 'LOGO_blue = ON' diff --git a/iopsys-brcm63xx-arm/disc/base-files/etc/config/buttons b/iopsys-brcm63xx-arm/disc/base-files/etc/config/buttons new file mode 100644 index 0000000000000000000000000000000000000000..7f49cb212b367977f0e8d44cbdc33ff8c4fbadac --- /dev/null +++ b/iopsys-brcm63xx-arm/disc/base-files/etc/config/buttons @@ -0,0 +1,5 @@ + +config button WPS + list button gpio_wps + option hotplug wpsbutton + option enable 1