Hi Forum Members,
I need have to activate a 1-wire thermal sensor DS1820 on al old BPI M1.
I've had these type of sensors allready runing on a BPI M2Zero under Buster (Armbian Kernel: 5.10.60-sunxi)
wih these settings in /boot/armbianEnv.txt:
overlays=w1-gpio
param_w1_pin=PA6
dmesg | grep -E 'w1|wire'
[ 6.806929] Driver for 1-wire Dallas network protocol.
[ 6.847601] gpio-6 (onewire@0): enforced open drain please flag it properly in DT/ACPI DSDT/board file
[ 6.875871] w1_master_driver w1_bus_master1: Attaching one wire slave 28.0121121d29c5 crc 9a
[ 7.020059] w1_master_driver w1_bus_master1: Attaching one wire slave 28.0121115aaa65 crc c1
[ 7.115896] w1_master_driver w1_bus_master1: Attaching one wire slave 28.012111456c5b crc 23
[ 7.212969] w1_master_driver w1_bus_master1: Attaching one wire slave 28.0121121afabf crc 5b
[ 7.299832] w1_master_driver w1_bus_master1: Attaching one wire slave 28.01211165dfbf crc a7
[ 8.527889] Bluetooth: HCI UART protocol Three-wire (H5) registered
and is also shown via: sudo cat /sys/kernel/debug/gpio as:
gpiochip0: GPIOs 0-223, parent: platform/1c20800.pinctrl, 1c20800.pinctrl:
gpio-6 ( |onewire@0 ) out hi
gpio-7 ( |sysfs ) out lo
gpio-8 ( |sysfs ) out lo
gpio-9 ( |sysfs ) out lo
gpio-10 ( |sysfs ) out lo
gpio-21 ( |sysfs ) out lo
gpio-166 ( |cd ) in hi
gpio-203 ( |host-wakeup ) in lo IRQ
gpio-204 ( |shutdown ) out hi
gpio-205 ( |device-wakeup ) out lo
gpiochip1: GPIOs 352-383, parent: platform/1f02c00.pinctrl, 1f02c00.pinctrl:
gpio-353 ( |vdd-cpux ) out hi
gpio-355 ( |power ) in hi IRQ ACTIVE LOW
gpio-356 ( |sysfs ) out lo
gpio-358 ( |usb0_id_det ) in hi IRQ
gpio-359 ( |reset ) out hi ACTIVE LOW
gpio-362 ( |bananapi-m2-zero:red) out lo
Now on the BPI M1 also under Buster (Armbian Kernel: 5.10.16-sunxi) it is not possible to use this pin PA6. I got these errors:
dmesg | grep -E 'w1|wire'
[ 6.641667] Driver for 1-wire Dallas network protocol.
[ 6.666672] sun4i-pinctrl 1c20800.pinctrl: pin PA6 already requested by 1c50000.ethernet; cannot claim for onewire@0
[ 6.666696] sun4i-pinctrl 1c20800.pinctrl: pin-6 (onewire@0) status -22
[ 6.666717] w1-gpio onewire@0: Error applying setting, reverse things back
[ 6.666750] w1-gpio: probe of onewire@0 failed with error -22
I've tried also other PA's but allways the same problems.
I know that the Buster Kernels are no longer supported, but have the general question about the GPIO Pin naming/mapping to the physical Pins for the 26 and 40 Pin Headers used by Armbian for what SOC's please.
Thands in advance
wollik