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: 13780973 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 6022F166F33 for ; Wed, 28 Aug 2024 09:36:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724837771; cv=none; b=eORsB+MSJ4wyQIwfUuGkdzTfz7IMcUvCHmH3VGkLSEi/SZW2gcMgBZe/i4bShtTS6xk37bEm7kjFzBaksFMV1FHlkKNma5xKt9Tawumgtvd2fdzSHfarBfkyQY599gp1on1+VMlBrLoKcQZhHBq9XCR0Nif27Zu4RXJWSSZ4mbk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724837771; c=relaxed/simple; bh=kIOSKTwBhCJNE2xIsjLzrlpi4h7Kklqz+lUuDimv5hc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CmnpZyGAQ4LXubnrRCC2ylMy5MQYe2TG5/0T7Imy8LqOfG10KEg+0pXID7UWdJ8HFwhwigWrf/MQmwv+DMBLSjHS9K84eFzgdjOWKjcSAZTKgos+HJJ8zGfmepfVf8lRhqZ+j8GgDUS406jGpJUJbael4+X34A6L9g4wCtXi6Rc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=uNpDDIDg; arc=none smtp.client-ip=209.85.128.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="uNpDDIDg" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-4280692835dso9228075e9.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=vger.kernel.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=uNpDDIDgie9oXdHelEwah/xJEwmTXmBOsvtCfa+dv8Xkp4aSJ+ysaGH3j59FZUEf4d +wTokVCmAkqZaeRiWTWh1UeiC0MqAdtRsaBWuzYc6YImggWu5biVqgmE+WeTFlxsRGw1 Ua4sQFrFWyoIXbIm4bFb/3vNVOpFUX2sNiteyfplX2iQeFC1UF0Su0lzQHw+h5RdZHwo qT6hQ53T6rA6KASN/jTMxSksr/F9pyJy5FJ4zup2skNIgouVJH/V2GoXjUYLkoTyuDKc JsreFFyPmie42ipY/aJApZa7j3dWTSc8ZQYNRb4h1m4/cMQxwMJWbPNr2UWZ7TTyiIaq FWEg== 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=K6uQ/f/e9tUvOu/yE0AIyxALhpbMi9DEn9LViKwiQsLuR/KhIRRxp80mBJAnmuema2 fK1zh24Ja9qiSklCyxq9fchwiMaTC/W6iC5hGsHqShl/qCviWbWmG53py8a654eyOcyV zo8pevwV2yQ/yozcCVC5MW/n6FPS7P2e4BYXhQZN3rsIQ/IK7sAXErx9ci4EmkLE7yGX 3gq6H6rqVxVcrTnp9Q6rRMu8kNOzTlMvyEu/FfwKbMoHLDYFpGPteWNgXVzT5FUmPYkE 0Bdr02ZQrNrW/mOtHvONpX3qotvl4e1WNtFfjv6LJfmLFnl/jrtv7zBKNuKwR2ccx9/0 jv9g== X-Forwarded-Encrypted: i=1; AJvYcCX3hyZMt+QOvczh0a5ITzENlc6J064MNRlOQU5S4W7mgbOKcAS5xeuWahXt2PM9S0Rif2/TtOR0C1HZoZiV@vger.kernel.org X-Gm-Message-State: AOJu0YwseUB/o5tdeyh5YWMahmeTXWDwAOG9P++ZvDCzUuOELhMtUKa7 bXxXCs1yUpKoKeCTJW5J+ziBPjS5vpomnNlc951eF2XVgamtKVqEJdiLxhqMH54= 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 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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: 13780974 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (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 54437168486 for ; Wed, 28 Aug 2024 09:36:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724837773; cv=none; b=CVdbvSlxcDKZgWWYYVKx4vvV4pJF+an7UI9EvW0jcpdbgwTCEu6G7yqLEFUgCb29zaRq/NVIIpGdql2HlurXUl/Cra3H4j0xuvFcjRCQzo9isHZPA2vbpmhFM/gsEwbBNesdIWdleUOW9rFZhEUtOpuAHKQeRolaznfPS73eGh4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724837773; c=relaxed/simple; bh=zQ/EAttBpW9Q8AXfVWlgDx0v3eHjsl+TU739HvihRfs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZcgME4870BDEtdnWB7O3lXyrp8emNlznM2+DCWuFQ7gAFTxf1gOJMC1RRTEUuWxpWI07M5dRERRnkuDNcGTTCj5zDL55maCRWQYsEnG99YXZ52sM5I5IjOANLr5jujuaG42myZpc8IuRZpt+NR8ANFu5a+30jOTmxmWhlPDF6v0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=RTMgkFkB; arc=none smtp.client-ip=209.85.128.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="RTMgkFkB" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4280921baa2so7262585e9.2 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=vger.kernel.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=RTMgkFkBd8OJvVJ4VGf1urRoEIIYpgrodjqUwW4fVJ3RKS19wKbjgrmr6C6I08N4hH i/d35PjIVzkOOYbq3VIN+LW48TUel0KSGlHX50FIf828qVMYWZCg29wUCD8ElP2fWIge zXoPmZiS9cneWu46B7jw7hiBL9gj+6c3MK3vwuB0BlU4VOIByLvgHUad7gFweOn17Q5v EZ6tWakFtaJlaWiJwQgadSLoNVcQYd0zV9pApjMlr8dF0e9zmh/WFGXLnbs4HE0QScJi NYiyTaCm04U+v5HVzAIY5z9lDjIXgk8RDnsasKxNd5KOinWYpW8ZcRfcVnfeLbTp0rvT hJCA== 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=dxLNGfUJ0RXx1p29oY6bglAteMVrDSKj/vCDmHteVc4FzezKIs1tORVhi0yPALzhC9 Zxh8LER0+9hqsSvDg19ZwXlm3CWhYZAnuswhehfwAKQA8ZZm3jnF3Qsb/o+DuYudWhRK fPhUNyHglL8m1NryjXsEpJ83xj3F414WoJypxVkn/iDh1TGF/NybdvDmtMz+zMvrmnSG oTovox2sHo6OGKKxMEXyAr7jxSUWMKmyI83pcMzIOQ9CpkXORyr4FR9gcSX7ZCEfYsTs 9i83WvSMJujF0mQduYAcLDxXX2Zo4YIjk7eGRFWTz6jqxNBVshGTdjcyTGZP/Tkw1a3e LHCg== X-Forwarded-Encrypted: i=1; AJvYcCV39kzCmQb50019Ao5fC5LT1E37kOyGP3s+ATJbICHqqIgti3nR3ftQk97EBDIvvn60TBzwuQ92XNRHrgZa@vger.kernel.org X-Gm-Message-State: AOJu0Yx+Evsp8hXz0brUnD7eJC9t/oXMLh5A4gRsxYpwU039W7XQPNS8 YvhuyKXrNQbYr1k22T5FRP1c3l5qmwOiaabArsg5dYKU1G1SZPpjBoZaT3CFEHI= 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 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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: 13780975 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (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 7CA6416A956 for ; Wed, 28 Aug 2024 09:36:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724837775; cv=none; b=thT1h+v/PsLVJ/fJkmi0sjgezE5bUVRac4y5sqCPFg7S2VZz1lv9XfW2FBMh+jIQYSez2XCQIpZdVWj+msV1AXcCJR4eO4v9SYQT2/yCgoCQXcN0Jrd8cLWDI9GjbFygS2kj+XtusUWXPSrT+5JOy20I3HRwjuAkDBdwIdwcI8Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724837775; c=relaxed/simple; bh=bfnqlyzaJpLrEgkQnghSy/QuUGq8pRc27uQrIneNjNU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=MGq8ZNK93vtQw5V99EyigP6cGBHI89MOhZDlZaBkoWKa0C//Cjc6pInj3jJJgxYrPys8yvj4awez8y89AHkwZS8nG7YFU7m33UTOdT1vy2j3e3Tg5whgDMYu64HSZKNebelVRB7X6ErFhSnBjjD0nBfSDIZKgCWoRgjtwvMTyB4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=mM3/DWTz; arc=none smtp.client-ip=209.85.128.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="mM3/DWTz" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-42808a69a93so9210715e9.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=vger.kernel.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=mM3/DWTzJUBRjP3FbnyUfqg1wzvld/KhUin8/X8fxABJuehqz0eDN8zeUlmCf8BMBP KsTyPGzA4dX/5pR3HbP0ca7tAKaLJPVlWLPXhx7pZKs5z51IWmLSbsv14smo28kB6Ccb oXJ5ZXFfpWEDjsXJrnTmCLyqB/XKMRkvamOJQZbXK6GFx/m2cw7K6vjkErjUHh9+zi8m 4ic6FPBFskutEw/7qTO8mi3xLUFiQiEpMWr5YkEEVdD3W916C0jZZO5Xv6Qwb7oZOYNa jiw/moBmf6Ch93qBmo/+jfvnnxp7yyeknHU/yTwD1+RprwHpR78jIrMHkfCwUtQIsmu0 eoWQ== 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=WwfmQNWqUdbVODFe+dA5YK1JaUsOqDbN0JrM7LRJ9EOt6gmdANLSPzj3ZlPhHTdFNo 2v0TX1r8FQvmR3NA6+cWpMo5plFK+/UuKmMizynMT/c66pZ3oSZlyFhr9bTda61ubLeX IVE1jwO0LM4LxvWLZykFVmhmp6etiBbeeYEurOlvexrcnA9kQErGW7kqc6p7zddU/rHv P1xAcbBfZYLg8jfixwyZlrKZY7QCRKwlnO3sqlbkRDzbihnclZZzq2vk8PwLYbn4sB4S fs4zxm2dqH68r/z1drxjtRr8IsT9VC6SRWnHryT1tR4ZOINWNkDab1kX/A79V9DocZU2 U0dQ== X-Forwarded-Encrypted: i=1; AJvYcCVD3YxipfyerMlEYn3dIoOs7u1XyMO+AvXXOJSD7Wm6hhpYs+3Gn/Gy4xGonIR0NYG62E16rrZVXRSFysVz@vger.kernel.org X-Gm-Message-State: AOJu0YyROq7HG8DxYB+fVvf+9a6MXGdK+k4HBQJhA5WK9d+uMisGvx1i ytzx+ZS4MNUCI0E4LY0eqWTA2ZvS89crM8lkmNiAIqluRnTq0nP6IkXYa04XvR4= 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 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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