Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp783476rwr; Wed, 19 Apr 2023 13:04:08 -0700 (PDT) X-Google-Smtp-Source: AKy350bF5eiBOjBmX4VJ2va0Znw+4eV1aOMkxq5x1lfakSK+8Mc7oBO/N9qXAMydMyR1PFDZxoBT X-Received: by 2002:a05:6a21:2d84:b0:dd:cae3:641c with SMTP id ty4-20020a056a212d8400b000ddcae3641cmr4178924pzb.55.1681934647784; Wed, 19 Apr 2023 13:04:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681934647; cv=none; d=google.com; s=arc-20160816; b=aJ1qUM8OioBYxQLuri4spT4zCk1a8E4NEZdnRgHnUNYtEd+Tji4aJbjRj9WknitIzK y49j1tpCh4RBc39qGjZ/chdJl9ag6mIFhWB664PVhG8G5h5lbnnOas4tRsde7sG2v++s P0NTk5DZdrFkR9b6Ocgm4XBgTGA69CEqnOxnHTEu2t0KLo2yAM5eBq1MUcoVLCyxsNDH eG15Y90y96VVkJA4vBpaHKx5AS3aDkKAe92qSkU91QFyuhu6ea62rSC9sVTB7fNojpNE yaIUrwdiwxJIfdlzlgARt6mZrPuQryeytmsiClNpjdEK4twAC7Sp1UItExpYqt4mhCj3 Igkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=QK0RzTuumCQC1t5HnO9BC42T80LLGoNo/wFWeG++m3M=; b=ZqTrOBWYjs+aCJ+ySC8j3xsNRa6hSW73vBoUGHL5cG+wl+VJtf14DYqAFDwHcRb3Nm 8nOutJb4VUPSDVcAqNGRDkURAz4hEVmW/vSgE/Z3ArWJ9TXpUOGWyU1Fap9SfRHiIwlE 0ybhHhWeB+f9zwrNo8mQpZ+r0deAUtbQvb9o7baeE1gvR9ghC6cnCuJ2lmhckw6euAfu y7cvpOEZOnfz7Q+BfpHmiDByFFjeYRY84BkbeRz3IXrZHYwrzcacSB4uy7085jj9/uYe U5evB8E8eqyM143vakaD+Oy8C33U0owSbJoJlq3rrRuqu14WrT2ZWxA7oIclopdIzbNv k8eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ebupDPWi; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c5-20020a6566c5000000b00521e4b138fcsi524050pgw.148.2023.04.19.13.03.55; Wed, 19 Apr 2023 13:04:07 -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; dkim=pass header.i=@linaro.org header.s=google header.b=ebupDPWi; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229755AbjDST4W (ORCPT + 99 others); Wed, 19 Apr 2023 15:56:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbjDST4U (ORCPT ); Wed, 19 Apr 2023 15:56:20 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A1CA19BF for ; Wed, 19 Apr 2023 12:56:19 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id ud9so1157615ejc.7 for ; Wed, 19 Apr 2023 12:56:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681934177; x=1684526177; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=QK0RzTuumCQC1t5HnO9BC42T80LLGoNo/wFWeG++m3M=; b=ebupDPWi6a9ZIyC9OYScjcl9eatEyGRZmZp7E4aMGiqDLtmMmpbrrFhuODPR1S5mnb pDalxeHmsroNgY70X6di0JfdJpn9Hg22M/6rcqi8K4k8CF8mRM8KrtsK+r4CETIx8Znq J3cm1AZGHsR3VWRa0ASbHjoxxGc62mt9ZkHwGJLJa4WrISCXEgFKXBjZu7l40v4Ae5d8 oLzslRBMW8EJ2U1hCnWpXFerRC2+SQYaBvZulj1A0JXxW+bEXwptjSJD6+RQSVTTHQUX qciNNcagu2Lp+PuPH5JxsPSfKsDnaKlECsVvDCrePC8lYKqhI4L+GF8fhHJ2MOfsM/hv I4VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681934177; x=1684526177; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=QK0RzTuumCQC1t5HnO9BC42T80LLGoNo/wFWeG++m3M=; b=G1tEGYyRqEHqQOUlpz8Gq0W2jJ0ToVc1WLHYB/CZ3RjPRY0Vni37qUACMU56TPwagb 8D8zuLPAnrwRsu97RKL9KK1e03X3mvv2X4RLrKX+DvIAXeCs2F8gVKxCcY4PsVH9Y0Sv m5+qWu9I6pNLMrzJXbaEzNqFROALdRT7Bp3ioD7xYKc/4HeqXmcap2f2Cn4hm3Qvrcml Oe+TipoqrXRl1Hu/tztaym0Sz0ZdMgWTHoc5gaP2t2ijLi1Vl7AduaT7f7ifqHsSkz+F MFlSjE6lEf1NdCWFNQ9A+pkMSWmD20NOiH60xCGX1q8C8gkQP0GQ6f6E9kYJtDa9Rxkq aWgA== X-Gm-Message-State: AAQBX9dSIFFcCvkN3T8Ng8zJrTtx4bYcQ8Fc2EX9/yowu/gsspgzcSP/ xywkPOXdIFdJYPB/uBQCvWLTfmJnobYcl+a8qzlong== X-Received: by 2002:a17:906:af63:b0:94e:6b12:caab with SMTP id os3-20020a170906af6300b0094e6b12caabmr18903719ejb.51.1681934177665; Wed, 19 Apr 2023 12:56:17 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:976c:1d6c:6ed0:8935? ([2a02:810d:15c0:828:976c:1d6c:6ed0:8935]) by smtp.gmail.com with ESMTPSA id tg10-20020a1709078dca00b0094ef2003581sm7797154ejc.153.2023.04.19.12.56.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 19 Apr 2023 12:56:17 -0700 (PDT) Message-ID: <9543f619-88fa-8e54-6e9a-4334750e51b4@linaro.org> Date: Wed, 19 Apr 2023 21:56:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH] dt-bindings: pinctrl: qcom,pmic-mpp: Fix schema for "qcom,paired" Content-Language: en-US To: Rob Herring , Andy Gross , Bjorn Andersson , Konrad Dybcio , Linus Walleij , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230418150606.1528107-1-robh@kernel.org> From: Krzysztof Kozlowski In-Reply-To: <20230418150606.1528107-1-robh@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 On 18/04/2023 17:06, Rob Herring wrote: > The "qcom,paired" schema is all wrong. First, it's a list rather than an > object(dictionary). Second, it is missing a required type. The meta-schema > normally catches this, but schemas under "$defs" was not getting checked. > A fix for that is pending. > > Signed-off-by: Rob Herring > --- > Documentation/devicetree/bindings/pinctrl/qcom,pmic-mpp.yaml | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-mpp.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-mpp.yaml > index 9412b9362328..4c3e9ff82105 100644 > --- a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-mpp.yaml > +++ b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-mpp.yaml > @@ -144,8 +144,9 @@ $defs: > enum: [0, 1, 2, 3, 4, 5, 6, 7] > > qcom,paired: > - - description: > - Indicates that the pin should be operating in paired mode. > + type: boolean > + description: > + Indicates that the pin should be operating in paired mode. Current Linux implementation uses it as a generic pinconf param pinconf_generic_params which is parsed by: pinconf_generic_parse_dt_config() -> parse_dt_cfg() -> of_property_read_u32() The pinctrl-spmi-mpp.c driver, using this schema, treat it as a bool, but I still wonder how the code will parse bool with of_property_read_u32(). Maybe it should be uint32 with value of 0 and 1? Best regards, Krzysztof