Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7876982pxb; Fri, 19 Feb 2021 01:22:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJz0ZsmO4Gyvmswp+yMbtxPW9cv9p6fQDB8GAg/MRpgpq2jqLb+4amxymxc4pHoNOPL3KzQg X-Received: by 2002:a17:906:1759:: with SMTP id d25mr4882983eje.524.1613726577280; Fri, 19 Feb 2021 01:22:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613726577; cv=none; d=google.com; s=arc-20160816; b=HyoQEi8zP19AfM2CCFuThUZiNzOqx2ZgSWGRIKYks9My54Rha09va1bC8G3bP/u66j 4v8WhEU7NTcRMO5uJ2J4NKkWcGreEmNcJs2XMaAuQ41yKi7ikWk43cPOHq7noy/R+TO/ Kl3vVvP0viTdrqVgB2EW4wcyWNkfO6aGsgUsvivtvb2YA9W/ShFAm6aplu6NlXgem8Ag SYy43dEGD1YmAhT7xNyNvR3WQn1O0mPNkF0n5JHdntGWnSKp1c49lxuByuKkWlSrDCSD TLg+If2OlBdzywcKoTSq43VutsxbFer4ApHrG7IJM58pJ8/46U+FG1FtSH1QiPx33BQc HOyw== 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=SYEpGoDgvI1QlzJlU8ePdTmRC3GRxsqITcqVy9n45cY=; b=jHjqarmbbrWcJIafTLP9hoALfsy2rjeG6lOAMi6zOr8P6k2PpD7DRFRdQUHqJmzPPs X6UeYTwmwO8bm8IWiY/2zc9htCa5aPhtnmPtfk2xNYZAlEVTsZktMRVWbcclumpjjujF i9ToItJgik5Zl+ZP+rczzrPCZ0M+I7LKl3nyIf4pGcAyQn/NEzWEIQMZ+HfhUcvk+EUZ 2RiNyq9lKVOifsvEhoJI6rrROyJAoDJePHuMZStgPY7YbHqHUYksXfbIrXERMvjuPRqZ X5hqWFL1h40mDzavHfhS+CKO6HT+pdLLM0oX5XKE8DA1qt3bvomkdblT7sflryF/n7kx HMUg== 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 u19si5177135ejz.550.2021.02.19.01.22.32; Fri, 19 Feb 2021 01:22:57 -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 S229908AbhBSJVR (ORCPT + 99 others); Fri, 19 Feb 2021 04:21:17 -0500 Received: from mail-ot1-f51.google.com ([209.85.210.51]:41156 "EHLO mail-ot1-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229527AbhBSJVL (ORCPT ); Fri, 19 Feb 2021 04:21:11 -0500 Received: by mail-ot1-f51.google.com with SMTP id s107so4510226otb.8; Fri, 19 Feb 2021 01:20:55 -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=SYEpGoDgvI1QlzJlU8ePdTmRC3GRxsqITcqVy9n45cY=; b=KU7VHZPtJ2P5KynNLFYEVRwAgW5VKEcobysHO4UPsWA8NP5ROEDHWWdFud/Ifz/KOE knZ2CvMxYthS/W+IQKGI4o5M3sCLEhNIIMOtdNOt3oII5jtNMexU7z7puZbuZhGBNNW/ w3AeQKUCoQmuyv3jaIfJPabwXbnIq7R9HnvHjv3P0ZuufSjKn3GI3xUjEGik6BQvWvsU ZYV/Odkqyad9ZFqI4UTrFbaQIa4G/YdEZGtlDbKsi65OHVVjsF70/K7xNmM1+sHEnr5P NmXacrF3VOr2wyRpii2KtqDkQK4urrmeJbfNAY+g5P6YtXAWtcp3a5P7kK5PkGJFcbZ6 UMaw== X-Gm-Message-State: AOAM531pHefkQGAVazUcLroHqMG/l0sRWZ+KWRoqbZ8Tl3sB1F5JEjpg Nh4OX7/JKn4pGJA7E3K1rDhHe/tGTP+HeVee53A= X-Received: by 2002:a05:6830:148d:: with SMTP id s13mr6076963otq.250.1613726429698; Fri, 19 Feb 2021 01:20:29 -0800 (PST) MIME-Version: 1.0 References: <20210217221457.1827266-1-drew@beagleboard.org> <20210217221457.1827266-4-drew@beagleboard.org> In-Reply-To: <20210217221457.1827266-4-drew@beagleboard.org> From: Geert Uytterhoeven Date: Fri, 19 Feb 2021 10:20:18 +0100 Message-ID: Subject: Re: [PATCH v7 3/3] docs/pinctrl: document debugfs files 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 , Joe Perches , Dan Carpenter , Jonathan Corbet , "open list:DOCUMENTATION" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Drew, On Wed, Feb 17, 2021 at 11:15 PM Drew Fustini wrote: > Document debugfs directories and files created for pinctrl subsystem. > > Suggested-by: Andy Shevchenko > Reviewed-by: Andy Shevchenko > Reviewed-by: Tony Lindgren > Signed-off-by: Drew Fustini Thanks for your patch! > --- a/Documentation/driver-api/pinctl.rst > +++ b/Documentation/driver-api/pinctl.rst > @@ -1428,3 +1428,40 @@ on the pins defined by group B:: > The above has to be done from process context. The reservation of the pins > will be done when the state is activated, so in effect one specific pin > can be used by different functions at different times on a running system. > + > + > +Debugfs files > +============= > +These files are created in ``/sys/kernel/debug/pinctrl``: > + > +- ``pinctrl-devices``: prints each pin controller device along with columns to > + indicate support for pinmux and pinconf > + > +- ``pinctrl-handles``: iterate through the list of pin controller handles and > + print the corresponding pinmux maps Do you need the iterate part? "prints each configured pin controller handle and the corresponding pinmux maps"? > + > +- ``pinctrl-maps``: print all pinctrl maps > + > +A sub-directory is created inside of ``/sys/kernel/debug/pinctrl`` for each pin > +controller device containing these files: Sort the below alphabetically? > + > +- ``pins``: prints a line for each pin registered on the pin controller. The > + pinctrl driver may add additional information such as register contents. > + > +- ``gpio-ranges``: print ranges that map gpio lines to pins on the controller > + > +- ``pingroups``: print all pin groups registered on the pin controller > + > +- ``pinconf-pins``: print pin config settings for each pin > + > +- ``pinconf-groups``: print pin config settings per pin group > + > +- ``pinmux-functions``: print each pin function along with the pin groups that > + map to the pin function > + > +- ``pinmux-pins``: iterate through all pins and print mux owner, gpio owner > + and if the pin is a hog > + > +- ``pinmux-select``: write to this file to activate a pin function and group:: a pin function for a group? > + > + echo "" > pinmux-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