Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp613917ybg; Sun, 26 Jul 2020 15:37:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylnLdfDHYiqWEl19iOpQ33xSS6ts3Lju3lRtNxGo6qJsIdr7WYvFiDWIxuC1MnPsu9bczz X-Received: by 2002:a17:906:1357:: with SMTP id x23mr19684808ejb.148.1595803059428; Sun, 26 Jul 2020 15:37:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595803059; cv=none; d=google.com; s=arc-20160816; b=N8pCQXjGl+aP/0rJtqnZOM3L60uPVECfMpn30MPqM4NkRejiXCCzVVcCP7aNnBjoUa bibwg3WMPMbiUePZGopUJkfK6O2ombgs8pwpPReZ2/xtTPePBCxI5tTi2oIkZ9rPqugs YpbC8Iaq65YG/1EeJsqBrrB8DLiKmvL2YUgzeMbSqzHEGSrk95h56lj0BP2cinGbQq5Q D79QcVGnBOYltdL8M7oImhwbO6SfWORHYm1NOOZlaFEKV6feX2cVx1YDNrNtBuzwluND 3msLjiOby8K7JUErMEV6QdSclHPHKqNKV0Z3uJY0M2Bu/jQm4Cu25ZADbI9Mn3fPVoHl sEcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=EMOTG0PO+s5CwQFVuZNWBPHyIul1aA0fgUibL6tdegM=; b=NngmboXuFjY1ZWSbsnCoqLR2X+ls+X34PygeXR1jT0dlj7ItgG1YYv0pT6seIsnWom SZuPPUpHTd0s9V5TvZoxBnslV/b310DUmqQN8u7X1DUJwDmnFITLhIWcMbV5PZH/rNLq Deiz+KYB9DQr/0y+yGrwd8oheapFee1sgnrBV6aDKOmJsUQho4XioJ0WAk5u+oyF/M3S JcvU0mhhX2Sqzi0J2/MemUT1voddrW/hdiVbG07zSyR0n4uICCkf4hs20ry0ASPX/82j RXyiG47iYxP9NMjbm35s3Alk0aJUCVjjyjnyWPgHzbDVwEiamHTHddTuiYuLqop01LRx FL+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hDMGD4iB; 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 d5si4754424ejb.58.2020.07.26.15.37.16; Sun, 26 Jul 2020 15:37:39 -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=hDMGD4iB; 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 S1726753AbgGZWfZ (ORCPT + 99 others); Sun, 26 Jul 2020 18:35:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726082AbgGZWfZ (ORCPT ); Sun, 26 Jul 2020 18:35:25 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2CB0C0619D5 for ; Sun, 26 Jul 2020 15:35:23 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id a27so5691747ljn.8 for ; Sun, 26 Jul 2020 15:35:23 -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=EMOTG0PO+s5CwQFVuZNWBPHyIul1aA0fgUibL6tdegM=; b=hDMGD4iB8N6MW08e5ijsZsVqQDqAcRXmHyhX06vvU+sz7Un/KjdLfrrh5L6yx+6/SB hch1sgS+OylR31eFhuN5okRW/045rSJmOzNFObfozuYaNN/Wto2jJuCvmBwOYtEdQX0L TWocChB/EY+iYJagjeMGEzcM3ErFpyim+h8qxVt+vIFPpk2EwBnlbGIsuSo3vbaE929s 1YgrPVpXedOWJOhjcFqX8qtoLCFsW1RXSA26dnPMS2/ltWIkCzIWlKSD71LCU14crCOy roD2OpjtjR6OO0p215DhzcrnUBunnVLkZ988eIc0jqJY8zvk4P4xkyk2ujvdcaYDM7dF Xirg== 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=EMOTG0PO+s5CwQFVuZNWBPHyIul1aA0fgUibL6tdegM=; b=me7MAAyVal1ryg0QGLUGBsUcQKhsbrzhp849rS43htBExde5GROKnrgNJ0gG+XVExM RoO1fSYBTvpYTalR8JJz//4AglB75gwT18IwtAJkMNgT53H8sK8Dv8IQUuUQeD2rp38M dpGVqF4aIf8+1oWtX1sRVBqWRdy3PibbKWBZqIkfyH2nFEUeafae26rFioSQvT3hrN3W KCFEl0FXJTRUOjnKaZ+tKicYdy5vMRC7XbKZd0Q+EfjkpiydifqqWCiJ/w97Idx+ER7I 2RYx9FqVt5xrfnHbt1+ZyFk5V8uhq0gqjomLVPdb0dkV4yw06ETzdIyy0GQKqkRkSGj8 NuIQ== X-Gm-Message-State: AOAM532OfblRM2FjGzE6t/b9TeJXQWNpxXXk+TBy8KWCmDSG9pa0xiVu LhsgzstJS8mu42cNB/48lNkucb/Xout4/Xsm9wChXA== X-Received: by 2002:a2e:9d4a:: with SMTP id y10mr4059257ljj.104.1595802922025; Sun, 26 Jul 2020 15:35:22 -0700 (PDT) MIME-Version: 1.0 References: <20200722122751.266440-1-drew@beagleboard.org> In-Reply-To: <20200722122751.266440-1-drew@beagleboard.org> From: Linus Walleij Date: Mon, 27 Jul 2020 00:35:08 +0200 Message-ID: Subject: Re: [PATCH v5] pinctrl: core: print gpio in pins debugfs file To: Drew Fustini Cc: Andy Shevchenko , Tony Lindgren , Bartosz Golaszewski , Grygorii Strashko , Santosh Shilimkar , Kevin Hilman , Linux-OMAP , "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" , Andy Shevchenko Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 22, 2020 at 2:29 PM Drew Fustini wrote: > If there is a gpio range mapping for the pin, then print out the gpio > chip and line index for the pin in the debugfs 'pins' file with the > format: "[line-index]:[gpio-label]" > > Here is example output on the BeagleBoard.org PocketBeagle (AM3358): > /sys/kernel/debug/pinctrl/44e10800.pinmux-pinctrl-single/pins > > pin 25 (PIN25) 25:gpio-32-63 44e10864 00000037 pinctrl-single > pin 26 (PIN26) 26:gpio-32-63 44e10868 00000037 pinctrl-single > pin 27 (PIN27) 27:gpio-32-63 44e1086c 00000037 pinctrl-single > pin 28 (PIN28) 0:? 44e10870 00000036 pinctrl-single > pin 29 (PIN29) 0:? 44e10874 00000006 pinctrl-single > pin 30 (PIN30) 28:gpio-32-63 44e10878 00000027 pinctrl-single > pin 31 (PIN31) 29:gpio-32-63 44e1087c 00000037 pinctrl-single > pin 32 (PIN32) 30:gpio-32-63 44e10880 00000037 pinctrl-single > pin 33 (PIN33) 31:gpio-32-63 44e10884 00000037 pinctrl-single > pin 34 (PIN34) 0:gpio-64-95 44e10888 00000037 pinctrl-single > pin 35 (PIN35) 1:gpio-64-95 44e1088c 00000037 pinctrl-single > > Suggested-by: Andy Shevchenko > Suggested-by: Tony Lindgren > Reviewed-by: Andy Shevchenko > Signed-off-by: Drew Fustini Neat, this v5 patch applied! Yours, Linus Walleij