Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp177693pxb; Fri, 15 Jan 2021 10:11:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJwGLzVcId+ng3/7++9ishXoRmrvB27SBm2IR8xVTtH5uGHMSE7p02+Es/SAua3DaILnk8d/ X-Received: by 2002:a50:ed04:: with SMTP id j4mr10949455eds.84.1610734266089; Fri, 15 Jan 2021 10:11:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610734266; cv=none; d=google.com; s=arc-20160816; b=xSk55js9NyqSvZ8WFmyuBLpckCdmHUYCrm9vU5pvKq9QSsNDPtbUDMH3sJKyOceEao 3B66X719pzbw+SMZpl03y9s4qWO2doE49P7rSjCRalc5NwBNU+JKLHIyuUVgCoRiokNA 4TCcelKkQvTRDfzw2Kmx393vLj81B2qoqYn3TqLysy+ObVICxC/nhoCkNO4JBGJ1Wpdb 8SjqcmZa5WbBQwbuDlFbkq04Sg9gdN1y3D7Ck3Vhsxo5G3C1DvYET5pZnOwKLSDITm5o 9Rlnx5AVZXLruMCKmEiXMgMuAdCoo/XrsX4g6L+hUzYxixzOLjx4p3igvEdsn5dJyimp L8gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=/ukk1KmMKOjY989GVPIe8alQEeaLXXaWWupQX1f4jk4=; b=YwrM/yAXOF/UzYzGnB5D46QdHhQ9b/Zv/PrK5LZCJSbfzEVYK7mouWMhs5gtZjsggX lYadyArqfSY3cbc+X8cyq+TUI7C4Y6sDgfy/7RR0OMtCI/8pLGd/zPie6NUlV2lEwH0L qd/nmtwpE07qIP1DpVJKbTPTJGBFL/7aKPR/BRc3upc94A+C5a71mrXxJjKYfQfhmYVW H3UsKVm3sn1z5lijJ37UI1uS/MyQJsnvKFaX57z9DxCOBplSQtMIAGKCCqLqLqu4tXAZ xKP3Q+3rDvSOW5sklbl3hnHmYbiqihZ2mUbwm3E3QN2LsH3iSp+4NFYZX9kxVNKD2G7Z fGGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bidouilliste.com header.s=mx header.b="fI90d3/3"; 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=bidouilliste.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u10si4173022ejr.222.2021.01.15.10.10.41; Fri, 15 Jan 2021 10:11:06 -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=@bidouilliste.com header.s=mx header.b="fI90d3/3"; 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=bidouilliste.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728474AbhAOSJZ (ORCPT + 99 others); Fri, 15 Jan 2021 13:09:25 -0500 Received: from mx.blih.net ([212.83.155.74]:46812 "EHLO mx.blih.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725818AbhAOSJZ (ORCPT ); Fri, 15 Jan 2021 13:09:25 -0500 X-Greylist: delayed 400 seconds by postgrey-1.27 at vger.kernel.org; Fri, 15 Jan 2021 13:09:23 EST DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1610733721; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/ukk1KmMKOjY989GVPIe8alQEeaLXXaWWupQX1f4jk4=; b=fI90d3/3h1q91CxwjnZxFLdnBD8nAaoOfyiAg+keL20VrXYOgJ24HaPHb2lrecBjOqU9pT OqdDrnBC2O6divMS/3ZjgATR9MnlTQ0uLYpFSj3jwYz3ky0lpa4zsqfN79jeImfHz/0aF+ /3oA5rXvBDodNhSbCJaanO7u0ClqEL8= Received: from skull.home.blih.net (lfbn-idf2-1-745-114.w86-247.abo.wanadoo.fr [86.247.192.114]) by mx.blih.net (OpenSMTPD) with ESMTPSA id e912b7b2 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 15 Jan 2021 18:02:01 +0000 (UTC) Date: Fri, 15 Jan 2021 19:02:01 +0100 From: Emmanuel Vadot To: Drew Fustini Cc: Tony Lindgren , Rob Herring , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linus Walleij , Haojian Zhuang , devicetree@vger.kernel.org, bcousson@baylibre.com, Jason Kridner , Robert Nelson Subject: Re: [PATCH v4 2/2] ARM: dts: am33xx-l4: change #pinctrl-cells from 1 to 2 Message-Id: <20210115190201.9273b637a7f967e7e55bc740@bidouilliste.com> In-Reply-To: <20200701013320.130441-3-drew@beagleboard.org> References: <20200701013320.130441-1-drew@beagleboard.org> <20200701013320.130441-3-drew@beagleboard.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Drew, On Wed, 1 Jul 2020 03:33:20 +0200 Drew Fustini wrote: > Increase #pinctrl-cells to 2 so that mux and conf be kept separate. This > requires the AM33XX_PADCONF macro in omap.h to also be modified to keep pin > conf and pin mux values separate. > > Signed-off-by: Drew Fustini > --- > arch/arm/boot/dts/am33xx-l4.dtsi | 2 +- > include/dt-bindings/pinctrl/omap.h | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/boot/dts/am33xx-l4.dtsi b/arch/arm/boot/dts/am33xx-l4.dtsi > index a9cbefc80c0c..3141590e5889 100644 > --- a/arch/arm/boot/dts/am33xx-l4.dtsi > +++ b/arch/arm/boot/dts/am33xx-l4.dtsi > @@ -278,7 +278,7 @@ scm: scm@0 { > am33xx_pinmux: pinmux@800 { > compatible = "pinctrl-single"; > reg = <0x800 0x238>; > - #pinctrl-cells = <1>; > + #pinctrl-cells = <2>; > pinctrl-single,register-width = <32>; > pinctrl-single,function-mask = <0x7f>; > }; > diff --git a/include/dt-bindings/pinctrl/omap.h b/include/dt-bindings/pinctrl/omap.h > index 625718042413..2d2a8c737822 100644 > --- a/include/dt-bindings/pinctrl/omap.h > +++ b/include/dt-bindings/pinctrl/omap.h > @@ -65,7 +65,7 @@ > #define DM814X_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x0800) (val) > #define DM816X_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x0800) (val) > #define AM33XX_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x0800) (val) > -#define AM33XX_PADCONF(pa, dir, mux) OMAP_IOPAD_OFFSET((pa), 0x0800) ((dir) | (mux)) > +#define AM33XX_PADCONF(pa, conf, mux) OMAP_IOPAD_OFFSET((pa), 0x0800) (conf) (mux) > > /* > * Macros to allow using the offset from the padconf physical address > -- > 2.25.1 Based on the bindings doc a value of 2 is only acceptable if one uses pinctrl-single,bits but all the am33xx pins still uses pinctrl-single,pins. I noticed this because this breaks FreeBSD when I tried with 5.9 dts. -- Emmanuel Vadot