summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Fiore <mfiore@multitech.com>2014-10-08 10:45:55 -0500
committerMike Fiore <mfiore@multitech.com>2014-10-08 10:45:55 -0500
commit8be9080418b18941129e56b44f7c5218a5a73932 (patch)
tree80773acda0405ec395f06b5d49da1de60905e90a
parent72412963e66f4a2448fd87f455b33f3a5115f4bd (diff)
downloadmts-io-8be9080418b18941129e56b44f7c5218a5a73932.tar.gz
mts-io-8be9080418b18941129e56b44f7c5218a5a73932.tar.bz2
mts-io-8be9080418b18941129e56b44f7c5218a5a73932.zip
mts-io: remove mtt.c, mtcdp.c, mt100eocg.c
-rw-r--r--io-module/mt100eocg.c221
-rw-r--r--io-module/mtcdp.c310
-rw-r--r--io-module/mtr.c468
3 files changed, 0 insertions, 999 deletions
diff --git a/io-module/mt100eocg.c b/io-module/mt100eocg.c
deleted file mode 100644
index 8d2338d..0000000
--- a/io-module/mt100eocg.c
+++ /dev/null
@@ -1,221 +0,0 @@
-
-static struct gpio_pin gpio_pins_mt100eocg_0_0[] = {
- {
- .name = "ENIO",
- .pin = AT91_PIN_PC15,
- .direction = GPIO_DIR_OUTPUT,
- .output_value = 1,
- .use_pullup = 0,
- },
- {
- .name = "ETH0_ENABLED",
- .attr_name = "eth0-enabled",
- .pin = AT91_PIN_PB31,
- .direction = GPIO_DIR_OUTPUT,
- .output_value = 1,
- .use_pullup = 0,
- },
- {
- .name = "RADIO_RESET",
- .attr_name = "radio-reset",
- .pin = AT91_PIN_PB30,
- .direction = GPIO_DIR_OUTPUT,
- .output_value = 1,
- .use_pullup = 0,
- },
- {
- .name = "DEVICE_RESET",
- .attr_name = "reset",
- .pin = AT91_PIN_PA22,
- .direction = GPIO_DIR_INPUT,
- .output_value = 0,
- .use_pullup = 0,
- .active_low = 1,
- },
- {
- .name = "LED3",
- .attr_name = "led3",
- .pin = AT91_PIN_PC9,
-#if LED_LS_CONTROLLABLE
- .direction = GPIO_DIR_OUTPUT,
-#else
- .direction = GPIO_DIR_INPUT,
-#endif
- .output_value = 1,
- .use_pullup = 0,
- .active_low = 1,
- },
- {
- .name = "LED2",
- .attr_name = "led2",
- .pin = AT91_PIN_PA30,
- .direction = GPIO_DIR_OUTPUT,
- .output_value = 1,
- .use_pullup = 0,
- .active_low = 1,
- },
- {
- .name = "RSERSRC",
- .attr_name = "rsersrc",
- .pin = AT91_PIN_PC7,
- .direction = GPIO_DIR_OUTPUT,
- .output_value = 1,
- .use_pullup = 0,
- .active_low = 1,
- },
- {
- .name = "TXD1",
- .pin = AT91_PIN_PB17,
- .direction = GPIO_DIR_INPUT,
- .output_value = 0,
- .use_pullup = 0,
- },
- {
- .name = "DTR1",
- .attr_name = "extserial-dtr",
- .pin = AT91_PIN_PB18,
- .direction = GPIO_DIR_INPUT,
- .output_value = 0,
- .use_pullup = 0,
- .active_low = 1,
- },
- {
- .name = "DCD1",
- .attr_name = "extserial-dcd",
- .pin = AT91_PIN_PB3,
- .direction = GPIO_DIR_OUTPUT,
- .output_value = 1,
- .use_pullup = 0,
- .active_low = 1,
- },
- {
- .name = "GPIO11",
- .attr_name = "gpio11",
- .pin = AT91_PIN_PB19,
- .direction = GPIO_DIR_OD,
- .output_value = 1,
- .use_pullup = 1,
- },
- {
- .name = "GPIO12",
- .attr_name = "gpio12",
- .pin = AT91_PIN_PB20,
- .direction = GPIO_DIR_OD,
- .output_value = 1,
- .use_pullup = 1,
- },
- {
- .name = "ADC0",
- .pin = AT91_PIN_PC0,
- .direction = GPIO_DIR_INPUT,
- .output_value = 0,
- .use_pullup = 0,
- },
- {
- .name = "ADC1",
- .pin = AT91_PIN_PC1,
- .direction = GPIO_DIR_INPUT,
- .output_value = 0,
- .use_pullup = 0,
- },
- {
- .name = "ADC2",
- .pin = AT91_PIN_PC2,
- .direction = GPIO_DIR_INPUT,
- .output_value = 0,
- .use_pullup = 0,
- },
- {
- .name = "ADC3",
- .pin = AT91_PIN_PC3,
- .direction = GPIO_DIR_INPUT,
- .output_value = 0,
- .use_pullup = 0,
- },
- { },
-};
-
-/* mt100eocg specific attributes */
-static DEVICE_ATTR_MTS(dev_attr_gpo1, "gpo1",
- mts_attr_show_dout, mts_attr_store_dout);
-static DEVICE_ATTR_MTS(dev_attr_gpo2, "gpo2",
- mts_attr_show_dout, mts_attr_store_dout);
-static DEVICE_ATTR_MTS(dev_attr_gpo3, "gpo3",
- mts_attr_show_dout, mts_attr_store_dout);
-static DEVICE_ATTR_MTS(dev_attr_gpo4, "gpo4",
- mts_attr_show_dout, mts_attr_store_dout);
-
-
-static DEVICE_ATTR_MTS(dev_attr_led1, "led1",
- mts_attr_show_dout, mts_attr_store_dout);
-static DEVICE_ATTR_MTS(dev_attr_led2, "led2",
- mts_attr_show_gpio_pin, mts_attr_store_gpio_pin);
-
-#if LED_LS_CONTROLLABLE
-static DEVICE_ATTR_MTS(dev_attr_led3, "led3",
- mts_attr_show_gpio_pin, mts_attr_store_gpio_pin);
-#else
-static DEVICE_ATTR_RO_MTS(dev_attr_led3, "led3", mts_attr_show_gpio_pin);
-#endif
-
-static DEVICE_ATTR_MTS(dev_attr_led4, "led4",
- mts_attr_show_dout, mts_attr_store_dout);
-static DEVICE_ATTR_MTS(dev_attr_led5, "led5",
- mts_attr_show_dout, mts_attr_store_dout);
-static DEVICE_ATTR_MTS(dev_attr_led6, "led6",
- mts_attr_show_dout, mts_attr_store_dout);
-
-static DEVICE_ATTR_MTS(dev_attr_gpio11, "gpio11",
- mts_attr_show_gpio_pin, mts_attr_store_gpio_pin);
-static DEVICE_ATTR_MTS(dev_attr_gpio12, "gpio12",
- mts_attr_show_gpio_pin, mts_attr_store_gpio_pin);
-
-static DEVICE_ATTR_MTS(dev_attr_rsersrc, "rsersrc",
- mts_attr_show_gpio_pin, mts_attr_store_gpio_pin);
-
-static struct attribute *mt100eocg_platform_attributes[] = {
- &dev_attr_vendor_id.attr,
- &dev_attr_product_id.attr,
- &dev_attr_device_id.attr,
- &dev_attr_hw_version.attr,
- &dev_attr_imei.attr,
- &dev_attr_eth_mac.attr,
- &dev_attr_extserial_dtr.attr,
- &dev_attr_extserial_dcd_gpio.attr,
- &dev_attr_rsersrc.attr,
- &dev_attr_radio_reset.attr,
- &dev_attr_eth0_enabled.attr,
- &dev_attr_gpio11.attr,
- &dev_attr_gpio12.attr,
-
- &dev_attr_gpo1.attr,
- &dev_attr_gpo2.attr,
- &dev_attr_gpo3.attr,
- &dev_attr_gpo4.attr,
- &dev_attr_led1.attr,
- &dev_attr_led2.attr,
- &dev_attr_led3.attr,
- &dev_attr_led4.attr,
- &dev_attr_led5.attr,
- &dev_attr_led6.attr,
-
- &dev_attr_gpi5.attr,
- &dev_attr_gpi6.attr,
- &dev_attr_gpi7.attr,
- &dev_attr_gpi8.attr,
- &dev_attr_gpi9.attr,
- &dev_attr_gpi10.attr,
-
- &dev_attr_board_temperature.attr,
-
- &dev_attr_adc0.attr,
- &dev_attr_adc1.attr,
- &dev_attr_adc2.attr,
- &dev_attr_adc3.attr,
-
- NULL,
-};
-
-static struct attribute_group mt100eocg_platform_attribute_group = {
- .attrs = mt100eocg_platform_attributes
-};
diff --git a/io-module/mtcdp.c b/io-module/mtcdp.c
deleted file mode 100644
index 31551b0..0000000
--- a/io-module/mtcdp.c
+++ /dev/null
@@ -1,310 +0,0 @@
-
-#define USBH2_PS_CONTROLLABLE 0
-
-static struct gpio_pin gpio_pins_mtcdp_0_0[] = {
- {
- .name = "ENIO",
- .pin = AT91_PIN_PC15,
- .direction = GPIO_DIR_OUTPUT,
- .output_value = 1,
- .use_pullup = 0,
- },
- {
- .name = "ETH0_ENABLED",
- .attr_name = "eth0-enabled",
- .pin = AT91_PIN_PB31,
- .direction = GPIO_DIR_OUTPUT,
- .output_value = 1,
- .use_pullup = 0,
- },
- {
- .name = "RADIO_RESET",
- .attr_name = "radio-reset",
- .pin = AT91_PIN_PB30,
- .direction = GPIO_DIR_OUTPUT,
- .output_value = 1,
- .use_pullup = 0,
- },
- {
- .name = "DEVICE_RESET",
- .attr_name = "reset",
- .pin = AT91_PIN_PA22,
- .direction = GPIO_DIR_INPUT,
- .output_value = 0,
- .use_pullup = 0,
- .active_low = 1,
- },
- {
- .name = "LS_LED",
- .attr_name = "led-ls",
- .pin = AT91_PIN_PC9,
-#if LED_LS_CONTROLLABLE
- .direction = GPIO_DIR_OUTPUT,
-#else
- .direction = GPIO_DIR_INPUT,
-#endif
- .output_value = 1,
- .use_pullup = 0,
- .active_low = 1,
- },
- {
- .name = "STATUS_LED",
- .attr_name = "led-status",
- .pin = AT91_PIN_PA30,
- .direction = GPIO_DIR_OUTPUT,
- .output_value = 1,
- .use_pullup = 0,
- },
- {
- .name = "STATUS_LED",
- .attr_name = "led-sdk-a",
- .pin = AT91_PIN_PA30,
- .direction = GPIO_DIR_OUTPUT,
- .output_value = 1,
- .use_pullup = 0,
- },
-#endif
- {
- .name = "RSERSRC",
- .attr_name = "rsersrc",
- .pin = AT91_PIN_PC7,
- .direction = GPIO_DIR_OUTPUT,
- .output_value = 1,
- .use_pullup = 0,
- .active_low = 1,
- },
- {
- .name = "DTR1",
- .attr_name = "extserial-dtr",
- .pin = AT91_PIN_PC10,
- .direction = GPIO_DIR_INPUT,
- .output_value = 0,
- .use_pullup = 0,
- .active_low = 1,
- },
- { },
-};
-
-static struct gpio_pin gpio_pins_mtcdp_1_0[] = {
- {
- .name = "ENIO",
- .pin = AT91_PIN_PC15,
- .direction = GPIO_DIR_OUTPUT,
- .output_value = 1,
- .use_pullup = 0,
- },
- {
- .name = "ETH0_ENABLED",
- .attr_name = "eth0-enabled",
- .pin = AT91_PIN_PB31,
- .direction = GPIO_DIR_OUTPUT,
- .output_value = 1,
- .use_pullup = 0,
- },
- {
- .name = "RADIO_RESET",
- .attr_name = "radio-reset",
- .pin = AT91_PIN_PB30,
- .direction = GPIO_DIR_OUTPUT,
- .output_value = 1,
- .use_pullup = 0,
- },
- {
- .name = "DEVICE_RESET",
- .attr_name = "reset",
- .pin = AT91_PIN_PA22,
- .direction = GPIO_DIR_INPUT,
- .output_value = 0,
- .use_pullup = 0,
- .active_low = 1,
- },
- {
- .name = "LS_LED",
- .attr_name = "led-ls",
- .pin = AT91_PIN_PC9,
-#if LED_LS_CONTROLLABLE
- .direction = GPIO_DIR_OUTPUT,
-#else
- .direction = GPIO_DIR_INPUT,
-#endif
- .output_value = 1,
- .use_pullup = 0,
- .active_low = 1,
- },
- {
- .name = "STATUS_LED",
- .attr_name = "led-status",
- .pin = AT91_PIN_PA30,
- .direction = GPIO_DIR_OUTPUT,
- .output_value = 1,
- .use_pullup = 0,
- },
- {
- .name = "STATUS_LED",
- .attr_name = "led-sdk-a",
- .pin = AT91_PIN_PA30,
- .direction = GPIO_DIR_OUTPUT,
- .output_value = 1,
- .use_pullup = 0,
- },
- {
- .name = "RSERSRC",
- .attr_name = "rsersrc",
- .pin = AT91_PIN_PC7,
- .direction = GPIO_DIR_OUTPUT,
- .output_value = 1,
- .use_pullup = 0,
- .active_low = 1,
- },
- {
- .name = "TXD1",
- .pin = AT91_PIN_PB17,
- .direction = GPIO_DIR_INPUT,
- .output_value = 0,
- .use_pullup = 0,
- },
- {
- .name = "DTR1",
- .attr_name = "extserial-dtr",
- .pin = AT91_PIN_PB18,
- .direction = GPIO_DIR_INPUT,
- .output_value = 0,
- .use_pullup = 0,
- .active_low = 1,
- },
- {
- .name = "USBH2_PS_OC",
- .attr_name = "usbh2-ps-oc",
- .pin = AT91_PIN_PB19,
- .direction = GPIO_DIR_INPUT,
- .output_value = 0,
- .use_pullup = 0,
- .active_low = 1,
- },
-#if USBH2_PS_CONTROLLABLE
- {
- .name = "USBH2_PS_ENABLED",
- .attr_name = "usbh2-ps-enabled",
- .pin = AT91_PIN_PB20,
- .direction = GPIO_DIR_OUTPUT,
- .output_value = 0,
- .use_pullup = 0,
- .active_low = 1,
- },
-#endif
- {
- .name = "NDC_RESET",
- .attr_name = "ndc-reset",
- .pin = AT91_PIN_PB21,
- .direction = GPIO_DIR_OUTPUT,
- .output_value = 1,
- .use_pullup = 0,
- },
- {
- .name = "ADC0",
- .pin = AT91_PIN_PC0,
- .direction = GPIO_DIR_INPUT,
- .output_value = 0,
- .use_pullup = 0,
- },
- {
- .name = "ADC1",
- .pin = AT91_PIN_PC1,
- .direction = GPIO_DIR_INPUT,
- .output_value = 0,
- .use_pullup = 0,
- },
- {
- .name = "ADC2",
- .pin = AT91_PIN_PC2,
- .direction = GPIO_DIR_INPUT,
- .output_value = 0,
- .use_pullup = 0,
- },
- {
- .name = "ADC3",
- .pin = AT91_PIN_PC3,
- .direction = GPIO_DIR_INPUT,
- .output_value = 0,
- .use_pullup = 0,
- },
- { },
-};
-
-/* mtcdp specific attributes */
-static DEVICE_ATTR_MTS(dev_attr_led_sdk_a, "led-sdk-a",
- mts_attr_show_gpio_pin, mts_attr_store_gpio_pin);
-static DEVICE_ATTR_RO_MTS(dev_attr_usbh2_ps_oc, "usbh2-ps-oc",
- mts_attr_show_gpio_pin);
-
-#if USBH2_PS_CONTROLLABLE
-static DEVICE_ATTR_MTS(dev_attr_usbh2_ps_enabled, "usbh2-ps-enabled",
- mts_attr_show_gpio_pin, mts_attr_store_gpio_pin);
-#endif
-
-static struct attribute *mtcdp_platform_attributes[] = {
- &dev_attr_vendor_id.attr,
- &dev_attr_product_id.attr,
- &dev_attr_device_id.attr,
- &dev_attr_hw_version.attr,
- &dev_attr_imei.attr,
- &dev_attr_eth_mac.attr,
- &dev_attr_reset.attr,
- &dev_attr_reset_monitor.attr,
- &dev_attr_radio_reset.attr,
- &dev_attr_ndc_reset.attr,
- &dev_attr_eth0_enabled.attr,
- &dev_attr_extserial_dtr.attr,
- &dev_attr_led_ls.attr,
- &dev_attr_led_status.attr,
- &dev_attr_led_sdk_a.attr,
- &dev_attr_usbh2_ps_oc.attr,
-#if USBH2_PS_CONTROLLABLE
- &dev_attr_usbh2_ps_enabled.attr,
-#endif
-
- &dev_attr_extserial_dcd.attr,
- &dev_attr_extserial_ri.attr,
- &dev_attr_extserial_dsr.attr,
- &dev_attr_led_cd.attr,
- &dev_attr_led_sdk_b.attr,
- &dev_attr_led_sig1.attr,
- &dev_attr_led_sdk_c.attr,
- &dev_attr_led_sig2.attr,
- &dev_attr_led_sdk_d.attr,
- &dev_attr_led_sig3.attr,
- &dev_attr_led_sdk_e.attr,
- &dev_attr_led_dtr.attr,
- &dev_attr_led_sdk_f.attr,
-
- &dev_attr_dout0.attr,
- &dev_attr_dout1.attr,
- &dev_attr_dout2.attr,
- &dev_attr_dout3.attr,
- &dev_attr_dout4.attr,
- &dev_attr_dout5.attr,
- &dev_attr_dout6.attr,
- &dev_attr_dout7.attr,
-
- &dev_attr_din0.attr,
- &dev_attr_din1.attr,
- &dev_attr_din2.attr,
- &dev_attr_din3.attr,
- &dev_attr_din4.attr,
- &dev_attr_din5.attr,
- &dev_attr_din6.attr,
- &dev_attr_din7.attr,
-
- &dev_attr_board_temperature.attr,
-
- &dev_attr_adc0.attr,
- &dev_attr_adc1.attr,
- &dev_attr_adc2.attr,
- &dev_attr_adc3.attr,
-
- NULL,
-};
-
-static struct attribute_group mtcdp_platform_attribute_group = {
- .attrs = mtcdp_platform_attributes
-};
diff --git a/io-module/mtr.c b/io-module/mtr.c
deleted file mode 100644
index cef1560..0000000
--- a/io-module/mtr.c
+++ /dev/null
@@ -1,468 +0,0 @@
-
-static struct gpio_pin gpio_pins_mtr_0_0[] = {
- {
- .name = "NETH_RST",
- .pin = {
- .gpio = AT91_PIN_PC6,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "eth0-enabled",
- },
- },
- {
- .name = "PWRMON",
- .pin = {
- .gpio = AT91_PIN_PA23,
- .flags = GPIOF_IN,
- .label = "radio-power",
- },
- },
- {
- .name = "3G_RST",
- .pin = {
- .gpio = AT91_PIN_PA22,
- .flags = GPIOF_OPEN_DRAIN | GPIOF_INIT_HIGH,
- .label = "radio-reset",
- },
- },
- {
- .name = "3G_ONOFF",
- .pin = {
- .gpio = AT91_PIN_PA21,
- .flags = GPIOF_OPEN_DRAIN | GPIOF_INIT_HIGH,
- .label = "radio-enabled",
- },
- },
- {
- .name = "DEVICE_RESET",
- .pin = {
- .gpio = AT91_PIN_PC4,
- .flags = GPIOF_IN,
- .label = "reset",
- },
- .active_low = 1,
- },
- {
- .name = "LS_LED",
- .pin = {
- .gpio = AT91_PIN_PC16,
-#if LED_LS_CONTROLLABLE
- .flags = GPIOF_OUT_INIT_HIGH,
-#else
- .flags = GPIOF_IN,
-#endif
- .label = "led-ls",
- },
- .active_low = 1,
- },
- {
- .name = "STATUS_LED",
- .pin = {
- .gpio = AT91_PIN_PC21,
- .flags = GPIOF_OUT_INIT_LOW,
- .label = "led-status",
- },
- .active_low = 1,
- },
- {
- .name = "STATUS_LED",
- .pin = {
- .gpio = AT91_PIN_PC21,
- .flags = GPIOF_OUT_INIT_LOW,
- .label = "led-a",
- },
- .active_low = 1,
- },
- {
- .name = "LED3",
- .pin = {
- .gpio = AT91_PIN_PC15,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "led-wifi",
- },
- .active_low = 1,
- },
- {
- .name = "LED3",
- .pin = {
- .gpio = AT91_PIN_PC15,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "led-b",
- },
- .active_low = 1,
- },
- {
- .name = "LED4",
- .pin = {
- .gpio = AT91_PIN_PC20,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "led-cd",
- },
- .active_low = 1,
- },
- {
- .name = "LED4",
- .pin = {
- .gpio = AT91_PIN_PC20,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "led-c",
- },
- .active_low = 1,
- },
- {
- .name = "LED6",
- .pin = {
- .gpio = AT91_PIN_PC19,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "led-sig1",
- },
- .active_low = 1,
- },
- {
- .name = "LED6",
- .pin = {
- .gpio = AT91_PIN_PC19,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "led-d",
- },
- .active_low = 1,
- },
- {
- .name = "LED7",
- .pin = {
- .gpio = AT91_PIN_PC18,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "led-sig2",
- },
- .active_low = 1,
- },
- {
- .name = "LED7",
- .pin = {
- .gpio = AT91_PIN_PC18,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "led-e",
- },
- .active_low = 1,
- },
- {
- .name = "LED8",
- .pin = {
- .gpio = AT91_PIN_PC17,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "led-sig3",
- },
- .active_low = 1,
- },
- {
- .name = "LED8",
- .pin = {
- .gpio = AT91_PIN_PC17,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "led-f",
- },
- .active_low = 1,
- },
- {
- .name = "RI_B",
- .pin = {
- .gpio = AT91_PIN_PC25,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "extserial-ri",
- },
- .active_low = 1,
- },
- {
- .name = "DTR_B",
- .pin = {
- .gpio = AT91_PIN_PC26,
- .flags = GPIOF_IN,
- .label = "extserial-dtr",
- },
- .active_low = 1,
- },
- {
- .name = "DSR_B",
- .pin = {
- .gpio = AT91_PIN_PC27,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "extserial-dsr",
- },
- .active_low = 1,
- },
- {
- .name = "DCD_B",
- .pin = {
- .gpio = AT91_PIN_PC28,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "extserial-dcd",
- },
- .active_low = 1,
- },
- {
- .name = "BT_EN",
- .pin = {
- .gpio = AT91_PIN_PA28,
- .flags = GPIOF_OUT_INIT_LOW,
- .label = "bt-enabled",
- },
- },
- {
- .name = "WLAN_EN",
- .pin = {
- .gpio = AT91_PIN_PA27,
- .flags = GPIOF_OUT_INIT_LOW,
- .label = "wlan-enabled",
- },
- },
- { },
-};
-
-static struct gpio_pin gpio_pins_mtr_0_1[] = {
- {
- .name = "NETH_RST",
- .pin = {
- .gpio = AT91_PIN_PC6,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "eth0-enabled",
- },
- },
- {
- .name = "PWRMON",
- .pin = {
- .gpio = AT91_PIN_PA23,
- .flags = GPIOF_IN,
- .label = "radio-power",
- },
- },
- {
- .name = "3G_RST",
- .pin = {
- .gpio = AT91_PIN_PA22,
- .flags = GPIOF_OUT_INIT_HIGH | GPIOF_PULLUP,
- .label = "radio-reset",
- },
- },
- {
- .name = "3G_ONOFF",
- .pin = {
- .gpio = AT91_PIN_PA21,
- .flags = GPIOF_OUT_INIT_HIGH | GPIOF_PULLUP,
- .label = "radio-enabled",
- },
- },
- {
- .name = "DEVICE_RESET",
- .pin = {
- .gpio = AT91_PIN_PC4,
- .flags = GPIOF_IN,
- .label = "reset",
- },
- .active_low = 1,
- },
- {
- .name = "LS_LED",
- .pin = {
- .gpio = AT91_PIN_PC16,
-#if LED_LS_CONTROLLABLE
- .flags = GPIOF_OUT_INIT_HIGH,
-#else
- .flags = GPIOF_IN,
-#endif
- .label = "led-ls",
- },
- .active_low = 1,
- },
- {
- .name = "STATUS_LED",
- .pin = {
- .gpio = AT91_PIN_PC21,
- .flags = GPIOF_OUT_INIT_LOW,
- .label = "led-status",
- },
- .active_low = 1,
- },
- {
- .name = "LED3",
- .pin = {
- .gpio = AT91_PIN_PC15,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "led-wifi",
- },
- .active_low = 1,
- },
- {
- .name = "LED3",
- .pin = {
- .gpio = AT91_PIN_PC15,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "led-b",
- },
- .active_low = 1,
- },
- {
- .name = "LED4",
- .pin = {
- .gpio = AT91_PIN_PC20,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "led-cd",
- },
- .active_low = 1,
- },
- {
- .name = "LED4",
- .pin = {
- .gpio = AT91_PIN_PC20,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "led-c",
- },
- .active_low = 1,
- },
- {
- .name = "LED6",
- .pin = {
- .gpio = AT91_PIN_PC19,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "led-sig1",
- },
- .active_low = 1,
- },
- {
- .name = "LED6",
- .pin = {
- .gpio = AT91_PIN_PC19,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "led-d",
- },
- .active_low = 1,
- },
- {
- .name = "LED7",
- .pin = {
- .gpio = AT91_PIN_PC18,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "led-sig2",
- },
- .active_low = 1,
- },
- {
- .name = "LED7",
- .pin = {
- .gpio = AT91_PIN_PC18,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "led-e",
- },
- .active_low = 1,
- },
- {
- .name = "LED8",
- .pin = {
- .gpio = AT91_PIN_PC17,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "led-sig3",
- },
- .active_low = 1,
- },
- {
- .name = "LED8",
- .pin = {
- .gpio = AT91_PIN_PC17,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "led-f",
- },
- .active_low = 1,
- },
- {
- .name = "RI_B",
- .pin = {
- .gpio = AT91_PIN_PC25,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "extserial-ri",
- },
- .active_low = 1,
- },
- {
- .name = "DTR_B",
- .pin = {
- .gpio = AT91_PIN_PC26,
- .flags = GPIOF_IN,
- .label = "extserial-dtr",
- },
- .active_low = 1,
- },
- {
- .name = "DSR_B",
- .pin = {
- .gpio = AT91_PIN_PC27,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "extserial-dsr",
- },
- .active_low = 1,
- },
- {
- .name = "DCD_B",
- .pin = {
- .gpio = AT91_PIN_PC28,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "extserial-dcd",
- },
- .active_low = 1,
- },
- {
- .name = "BT_EN",
- .pin = {
- .gpio = AT91_PIN_PA28,
- .flags = GPIOF_OUT_INIT_LOW,
- .label = "bt-enabled",
- },
- },
- {
- .name = "WLAN_EN",
- .pin = {
- .gpio = AT91_PIN_PA27,
- .flags = GPIOF_OUT_INIT_LOW,
- .label = "wlan-enabled",
- },
- },
- { },
-};
-
-static struct attribute *mtr_platform_attributes[] = {
- &dev_attr_vendor_id.attr,
- &dev_attr_product_id.attr,
- &dev_attr_device_id.attr,
- &dev_attr_hw_version.attr,
- &dev_attr_imei.attr,
- &dev_attr_eth_mac.attr,
- &dev_attr_wifi_mac.attr,
- &dev_attr_reset.attr,
- &dev_attr_reset_monitor.attr,
- &dev_attr_radio_power_telit.attr,
- &dev_attr_radio_reset_telit.attr,
- &dev_attr_extserial_ri_gpio.attr,
- &dev_attr_extserial_dtr.attr,
- &dev_attr_extserial_dsr_gpio.attr,
- &dev_attr_extserial_dcd_gpio.attr,
- &dev_attr_eth0_enabled.attr,
- &dev_attr_bt_enabled.attr,
- &dev_attr_wlan_enabled.attr,
-
- &dev_attr_led_status.attr,
- &dev_attr_led_sig1_gpio.attr,
- &dev_attr_led_sig2_gpio.attr,
- &dev_attr_led_sig3_gpio.attr,
- &dev_attr_led_cd_gpio.attr,
- &dev_attr_led_wifi_gpio.attr,
-
- &dev_attr_led_a_gpio.attr,
- &dev_attr_led_b_gpio.attr,
- &dev_attr_led_c_gpio.attr,
- &dev_attr_led_d_gpio.attr,
- &dev_attr_led_e_gpio.attr,
- &dev_attr_led_f_gpio.attr,
-
- NULL,
-};
-
-static struct attribute_group mtr_platform_attribute_group = {
- .attrs = mtr_platform_attributes
-};