Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1913350pxf; Sat, 13 Mar 2021 01:32:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJwIrSFwXeH2f96olCpiKrgI0YdsWx6h2stVUJWR1FyzBOwPUsQIsRZQo25aKpB51H2MYNlM X-Received: by 2002:a17:907:971a:: with SMTP id jg26mr13422483ejc.317.1615627929513; Sat, 13 Mar 2021 01:32:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615627929; cv=none; d=google.com; s=arc-20160816; b=AZCGthchwyh/xQZ/W8AMwekV5adtPC5bSxBDQWIw8hSHTohBsUA/xCxfN4IDO2gBVs n2+gd3L6MnkV3NdA01XcfpbmeKt1Y8LsIusexH0zJasXI/uGOpbbATJtL/uSiYHYWVKQ fXPlVEem0YgAj+nWG9K/F9IhIIMf/QxVZshe7f+lZt2hxawy6NCBlwbIML0KvkiyuuV6 AO57pR1RZNBJp4Fa1b4kJt0ORwFIlA/AcbDwuTYLp/ErFwjsJXEl1wiJXqCmEME2M0U7 Wol2ieA+TdZ2sec1AF4tsKg6g8MavQR8bCKga3jeIx1JN+fYVKcnZLqAC1uXsZnNuDgH D07g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Ue1JwC95JOOjnl1sDg24Gz/j3IJvBlp01PjI5GgRyfU=; b=We+q+f46mKcAkQrN0caTTGlYkqeE36cMmWAVOYG+nUkGdfWCyRjqvY9DTDuM0aHtZd 8RJuSS+4bOd6xunfocE1e05F+NrOonhhpQLa8CP85yl1BZCbpBuoTzmROKP1hec7DMKi ISS4ghQatGD50B+tcFzPOF4y9jyY3oNppZqNawK0z/0qLsaYBYHVoOZSNZL4caG+v5lW jMngAMTjoSxNLCargcZRPT0lcpG6mwAgpol2F6qBoFE7Mcvpvm9Ram/++FgHXJ4KXdHw zAkCU49Nhr3VaDOTBeybv2122p0RqMg2PHlaAJtvAkoxh3wjhWkdVPkUbH2Ck0EbFHSb fP+g== 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 k7si5975340eja.156.2021.03.13.01.31.46; Sat, 13 Mar 2021 01:32:09 -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 S233369AbhCMJ27 (ORCPT + 99 others); Sat, 13 Mar 2021 04:28:59 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:49245 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233298AbhCMJ2p (ORCPT ); Sat, 13 Mar 2021 04:28:45 -0500 X-Originating-IP: 90.65.108.55 Received: from localhost (lfbn-lyo-1-1676-55.w90-65.abo.wanadoo.fr [90.65.108.55]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 3D80460004; Sat, 13 Mar 2021 09:28:42 +0000 (UTC) Date: Sat, 13 Mar 2021 10:28:41 +0100 From: Alexandre Belloni To: "Enrico Weigelt, metux IT consult" Cc: Drew Fustini , Linus Walleij , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Tony Lindgren , Andy Shevchenko , Geert Uytterhoeven , Pantelis Antoniou , Jason Kridner , Robert Nelson , Joe Perches , Dan Carpenter , Jonathan Corbet , linux-doc@vger.kernel.org, Geert Uytterhoeven Subject: Re: [PATCH v9 2/4] pinctrl: pinmux: Add pinmux-select debugfs file Message-ID: References: <20210302053059.1049035-1-drew@beagleboard.org> <20210302053059.1049035-3-drew@beagleboard.org> <349b09f8-fe99-d0d4-dd11-c288bf66cb4d@metux.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <349b09f8-fe99-d0d4-dd11-c288bf66cb4d@metux.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/03/2021 14:57:54+0100, Enrico Weigelt, metux IT consult wrote: > On 02.03.21 06:30, Drew Fustini wrote: > > Hi folks, > > > 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). -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com