1-Wire issues with Armbian_20.02.5_Bananapi_buster_current_5.4.26 (SOLVED)


Recommended Posts

Posted (edited)
Armbianmonitor:

1-Wire works, I put the explanation at the end of this post.

 

Hello There,

 

yesterday I burned a fresh image of Armbian_20.02.5_Bananapi_buster_current_5.4.26 to replace my current setup (Armbian_5.91_Bananapi_Debian_buster_next_4.19.59) and I run into some trouble with 1-Wire. I tried everything I knew and found on the web but 1-Wire still won't work. So I need some help.

 

My hardware setup was not changed and it worked for at least two years. So would rule out a wiring problem at the moment. My SoC is a Banana PI M1 ( http://www.banana-pi.org/m1.html )

 

The strange thing is, that 1-Wire wont come up by itself, I have to run modproble after reboot to get at lease the the folders at /sys/bus/w1/* but it show no devices. And the pin (PH2) seems not to be claimed by 1-Wire anyway.

 

root@bananapi:~# uname --all
Linux bananapi 5.4.35-sunxi #trunk SMP Thu Apr 23 18:06:21 CEST 2020 armv7l GNU/Linux

root@bananapi:~# ls /sys/bus/w1/devices/
ls: cannot access '/sys/bus/w1/devices/': No such file or directory
root@bananapi:~# ls /sys/bus/w1
ls: cannot access '/sys/bus/w1': No such file or directory
root@bananapi:~# modprobe w1_gpio && modprobe w1_therm && modprobe wire
root@bananapi:~# ls /sys/bus/w1
devices  drivers  drivers_autoprobe  drivers_probe  uevent
root@bananapi:~# ls /sys/bus/w1/devices/
root@bananapi:~#

root@bananapi:~# dmesg | grep 1-wire
[  127.418901] Driver for 1-wire Dallas network protocol.

root@bananapi:~# cat /boot/armbianEnv.txt
verbosity=1
logo=disabled
console=both
disp_mode=1920x1080p60
overlay_prefix=sun7i-a20
rootdev=UUID=0b455209-63d8-4829-aa17-9ac119488a93
rootfstype=ext4
overlays=w1-gpio can
param_w1_pin=PH2
param_w1_pin_int_pullup=0
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u

root@bananapi:~# cat /sys/kernel/debug/pinctrl/1c20800.pinctrl/pinmux-pins 
Pinmux settings per pin
Format: pin (name): mux_owner gpio_owner hog?
pin 0 (PA0): 1c50000.ethernet (GPIO UNCLAIMED) function gmac group PA0
pin 1 (PA1): 1c50000.ethernet (GPIO UNCLAIMED) function gmac group PA1
pin 2 (PA2): 1c50000.ethernet (GPIO UNCLAIMED) function gmac group PA2
pin 3 (PA3): 1c50000.ethernet (GPIO UNCLAIMED) function gmac group PA3
pin 4 (PA4): 1c50000.ethernet (GPIO UNCLAIMED) function gmac group PA4
pin 5 (PA5): 1c50000.ethernet (GPIO UNCLAIMED) function gmac group PA5
pin 6 (PA6): 1c50000.ethernet (GPIO UNCLAIMED) function gmac group PA6
pin 7 (PA7): 1c50000.ethernet (GPIO UNCLAIMED) function gmac group PA7
pin 8 (PA8): 1c50000.ethernet (GPIO UNCLAIMED) function gmac group PA8
pin 9 (PA9): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 10 (PA10): 1c50000.ethernet (GPIO UNCLAIMED) function gmac group PA10
pin 11 (PA11): 1c50000.ethernet (GPIO UNCLAIMED) function gmac group PA11
pin 12 (PA12): 1c50000.ethernet (GPIO UNCLAIMED) function gmac group PA12
pin 13 (PA13): 1c50000.ethernet (GPIO UNCLAIMED) function gmac group PA13
pin 14 (PA14): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 15 (PA15): 1c50000.ethernet (GPIO UNCLAIMED) function gmac group PA15
pin 16 (PA16): 1c50000.ethernet (GPIO UNCLAIMED) function gmac group PA16
pin 17 (PA17): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 32 (PB0): 1c2ac00.i2c (GPIO UNCLAIMED) function i2c0 group PB0
pin 33 (PB1): 1c2ac00.i2c (GPIO UNCLAIMED) function i2c0 group PB1
pin 34 (PB2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 35 (PB3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 36 (PB4): 1c21800.ir (GPIO UNCLAIMED) function ir0 group PB4
pin 37 (PB5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 38 (PB6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 39 (PB7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 40 (PB8): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 41 (PB9): (MUX UNCLAIMED) 1c20800.pinctrl:41
pin 42 (PB10): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 43 (PB11): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 44 (PB12): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 45 (PB13): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 46 (PB14): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 47 (PB15): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 48 (PB16): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 49 (PB17): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 50 (PB18): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 51 (PB19): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 52 (PB20): 1c2b400.i2c (GPIO UNCLAIMED) function i2c2 group PB20
pin 53 (PB21): 1c2b400.i2c (GPIO UNCLAIMED) function i2c2 group PB21
pin 54 (PB22): 1c28000.serial (GPIO UNCLAIMED) function uart0 group PB22
pin 55 (PB23): 1c28000.serial (GPIO UNCLAIMED) function uart0 group PB23
pin 64 (PC0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 65 (PC1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 66 (PC2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 67 (PC3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 68 (PC4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 69 (PC5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 70 (PC6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 71 (PC7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 72 (PC8): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 73 (PC9): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 74 (PC10): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 75 (PC11): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 76 (PC12): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 77 (PC13): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 78 (PC14): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 79 (PC15): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 80 (PC16): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 81 (PC17): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 82 (PC18): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 83 (PC19): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 84 (PC20): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 85 (PC21): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 86 (PC22): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 87 (PC23): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 88 (PC24): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 96 (PD0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 97 (PD1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 98 (PD2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 99 (PD3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 100 (PD4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 101 (PD5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 102 (PD6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 103 (PD7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 104 (PD8): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 105 (PD9): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 106 (PD10): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 107 (PD11): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 108 (PD12): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 109 (PD13): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 110 (PD14): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 111 (PD15): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 112 (PD16): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 113 (PD17): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 114 (PD18): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 115 (PD19): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 116 (PD20): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 117 (PD21): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 118 (PD22): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 119 (PD23): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 120 (PD24): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 121 (PD25): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 122 (PD26): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 123 (PD27): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 128 (PE0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 129 (PE1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 130 (PE2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 131 (PE3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 132 (PE4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 133 (PE5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 134 (PE6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 135 (PE7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 136 (PE8): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 137 (PE9): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 138 (PE10): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 139 (PE11): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 160 (PF0): 1c0f000.mmc (GPIO UNCLAIMED) function mmc0 group PF0
pin 161 (PF1): 1c0f000.mmc (GPIO UNCLAIMED) function mmc0 group PF1
pin 162 (PF2): 1c0f000.mmc (GPIO UNCLAIMED) function mmc0 group PF2
pin 163 (PF3): 1c0f000.mmc (GPIO UNCLAIMED) function mmc0 group PF3
pin 164 (PF4): 1c0f000.mmc (GPIO UNCLAIMED) function mmc0 group PF4
pin 165 (PF5): 1c0f000.mmc (GPIO UNCLAIMED) function mmc0 group PF5
pin 192 (PG0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 193 (PG1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 194 (PG2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 195 (PG3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 196 (PG4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 197 (PG5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 198 (PG6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 199 (PG7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 200 (PG8): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 201 (PG9): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 202 (PG10): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 203 (PG11): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 224 (PH0): 1c28c00.serial (GPIO UNCLAIMED) function uart3 group PH0
pin 225 (PH1): 1c28c00.serial (GPIO UNCLAIMED) function uart3 group PH1
pin 226 (PH2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 227 (PH3): (MUX UNCLAIMED) 1c20800.pinctrl:227
pin 228 (PH4): (MUX UNCLAIMED) 1c20800.pinctrl:228
pin 229 (PH5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 230 (PH6): (MUX UNCLAIMED) 1c20800.pinctrl:230
pin 231 (PH7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 232 (PH8): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 233 (PH9): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 234 (PH10): (MUX UNCLAIMED) 1c20800.pinctrl:234
pin 235 (PH11): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 236 (PH12): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 237 (PH13): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 238 (PH14): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 239 (PH15): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 240 (PH16): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 241 (PH17): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 242 (PH18): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 243 (PH19): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 244 (PH20): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 245 (PH21): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 246 (PH22): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 247 (PH23): (MUX UNCLAIMED) 1c20800.pinctrl:247
pin 248 (PH24): (MUX UNCLAIMED) 1c20800.pinctrl:248
pin 249 (PH25): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 250 (PH26): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 251 (PH27): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 256 (PI0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 257 (PI1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 258 (PI2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 259 (PI3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 260 (PI4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 261 (PI5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 262 (PI6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 263 (PI7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 264 (PI8): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 265 (PI9): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 266 (PI10): 1c05000.spi (GPIO UNCLAIMED) function spi0 group PI10
pin 267 (PI11): 1c05000.spi (GPIO UNCLAIMED) function spi0 group PI11
pin 268 (PI12): 1c05000.spi (GPIO UNCLAIMED) function spi0 group PI12
pin 269 (PI13): 1c05000.spi (GPIO UNCLAIMED) function spi0 group PI13
pin 270 (PI14): 1c05000.spi (GPIO UNCLAIMED) function spi0 group PI14
pin 271 (PI15): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 272 (PI16): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 273 (PI17): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 274 (PI18): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 275 (PI19): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 276 (PI20): 1c29c00.serial (GPIO UNCLAIMED) function uart7 group PI20
pin 277 (PI21): 1c29c00.serial (GPIO UNCLAIMED) function uart7 group PI21

root@bananapi:~# cat /sys/kernel/debug/pinctrl/1c20800.pinctrl/pinmux-pins 
Pinmux settings per pin
Format: pin (name): mux_owner gpio_owner hog?
pin 0 (PA0): 1c50000.ethernet (GPIO UNCLAIMED) function gmac group PA0
pin 1 (PA1): 1c50000.ethernet (GPIO UNCLAIMED) function gmac group PA1
pin 2 (PA2): 1c50000.ethernet (GPIO UNCLAIMED) function gmac group PA2
pin 3 (PA3): 1c50000.ethernet (GPIO UNCLAIMED) function gmac group PA3
pin 4 (PA4): 1c50000.ethernet (GPIO UNCLAIMED) function gmac group PA4
pin 5 (PA5): 1c50000.ethernet (GPIO UNCLAIMED) function gmac group PA5
pin 6 (PA6): 1c50000.ethernet (GPIO UNCLAIMED) function gmac group PA6
pin 7 (PA7): 1c50000.ethernet (GPIO UNCLAIMED) function gmac group PA7
pin 8 (PA8): 1c50000.ethernet (GPIO UNCLAIMED) function gmac group PA8
pin 9 (PA9): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 10 (PA10): 1c50000.ethernet (GPIO UNCLAIMED) function gmac group PA10
pin 11 (PA11): 1c50000.ethernet (GPIO UNCLAIMED) function gmac group PA11
pin 12 (PA12): 1c50000.ethernet (GPIO UNCLAIMED) function gmac group PA12
pin 13 (PA13): 1c50000.ethernet (GPIO UNCLAIMED) function gmac group PA13
pin 14 (PA14): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 15 (PA15): 1c50000.ethernet (GPIO UNCLAIMED) function gmac group PA15
pin 16 (PA16): 1c50000.ethernet (GPIO UNCLAIMED) function gmac group PA16
pin 17 (PA17): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 32 (PB0): 1c2ac00.i2c (GPIO UNCLAIMED) function i2c0 group PB0
pin 33 (PB1): 1c2ac00.i2c (GPIO UNCLAIMED) function i2c0 group PB1
pin 34 (PB2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 35 (PB3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 36 (PB4): 1c21800.ir (GPIO UNCLAIMED) function ir0 group PB4
pin 37 (PB5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 38 (PB6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 39 (PB7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 40 (PB8): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 41 (PB9): (MUX UNCLAIMED) 1c20800.pinctrl:41
pin 42 (PB10): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 43 (PB11): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 44 (PB12): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 45 (PB13): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 46 (PB14): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 47 (PB15): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 48 (PB16): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 49 (PB17): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 50 (PB18): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 51 (PB19): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 52 (PB20): 1c2b400.i2c (GPIO UNCLAIMED) function i2c2 group PB20
pin 53 (PB21): 1c2b400.i2c (GPIO UNCLAIMED) function i2c2 group PB21
pin 54 (PB22): 1c28000.serial (GPIO UNCLAIMED) function uart0 group PB22
pin 55 (PB23): 1c28000.serial (GPIO UNCLAIMED) function uart0 group PB23
pin 64 (PC0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 65 (PC1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 66 (PC2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 67 (PC3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 68 (PC4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 69 (PC5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 70 (PC6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 71 (PC7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 72 (PC8): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 73 (PC9): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 74 (PC10): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 75 (PC11): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 76 (PC12): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 77 (PC13): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 78 (PC14): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 79 (PC15): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 80 (PC16): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 81 (PC17): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 82 (PC18): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 83 (PC19): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 84 (PC20): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 85 (PC21): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 86 (PC22): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 87 (PC23): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 88 (PC24): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 96 (PD0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 97 (PD1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 98 (PD2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 99 (PD3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 100 (PD4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 101 (PD5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 102 (PD6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 103 (PD7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 104 (PD8): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 105 (PD9): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 106 (PD10): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 107 (PD11): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 108 (PD12): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 109 (PD13): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 110 (PD14): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 111 (PD15): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 112 (PD16): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 113 (PD17): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 114 (PD18): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 115 (PD19): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 116 (PD20): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 117 (PD21): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 118 (PD22): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 119 (PD23): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 120 (PD24): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 121 (PD25): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 122 (PD26): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 123 (PD27): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 128 (PE0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 129 (PE1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 130 (PE2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 131 (PE3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 132 (PE4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 133 (PE5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 134 (PE6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 135 (PE7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 136 (PE8): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 137 (PE9): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 138 (PE10): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 139 (PE11): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 160 (PF0): 1c0f000.mmc (GPIO UNCLAIMED) function mmc0 group PF0
pin 161 (PF1): 1c0f000.mmc (GPIO UNCLAIMED) function mmc0 group PF1
pin 162 (PF2): 1c0f000.mmc (GPIO UNCLAIMED) function mmc0 group PF2
pin 163 (PF3): 1c0f000.mmc (GPIO UNCLAIMED) function mmc0 group PF3
pin 164 (PF4): 1c0f000.mmc (GPIO UNCLAIMED) function mmc0 group PF4
pin 165 (PF5): 1c0f000.mmc (GPIO UNCLAIMED) function mmc0 group PF5
pin 192 (PG0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 193 (PG1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 194 (PG2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 195 (PG3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 196 (PG4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 197 (PG5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 198 (PG6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 199 (PG7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 200 (PG8): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 201 (PG9): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 202 (PG10): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 203 (PG11): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 224 (PH0): 1c28c00.serial (GPIO UNCLAIMED) function uart3 group PH0
pin 225 (PH1): 1c28c00.serial (GPIO UNCLAIMED) function uart3 group PH1
pin 226 (PH2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 227 (PH3): (MUX UNCLAIMED) 1c20800.pinctrl:227
pin 228 (PH4): (MUX UNCLAIMED) 1c20800.pinctrl:228
pin 229 (PH5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 230 (PH6): (MUX UNCLAIMED) 1c20800.pinctrl:230
pin 231 (PH7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 232 (PH8): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 233 (PH9): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 234 (PH10): (MUX UNCLAIMED) 1c20800.pinctrl:234
pin 235 (PH11): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 236 (PH12): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 237 (PH13): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 238 (PH14): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 239 (PH15): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 240 (PH16): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 241 (PH17): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 242 (PH18): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 243 (PH19): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 244 (PH20): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 245 (PH21): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 246 (PH22): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 247 (PH23): (MUX UNCLAIMED) 1c20800.pinctrl:247
pin 248 (PH24): (MUX UNCLAIMED) 1c20800.pinctrl:248
pin 249 (PH25): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 250 (PH26): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 251 (PH27): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 256 (PI0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 257 (PI1): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 258 (PI2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 259 (PI3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 260 (PI4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 261 (PI5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 262 (PI6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 263 (PI7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 264 (PI8): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 265 (PI9): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 266 (PI10): 1c05000.spi (GPIO UNCLAIMED) function spi0 group PI10
pin 267 (PI11): 1c05000.spi (GPIO UNCLAIMED) function spi0 group PI11
pin 268 (PI12): 1c05000.spi (GPIO UNCLAIMED) function spi0 group PI12
pin 269 (PI13): 1c05000.spi (GPIO UNCLAIMED) function spi0 group PI13
pin 270 (PI14): 1c05000.spi (GPIO UNCLAIMED) function spi0 group PI14
pin 271 (PI15): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 272 (PI16): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 273 (PI17): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 274 (PI18): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 275 (PI19): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 276 (PI20): 1c29c00.serial (GPIO UNCLAIMED) function uart7 group PI20
pin 277 (PI21): 1c29c00.serial (GPIO UNCLAIMED) function uart7 group PI21

root@bananapi:~# dtc -I dtb -O dts sun7i-a20-w1-gpio.dtbo 
<stdout>: Warning (unit_address_vs_reg): /fragment@1/__overlay__/onewire@0: node has a unit name, but no reg property
<stdout>: Warning (unit_address_vs_reg): /__local_fixups__/fragment@1/__overlay__/onewire@0: node has a unit name, but no reg property
<stdout>: Warning (gpios_property): /fragment@1/__overlay__/onewire@0:gpios: Could not get phandle node for (cell 1)
/dts-v1/;

/ {
        compatible = "allwinner,sun7i-a20";

        fragment@0 {
                target = < 0xffffffff >;

                __overlay__ {

                        w1_pins {
                                pins = "PI15";
                                function = "gpio_in";
                                phandle = < 0x01 >;
                        };
                };
        };

        fragment@1 {
                target-path = [ 2f 00 ];

                __overlay__ {

                        onewire@0 {
                                compatible = "w1-gpio";
                                pinctrl-names = "default";
                                pinctrl-0 = < 0x01 >;
                                gpios = < 0xffffffff 0x08 0x0f 0x00 >;
                                status = "okay";
                        };
                };
        };

        __symbols__ {
                w1_pins = "/fragment@0/__overlay__/w1_pins";
        };

        __fixups__ {
                pio = "/fragment@0:target:0\0/fragment@1/__overlay__/onewire@0:gpios:0";
        };

        __local_fixups__ {

                fragment@1 {

                        __overlay__ {

                                onewire@0 {
                                        pinctrl-0 = < 0x00 >;
                                };
                        };
                };
        };
};

 

Here some output from my old system (armbianmonitor seems not to be available there)

root@bananapi:~# dtc -I dtb -O dts sun7i-a20-w1-gpio.dtbo 
Warning (unit_address_vs_reg): Node /fragment@0 has a unit name, but no reg property
Warning (unit_address_vs_reg): Node /fragment@1 has a unit name, but no reg property
Warning (unit_address_vs_reg): Node /fragment@1/__overlay__/onewire@0 has a unit name, but no reg property
Warning (unit_address_vs_reg): Node /__local_fixups__/fragment@1 has a unit name, but no reg property
Warning (unit_address_vs_reg): Node /__local_fixups__/fragment@1/__overlay__/onewire@0 has a unit name, but no reg property
/dts-v1/;

/ {
        compatible = "allwinner,sun7i-a20";

        fragment@0 {
                target = <0xffffffff>;

                __overlay__ {

                        w1_pins {
                                pins = "PI15";
                                function = "gpio_in";
                                phandle = <0x1>;
                        };
                };
        };

        fragment@1 {
                target-path = [2f 00];

                __overlay__ {

                        onewire@0 {
                                compatible = "w1-gpio";
                                pinctrl-names = "default";
                                pinctrl-0 = <0x1>;
                                gpios = <0xffffffff 0x8 0xf 0x0>;
                                status = "okay";
                        };
                };
        };

        __symbols__ {
                w1_pins = "/fragment@0/__overlay__/w1_pins";
        };

        __fixups__ {
                pio = "/fragment@0:target:0", "/fragment@1/__overlay__/onewire@0:gpios:0";
        };

        __local_fixups__ {

                fragment@1 {

                        __overlay__ {

                                onewire@0 {
                                        pinctrl-0 = <0x0>;
                                };
                        };
                };
        };
};

root@bananapi:~# cat /sys/kernel/debug/pinctrl/1c20800.pinctrl/pinmux-pins | grep PH2
pin 226 (PH2): onewire@0 1c20800.pinctrl:226 function gpio_in group PH2

I'm pretty sure I miss something, maybe someone can help me with that.

 

 

SOLVED

 

When I remove then can module in /boot/armbianEnv.txt 1-Wire works as expected. When I add uart2 module and reboot, 1-Wire still works. So it might have something to do with can module.

Edited by bastelix
Solved
Link to post
Share on other sites
Want Armbian t-shirt or a cup?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...