summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--io-module/mtp.c19
-rw-r--r--io-module/mts_io.c10
2 files changed, 23 insertions, 6 deletions
diff --git a/io-module/mtp.c b/io-module/mtp.c
index e034da4..e6da3d5 100644
--- a/io-module/mtp.c
+++ b/io-module/mtp.c
@@ -10,7 +10,7 @@ static struct gpio_pin gpio_pins_mtp_0_0[] = {
{
.name = "RADIO_POWER_MONITOR",
.pin = {
- .gpio = AT91_PIN_PA23, // PWRMON
+ .gpio = AT91_PIN_PD21, // PWRMON
.flags = GPIOF_IN,
.label = "radio-power-monitor",
},
@@ -48,6 +48,23 @@ static struct gpio_pin gpio_pins_mtp_0_0[] = {
.label = "lora-reset",
},
},
+ { // gpio 1 for LORA 1.5 ref design
+ .name = "LORA_CDONE",
+ .pin = {
+ .gpio = AT91_PIN_PA6,
+ .flags = GPIOF_IN,
+ .label = "lora-cdone",
+ },
+ },
+ { // gpio 2 for LORA 1.5 ref design
+ .name = "LORA_CRESET",
+ .pin = {
+ .gpio = AT91_PIN_PA29,
+ .flags = GPIOF_OUT_INIT_HIGH,
+ .label = "lora-creset",
+ }
+ },
+
/* LEDs */
{
diff --git a/io-module/mts_io.c b/io-module/mts_io.c
index dcbc8e2..7dcdf54 100644
--- a/io-module/mts_io.c
+++ b/io-module/mts_io.c
@@ -47,7 +47,7 @@
#include "mts_io.h"
-#define DRIVER_VERSION "v1.3.8"
+#define DRIVER_VERSION "v1.4.0"
#define DRIVER_AUTHOR "James Maki <jmaki@multitech.com>"
#define DRIVER_DESC "MTS-IO Controller"
#define DRIVER_NAME "mts-io"
@@ -472,7 +472,7 @@ static ssize_t mts_attr_show_radio_reset_backoffs(struct device *dev,
ret += snprintf(buf += strlen(buf), buf_left, "%d ", timings_data[i]);
}
}
-
+
if (ret > 0) {
ret -= 1;
}
@@ -565,7 +565,7 @@ static ssize_t mts_attr_show_product_info(struct device *dev,
{
int i;
ssize_t value;
-
+
if (strcmp(attr->attr.name, "vendor-id") == 0) {
value = sprintf(buf, "%.32s\n", id_eeprom.vendor_id);
} else if (strcmp(attr->attr.name, "product-id") == 0) {
@@ -830,7 +830,7 @@ static int mts_id_eeprom_load()
id_eeprom.mac_addr[3],
id_eeprom.mac_addr[4],
id_eeprom.mac_addr[5]);
-
+
log_info("imei: %.32s", id_eeprom.imei);
log_info("capa-gps: %s", DEVICE_CAPA(id_eeprom.capa, CAPA_GPS) ? "yes" : "no");
log_info("capa-din: %s", DEVICE_CAPA(id_eeprom.capa, CAPA_DIN) ? "yes" : "no");
@@ -891,7 +891,7 @@ static int __init mts_io_init(void)
int ret;
log_info("init: " DRIVER_VERSION);
-
+
ret = mts_id_eeprom_load();
if (ret) {
cleanup();