From patchwork Thu Sep 30 18:21:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 514967 Delivered-To: patch@linaro.org Received: by 2002:a02:606e:0:0:0:0:0 with SMTP id d46csp39417jaf; Thu, 30 Sep 2021 11:19:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxg16FCex/WRmzWgQLPf33XKt1c0YIUBr9nOPXwMvvm009MSBnlzO/i4QIRfTmkLPjerhxa X-Received: by 2002:a50:be8f:: with SMTP id b15mr8687450edk.200.1633025992725; Thu, 30 Sep 2021 11:19:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633025992; cv=none; d=google.com; s=arc-20160816; b=o6lu7UKOkFYoMJaC+gs8VVajWiIDa4DLn1xjmlSuZn6tOpeNdGal1dRPZfegA/xnN+ pHZvYM2nSsDagJ6o2YFFD8qHWqhggEkQS5Uzb1G+dupBqO3HR5eSCLeNV9YaU6x2Kn6J zo1q5kgSRmlTNnGSoVcCZCr1BYYuJnQ+RMdiyn79ESUtVaMW2SUG1e6GdUTf/zT998QB 3g9FS8NGEv8tE9c6MhvqmmiQ553aEBp8Ax3pzb0VnFQNX6V1pvDF6frOxlA/fe+nNcLe 4AK1fnQTY9cw568BgnZQXFWIAAifdFhR9Ncef3B5RyGhRguoWGR0UXkxpqXHcTdPJvJN Tisg== 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=I3QEbxt5uEHrOmXC8KCrrnLxWzCqzAmWjkibzCAclE4=; b=epWF6wZ5OBELs8T3R6d+ZCK9523Nt/Z1ynWPJSlunE2wWImXAHpte8yvRfLUtLUY9z j9E81aATp+Hb9EFa7QlE0U4cjrN6XGcbidNzvHeO6lDrbv3ZMYecgBjegK3h4ciCbZ4e /9p3hqh0tSvIVQCoENhWQfwzwurdZRgmyKXNdu4FKs5lz5HNxXKyI0t57czNgWiRHy72 rN3HvYABSdNKJgsE/V6bIz2jtD9a2LVhVEpmvl6S+DIXYi75Rh2ghtL8vIE7cn66XZ+R XJLvj5uumZY1TsVvvZiocObg7Vvjm3HikuhYGjoB2/fJZt5FXQhSkUcXxaAn9Nr1vFZN nv8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MXtkO4ZL; 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 p14si4062657edx.202.2021.09.30.11.19.42; Thu, 30 Sep 2021 11:19:52 -0700 (PDT) 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=MXtkO4ZL; 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 S1350804AbhI3SVL (ORCPT + 7 others); Thu, 30 Sep 2021 14:21:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350599AbhI3SVJ (ORCPT ); Thu, 30 Sep 2021 14:21:09 -0400 Received: from mail-oo1-xc34.google.com (mail-oo1-xc34.google.com [IPv6:2607:f8b0:4864:20::c34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FFFCC06176C for ; Thu, 30 Sep 2021 11:19:26 -0700 (PDT) Received: by mail-oo1-xc34.google.com with SMTP id z11-20020a4ad1ab000000b0029f085f5f64so2143143oor.5 for ; Thu, 30 Sep 2021 11:19:26 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=I3QEbxt5uEHrOmXC8KCrrnLxWzCqzAmWjkibzCAclE4=; b=MXtkO4ZL2hg6pJxEcl6h3nK1ZPFXDIpp3fzznUJXpyc3ZujmcrZh9AxCkxfMYVXJ+c wfczBlkCOikmsURoZoCQZpla2ICy8zT4o0AFWkS+SoSyZzbRTkcNDqxgr3ynXI0BZzj1 ED9YKCwiHYk1xmc6D810dKtLLrGKLDOdn0mB/A6+G24k/QOPkCIpPrxugQX+JfDWM//X nKGuQUFjBZOgJ1FweOAidBb/O7jIe1eKODkxTaD+x/CQ4Yf09nHOdHdwjRIuMhhpR8Vn egZ0Z3GnVYR9+qJ9DZxDoxYy8XEUBzzzUuzlNychc9Y1328x8++UVKx6lUKwKfMvTzVy GogA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=I3QEbxt5uEHrOmXC8KCrrnLxWzCqzAmWjkibzCAclE4=; b=AsyxeSs5QDYGRoypmI3O7AtTm+sRRGBB5df1higpLmYCmj5mfRSaPsa0X1EFAWTFU/ 8ShsXYoaJGrKUN+P1cem7qKtvIVsw/3szF4mfwbK9wIItG0jyRxH03XY2shJUIsSQa8s cLlx1IEqcDcpBOA4ya4MhdI4Wpe/HiuWOfIQXJQTSu7YZ6B/QRewJhi6JYzoukAE3x9I 22HdQZoDUKy3SX9AEJ0Azw03FswFerXRQMGHfNObY29DdESGzDyQ6tLWhHk9PM/mZ6I6 jGKE2l8b+K2Z2OCfGThvgc055Ppeh/FLPKPkXaa9kILH5pHleL+kx3grjeYPEnspBGGE BGjw== X-Gm-Message-State: AOAM532Ocxi9OVtOHoGRSG6ak8NoG+MDmdXTs3g8XAEiURWikEL1/7BD zg+eJ2Zzn99uacsAiWcdfNj7iw== X-Received: by 2002:a4a:d9c6:: with SMTP id l6mr6134204oou.0.1633025965420; Thu, 30 Sep 2021 11:19:25 -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 k6sm727416otf.80.2021.09.30.11.19.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Sep 2021 11:19:25 -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, Chris Lew , Deepak Kumar Singh Subject: [PATCH v2 2/4] dt-bindings: soc: smem: Make indirection optional Date: Thu, 30 Sep 2021 11:21:09 -0700 Message-Id: <20210930182111.57353-3-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210930182111.57353-1-bjorn.andersson@linaro.org> References: <20210930182111.57353-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@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 --- Changes since v1: - None .../bindings/soc/qcom/qcom,smem.yaml | 34 ++++++++++++++++--- 1 file changed, 30 insertions(+), 4 deletions(-) -- 2.29.2 Reviewed-by: Rob Herring 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;