From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.49 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792498617; b=Fzj/EsrEdBkje6LwcX+u2MTulTJ3dZFhTtbKikA6jk56vOjBrGcwBi1errstkizAH97F E+kPTuS2niUZw5xFqjnSO2T9KMTagfY0xUQV0MVM5F7ptO30BTiw92ecwdgJdAYklwCVJ uZYx+C6w4C6fRpFmlodvmDu/jt2ucHY1aCcktc5vC2MH7zi+bVYPPjL+6Id825HMaQ27j yS95jIDBmFwQoQ8pLTXgXkyct0vxszR7LLoRn8vlbQg05w3MHokdS9LZaSKUhdbz17nM6 pZ0BYcxZC7aXl8PcmMc2QclDfnTinOFOQXEDtHttbCIgQt+9tn/Pba6ggrolk/UXBRg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792498617; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Mime-Version:Content-Transfer-Encoding:Content-Type:Date:Message-Id: Cc:Subject:From:To:X-Mailer:References:In-Reply-To; bh=/eQ/XppcwzISrseZ5RcFWPSpwGbmbzSYupMPgcj1BFE=; b=D2zM60jx0NBC3lty3fNXTayBF63tLU0cuT7EVvQiH09QCuDpvBpwtJ5blyEdXROuklXD EWhLfulB/iuHdAM6UOT4nPdqZY6RgxGdVPAZbIB60junKKKu9Moh1BfNAnDP1gnj4FVJ5 iXtS7hqG00/75ph/y9ePHoHCh6rxdo+5LQ26Uf2QZPXMRlncm/LkMtYNFAYUVWfyp0xtP NYD/FZa3Qws6h+RuD/3xpoR8LXJJMi2fXDrBYG0KAYlpyMRY/N+5/gO9TBKdPAaXy8CW+ V/tlfugsJPacd0bcPnTPF3HNU2dTT851N63I0zzMF/LHZsThxU3IHnkmrkrjozQdaMQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=XyHuAhl0; arc=none smtp.remote-ip=209.85.221.49 Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5A867606A31D for ; Tue, 20 Oct 2026 12:16:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5A867606A31D Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=XyHuAhl0 Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-48b060ec084so2236303f8f.0 for ; Tue, 20 Oct 2026 05:16:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1792498616; x=1793103416; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-type:content-transfer-encoding:mime-version:from:to:cc :subject:date:message-id:reply-to:content-type; bh=/eQ/XppcwzISrseZ5RcFWPSpwGbmbzSYupMPgcj1BFE=; b=XyHuAhl0Ihg3o9iu+ZV6Mt5r2QN8C7rlBmRSdsYa81fuHYYZSOnxDoWvNIgUGEawb5 ivqJTz66q91RngbDRNkaw/L6s2z0qhycRZKq/kozmieuzZapGem71jaX7SYHApsfagTz 4zR2KY99z3O+t8esfmsuWCjBNuGsxl6VUO4nDVrAP8rye7FNOE+vgnPIh50J6KDdzc/k Nm89xIfOb0YZqt42r+owb6SzMPvl2ABryPkIwTo0aqTRszI/FBNXH8EQKZJgnPGidLo+ KWnqS5fdtOfVIkhqnTdhEBTbTZ0aZHJs5bXoFpo7hzyA/qQg/7Ks8sGk3Bgr1nF25rss VinA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792498616; x=1793103416; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-type:content-transfer-encoding:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=/eQ/XppcwzISrseZ5RcFWPSpwGbmbzSYupMPgcj1BFE=; b=IevABLL4xAlzc56VQm9uS/Mj1I16x9Iu1LeXaAPReSv/LVtO3I7MR/kbzmIyVTS+tS Q/kWe4L3AEYbeWdsphyKQtzxjY57LRva6PvJ9eCTjNzrqztVo7Vefbhr5XMQTQse8Rbf 0WQD487FBDDnoWand9plWOEUt3IX45xvOFLkjgWTHirhxITlr72zid90oy3bRXl5zBBi btYgdcOd0FHfIf1blrP28nycL+lHjnzbc6/5ev9/xnfSjGICKoKIvmm5xedyhp7c5xna 1fHJlBt2hzXoekKSm0VVC9Njnj9QR0zCTqRTS/SFZ5RDgp96fqUaMouSJhZOBg2WNF6o SaIg== X-Forwarded-Encrypted: i=1; AKwUvBz9Od1BGcnqA4WMsDPxjuyjuqaLrqsSn1yBXfrCnkoS/ngvviQfo4VkqKWs1HMC9Dt/qhMhSXZT3jXAwkQ=@vger.kernel.org X-Gm-Message-State: AFq9FYL0jPXMYN5B5x1noSsnWzpN9yvbr/iLPHYPYqZg8c6veaW4eSy2 /y6ohQASZYmeUfPlW88tqoV3vMG+35n/ioNcdwY+gS1k4Sz/7KFhhnHgUDT8XuRI1NY= X-Gm-Gg: AYBFou2pskEf+5KPm9S94Rzu5VpdKEA9DVhOMzfCJploDonWyZuCD2D1p6SnureSyaX Cvp1VbCedEtQPab1LoqEe/eNf7gKkSZBg+bC9KMloIx+7tuGvafhSjM7sjRVjwqj0O45TU7ReGc F22anwDdaRslDsKi9lyYM1njNBvfLlGdXbTuzc+f6RiAO1nhthgsB+CaDYQeofvgZ1U2ErhqXVa QE/XVs/YmW6uvVdJHwwNpR5Vzenmk0Gt7knqLFTso1CUMc35ciCIL/XBbkbUzLcLQzYMIZB6LGd cdICcLmcsQ8WsUfhqkxRsaIU7KSl9sRKIsT4hsmp/+DDGO8h004fnpGrHTiDl9L9RE3HdZDCQJK wDODC0T65mNLyv/ji61YBsvDJYIH2/sFbFNXiUEyza8gMAS+cAc9QCW4D0M6+jP6ZZJK3pODR/W ROifKK0prILiEtz/UvWLombJZydcbTreoylhioHM2jhrKsMjH0ul2nViXBJkvI9IRcGRCVuq5SZ 87zQ9BIphl9bfwVVqc8o7zVD6jvifFI/dtwPwR6jvgS7h7Y2onHve8eupQNbblzHKzxU/P2itM= X-Received: by 2002:adf:e001:0:10b0:48d:f876:f370 with SMTP id ffacd0b85a97d-48e1bdf80a0mr5011790f8f.48.1792498615536; Tue, 20 Oct 2026 05:16:55 -0700 (PDT) Received: from localhost ([151.41.28.233]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e1d817d8bsm5130862f8f.24.2026.10.20.05.16.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Oct 2026 05:16:54 -0700 (PDT) X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 20 Oct 2026 14:16:52 +0200 Message-Id: Cc: , , , , Subject: Re: [PATCH 02/10] dt-bindings: pinctrl: Add devicetree bindings for DM816x SoC Pinctrl From: "Ettore Chimenti" To: "Krzysztof Kozlowski" , "Ettore Chimenti" , "Paul Walmsley" , "Aaro Koskinen" , "Andreas Kemnade" , "Kevin Hilman" , "Roger Quadros" , "Tony Lindgren" , "Russell King" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Christopher Obbard" , "Andrew Goodbody" , "Linus Walleij" , "Rouven Czerwinski" X-Mailer: aerc 0.22.0-0-gc2f86b7abde3 References: <20261016-patch-ektor5-dm8168-dts-v1-0-b4ce30217028@linaro.org> <20261016-patch-ektor5-dm8168-dts-v1-2-b4ce30217028@linaro.org> <46414ff2-1273-4690-9001-4d1f825d8cf6@kernel.org> In-Reply-To: Hi Krzyszrof, On Tue Oct 20, 2026 at 1:22 PM CEST, Krzysztof Kozlowski wrote: > On 20/10/2026 12:18, Ettore Chimenti wrote: >> Hi Krzyszrof, >>=20 >> On Mon Oct 19, 2026 at 8:46 AM CEST, Krzysztof Kozlowski wrote: >>> On 16/10/2026 17:07, Ettore Chimenti wrote: >>>> Hi Krzyszrof, >>>> >>>> On Fri Oct 16, 2026 at 4:51 PM CEST, Krzysztof Kozlowski wrote: >>>>> On 16/10/2026 16:41, Ettore Chimenti wrote: >>>>>> Add devicetree bindings for TI DM816x SoC pinctrl configuration. >>>>>> Using same definition as OMAP2/3 except pullup/down enable macros, w= hich >>>>>> are inverted in this SoC. >>>>>> >>>>>> Signed-off-by: Ettore Chimenti >>>>>> --- >>>>>> include/dt-bindings/pinctrl/dm816x.h | 20 ++++++++++++++++++++ >>>>>> 1 file changed, 20 insertions(+) >>>>>> >>>>>> diff --git a/include/dt-bindings/pinctrl/dm816x.h b/include/dt-bindi= ngs/pinctrl/dm816x.h >>>>>> new file mode 100644 >>>>>> index 000000000000..15aa15bca9bd >>>>>> --- /dev/null >>>>>> +++ b/include/dt-bindings/pinctrl/dm816x.h >>>>>> @@ -0,0 +1,20 @@ >>>>>> +/* SPDX-License-Identifier: GPL-2.0-only */ >>>>>> +/* >>>>>> + * This header provides constants specific to DM816X pinctrl bindin= gs. >>>>>> + */ >>>>>> + >>>>>> +#ifndef _DT_BINDINGS_PINCTRL_DM816X_H >>>>>> +#define _DT_BINDINGS_PINCTRL_DM816X_H >>>>>> + >>>>>> +#include >>>>> >>>>> I do not see this being used here, IWYU. >>>>> >>>>>> + >>>>>> +#undef PULL_UP >>>>>> +#undef PULL_ENA >>>>> >>>>> Why are you undefining other macros? That's not a easy to follow code= . >>>> >>>> Do you prefer to duplicate `omap.h` defines? Only the defines above do= not >>>> apply to DM816x. >>> >>> Not sure what you need to duplicate, but if you add header with binding= s >>> for this device, then you should not include headers for other devices. >>=20 >> I basically used dm814x.h as a template which does that, is that not >> correct? >>=20 >>> >>>> >>>>> >>>>> >>>>>> + >>>>>> +/* DM81xx mux bit defines */ >>>>>> +#define PULL_ENA (0 << 3) /* Pullup enabled =3D> 0 */ >>>>>> +#define PULL_DIS (1 << 3) /* Pullup disabled =3D> 1 */ >>>>>> +#define PULL_DN (0 << 4) >>>>>> +#define PULL_UP (1 << 4) >>>>> >>>>> I do not see this used by drivers, so why do we need one more header? >>>>> What part of SW are you binding here? >>>>> >>>> >>>> I added those (DN/UP) because they are not defined in `omap.h`. It may= be >>>> convenient for future board upstreaming. I can drop those if undesired= . >>> >>> Just add the header to proper place - DTS. These are just not looking a= s >>> bindings. >>=20 >> Sorry, does dm814x.h not look as bindings? I'm a bit confused. > > I asked which part of SW are you binding. There was no answer, but > question. So if you cannot point which part of software you bind, then > we can assume it is not a binding. I did not do any extensive look, > because I assume that contributor will bring the argument in favor of > their patch, not me. > Thanks for the clarification, that makes sense. These macros are only used by the DTS files and not by driver C code, I got confused by an old header (2015). I will drop the dt-bindings patch and move the definitions locally into arch/arm/boot/dts/ti/omap/ for v2. > >> FWIW, dm8148-evm.dts is not including the header, dm814x.dtsi is. >> Following=20 >>=20 >> Basically PULL_ENA define in omap.h is wrong for DM8168 SoCs.=20 >>=20 >> For a better solution, you would prefer: >> - Keep omap.h in dm816x.dtsi >> - Add a variant like DM816X_PULL_{ENA,DIS} in dm816x.h >> - Replace defines in dm8168-evm.dts >> - Add the header in dm8168-evm.dts >>=20 >> or: >>=20 >> - Keep omap.h in dm816x.dtsi >> - Add a variant like DM816X_PULL_{ENA,DIS} in omap.h >> - Replace defines in dm8168-evm.dts > > I gave you one idea, but feel free to implement it in other ways aligned > with that platform maintainer. > I'll do.=20 Thanks for the review, Ettore > > Best regards, > Krzysztof