Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp550664rdb; Fri, 26 Jan 2024 03:59:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IFSolo66dpKG6wVRAP6LChCVrZTVcGe4QHomTFSjrqMqElDvWmjxytcW/qOAXrguC4gZm7A X-Received: by 2002:a05:6358:3421:b0:176:ca53:39e1 with SMTP id h33-20020a056358342100b00176ca5339e1mr438770rwd.28.1706270376084; Fri, 26 Jan 2024 03:59:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706270376; cv=pass; d=google.com; s=arc-20160816; b=N+LuoFWXpc552VQXo2vQAacWUfAW++dd/y1gS79FXV1k1lRm0kPpg/xQ0y2LphFTjn 4t8HZmI6PdKNQcDvqm29xN9dgimGHUO+acaVe5Xt0qFDa29AK6b1AC+d0BSG3OoVUGm1 /TxSFdgpgeK0ES4ez/+xwTlHblKDICQ4CpR1w2CTxZ0Zg9KAaWXtustpFw7CXnGxKmF2 YWm5xbh2kIJkN7FCO3/58Gb8M4e49uDUc+qq4w91rbqm4crADZNNkZaGQPL3lQu/5zIP 22IgJICVzav49V7kCA+F61X1APRlDv1vWzN7n3BPGWDK8me00ppMfB+2jjXyMPjO8JuT T2CQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=6igzwQypdxPSe5LiU4uAuaHmPYLT8/p0hJRSsz2288A=; fh=f8V/Wum54qGiccI52wgex6JBeMyDhI+QdFmvV2oYuwM=; b=HFog1VzYC3yil9U6NiKed32ez0Cvp8Vwkan54GDgsli/Mr/IlEGl0PU6FcQMRl62tm 6iIP3wSMe3xG1bwGV+easR3RpZ+Gcv/gGhAl9W+sNpnBwiKNTlzAl+bTYwWVXQasbIcm 4bOjDkr+A70egXK3PpWusnP79n0efsXIn3o9Q2d1VBtaER3fyFJSrva8hBNfOJ1cajGm SiHzWQVDShGNiytx70ZuHqriTdudOpzMhtlr99D7J/Sn5cIYHRovZlHzvgfkuo9bRlh7 44IeSwT7zFFz4OVsJkBRP9WSPCGdznkEvzLPUXKoBTjdeuB/RsI8vszRzOGoItjiOvUV 1I/A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@9elements.com header.s=google header.b=L03Nu2Tq; 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-40079-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40079-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=9elements.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id np8-20020a17090b4c4800b0029497c1b58esi191010pjb.126.2024.01.26.03.59.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 03:59:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-40079-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=@9elements.com header.s=google header.b=L03Nu2Tq; 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-40079-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40079-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D81EB283116 for ; Fri, 26 Jan 2024 11:58:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 63EFE18E2C; Fri, 26 Jan 2024 11:57:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=9elements.com header.i=@9elements.com header.b="L03Nu2Tq" Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 41F811A71F for ; Fri, 26 Jan 2024 11:57:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706270277; cv=none; b=YzizzWlhjR8XDXPiT1vOU/JaTRjcJHcE+m1Ud/jIp7+UCnu63WngGh3x//1iaq/3xPP/tOquUKRXbXcWGSwzzwSrGRuK4stOX26SzcGu3O/pQfJp8V9ErSeP1EPSbLF5c3XwB4iBP/JTk/Z0Jk7bA7P7vlMqipDtYIGHLzQ/urg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706270277; c=relaxed/simple; bh=fww9EB7dHTt266qwXpxXlSuJ7F6luyRDgiG70yImJ/g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=e2pe2/o5twBrZCx8+2LJb3Jvih0Ns+Y1Ds8AuD3n4zrslM2bk5RzHzcaFYxe5tLNYp+1eCnlJGs95aRjWJaViW9UjqYM3AVKso9z1E6XcOJIqs2W8Ti+Ur0PcbZIAV5SEpoXL6Kr7k4paqto+rFkwjeZBlO3kkrHVjgYOAmt0XM= 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=L03Nu2Tq; arc=none smtp.client-ip=209.85.128.46 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-wm1-f46.google.com with SMTP id 5b1f17b1804b1-40ee705e9bfso1914895e9.0 for ; Fri, 26 Jan 2024 03:57:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; t=1706270273; x=1706875073; 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=6igzwQypdxPSe5LiU4uAuaHmPYLT8/p0hJRSsz2288A=; b=L03Nu2TqrDfKunvmkedqLYo36Khot4vBn0yMINlhwvf2DW3AkYCLiGjr9MhHThM/at Z34K2d9kbmfoQ74FxtIltK8zPpMHcIf4nfWq6ZZ56RBy6fltLquqMSictYTVlMvfF7mv 3HpsyeIHVulVbFkFQo6MWBlilzTUN5znFe19350v1GsnWUYKszigzI1d4W1ItGOSJnyP BsccWyFBn8yhUHMQXdWQ7h+22f3+6+Nk9EbxgWV7lZ7OVLzpQc2IlSJ3SKM1qUfvRBKC pZR1QbM7OysDVvHWv+ngOFZkK9zaBmH0fHWNNpKxyDpYyOdubMkm3u+6kkF2wUXOPMQy 5aBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706270273; x=1706875073; 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=6igzwQypdxPSe5LiU4uAuaHmPYLT8/p0hJRSsz2288A=; b=Vt+cdJBV2H8OpU2D66RKWJh5yPu4GPICIY9RehMZd+/rfgqFVs3jxmXJi50e0eLpDq MyZZTQkqL3+fEOD5xevJ0bbccbWcYr/zm6PwdvmPQJ6lUeR4eFn5l6e3fofmPSsiKROM 1Hiaz5mHvNDH8hRHN++k6flY6N//FuzpNu4gYx+65tJXRAPw0IfnMx4QMOSgmPuKwIXF 4hNkdou6MAbvBw4kfUZaCaCOq0BPdgtktMii8PMgQPoATXj9KVVwfzDkoqAKfn7uexW1 w30rJiwlcVh5iXv6Mh4XdhMCOT4giUGetDQTgR9/lmMoLiwPynIQsIvHMHELpaxhGHbh DffQ== X-Gm-Message-State: AOJu0YxhRXlw3xte0ZXO/9b722Ev8immsTrEN5XrQ3xSZbOfsu8phaCz IiJu2o1n2+ico0mBlKeNo1wFksyEbbWLWqlTS2ULuaKYqK80BXku9qy3rBqdYxc= X-Received: by 2002:a1c:7506:0:b0:40e:86eb:9e7e with SMTP id o6-20020a1c7506000000b0040e86eb9e7emr823322wmc.142.1706270273511; Fri, 26 Jan 2024 03:57:53 -0800 (PST) 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 bd19-20020a05600c1f1300b0040ed1d6ce7csm1682149wmb.46.2024.01.26.03.57.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 03:57:53 -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] dt-bindings: pinctrl: cy8x95x0: Minor fix & update Date: Fri, 26 Jan 2024 17:27:48 +0530 Message-ID: <20240126115748.1491642-1-naresh.solanki@9elements.com> X-Mailer: git-send-email 2.42.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Update maxItems to 60 for gpio-reserved-ranges. Add input-enable property. Rearrange allOf Update example. TEST=Run below command make sure there is no error. make DT_CHECKER_FLAGS=-m dt_binding_check Signed-off-by: Naresh Solanki --- .../bindings/pinctrl/cypress,cy8c95x0.yaml | 28 +++++++++++++++---- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml b/Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml index 7f30ec2f1e54..89ce0cb68834 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 @@ -101,6 +104,9 @@ patternProperties: additionalProperties: false +allOf: + - $ref: pinctrl.yaml# + required: - compatible - reg @@ -112,9 +118,6 @@ required: additionalProperties: false -allOf: - - $ref: pinctrl.yaml# - examples: - | #include @@ -133,6 +136,21 @@ 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; + }; }; }; base-commit: ecb1b8288dc7ccbdcb3b9df005fa1c0e0c0388a7 -- 2.42.0