Page 1 of 1

Nano pi neo core - unable to use GPIOs

Posted: Wed Mar 13, 2024 10:50 am
by Eugeny
Openwrt. I set up a custom names for the GPIO pins in the device tree, and start getting system log errors

Code: Select all

sun8i-h3-pinctrl 1c20800.pinctrl: supply vcc-pc not found, using dummy regulator


but I can not find related device in the device tree. Everything is disabled, except console UART.

The pins being named are: 0:18-0:21 (PA18-PA21) , 0:1-0:3 (PA1-PA3), 0:200 (PG8), 0:201 (PG9), 0:64-0:67 (PC0-PC3).

When I start operating PE13 or PE12 I also start receiving errors in the system log, however i2c2 is disabled in the device tree, and there're no external to the CPU devices connected using this interface.

I need all the GPIOs looking outside of the board (why then look outside then and what is the point naming them GPIO on the CPU level). I understand the busses may have something connected to them - but I can not find the source of issues as the busses are disabled (pins are expected to function as GPIOs), and there're no devices in the device tree I get errors for.

Thanks.

Re: Nano pi neo core - unable to use GPIOs

Posted: Mon May 13, 2024 3:02 am
by brianredding
I think you should check Dependencies and Regulators:
The error message you mentioned (sun8i-h3-pinctrl 1c20800.pinctrl: supply vcc-pc not found, using dummy regulator) indicates a missing regulator dependency for the pin controller.
Moreover, you should review your device tree to ensure that the necessary regulators and dependencies are correctly defined for the pin controller and GPIO pins you are using. Check if there are any other regulators defined in the device tree that should be supplying power to the GPIO pins.