summaryrefslogtreecommitdiff
path: root/io-module/mtp.c
diff options
context:
space:
mode:
authorBrandon Bayer <bbayer@multitech.com>2016-10-17 11:21:21 -0500
committerBrandon Bayer <bbayer@multitech.com>2016-10-17 11:21:21 -0500
commit32666ddc7ce17ab0b9750b4481d0e44c10435abe (patch)
tree0517ac9254898c1a2112a8c4672da8d0f1730cd4 /io-module/mtp.c
parent23cdb7df748e496b0af99dbac3f267f1f2b0a12a (diff)
downloadmts-io-32666ddc7ce17ab0b9750b4481d0e44c10435abe.tar.gz
mts-io-32666ddc7ce17ab0b9750b4481d0e44c10435abe.tar.bz2
mts-io-32666ddc7ce17ab0b9750b4481d0e44c10435abe.zip
mtp: add cdone, creset and move PWRMON for 1.5 hardware1.4.0
Diffstat (limited to 'io-module/mtp.c')
-rw-r--r--io-module/mtp.c19
1 files changed, 18 insertions, 1 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 */
{