From patchwork Tue Sep 28 04:45:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 514767 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp4779970jao; Mon, 27 Sep 2021 21:45:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCMCWXo7jZQszslDAcawMOm3uETFUx3eEweKW9k39YDTSe9/cuhU1leQGAtpAfHDAB0B5e X-Received: by 2002:a62:8493:0:b0:445:5372:1357 with SMTP id k141-20020a628493000000b0044553721357mr3638424pfd.10.1632804318419; Mon, 27 Sep 2021 21:45:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632804318; cv=none; d=google.com; s=arc-20160816; b=rA4lPo/uaN5KNgs5dp57BbeAfGmssR/fDKNNoL7S02S3GkPZVSM93oHLAAiGDC3WHx 5fIrkQmMYc8FHl+bqyUply7RsS3tTX5QSWD880y+qxJ5Vhcr3ktJY8GCjwL3W3tytPVm eXxl1+O8gaCWXJB92Uj9je+x0p7pKNgv/wRQTYBlN+tvUF6eHFkdZzRzPp5oWf35gKXR mCNLBLdkgh5a/XLFZ6Z5gy0jdUrE54ftreV6bKZayZr4xgzjto0e5PhdF4OrYRwb9u1C yqjaNpi4NES+eWn1RZNU3keQVs+JrDUA4+FxGzpsCXbG4+u4AxHWMZuPWPF77D1AsO+b j7Nw== 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=94MqB0gQILsi8/WKWtcPzu8DS559IzH+wAM9SzL16fk=; b=txI2kBMxQ7Zjl/hNl3UD7V8Jbp9EZLnS5VtMS5HXOqxGq8VqKtFBebY8bYT9BHYu4z QaZ5yLCjLre4i80d52I5le2VeZLaxbFRvay1mz6Cxw2XiuNUyavKudL9ibK1eaIDDgzI Xs7I3OQ+3Zl5akQ+mKKbq/H3OCZMCpXj+1i1HjuJbQfCfR+zS3KDwWZ7DAwQ7ZB3bbak eru8slj62M3fQgvigjuIz+OnORdGxsNlibfA79sbxtKwXhbclPJSyWzw5n0kQ04q3Vc1 pARV9Vs5vJFwz9g5c8meYhBgsclBgg5w1EmtTFw3UWnk0AarJZHHLpKiB19/jhQjXW4X qsEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TMblAA0g; 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 q10si1231220pjj.109.2021.09.27.21.45.17; Mon, 27 Sep 2021 21:45:18 -0700 (PDT) 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=TMblAA0g; 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 S238905AbhI1Eqy (ORCPT + 17 others); Tue, 28 Sep 2021 00:46:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbhI1Eqx (ORCPT ); Tue, 28 Sep 2021 00:46:53 -0400 Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22101C061604 for ; Mon, 27 Sep 2021 21:45:15 -0700 (PDT) Received: by mail-oi1-x22d.google.com with SMTP id z11so28547185oih.1 for ; Mon, 27 Sep 2021 21:45:15 -0700 (PDT) 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=94MqB0gQILsi8/WKWtcPzu8DS559IzH+wAM9SzL16fk=; b=TMblAA0g17RHsOf3aJeueA3RmAn8jmOUyi0d9rz9rRTkk5+DfqLrOijbmPvuWkNQaW zcIsMXhwdfT2JM717r9FxDtowvTXCmm6Oy+UvjCAGrYtjVfDPyftnon68WQqTckm/Ehv cySYFRvsjeCmoHnmduSOtL/m737ojFbfpzIPmmvP9v2OqysI3xPyQLM2sTXg7xNnRhyU veZ7oOcn5GRF3sTBqWQD6LIPRzn0VBLs2iMEWN/SrjZgAcLnzHZm/cQpAtFwhlSVlwH0 yJ2Ji/TvccsP37r8Qaky5tGNn06ngjmFQOYQZKzZyTzCT0YB7EoQKd0g30LM34dmzmFV XVpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=94MqB0gQILsi8/WKWtcPzu8DS559IzH+wAM9SzL16fk=; b=VOiKed+Tyj6CGxuNQKPctvJmy+RiumTSTun0NFcLRsohbM7Zq15Nr4aD+6d1MtS98a a8zmU9dhShkpEGnyNX3+yju93QPLjqmKR7CjETyE2PSAeiDaaZeMoroYoR7xvfYxWQpJ vHrxNoOvQyOXrRqUWiWNqSxedkx0UhKZ3PbU1npHlEae044ITxFamqt/nuNHicRQ4yTM 2K9cJS6a95CGRo3t30MgAAef3dSmP6YK8XykULkinFONh7dfnZSzCV8BqCMBnZnoAPtm irsI8HTYEBPq8R1aKmHx2IptgNuHzjtFLB9LJ83AgMlWCDDYjVVRoEIMqWUN2X4agDMI LoSg== X-Gm-Message-State: AOAM533HBPJ3LlF/7aQBBDto8DNujGoRZxe7uwVPtlPQKtB6qUZlAyy6 rMvGpIwGNgC08a5R1sdXQA56bQ== X-Received: by 2002:a05:6808:1141:: with SMTP id u1mr2135512oiu.123.1632804314458; Mon, 27 Sep 2021 21:45:14 -0700 (PDT) Received: from localhost.localdomain (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id x29sm2553341oox.18.2021.09.27.21.45.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 21:45:14 -0700 (PDT) From: Bjorn Andersson To: Andy Gross , Bjorn Andersson , Rob Herring , Frank Rowand Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] dt-bindings: soc: smem: Make indirection optional Date: Mon, 27 Sep 2021 21:45:44 -0700 Message-Id: <20210928044546.4111223-1-bjorn.andersson@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 In the olden days the Qualcomm shared memory (SMEM) region consisted of multiple chunks of memory, so SMEM was described as a standalone node with references to its various memory regions. But practically all modern Qualcomm platforms has a single reserved memory region used for SMEM. So rather than having to use two nodes to describe the one SMEM region, update the binding to allow the reserved-memory region alone to describe SMEM. The olden format is preserved as valid, as this is widely used already. Signed-off-by: Bjorn Andersson --- .../bindings/soc/qcom/qcom,smem.yaml | 34 ++++++++++++++++--- 1 file changed, 30 insertions(+), 4 deletions(-) -- 2.29.2 diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,smem.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,smem.yaml index f7e17713b3d8..4149cf2b66be 100644 --- a/Documentation/devicetree/bindings/soc/qcom/qcom,smem.yaml +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,smem.yaml @@ -10,14 +10,18 @@ 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. +description: + This binding describes the Qualcomm Shared Memory Manager, a region of + reserved-memory used to share data between various subsystems and OSes in + Qualcomm platforms. properties: compatible: const: qcom,smem + reg: + maxItems: 1 + memory-region: maxItems: 1 description: handle to memory reservation for main SMEM memory region. @@ -29,11 +33,19 @@ properties: $ref: /schemas/types.yaml#/definitions/phandle description: handle to RPM message memory resource + no-map: true + required: - compatible - - memory-region - hwlocks +oneOf: + - required: + - reg + - no-map + - required: + - memory-region + additionalProperties: false examples: @@ -43,6 +55,20 @@ examples: #size-cells = <1>; ranges; + smem@fa00000 { + compatible = "qcom,smem"; + reg = <0xfa00000 0x200000>; + no-map; + + hwlocks = <&tcsr_mutex 3>; + }; + }; + - | + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + smem_region: smem@fa00000 { reg = <0xfa00000 0x200000>; no-map;