From patchwork Tue Feb 6 11:25:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naresh Solanki X-Patchwork-Id: 771412 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (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 643A212EBF0 for ; Tue, 6 Feb 2024 11:25:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707218709; cv=none; b=FiwbnZSr03rPGdzvDIAkp00g+Y7X5B6zadV61tWNasN3oZKEG6k4ssEjoB9eXbGNhfKAtD9vqHDqHOXZoEqlrdSMhGy/su4lQfLkXTgzx4xbi9gLjBM2wmDm3GoMcS7f+sOPV+2ifqK0kaRUjvb3dADHBjIZtWNH2QQwcPt8F9Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707218709; c=relaxed/simple; bh=D5rY55ZVWa2j3iyWooQtIR56A7LxQVE5Z7VzvJRN4f4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=S7yHiowlr/G7bAB/lNJLsyxlvyiVWts0OJvaSlXp9CvwRI8IJ7uDU+Se4W1SNp96UGIiLr58Nmj2Wj7IBFUkWIpfi5yVvU76ZLesTomK1g269HjIhy6NKOJMyToYHjwu3OR5u403R7Wew+5Xo5tWyOFtcu/ayTXGo2RnYsM8vpQ= 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=Qz184yDn; arc=none smtp.client-ip=209.85.128.52 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=9elements.com header.i=@9elements.com header.b="Qz184yDn" Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-40ff13d2628so910135e9.3 for ; Tue, 06 Feb 2024 03:25:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; t=1707218705; x=1707823505; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=tdUPrvm3uK6fsu9NtDUXaLyCVRtgeDGLH0MFBS15pl0=; b=Qz184yDn2eb7d+kEZpFTGcWBYlF+vp14/pHeB//KJb0cmEmY2OMOspAJH5V/KLYtj+ 07cGfoRhZjD2SZtcD3xileqKGioTkdSotQwEKgdJ4Y0Q85SEoyi/G1LyEkyjbxubtnTF h2QOZ1K+YMXqpIQT9pyQycg34g4OKi6rYzZLGWrbvGClgwJtmPgDDjjTKsesrIlbwSdA 6b47mWZebLQI9UKwN//zpmGwVMevooC1s/chjylvC+ltQgCKYdHd9MWH5u6CSeWawX8y Shd3tBM7pI+zB8QTY/bDEViKYX31ue4wONiEGLuvs/MGK0fwQkmc/4EOYmzEqt+4VUn2 mErw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707218705; x=1707823505; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tdUPrvm3uK6fsu9NtDUXaLyCVRtgeDGLH0MFBS15pl0=; b=TCUVoc2o99KIdO//tjGOhesJd+tAt4kMO2qDm9kZPg61X+5Ehu4gUptw5moxr/Ze0+ Pu2q3p/SZEtrZE0tGS3ajoKOxlzfHCNKHu8wXz/xUuv6Z5GuTkpTJYG1FILBok6oojDr +eYPkLS/Bn1ibAOvgHjMKib6rG1XYKRihPrKycShmL2aLHZJWcD8q5WXFrSHj+mWjyjU EmxcP/sDQit7Y+vtyjaT6I5F6b7nByWgNuaYV2FijUiTVW3SmI7vkgyadEZwSDeK9xmZ 7i8uBqCBvNzJzidGtVWha7hOiKwWFwTe6clywxT9GnH4HL8zN/RHgBdfbHgFgK33Wpz/ 1xuw== X-Gm-Message-State: AOJu0Yw5SL8EytuiCxZZ8arYHBHAj1pVzuLRTNUjazmgFdb/FlqLrOFp 9u2oWGucW6RiEoS3eAXtVLWGQNWZ/19LfbIi+lMmQv/4kiNF8tIk5UnGC3Yw2MQ= X-Google-Smtp-Source: AGHT+IHAfLd1SsZ3eD1799NyVZHe7CLAsRsTG1bGXZeAQhXx338yJxeK9+8buYf+hpejikQwSQS3rQ== X-Received: by 2002:a05:600c:5491:b0:40e:5933:e2c2 with SMTP id iv17-20020a05600c549100b0040e5933e2c2mr1560002wmb.19.1707218705549; Tue, 06 Feb 2024 03:25:05 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVxFLdsCp31yGWcmf7bnv5ZnLkRhC0gMfcFF8fPTMsYMYojULrN7KLTt6zygmzBRYB+KRDoXItvc8Jr/ZC61GgiTcVCNjUlbpCp166JkYZhLZWQlwPWzAr/bLUneFUjQ/QMcW/shiWgqWDZ77OrES3PTrNrCqnxSdYqwphNfYKOdoNlJDgc/9YCUseOqZjiNLbRBaCABklZLDL2Z6FWajnZ2CXSev3k3JTvIM+9ivw2A89A2gsJRiasjuHiCs8tvWTwQYfF6RTEKWbubEwE/Xojk/kg+wGcAa6EOH6ww8YGBVT9kBUuMeWBkMiKenH4yRY0VPfcSfLArRnqd+rcFtjjqi64XRBO/tOoyH6Sag== Received: from stroh80.sec.9e.network (ip-078-094-000-051.um19.pools.vodafone-ip.de. [78.94.0.51]) by smtp.gmail.com with ESMTPSA id r12-20020a05600c458c00b0040efd192a95sm1725010wmo.1.2024.02.06.03.25.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 03:25:05 -0800 (PST) From: Naresh Solanki To: Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Patrick Rudolph Cc: mazziesaccount@gmail.com, Naresh Solanki , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4] dt-bindings: pinctrl: cy8c95x0: Update gpio-reserved-ranges Date: Tue, 6 Feb 2024 16:55:01 +0530 Message-ID: <20240206112501.715042-1-naresh.solanki@9elements.com> X-Mailer: git-send-email 2.42.0 Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Update maxItems to 60 for gpio-reserved-ranges to allow multiple gpio reserved ranges. Add input-enable property to allow configuring a pin as input. Also update example. Signed-off-by: Naresh Solanki --- .../bindings/pinctrl/cypress,cy8c95x0.yaml | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) base-commit: 99bd3cb0d12e85d5114425353552121ec8f93adc diff --git a/Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml b/Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml index 7f30ec2f1e54..700ac86c26b6 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 @@ -133,6 +136,23 @@ examples: interrupts = ; interrupt-controller; vdd-supply = <&p3v3>; - gpio-reserved-ranges = <5 1>; + gpio-reserved-ranges = <1 2>, <6 1>, <10 1>, <15 1>; + + pinctrl-0 = <&U62160_pins>, <&U62160_ipins>; + pinctrl-names = "default"; + + U62160_pins: cfg-pins { + pins = "gp03", "gp16", "gp20", "gp50", "gp51"; + function = "gpio"; + input-enable; + bias-pull-up; + }; + + U62160_ipins: icfg-pins { + pins = "gp04", "gp17", "gp21", "gp52", "gp53"; + function = "gpio"; + input-enable; + bias-pull-up; + }; }; };