From patchwork Thu Jan 24 20:24:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 156510 Delivered-To: patches@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2398943jaa; Thu, 24 Jan 2019 12:24:31 -0800 (PST) X-Received: by 2002:a62:3006:: with SMTP id w6mr8062444pfw.258.1548361471610; Thu, 24 Jan 2019 12:24:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548361471; cv=none; d=google.com; s=arc-20160816; b=BJ3GPUQuxqwRIy0ivXEbMRwtnhgtd17cd2KSoDRxnjxlAjfeJXAhCb9A5HGD9LJUPY ZVlhS/KWMCRA54IwA2+Us5mvy8FOg0XHfKV1JEqbIAlziE9Gca4K43CiWn4O5Iu1YC3i Fajb9u+PzKfLyeQD7MvPgrI8uKx2HNBI6GSqAPFTqZINl7xAV9RigkEG6CTw+PmNY37N F2FrsqsyEU1SYY3eWrOBVEgnBmh8qMX/bHjRS104QWX0SI01NU/ed+4k3ZplUIJ2f1+J aSa0O5W09JV5W7nxS1pXuLSxuy/SJb/nIsNwrA57kG0AcD2+WXhYbLzyvNIX6TZ7WJrI Pc4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=eg4nAxAXcXkNuIrbMcRJ+fzvQseMFVGhfj9rOi7KduU=; b=jlUNA7ql0yLlotjSjtsIoZ5flUzsDQ43w2743pPJqqN2qiXWqSOx0DmX76wkMgZ1ET 8+zIigQXiaBa7KWLhFSawA20rSRRwTTPtQIswfOJIcnhD9cqJuo6wjHRctxqNGpRgI1+ NcD5W6m8hKfJxy5p8t7XBBphkyVT45cm6auwHBH0PWQjU8zczbVqRS6US8asD2HLoBNO WcuPLZDBe+EEKHMIXn5UhSwiCudh7bPOz/bN26qznfSY7j80ziS/+G5ZnDJ8sIYy4VhY vNOIJTZq91Jx72lcGlj9j3nBZyYlEgUZH8Zk6n7yPR32kl9Kd+UASJNTTPwhPtu6h4rh NNYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jSn5gDEI; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id u23sor33017648pfi.65.2019.01.24.12.24.31 for (Google Transport Security); Thu, 24 Jan 2019 12:24:31 -0800 (PST) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jSn5gDEI; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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; bh=eg4nAxAXcXkNuIrbMcRJ+fzvQseMFVGhfj9rOi7KduU=; b=jSn5gDEIAVqq/AsVfDWAu0cGimFUSBivUdA0jPLdipy5yoRP9CWxJzi1zQ59dvybAW jvjR+VnSVekOGEjqOUEWyqo0R1j4cCywBZ6FW2ye97UtP6Boq3i2a/UOzdAx7SU3BsB0 Gwf6ETiR4Mwx3orGx63y00EwLkMdPy5sceqXg= 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:in-reply-to :references; bh=eg4nAxAXcXkNuIrbMcRJ+fzvQseMFVGhfj9rOi7KduU=; b=jn2eOiHFWiUgDBy3cbKJO2emSxAejl2TKQFYlNbmotJruNEbbGGyndZaOSzKCW5Wga orjaZWi4Oq2m6T37kIe09H0qda0RTedqUy9sE8LslTyX+MMMDwyFanyxMR1q2I0wdq/3 Otngs2cp5E35ptZFJCenIeKtVlEpFe9Uo0iO8iStEEjw3pE0P21UuKIl549jgclEtwlp gE/mI+6vYnbe4v9sYv/rCmyzL03dC1q5hEfqrQFLLC1DVhdzJAeupwdJnqS3Ao4PSf3B d/5LJvTyRvxLmaQbY9Zku2A0mcU6dvP1/0JlC0zUTW/luCuYw6O2PCZK6TeVfx4LiALK xx7A== X-Gm-Message-State: AJcUukfwl9nLX2SMzWIHExGwagGFg7+hf5HEOIjWQ+YNeygLhd91b5/Q 5gqT8Qj4sRfOA9i3DyOKXtvldhHY X-Google-Smtp-Source: ALg8bN7WMfoTVni+wJrJRkqP8mH/wMyNUMBD9xBmHZIeZSxIsBVF3ZVCZzEcn9jiM+sY2nBzMuKDwQ== X-Received: by 2002:a62:a209:: with SMTP id m9mr8111866pff.218.1548361471229; Thu, 24 Jan 2019 12:24:31 -0800 (PST) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:4e72:b9ff:fe99:466a]) by smtp.gmail.com with ESMTPSA id c72sm45263309pfb.107.2019.01.24.12.24.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 24 Jan 2019 12:24:30 -0800 (PST) From: John Stultz To: lkml Cc: John Stultz , Vinod Koul , Rob Herring , Mark Rutland , Tanglei Han , Zhuangluan Su , Ryan Grachek , Manivannan Sadhasivam , dmaengine@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/8 v5] Documentation: bindings: dma: Add binding for dma-channel-mask Date: Thu, 24 Jan 2019 12:24:17 -0800 Message-Id: <1548361463-28372-3-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548361463-28372-1-git-send-email-john.stultz@linaro.org> References: <1548361463-28372-1-git-send-email-john.stultz@linaro.org> Some dma channels can be reserved for secure mode or other hardware on the SoC, so provide a binding for a bitmask listing the available channels for the kernel to use. This follows the pre-existing bcm,dma-channel-mask binding. Cc: Vinod Koul Cc: Rob Herring Cc: Mark Rutland Cc: Tanglei Han Cc: Zhuangluan Su Cc: Ryan Grachek Cc: Manivannan Sadhasivam Cc: dmaengine@vger.kernel.org Cc: devicetree@vger.kernel.org Reviewed-by: Rob Herring Signed-off-by: John Stultz --- v3: Renamed to hisi-dma-avail-chan v4: Reworked to generic dma-channel-mask --- Documentation/devicetree/bindings/dma/dma.txt | 4 ++++ 1 file changed, 4 insertions(+) -- 2.7.4 diff --git a/Documentation/devicetree/bindings/dma/dma.txt b/Documentation/devicetree/bindings/dma/dma.txt index 6312fb0..eeb4e4d 100644 --- a/Documentation/devicetree/bindings/dma/dma.txt +++ b/Documentation/devicetree/bindings/dma/dma.txt @@ -16,6 +16,9 @@ Optional properties: - dma-channels: Number of DMA channels supported by the controller. - dma-requests: Number of DMA request signals supported by the controller. +- dma-channel-mask: Bitmask of available DMA channels in ascending order + that are not reserved by firmware and are available to + the kernel. i.e. first channel corresponds to LSB. Example: @@ -29,6 +32,7 @@ Example: #dma-cells = <1>; dma-channels = <32>; dma-requests = <127>; + dma-channel-mask = <0xfffe> }; * DMA router