From patchwork Fri Apr 7 18:45:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 80980 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp479613vqo; Fri, 7 Apr 2023 12:10:16 -0700 (PDT) X-Google-Smtp-Source: AKy350Z51nxlOW0DF2nbnPDLcFKuq6dBrammGQFetaqJyKVF1JUXEcvS3PNZ0VginbDYbD3NX3UR X-Received: by 2002:aa7:954e:0:b0:628:bf87:54c1 with SMTP id w14-20020aa7954e000000b00628bf8754c1mr3232917pfq.6.1680894615855; Fri, 07 Apr 2023 12:10:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680894615; cv=none; d=google.com; s=arc-20160816; b=jcx5QLv8Lop5oU6S5U2GyJ/tz7d7Z47pymBoDoEkimXpVINPWExbMINE8yLISsmJv3 GS9qCxIQT8Ok7ZpgoyXxVFzmb2Dlw3QgKJGSeDCQuwFQHvKvyQAkBKl+TlsJ1kljBhg/ WlSiQhVIufJLxKDbde7YxGM4yfC8KOGEarlpxb4t/lJZMSPrsBy0fwcccUPDTPBKhdQb k1HkCTO//7rPDi7tZFGWQyPupuC0IpIy4FzINVRqYAsFKpaxbswEYvNbM62NaUuH6ee8 mjBDCeNbSZ5kmzwrIuuzIVsUjCfC9zN3RqdDav4tLDUeBKNAQEMkVlrkd6ZeBuwu9bkl n/eg== 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=PGBMV/AbYcR4hJ9cGORKjJETqFc1cTzdaRQCyNWz7wY=; b=OTQpG04G1y4+Ek/KXPk0SDELspNYQJL6MEW5G86G0DVqdZrXia/mW1UvbXWNh9Ol/2 v2rxVeSYWth5SFn4Dpkoa3OkB+c8mzNm6i9zHFQut7e70Jp8qavuSDNDox1SgfljobGC GQqMkoEUMVONdCeePXlJDV62hhYEbjdKTVldqJsGIYtfYBYPJq1ACSAHQ3SBKgul6zEo Vk7Hsx86+Ra+koShqwDN5cpCcEup5g3tsB/CSpPOLgRa51y2WfhHQUTiVd7yeDMMCJgn +74irkFRTjlAcp7UBNiNfXUZHyvWamS6OPypGEUAPLzHut8h919aP5AXAO2A/xNROarF H+JA== 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 141-20020a621793000000b0062a46a30cb7si4213917pfx.51.2023.04.07.12.10.03; Fri, 07 Apr 2023 12:10:15 -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 S233176AbjDGStF (ORCPT + 99 others); Fri, 7 Apr 2023 14:49:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232727AbjDGSsS (ORCPT ); Fri, 7 Apr 2023 14:48:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9F2EC66D; Fri, 7 Apr 2023 11:47:46 -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 86E53645EB; Fri, 7 Apr 2023 18:47:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51580C433A1; Fri, 7 Apr 2023 18:47:41 +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 22/40] dt-bindings: pinctrl: qcom,sc7180-tlmm: simplify with unevaluatedProperties Date: Fri, 7 Apr 2023 20:45:28 +0200 Message-Id: <20230407184546.161168-22-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?1762545752815129824?= X-GMAIL-MSGID: =?utf-8?q?1762545752815129824?= 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: c7180-trogdor-coachz-r1.dtb: pinctrl@3500000: 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,sc7180-pinctrl.yaml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sc7180-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sc7180-pinctrl.yaml index f33792a1af6c..573e459b1c44 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,sc7180-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sc7180-pinctrl.yaml @@ -59,6 +59,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: @@ -100,19 +101,9 @@ $defs: _V_GPIO, _V_PPS_IN, _V_PPS_OUT, vsense_trigger, wlan1_adc0, wlan1_adc1, wlan2_adc0, wlan2_adc1 ] - bias-pull-down: true - bias-pull-up: true - bias-disable: true - drive-strength: true - input-enable: true - output-high: true - output-low: true - required: - pins - additionalProperties: false - allOf: - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml#