Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2192980pxf; Sat, 13 Mar 2021 10:49:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJyye1+B0ata4fIyv7K5BpLHHQz2TSliP+fS4jcidFZ1THYZl1bpEcUxjFDWzn1DGfNv4kP0 X-Received: by 2002:a05:6402:646:: with SMTP id u6mr21854657edx.250.1615661378982; Sat, 13 Mar 2021 10:49:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615661378; cv=none; d=google.com; s=arc-20160816; b=XphKs33kFox2/r2gGNrgoSqrO4RqtOtM+oeb5QiOeDNQfZcEnn9gGZze54rUGWn2wJ ST84CQbelzdTmMff/VF4wBgQgPP3cIjSdBkr+tnm4LSFmsFwciuHTkCTGmmvSFsC8207 MXufjr2pHALi873O7jbU7MpOEsG60T4raKLGthJRKBGZUj9Tr+l7X9XCN7E/7xPlG3yf aNXFCurxjOoXrPQ9pTc8AbZ9vVR8qNWJ8vVpk727zyF2S2wnkDywY5HOZkV3kXwEv5z/ clxKMxAqzODQeoiOyEoZ+gYRGbJXv9T+cYN0Cuh4ZipSoCcFCwucWplPB+lnbmxF8eRh oDRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=V4OlbTaZsfRr8m4U6wSFd2NjZwjTvfpq70Z7sr9ivb8=; b=zmPOuuFX5vhG0ktzsDoMA+kJMOAu8ismnPbFdMlLdrr19oOwntMt2UA3/jRWWBaC7T feQmXeOBsmKNPSQcILQYO1GMd+2x0Xc7Th+iE9HlsWdixrc0KZ30QPRVtwdldeTKc42f V/JCJhchmnooZun10LDGcvs3XGGtFs7FbAQ80AQ11KbHTO27/TxgiUwVvlOM3hkN5Ocs s5vuF9kfEz6m/qVQmGo7/3y45AfI6SRLjzPszdBdD9oiQcLgceoocrxm9l3tbbtWzn4g G6+lEn4idqbFwHsqV7zm91WEOxIL4oXJHQOSNrFvbD7EXVhfIhCM1/TtwEUDUjHmFTkt LBaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m17si2390703edd.122.2021.03.13.10.49.16; Sat, 13 Mar 2021 10:49:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234297AbhCMSsL (ORCPT + 99 others); Sat, 13 Mar 2021 13:48:11 -0500 Received: from mail-vs1-f49.google.com ([209.85.217.49]:42223 "EHLO mail-vs1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233635AbhCMSrg (ORCPT ); Sat, 13 Mar 2021 13:47:36 -0500 Received: by mail-vs1-f49.google.com with SMTP id v123so14279236vsv.9; Sat, 13 Mar 2021 10:47:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=V4OlbTaZsfRr8m4U6wSFd2NjZwjTvfpq70Z7sr9ivb8=; b=TlkyQeb7WVUjXry9Dj1yNgMClsyO8BzfTsKdf7pYK+BAsShxPqzuQI0Z8imQXj6WAi armIRNRNovz5Jsz+ss8fk2ZPSdIz27jl+bIPWsGSzpKi1zw8jtM8Wbu0AIJBoNOyib3j 8HEctNSwN0QWXp7dg/ggmC5JjoAIy/vIEsd2khk5QyzNwp5KXJR/ev8rFNr7Uz5KX+Qd TrgTRtkQ+N1TFCQLriHRU/p11PuU64QHefSWxRDjxi4poN8OOWwH9nGy7nO4bued3vaT 0UehzwixhK2WHnaiVhxzb4WkK0ZT3IGVtV/XW1U3UDpYSvEqXx5hS4Vv/ilbtP0oHaKE zu2w== X-Gm-Message-State: AOAM531XHze5ULFUQzflcwt50Z2EYFqR5dDM6PAQbx4747rIGT1t9Zv8 /JQv/XUhYZWbVWG4v/sEToOl8beDcZw9aftf0SY= X-Received: by 2002:a67:8883:: with SMTP id k125mr2019352vsd.18.1615661255965; Sat, 13 Mar 2021 10:47:35 -0800 (PST) MIME-Version: 1.0 References: <20210302053059.1049035-1-drew@beagleboard.org> <20210302053059.1049035-3-drew@beagleboard.org> <349b09f8-fe99-d0d4-dd11-c288bf66cb4d@metux.net> In-Reply-To: From: Geert Uytterhoeven Date: Sat, 13 Mar 2021 19:47:24 +0100 Message-ID: Subject: Re: [PATCH v9 2/4] pinctrl: pinmux: Add pinmux-select debugfs file To: Alexandre Belloni Cc: "Enrico Weigelt, metux IT consult" , Drew Fustini , Linus Walleij , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , Tony Lindgren , Andy Shevchenko , Pantelis Antoniou , Jason Kridner , Robert Nelson , Joe Perches , Dan Carpenter , Jonathan Corbet , "open list:DOCUMENTATION" , Geert Uytterhoeven Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alexandre, On Sat, Mar 13, 2021 at 10:28 AM Alexandre Belloni wrote: > On 12/03/2021 14:57:54+0100, Enrico Weigelt, metux IT consult wrote: > > On 02.03.21 06:30, Drew Fustini wrote: > > > Add "pinmux-select" to debugfs which will activate a pin function for a > > > given pin group: > > > > > > echo "" > pinmux-select > > > > > > The write operation pinmux_select() handles this by checking that the > > > names map to valid selectors and then calling ops->set_mux(). > > > > I've already been playing with similar idea, but for external muxes. > > For example, some boards have multiple SIM slots that can be switched > > via some gpio pin. > > > > Not sure whether traditional pinmux would be a good match for that. > > If you want to be able to use both, then I guess gpio-mux is what you > are looking for. Obviously, it will also require support in the bus > core. On what bus are those SIMs? (I guess the answer will be UART and > then unfortunately UARTs are not represented as busses). We do have support for devices connected to UARTs. See patternProperties in Documentation/devicetree/bindings/serial/serial.yaml. Or do you mean something different? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds