[PATCH] mxc_gpio: on imx8m read the DR instead of the PSR

Fabio Estevam festevam at gmail.com
Thu Jan 20 15:00:02 CET 2022


Hi Angus,

On Thu, Jan 20, 2022 at 10:56 AM Angus Ainslie <angus at akkea.ca> wrote:

> I decided to bypass the devicetree to test it on the imx8mq
>
> static const iomux_v3_cfg_t configure_pads[] = {
>            IMX8MQ_PAD_GPIO1_IO03__GPIO1_IO3 | MUX_PAD_CTRL(PAD_CTL_DSE6)
> | MUX_MODE_SION,
>            IMX8MQ_PAD_GPIO1_IO14__GPIO1_IO14 | MUX_PAD_CTRL(PAD_CTL_DSE6)
> | MUX_MODE_SION,
>            IMX8MQ_PAD_ENET_MDC__GPIO1_IO16 | MUX_PAD_CTRL(PAD_CTL_PUE) |
> MUX_MODE_SION,
>            IMX8MQ_PAD_ENET_MDIO__GPIO1_IO17 | MUX_PAD_CTRL(PAD_CTL_PUE) |
> MUX_MODE_SION,
> };
>
> static inline void init_pinmux(void)
> {
>          imx_iomux_v3_setup_multiple_pads(configure_pads,
> ARRAY_SIZE(configure_pads));
> }
>
> And this works so I need to figure out what is wrong with my devicetree
> configuration.

Ok, great :-)

The issue with your dts is that the hog pinctrl group is not
referenced anywhere.

The example I sent in my last email should fix the problem:

     pinctrl-names = "default";
     pinctrl-0 = <&pinctrl_hog>;


More information about the U-Boot mailing list