Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp6361859pxb; Wed, 17 Feb 2021 02:23:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJx/iX+A9ZJC46oZZtWewDXnKUwM33rb3dZxxyHFMaLYZcFvOHJTYB/iuc8RGFPL7MPJ1aS0 X-Received: by 2002:a05:6402:4d3:: with SMTP id n19mr25471170edw.2.1613557407543; Wed, 17 Feb 2021 02:23:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613557407; cv=none; d=google.com; s=arc-20160816; b=B/G3d7Cd311JLBWwQH+5GtX8WMvgB6nYEia+aHz9pqEgfXFWvuQrzwr6TbtsA7j5yg Yc8aOwBFzLF/UluSgRBGJ9tQumbErt38JQ2detIm6BHXG05kCUYGUfL/Wtw4p64KcnSW a8Mg90X5X+L7qvU7rO8BcZo5nbA/7/uUW1CawWjkyZUa/DE1SEbq8VgsfkP5/Ty7JILc 1F2ItBac9JUwGhIgifS/43/7MxTZYrCvFlYEOk4pvuwDZYkmdNJICS2z5QvHRbPo9l3o j952jh/DEpKqchMlvBQ4XSmTibVvz0qO5iKMAkqXCjPi3ZwwWZUjoWzTv9H/Zgs2yYwG qnOA== 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=uUihTefjqIAmQxqDsY7sGc4WNgB25pgmkvLnHk+zr0M=; b=O1FiLmhKbLqV745OJqcUEOSC99EJtrAV3vqM6dLgsctVxYfF2FfN1KO6mpmYQb/uUq lxpgjBq8QseenWhwWjmTbSI/1RfHmBA6wh+Lo+A284Q1UIeKftrlto8DNfqaSrY3me6C hwSPcvm23h4Y4yfOxDJRt/rbhFCbq46Hx/b4f4J5OTJ5f3PAiTOJrjDNRBdUAt7tL037 GOkOfloxEQnBofCWyTk2BifrjscCiiLEh7KYD1wKFQKtZnPjhHTKQhApIdmWy0BQPFrf 9P4wyR5aI1ED3RZg3a5rt0sz6wddCFlXhkcvx9WxDhkWBaZDSajw+ji685kMfWhXQ8HD b69A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Y40G0VIe; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dk7si1442785ejb.223.2021.02.17.02.23.04; Wed, 17 Feb 2021 02:23:27 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Y40G0VIe; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232301AbhBQKTh (ORCPT + 99 others); Wed, 17 Feb 2021 05:19:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232318AbhBQKRv (ORCPT ); Wed, 17 Feb 2021 05:17:51 -0500 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10D4AC061756; Wed, 17 Feb 2021 02:17:11 -0800 (PST) Received: by mail-pg1-x52d.google.com with SMTP id o38so8178937pgm.9; Wed, 17 Feb 2021 02:17:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uUihTefjqIAmQxqDsY7sGc4WNgB25pgmkvLnHk+zr0M=; b=Y40G0VIe6PsED4Mk/qur99QANAUuV3Si698lAW1MFXTXudUdXB3VomSUvUjNntQhFI 73ON+2fifvwUH8oMmTeH1s5qxt8c0E+wSXtBtjZDU0HSwPn+6M4NtitmQBqnz/pW0k3K 1LtkIj5oJTwVFUw5dwfvhnXyUmk5Noye4cQlw7m3UnwG6J9CY98ce+ZL04Cl1yveKRlv N7jl+8UcSNQ1+evsCUOni2Y0/4VpJg89OkFyjEnzgw9a0jT++8rk3iNoTdABpr3KRm7K NitU0idyJq2iGrQ1YvQav7hJq45FMQzZClthXmmD9wtNEBSmoPUA0/7jNFrIY969bObL oMXQ== 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=uUihTefjqIAmQxqDsY7sGc4WNgB25pgmkvLnHk+zr0M=; b=Qk4sXdJtgL4shHwNtxOa+VQNlb3wpevwR6yiSv+sjMtqUSGWqaLwFpODym20yUBQQf KsUTSE6XvDDQjwDf0LSQM2hMpnbZW0/WQXM+swYY1T8ABgXyc4NyXbS0XeaQnkTJl7LS cwbAdPIDzECZQTfTjLY8pEinSIh1d5PVAR7XWvMp9gmHckb9/A/aWU5LrF5dUJm/TVk0 DGk6z4zvHVya1RiNMXEWznjDFpbtwVI2ZLpgtzLmGopL2spBG5DlXoFKIorHiizRC5w+ KWnDzbNZDXs5ylrKjqBNA1naLw+1CdN9/B8/6cOoSLqfKkDiFdP49vnnomaFUU7YhaWC 3DfA== X-Gm-Message-State: AOAM5326wTgkqblAdLyPf46tVMu8c5NcWXdWXeumzX8XcKkFd000rQe9 3RvGAoq3rU4BUKhz4pDuQnAvDMsI1rQ9x2R6kfg= X-Received: by 2002:a63:3d0:: with SMTP id 199mr23377851pgd.4.1613557030577; Wed, 17 Feb 2021 02:17:10 -0800 (PST) MIME-Version: 1.0 References: <20210216224455.1504008-1-drew@beagleboard.org> <20210216224455.1504008-4-drew@beagleboard.org> In-Reply-To: <20210216224455.1504008-4-drew@beagleboard.org> From: Andy Shevchenko Date: Wed, 17 Feb 2021 12:16:54 +0200 Message-ID: Subject: Re: [PATCH v6 3/3] docs/pinctrl: document debugfs files To: Drew Fustini Cc: Linus Walleij , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , Tony Lindgren , Alexandre Belloni , Geert Uytterhoeven , Pantelis Antoniou , Jason Kridner , Robert Nelson , Joe Perches , Dan Carpenter , Jonathan Corbet , Linux Documentation List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 17, 2021 at 12:45 AM Drew Fustini wrote: > > Document debugfs directories and files created for pinctrl subsystem. Thanks for doing this! I won't bikeshed now because it's about debugfs anyway, so Reviewed-by: Andy Shevchenko > Suggested-by: Andy Shevchenko > Signed-off-by: Drew Fustini > --- > Documentation/driver-api/pinctl.rst | 37 +++++++++++++++++++++++++++++ > 1 file changed, 37 insertions(+) > > diff --git a/Documentation/driver-api/pinctl.rst b/Documentation/driver-api/pinctl.rst > index 3d2deaf48841..37bc3bd64cd8 100644 > --- 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 > + > +- ``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: > + > +- ``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:: > + > + echo "" > pinmux-select > -- > 2.25.1 > -- With Best Regards, Andy Shevchenko