Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3768469iob; Tue, 17 May 2022 06:57:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0bUXXGwhf/CEzbQS6Rw6JCaznOoMleLeCbiX1eblJTXWnjBu5Hgk/IG936MHphgFpt/Hi X-Received: by 2002:a17:902:cac4:b0:161:7729:4a65 with SMTP id y4-20020a170902cac400b0016177294a65mr10543109pld.35.1652795852024; Tue, 17 May 2022 06:57:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652795852; cv=none; d=google.com; s=arc-20160816; b=pXCytTulw1Wc+IGPjpKHDm8WVhJX7SSlHa1cEIdw4GgUAnkXASCUFSc8WtXsPV0aR3 +xy01hZsfKkTdYmukGxHNHv/eUUXpdN1/BmMhgTbIujS+i/0hODgJESSqYOJwn3FnIjj 6kf356zW8ZQxUJ+ZzWkfvQohwqMu2v5O8lQmubtQR/xoSzwatlUs8/Vsun2LMSPB0A4q sNeGXsKGBrXsFgi3EXGkecOvZe0pk8hDACBw3atfjQu/RJqW82b2vS6khrTpFsHVO8sL +9Qvwgs178qqFQ6qIFwq8nRKlf9WP/GS2uAnGt/mtCShJ+s8jZYWdxxZhkRzARkfCzLR Ttlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=uM51Zcymw4uk08szgMKZErz3xEoJBdUgSYcbBXV2GbY=; b=Ed6LSXXf0meZg+fyDE8d2RX9gcNEbvvgrZ1d4/Hbq2IdUsjKh5XRDwp13kgLAEGfdJ 8woma8j71sxVxW0xq4RybVQPJv0ziupr7IGp3dDhxcfI6Wx/Gcddreld9a7DSsRsxe2x Z42ltsKDpFzW5Rl4BfTtBry3praaGWQX8qtOIthi5OVShiCKGJZ9BwbPxYoyiJPLSvDq ssC2n3FbW1RwTpk5rd9XMqUEdWAdvO28yCM9ZOJPOICuWus/KslsmOyv+tcE2lGcr4VP NvwJV3wWCa4h7tYqCNdPXsK92wN3aQ+NLj2JjWhONXjtKOoiDiPxph5jGQ+Mqd62paeh Uheg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pZfuPhwL; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y14-20020a63ad4e000000b003daec570c7esi18955697pgo.869.2022.05.17.06.57.18; Tue, 17 May 2022 06:57:32 -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=@gmail.com header.s=20210112 header.b=pZfuPhwL; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345358AbiEQLkk (ORCPT + 99 others); Tue, 17 May 2022 07:40:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240513AbiEQLkk (ORCPT ); Tue, 17 May 2022 07:40:40 -0400 Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F7223E5D5; Tue, 17 May 2022 04:40:39 -0700 (PDT) Received: by mail-qk1-x734.google.com with SMTP id n8so14283281qke.11; Tue, 17 May 2022 04:40:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uM51Zcymw4uk08szgMKZErz3xEoJBdUgSYcbBXV2GbY=; b=pZfuPhwLGJ9jCe30O2q0IX3kvPhgLsZPkwgxHup2DQgixUYZvP/SsfbaP6LP3TjhBL zYJtoxEXYWyeu5XmIGFr/pKFj1W+rHpuTgnxYtcATWMwS+tJGt9Bwocu720EqBGMdieQ HaJoyP7jdb6+W4tF8xMarVherM3a1rkQmcW4o7zvlUTxp9B1kRXM+0tagy9QmYF08yZi 208byjI2U8jlP/6Zy0V5+h4VWn1NngxtzKHm/7ELURGMo6m8x0anyJFgBS0iZauS16az ssLUgJwNUeXOFTyAdZ+VREOYIOJ4uVn42/eYRO+71TWGHyo9oRoYksLFzsDhBK6q9A+K ITnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uM51Zcymw4uk08szgMKZErz3xEoJBdUgSYcbBXV2GbY=; b=npWEEUoo2baqI4e6xXi2cUey4McAj0BoAqawmT7Lbts+EVF7kWAqzI3/eqF8xNttmD AtBtmAxvK+Ch7frZVgAA98LZpqiWUnDjamlVahyeWEQCjjMJ+yRQXcbgofdmEYEEeIsa KnhEBUVVBFzy+JpB/o3WlHxmONVf3ZzgU+buo4xbkdQuY9y1mMDkhseqwb1QbPaWPMga AiaWfvjF3Q9sy3lhCW0wMJMpny9oBUMgzJLGN+QyeIuTJ1kYGJfo6pPh7OyoULIQnv/u fLUacTT9FOGf+TQiXiEg41jESMrpZsVqCmqlsE9nVny80xGBPB2fO3o0o8P9Q4tyF3JW zHMw== X-Gm-Message-State: AOAM530ZNLta/T+D0RIwD+v3fBXjwBhQ6nYNZUsaDMXk5k/zMv9GIOuE b443VzAQIJRqKd6xpojGmMB5At1lPQVQze/3l0Q= X-Received: by 2002:a05:620a:1a01:b0:69c:fda:7404 with SMTP id bk1-20020a05620a1a0100b0069c0fda7404mr15931147qkb.522.1652787638429; Tue, 17 May 2022 04:40:38 -0700 (PDT) MIME-Version: 1.0 References: <20220515203118.474684-1-robimarko@gmail.com> In-Reply-To: From: Robert Marko Date: Tue, 17 May 2022 13:40:27 +0200 Message-ID: Subject: Re: [PATCH 1/6] dt-bindings: regulator: qcom,spmi-regulator: Convert to dtschema To: Krzysztof Kozlowski Cc: Andy Gross , Bjorn Andersson , lgirdwood@gmail.com, broonie@kernel.org, Rob Herring , krzysztof.kozlowski+dt@linaro.org, linux-arm-msm , open list , Devicetree List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Tue, 17 May 2022 at 09:26, Krzysztof Kozlowski wrote: > > On 15/05/2022 22:31, Robert Marko wrote: > > Convert the bindings of Qualcomm SPMI regulators to DT schema. > > > > Signed-off-by: Robert Marko > > --- > > I am aware that syscon alone is not really acceptable, its converted > > directly from the old text bindings. > > > > There is also the issue of some MSM8994, MSM8996 and APQ8096 devices using > > '#address-cells', '#size-cells', some even defining reg property for > > regulators. > > > > Any advice on how to solve these issues is appreciated. > > --- > > .../regulator/qcom,spmi-regulator.yaml | 176 ++++++++++++++++++ > > You miss here the actual conversion... where is the removal of old file? Hi, Oh yeah, sorry for forgetting this. Will fixup in v2. > > > 1 file changed, 176 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml > > > > diff --git a/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml b/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml > > new file mode 100644 > > index 000000000000..f7da310f1845 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.yaml > > @@ -0,0 +1,176 @@ > > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/regulator/qcom,spmi-regulator.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Qualcomm SPMI Regulators > > + > > +maintainers: > > + - Robert Marko > > + > > +properties: > > + compatible: > > + enum: > > + - qcom,pm660-regulators > > + - qcom,pm660l-regulators > > + - qcom,pm8004-regulators > > + - qcom,pm8005-regulators > > + - qcom,pm8226-regulators > > + - qcom,pm8841-regulators > > + - qcom,pm8916-regulators > > + - qcom,pm8941-regulators > > + - qcom,pm8950-regulators > > + - qcom,pm8994-regulators > > + - qcom,pmi8994-regulators > > + - qcom,pms405-regulators > > + > > + qcom,saw-reg: > > + description: Reference to syscon node defining the SAW registers > > + $ref: "/schemas/types.yaml#/definitions/phandle" > > + > > +allOf: > > + - if: > > + properties: > > + compatible: > > + contains: > > + enum: > > + - qcom,pm8941-regulators > > + then: > > + properties: > > + interrupts: > > + items: > > + - description: Over-current protection interrupt for 5V S1 > > + - description: Over-current protection interrupt for 5V S2 > > + interrupt-names: > > + items: > > + - const: ocp-5vs1 > > + - const: ocp-5vs2 > > + > > +patternProperties: > > This goes just after "properties:" Will fixup in v2. Regards, Robert > > > + ".*-supply$": > > + description: Input supply phandle(s) for this node > > + $ref: "/schemas/types.yaml#/definitions/phandle" > > + > > Best regards, > Krzysztof