Arch Linux ARM Raspberry Pi 3B+ GPIO Support

This is for ARMv8 based devices

Arch Linux ARM Raspberry Pi 3B+ GPIO Support

Postby indiependente » Thu Oct 04, 2018 12:01 pm

Hello,

I've been trying working on a simple motion detection project in the last couple of days, but I'm struggling getting the data from the PIR sensor, so I'm wondering if the sensor is broken or the OS has some issues with GPIO.

I'm on the following setup:

$this->bbcode_second_pass_code('', '
$ uname -a
Linux alarm 4.18.10-1-ARCH #1 SMP Wed Sep 26 18:16:57 MDT 2018 aarch64 GNU/Linux

$ ls /sys/class/gpio
export gpiochip450 gpiochip458 unexport

Library in use: periph.io

Out from PIR connected to GPIO pin 16.
')

I'm posting the output of ls /sys/class/gpio because it doesn't look good to me that the gpio pins are not available.

Cheers
indiependente
 
Posts: 3
Joined: Wed Oct 03, 2018 1:09 pm

Re: Arch Linux ARM Raspberry Pi 3B+ GPIO Support

Postby indiependente » Fri Oct 05, 2018 12:00 pm

It looks like the pins are mapped, but I can't see the pin I'm using.
$this->bbcode_second_pass_code('', '[root@alarm alarm]# cat /sys/kernel/debug/pinctrl/pinctrl-maps
Pinctrl maps:
device 3f215040.serial
state default
type MUX_GROUP (2)
controlling device 3f200000.gpio
group gpio14
function alt5

device 3f215040.serial
state default
type MUX_GROUP (2)
controlling device 3f200000.gpio
group gpio15
function alt5

device 3f202000.mmc
state default
type MUX_GROUP (2)
controlling device 3f200000.gpio
group gpio48
function alt0

device 3f202000.mmc
state default
type MUX_GROUP (2)
controlling device 3f200000.gpio
group gpio49
function alt0

device 3f202000.mmc
state default
type MUX_GROUP (2)
controlling device 3f200000.gpio
group gpio50
function alt0

device 3f202000.mmc
state default
type MUX_GROUP (2)
controlling device 3f200000.gpio
group gpio51
function alt0

device 3f202000.mmc
state default
type MUX_GROUP (2)
controlling device 3f200000.gpio
group gpio52
function alt0

device 3f202000.mmc
state default
type MUX_GROUP (2)
controlling device 3f200000.gpio
group gpio53
function alt0

device 3f300000.sdhci
state default
type MUX_GROUP (2)
controlling device 3f200000.gpio
group gpio34
function alt3

device 3f300000.sdhci
state default
type CONFIGS_PIN (3)
controlling device 3f200000.gpio
pin gpio34
config 00000080

device 3f300000.sdhci
state default
type MUX_GROUP (2)
controlling device 3f200000.gpio
group gpio35
function alt3

device 3f300000.sdhci
state default
type CONFIGS_PIN (3)
controlling device 3f200000.gpio
pin gpio35
config 00000280

device 3f300000.sdhci
state default
type MUX_GROUP (2)
controlling device 3f200000.gpio
group gpio36
function alt3

device 3f300000.sdhci
state default
type CONFIGS_PIN (3)
controlling device 3f200000.gpio
pin gpio36
config 00000280

device 3f300000.sdhci
state default
type MUX_GROUP (2)
controlling device 3f200000.gpio
group gpio37
function alt3

device 3f300000.sdhci
state default
type CONFIGS_PIN (3)
controlling device 3f200000.gpio
pin gpio37
config 00000280

device 3f300000.sdhci
state default
type MUX_GROUP (2)
controlling device 3f200000.gpio
group gpio38
function alt3

device 3f300000.sdhci
state default
type CONFIGS_PIN (3)
controlling device 3f200000.gpio
pin gpio38
config 00000280

device 3f300000.sdhci
state default
type MUX_GROUP (2)
controlling device 3f200000.gpio
group gpio39
function alt3

device 3f300000.sdhci
state default
type CONFIGS_PIN (3)
controlling device 3f200000.gpio
pin gpio39
config 00000280

device 3f201000.serial
state default
type MUX_GROUP (2)
controlling device 3f200000.gpio
group gpio30
function alt3

device 3f201000.serial
state default
type CONFIGS_PIN (3)
controlling device 3f200000.gpio
pin gpio30
config 00000280

device 3f201000.serial
state default
type MUX_GROUP (2)
controlling device 3f200000.gpio
group gpio31
function alt3

device 3f201000.serial
state default
type CONFIGS_PIN (3)
controlling device 3f200000.gpio
pin gpio31
config 00000080

device 3f201000.serial
state default
type MUX_GROUP (2)
controlling device 3f200000.gpio
group gpio32
function alt3

device 3f201000.serial
state default
type CONFIGS_PIN (3)
controlling device 3f200000.gpio
pin gpio32
config 00000080

device 3f201000.serial
state default
type MUX_GROUP (2)
controlling device 3f200000.gpio
group gpio33
function alt3

device 3f201000.serial
state default
type CONFIGS_PIN (3)
controlling device 3f200000.gpio
pin gpio33
config 00000280

device 3f201000.serial
state default
type MUX_GROUP (2)
controlling device 3f200000.gpio
group gpio43
function alt0

device 3f201000.serial
state default
type CONFIGS_PIN (3)
controlling device 3f200000.gpio
pin gpio43
config 00000080

device 3f205000.i2c
state default
type MUX_GROUP (2)
controlling device 3f200000.gpio
group gpio0
function alt0

device 3f205000.i2c
state default
type MUX_GROUP (2)
controlling device 3f200000.gpio
group gpio1
function alt0

device 3f804000.i2c
state default
type MUX_GROUP (2)
controlling device 3f200000.gpio
group gpio2
function alt0

device 3f804000.i2c
state default
type MUX_GROUP (2)
controlling device 3f200000.gpio
group gpio3
function alt0

device 3f20c000.pwm
state default
type MUX_GROUP (2)
controlling device 3f200000.gpio
group gpio40
function alt0

device 3f20c000.pwm
state default
type MUX_GROUP (2)
controlling device 3f200000.gpio
group gpio41
function alt0')

Any hint?
indiependente
 
Posts: 3
Joined: Wed Oct 03, 2018 1:09 pm

Re: Arch Linux ARM Raspberry Pi 3B+ GPIO Support

Postby TheSaint » Fri Oct 05, 2018 2:28 pm

Have you seen this or this ?
TheSaint
 
Posts: 346
Joined: Mon Jul 23, 2018 7:57 am

Re: Arch Linux ARM Raspberry Pi 3B+ GPIO Support

Postby indiependente » Sat Oct 20, 2018 3:38 pm

Yes, both not working.
indiependente
 
Posts: 3
Joined: Wed Oct 03, 2018 1:09 pm

Re: Arch Linux ARM Raspberry Pi 3B+ GPIO Support

Postby TheSaint » Sat Oct 20, 2018 9:16 pm

Have you seen this?
TheSaint
 
Posts: 346
Joined: Mon Jul 23, 2018 7:57 am


Return to ARMv8 Devices

Who is online

Users browsing this forum: No registered users and 12 guests