Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4569402pxb; Mon, 27 Sep 2021 21:46:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+FeJnUrgHIP6Wxw2ycb9uBg6G2peBIv5vyy6BSUlWxeZciAKAmn741tFyGtB97MyrCtVa X-Received: by 2002:a62:641:0:b0:44b:74bb:294c with SMTP id 62-20020a620641000000b0044b74bb294cmr3409408pfg.12.1632804374740; Mon, 27 Sep 2021 21:46:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632804374; cv=none; d=google.com; s=arc-20160816; b=FeKAiJ1b50uhg1SEy0iBBZm8zfLpVnDzkhuAzT4m7sKFj17GMlw10LmGNJwJffamar tNUAQR/1U277RpXAhCFdihgRl/DTX1RcoQgfmvfKQfxk/dVmJUPoZArmcYbwhseSb9Ky 1yXEirUndroZCPlf+MkEE87ePi8OjXw2Buwfxb0uluRb3gj+IWijtv4b3/IDPmTSUiJr P1/8dob5ZmabPQUzKs+EiVxvL5qu23W1onLHst9wfJNYZYyDsfbt882MupZTtqesUhxv 1FoXsY/vmyymOdAiTi+lPM8/YhFcpHFhPdUrx0oF82jQyymxSAh/LZknqrUb9wOOmh3C 2tBA== 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=aEZtv2LJMIG4riHC0AGEBkLf3WkwS14EdFGGo4dRo8t4WcP/ORUzhw/7UTccTWW6it lTUatGaZX82ngyZdKYcRqXccI5rs5OjI4Qrrp2iIeghsonTD74tOhpOwMnVbFGPBqNXM QD0+qDxSGZp1EHg1hDy6K8HZPIARy8O4rDgeBV5SxPeHQKtTUTujLsviGo2pqHaC0npH FUR+7uWjIysaLN+fFNGQqhKWA3VS6A628gAVub/oeajw2+pUqmhefzdYWWw4p9B3ydfu VrK3BTDEBtnnBoyU8k0D4E7sVG2TOflJ5F1Chd2MIJvXrWRjdlYlCxHYyhLOabo2wwNT V6rw== 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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 i19si22831847pgm.119.2021.09.27.21.46.02; Mon, 27 Sep 2021 21:46:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S237798AbhI1Eq4 (ORCPT + 99 others); Tue, 28 Sep 2021 00:46:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232873AbhI1Eqx (ORCPT ); Tue, 28 Sep 2021 00:46:53 -0400 Received: from mail-oi1-x231.google.com (mail-oi1-x231.google.com [IPv6:2607:f8b0:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 213FCC061575 for ; Mon, 27 Sep 2021 21:45:15 -0700 (PDT) Received: by mail-oi1-x231.google.com with SMTP id a3so28512603oid.6 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=paUQfVnEOM0eSq7vMHEmByD2uvmS83xSsmL/fpLlEkU1oUxgSUmqAQiZ02ZKM3qbam 4SbYkjlnACidXPRbc/XzTz/mwfzjMtvYMwCf8BsF1iCAN20tmmiAvDzsd8fJQbDtWYDW Zm3vHx3D3xP8u+arEthKZC5Lj9L+78RqakKJm9WA7yMl6kQ2qkZsrRFVblATesoRWlgK kYEQN9Wj7pIznWidkcP/PhMH3SO81YsTTZUyCpRXq09bRgp2XGrq7thjMzmUxdFW/8vb lQycASolrBd0lxmc9RgprcV34S/bMLx5+Vlx9QIobkPbJsafvgLjPVhik2iWxLfMtCd3 Bb7g== X-Gm-Message-State: AOAM532Fw59jKmNZ0lwRLq4QiXrPjGOLapBlHBla1bunkTpyyrLfyW5i Kuy/MbTrGM/cceycJFkOtg61UgV4OTno/Q== 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) 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; -- 2.29.2