PE GPIOs not working with Olimage 5.8.16

Started by leo.costa, November 07, 2020, 01:59:06 AM

Previous topic - Next topic

leo.costa

Hello,
switching from Armbian to Olimage i had another problem, the PE GPIO bank is not working anymore, the PE10 pin output state is fixed to 0v. No errors on "/sys/kernel/debug/gpio" and no error changing the value to 1 with sysfs. I'm using a custom carrier board and i recompiled the kernel without any camera driver. Shall i remove the csi from the a20-som204-evb dtb? With Armbian kernel 5.2.2 i hadn't this problem.

Leo

LubOlimex

Is it only for the PE bank? Do other ports work fine?
Technical support and documentation manager at Olimex

leo.costa

Hello,
i just tried the GPIO1/PI2, PB3, PH7 and they worked.
PE0, PE1, PE2, PE4, PE10, PE11 do not work, PE4 is the only one connected to anything and it goes only to 0.55v.

Leo

LubOlimex

Hmm, we tested toggling PE4 on LIME2 today with the Olimage and it seems toggling fine at more than 3V when high position. It is GPIO132 in Linux right:

root@a20-olinuxino:~# echo 132 > /sys/class/gpio/export
root@a20-olinuxino:~# echo out > /sys/class/gpio/gpio132
-bash: /sys/class/gpio/gpio132: Is a directory
root@a20-olinuxino:~# echo out > /sys/class/gpio/gpio132/direction
root@a20-olinuxino:~# echo 1 > /sys/class/gpio/gpio132/value
root@a20-olinuxino:~# echo 0 > /sys/class/gpio/gpio132/value

You are using A20-SOM204 right? There is no A20-SOM204-EVB attached when testing PE4 toggle? Because if you test with the EVB connected then probably the CSI camera will be interfering.
Technical support and documentation manager at Olimex

leo.costa

Hello,
yes i also tried the 128, 138 and 139. It's a custom board, i'm not using the EVB. I also rebuilt the kernel without csi driver and the kernel.itb without csi declared in the device tree. The A20-SOM204 i'm using has the internal eMMC, i'm testing these two configurations:
- Armbian Kernel 5.2.2 booting from the eMMC, PE works.
- Olimage Kernel 5.8.16 booting from the uSD, PE does not work.
maybe a configuration of banks regulators?

Leo

LubOlimex

But did you test with the Olimage without changes first?
Technical support and documentation manager at Olimex

leo.costa

Hello,
i tested the 29/10 olimage version without changes and it didn't worked, but i've just tested the 05/11 olimage without changes on a Olinuxo-MICRO (so i don't have any camera attached to those pins) and it works. Not as expected since i have 2.8V on high level of PE pins. Next days i'll try that version on the A20-SOM204.

Leo

leo.costa

Hello, i've just tried the Olimage 5.8.18 with the A20-SOM204 with eMMC and it doesn't work, PE pins do not change. I have the Olimage on a SD card and the Armbian on the eMMC, so i can switch the distro rebooting the system. Armbian works, Olimage doesn't. Any suggestions? Anything to try? i have some time to spend on it beacuse i need to resolve the problem.
Here is the difference of the "dmesg | grep vcc" between the two systems:
OLIMAGE
---------
[    3.167212] sun4i-pinctrl 1c20800.pinctrl: supply vcc-pb not found, using dummy regulator
[    3.185544] sun4i-pinctrl 1c20800.pinctrl: supply vcc-pg not found, using dummy regulator
[    3.188233] sun4i-pinctrl 1c20800.pinctrl: supply vcc-pi not found, using dummy regulator
[    3.210323] sun4i-pinctrl 1c20800.pinctrl: supply vcc-pc not found, using dummy regulator
[    3.216711] sun4i-pinctrl 1c20800.pinctrl: supply vcc-pa not found, using dummy regulator
[    5.476444] avcc: supplied by regulator-dummy
[    5.477456] vcc-pg: supplied by regulator-dummy
[    5.488124] sun4i-pinctrl 1c20800.pinctrl: supply vcc-pf not found, using dummy regulator
[    5.489374] sun4i-pinctrl 1c20800.pinctrl: supply vcc-ph not found, using dummy regulator
[  34.726166] at24 1-0050: supply vcc not found, using dummy regulator
[  35.147628] usb_phy_generic usb_phy_generic.0.auto: supply vcc not found, using dummy regulator
[  35.816847] vcc3v0: disabling
[  35.816864] vcc5v0: disabling
[  35.817259] vcc-pg: disabling
[  85.817761] sun4i-pinctrl 1c20800.pinctrl: supply vcc-pe not found, using dummy regulator
-------------
ARMBIAN
[    2.733595] sun4i-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator
[    2.755268] sun4i-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pi not found, using dummy regulator
[    2.776819] sun4i-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[    3.388121] sun4i-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    3.392997] sun4i-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pa not found, using dummy regulator
[    5.649856] vcc-pe: Bringing 2800000uV into 3300000-3300000uV
[    5.650450] vcc-pg: Bringing 3000000uV into 3300000-3300000uV
[    5.659029] sun4i-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    5.660569] sun4i-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-ph not found, using dummy regulator
[    5.895127] vcc3v0: disabling
[    5.895137] vcc5v0: disabling
[  14.372359] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator


