From patchwork Fri Sep 30 21:20:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 611826 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BAD46C43219 for ; Fri, 30 Sep 2022 21:21:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231487AbiI3VU7 (ORCPT ); Fri, 30 Sep 2022 17:20:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231515AbiI3VU5 (ORCPT ); Fri, 30 Sep 2022 17:20:57 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9853515D876 for ; Fri, 30 Sep 2022 14:20:55 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id a10so6108303ljq.0 for ; Fri, 30 Sep 2022 14:20:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=lhaby7j3gERoVvr8BXESs3foezuex+PKOYwtRxR26u8=; b=Ta4Ew9QmLExdVhpudSWIjNC/U1PChC+pYFw0LVmKXnPWrkXgnLwkxdkXENsiY0dA5K y7dth3+Tu5xWxr2X4F7M3BtxyBMY4Aogt7UIjqgq+K3yYXCLnkQy8LjxsxTXLrrtJfyU O2MAhVFkYW0DgXzALQWjAjyCzycWgv/PKixT/kYIXUDZPbHIavo8HUBY0tYiXdxhaN8e XeFdIl/7Gdfxe5t/Y0ZoiFyl//lPaqQYLlkkK6AYW8q5C0t9tCo3yXwhiJXqlDtkY8If GKEdndf6m6LKu+BDhIgmhKwaOYh9KIs0ZwhKc+rrZ5Mt51Ioz23qBY1liEkyUFxblBXj +ZbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=lhaby7j3gERoVvr8BXESs3foezuex+PKOYwtRxR26u8=; b=oQre3P6wkMOjjhw+dcQWW5D7/2/LlJ6i2Ktj9OOXgPr68v24XrVONUzXc1pnRJWcPv Jfc3HSw8DW2E5Ed1eHkUXOVKelMpGstJKPrDSW1O3l2bMb1qsPUa9WGQ5pNIJwPgd44V 3iJeRslsOWS4ildY4CHioLb7wzEhHnsmNrsgIgg5bGZAWfyQMe/Q+65dwGQHikYgaWw3 Vn+YIMELzm84AFK17RvslwUNnT2uPo6IXmz5P6ER6J4omsn0dXSipCmjryGVsuYKeHgj GLKeQ8KXqCMa8XLq92gk0S7CSGTr1c006f2URgf9aRTUxT+JjYk5K8z/IWk9WayNCNcR hEng== X-Gm-Message-State: ACrzQf0r78w4l9qxFuaheRIp4fhWGJSpDWrivxmwfxjJMuvsp7Reqnjw DAxHpol9owNBS9Zs8knoLdde9w== X-Google-Smtp-Source: AMsMyM6FZkLuMhoJIGt8dawyL0w9IjpBg/Rx39NHvGI7cCWBTqb8zjudGOGMSpfe8i16QP43mmZnDA== X-Received: by 2002:a2e:921a:0:b0:26c:1166:6666 with SMTP id k26-20020a2e921a000000b0026c11666666mr3424180ljg.128.1664572853857; Fri, 30 Sep 2022 14:20:53 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id b18-20020a056512305200b00492dba3c85asm431397lfb.220.2022.09.30.14.20.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Sep 2022 14:20:53 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: soc: qcom: YAML-ify SSBI bindings Date: Sat, 1 Oct 2022 00:20:51 +0300 Message-Id: <20220930212052.894834-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Convert arm/msm/ssbi.txt yo YAML, moving it to the directory with SoC bindings (soc/qcom/). Signed-off-by: Dmitry Baryshkov --- .../devicetree/bindings/arm/msm/ssbi.txt | 18 ------ .../bindings/soc/qcom/qcom,ssbi.yaml | 63 +++++++++++++++++++ 2 files changed, 63 insertions(+), 18 deletions(-) delete mode 100644 Documentation/devicetree/bindings/arm/msm/ssbi.txt create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,ssbi.yaml diff --git a/Documentation/devicetree/bindings/arm/msm/ssbi.txt b/Documentation/devicetree/bindings/arm/msm/ssbi.txt deleted file mode 100644 index 54fd5ced3401..000000000000 --- a/Documentation/devicetree/bindings/arm/msm/ssbi.txt +++ /dev/null @@ -1,18 +0,0 @@ -* Qualcomm SSBI - -Some Qualcomm MSM devices contain a point-to-point serial bus used to -communicate with a limited range of devices (mostly power management -chips). - -These require the following properties: - -- compatible: "qcom,ssbi" - -- qcom,controller-type - indicates the SSBI bus variant the controller should use to talk - with the slave device. This should be one of "ssbi", "ssbi2", or - "pmic-arbiter". The type chosen is determined by the attached - slave. - -The slave device should be the single child node of the ssbi device -with a compatible field. diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,ssbi.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,ssbi.yaml new file mode 100644 index 000000000000..6154f7222899 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,ssbi.yaml @@ -0,0 +1,63 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/soc/qcom/qcom,ssbi.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Qualcomm Single-wire Serial Bus Interface (SSBI) + +description: + Some Qualcomm MSM devices contain a point-to-point serial bus used to + communicate with a limited range of devices (mostly power management + chips). + +maintainers: + - Andy Gross + - Bjorn Andersson + +properties: + compatible: + const: qcom,ssbi + + reg: + maxItems: 1 + + qcom,controller-type: + description: + Indicates the SSBI bus variant the controller should use to talk + with the slave device. The type chosen is determined by the attached + slave. + enum: + - ssbi + - ssbi2 + - pmic-arbiter + + pmic: + type: object + +required: + - compatible + - reg + - qcom,controller-type + +additionalProperties: false + +examples: + - | + #include + ssbi@c00000 { + compatible = "qcom,ssbi"; + reg = <0x00c00000 0x1000>; + qcom,controller-type = "pmic-arbiter"; + + pmic { + compatible = "qcom,pm8821"; + interrupt-parent = <&msmgpio>; + interrupts = <76 IRQ_TYPE_LEVEL_LOW>; + #interrupt-cells = <2>; + interrupt-controller; + #address-cells = <1>; + #size-cells = <0>; + }; + }; +... From patchwork Fri Sep 30 21:20:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 611022 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 190B7C4332F for ; Fri, 30 Sep 2022 21:21:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231719AbiI3VU6 (ORCPT ); Fri, 30 Sep 2022 17:20:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231487AbiI3VU5 (ORCPT ); Fri, 30 Sep 2022 17:20:57 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 193B1165107 for ; Fri, 30 Sep 2022 14:20:56 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id x29so6074106ljq.2 for ; Fri, 30 Sep 2022 14:20:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=h81yVJyVfQZQpM33TkOO8Nwc9//kamAbFBsl3zmnHfw=; b=rjZxmluqBhEmOxi7pOrXJuNslOGPyaWvL5Rbc0+vYF6LiCnreqbwL8KW4UG1g/7L74 myQPg8b1WM7DAds/0Xr9zIvl2PzIGyzbYnLU5Fk8JFRz2qVwhmlG9IQgcd96en125nOB Oa1tNPg4bI3ncWsdIlb5QAwfQKYOpVbqzZFwOInC673q4AfKewCjo3W6jx6dUiwqWUQw OnH6Tc7zSG5F9PWMX7ON+HikIlikEpXXUzHmfVbtIZ9pTTe7livpoh5NChqjYYKv3YQN lG74z65gIlwxE3aj7U4aQu9ZkbhzFmS0n7k+ajl5DwyIAtit4wcmNPH8Vjcr9PC5zTae 4Z8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=h81yVJyVfQZQpM33TkOO8Nwc9//kamAbFBsl3zmnHfw=; b=sm4WhEnqwPg5QD9PFrF5n0gLXGX3qSv3eeRg10Ia+9TgrYrBG9Dg8C7EjxqeKEncsQ +mTmoe3Be0XEdqK6iTxX0pM/mFSY4vSDi8joNd2jeBMQkRCKOeJ1prjl+mXbaeJHlCJb msWWFRLU/evu32I9BNm6Z5lKCsxFie9NBWM5mmkm1SobmbRor463YiNcFeny7ZDhIWOL 0kVv2Xlk9+KvtxPc6OwBVvU2GsEx0cYQVGWO5hYQ0OQhNgfGSrgYISSqGSnBesLlVB65 Ci/a6K7L5toPFGNnNBcAI2Bi32sjHDDMwcMNqRp8v2o/RmmnKFl1sCaA1jOMNnDZe0p9 88ww== X-Gm-Message-State: ACrzQf09UVhWc59SCUtTiPII9Z5/2kKz7oYGGS0o9RR8K8J74C+DxNPn 5qhg4LAtDgZ3yZJqAm0NOKXoNw== X-Google-Smtp-Source: AMsMyM6lTZWCHhd/wWgGR96jRfRIx1r6aIIMUDiL2GHem2kuHgDxdoo+d+ZRFEGzbIefRkCirBrYiA== X-Received: by 2002:a2e:a5ca:0:b0:26c:1dfd:8f5b with SMTP id n10-20020a2ea5ca000000b0026c1dfd8f5bmr3269783ljp.447.1664572854479; Fri, 30 Sep 2022 14:20:54 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id b18-20020a056512305200b00492dba3c85asm431397lfb.220.2022.09.30.14.20.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Sep 2022 14:20:54 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/2] ARM: dts: qcom: mdm9615: drop unit ids from PMIC nodes Date: Sat, 1 Oct 2022 00:20:52 +0300 Message-Id: <20220930212052.894834-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220930212052.894834-1-dmitry.baryshkov@linaro.org> References: <20220930212052.894834-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On MDM9615 the PMICs are connected using SSBI devices, which do not have any addressing scheme. Drop the unused unit ids from PMIC device nodes. Signed-off-by: Dmitry Baryshkov --- arch/arm/boot/dts/qcom-mdm9615.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-mdm9615.dtsi b/arch/arm/boot/dts/qcom-mdm9615.dtsi index b47c86412de2..bb17a57a2b90 100644 --- a/arch/arm/boot/dts/qcom-mdm9615.dtsi +++ b/arch/arm/boot/dts/qcom-mdm9615.dtsi @@ -283,7 +283,7 @@ qcom,ssbi@500000 { reg = <0x500000 0x1000>; qcom,controller-type = "pmic-arbiter"; - pmicintc: pmic@0 { + pmicintc: pmic { compatible = "qcom,pm8018", "qcom,pm8921"; interrupts = ; #interrupt-cells = <2>;