Skip to content

Commit

Permalink
RSDK-2794: upboard pindefinition (viamrobotics#2662)
Browse files Browse the repository at this point in the history
  • Loading branch information
susmitaSanyal authored Jul 21, 2023
1 parent 58714ba commit 31cc6d4
Showing 1 changed file with 28 additions and 34 deletions.
62 changes: 28 additions & 34 deletions components/board/upboard/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,40 +15,34 @@ var boardInfoMappings = map[string]genericlinux.BoardInformation{
GPIOChipSysFSDir: path to the directory of a chip. Can be found from the output of gpiodetect
*/
// GPIO pin definition
{Name: "29", Ngpio: 78, LineNumber: 73, PwmChipSysfsDir: "", PwmID: -1},
{Name: "31", Ngpio: 77, LineNumber: 46, PwmChipSysfsDir: "", PwmID: -1},
{Name: "18", Ngpio: 77, LineNumber: 48, PwmChipSysfsDir: "", PwmID: -1},
{Name: "22", Ngpio: 77, LineNumber: 45, PwmChipSysfsDir: "", PwmID: -1},
{Name: "37", Ngpio: 77, LineNumber: 46, PwmChipSysfsDir: "", PwmID: -1},
{Name: "35", Ngpio: 47, LineNumber: 17, PwmChipSysfsDir: "", PwmID: -1},
{Name: "13", Ngpio: 77, LineNumber: 75, PwmChipSysfsDir: "", PwmID: -1},

// ttyS4 UART
{Name: "8", Ngpio: 78, LineNumber: 43, PwmChipSysfsDir: "", PwmID: -1},
{Name: "10", Ngpio: 78, LineNumber: 42, PwmChipSysfsDir: "", PwmID: -1},
{Name: "11", Ngpio: 78, LineNumber: 44, PwmChipSysfsDir: "", PwmID: -1},
{Name: "36", Ngpio: 78, LineNumber: 45, PwmChipSysfsDir: "", PwmID: -1},

// I2c
{Name: "3", Ngpio: 78, LineNumber: 28, PwmChipSysfsDir: "", PwmID: -1},
{Name: "5", Ngpio: 78, LineNumber: 29, PwmChipSysfsDir: "", PwmID: -1},
{Name: "28", Ngpio: 78, LineNumber: 31, PwmChipSysfsDir: "", PwmID: -1},

// pwm
{Name: "33", Ngpio: 78, LineNumber: 35, PwmChipSysfsDir: "0000:00:1a.0", PwmID: 0},
{Name: "32", Ngpio: 78, LineNumber: 34, PwmChipSysfsDir: "0000:00:1a.0", PwmID: 1},
{Name: "16", Ngpio: 78, LineNumber: 37, PwmChipSysfsDir: "0000:00:1a.0", PwmID: 3},
{Name: "7", Ngpio: 77, LineNumber: 76, PwmChipSysfsDir: "", PwmID: -1},
{Name: "19", Ngpio: 77, LineNumber: 65, PwmChipSysfsDir: "", PwmID: -1},
{Name: "21", Ngpio: 77, LineNumber: 64, PwmChipSysfsDir: "", PwmID: -1},
{Name: "23", Ngpio: 77, LineNumber: 61, PwmChipSysfsDir: "", PwmID: -1},
{Name: "27", Ngpio: 78, LineNumber: 30, PwmChipSysfsDir: "", PwmID: -1},
{Name: "12", Ngpio: 47, LineNumber: 16, PwmChipSysfsDir: "", PwmID: -1},
{Name: "24", Ngpio: 77, LineNumber: 62, PwmChipSysfsDir: "", PwmID: -1},
{Name: "26", Ngpio: 77, LineNumber: 63, PwmChipSysfsDir: "", PwmID: -1},
{Name: "38", Ngpio: 47, LineNumber: 18, PwmChipSysfsDir: "", PwmID: -1},
{Name: "40", Ngpio: 47, LineNumber: 19, PwmChipSysfsDir: "", PwmID: -1},
{Name: "15", Ngpio: 77, LineNumber: 74, PwmChipSysfsDir: "", PwmID: -1},
{Name: "3", Ngpio: 28, LineNumber: 2, PwmChipSysfsDir: "", PwmID: -1},
{Name: "5", Ngpio: 28, LineNumber: 3, PwmChipSysfsDir: "", PwmID: -1},
{Name: "7", Ngpio: 28, LineNumber: 4, PwmChipSysfsDir: "", PwmID: -1},
{Name: "8", Ngpio: 28, LineNumber: 14, PwmChipSysfsDir: "", PwmID: -1},
{Name: "10", Ngpio: 28, LineNumber: 15, PwmChipSysfsDir: "", PwmID: -1},
{Name: "11", Ngpio: 28, LineNumber: 17, PwmChipSysfsDir: "", PwmID: -1},
{Name: "12", Ngpio: 28, LineNumber: 18, PwmChipSysfsDir: "", PwmID: -1},
{Name: "13", Ngpio: 28, LineNumber: 27, PwmChipSysfsDir: "", PwmID: -1},
{Name: "15", Ngpio: 28, LineNumber: 22, PwmChipSysfsDir: "", PwmID: -1},
{Name: "16", Ngpio: 28, LineNumber: 23, PwmChipSysfsDir: "0000:00:1a.0", PwmID: 3},
{Name: "18", Ngpio: 28, LineNumber: 24, PwmChipSysfsDir: "", PwmID: -1},
{Name: "19", Ngpio: 28, LineNumber: 10, PwmChipSysfsDir: "", PwmID: -1},
{Name: "21", Ngpio: 28, LineNumber: 9, PwmChipSysfsDir: "", PwmID: -1},
{Name: "22", Ngpio: 28, LineNumber: 25, PwmChipSysfsDir: "", PwmID: -1},
{Name: "23", Ngpio: 28, LineNumber: 11, PwmChipSysfsDir: "", PwmID: -1},
{Name: "24", Ngpio: 28, LineNumber: 8, PwmChipSysfsDir: "", PwmID: -1},
{Name: "26", Ngpio: 28, LineNumber: 7, PwmChipSysfsDir: "", PwmID: -1},
{Name: "27", Ngpio: 28, LineNumber: 0, PwmChipSysfsDir: "", PwmID: -1},
{Name: "28", Ngpio: 28, LineNumber: 1, PwmChipSysfsDir: "", PwmID: -1},
{Name: "29", Ngpio: 28, LineNumber: 5, PwmChipSysfsDir: "", PwmID: -1},
{Name: "31", Ngpio: 28, LineNumber: 6, PwmChipSysfsDir: "", PwmID: -1},
{Name: "32", Ngpio: 28, LineNumber: 12, PwmChipSysfsDir: "0000:00:1a.0", PwmID: 1},
{Name: "33", Ngpio: 28, LineNumber: 13, PwmChipSysfsDir: "0000:00:1a.0", PwmID: 0},
{Name: "35", Ngpio: 28, LineNumber: 19, PwmChipSysfsDir: "", PwmID: -1},
{Name: "36", Ngpio: 28, LineNumber: 16, PwmChipSysfsDir: "", PwmID: -1},
{Name: "37", Ngpio: 28, LineNumber: 26, PwmChipSysfsDir: "", PwmID: -1},
{Name: "38", Ngpio: 28, LineNumber: 20, PwmChipSysfsDir: "", PwmID: -1},
{Name: "40", Ngpio: 28, LineNumber: 21, PwmChipSysfsDir: "", PwmID: -1},
},
[]string{"UP-APL03"},
},
Expand Down

0 comments on commit 31cc6d4

Please sign in to comment.