The imxiomuxc(4) node itself can also contain a set of pins to
authorpatrick <patrick@openbsd.org>
Mon, 23 Jul 2018 19:13:54 +0000 (19:13 +0000)
committerpatrick <patrick@openbsd.org>
Mon, 23 Jul 2018 19:13:54 +0000 (19:13 +0000)
configure.  These are pins that should be configured to a sane
state and are not necessarily referenced by another node.

ok kettenis@

sys/dev/fdt/imxiomuxc.c

index 79e84ed..bd09abe 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: imxiomuxc.c,v 1.3 2018/06/10 14:17:23 kettenis Exp $ */
+/* $OpenBSD: imxiomuxc.c,v 1.4 2018/07/23 19:13:54 patrick Exp $ */
 /*
  * Copyright (c) 2013 Patrick Wildt <patrick@blueri.se>
  * Copyright (c) 2016 Mark Kettenis <kettenis@openbsd.org>
@@ -87,6 +87,7 @@ imxiomuxc_attach(struct device *parent, struct device *self, void *aux)
                panic("%s: bus_space_map failed!", __func__);
 
        pinctrl_register(faa->fa_node, imxiomuxc_pinctrl, sc);
+       pinctrl_byname(faa->fa_node, "default");
        imxiomuxc_sc = sc;
        printf("\n");
 }