diff options
Diffstat (limited to 'io-module/machine/mtcdt.c')
-rw-r--r-- | io-module/machine/mtcdt.c | 46 |
1 files changed, 45 insertions, 1 deletions
diff --git a/io-module/machine/mtcdt.c b/io-module/machine/mtcdt.c index 5ee77cb..09223c1 100644 --- a/io-module/machine/mtcdt.c +++ b/io-module/machine/mtcdt.c @@ -323,6 +323,24 @@ static struct gpio_pin gpio_pins_mtcdt_0_1[] = { } }, { + .name = "N_USB_HOST_OC", + .pin = { + .gpio = AT91_PIN_PA7, + .flags = GPIOF_IN, + .label = "usb-host-oc", + }, + .active_low = 1, + }, + { + .name = "N_USB_HOST_PWR_EN", + .pin = { + .gpio = AT91_PIN_PA8, + .flags = GPIOF_IN, + .label = "usb-host-pwr", + }, + .active_low = 1, + }, + { .name = "GNSS_INT", .pin = { .gpio = AT91_PIN_PD19, @@ -542,6 +560,24 @@ static struct gpio_pin gpio_pins_mtcdt_0_2[] = { } }, { + .name = "N_USB_HOST_OC", + .pin = { + .gpio = AT91_PIN_PA7, + .flags = GPIOF_IN, + .label = "usb-host-oc", + }, + .active_low = 1, + }, + { + .name = "N_USB_HOST_PWR_EN", + .pin = { + .gpio = AT91_PIN_PA8, + .flags = GPIOF_IN, + .label = "usb-host-pwr", + }, + .active_low = 1, + }, + { .name = "GNSS_INT", .pin = { .gpio = AT91_PIN_PD19, @@ -578,6 +614,10 @@ static DEVICE_ATTR_MTS(dev_attr_gnss_reset, "gnss-reset", mts_attr_show_gpio_pin, mts_attr_store_gpio_pin); static DEVICE_ATTR_MTS(dev_attr_usbhub_reset, "usbhub-reset", mts_attr_show_gpio_pin, mts_attr_store_gpio_pin); +static DEVICE_ATTR_RO_MTS(dev_attr_usbhost_oc, "usb-host-oc", + mts_attr_show_gpio_pin); +static DEVICE_ATTR_RO_MTS(dev_attr_usbhost_pwr, "usb-host-pwr", + mts_attr_show_gpio_pin); static DEVICE_ATTR_MTS(dev_attr_eth_reset, "eth-reset", mts_attr_show_gpio_pin, mts_attr_store_gpio_pin); static DEVICE_ATTR_MTS(dev_attr_gnss_int, "gnss-int", @@ -652,6 +692,8 @@ static struct attribute *mtcdt_0_1_platform_attributes[] = { &dev_attr_led_d_gpio.attr, &dev_attr_usbhub_reset.attr, + &dev_attr_usbhost_oc.attr, + &dev_attr_usbhost_pwr.attr, &dev_attr_eth_reset.attr, // radio feature is last to be able to @@ -696,9 +738,11 @@ static struct attribute *mtcdt_0_2_platform_attributes[] = { &dev_attr_led_d_gpio.attr, &dev_attr_usbhub_reset.attr, + &dev_attr_usbhost_oc.attr, + &dev_attr_usbhost_pwr.attr, &dev_attr_eth_reset.attr, - &dev_attr_radio_power.attr, /* Must be first radio attribute */ + &dev_attr_radio_power.attr, /* Must be first radio attribute */ &dev_attr_radio_reset.attr, &dev_attr_radio_status.attr, |