On 3/1/23 10:53, Jagan Teki wrote:
On Wed, 1 Mar 2023 at 14:01, Eugen Hristev <[email protected]> wrote:
From: Jianqun Xu <[email protected]>
Add support for Rockchip rk3588 variant of pinctrl.
The driver is adapted from the Linux driver.
Signed-off-by: Jianqun Xu <[email protected]>
[[email protected]:
port to latest U-boot, bring more changes from Linux]
Signed-off-by: Eugen Hristev <[email protected]>
---
It would be good if it tested with any function, does it?
Jagan.
Hello Jagan,
To test it with GPIO, I also added this patch to my test bench :
https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
And then, I was able to test with GPIO : powering up a LED , powering it
down, also tested USB host by having the VBUS powered up by GPIO /
powered down.
Other pinctrl functions tested were to boot from SD-Card, in which
U-boot sets the right pinfunc for the SD pins.
pinconfig 100 [ + ] pinconfig | |-- sdmmc
pinconfig 101 [ + ] pinconfig | | |-- sdmmc-bus4
pinconfig 102 [ + ] pinconfig | | |-- sdmmc-clk
pinconfig 103 [ + ] pinconfig | | |-- sdmmc-cmd
pinconfig 104 [ + ] pinconfig | | `-- sdmmc-det
...
pinconfig 132 [ + ] pinconfig | |-- uart2
pinconfig 133 [ + ] pinconfig | | `-- uart2m0-xfer
=> gpio toggle A15
gpio: pin A15 (gpio 15) value is 1
Eugen