Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3434596pxf; Mon, 15 Mar 2021 09:26:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjC9PMYcZtoHesrz4AU+77CC3LOOD2bi8wzvkIFxcNP2vnyOPxkINQM4dOJ5BknHZDocc0 X-Received: by 2002:a17:907:20f5:: with SMTP id rh21mr24278870ejb.27.1615825604010; Mon, 15 Mar 2021 09:26:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615825604; cv=none; d=google.com; s=arc-20160816; b=CpUvXNQ3MMPVk66mtqwAS3gX5Xx5aaPQmDJVc8XATah0EzP3zvGkkBaX1UA6GkZbDM mhr86fLP3SxjnjMSLABCUFAQiR4Ts/STfHqeRKWlySl9PsFiIOLGLSOk+INi4aUZGi5S zmRVXn6GVSwNxA6zkvQ/xSKiPmMFIvt1BRXJrH1dlt3XVQgkJOUDFjmIlxe1hgQ6deXK Fw3MLfoONsCGoyjKk4//WCZA6VIUeQjs2Vjn+4+T9J3CV6HkSOcDhbyF6pw5gh0U1Mcz br8qCTSJjgt0yxe8wN2PkiK+T/dY7L1z+z6UFbWQV7BKLTCRXNyBS2s0LpestrM7Z3Wb Vhvw== 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:dkim-signature; bh=+jijPdUSqMWGA4azd9UUsLc7iUCEpYRxzK2+H3ibJFc=; b=o0M8bDXwOPoQX1LPIzgUdNY60pNM/iwPl877WHWKMutOiW6GwdBFSPDygXvnr0AL67 7vI5maJpYImoAavB6hjJnxsM71SZ5Qb2UTQDw2e0Iyy5emcrm5nqcKc6yl0rZhjDJFNO SJG1drCSLL3WjFJLlffydewOfvqQrKeC/chMtawlbDrMF6PJjAEYPRKg+Ce18OBLPkA4 KRnlVApc322alhISLgk4KvbbU7VtVsffK962/EjILsgzYmF/fdlcpBh3vo0XbaTGG0Fm MS7NjqiXhKorxsOc8QV9rfFKqz0G8Oqp44v5AulPHHyzjt5b1/FgMLbfHhbd5SR8SNwR 4SDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HBfH0hJj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h6si8132506ejc.211.2021.03.15.09.26.21; Mon, 15 Mar 2021 09:26:43 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=HBfH0hJj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231288AbhCOQZG (ORCPT + 99 others); Mon, 15 Mar 2021 12:25:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233238AbhCOQYe (ORCPT ); Mon, 15 Mar 2021 12:24:34 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35502C06174A for ; Mon, 15 Mar 2021 09:24:34 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id f26so16967691ljp.8 for ; Mon, 15 Mar 2021 09:24:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+jijPdUSqMWGA4azd9UUsLc7iUCEpYRxzK2+H3ibJFc=; b=HBfH0hJjHZsJUIABSUUUnDm9OcQhN+J/+SjcbxyL9bvFjPm4gci2HRaUu7JRaOiIhT FyldEpW+pn1sucRDLZXbYYakoJqm9/lcum8y1SjpY5QhppT9fF1l52QMBkK2DC8JMSwE HcurWBp6osin0yQ976e4QdBXl6CtJHbgziNo4IEWI9GaIIDNeC/NFPJQo+X/jItD/ccb qwZShnN2J750y0dlOUTCon4cgZx/QvffWIKnEkTc/WhDfNTzTkvWQ/mSjZvgOQQblqaS 4qAEPJhPhFJ6XPu76NtDXSYJ0iu6MpSuwanMeuTya0F0v9btVjtSl/XpeveRtuUwiAsN vE3A== 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=+jijPdUSqMWGA4azd9UUsLc7iUCEpYRxzK2+H3ibJFc=; b=KPSNJ8rnrK3rktITWWKpCly6tAirXJQAOFMMe3AI3k6FI9z42ENZUA3Xzbt0IHY9i8 PbhBqNl0JHXqnTc8IZC7PqrZjnD+unkMVX8gxf3YvQtnhXBcXdug6A1wBRGHgfj/EO4i HkKuF8wUpTATDue/Ao4SjTDNwCJm58YSQb2nkJ2WeqsDhjRTODAOTr2Nxyk4ubJCFqCY X5C4MunUBOZgESTut2J78oOwQR6jelygtvl9PB6M4Tldo9yrpEjOa2zhaU5iUwlFPv45 9R5p5zThtetJJ+ls1fHREbZaZjYHEVStKThGI1PpPRTua/6/UNJBwmuZbytMP8gCePl+ j+GA== X-Gm-Message-State: AOAM531Y0+2tdVdvfq1C/W2rPWNwhnPUytvIS+yBuISLs+pTDqiqM0Pn eb3I8QX0WXNIcgBX1d3y1wTcYk0T9a+bVVx8/jSygA== X-Received: by 2002:a05:651c:103a:: with SMTP id w26mr11107541ljm.273.1615825472712; Mon, 15 Mar 2021 09:24:32 -0700 (PDT) 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: <349b09f8-fe99-d0d4-dd11-c288bf66cb4d@metux.net> From: Linus Walleij Date: Mon, 15 Mar 2021 17:24:21 +0100 Message-ID: Subject: Re: [PATCH v9 2/4] pinctrl: pinmux: Add pinmux-select debugfs file To: "Enrico Weigelt, metux IT consult" Cc: Drew Fustini , "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" , Tony Lindgren , Andy Shevchenko , Alexandre Belloni , Geert Uytterhoeven , Pantelis Antoniou , Jason Kridner , Robert Nelson , Joe Perches , Dan Carpenter , Jonathan Corbet , Linux Doc Mailing List , Geert Uytterhoeven Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 12, 2021 at 2:57 PM 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. What is wrong with the subsystem drivers/mux? It's exactly for this usecase I think. Peter Rosin already wrote a GPIO-controlled mux driver too. Yours, Linus Walleij