Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1518057rdb; Wed, 31 Jan 2024 00:33:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IHibs595Rx6Ze+f7bE0L+At2PYVIYv4+q8SWFSBotESxvxwas5upkhEKRnTd7HQnR2MiUpk X-Received: by 2002:a17:90b:382:b0:28f:f70b:a272 with SMTP id ga2-20020a17090b038200b0028ff70ba272mr1097971pjb.21.1706690022721; Wed, 31 Jan 2024 00:33:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706690022; cv=pass; d=google.com; s=arc-20160816; b=AyVKITrXu4q28sZyH4yefc0Ip4MRdNfmljiXAf1uv7IPqnNv7d3xfpQyugeUTBBJXv DeP2hOfzJF1BM4o02v2PUWfdLJdVYYPCKw0pKG+33Lww1bD696uf7bSlZloHT1cP9NzN 78A+WuVAZBnM3bSbAG17Hi76ascvY2j8MsUJy78czy0FEmZJeUAc2Uw0ZQtzWfM4VxoU AF8xYxge7vUIL+4VwfibR5yJagQvZqAkfZMStzvz0L3OHj9VA5dPEuJjeEVIVKpHdH1L 2rw41WWHq4q1dRGyXoFrmXZjwyKww0njzwlh350/VwQL9nL7rLgu0V3AMsU4H9y6c+eX BzQQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=hKqI+ex6kcefYsSc13l7kLpM/i1M6RfFSyL6Vm7tWxU=; fh=lBPj0b6RiBuE5HyN2WTgqpQDaITn+CwFU6bd8x0I7bY=; b=eb896sy3bfnf1embI7kOdibnPswv6dNzYmUnVNwh4YfO72848GMDgVkXUwIzgOXUga N2OuhuyzSqSEyiPisorBIpjTRp21TqTYbhfBImSl43jTy1IhGyp9q5UcWjS3OmbkiWNG W8RWsudTaPMuuAzbdNB4XHJphund2c3z2GFiFwPUDH3sfHjpW/WuAjOA5v8d4nvrb94p vfAZqH+kfa9kJQRP//7Lepp/5Vc82nLRIBw2n5RKwYUWyTX8yeRzqCJCfLGKbNr0aQmn iwcHoTG1zFa9gL4gL8emeFAe2xatE4f356PWm2bsSnRJiXehlroGRO22eucCexBPyTBi SXRg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="VJ9j0a/T"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-46002-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46002-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCW4412E7Jg3a5bEf+q70ho+F3fwJjE0dfaMMwCjautUZZ9WMGy3GcoZYWa0FxQolSl2PrOvijtnB7m3zTcIKIHrBs/fQsF5g8Ccuk8wIQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id g4-20020a17090adb0400b0029359a09939si742832pjv.103.2024.01.31.00.33.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 00:33:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46002-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="VJ9j0a/T"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-46002-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46002-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 93B592830A8 for ; Wed, 31 Jan 2024 08:32:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 72C865D72B; Wed, 31 Jan 2024 08:32:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="VJ9j0a/T" Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (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 87E61168A3 for ; Wed, 31 Jan 2024 08:32:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706689930; cv=none; b=n4tEJXU4mAoR+mUmgSCIvoJxE1GZNya7zqz2n8uDDzludz2uSePyHpnN5H3aamMao3KoWbu5yTDbrW6/SADNEo9Us53iVYImUx3y25Lce916kS2+VjQ2WINQMW8x77pgm7dMgzXqazHfmqc8Arey2oEiaoWBB+eAi5d4amNt4Ds= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706689930; c=relaxed/simple; bh=uW2qWG9f4i8dbiyjx/KoeHEpStHxMUg4GXRKzOVY26Q=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=jwqZwVOJ4cfCa7JdNQxIZ0b7z5s/qII9PGqOsi0smlzuduiHNdaIEneq3TqFewRkMRzng0ATsKGlUQ5TinpRB96GxMgYXXOAEdbqKLBdk1URzVwtho0dpLdlMdaDDO8zwflUnOVVzdz/WdmyQQV5cJ7IOcoAfZkZt7iI1o0XlPs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=VJ9j0a/T; arc=none smtp.client-ip=209.85.218.54 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 Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a29c4bbb2f4so522870266b.1 for ; Wed, 31 Jan 2024 00:32:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706689926; x=1707294726; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=hKqI+ex6kcefYsSc13l7kLpM/i1M6RfFSyL6Vm7tWxU=; b=VJ9j0a/T1xNiD/kIBapBtVnHZynt7aIdqnkyYNKllPxkuGQF7FXV1YuH/ACmBPOk+A mpuDVAdpIirDfX6UXlw6N7mXHdxJBKmZAIhHsGQhkX4BS/lyULzn+xvaqSvK5nOXAcFd SnMhesdWlt+J8RTBVAl5BIboUXKyUJGRTXQYlgT9M6klJ4taGr+BhxFwpRZWWhgb2BQE CQ+U4RuvkASa62z02hTGLuBN3+k3PkTRCC/X6So2DrxM+1IV8aGr6b2HWfyblha6iOn6 2UZLFFmU+PDBfdvj/ZM/SHpIf47L/DOdL4zYylqCVEDJv+vpLuC3XWw7zp29FS29bK// 9Eww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706689926; x=1707294726; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=hKqI+ex6kcefYsSc13l7kLpM/i1M6RfFSyL6Vm7tWxU=; b=tQKLeUIzsJZsZZcNxcxlgq5Bc76eodxW8NsQdZ/IGMx0QyeUTB00P8zCl/lTubRDkJ ImYzHvdN2ZNNkowaksuxrMzkVtPvWHDPfcKfyYoPZUccqxhHLMtuefME/GooIaiJ3HZc g+2Dlq67jv8f8Sve91TyKAu/ZQ994Ia5V7m7+zSZzHVae8mZGsdRe/wvEaMJCF8vMglv sB04kwPjxj02DxwfrLSjLS4zksPlFDZpa75rTt2cLBzVqbSI8/PvKZlSZzDMjqUHXuXq 648dNgyARaLJWLWGEhtpA/+KTTG2Yo6qSTo0e/SfrV6aTV7uz9mdwJ+Ppe7qict1Nigd +lFQ== X-Gm-Message-State: AOJu0YxdmKn0msBipuGE+CamiZIhMd1izSSrt7f2TBFUP+6DzKDuTIHT 2owJFyOnk4wDvclzkqC3/ulVKLNs58h0hrHuXQCwkT8lFosKAwHtlgUyBhJvnVI= X-Received: by 2002:a17:906:28cd:b0:a36:600d:8911 with SMTP id p13-20020a17090628cd00b00a36600d8911mr565720ejd.10.1706689925683; Wed, 31 Jan 2024 00:32:05 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCWvEnQ0I6KVpTKGVxXiAJkhJ/m9JcbKiiwVjBDe1jMuIJXVkIwsySjB4CyuZO4OYj8dgVUdqG9guadmgpDAE4ojOrvss3JdC8jNPjs5CpaZFMyRScDyy8JKnWoOy/vk53AjTpO6VBY2xI0ETiWnhdJTxmmLJGeVM65Luia3uZ7PdrTAz62D2SWcdnbQYNY7WPO4I1M8aKf/vG7T9MvhAYHkmb/NDw8oraI5wclzIZ0CJayvcfmS4G15ZTwJvUqbz5i/o4tEbJep8Uo41jSiYXCDNCi+Pvwg+io+fr5c9Lyi3nuUAmos7rxiNeluTJ97gdrjvLjko0JV0BoK1sWWtedYDDGdnIv40beE Received: from [192.168.1.20] ([178.197.222.62]) by smtp.gmail.com with ESMTPSA id vb1-20020a170907d04100b00a34c07816e3sm5919866ejc.73.2024.01.31.00.32.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 31 Jan 2024 00:32:04 -0800 (PST) Message-ID: <52f1e76e-0953-4625-94ae-2208600f5729@linaro.org> Date: Wed, 31 Jan 2024 09:32:02 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3] dt-bindings: pinctrl: cy8x95x0: Minor fix & update Content-Language: en-US To: Naresh Solanki , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Patrick Rudolph Cc: mazziesaccount@gmail.com, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240130125602.568719-1-naresh.solanki@9elements.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnms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m02y7Ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240130125602.568719-1-naresh.solanki@9elements.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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. > 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. > + 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. > + U62160_pins: cfg-pins { > + pins = "gp03", "gp16", "gp20", "gp50", "gp51"; > + function = "gpio"; > + input-enable; > + bias-pull-up; > + }; Missing blank line. > + U62160_ipins: icfg-pins { > + pins = "gp04", "gp17", "gp21", "gp52", "gp53"; > + function = "gpio"; > + input-enable; > + bias-pull-up; > + }; > }; > }; Best regards, Krzysztof