From patchwork Thu Dec 3 19:13:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 336944 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp550764ilb; Thu, 3 Dec 2020 11:14:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJyohRzKszLcP0O1TOdNQFLmOKr2wS+jrX+PsST8dlE2qEtpmj4hYDng76H4PiKC/o7Q7+dF X-Received: by 2002:a17:906:5243:: with SMTP id y3mr3849025ejm.273.1607022861927; Thu, 03 Dec 2020 11:14:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607022861; cv=none; d=google.com; s=arc-20160816; b=Oo2or5HVCmd/Pswnw53IYS6f+ON2jQbxMaubUrDVerdxMdTXPhBuPZr68bxDvzEyim uZs/DQJ3XHWIPRgPNmtivNme+2PpSem5P5NSeeDxKnAQDpHz/OVdsMbZMk3wC8Tcwvcy 2FeHvV8KPHitqBkq9evMim8lIOAba4WgNTcIPZCmRBSP8cBZu6XY17oBs3YT8cvVT86H bEtkgrqJ0mrzGle1TQ9gggP8uPAk4TNgaHlVu0e5teRG+CwdN/xl4+DHUhOGqRl0VqD4 z/kIqINggP7vHGK0NYNA7+fyXHrs57hFSGIZTtPePhCtT3ZxYz/Uu0y8wyC0m5krhySn pdfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=OfnUgcdg9AtFNP6j8dPEN24viPfWPPxj5QhQUOX7X+4=; b=1IAr896cxtypaIt7WSOaAM/B3V5PtEn2g6S5XtdvNry/n7/JCqUvUwv9uTHKpy0O0F 853NS0xzajjYo0OYKWkSalKXyD7VXZFS8kcWi7j65GOFGaR72H1YK+MhYg+OFnWa6bt0 nWl0kqOSd1XTrYg9DvqJmAr2tCEfz5riPXDOor69vVwijgvZddWL8vPzKJYIH+1JuXeH buD2VzeAS+KW/fswh/qE81/YKkXCs+HMJ8M6X+OkAtcv5FhrtHIwyGUT+dOOH1zSGwgX j6D67+EBFe1tdvp2YvhQfPZY8ri7X+SkHBuNcsat4rH0TYq1ABNa0YtDOhk1tsrkrmw2 aKPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="xgVJWH/J"; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w2si1483350edx.591.2020.12.03.11.14.21; Thu, 03 Dec 2020 11:14:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="xgVJWH/J"; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1726701AbgLCTOU (ORCPT + 15 others); Thu, 3 Dec 2020 14:14:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726620AbgLCTOU (ORCPT ); Thu, 3 Dec 2020 14:14:20 -0500 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16DA4C061A4F for ; Thu, 3 Dec 2020 11:13:40 -0800 (PST) Received: by mail-lj1-x22a.google.com with SMTP id y16so3803002ljk.1 for ; Thu, 03 Dec 2020 11:13:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=OfnUgcdg9AtFNP6j8dPEN24viPfWPPxj5QhQUOX7X+4=; b=xgVJWH/JDVeUwyEnGOmoMtu2OwOGb+vMbVFjDY9clZKS7uXzABNaRxTiR09jsyJ1Ru GjhZaWXm3rgfMM1yi80lk2YXnotigB28CMMu1NvUYeC5wjsd0CeLEUXYJ3mOtBjUUUMg BdD9xFEnJsTGuIlJb1WoZnmtNBLAu/5e3bgOKOWuHrCTRBS5FIQQcj+Zx6u85lIQc3WC HAH4QJ5WKfQMp18XY8804yNi9jxfXWzLF+AMXMgpy/aqP2cwFFQXahPCn9G6fhkEkt22 MW7qDpFYNv8pKoXpP2GDTMEqPvcNHgBCnZKU3ByLmB/EGZrsfJhWwg3F1Wqt5Ubsl99t 4BJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=OfnUgcdg9AtFNP6j8dPEN24viPfWPPxj5QhQUOX7X+4=; b=FVIyxC1cZtRW7kM3VuNzA3h6Mg6U+oYt1mtVeT1A1t4IAdCFLyg2A2v0wERtKhn7B2 qt+lNZl/9G3XlHWo4JQzzhrBL1Qxpuk4JSquUwlH3Mrdm6cVaab9TrMS8zBXzKxAWIjO aCO3+u9hBWo2RGqy2rqSgsySMflsh0Pfs3NqIuLzJ2hCkUyXnr8u7FflgH9Rh4fhi3+9 hKD63IelKlVEap0VLhXJtaIatQBeGUgqZ5eqmCP27wN6gWlyfmVkeB21cQowybwn5Ikz EY8AIZXnYOH+2BydJdzpQXQGQZufCIVQe2V7pXWAO0U5rlyssKo//XGnI3aHukiMG8v6 GbJg== X-Gm-Message-State: AOAM532y2jbiZVonShEmW+qKI200IIT3x7t/bx34qbod5G2kter5l6Zh WF142TatDiYZ+XMH70Obwj/JG0WmZWnOvQ== X-Received: by 2002:a05:651c:14d:: with SMTP id c13mr1793980ljd.153.1607022818414; Thu, 03 Dec 2020 11:13:38 -0800 (PST) Received: from eriador.lumag.spb.ru ([188.162.64.117]) by smtp.gmail.com with ESMTPSA id x10sm102472lfn.307.2020.12.03.11.13.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2020 11:13:37 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: soc: qcom: convert qcom, smem bindings to yaml Date: Thu, 3 Dec 2020 22:13:34 +0300 Message-Id: <20201203191335.927001-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Convert soc/qcom/qcom,smem.txt bindings to YAML format. Signed-off-by: Dmitry Baryshkov --- .../bindings/soc/qcom/qcom,smem.txt | 57 -------------- .../bindings/soc/qcom/qcom,smem.yaml | 74 +++++++++++++++++++ 2 files changed, 74 insertions(+), 57 deletions(-) delete mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,smem.txt create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,smem.yaml -- 2.29.2 diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,smem.txt b/Documentation/devicetree/bindings/soc/qcom/qcom,smem.txt deleted file mode 100644 index 9326cdf6e1b1..000000000000 --- a/Documentation/devicetree/bindings/soc/qcom/qcom,smem.txt +++ /dev/null @@ -1,57 +0,0 @@ -Qualcomm Shared Memory Manager binding - -This binding describes the Qualcomm Shared Memory Manager, used to share data -between various subsystems and OSes in Qualcomm platforms. - -- compatible: - Usage: required - Value type: - Definition: must be: - "qcom,smem" - -- memory-region: - Usage: required - Value type: - Definition: handle to memory reservation for main SMEM memory region. - -- qcom,rpm-msg-ram: - Usage: required - Value type: - Definition: handle to RPM message memory resource - -- hwlocks: - Usage: required - Value type: - Definition: reference to a hwspinlock used to protect allocations from - the shared memory - -= EXAMPLE -The following example shows the SMEM setup for MSM8974, with a main SMEM region -at 0xfa00000 and the RPM message ram at 0xfc428000: - - reserved-memory { - #address-cells = <1>; - #size-cells = <1>; - ranges; - - smem_region: smem@fa00000 { - reg = <0xfa00000 0x200000>; - no-map; - }; - }; - - smem@fa00000 { - compatible = "qcom,smem"; - - memory-region = <&smem_region>; - qcom,rpm-msg-ram = <&rpm_msg_ram>; - - hwlocks = <&tcsr_mutex 3>; - }; - - soc { - rpm_msg_ram: memory@fc428000 { - compatible = "qcom,rpm-msg-ram"; - reg = <0xfc428000 0x4000>; - }; - }; diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,smem.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,smem.yaml new file mode 100644 index 000000000000..1ddeb25cbdc1 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,smem.yaml @@ -0,0 +1,74 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/soc/qcom/qcom,smem.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Qualcomm Shared Memory Manager binding + +maintainers: + - Andy Gross + - Bjorn Andersson + +description: | + This binding describes the Qualcomm Shared Memory Manager, used to share data + between various subsystems and OSes in Qualcomm platforms. + +properties: + compatible: + enum: + - "qcom-smem" + + memory-region: + maxItems: 1 + description: handle to memory reservation for main SMEM memory region. + + hwlocks: + $ref: /schemas/types.yaml#/definitions/phandle + description: reference to a hwspinlock used to protect allocations from the shared memory + + qcom,rpm-msg-ram: + $ref: /schemas/types.yaml#/definitions/phandle + description: handle to RPM message memory resource + +required: + - compatible + - memory-region + - hwlocks + +additionalProperties: false + +examples: + - | + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + smem_region: smem@fa00000 { + reg = <0xfa00000 0x200000>; + no-map; + }; + }; + + smem { + compatible = "qcom,smem"; + + memory-region = <&smem_region>; + qcom,rpm-msg-ram = <&rpm_msg_ram>; + + hwlocks = <&tcsr_mutex 3>; + }; + + soc { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + rpm_msg_ram: memory@fc428000 { + compatible = "qcom,rpm-msg-ram"; + reg = <0xfc428000 0x4000>; + }; + }; + +... From patchwork Thu Dec 3 19:13:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 336945 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp551826ilb; Thu, 3 Dec 2020 11:15:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJzI20bEyNcaORGJQj1PjNr/Z5SIuP+q3AMEwsSmL/vuDHozj83u9C72BKPWYoDbJOdhKiWH X-Received: by 2002:a17:906:3c04:: with SMTP id h4mr3785615ejg.220.1607022952098; Thu, 03 Dec 2020 11:15:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607022952; cv=none; d=google.com; s=arc-20160816; b=OixOcpEbqkGnoDQQSQmNZw48hnrq13hmoGsvNeOdXd57Qzwn+gsXRpdIAAjWtu0sbQ BsYyWl3lsariCG6RBXqAv+QrCeAuAq/kiPQMf0IOPwZCcusmGgGqp6dk234hOZj+yZsy KP3QQvDSg2lMpPFEut0abVQe2fa4BkCCNioui26bcYPgE79Pc7AM9pykKU6S60l2k4UK /zx/fVX35aAjsP4PIjOFOFMtpr35Srk3W+Yr4vDf8sbtw4DNL0GexaOJFnCHt41G9zNX hQjpEv2KhrTHv18q/XFus/fRY4GH6gb3VKlnxRMvwzq5rrKTDUNPs3b3iPKjLKPtJuAQ GOUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=sFYmSsN1bxbi/L7R8RFFX1/U9uadQLLW+YvtA4kqQ+w=; b=vKnnhNbGLzUUcoCREwY1GKY5n46fDkUNIG9zdBI4v7VZatbkqYxeqmnT67+K3V98BA tLXWcPQ9fXUkOUpFhgsEMPs7OJ4Ee/SxAy1EjzEclnOZBJj2Fk6BuFvtUqqzCJtm8XQy A4dNVcdELdUQV6JMYIV/I38OxDvt9efLRc/zX9fiqijGSc7gyjaT7Izq2NNuLxGphFco bp3gEeQnmCcpTvTa5m9DztE1xn1Ey3k8/wzN/1cTXD+jVqtMqHIZtviHoJesSHpHn0WT vyIEuOCRGezcC6J7mJ5t1RgfKjn875AmR5h0TkAqCmGbmD+tbiLr0degEUsIT12j2buY Y81g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GHAsOfte; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r3si1679691ejc.166.2020.12.03.11.15.51; Thu, 03 Dec 2020 11:15:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GHAsOfte; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1726629AbgLCTOX (ORCPT + 15 others); Thu, 3 Dec 2020 14:14:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727309AbgLCTOW (ORCPT ); Thu, 3 Dec 2020 14:14:22 -0500 Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 925DAC061A51 for ; Thu, 3 Dec 2020 11:13:41 -0800 (PST) Received: by mail-lf1-x143.google.com with SMTP id d8so4368424lfa.1 for ; Thu, 03 Dec 2020 11:13:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sFYmSsN1bxbi/L7R8RFFX1/U9uadQLLW+YvtA4kqQ+w=; b=GHAsOfteqJMZ+zT+RROIHULp1MAraxI4QgEvUe9IMPDs4Co/iEJy6QWiCJcEvUH4Xl Z4SH0C4OL1SzOA9ih7bBK2S9e7eSSchqSogrkkmrr+doyxcq7wEnSNb6Ipp9Efbd2yrB TZmK3ZmZwz0TlFb5YkuZIIvmjM8l4LRB0wqgQEtr52O1k+7BcRiIUByD7IfRtuOqdEij 8mmXUHgp+T1uh90eIj21oqwOd6Q6JrlqxLxtmME8iAml6Ce89sFO+WQMuejBWJeat8l1 3MB5sVli3w3mqzVYQGdxrxMIi4UEdF1EJOqXlF56O+tXwTpMCO4w3mqVGQ3ZVFlXaOpR CP/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=sFYmSsN1bxbi/L7R8RFFX1/U9uadQLLW+YvtA4kqQ+w=; b=S3D1cp9dGENWPN19+3SLoO7eJeDGiFxzv1y2QYebG6SoE2Ong/lE0kjd0wT3dmK9Fc SRgNh42+3IQSXNFLosILLavMBoshkTSt5SE6DpObNKSXSzWaq9YFSNXnZ06+6j743EnR 81BditVVnBjLmBztMXIhBpxmqTddKf9hIOpRlJ9bFp5D0kaVsyhs86Sz5YRXWnthrOn5 q1cBg3EumRm4KjBJHpU519wHPwgxpwGnBjshw6+tBgPnvMxNJ/gEb4QihmU+es57/oGk J7bVA4RzhmlLCpLOqau6l/4RRXvb8xjmoTNUVDn1sJUsGqx3D8cQ2efElzOpIffFxMoO LEpw== X-Gm-Message-State: AOAM530EWARSY9OiUjEJIJxsnJLtblagWLTFoTaiOtOJ2i5mCpq/Isjd gITe7cPqqIL5kEBBB53sCC5I5Q== X-Received: by 2002:a19:43:: with SMTP id 64mr1927578lfa.504.1607022820070; Thu, 03 Dec 2020 11:13:40 -0800 (PST) Received: from eriador.lumag.spb.ru ([188.162.64.117]) by smtp.gmail.com with ESMTPSA id x10sm102472lfn.307.2020.12.03.11.13.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2020 11:13:39 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/2] arm64: dts: qcom: sm8250: rename smem device node to follow schema Date: Thu, 3 Dec 2020 22:13:35 +0300 Message-Id: <20201203191335.927001-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201203191335.927001-1-dmitry.baryshkov@linaro.org> References: <20201203191335.927001-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Rename 'qcom,smem' to just 'smem' to follow the rest of SoC (and device schema). Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.29.2 diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 4c472db2738e..bdd9bd303415 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -334,7 +334,7 @@ cdsp_secure_heap: memory@8bf00000 { }; }; - smem: qcom,smem { + smem { compatible = "qcom,smem"; memory-region = <&smem_mem>; hwlocks = <&tcsr_mutex 3>;