Merge branch 'master' of https://github.com/dpavlin/linux-gpio-pinout
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 19 Apr 2018 20:01:18 +0000 (22:01 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 19 Apr 2018 20:01:18 +0000 (22:01 +0200)
gpio.pl
pins/NextThing [new file with mode: 0644]

diff --git a/gpio.pl b/gpio.pl
index 90cbf3b..8c5a532 100755 (executable)
--- a/gpio.pl
+++ b/gpio.pl
@@ -83,6 +83,7 @@ if ( ! $opt_pins && ! $pins ) {
        my $glob = $model;
        $glob =~ s/^(\w+).*$/$1/;
        my @pins = glob "pins/${glob}*";
+       die "pins/${glob} NOT FOUND for this board, please create one and contribute" unless @pins;
        warn "# possible pins: ",dump( \@pins );
        $opt_pins = $pins[0];
        goto OPEN_PINS_AGAIN;
diff --git a/pins/NextThing b/pins/NextThing
new file mode 100644 (file)
index 0000000..72f3cb4
--- /dev/null
@@ -0,0 +1,45 @@
+# U13                          
+1      GND             2       CHG-IN
+3      VCC-5V          4       GND
+5      VCC-3V3         6       TS
+7      VCC-1V8         8       BAT
+9      PB15            10      PWRON
+11     PB16            12      GND
+13     TPX1            14      TPX2
+15     TPY1            16      TPY2
+17     PD2             18      PB2
+19     PD4             20      PD3
+21     PD6             22      PD5
+23     PD10            24      PD7
+25     PD12            26      PD11
+27     PD14            28      PD13
+29     PD18            30      PD15
+31     PD20            32      PD19
+33     PD22            34      PD21
+35     PD24            36      PD23
+37     PD27            38      PD26
+39     GND             40      PD25
+                               
+                               
+# U14                          
+1      GND             2       VCC-5V
+3      PG3             4       HPL
+5      PG4             6       HPCOM
+7      UBOOT           8       HPR
+9      VCC-3V3         10      MICM
+11     #86             12      MICIN1
+13     8574 P0         14      8574 P1
+15     8574 P2         16      8574 P3
+17     8574 P4         18      8574 P5
+19     8574 P6         20      8574 P7
+21     GND             22      GND
+23     PG1             24      PB3
+25     PB18            26      PB17
+27     PE0             28      PE1
+29     PE2             30      PE3
+31     PE4             32      PE5
+33     PE6             34      PE7
+35     PE8             36      PE9
+37     PE10            38      PE11
+39     GND             40      GND
+