From patchwork Mon Oct 17 09:45:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 3352 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1356610wrs; Mon, 17 Oct 2022 02:47:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM75550mmv4g42peBRxckCXh7Ia9lu1H5GIji73XvYO1wMGZeTjQ4sLkLCUmtSZHJjdqJap8 X-Received: by 2002:a05:6a00:a22:b0:54e:6a90:fbef with SMTP id p34-20020a056a000a2200b0054e6a90fbefmr11620542pfh.53.1666000075609; Mon, 17 Oct 2022 02:47:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666000075; cv=none; d=google.com; s=arc-20160816; b=p28rFw4/d2mXlH9YRoiXvK6mwosRbMkh33NaSb3UWzPsvRMDARm1hagbIYs6Ji130x mxPJn7evYbDOw4rzrGQqEncWDNbNgfZlTkTMkhm0G/907s1+engsQ2U8Gc1+0cuKAvgI LAaP32rHW9pOGF8lqwJIME9o0cNh2sdzYZwp1tW1neZsKbc9y93D0MCH/wzpf86aLUy6 AHC7HuenOmhT1TrNxIzQyc4wESJshNdYiJQM8yD55ekKJIC2VV97HCzjKUrfVGJ4SnSw 7qeObfcZwfhkdOTbElR5l6a9h9SHNrqXBH3xpMIBgXZoKvIdXHfG3pEVxBdGSzHPGKgp bNIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=pk+5cT4R+rjX7Iv2a4OPV6jhHWag3vklZMTyv2veMWU=; b=DsLlryt64OTt3ilhB9tLEGwaISikhHdFRHU3rZ09H9UjEpbE/MZRxl7eI5tOhPFKVU oGn0fgG7hkpah7qcFM6KgmwF5CUS7Y/Yz+LVpXP5d9OblRAMYvXyDjBTUjM3LcDsK2/K Qx26ueYdJCxQFymm/Eglr29/Y84XV7few25HSRh9gWgqGdhbKrHCkwrH69X8nX8Eukay TKtHAcAYXUVl/RW69s4yho8GkEd77/VPNlaUZyXzFWAgdbxytpnmgyv2WkN3Snbx+Wzf zJ9nrUU/Zh1O4etc0MTKW8jZRdMd6D323X7wRng5YsNFPkus78QLcNVVmTlpYWHoSq4h lF3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A+5KCveX; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f30-20020a63101e000000b00434bfa4c2d7si11871511pgl.317.2022.10.17.02.47.43; Mon, 17 Oct 2022 02:47:55 -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=A+5KCveX; 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 S231519AbiJQJqC (ORCPT + 99 others); Mon, 17 Oct 2022 05:46:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229916AbiJQJpk (ORCPT ); Mon, 17 Oct 2022 05:45:40 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59A6D4C617 for ; Mon, 17 Oct 2022 02:45:35 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id bh7-20020a05600c3d0700b003c6fb3b2052so405537wmb.2 for ; Mon, 17 Oct 2022 02:45:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=pk+5cT4R+rjX7Iv2a4OPV6jhHWag3vklZMTyv2veMWU=; b=A+5KCveXazFOFynAbsnosfvrlu0TJMZiNT3cXgUxoI7NgQLaCg/ZSPpOlhROZwUD1w oEPinChptvBL8RhQKQqFVNTrjJgMsfddVZHCQVIpH0ftWxTymJQVSZUZZ+H0u48cRsXV P5T+kcHfTKYDp6fvjdCS+XdcLC18/JFgUiDMma+Mm44YT19RJnDN3rBM5k9LERmGjspr lZj5UyCY81vmFaR8G3HI8Ebosnf+OkTixnKF6QVgeO1vzqDrxrSYXzWisqFmQwzf9i/u pQc83YO5fCkWHw4HWfAh4Q2kDsPtgPA2hQ7i8xnqEe3d6mQ5QbB5lQSRfzMSa+6qt8Bt IYzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pk+5cT4R+rjX7Iv2a4OPV6jhHWag3vklZMTyv2veMWU=; b=lJhswJPXiwfLVO3EgM16/s4xgyoK5j0+BgjM+3bEbw9L6bqDGqX/v9reX4NlUMmeWm jYz/lZTcHW1A5ft1wdDvVFM6o3nMiCROsf6zW7Sz9fg31ZvYBP4lisKJTbmrPaQdUuYr lKOjoQOUcefKaUgSiZE5uyh5PwiVWsDcYthPqjt32ADRblGfkl7TE1UCSccOu4ruIpj2 GKyR9EadTSqyYvHjKaDqECLyXpfhIfO59+kdcebvTSCitdh6hs+pJl7kmJR0dxILz2a1 Xupd13fIl1g7Nq0amRQwpR9jfUMLmgkO/po79UxX3bppGOHTci2FwSqLbKZNAVcN6UE6 KuDg== X-Gm-Message-State: ACrzQf0GWKlaFqy68pWeVnssQEKrhtTAfVpxYDKX0qIo/QaB4e8iVVZH PED+vIPNa9pFIKZcfx1hE7JGlg== X-Received: by 2002:a05:600c:548a:b0:3c6:fb49:4f84 with SMTP id iv10-20020a05600c548a00b003c6fb494f84mr616182wmb.153.1665999933833; Mon, 17 Oct 2022 02:45:33 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id d12-20020adfa40c000000b0022ca921dc67sm7824305wra.88.2022.10.17.02.45.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Oct 2022 02:45:33 -0700 (PDT) From: Neil Armstrong Date: Mon, 17 Oct 2022 11:45:30 +0200 Subject: [PATCH v3 05/11] dt-bindings: mfd: qcom-pm8xxx: document qcom,pm8921 as fallback of qcom,pm8018 MIME-Version: 1.0 Message-Id: <20220928-mdm9615-dt-schema-fixes-v3-5-531da552c354@linaro.org> References: <20220928-mdm9615-dt-schema-fixes-v3-0-531da552c354@linaro.org> In-Reply-To: <20220928-mdm9615-dt-schema-fixes-v3-0-531da552c354@linaro.org> To: Alessandro Zummo , Alexandre Belloni , Rob Herring , Satya Priya , Lee Jones , Krzysztof Kozlowski , Andy Gross , Dmitry Torokhov , Bjorn Andersson , Konrad Dybcio Cc: linux-rtc@vger.kernel.org, Neil Armstrong , linux-kernel@vger.kernel.org, Bjorn Andersson , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Krzysztof Kozlowski , linux-input@vger.kernel.org X-Mailer: b4 0.10.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746927694940965867?= X-GMAIL-MSGID: =?utf-8?q?1746927694940965867?= The PM8018 is used as compatible with PM8921 on the MDM9615, document this situation, and an example section to validate this change. Signed-off-by: Neil Armstrong Reviewed-by: Rob Herring --- .../devicetree/bindings/mfd/qcom-pm8xxx.yaml | 33 ++++++++++++++++++---- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/qcom-pm8xxx.yaml b/Documentation/devicetree/bindings/mfd/qcom-pm8xxx.yaml index 61bd0b3ce02f..84b87f01e029 100644 --- a/Documentation/devicetree/bindings/mfd/qcom-pm8xxx.yaml +++ b/Documentation/devicetree/bindings/mfd/qcom-pm8xxx.yaml @@ -15,11 +15,15 @@ description: | properties: compatible: - enum: - - qcom,pm8018 - - qcom,pm8058 - - qcom,pm8821 - - qcom,pm8921 + oneOf: + - enum: + - qcom,pm8058 + - qcom,pm8821 + - qcom,pm8921 + - items: + - enum: + - qcom,pm8018 + - const: qcom,pm8921 reg: maxItems: 1 @@ -52,4 +56,23 @@ required: - interrupt-controller additionalProperties: false + +examples: + - | + #include + ssbi { + #address-cells = <1>; + #size-cells = <0>; + pmic@0 { + compatible = "qcom,pm8921"; + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + interrupt-controller; + #interrupt-cells = <2>; + + interrupt-parent = <&tlmm>; + interrupts = <32 IRQ_TYPE_EDGE_RISING>; + }; + }; ...