Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4673440iob; Sun, 8 May 2022 21:29:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQAVZHI+xEGWRcg7O7HxZ1UlZKj2pC4n2QPgbuyM6j5IAWUYQco82RzHLRgyQYLrkFIQnp X-Received: by 2002:a17:902:9b93:b0:15f:17ce:3b97 with SMTP id y19-20020a1709029b9300b0015f17ce3b97mr1487784plp.174.1652070552597; Sun, 08 May 2022 21:29:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652070552; cv=none; d=google.com; s=arc-20160816; b=IawJDft7JaxEBe9cPa3g3O6TC12f9YwQSaQvyoUr9Tqub6WsBGZekB/4feNSe08KaF ZjfUjGnvTGgUJj+Qq87nsyNNIXEMN1m3Nxvfb06rg9gkQX/kuoTlsoKq4BbuZLhFae3k zLjMmWj+ExGSmAi3yVhH0Yeb8qeFdV+MR40OJvN2LLNSfzzIZ5I8kujhYyr2becpgbUS 42c3RXGsEb0LehrAuv0vfak6LOxj9Z0C+meCLsLDLVyjVCk1i9iA2YU7qYR5mJzu/v76 9pFmApJd+e9eps5xGVTZgM2fSF8CoBnwiFFLgW0FgLLexbpCmqbjm3ROP1XqrRG5/MT5 E2cQ== 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 :dkim-signature; bh=Kw5YZ04RaC5TF/c9OWgq1MFTANMDOhl3ugmuJ0GkdcI=; b=T2qmczpQ1l14qJe2C3yDe6h1LqxFj0AT/b2lvenRY5y6UlSrNxQioP4v077zKLTu5r mZ3gHGXFPs+OMOZVlAh8HBV6Uik1ALrnlcpauj1BlQHFNxobQPeJJmGlpjhermvNEB1u volOUh6TBs4OBot8OWPQtUUO7QsqH9lXIZVYEKuFVaZ0H0RvZ2iRubU7FFG1xnHtl2gg Na2yL+DofUKc9UGZ5CgiT1dlTEP4VbmNTaZ3V1UW1uK6fPHTtYO44EVCNWGKhwnLuWk2 TWJNMxxR144eD/zjCfPK8YLVgBpWMiJ2QGAJiD+9CNi0e7uiBRS34KVV1th+vKZ1kAnA p4jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kiLkhgPG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id nd15-20020a17090b4ccf00b001c68e9e0e68si20833846pjb.36.2022.05.08.21.29.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 21:29:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kiLkhgPG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6ED3A120F66; Sun, 8 May 2022 21:28:57 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1446992AbiEGTxa (ORCPT + 99 others); Sat, 7 May 2022 15:53:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235918AbiEGTxN (ORCPT ); Sat, 7 May 2022 15:53:13 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99B0317AB8 for ; Sat, 7 May 2022 12:49:23 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id m2-20020a1ca302000000b003943bc63f98so6197214wme.4 for ; Sat, 07 May 2022 12:49:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Kw5YZ04RaC5TF/c9OWgq1MFTANMDOhl3ugmuJ0GkdcI=; b=kiLkhgPG3EQK79wFbKkwcwQhX1IicdWu1W9AaDqwA/+aeK62c9WkU7Xcy9HhCR37ZI Z6OtKg9AaD12A/L/uaRlweu9JyE0Lpwd0NpyAqm6yzMfHIZdtXdl10697LLT8QheB5Kj 3rqYHQc3V+23g2RjBAjlg01L0ym0RjpwalB1RzfO/gCKAOKdO0opVVhwC/xn5/XOY3Dy seWpVf3t4poy4RzrIAXSLFdYpi2QiwZXPxPMxVWFDRH8HUMZfRUrR9m5hudeQ6z/KX/z Z3/gGAfTxpoBVtplPT4NXgXyxVKp2GseJ2e7sMNVcq81blgMJxyUaYf0GQzK4vYxivEk M6OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Kw5YZ04RaC5TF/c9OWgq1MFTANMDOhl3ugmuJ0GkdcI=; b=zXCl30vlk22U01uKW1Tv4K6G6uxUcg7Uto2MutW+wZB+UUga4/K/d8l7Ixv6e55XlO JAXE1YVSpa7vkQLvWqs61jdxo8uPgXL89VYqZpJFlohcoX0CcRCTr4m+1P6Fn+pWT2hc zXkHR6kNt71OAU+F33q8jLkdONiZe6DP+r1LKchdk8959sADCb7yBc9dFWBIntRR+6Oo vfXSW/1pATOyjD08T95Nrtbub3DQpeAG6gKiPZ/g2PZsaN2FRRrWT09LBqOmC8schcjz 6Z3f4S9R1Vwi6YK/Of9dAWkxWERj9T/fB1jU6i0TSqC4JRHaXjU9Rob6h88qecIIHRN/ 2zEA== X-Gm-Message-State: AOAM532TIqlDZoBC+twGwRaM8RNdbLTj3dqd03sO/C6riL/vfNkAynDN OlN4rUtcoDb+aCjj5RinlMCrLw== X-Received: by 2002:a7b:cd97:0:b0:38f:f785:ff8 with SMTP id y23-20020a7bcd97000000b0038ff7850ff8mr15332104wmj.44.1651952962001; Sat, 07 May 2022 12:49:22 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id j6-20020a05600c1c0600b003942a244ec4sm8535027wms.9.2022.05.07.12.49.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 May 2022 12:49:21 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Neil Armstrong , Stephen Boyd , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Luca Weiss , David Heidelberg , Konrad Dybcio , Krzysztof Kozlowski Subject: [PATCH 02/11] dt-bindings: pinctrl: qcom,pmic-gpio: fix matching pin config Date: Sat, 7 May 2022 21:49:04 +0200 Message-Id: <20220507194913.261121-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220507194913.261121-1-krzysztof.kozlowski@linaro.org> References: <20220507194913.261121-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Matching PMIC GPIOs config nodes within a '-state' node by '.*' pattern does not work as expected because of linux,phandle in the DTB: arch/arm64/boot/dts/qcom/msm8994-msft-lumia-octagon-cityman.dtb: gpios@c000: divclk4-state: 'oneOf' conditional failed, one must be fixed: 'pins' is a required property 'function' is a required property 'pinconf' does not match any of the regexes: 'pinctrl-[0-9]+' [[2]] is not of type 'object' Make the schema stricter and expect such nodes to be either named 'pinconfig' or followed with '-pins' prefix. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml index 23d6b9165e20..c266aa3f05c1 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.yaml @@ -95,8 +95,9 @@ patternProperties: oneOf: - $ref: "#/$defs/qcom-pmic-gpio-state" - patternProperties: - ".*": + "(pinconf|-pins)$": $ref: "#/$defs/qcom-pmic-gpio-state" + additionalProperties: false $defs: qcom-pmic-gpio-state: @@ -237,7 +238,7 @@ examples: #gpio-cells = <2>; pm8921_gpio_keys: gpio-keys-state { - volume-keys { + volume-keys-pins { pins = "gpio20", "gpio21"; function = "normal"; -- 2.32.0