diff --git a/sys/arm/ti/ti_pinmux.c b/sys/arm/ti/ti_pinmux.c --- a/sys/arm/ti/ti_pinmux.c +++ b/sys/arm/ti/ti_pinmux.c @@ -62,6 +62,12 @@ uint32_t conf; }; +static struct ofw_compat_data compat_data[] = { + {"pinctrl-single", 2}, + {"pinconf-single", 1}, + {NULL, 0}, +}; + static struct resource_spec ti_pinmux_res_spec[] = { { SYS_RES_MEMORY, 0, RF_ACTIVE }, /* Control memory window */ { -1, 0 } @@ -372,7 +378,7 @@ if (!ofw_bus_status_okay(dev)) return (ENXIO); - if (!ofw_bus_is_compatible(dev, "pinctrl-single")) + if (ofw_bus_search_compatible(dev, compat_data)->ocd_data == 0) return (ENXIO); if (ti_pinmux_sc) {