Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp765356rdb; Fri, 2 Feb 2024 03:30:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IFmofwJ20P08gz/2cq+R0x2rFdYkuNhzryQaKpgv+A0nLZq7eyA/x28bVgiouzPl/SE1qVu X-Received: by 2002:a05:6358:16cc:b0:175:d6b7:b5a9 with SMTP id r12-20020a05635816cc00b00175d6b7b5a9mr8348861rwl.23.1706873403505; Fri, 02 Feb 2024 03:30:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706873403; cv=pass; d=google.com; s=arc-20160816; b=g+QpJHI/ioK/KkPZZVA5AwE0bprw57UY6kWCi8stVEh4E+H559Tw8cNwT7Z/TnOVl/ PKo9KB7AZa29cNEC1gmgDRTbklPSnVbVdVbFxMmZwgbKVWSDuzEPAajjQA5c6x4K1C9v 2eFSnglQmt4n9pnqc6oUDPcgHN0Ahe1JWf1U8v2xBAJLb34mR2DCFkLWtkC6naFrdHAj mAxvZ858M8kgzjveDzQIgY00wqKZZ93D/vLlBh3QX+P6UBQH1RqcIwVdgVNyzdWIaMQO xguetnUteEiciKWRXLAOPWbK1/b1JHxrSka0U+8IJElTiR+csQ6tAWo3qB33vcMYmE52 By0w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=kOP4h2DtrQ3eGd2gjxHPsKG03MfGRQ7P7hCdzTURGhs=; fh=Bu/opZWQoeWwUupsB4fq+tfCW7SqSCDGTYimS/foE2I=; b=0pd5eGdFrTQnqF1mj4pcoc3jMWiFi0sX5WPpBDIJ21RRQcUBOh901Q6ViQUFLddQJQ v/lp2ItRWRcu00VlVCiw8xjkR0gCqHKwIKh3I88AfNEBFq+e+SVUDRwfnGXed/eVQ/Ay qR+OuTxrcZ9GUia56EJfycXiu8G86qnDG9K480H1B4tLkHRl+IdXwttLO3ho0RxGkdrG 6onbViHL6o7y3+N1u1oUfiW8Rg/QzcvVAXsNPiNzrR1EEzQPyzURBNFRzf8X/trK0Pk5 LBuo/d7hVnAhi6LS/t8cjobAljuIVnBXnhXDjEE+PKz1IMOA4oSz5Hj8bQFl6Ae6+vXj sFnQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b="PUlIxPO/"; arc=pass (i=1 spf=pass spfdomain=9elements.com dkim=pass dkdomain=9elements.com dmarc=pass fromdomain=9elements.com); spf=pass (google.com: domain of linux-kernel+bounces-49703-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49703-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com X-Forwarded-Encrypted: i=1; AJvYcCXUJy9rpMjyXuGJL3QXwEn3KoffyUgNMDVjgR8+UNzuDhVhFTj06jEF0sngaxBfI0eZRVfujwbhBtLCOuRnOFwRa/v7k1lL142TaNV1Sg== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id a25-20020a637059000000b005d8e30dafe3si1486652pgn.17.2024.02.02.03.30.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 03:30:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49703-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b="PUlIxPO/"; arc=pass (i=1 spf=pass spfdomain=9elements.com dkim=pass dkdomain=9elements.com dmarc=pass fromdomain=9elements.com); spf=pass (google.com: domain of linux-kernel+bounces-49703-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49703-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E0C6AB269E3 for ; Fri, 2 Feb 2024 10:53:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DCB6613DB8B; Fri, 2 Feb 2024 10:52:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=9elements.com header.i=@9elements.com header.b="PUlIxPO/" Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7DB2213DB8D for ; Fri, 2 Feb 2024 10:52:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706871175; cv=none; b=Xhp/itMK/7ZIVZp3WKgmWQ9Pzl0LuFZJVcYGDeByxCF3wEdiP5OkxUU67vWAztPN4W1de4CE6iAX0thyAbb76oW6cdrj4KKfvbYMed28PEsj/KkoKoXxcnVEaIhouS2/ahCtqVbxO7p9TjbEetAeXh9UCzRSwtlfnlSKXaVx0fY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706871175; c=relaxed/simple; bh=7UJeNk8SiED9yCAZG/fAWeHMgxw0oDG/V8oLEX03H2s=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=bivUzXLdniEtN2z5JDl42ahr5wIiYXPAPWRs4A+cdIHBPkE5lxqjGwnf6Om5rWM9QX5BNYMqaX/Qp5NUDthbQcBKFQbrmNXKXSZYAk/htDAdMgCX08MbAwmVN0XRdgDjdhpX3FcndbVdq+r4othFUGoBOWhwF3/Cb8nc4JM6Lyc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=9elements.com; spf=pass smtp.mailfrom=9elements.com; dkim=pass (2048-bit key) header.d=9elements.com header.i=@9elements.com header.b=PUlIxPO/; arc=none smtp.client-ip=209.85.214.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=9elements.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=9elements.com Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-1d73066880eso16698125ad.3 for ; Fri, 02 Feb 2024 02:52:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; t=1706871174; x=1707475974; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=kOP4h2DtrQ3eGd2gjxHPsKG03MfGRQ7P7hCdzTURGhs=; b=PUlIxPO/b2maTrliN1Azs6RvKUdrpjtW251kDqmEApuvaKETnnz0hcUX7V0JN2zyQl Lnxlol8EtyE2VxE8TTyDTr9WVvLZMTV5fLB9FQrjQ9+CK9dHCbXCEIJ9DqGodmsZVPsv n/z3bGkSGLjg2e0B6X/sA4oI8kPSGEBb60V3mhG2L8G+iJxb2Owvc0NN/fcoCijNqaCA T0JormCeZWt0K5XO1wyHBWneFQD/5fRPuLC2GAjSGtOYno/EkFo4feZfDP4gYNFD1uNc sTNt2Lvlo+CAoy/a8u/0isu0a5H9mX3Xdl+0SBFXuzyRMc0EDQUag0Rduj+VPSneJy3a VH/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706871174; x=1707475974; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kOP4h2DtrQ3eGd2gjxHPsKG03MfGRQ7P7hCdzTURGhs=; b=VaE06CmjV6ITmZDS4DtFQ014+mWKbwMArUJDaDwSqeNLDNpY8UL61zg+W7j9RKpwHQ tcetFCt6Wwh8Q94/ImXIJyAJL0/Wm6FvLAmwCxVyQzqGWxgeYGLMmPG9fiIddDRys5Ma g4V6Rs427vb0WMfICzJCm1GiMkM6IXPwyIHdAUfR5yaiVYoIqmC5/d+bf9aI73sUOpr3 UM9cKNyXtTkpgyc25uSSHXLV9qetop16wBKRyHcqEFg6nyhD65b0eEUz8mwy7u527SnD 77Kkk0lTk6OwyBbAKLmRrKkop6QsiFBQlq7IQhZDPgMl8949lo2T5G7sVA2U6YfpM0N2 dM4w== X-Gm-Message-State: AOJu0YxE31QktETczRDAg0PbXf/YMCHLiMDjiQUcfxPjmxB3xBpIo7Sx 2hTrgt/3+CT/g0wC4+nkdSIKZZRM/HLKH16DgWbKRKrhUgIqu+UbTL91t6g+y/x52ZskcPE8KMN GEJhv80FptmGCx4sf8Pp1jRop4ezo9AguHT23zA== X-Received: by 2002:a17:90a:4591:b0:28c:8eaa:e5e3 with SMTP id v17-20020a17090a459100b0028c8eaae5e3mr8264623pjg.17.1706871173799; Fri, 02 Feb 2024 02:52:53 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240130125602.568719-1-naresh.solanki@9elements.com> <52f1e76e-0953-4625-94ae-2208600f5729@linaro.org> In-Reply-To: <52f1e76e-0953-4625-94ae-2208600f5729@linaro.org> From: Naresh Solanki Date: Fri, 2 Feb 2024 16:22:43 +0530 Message-ID: Subject: Re: [PATCH v3] dt-bindings: pinctrl: cy8x95x0: Minor fix & update To: Krzysztof Kozlowski Cc: Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Patrick Rudolph , mazziesaccount@gmail.com, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Hi Krzysztof, On Wed, 31 Jan 2024 at 14:02, Krzysztof Kozlowski wrote: > > On 30/01/2024 13:56, Naresh Solanki wrote: > > Update maxItems to 60 for gpio-reserved-ranges to allow multiple gpio > > Subject: everything can be a fix and everything is update. Write > something useful. Sure. Will update as: dt-bindings: pinctrl: cy8x95x0: Update gpio-reserved-ranges > > > reserved ranges. > > Add input-enable property to allow configuring a pin as input. > > Update example & fix alignment. > > > > Signed-off-by: Naresh Solanki > > --- > > .../bindings/pinctrl/cypress,cy8c95x0.yaml | 38 ++++++++++++++----- > > 1 file changed, 28 insertions(+), 10 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml b/Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml > > index 7f30ec2f1e54..90dda5d3cc55 100644 > > --- a/Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml > > +++ b/Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml > > @@ -45,7 +45,8 @@ properties: > > maxItems: 1 > > > > gpio-reserved-ranges: > > - maxItems: 1 > > + minItems: 1 > > + maxItems: 60 > > > > vdd-supply: > > description: > > @@ -85,6 +86,8 @@ patternProperties: > > > > bias-disable: true > > > > + input-enable: true > > + > > output-high: true > > > > output-low: true > > @@ -125,14 +128,29 @@ examples: > > #size-cells = <0>; > > > > pinctrl@20 { > > - compatible = "cypress,cy8c9520"; > > - reg = <0x20>; > > - gpio-controller; > > - #gpio-cells = <2>; > > - #interrupt-cells = <2>; > > - interrupts = ; > > - interrupt-controller; > > - vdd-supply = <&p3v3>; > > - gpio-reserved-ranges = <5 1>; > > + compatible = "cypress,cy8c9520"; > > I don't understand why you change from correct indentation to mixed one > (2 and 4 spaces). It does not make sense. Yes indentation is missed. I'll correct to 2 space in next patch revision > > > > + reg = <0x20>; > > + gpio-controller; > > + #gpio-cells = <2>; > > + #interrupt-cells = <2>; > > + interrupts = ; > > + interrupt-controller; > > + vdd-supply = <&p3v3>; > > + gpio-reserved-ranges = <1 2>, <6 1>, <10 1>, <15 1>; > > + > > + pinctrl-0 = <&U62160_pins>, <&U62160_ipins>; > > + pinctrl-names = "default"; > > Missing blank line. Will fix in next revision. > > > + U62160_pins: cfg-pins { > > + pins = "gp03", "gp16", "gp20", "gp50", "gp51"; > > + function = "gpio"; > > + input-enable; > > + bias-pull-up; > > + }; > > Missing blank line. Will fix in next revision. Regards, Naresh > > > > + U62160_ipins: icfg-pins { > > + pins = "gp04", "gp17", "gp21", "gp52", "gp53"; > > + function = "gpio"; > > + input-enable; > > + bias-pull-up; > > + }; > > }; > > }; > > Best regards, > Krzysztof >