From patchwork Fri Apr 7 18:45:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 80973 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp478202vqo; Fri, 7 Apr 2023 12:07:21 -0700 (PDT) X-Google-Smtp-Source: AKy350bZNsJGwP4gdXjjJIwWP4QbTlTLR1FJhNjYdJ3mISDVuMs/wb9cc/Swm2zT6HIw00yJO9Id X-Received: by 2002:a17:902:e843:b0:19f:87b5:1873 with SMTP id t3-20020a170902e84300b0019f87b51873mr3882406plg.62.1680894441055; Fri, 07 Apr 2023 12:07:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680894441; cv=none; d=google.com; s=arc-20160816; b=GQb/X1T0LDFPNpeItACGCAyMp+cCFzyh0yt6hXy0GCH+bwrHiBnfdckTsJ6gVxR7VR GPuazhE4b9KTXpi7xwVGgD4zJK5AyUQkAE2xBgUKJuWHZBJ0z1wg7mP35NmPE4v3xHlz zB4WhU03Lb2EAeslTudk3olwovg29G1F52/6youBCChn5cdDG/2+vErfBkDclteqZxrg y5OjjcoJgb68DiibmVzn1Ur4L5QOFhMriupNQsGqa6xplVDmYg0s2/arqz2mmMA8Sn8E 6Lddboh4N/p+ABqhd3bFksV+dCS/VrJMy4UZ9BUQzNWY0RLpqJ9pIeqBMBmGklytgyt9 2WOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=SlcWNpIDljCKYQ0uG+lNZ1CczP0ZtpJ+/9NT0VAwYGY=; b=Q2FSp+r3Pmaop5+AatLWO53d5I1KNfAoMugjrJMVKZIwFut5fkwq1bBM+x5jXHzzzf W0sPk0thYv+c3gW69SaGRx4y0+E9kcVdi5taKfqUQ/33TEFqWybzUzH9Qx0edVjLz0vB FA94LnZim4gqPIDujSNYcfYmjvVXV0dY6nmf6q91ReGI34zke+iIa9kd3HPX8UVDlhsA GRHk1WcOLrnGoQ8ZnMHVouYT9YPKPe7F2yEUu14izMUC5jZO09rLfQ0utVTtUcwzc4KE f3lq9uLyQp/SBwlqVN0+ve20uKKBV9Aqsn5EMXA2spMNAtW7NTywFiYiuwLZm8qk74vp shPA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p2-20020a170902e74200b001a24779345csi4663691plf.141.2023.04.07.12.07.08; Fri, 07 Apr 2023 12:07:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233748AbjDGSun (ORCPT + 99 others); Fri, 7 Apr 2023 14:50:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233399AbjDGSuW (ORCPT ); Fri, 7 Apr 2023 14:50:22 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94D0AE079; Fri, 7 Apr 2023 11:49:03 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1C0E4611AE; Fri, 7 Apr 2023 18:48:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B8559C433EF; Fri, 7 Apr 2023 18:48:12 +0000 (UTC) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Stephan Gerhold , Shawn Guo , Melody Olvera , Bartosz Golaszewski , Richard Acayan , Vinod Koul , krishna Lanka , Iskren Chernev , Martin Botka , Danila Tikhonov , Abel Vesa , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 28/40] dt-bindings: pinctrl: qcom,sdm845: simplify with unevaluatedProperties Date: Fri, 7 Apr 2023 20:45:34 +0200 Message-Id: <20230407184546.161168-28-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230407184546.161168-1-krzysztof.kozlowski@linaro.org> References: <20230407184546.161168-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-4.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762545569453826504?= X-GMAIL-MSGID: =?utf-8?q?1762545569453826504?= All Qualcomm SoC Top Level Mode Multiplexer pin controllers have similar capabilities regarding pin properties, thus we can just accept entire set provided by qcom,tlmm-common.yaml schema. This also fixes warnings like: sdm845-cheza-r1.dtb: pinctrl@3400000: qspi-sleep-state: 'oneOf' conditional failed, one must be fixed: 'output-disable' does not match any of the regexes: 'pinctrl-[0-9]+' Signed-off-by: Krzysztof Kozlowski --- .../bindings/pinctrl/qcom,sdm845-pinctrl.yaml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.yaml index 23d7c030fec0..d301881ddfa8 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sdm845-pinctrl.yaml @@ -61,6 +61,7 @@ $defs: Pinctrl node's client devices use subnodes for desired pin configuration. Client device subnodes use below standard properties. $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state + unevaluatedProperties: false properties: pins: @@ -102,19 +103,9 @@ $defs: uim_batt, usb_phy, vfr_1, vsense_trigger, wlan1_adc0, wlan1_adc1, wlan2_adc0, wlan2_adc1] - bias-disable: true - bias-pull-down: true - bias-pull-up: true - drive-strength: true - input-enable: true - output-high: true - output-low: true - required: - pins - additionalProperties: false - required: - compatible - reg