From patchwork Wed Aug 28 09:35:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13780991 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 24B37C54795 for ; Wed, 28 Aug 2024 09:38:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=hC9j7IbumBMQnEMKyG95jmRuI5phudBOANwkQ4Y7dbw=; b=lhsG1FL8mm9+v6SuwmXXuNrk9l gtivzfKTWhKpg/TcL/q30b11TVYuiqcdrZsol4es1bnRTnjDXyBYftcl6w8ysu72Y/aCCnKj9Elho EIeUE2/xb7yyA2HxHkt9CrOtfAOTCTfJ8D6NqJYByzNufHmlJcP1ts6f0vFGcVPzzN74vs3EZsneR vWuOtNTBlu59BEicyLvPhghDkT6tFjo99UrlhYbiI8T+gfd8g4GEMXxGqmObR8wJ8XJSWMGxyzy3W tyWVxvXqWbt5uW6XBqoATSAIhXNQ9nFdFZqs5bx7EvDa/7km3CtBN3kqxQArywRsLfkOaF6jRIf1h xxum7l6A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjF82-0000000EkvW-1YJ8; Wed, 28 Aug 2024 09:38:14 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjF61-0000000EkCH-26BZ for linux-arm-kernel@lists.infradead.org; Wed, 28 Aug 2024 09:36:10 +0000 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-4281da2cdaeso9213905e9.2 for ; Wed, 28 Aug 2024 02:36:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724837768; x=1725442568; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=hC9j7IbumBMQnEMKyG95jmRuI5phudBOANwkQ4Y7dbw=; b=sBgNJ2CDAwAYVlnZxttrI6cL0eUj0IxsTyfRMHwruTfm7y5LpeHrap8EeaYKme2KiH ykYG3Unu4s253pzMuSxvsiiT5f553lol23chxDZwyj5XWnPzwHZNPfdfyHhWzYpKFVTW zjFNmX8bqgjJJU2F44BElabBgw9rPE+Oe5nDr3GJTrEAwpUzQNhdEa2sHLIpla9Y/2eZ Cr0v+moLYcDf61HrcflTJ91hFJ3RRksKN2D0wrgKzjuiYhT6Z9l7QmNab6CNVwvTh0DX 2wCz34CifigIxofRTgR2muPXwoM3+yygbNzxXVsHQIwyzhZGpmokiq5w9H0IaG9jSExi ZE/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724837768; x=1725442568; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hC9j7IbumBMQnEMKyG95jmRuI5phudBOANwkQ4Y7dbw=; b=hRT5uwkwDlg9voPC6ELex6Jz6wWps+HzF3V67cowqslxymLb+Poroc4XwgwP/ya4Av k53k11WGotOXsqFPEJbO6wJknaU8BSMVyott4T3rAuEGWc/KXD4ZNsZINlDy0lDkqCzn EYY7PHNL7hlGCuTBceccmGG0PZuMWxaN5f2t1uJxiTuHtvHe6FPE+2R6lgRlRhb6yVcb BzZuCwIOfvFvGAFOvMT8emqZq1LmHStexLk2jkersnQ761JNQ/75LVe7T4NZ8kxw1k3q uU7E/TV8NoYFmUBhTu9xT0x5GNEsUP5a+z/Rd2IHSxySzs9YCzFYgz1zo80oNET+1VVY r4ag== X-Forwarded-Encrypted: i=1; AJvYcCUcjCvcm7I0tKP0E6bGdLHIlHsB1NeM0C5RYEHNd7xQrPFvUo95R7VmdtLAlfb7YebG2Da0Pvgs+fZI8/96N0Jx@lists.infradead.org X-Gm-Message-State: AOJu0YwzWt6EMvdnfYZTq79hPlXRmHsw/Xtcih7sAqnn2PgZCrTP/wHY J2X7Z+sO0zdc8Weo1jjzgCHEQXcIBinI3JN+u2UHgtKTxO5lyqHSH6Nd92F42i4= X-Google-Smtp-Source: AGHT+IEB05FnP91FMO0l2HovbTESQKRe9ADpJRmnFhcHlQ0GZzcE4pg5vT+W4mPVe8NOnL+reyup/A== X-Received: by 2002:a05:600c:4445:b0:425:7ac6:96f9 with SMTP id 5b1f17b1804b1-42acc8a55f3mr70030375e9.0.1724837767566; Wed, 28 Aug 2024 02:36:07 -0700 (PDT) Received: from [127.0.1.1] ([178.197.222.82]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42ba63d7d3esm15270825e9.37.2024.08.28.02.36.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Aug 2024 02:36:07 -0700 (PDT) From: Krzysztof Kozlowski Date: Wed, 28 Aug 2024 11:35:57 +0200 Subject: [PATCH 1/3] dt-bindings: gpio: fcs,fxl6408: add missing type to GPIO hogs MIME-Version: 1.0 Message-Id: <20240828-dt-bindings-gpio-hog-v1-1-63b83e47d804@linaro.org> References: <20240828-dt-bindings-gpio-hog-v1-0-63b83e47d804@linaro.org> In-Reply-To: <20240828-dt-bindings-gpio-hog-v1-0-63b83e47d804@linaro.org> To: Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Emanuele Ghidoli , Bjorn Andersson , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Daire McNamara , Kunihiko Hayashi , Masami Hiramatsu , Maxime Ripard , Masahiro Yamada Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, Krzysztof Kozlowski , Conor Dooley , imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=732; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=kIOSKTwBhCJNE2xIsjLzrlpi4h7Kklqz+lUuDimv5hc=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmzu+BI3YnNLbD7GXCWVvb8IPUEsEVvnR7tGUMm fnaF2hkquWJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZs7vgQAKCRDBN2bmhouD 1y4RD/4kIDO9WQFkJe5J0o3puadA1mzoZjLceOTI/W6erd4nCkfkBl8dLOOsbEnNLqQdlS3svLt b3P4G7aRcKvhJxZkobZptlNOGxppkpJd4FD0JishQcRytMjO/fFUk70suDUcJBRJ0DjQ4IE3yv5 0Dt0Typ6dj/ifqw3Y4jRd52LsawOxWfBpSkKGHPgTmpup6nVCsERkF4TY4rweGSasxFVpcXGi9Z Pihlg1+DTXQBEfVDFWZe5VuBX3aArl6cHPi9AlV9O2WpvNe2wYaGA8adpUChHqGUS1OQPsJDzq1 I6FIZS3LCjCEBlFHHuCkchxpWB/3/W7+YqSNfRrS0qby+OCzMH6F55BpTQIAxxtanAJlC62naDv 9bbxHIppITRogk9zPZTsSeh9IDSbYJ8wFoySiHQ81VlDi1VAnmpPbU7FiQIU+KeLoSGx8woo4b1 0h46g4jd+wRdqAcUUqgdJ3wexn8BHvEz90abuaSm2KWEDSE+h1iTJ3LNDFnXRszUItkoxtqiqH2 3HBN5FzPcaPowWVB3iHDgzn7VG6mM25RfaH3NZmvaPkYxoi44gVBwDRhaYzlAkjGwrlCsY4IUh0 7HhPxrhF21phN/6UOi0Q9FP+lyJaZyhaDn7H33i0AWS30xtf62ttknUHPWO1lQtxaI4DsOwnfr1 qb+psbOCgQcoMgQ== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240828_023609_576023_4A5F390E X-CRM114-Status: GOOD ( 10.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org GPIO hog nodes should define type, otherwise "dummy-hog" boolean properties would be allowed. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Linus Walleij --- Documentation/devicetree/bindings/gpio/fcs,fxl6408.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/gpio/fcs,fxl6408.yaml b/Documentation/devicetree/bindings/gpio/fcs,fxl6408.yaml index 65b6970e42fb..b74fa81e7d05 100644 --- a/Documentation/devicetree/bindings/gpio/fcs,fxl6408.yaml +++ b/Documentation/devicetree/bindings/gpio/fcs,fxl6408.yaml @@ -28,6 +28,7 @@ properties: patternProperties: "^(hog-[0-9]+|.+-hog(-[0-9]+)?)$": + type: object required: - gpio-hog From patchwork Wed Aug 28 09:35:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13780992 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8BE4BC54795 for ; Wed, 28 Aug 2024 09:39:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=wZNNRrHbOALIGghuHu53Hlhnl0hetnh0rIsXkn0hdN0=; b=cxBs6DxErYO769ENgAVCCljVui EzH4QOdyS/wNMCv+bgRVuapSOboFgwCezv3OOKLxWeNHF5SNM4AD/wArJL/8vR7RG/WTehCTN3mxz CU4lMhWx0y/7mylfd7FMvdQ/9mevutYOES3DTX/3fmdm8o7kpL5EaPN15VTqKtQmUj6iCW3vv6lC8 OWGTb41hEx0CxLAbjm7sB6TVMFIBB0N3cp78DwxBrdHg3OvhyNWg3gH9BhB7K93SCQK+doxUohI5i Jor+k1iSr08/vpwvQZVT40fe3u5HzN6TeSd6cyUZZ/KFqkeb9+BUZ4kFidFRwW2hM1FJgB4n3qryU OHRFrKig==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjF8s-0000000ElID-2oqq; Wed, 28 Aug 2024 09:39:06 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjF63-0000000EkDa-2AcJ for linux-arm-kernel@lists.infradead.org; Wed, 28 Aug 2024 09:36:12 +0000 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-428098e2b3bso7260125e9.3 for ; Wed, 28 Aug 2024 02:36:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724837770; x=1725442570; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=wZNNRrHbOALIGghuHu53Hlhnl0hetnh0rIsXkn0hdN0=; b=Ov03B9AuwvuARitao/+3pKKhSwzuEwbBJR5RhkaKWUYyIWQkeyn5WrvgJCAiiO1DiM 1JaA/XQmaGgi37gZ8rD1ayp9roSrDAK5WzkJBQG11a6YbDapVXooVrXgn6xgpqSQVrit KSdgHDA90Z02aTowmKueWNK612w5vccTKKtFWg60vrTDRzjHSXFhsD654jooetHMTaOC UV70wVIYG7W8A5GTgdg/yyicay8k0qgAESA0xtm2a32eETU58b8Z+V0XAODRRxhNNzoc jpMkZg+MA/+4YI0q5kH4vWZcp8h9tI/CS85aUUwt9kWt+KU1sv+SyThQBNjtg1TOvb1x cJnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724837770; x=1725442570; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wZNNRrHbOALIGghuHu53Hlhnl0hetnh0rIsXkn0hdN0=; b=sKLtd2oEAM7ZZNRYOnM7NA1Ngk9zv4DcbbbzZH1fs6/eqWxd2NGX2LHgg77+q3XZbi c2GTiZX9mm02UD4clDYDYpCQQ75b25H/XKnTxZhI4hQS4RPMez8s7loaLUQ6zQdkg/5d /S76Dd7trxvI15NU2RfoQyf9Gd+FBgIRW+26opirh2LXQPtrL6IrhyZSAHFAH6tvqPNt eN/PXWcs+wuCaEUJzd/M3VWmKovYz20rn5c0H17rZLDNgRVlJ+5Zwa7SSgL1eyQQekSW E2YL1hrOfRt8Vqbub0MEE47Z1WH2TBt/sHm8v7FVHdPJRhC3a+jDyLtQ2fVXIVMGlgt7 2x0w== X-Forwarded-Encrypted: i=1; AJvYcCU7drP0ozlpbJCZyhWu0jUAG+oWW9NPioXtRhFJK72lL3E6533jvvvxczulF7onfjjQT0RmgaBXt5XOrDzMFV14@lists.infradead.org X-Gm-Message-State: AOJu0YzvZo62hujZrsWJEBAJ26+udJiNLTr8aj4G7OrSWCxKSCYn4d8G P2OQbO6C47y80ivPThFHD9FvsC96eBFTXP9aIVUggfzFSQsjG6ZaKuxviJ8rHRM= X-Google-Smtp-Source: AGHT+IG9/vDsNXLZCy2PLta7RRyHss2Tb1u9MzhedawWhzPd5nwASvDx/bFEslbEbjrUTV0SqLsSJg== X-Received: by 2002:a05:600c:5105:b0:428:18d9:4654 with SMTP id 5b1f17b1804b1-42acca311f8mr70381685e9.6.1724837769651; Wed, 28 Aug 2024 02:36:09 -0700 (PDT) Received: from [127.0.1.1] ([178.197.222.82]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42ba63d7d3esm15270825e9.37.2024.08.28.02.36.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Aug 2024 02:36:09 -0700 (PDT) From: Krzysztof Kozlowski Date: Wed, 28 Aug 2024 11:35:58 +0200 Subject: [PATCH 2/3] dt-bindings: pinctrl: qcom: add missing type to GPIO hogs MIME-Version: 1.0 Message-Id: <20240828-dt-bindings-gpio-hog-v1-2-63b83e47d804@linaro.org> References: <20240828-dt-bindings-gpio-hog-v1-0-63b83e47d804@linaro.org> In-Reply-To: <20240828-dt-bindings-gpio-hog-v1-0-63b83e47d804@linaro.org> To: Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Emanuele Ghidoli , Bjorn Andersson , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Daire McNamara , Kunihiko Hayashi , Masami Hiramatsu , Maxime Ripard , Masahiro Yamada Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, Krzysztof Kozlowski , Conor Dooley , imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1932; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=zQ/EAttBpW9Q8AXfVWlgDx0v3eHjsl+TU739HvihRfs=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmzu+C4RJJ1RBPM7LK8KIDj+kQS2rURjG6cPz4n Yv6DIWe9IiJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZs7vggAKCRDBN2bmhouD 10KyD/9tsd39XLXpxYG0Lh6I05zljRsfz0oC9ri81+o5RR3kYd9IjLAbtMSNauoFquWI80pWYNi LEZAngibtD7JGqFe1ScTwmsECnMjAPN5XRteP9tc4603vRhDHj2SxRFFi2Zi9nq7+GdatJBlJfD IsekUWVWvctDrFHH0rg9HVteN1DYUrLEgc+EheM2qYgI2U7QQElkKI1/l2HpWeYdLJN4CL6fioJ sWlIFFZf9jTaIlqe+TO8ebW5Lh7ATlXy+rO5K+ZMC2KS7zRUrQJfg2WrWTXZ8T3LdKDaCqkl1gj wPXclOFxIW+tA6gd2tI/SQh6smy9p7vpzmXp4pWxVwM3zBPwRf2k1HB/nKvXGehJISf/H2QAVNo 2nrMN6i3P6PAUi4tvKaR1CMeLhs/8KDfFhNmuhGOJLByoo5HAfqUW7C/hHLBcp14Jk5yqxuiLvB K76O4HnJTdFnRvyRpjqjHlTV4p0D/mYhGP5JG7Vgsk3j5HDKbu4wtTj4PudviDb5sspANnDP6qI d4L1uj86Q8weETPK8GwTG7RZERJSQPa6OiV6XX3fx7PV86IYZ9fLHUjK4CNU7vJVyt+07DbbAW1 o7HOH/UVl4OQdq/L31kY12RnfU8hwZnRd74ocoy002eM61JwmFXA5Lt9d4B0cfPhuGCElomKrOc tqjIFpovb0Tqe+w== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240828_023611_614291_EF9D60FF X-CRM114-Status: GOOD ( 11.29 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org GPIO hog nodes should define type, otherwise "dummy-hog" boolean properties would be allowed. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Linus Walleij --- Documentation/devicetree/bindings/pinctrl/qcom,ipq4019-pinctrl.yaml | 1 + Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml | 1 + Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.yaml | 1 + 3 files changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,ipq4019-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,ipq4019-pinctrl.yaml index ebf74e48ec5b..cc5de9f77680 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,ipq4019-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,ipq4019-pinctrl.yaml @@ -37,6 +37,7 @@ patternProperties: additionalProperties: false "-hog(-[0-9]+)?$": + type: object required: - gpio-hog diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml index 2784d32fdde2..c1b799167d81 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml @@ -425,6 +425,7 @@ patternProperties: additionalProperties: false "-hog(-[0-9]+)?$": + type: object required: - gpio-hog diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.yaml index dfe5616b9b85..0f331844608c 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.yaml @@ -43,6 +43,7 @@ patternProperties: additionalProperties: false "-hog(-[0-9]+)?$": + type: object required: - gpio-hog From patchwork Wed Aug 28 09:35:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13780993 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 22CA8C54795 for ; Wed, 28 Aug 2024 09:40:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Oqpgi+Ioc4Hh1q2eVNsUH6IqcMRcphlNfWp1+WCdT64=; b=KUuOi4nSK9B9P9EJtuM/3WCBQN Oas9mEWXAxisy8CrAk9dAJpPEvrXrSspIi+lDGgfp07yBrxnUIeoQe0Taf6qsQ5Og3sa0sfwe1m4t qJMO5IMXA5JmV7bVTpu8mdD/CVCwOSQUw7XN6KZoPqjEmjDtyKBOanebqeufpWuhMGxyZjkvtNWG0 xXE/QWLWXh5ddCBmVIo9z9v7Iu69mPTX24cn+MthmjPAaOBb/OZiF/yKDZPvttV4k3GlsRfY+PfAC Cx+afPFTEASQtFTzujxaEnBo2wKPx0ENW63tmd42+7m481z1KUIg83rmBhi9/uBydobi+Dai9+g3w exsCSKAA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjF9g-0000000Eld5-35bn; Wed, 28 Aug 2024 09:39:56 +0000 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjF65-0000000EkF8-1APC for linux-arm-kernel@lists.infradead.org; Wed, 28 Aug 2024 09:36:14 +0000 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-42808a69a93so9210745e9.3 for ; Wed, 28 Aug 2024 02:36:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724837772; x=1725442572; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Oqpgi+Ioc4Hh1q2eVNsUH6IqcMRcphlNfWp1+WCdT64=; b=Z8rbCXXxqsVD5PeuxGLW6qbXBmP1yg4zRs/AdVe2dU7rGN9vQCn7NxBxTi8rrnn1cq y9RNHCQTLCHPvejOJ1PwJZ0xuOmfAWxOUAu7/p2rpIL/XZonK0y2mY0LtneSF8Q14vEj uYNl84jKX7EnQSBo2yhHxniiyEUYUfOjZthHDRcvnSqFsXZm+H2bQlqkYS7MLACBToao 5XUXpNwEyNax6HZrvJ2i3auE4LV+6BSy+tIIm5TucNV8twmKj/hg7iBThFKzk6CDV6cU fXuC/9JXbp7AchnbcK/0wgcSnEMg3FgQcEvLBBPzYGMwxGOil0nZM+GEKO5Sf7nSM1A3 ldZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724837772; x=1725442572; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Oqpgi+Ioc4Hh1q2eVNsUH6IqcMRcphlNfWp1+WCdT64=; b=rf8vzatzlCEezxGaISlxZXtobr5cm5blkdQ/0Tgb2bvawrDv1Ocv81m9eWQ8j/id/O 50G9rKzykA/RIBpebvkQi9z0a4U2HlmrpOX1oU15oSk94A9kE2HkYY15sCwTAsWtD6aH hZe9668Cuf4Qsj28klIC81br16VR5DqYJ75QwCxr/YprH4/pyVM5w6HjuGmWY6jdZt4j da1IJsRWGDyBfwoAxEXUBVk8gxogL0pmk4gyzmfwFvoduB06/tAckEqohMcFXl9W+oZY ayanYlM6LOTS3MnKcI1N2+a1NXYSScXPfBrkmiJCOzE29BfIsaZZhTzGxm9/MzljaBLA ZovA== X-Forwarded-Encrypted: i=1; AJvYcCVdUYymkiL53TeTMnzJjtDQ9bg7ZXUrRzy88WeCR1ofuUd33cakZG1s6tPIVDzyzekotVLSBSa7sHXV0qkq5+UM@lists.infradead.org X-Gm-Message-State: AOJu0Yzhzmd52AKGURL40SUnmy1API6p80YOylrnwn9H7HxLMnt11F6m XwA47N1jBMn+JVep+v4u9mp/u8banbmrtlFguJta4/N09DBgRsnkOt8/eBv8yKU= X-Google-Smtp-Source: AGHT+IETpe3b9BGv0n0aM0dnAJ8cS5Q7YY6k14fOQPDFxFj2whk1YkEA+f5mnYL+L6tMMK9TqVfI6w== X-Received: by 2002:a5d:5889:0:b0:35f:1edb:4695 with SMTP id ffacd0b85a97d-373118b65acmr5912438f8f.6.1724837771829; Wed, 28 Aug 2024 02:36:11 -0700 (PDT) Received: from [127.0.1.1] ([178.197.222.82]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42ba63d7d3esm15270825e9.37.2024.08.28.02.36.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Aug 2024 02:36:11 -0700 (PDT) From: Krzysztof Kozlowski Date: Wed, 28 Aug 2024 11:35:59 +0200 Subject: [PATCH 3/3] dt-bindings: gpio: simplify GPIO hog nodes schema MIME-Version: 1.0 Message-Id: <20240828-dt-bindings-gpio-hog-v1-3-63b83e47d804@linaro.org> References: <20240828-dt-bindings-gpio-hog-v1-0-63b83e47d804@linaro.org> In-Reply-To: <20240828-dt-bindings-gpio-hog-v1-0-63b83e47d804@linaro.org> To: Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Emanuele Ghidoli , Bjorn Andersson , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Daire McNamara , Kunihiko Hayashi , Masami Hiramatsu , Maxime Ripard , Masahiro Yamada Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, Krzysztof Kozlowski , Conor Dooley , imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=4308; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=bfnqlyzaJpLrEgkQnghSy/QuUGq8pRc27uQrIneNjNU=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmzu+CXWk9x7tyzNeDQFogtsG8zjaPPskp0BUXE 4KwHhVpHwmJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZs7vggAKCRDBN2bmhouD 11QrEACVIpIu/QhFsBa1s0ikl/l3NZcISpoVtaGfa7CO039p5WWJDGiQvU2XGHmZRqeZrfdigxy hORUEVKrYlwVYTYH41liiu5wW9SsB2Ezbh3mkN/zMeb4/Grug6Jv9K2V3JPGfK1+lXI7Q0INRo2 X5Vnl5ze9n2TtBSd1RFrBBdIMiCUaNvtRGzBDVpNJPazhXLfV1yH4t/wZefomqpGP53ErB5WQBU OuFczEFjRPTYG9+9ZKxT5olkt9sLD1qybpcl7hujY4zObNsH3d+BdWZFF3lOyg5V8L3d17wRrqQ gNNMqd+BMeDirtt9VAHL/DKwG7BQOASFkKAmb8m7c6GWCNVqMzQQUoB3HVjUmJLTHBZqXqHn/+t iuv0CFwwMLUryCG22Bf6q3jhJ0pyoPhxhuvDcHuELlFc+B/To1bJS1vkLwQtgyxw1ijQrrANd1Z Hu0BNtzAGLh3VQIt1dehi98Jvi17K7XWJ4dP/bpbX0OQB0b6KyyVJta6jRZXjucgf9m3S0en5ZD Qj4V+q+fnifnY779vEX4TDaz4LHU1gNY7fszLKPq/9NNmlGyAVLLWITalO01t3fzxwjoeiI6PRj yqteXxBVHnDUnmQGqodOcQ1Hp2SLEWkTQwhKHgi5ppgZo37EwX+VVc1gDJ9bTIwWuSFv1h0runq zyPoznFYDtvUFmg== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240828_023613_401063_5193DF57 X-CRM114-Status: UNSURE ( 9.62 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The core schema in dtschema already strictly defines contents of nodes with "gpio-hog" property (with additionalProperties: false), thus the only thing device schema should do is: define "type: object" and required "gpio-hog". Make the code a bit simpler by removing redundant parts. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Conor Dooley Reviewed-by: Linus Walleij --- .../devicetree/bindings/gpio/fairchild,74hc595.yaml | 11 ----------- Documentation/devicetree/bindings/gpio/fsl-imx-gpio.yaml | 11 ----------- Documentation/devicetree/bindings/gpio/gpio-pca95xx.yaml | 11 ----------- .../devicetree/bindings/gpio/microchip,mpfs-gpio.yaml | 12 ------------ .../devicetree/bindings/gpio/socionext,uniphier-gpio.yaml | 11 ----------- 5 files changed, 56 deletions(-) diff --git a/Documentation/devicetree/bindings/gpio/fairchild,74hc595.yaml b/Documentation/devicetree/bindings/gpio/fairchild,74hc595.yaml index c0ad70e66f76..e8bc9f018edb 100644 --- a/Documentation/devicetree/bindings/gpio/fairchild,74hc595.yaml +++ b/Documentation/devicetree/bindings/gpio/fairchild,74hc595.yaml @@ -36,19 +36,8 @@ properties: patternProperties: "^(hog-[0-9]+|.+-hog(-[0-9]+)?)$": type: object - - properties: - gpio-hog: true - gpios: true - output-high: true - output-low: true - line-name: true - required: - gpio-hog - - gpios - - additionalProperties: false required: - compatible diff --git a/Documentation/devicetree/bindings/gpio/fsl-imx-gpio.yaml b/Documentation/devicetree/bindings/gpio/fsl-imx-gpio.yaml index e1fc8bb6d379..6b06609c649e 100644 --- a/Documentation/devicetree/bindings/gpio/fsl-imx-gpio.yaml +++ b/Documentation/devicetree/bindings/gpio/fsl-imx-gpio.yaml @@ -85,19 +85,8 @@ properties: patternProperties: "^(hog-[0-9]+|.+-hog(-[0-9]+)?)$": type: object - properties: - gpio-hog: true - gpios: true - input: true - output-high: true - output-low: true - line-name: true - required: - gpio-hog - - gpios - - additionalProperties: false required: - compatible diff --git a/Documentation/devicetree/bindings/gpio/gpio-pca95xx.yaml b/Documentation/devicetree/bindings/gpio/gpio-pca95xx.yaml index 51e8390d6b32..7b1eb08fa055 100644 --- a/Documentation/devicetree/bindings/gpio/gpio-pca95xx.yaml +++ b/Documentation/devicetree/bindings/gpio/gpio-pca95xx.yaml @@ -107,19 +107,8 @@ properties: patternProperties: "^(hog-[0-9]+|.+-hog(-[0-9]+)?)$": type: object - properties: - gpio-hog: true - gpios: true - input: true - output-high: true - output-low: true - line-name: true - required: - gpio-hog - - gpios - - additionalProperties: false required: - compatible diff --git a/Documentation/devicetree/bindings/gpio/microchip,mpfs-gpio.yaml b/Documentation/devicetree/bindings/gpio/microchip,mpfs-gpio.yaml index d61569b3f15b..d78da7dd2a56 100644 --- a/Documentation/devicetree/bindings/gpio/microchip,mpfs-gpio.yaml +++ b/Documentation/devicetree/bindings/gpio/microchip,mpfs-gpio.yaml @@ -49,20 +49,8 @@ properties: patternProperties: "^.+-hog(-[0-9]+)?$": type: object - - additionalProperties: false - - properties: - gpio-hog: true - gpios: true - input: true - output-high: true - output-low: true - line-name: true - required: - gpio-hog - - gpios allOf: - if: diff --git a/Documentation/devicetree/bindings/gpio/socionext,uniphier-gpio.yaml b/Documentation/devicetree/bindings/gpio/socionext,uniphier-gpio.yaml index 228fa27ffdc3..36f5a0610471 100644 --- a/Documentation/devicetree/bindings/gpio/socionext,uniphier-gpio.yaml +++ b/Documentation/devicetree/bindings/gpio/socionext,uniphier-gpio.yaml @@ -55,19 +55,8 @@ properties: patternProperties: "^.+-hog(-[0-9]+)?$": type: object - properties: - gpio-hog: true - gpios: true - input: true - output-high: true - output-low: true - line-name: true - required: - gpio-hog - - gpios - - additionalProperties: false required: - compatible