Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1313030rdb; Wed, 24 Jan 2024 11:01:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IFJAK0R42bjUNqTIkmxhBh0OXEvKBxcvSVNkfMOS50SsoYODlw5qih+acWYPCpHUit5cNFC X-Received: by 2002:a17:903:1d1:b0:1d7:856e:b4 with SMTP id e17-20020a17090301d100b001d7856e00b4mr1707526plh.52.1706122891487; Wed, 24 Jan 2024 11:01:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706122891; cv=pass; d=google.com; s=arc-20160816; b=zWfmC7v1lGC5/IR1GVUfRgmFqKnXJbGXQf5NsgA4Zx4CB5uPE2BpYTgn9Ov0onrfSH Ay/Y5iNNhK2EhKosxs1u06rmj8rKfIYymiXPoJKjA9A+G01ZbBMEwOhi/WCRz4qRhG1O blS4zmG75HA7Jyq51KoQkeL7kZVkf4UQ6SPkKSPpMPTGvgubi195uxauNmO4jxDw9iQo UIOQdhIwKGvQ3AhFxRQy0nyI0Ag/3pZyAQAcWQYdIVFiF1koBpUSiRkCcbvByVh4CmRl bEpzTbn6a6dHiljhdeV11MdAZTh5JLYKsGitDrNO0iAkV7ggH3Zxu6gYZv9YjQay7hSe 6pIA== 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=54MgOhWss8Y6+Sa5nDx+h4zew8mlARzzcpN9yXJb50M=; fh=kxesc8cg4EW/po7fDtDO6GitUmFQPeeLfo/5aYbP8t8=; b=NLqBdH75DzTo1uyq7vOAJWj4DfxzEaPM/4OysEDeCpOUxOweQCGlh+9AVQApSIYy4t oEpa9BfJvPc8k9H77DH2kZMuNMA134Si3MA/5LdcchDJgObionrq8xQV3A4/7K96qXJ+ +vKH8aELskbK84usIgS4PyhN3b+5XTfxPhdEVb67rXCGYh9YdyBjXosuTBn2CmyBgtF9 h5PgiS3Fp0CllmWum5/6MXvnU2BYylZq/AUShNgAxbpMP27/oNMrdVwsor7+LC0Wq6O5 8jphlT50uAz/MRP0QSk/AKunuXwQqbwVr2+5g0cKpO3S57Bkj+iURoYULwcwVyI++/vQ Gomw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GvuTAwEw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-37564-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37564-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q17-20020a170902dad100b001d744f922a9si6645662plx.316.2024.01.24.11.01.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 11:01:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-37564-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GvuTAwEw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-37564-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37564-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 202FF288452 for ; Wed, 24 Jan 2024 19:01:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 696CB131E43; Wed, 24 Jan 2024 19:01:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="GvuTAwEw" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8B68177F3E; Wed, 24 Jan 2024 19:01:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706122880; cv=none; b=c9xuYH0JRfegFXjx/b9v886R6LVbsxvF9DR5E+PTF0NDCilxATwL2bt+v0prHhZqpyPAYGX2kU7f/Q/EahgO+H6o68C97zcdFQSv71kWZIWhh+797cwrIyApMrCTVoaMLM0gV6Dk7eHI4fa4fwY3/GnXdAHJHIc/CGHfWKdsLHU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706122880; c=relaxed/simple; bh=tOgsZRXU9rRQFmddKn9J6mSGDO3A5r9Xtx6Ag8uTw0U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ll506vSA3H/FJF9xkBInBxZwejPJRO2R4OwaBomksr35+uNS2qy3Hk+EWqRpPz1kBBbPxT3bpEn2iwcayj9yX0I3MnklVT/CTxSamgWrTAbwV2MO3STHbHjUTyF0IcbjlW+jnkkc6b3qxTO21f302RdQHcE+KKdjw5VA4tkyMXc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=GvuTAwEw; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA974C433F1; Wed, 24 Jan 2024 19:01:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706122880; bh=tOgsZRXU9rRQFmddKn9J6mSGDO3A5r9Xtx6Ag8uTw0U=; h=From:To:Cc:Subject:Date:From; b=GvuTAwEwBlmIaZvxxby4E//caeJa+m9jb6A6jf1IR/4Qrdij11PglW5ZLz94g9aqM rwtcZYQSCvb78UR2KaycjDifkQwqeQBQlCAf1VKvbVCUp0a42xmub369OdjfdAdXkO trn43tCZBE/BYImrD58p+LtIthpbyovHXb5oVF4pzGYPIua+tHZvszUfNnnwAslW2j Ykh26hHQG0hYValJobzSo1U+biPNI6GR9ygDNKf2rlyMpWXQARLd5WhwDf/lIOyAbC tmCIvhQgvQ05qDaypf5VWeZ+rq+b3dy7V2tuHl+haIAje9RW4+6TAtzXJW+bQ7RQH3 Ir6J0QvybvE/Q== From: Rob Herring To: Charles Keepax , Richard Fitzgerald , Linus Walleij , Krzysztof Kozlowski , Conor Dooley , Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= , patches@opensource.cirrus.com Cc: alsa-devel@alsa-project.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org Subject: [PATCH 1/2] dt-bindings: pinctrl: Unify "input-debounce" schema Date: Wed, 24 Jan 2024 13:01:04 -0600 Message-ID: <20240124190106.1540585-1-robh@kernel.org> X-Mailer: git-send-email 2.43.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 nuvoton,npcm845-pinctrl defines the common "input-debounce" property as an array rather than an scalar. Update the common definition to expand it to an uint32-array, and update all the users of the property with array constraints. Signed-off-by: Rob Herring --- Documentation/devicetree/bindings/pinctrl/cirrus,madera.yaml | 3 ++- .../devicetree/bindings/pinctrl/nuvoton,npcm845-pinctrl.yaml | 1 - .../devicetree/bindings/pinctrl/nuvoton,wpcm450-pinctrl.yaml | 3 ++- Documentation/devicetree/bindings/pinctrl/pincfg-node.yaml | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/cirrus,madera.yaml b/Documentation/devicetree/bindings/pinctrl/cirrus,madera.yaml index bb61a30321a1..482acda88e73 100644 --- a/Documentation/devicetree/bindings/pinctrl/cirrus,madera.yaml +++ b/Documentation/devicetree/bindings/pinctrl/cirrus,madera.yaml @@ -93,7 +93,8 @@ properties: input-schmitt-disable: true - input-debounce: true + input-debounce: + maxItems: 1 output-low: true diff --git a/Documentation/devicetree/bindings/pinctrl/nuvoton,npcm845-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/nuvoton,npcm845-pinctrl.yaml index 3e8472898800..20cf0102aa63 100644 --- a/Documentation/devicetree/bindings/pinctrl/nuvoton,npcm845-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/nuvoton,npcm845-pinctrl.yaml @@ -152,7 +152,6 @@ patternProperties: description: Debouncing periods in microseconds, one period per interrupt bank found in the controller - $ref: /schemas/types.yaml#/definitions/uint32-array minItems: 1 maxItems: 4 diff --git a/Documentation/devicetree/bindings/pinctrl/nuvoton,wpcm450-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/nuvoton,wpcm450-pinctrl.yaml index 7b7f840ffc4c..08442c880f07 100644 --- a/Documentation/devicetree/bindings/pinctrl/nuvoton,wpcm450-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/nuvoton,wpcm450-pinctrl.yaml @@ -103,7 +103,8 @@ patternProperties: items: pattern: "^gpio1?[0-9]{1,2}$" - input-debounce: true + input-debounce: + maxItems: 1 additionalProperties: false diff --git a/Documentation/devicetree/bindings/pinctrl/pincfg-node.yaml b/Documentation/devicetree/bindings/pinctrl/pincfg-node.yaml index be81ed22a036..d0af21a564b4 100644 --- a/Documentation/devicetree/bindings/pinctrl/pincfg-node.yaml +++ b/Documentation/devicetree/bindings/pinctrl/pincfg-node.yaml @@ -97,7 +97,7 @@ properties: description: disable schmitt-trigger mode input-debounce: - $ref: /schemas/types.yaml#/definitions/uint32 + $ref: /schemas/types.yaml#/definitions/uint32-array description: Takes the debounce time in usec as argument or 0 to disable debouncing -- 2.43.0