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: 611525 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 07678C433F5 for ; Fri, 30 Sep 2022 21:21:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231669AbiI3VU6 (ORCPT ); Fri, 30 Sep 2022 17:20:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229646AbiI3VU5 (ORCPT ); Fri, 30 Sep 2022 17:20:57 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89CAF15D842 for ; Fri, 30 Sep 2022 14:20:55 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id x29so6074081ljq.2 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=Sqvw6MJP0TvhnwsH28b8R7OT2zE4mcHYBbVjYoPtiKC4LAF2EZvBC3HfvnzK4AX58X b/JQWLfBI/RV7Wbvf4atEhqY9s3wtp1D05JjjngLaO5HWNWH5qVHoYvwVYLZQVnMAe0G 3SBfE/TrA69J7wBsCJ6G1gr1owFdRROO29QCJ8H1fbPDKjoOkN4X6sJvvIXTCl903r7b g6bB3mgOYxUw62K69mjYC8EiiUiXiXUggY4iLTJKWmy9DwW4qnlIPJa+QW/lER9p3L5m PtSFtSDlxkEA/2sbM0WAHlNxEoCR9VG3h75sL7ClckmNEhia/BVkMM+0oWor4y3KcyaA M9tA== X-Gm-Message-State: ACrzQf09QH6kEVQ53ET81PixnSldgFlWheHSJAsagUwV5vvBung74KAc q4PZ/ptSm6tA9qk/xSfp1Wpxbw== 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: devicetree@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: 611080 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 51563C433FE for ; Fri, 30 Sep 2022 21:21:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229646AbiI3VU7 (ORCPT ); Fri, 30 Sep 2022 17:20:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231473AbiI3VU5 (ORCPT ); Fri, 30 Sep 2022 17:20:57 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15FA1163CEF for ; Fri, 30 Sep 2022 14:20:56 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id j5so1480865lja.4 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=VnYLIyhMUY435/4cvkO8CV5Mdm/ozSGYgPn5LJzEKsxDkdkSTHb7680qwYFWbhPOYu ELpvBLuVAUnQysuo9SHqgCQLZjPehJE0O9IEbZeUxSRew51+yykwMRVPILO9LTMv4OOC +UW1yMgMDola55U2O1pAJ3nxZkERCuMfz98GbRDDIYKyxBrJD/2S9zBOD0UT+0JZZaH0 6HXrJU1RQVufTcIJFUQyl2j6sCdlBLRuUdWOSGY03UR1v67ffCJeSSv8YwK1VkMNNY7E PEjWQgCaRpXAyxlaeVdcM9YWvWn3zf46Q9uMXnFxrW/Hh7Te5qcRyBtS32HHNv4XtF7/ KheA== X-Gm-Message-State: ACrzQf01MmJEIYByTgwKz/uFgerhodF9LC8A/5fZUdckMhfaKZt3IxwN nciiAFG805JU900VZ4a6rR+3+zi7XQwu2g== 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: devicetree@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>;