In the Olimage log i cannot see the "[    5.649856] vcc-pe: Bringing 2800000uV into 3300000-3300000uV" string.
Leo

LubOlimex

About that part of 2.8V DC to 3.3V DC - yes it seems the PE and PG don't go up to 3.3V only up to 2.8V, it seems a problem with the configuration of the GPIOs of these ports. I have reported it to our team. I have to check about whether PE and PG toggles on the A20-SOM204-EVB tho.
Technical support and documentation manager at Olimex

lombyp

hello, I am working with your olimage A20-OLinuXino-buster-minimal-20201217-194545.
on the T2-OLinuXino-MICRO-e8Gs16M-IND rev.M.
using the python library pyA20 I have some problem with the GPIO PE and PG (they don't turn on)...the others ports go well.
what could be the problem?
I would like to try to set them via echo gpioXX > /sys/class/gpio/export etc..
but where can I find the right port mapping?

LubOlimex

Quote from: lombyp on December 27, 2020, 12:37:16 PMI would like to try to set them via echo gpioXX > /sys/class/gpio/export etc..
but where can I find the right port mapping?

Before exporting the pin as GPIO make sure it is not used for other purposes, refer to the schematic.

To obtain the correct number you have to calculate it from the pin name (like PH18):

(position of letter in alphabet - 1) * 32 + pin number

E.g for PH18 this would be ( 8 - 1) * 32 + 18 = 224 + 18 = 242 (since 'h' is the 8th letter).

https://linux-sunxi.org/GPIO#Accessing_the_GPIO_pins_through_sysfs_with_mainline_kernel
Technical support and documentation manager at Olimex

lombyp

then the port PE0 must be 128... the problem is that when I set it to 1, the port not go high.. same problem for all the ports PE and PG..where could the problem be? am I doing something wrong or forgetting something?

this is whath I did:
echo 128 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio128/direction
echo 1 > /sys/class/gpio/gpio128/value


root@a20-olinuxino:cat /sys/kernel/debug/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): 1c50000.ethernet (GPIO UNCLAIMED) function gmac group PA9
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): 1c50000.ethernet (GPIO UNCLAIMED) function gmac group PA14
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): 1c50000.ethernet (GPIO UNCLAIMED) function gmac group PA17
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): 1c20e00.pwm (GPIO UNCLAIMED) function pwm group PB2
pin 35 (PB3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 36 (PB4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
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) 1c20800.pinctrl:40
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): 1c2b000.i2c (GPIO UNCLAIMED) function i2c1 group PB18
pin 51 (PB19): 1c2b000.i2c (GPIO UNCLAIMED) function i2c1 group PB19
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): 1c05000.spi (GPIO UNCLAIMED) function spi0 group PC0
pin 65 (PC1): 1c05000.spi (GPIO UNCLAIMED) function spi0 group PC1
pin 66 (PC2): 1c05000.spi (GPIO UNCLAIMED) function spi0 group PC2
pin 67 (PC3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 68 (PC4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 69 (PC5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 70 (PC6): 1c11000.mmc (GPIO UNCLAIMED) function mmc2 group PC6
pin 71 (PC7): 1c11000.mmc (GPIO UNCLAIMED) function mmc2 group PC7
pin 72 (PC8): 1c11000.mmc (GPIO UNCLAIMED) function mmc2 group PC8
pin 73 (PC9): 1c11000.mmc (GPIO UNCLAIMED) function mmc2 group PC9
pin 74 (PC10): 1c11000.mmc (GPIO UNCLAIMED) function mmc2 group PC10
pin 75 (PC11): 1c11000.mmc (GPIO UNCLAIMED) function mmc2 group PC11
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) 1c20800.pinctrl:80
pin 81 (PC17): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 82 (PC18): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 83 (PC19): 1c17000.spi (GPIO UNCLAIMED) function spi2 group PC19
pin 84 (PC20): 1c17000.spi (GPIO UNCLAIMED) function spi2 group PC20
pin 85 (PC21): 1c17000.spi (GPIO UNCLAIMED) function spi2 group PC21
pin 86 (PC22): 1c17000.spi (GPIO UNCLAIMED) function spi2 group PC22
pin 87 (PC23): 1c05000.spi (GPIO UNCLAIMED) function spi0 group PC23
pin 88 (PC24): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 96 (PD0): panel (GPIO UNCLAIMED) function lcd0 group PD0
pin 97 (PD1): panel (GPIO UNCLAIMED) function lcd0 group PD1
pin 98 (PD2): panel (GPIO UNCLAIMED) function lcd0 group PD2
pin 99 (PD3): panel (GPIO UNCLAIMED) function lcd0 group PD3
pin 100 (PD4): panel (GPIO UNCLAIMED) function lcd0 group PD4
pin 101 (PD5): panel (GPIO UNCLAIMED) function lcd0 group PD5
pin 102 (PD6): panel (GPIO UNCLAIMED) function lcd0 group PD6
pin 103 (PD7): panel (GPIO UNCLAIMED) function lcd0 group PD7
pin 104 (PD8): panel (GPIO UNCLAIMED) function lcd0 group PD8
pin 105 (PD9): panel (GPIO UNCLAIMED) function lcd0 group PD9
pin 106 (PD10): panel (GPIO UNCLAIMED) function lcd0 group PD10
pin 107 (PD11): panel (GPIO UNCLAIMED) function lcd0 group PD11
pin 108 (PD12): panel (GPIO UNCLAIMED) function lcd0 group PD12
pin 109 (PD13): panel (GPIO UNCLAIMED) function lcd0 group PD13
pin 110 (PD14): panel (GPIO UNCLAIMED) function lcd0 group PD14
pin 111 (PD15): panel (GPIO UNCLAIMED) function lcd0 group PD15
pin 112 (PD16): panel (GPIO UNCLAIMED) function lcd0 group PD16
pin 113 (PD17): panel (GPIO UNCLAIMED) function lcd0 group PD17
pin 114 (PD18): panel (GPIO UNCLAIMED) function lcd0 group PD18
pin 115 (PD19): panel (GPIO UNCLAIMED) function lcd0 group PD19
pin 116 (PD20): panel (GPIO UNCLAIMED) function lcd0 group PD20
pin 117 (PD21): panel (GPIO UNCLAIMED) function lcd0 group PD21
pin 118 (PD22): panel (GPIO UNCLAIMED) function lcd0 group PD22
pin 119 (PD23): panel (GPIO UNCLAIMED) function lcd0 group PD23
pin 120 (PD24): panel (GPIO UNCLAIMED) function lcd0 group PD24
pin 121 (PD25): panel (GPIO UNCLAIMED) function lcd0 group PD25
pin 122 (PD26): panel (GPIO UNCLAIMED) function lcd0 group PD26
pin 123 (PD27): panel (GPIO UNCLAIMED) function lcd0 group PD27
pin 128 (PE0): (MUX UNCLAIMED) 1c20800.pinctrl:128
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): 1c28c00.serial (GPIO UNCLAIMED) function uart3 group PG6
pin 199 (PG7): 1c28c00.serial (GPIO UNCLAIMED) function uart3 group PG7
pin 200 (PG8): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 201 (PG9): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 202 (PG10): 1c29000.serial (GPIO UNCLAIMED) function uart4 group PG10
pin 203 (PG11): 1c29000.serial (GPIO UNCLAIMED) function uart4 group PG11
pin 224 (PH0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 225 (PH1): (MUX UNCLAIMED) 1c20800.pinctrl:225
pin 226 (PH2): leds 1c20800.pinctrl:226 function gpio_out group PH2
pin 227 (PH3): (MUX UNCLAIMED) 1c20800.pinctrl:227
pin 228 (PH4): (MUX UNCLAIMED) 1c20800.pinctrl:228
pin 229 (PH5): (MUX UNCLAIMED) 1c20800.pinctrl:229
pin 230 (PH6): (MUX UNCLAIMED) 1c20800.pinctrl:230
pin 231 (PH7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 232 (PH8): (MUX UNCLAIMED) 1c20800.pinctrl:232
pin 233 (PH9): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 234 (PH10): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 235 (PH11): (MUX UNCLAIMED) 1c20800.pinctrl:235
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): 1c2bc00.can (GPIO UNCLAIMED) function can group PH20
pin 245 (PH21): 1c2bc00.can (GPIO UNCLAIMED) function can group PH21
pin 246 (PH22): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 247 (PH23): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 248 (PH24): (MUX UNCLAIMED) (GPIO UNCLAIMED)
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): 1c12000.mmc (GPIO UNCLAIMED) function mmc3 group PI4
pin 261 (PI5): 1c12000.mmc (GPIO UNCLAIMED) function mmc3 group PI5
pin 262 (PI6): 1c12000.mmc (GPIO UNCLAIMED) function mmc3 group PI6
pin 263 (PI7): 1c12000.mmc (GPIO UNCLAIMED) function mmc3 group PI7
pin 264 (PI8): 1c12000.mmc (GPIO UNCLAIMED) function mmc3 group PI8
pin 265 (PI9): 1c12000.mmc (GPIO UNCLAIMED) function mmc3 group PI9
pin 266 (PI10): 1c29400.serial (GPIO UNCLAIMED) function uart5 group PI10
pin 267 (PI11): 1c29400.serial (GPIO UNCLAIMED) function uart5 group PI11
pin 268 (PI12): 1c29800.serial (GPIO UNCLAIMED) function uart6 group PI12
pin 269 (PI13): 1c29800.serial (GPIO UNCLAIMED) function uart6 group PI13
pin 270 (PI14): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 271 (PI15): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 272 (PI16): 1c06000.spi (GPIO UNCLAIMED) function spi1 group PI16
pin 273 (PI17): 1c06000.spi (GPIO UNCLAIMED) function spi1 group PI17
pin 274 (PI18): 1c06000.spi (GPIO UNCLAIMED) function spi1 group PI18
pin 275 (PI19): 1c06000.spi (GPIO UNCLAIMED) function spi1 group PI19
pin 276 (PI20): 1c29c00.serial (GPIO UNCLAIMED) function uart7 group PI20
pin 277 (PI21): 1c29c00.serial (GPIO UNCLAIMED) function uart7 group PI21
Pinmux settings per pin
Format: pin (name): mux_owner|gpio_owner (strict) hog?
pin 0 (GPIO0): UNCLAIMED
pin 1 (GPIO1): UNCLAIMED
pin 2 (GPIO2): UNCLAIMED

-peter-

Ho folks,

have the same problem with my micro board, using linux-olimex kernel (5.8.18, using unchanged Olimex DTB and CAN and LCD Overlays from the original olimex image): PG10 and PG11 go only up to 1.1V.

Even if i disconnect them it doesn't go up to 3.3v.
I've put a pullup to 3.3v and during bootup i can see the line goes up to 3.3v for a short time. Then after boot finished comes this:

[  35.818364] vcc5v0: disabling
[  35.821405] ldo3: disabling
[  35.825781] ldo4: disabling
[  35.829802] usb0-vbus: disabling

and the PG10 goes down to 1.1v at the same time. Don't know why. The output seems to be related with my problem.

Then i can only switch gpio (echo 1/0 >.../value) between 0v and 1.1v. Strange.

For comparison: PI16 works fine.


with best Regards,
Peter

LubOlimex

Yes, disabling ldo3 and ldo4 is the source of the problem, next release would have them fixed. It is currently in testing stage expect it out some time next week at the http://images.olimex.com/ location.
Technical support and documentation manager at Olimex