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: 13780998 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 E34CDC5475C for ; Wed, 28 Aug 2024 09:38: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: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :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=TTtjQVjS4FIg8YtrCrdR39FYCIyLe3+fF/iiyrU1D8A=; b=CDXTT6QdmJmrl4 dF8Q/K5TYUB2HrEz7XNi6tg7DqmcR6dR5emit8D5oqJzMGa5Gkp5lzpXDBQ3EDh3CSjOv1dhUfHrV 0cG22fGl/F4ySfOS3h9/b65EPW/r+DCC79UcaQO/HbTNg3tn/oW8ThDBT2vvdrkFeJw52dqVDRSKF nI7t+SY0Ocxj5xMZHm65oTkzqtOvrfoAU0uKD2f8UyK/SjbPO53PFxxngvqUJPl6rIOfVTl1EBFTl teIjEGEzV33Wt6syddUpVZqFQ3dePdyZoMU3rMKu2QPA7OLv1HyqaiTLD/KGfCVEtq/a9Mnr6/riV SkjA2UZW8v2+liaNuCEw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjF83-0000000Ekvv-0glJ; Wed, 28 Aug 2024 09:38:15 +0000 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjF62-0000000EkCP-0Gr5 for linux-riscv@lists.infradead.org; Wed, 28 Aug 2024 09:36:11 +0000 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-4280692835dso9228135e9.1 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=o9pjtuykPyOYHUZ5PgNQNtRpKzjmSRMzNSamzqqoDBkVTIfNc4gmzZDq3h1vGWYpUy YJ29Z6CTNaRWoJk2UVByORrGvUKbV7GJyLlvhcGkZBllo/sFIad6tYfVWg0b2X8Mhv3c pcN4ygzydprsFW3GmXq79zqY61TmDfDGJL1D1xnYy8lZZXPcsOgz13jaoOi+PlKndeo3 n6q7bTZkkCiY26MREoKPwu106a//1k25vz8a3Yh6BdqhZquJjiv9O5CdEm1ITYcviFc0 k7Wkk4Uy4SGX3b+7TBmpOx3PAfhBKiKn/SFfTwhuvxxgj6MvEJwpjygLKeJFdNpWFTRO tx2g== X-Forwarded-Encrypted: i=1; AJvYcCW+J09apQqjB0tI7P2KBTNFxB1LHvmjX6Je18XN/bIGRvPh1YksE+rnFTDyqP2qmZ3JN5MHZH11LIJRrw==@lists.infradead.org X-Gm-Message-State: AOJu0YwenfuEtlvLBZwGIeFdPd2j56JVhrFVvrinpAwRD7ER8qWsonyn LlWEyXjrp4+oaTX1NO5gdJ19RIH8+TJ9WpN4+BV0Y8yGatnLbudoSCyG1goo4GKa/f9MkLjHv26 I 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_023610_222891_B6DE8A24 X-CRM114-Status: UNSURE ( 9.21 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=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: 13780999 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 370D7C54795 for ; Wed, 28 Aug 2024 09:39:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :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=9B24IQLiW1gbe6UQrJsjiI/3PaxhN/T8GYZgVgiahFc=; b=ZJFb7/qWj+HyQj rQGx1Qvqjz+hgS/Mcg2XLd5rBRq8URAeWTNE0PRDp7+5w8aKQxhyyyEcptvw/VzhRpOrx5ysEoeBO TjmPSMo0bwvJ3fIM7g2vePm8WGbl54mzgm+JIGF9hsq14aP/t92I+m9RU1ag9yWYVWcDXMUMsBhIR b4iDT7Prbz41tnn0uTrZ7cnLpEIPfE+SYdlPgjCglbm743BitkF7z56kE04jmclC+gZeiMKL8uP4q V0kebRUik7MfRbM/945afgk+Ja9TOITYBU81vjW54n9CWrggCUjSY3wVhZuo8zZgeInDDgvdi54Ri +Y3Kj6YXuADM5T0d4MEQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjF8t-0000000ElIo-256t; Wed, 28 Aug 2024 09:39:07 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjF63-0000000EkDg-41OE for linux-riscv@lists.infradead.org; Wed, 28 Aug 2024 09:36:13 +0000 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-4281e715904so7284215e9.0 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=useQnFS2drOAElcG0ybH6VZfwXDW1rY2fqzwkJ0+OU8yudOVvyaPqnlw9BvMEkxSMT RVdvhzI+MIJ4OaRYphm0CyqhJr5SMr/F/C26wqW0ltTDx9dA7cMa6Yj19l+aSmWHZenM P9wPLufrCyKh2puGN7Tkc2G2T2Kk4/5lnFI2rquPJUVO78RT8ffBtNRKCiC+Yn5Eixcy X29W709Dk33TNFZ25v0q0qiXCC5wIUqPxvtA4trQ3xu4Esp92dWe6/wTQU1SJyJLlvYa aPAYKmoURDz649srATE+hLjqLLVhhAUjaXFrHmluLBRJVHqXNnIxel1k09gMItrKaZJ6 7izw== X-Forwarded-Encrypted: i=1; AJvYcCXnh0YFjXQpro4riIIg3yha0bxuu0s1Dop6LkPlsWa+9hQ2bOY3dwEgihDTtzlJPcv4FNRAnC0/p+lxuA==@lists.infradead.org X-Gm-Message-State: AOJu0YxZyrLFad4Py/scUg7pbisj2fTPnO5WN1+Z/cybaWM90YjybdEA buK6ElRi6/Caq/N3DyXSIyfNn8YLSJuUVsZFC36KzRr3HoT66xxkhm2awsO11JaGpPr6QOQHviN 7 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_023612_030916_854C38E1 X-CRM114-Status: UNSURE ( 9.66 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=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: 13781000 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 79DFBC5475C for ; Wed, 28 Aug 2024 09:40:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :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=UEcXSL1EL6RMFxOuLqbpGLuJa7QK3vX0JlicnPv1Pag=; b=2rZeuWdO3MV1BA AMSjfos0eVhxNvCTuEoI4dAqYkNmN4JvZMuVfSAIZBkaej7dzsGPzbpS5ebalVlbnMI98VWQF1WRD kDfAA3rs4/UP+zbeJoxS05too6TLM+znPoxprijsf12fzY4dS9ckaGspJWKQn0o2H+tXemgh3ow4h 0vmpYQ+PIIT67JqQcEJ0kiTQcVWsO+n66+iwZV1MczR+I19MOqPdrima20WBXjot7QWhLMknjDGCO vB4juY+0/413AJ/JET0QYP948Z33hMICw1NO5W4Qw4+qP4yPef6WDdZP+aTVT5radixZSTz9YBMuZ BS7URRUIzuzTeqshahlg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjF9h-0000000EldW-2ZIR; Wed, 28 Aug 2024 09:39:57 +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 1sjF65-0000000EkFU-2f8x for linux-riscv@lists.infradead.org; Wed, 28 Aug 2024 09:36:15 +0000 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-4280772333eso9255535e9.0 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=BGqNZX5I/lJhrC/758bPfaBfD1iYYg3CZuBsHEE2fJ5ztoCCfoRoDb83GTbPodi/hl PoqpkfPDqN3gdFSkfvCmnsJ8kM2idow5Xy/g4NR1W2d/4gTaYbZ6ZDJGfNLFINqc3j9P 22b8jaDo1xEqroDYfDxHBJsfAi3Vu7s+nQhwS155l6Wopf55/0m8bB+LTriP2cOWHx21 BfHLieeJuWH9pubADnlu326oSU033+GiNowfifPX7toRU0+H8xg+R2rRW73EUG+T97XT FySagumqFQldFLfD8QJY4ImBRNH9BuinHrPECRnkTvSPzbAfPRr2ZHBid2JrBNQdzmr+ heqw== X-Forwarded-Encrypted: i=1; AJvYcCU+qglxNfVQjaSfO87AtFrCpqyvssUdGzHLRcnSOLGGA3n7EwSZ5/F987HCTDfOIUWSlIJYfaZ/MZVd/w==@lists.infradead.org X-Gm-Message-State: AOJu0YzX05I1Yqed5PsZ6/7mnRV8YwS971xWpRQvYMsDXaiNHzJKCHFy zNLZMw9FH9HNmRKRfF350h3AZCpP6KqtzAEXiPbxgr2yMqwYggfW4KXUqtkaKbLoatuVTMJtk3D 5 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_702509_227036AC X-CRM114-Status: UNSURE ( 7.99 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=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