Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1143829pxb; Wed, 10 Feb 2021 00:46:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJwtlNLQosuO2ifBCmCLjy01YSaxdaMhnaoY+9kx70d9dzcgrz86CnifWZTV2yYeShUcy0bW X-Received: by 2002:a17:906:e03:: with SMTP id l3mr1929235eji.64.1612946788805; Wed, 10 Feb 2021 00:46:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612946788; cv=none; d=google.com; s=arc-20160816; b=Lb/H4qSaosPqsclcNgre8aeNbu1JW8RfY6Zvlm4/eE/e67DRAv8T4rBLiiJAvrDgB3 tpxtKGq5h0kO0P+5U8rq/GpEGXoSVlGkp1LyiZ0zF49TeDito2rkN4H+YCdfA17T2+Ms FBZ4W8+hwSYzvvZ1mdoutqza9cIAR+L99oLbqdSKtoc805+gLD/GdvkgTpBLvy21GD2h OsqHyGew32Jo4xwrUd56Df26Esu/efUFQGBlDCZ85pG+PnvTHB53E5OcnZ2FeJ0CR6dO BXVN0Cu/SXXpvTyQl+S90UaQX5Go8nkGu2ce2ZTAe2eIxwz6mbxU6M7MqJ9uTqUtYAM/ 51Aw== 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=vqpklVwZsvlYgxzSjH8suIxDySU+Irpf/Vq8Oa4SfJg=; b=ekPLw1pdujl0iD5wXxsdz1anQV0NYHhvM41uzUCc7q/pojUSGef9UE8JvuiOoXQ+tQ eHzowu86KpVOdTWEuYvtHsROOveFtm4F73B26dnVKUyktwDKHKM72DrZk6BsDvRmCOvw g2m9nNz3o1sFhMZGuyBk7bXjylcajYR9h5jLsSKBKR32Q2icS00qAuEZ0iN11pINnSig zzJRhGaVDZtWHd2TlCU+yd9Vh+8WHR3HcbmIwWaJh1qRtKDfmSaFKJwd5itAjVcT89nx ymCVIa5Deuj8nFJjWirtWxWE+4RouBza8QJUfbya7vyGI6OrstlcXz9SEjE3kvhRhCbM wGuw== 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 m10si951844edi.26.2021.02.10.00.46.05; Wed, 10 Feb 2021 00:46:28 -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 S230163AbhBJIig (ORCPT + 99 others); Wed, 10 Feb 2021 03:38:36 -0500 Received: from mail-ot1-f50.google.com ([209.85.210.50]:35745 "EHLO mail-ot1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229809AbhBJIgL (ORCPT ); Wed, 10 Feb 2021 03:36:11 -0500 Received: by mail-ot1-f50.google.com with SMTP id k10so1110160otl.2; Wed, 10 Feb 2021 00:35:56 -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=vqpklVwZsvlYgxzSjH8suIxDySU+Irpf/Vq8Oa4SfJg=; b=MNwQhqFlUBRL071X5MiE2aV3theSIEDgoBnXXttTn6SLGs4GYMIh7/6030qK16nKsl GCWA2KJM7CIJedCP98ZKUFEk5gRXxM2LnyvpUE3GgZByFbxk7lH7YIaI8+xa/icbxmOT dzkyQQIhNuiZdu6b9/rmMick3PS9Ge80VN51SJhUiKMfPi9HZK8PRal1nBQlRWBiZ3NR Ok3eD0jZznYHIUMLopP6C+QyJaZe/o7ZtATKQGOcG/Ukn0NzB65GKbBCymNcEUbnjugq Bt3CwiycrGdEM49+/8rG/4gUqTqkMSBKz1cK1UbFZoo9Zbt6MygdB0t8q51CHLIxWjUJ IqYg== X-Gm-Message-State: AOAM532f9aXHIkd2HDzkMYt6y+z/EOSlasxHiWqfN1uu2LWOa3Dl/snx 9rokwEj5HosJpadAx/XG7zMVTcEWhmrHLkjwsWQ= X-Received: by 2002:a9d:77d6:: with SMTP id w22mr1349139otl.145.1612946130704; Wed, 10 Feb 2021 00:35:30 -0800 (PST) MIME-Version: 1.0 References: <20210210074946.155417-1-drew@beagleboard.org> <20210210074946.155417-3-drew@beagleboard.org> In-Reply-To: <20210210074946.155417-3-drew@beagleboard.org> From: Geert Uytterhoeven Date: Wed, 10 Feb 2021 09:35:19 +0100 Message-ID: Subject: Re: [PATCH v2 2/2] pinctrl: pinmux: Add pinmux-select debugfs file To: Drew Fustini Cc: Linus Walleij , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , Tony Lindgren , Andy Shevchenko , Alexandre Belloni , Pantelis Antoniou , Jason Kridner , Robert Nelson Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Drew, On Wed, Feb 10, 2021 at 8:50 AM Drew Fustini wrote: > Add "pinmux-select" to debugfs which will activate a function and group > when 2 integers " " are written to > the file. The write operation pinmux_select() handles this by checking > if fsel and gsel are valid selectors and then calling ops->set_mux(). Thanks for your patch! > The existing "pinmux-functions" debugfs file lists the pin functions > registered for the pin controller. For example: > > function: pinmux-uart0, groups = [ pinmux-uart0-pins ] > function: pinmux-mmc0, groups = [ pinmux-mmc0-pins ] > function: pinmux-mmc1, groups = [ pinmux-mmc1-pins ] > function: pinmux-i2c0, groups = [ pinmux-i2c0-pins ] > function: pinmux-i2c1, groups = [ pinmux-i2c1-pins ] > function: pinmux-spi1, groups = [ pinmux-spi1-pins ] > > To activate function pinmux-i2c1 (fsel 4) and group pinmux-i2c1-pins > (gsel 4): > > echo '4 4' > pinmux-select I think you forgot to update the example. I assume echo pinmux-i2c1 pinmux-i2c1-pins > mux-select ? 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