Hi,

atleast i.MX DTs have this concept known as "the hogs", where a group
of pins get their iomux configuration from, instead of the specific
node(s) the pins somehow should belong to, ie. SDIO being what I found
is missing this on wandboard, and I didn't find any place where this is
documented at, so this is just empirically proven w/grep.

iirc., most if not all the places i saw hogs being used the DT node was
named "hoggrp", but then i also did come to the conclusion it is mostly
only referenced by the iomuxc-nodes "pinctrl-0" itself, hence the short
diff below :)

-Artturi


diff --git sys/dev/fdt/imxiomuxc.c sys/dev/fdt/imxiomuxc.c
index c7b5b373478..91ba020e28a 100644
--- sys/dev/fdt/imxiomuxc.c
+++ sys/dev/fdt/imxiomuxc.c
@@ -87,6 +87,8 @@ imxiomuxc_attach(struct device *parent, struct device *self, 
void *aux)
 
        pinctrl_register(faa->fa_node, imxiomuxc_pinctrl, sc);
        imxiomuxc_sc = sc;
+       if (pinctrl_byid(faa->fa_node, 0) == 0)
+               printf(": with hogs");
        printf("\n");
 }
 

Reply via email to