From patchwork Fri Dec 4 02:24:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 337701 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp803916ilb; Thu, 3 Dec 2020 18:26:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJzV7VV97XyP+nYBqrpoN3VZ4naHf8nhyuMdPhGHlkHY0TJBZq0VTFkm2PdmFyB1b7W8hI27 X-Received: by 2002:a05:6402:1ad1:: with SMTP id ba17mr5457509edb.51.1607048774819; Thu, 03 Dec 2020 18:26:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607048774; cv=none; d=google.com; s=arc-20160816; b=CNKai3oLNJAiT2xNHQNhiKnkbI30M5A4DP51JsFaXT8moqlXQH/zivkRhnal4ApW// HSG0N6pyBr5VgQv3M49oxi+XNtUdTR0b5cSAUkn/MphksuX6O9lKXgc70Sfjd9ts5kZk 6H1Zf4WWTK46x5P/L4thNz+MM9phvVAFW1zj/XInbLs1+LvjJN9r9b4FWz1HtirEWLAh Wox+N5k6SseM1wvSeJMk/XYQw1R6NVhmLjyto+rpFlGiQrdiJTG28ZeHv0Hk5lO9R5Ha IMaR+rDyxRs5qdLCHShufYbwHzX00bOaddBlhnQUHEnb+prgzoAmTgB+tXuxeh4Y/zXW nb1Q== 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=s4u4b45a8ETNbHAbxtaaDiyY6Pkn4TPDLXT1pEb3qYw=; b=K6GEK8LBdJDRGYYgQkRdz3MAhh9Y/1cNW1vav+MkCk2QH3MBIr+/xMfbrbtwTEibjv 3K+gK8zjNekaIyG+82/Ey0u7pkXqzCw1/F7NBC2HqIGEF6TGQZVD4BT1iq87g5NdTEBM dYbWcPUxSE64MzVG/MHQVFsmKzcpaoWiro8AMHmjSYhkvfLjfSUyBH6womuAAeLoKKHv DnmkvzyDrajFCyhKRtjQW2Y4NdyVy8bOwB7GPYbj4iwhGY+rgjI2n/dUoVQBTxfg4qGR 5snGKq9OXTUDwsC7cvjGlE8/v3k7K4jC/aRUDQRyWTymv56NFO2rPiRfTiW1VZ8XFtZo HXrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WBm42TQz; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 m14si534057ejr.448.2020.12.03.18.26.14; Thu, 03 Dec 2020 18:26:14 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-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=WBm42TQz; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1727023AbgLDCYq (ORCPT + 6 others); Thu, 3 Dec 2020 21:24:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726740AbgLDCYq (ORCPT ); Thu, 3 Dec 2020 21:24:46 -0500 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CE20C061A51 for ; Thu, 3 Dec 2020 18:24:05 -0800 (PST) Received: by mail-lf1-x12f.google.com with SMTP id t6so5617108lfl.13 for ; Thu, 03 Dec 2020 18:24:05 -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=s4u4b45a8ETNbHAbxtaaDiyY6Pkn4TPDLXT1pEb3qYw=; b=WBm42TQzCuibOmA79Uc0/Bn6AJUtpOgB7hKkz835mW8u6304nBbfXYnSF27Zz2AqFi Xk9D2C+CKu3OJ9LSCgp0HvxaDyM2g5wmZsfrYfWUo44b8QeLR+xx29irk2L+k+gprikd B8S435lj6Kg6DbILI9lfWozClyZbgj6Wa55tvNtyzWU9z/MFpHOELq1fN94pNgfIy2Ox JeWulLfw0mMgcudf1EcZUzNNuzLrZ4X8dgbp8R16mEdDmjd+CVFnuT5ohLdRp6EC9XVv xe7G7wRhS3mgtE7LwOGU9JhXoJ6ZMGWuIJh7iMij8iI7L7o93j58V90jthP2WFeaD+/g 0roQ== 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=s4u4b45a8ETNbHAbxtaaDiyY6Pkn4TPDLXT1pEb3qYw=; b=dM1MhU4GgozxxIUbhzUNQqchVETHd+pGEX/jywr2+1MfT6UCl8kAeNHfgBZRWP8LrH V8ZzgI5MczyWWPqjd3jytZbtsShFDNjf1vPjcUcaVtphj4/4T4CN06LjaUJyS5WwS34S tz75admXZFDgfOlGMXuum33Ish3T23me4MXn7/w2IQ1QRqNq2pFHt2tIMKKUFlunazbf rJcntZofwnyxB6DLWqfcN8FOA+pHlV9MUlvyegSP46+3f0LVGNz83S+AsI/H7tF9gj12 vtoUeVjtoHu/iBz9fIiDzwu2vkwM3elRynUzXPlj0MY7zal8thjAK0/61lhGMcvDjjBX ASQA== X-Gm-Message-State: AOAM530p2FADM3yEmbdA9c8Hv24VR2VPliqd5bR9VyGZAnLbFLOFODnA fCavLqJVuszlzC7EtETBYAMaPg== X-Received: by 2002:a19:c21a:: with SMTP id l26mr2657579lfc.590.1607048643764; Thu, 03 Dec 2020 18:24:03 -0800 (PST) Received: from eriador.lumag.spb.ru ([188.162.64.117]) by smtp.gmail.com with ESMTPSA id u13sm145569lji.12.2020.12.03.18.24.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2020 18:24:03 -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 v2] dt-bindings: soc: qcom: convert qcom, smem bindings to yaml Date: Fri, 4 Dec 2020 05:24:01 +0300 Message-Id: <20201204022401.1054122-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@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 | 73 +++++++++++++++++++ 2 files changed, 73 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..867640c09932 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,smem.yaml @@ -0,0 +1,73 @@ +# 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: + const: "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>; + }; + }; + +...