-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dependency version bump. Untested RPi5 support #184
- Loading branch information
1 parent
8a7d6a6
commit 5090d28
Showing
12 changed files
with
229 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 65 additions & 0 deletions
65
diozero-core/src/main/resources/boarddefs/raspberrypi_4b.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# GPIO Chip Mapping - Chip, Id, Label | ||
Chip, 0, pinctrl-bcm2835 | ||
#Chip, 1, brcmvirt-gpio | ||
Chip, 1, raspberrypi-exp-gpio | ||
|
||
# GPIO Header info - General, Header, Physical Pin, Name | ||
General, J8, 1, 3v3 | ||
General, J8, 2, 5v | ||
General, J8, 4, 5v | ||
General, J8, 6, GND | ||
General, J8, 9, GND | ||
General, J8, 14, GND | ||
General, J8, 17, 3v3 | ||
General, J8, 20, GND | ||
General, J8, 25, GND | ||
General, J8, 30, GND | ||
General, J8, 34, GND | ||
General, J8, 39, GND | ||
|
||
# For enabling sysfs PWM, see | ||
# https://jumpnowtek.com/rpi/Using-the-Raspberry-Pi-Hardware-PWM-timers.html | ||
|
||
# GPIO, Header, GPIO#, Name, Physical Pin, Chip, Line, Modes | ||
GPIO, J8, 0, ID_SDA, 27, 0, 0, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 1, ID_SCL, 28, 0, 1, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 2, SDA1, 3, 0, 2, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 3, SCL1, 5, 0, 3, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 4, GPIO_GCLK, 7, 0, 4, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 5, GPIO5, 29, 0, 5, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 6, GPIO6, 31, 0, 6, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 7, SPI_CE1_N, 26, 0, 7, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 8, SPI_CE0_N, 24, 0, 8, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 9, SPI_MISO, 21, 0, 9, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 10, SPI_MOSI, 19, 0, 10, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 11, SPI_SCLK, 23, 0, 11, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
#GPIO, J8, 12, GPIO12, 32, 0, 12, DIGITAL_INPUT | DIGITAL_OUTPUT # Alt0 = PWM0 | ||
PWM, J8, 12, GPIO12, 32, 0, 12, 0, 0, DIGITAL_INPUT | DIGITAL_OUTPUT | PWM_OUTPUT # Alt0 = PWM0 | ||
#GPIO, J8, 13, GPIO13, 33, 0, 13, DIGITAL_INPUT | DIGITAL_OUTPUT # Alt0 = PWM1 | ||
PWM, J8, 13, GPIO13, 33, 0, 13, 0, 1, DIGITAL_INPUT | DIGITAL_OUTPUT | PWM_OUTPUT # Alt0 = PWM1 | ||
GPIO, J8, 14, TXD1, 8, 0, 14, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 15, RXD1, 10, 0, 15, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 16, GPIO16, 36, 0, 16, DIGITAL_INPUT | DIGITAL_OUTPUT # Alt4 = SPI1-CE2 | ||
GPIO, J8, 17, GPIO17, 11, 0, 17, DIGITAL_INPUT | DIGITAL_OUTPUT # Alt4 = SPI1-CE1 | ||
#GPIO, J8, 18, GPIO18, 12, 0, 18, DIGITAL_INPUT | DIGITAL_OUTPUT # Alt0 = PCM-CLK, Alt4 = SPI1-CE0, Alt5 = PWM0 | ||
PWM, J8, 18, GPIO18, 12, 0, 18, 0, 0, DIGITAL_INPUT | DIGITAL_OUTPUT | PWM_OUTPUT | ||
#GPIO, J8, 19, GPIO19, 35, 0, 19, DIGITAL_INPUT | DIGITAL_OUTPUT # Alt4 = SPI1-MISO, Alt5 = PWM1 | ||
PWM, J8, 19, GPIO19, 35, 0, 19, 0, 1, DIGITAL_INPUT | DIGITAL_OUTPUT | PWM_OUTPUT | ||
GPIO, J8, 20, GPIO20, 38, 0, 20, DIGITAL_INPUT | DIGITAL_OUTPUT # Alt4 = SPI1-MOSI | ||
GPIO, J8, 21, GPIO21, 40, 0, 21, DIGITAL_INPUT | DIGITAL_OUTPUT # Alt4 = SPI1-SCLK | ||
GPIO, J8, 22, GPIO22, 15, 0, 22, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 23, GPIO23, 16, 0, 23, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 24, GPIO24, 18, 0, 24, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 25, GPIO25, 22, 0, 25, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 26, GPIO26, 37, 0, 26, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 27, GPIO27, 13, 0, 27, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
|
||
# J2 Header | ||
GPIO, J2, 54, BT_ON, 0, 1, 0, | ||
GPIO, J2, 55, WL_ON, 1, 1, 1, | ||
GPIO, J2, 56, PWR_LED_OFF, 2, 1, 2, | ||
GPIO, J2, 57, GLOBAL_RESET, 3, 1, 3, | ||
GPIO, J2, 58, VDD_SD_IO_SEL, 4, 1, 4, | ||
GPIO, J2, 59, CAM_GPIO, 5, 1, 5, | ||
GPIO, J2, 60, SD_PWR_ON, 6, 1, 6, | ||
GPIO, J2, 61, SD_OC_N, 7, 1, 7, |
67 changes: 67 additions & 0 deletions
67
diozero-core/src/main/resources/boarddefs/raspberrypi_5b.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# GPIO Chip Mapping - Chip, Id, Label | ||
Chip, 0, pinctrl-bcm2835 | ||
#Chip, 1, brcmvirt-gpio | ||
Chip, 1, raspberrypi-exp-gpio | ||
|
||
# GPIO Header info - General, Header, Physical Pin, Name | ||
General, J8, 1, 3v3 | ||
General, J8, 2, 5v | ||
General, J8, 4, 5v | ||
General, J8, 6, GND | ||
General, J8, 9, GND | ||
General, J8, 14, GND | ||
General, J8, 17, 3v3 | ||
General, J8, 20, GND | ||
General, J8, 25, GND | ||
General, J8, 30, GND | ||
General, J8, 34, GND | ||
General, J8, 39, GND | ||
|
||
# For enabling sysfs PWM, see | ||
# https://jumpnowtek.com/rpi/Using-the-Raspberry-Pi-Hardware-PWM-timers.html | ||
|
||
# GPIO, Header, GPIO#, Name, Physical Pin, Chip, Line, Modes | ||
GPIO, J8, 0, ID_SDA, 27, 0, 0, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 1, ID_SCL, 28, 0, 1, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 2, SDA1, 3, 0, 2, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 3, SCL1, 5, 0, 3, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 4, GPIO_GCLK, 7, 0, 4, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 5, GPIO5, 29, 0, 5, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 6, GPIO6, 31, 0, 6, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 7, SPI_CE1_N, 26, 0, 7, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 8, SPI_CE0_N, 24, 0, 8, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 9, SPI_MISO, 21, 0, 9, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 10, SPI_MOSI, 19, 0, 10, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 11, SPI_SCLK, 23, 0, 11, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
#GPIO, J8, 12, GPIO12, 32, 0, 12, DIGITAL_INPUT | DIGITAL_OUTPUT # Alt0 = PWM0 | ||
PWM, J8, 12, GPIO12, 32, 0, 12, 0, 0, DIGITAL_INPUT | DIGITAL_OUTPUT | PWM_OUTPUT # Alt0 = PWM0 | ||
#GPIO, J8, 13, GPIO13, 33, 0, 13, DIGITAL_INPUT | DIGITAL_OUTPUT # Alt0 = PWM1 | ||
PWM, J8, 13, GPIO13, 33, 0, 13, 0, 1, DIGITAL_INPUT | DIGITAL_OUTPUT | PWM_OUTPUT # Alt0 = PWM1 | ||
GPIO, J8, 14, TXD1, 8, 0, 14, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 15, RXD1, 10, 0, 15, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 16, GPIO16, 36, 0, 16, DIGITAL_INPUT | DIGITAL_OUTPUT # Alt4 = SPI1-CE2 | ||
GPIO, J8, 17, GPIO17, 11, 0, 17, DIGITAL_INPUT | DIGITAL_OUTPUT # Alt4 = SPI1-CE1 | ||
#GPIO, J8, 18, GPIO18, 12, 0, 18, DIGITAL_INPUT | DIGITAL_OUTPUT # Alt0 = PCM-CLK, Alt4 = SPI1-CE0, Alt5 = PWM0 | ||
PWM, J8, 18, GPIO18, 12, 0, 18, 0, 0, DIGITAL_INPUT | DIGITAL_OUTPUT | PWM_OUTPUT | ||
#GPIO, J8, 19, GPIO19, 35, 0, 19, DIGITAL_INPUT | DIGITAL_OUTPUT # Alt4 = SPI1-MISO, Alt5 = PWM1 | ||
PWM, J8, 19, GPIO19, 35, 0, 19, 0, 1, DIGITAL_INPUT | DIGITAL_OUTPUT | PWM_OUTPUT | ||
GPIO, J8, 20, GPIO20, 38, 0, 20, DIGITAL_INPUT | DIGITAL_OUTPUT # Alt4 = SPI1-MOSI | ||
GPIO, J8, 21, GPIO21, 40, 0, 21, DIGITAL_INPUT | DIGITAL_OUTPUT # Alt4 = SPI1-SCLK | ||
GPIO, J8, 22, GPIO22, 15, 0, 22, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 23, GPIO23, 16, 0, 23, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 24, GPIO24, 18, 0, 24, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 25, GPIO25, 22, 0, 25, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 26, GPIO26, 37, 0, 26, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
GPIO, J8, 27, GPIO27, 13, 0, 27, DIGITAL_INPUT | DIGITAL_OUTPUT | ||
|
||
# J2 Header | ||
GPIO, J2, 54, BT_ON, 0, 1, 0, | ||
GPIO, J2, 55, WL_ON, 1, 1, 1, | ||
GPIO, J2, 56, PWR_LED_OFF, 2, 1, 2, | ||
GPIO, J2, 57, GLOBAL_RESET, 3, 1, 3, | ||
GPIO, J2, 58, VDD_SD_IO_SEL, 4, 1, 4, | ||
GPIO, J2, 59, CAM_GPIO, 5, 1, 5, | ||
GPIO, J2, 60, SD_PWR_ON, 6, 1, 6, | ||
GPIO, J2, 61, SD_OC_N, 7, 1, 7, | ||
|
||
# J7 Header |
Oops, something went wrong.