Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3757087pxv; Mon, 19 Jul 2021 08:04:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzz85IMgK9FLTlcSBKtAd2Ng3M9O/rqKpapAtoJuKCV9psJmY+p7dgHQtIo8oWuKvXqgnlS X-Received: by 2002:a92:d8d2:: with SMTP id l18mr17463903ilo.165.1626707074167; Mon, 19 Jul 2021 08:04:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626707074; cv=none; d=google.com; s=arc-20160816; b=Q46xvv1upd8BvcveUNIu9UQDwkNMKG9lpDMYY49MAWwPExmkFf49w9JsJHMmJqmEwT NN4N/z0tII+gucDXn7KTWd8LnIFARgyFE0wUoVCELmGUVK74/p1vNRqG9l4dDX0fn6sa byDPYWeCqhK2MBdEWlMiy093G+aRAjNKDtt5UNaniUagcaxlEYHRQr67P1JREUoRsPqO bhqYILRn+QNYf/kYTjXqYGO6YhKgyIl/FR/OPOqhp5kv/HXC3AaTi3i8gbo6UGlSVlTG hALD5D/CmqgPfzhy7IC6xmQyChms7BrMjeQfqDcA36G67F7INWMKI8RslYg3MH48KmMC rhzQ== 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=6MnR6L4mXMePcbKExrBmlzA/geD023b1awg39iUW1gY=; b=M/SB+TOZtOcqxUNlebgI5TQ6x6Skctq/mh82kIrgKOHAfPLBZCIbHlb2weMJCpm6pa WUFXqkR+MlW4AuKQYwDqrb0S4nT99kN7a0wGps2dChbe43RKRnvRPwRBH+B4hdt44Yw1 +e4gPYfJnVCVUoAqM5w8qHpuWWUdMJVY02ChucTKR6f8Xh24Vp8Ur8UCM7kgBjGy3311 ET5sdbtS1kis80HjWZxvDPUfDYJY+ptbIobLjnNdAeG3tRG/CnTE2EZOxOJTyqxm8V8d dBrAZD182E57tBNS9Yi8RLN4bbUUo02pKFJPmiThiE2xyrz5zkp94SKRIM1GhhUiZxz9 rjlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gerhold.net header.s=strato-dkim-0002 header.b=V5IXFQ1b; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p37si1852933jal.38.2021.07.19.08.04.05; Mon, 19 Jul 2021 08:04:34 -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=@gerhold.net header.s=strato-dkim-0002 header.b=V5IXFQ1b; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243014AbhGSOWw (ORCPT + 99 others); Mon, 19 Jul 2021 10:22:52 -0400 Received: from mo4-p02-ob.smtp.rzone.de ([81.169.146.168]:29110 "EHLO mo4-p02-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242651AbhGSOUS (ORCPT ); Mon, 19 Jul 2021 10:20:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1626706846; s=strato-dkim-0002; d=gerhold.net; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=6MnR6L4mXMePcbKExrBmlzA/geD023b1awg39iUW1gY=; b=V5IXFQ1bkuRIcrEYRjBENZPC8IKTWeaZvEa2luLmj+ad5HrPjXIMoeeNFm8dZECwpz b4PVGmWLkjHMV5QDI/tiRtJsI22seZy8tonlBEWVz3SQMdL1PYx+NV1rKlcv+rPOaoLQ V/8y0XzqA12VAMWdmEMzqQjpWcCIEW47cl7d0YGAOwyL6JDHkSsboEE6fYD1XfLpJhh0 g17xiXXNDxqFmk1jYJ1dDcDBWCqVn5HGXASgbA5+0npzvNKZg2DeN5A9xyscn/VCP0p9 4GZFEpar4Q5v+vMxyjPSUmpVCSG28bjfAl530yPMWhDaTQhPmPWtGhNcM4uXSuMVBeTh L+mw== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":P3gBZUipdd93FF5ZZvYFPugejmSTVR2nRPhVORvLd4SsytBXS7IYBkLahKxB4m6O43/v" X-RZG-CLASS-ID: mo00 Received: from droid.. by smtp.strato.de (RZmta 47.28.1 DYNA|AUTH) with ESMTPSA id g02a44x6JF0g42g (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Mon, 19 Jul 2021 17:00:42 +0200 (CEST) From: Stephan Gerhold To: "David S. Miller" , Jakub Kicinski Cc: Loic Poulain , Sergey Ryazanov , Johannes Berg , Bjorn Andersson , Andy Gross , Vinod Koul , Rob Herring , Aleksander Morgado , netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Jeffrey Hugo , Stephan Gerhold Subject: [RFC PATCH net-next 1/4] dt-bindings: dmaengine: bam_dma: Add remote power collapse mode Date: Mon, 19 Jul 2021 16:53:14 +0200 Message-Id: <20210719145317.79692-2-stephan@gerhold.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210719145317.79692-1-stephan@gerhold.net> References: <20210719145317.79692-1-stephan@gerhold.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In some configurations, the BAM DMA controller is set up by a remote processor and the local processor can simply start making use of it without setting up the BAM. This is already supported using the "qcom,controlled-remotely" property. However, for some reason another possible configuration is that the remote processor is responsible for powering up the BAM, but we are still responsible for initializing it (e.g. resetting it etc). Add a "qcom,remote-power-collapse" property to describe that configuration. Signed-off-by: Stephan Gerhold --- NOTE: This is *not* a compile-time requirement for the BAM-DMUX driver so this could also go through the dmaengine tree. Also note that there is an ongoing effort to convert these bindings to DT schema but sadly there were not any updates for a while. :/ https://lore.kernel.org/linux-arm-msm/20210519143700.27392-2-bhupesh.sharma@linaro.org/ --- Documentation/devicetree/bindings/dma/qcom_bam_dma.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/dma/qcom_bam_dma.txt b/Documentation/devicetree/bindings/dma/qcom_bam_dma.txt index cf5b9e44432c..362a4f0905a8 100644 --- a/Documentation/devicetree/bindings/dma/qcom_bam_dma.txt +++ b/Documentation/devicetree/bindings/dma/qcom_bam_dma.txt @@ -15,6 +15,8 @@ Required properties: the secure world. - qcom,controlled-remotely : optional, indicates that the bam is controlled by remote proccessor i.e. execution environment. +- qcom,remote-power-collapse : optional, indicates that the bam is powered up by + a remote processor but must be initialized by the local processor. - num-channels : optional, indicates supported number of DMA channels in a remotely controlled bam. - qcom,num-ees : optional, indicates supported number of Execution Environments -- 2.32.0