From patchwork Thu Feb 21 05:34:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 158854 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp92052jaa; Wed, 20 Feb 2019 21:35:10 -0800 (PST) X-Google-Smtp-Source: AHgI3IaXYl5WrQhNkx2bwd6erHWnLR8ik+honXV33b6Yvhp6f1jd6aEshtnN5JvJaPd9R1/8GM56 X-Received: by 2002:a63:1260:: with SMTP id 32mr24088972pgs.278.1550727310420; Wed, 20 Feb 2019 21:35:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550727310; cv=none; d=google.com; s=arc-20160816; b=h7D5pWyG49ZXexUOu/7xF8i+JlDJOyGl4xMpeENgfN4RTa4x+EHPvalOUrSlBW7/PS 5bEBKgj7iuFlz7NpgnvZsQ1eUIGtuiJmWTTD7XFgDShoQKloNdLArrDgfUoET6BuOe8g aGW+8dSxvhe6Pu53FprpVJVvg5gAwJmhAULqki2NASz50+6S/CT7HnPR3KP52+bl7sEt LTzjahmH2Nkua7kPKbZfPWGjmXd3Hl18phtoEudMmEdFs5c4hRN1e5yHRm6jkXqY5BzK 6l7ZzP2PllL71+TNQNyfNhXXmlRgvTJn2T6/Y3TmKw2nK/mgb9W/4wyygY2rjMYx+m3w bxdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=T4yr4bk1rvyrNRXUVeZwF9n7nFBtXZOYoRS0bwjzaMY=; b=TzteG4Nt3RuhlFVD0xf85DuTeIUDCcp1VNzKs+KJXgl9MDYrgw1YtYynDyhOmmFki1 51ni26gHH5H3EJQ13hFm+UgX+R54IEDl+TG3vXEVEc/trHq6MfvG8XYsdh5a5bL90GXJ TBJyM3S2MZGlCIGV500GTMK2Fu6utCZ8Cu3oJYQHvaBDP0PnkOAvSeuP2ZzdDvmeX4Pd DXd4kAXWu8DNf2QBRSl+IQlJH1wuVKXqtbglH8R8Z7AkAx4IPhfV+/uPz0Ka6F9BxyNX CjNjPE3btS5ShfOWWiQcgIVu0nLklpVLdTrxmges9gy9keyCm/RArrIPyETsvgVZW9tJ PWag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WhQoTYTo; spf=pass (google.com: best guess record for domain of dmaengine-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=dmaengine-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. [209.132.180.67]) by mx.google.com with ESMTP id cn6si9051323plb.242.2019.02.20.21.35.10; Wed, 20 Feb 2019 21:35:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dmaengine-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WhQoTYTo; spf=pass (google.com: best guess record for domain of dmaengine-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=dmaengine-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 S1726409AbfBUFfJ (ORCPT + 3 others); Thu, 21 Feb 2019 00:35:09 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:45129 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725385AbfBUFfJ (ORCPT ); Thu, 21 Feb 2019 00:35:09 -0500 Received: by mail-pl1-f196.google.com with SMTP id r14so13563800pls.12 for ; Wed, 20 Feb 2019 21:35:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=T4yr4bk1rvyrNRXUVeZwF9n7nFBtXZOYoRS0bwjzaMY=; b=WhQoTYTo2kw7AXaa0/gWlonxJvoRifCpRYttsri9VopJY/b1WNv/sUaBCghPtgXFV8 +rv594Zknr3rXbC7zWqUsLztidK4rRGR8s+FP19bBKZOwUrrL9RjIiVy3YqYVVNN+rXx S+dj3LAGpbKqUZ9y+XQx6HCLs71DajxlqqmJ4CoTz6yl7DE4Owoqt+LcfKtv9fPKxKTt 3gYFZydSZKeyG3R1UedXEQWvqnXOf2pLj5z/vXdXgdzozIsbw6S3QEyyrNQz/SQr2Vx0 LUmvMQKqyNX9roygA+RQUeGiT8JmFCv4o/NLgkwb4cV5N4842tqkXo1RBjHLFCzv5DGr ArfA== 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; bh=T4yr4bk1rvyrNRXUVeZwF9n7nFBtXZOYoRS0bwjzaMY=; b=hL39fQmvP+m29M2gJpj0Dkbrz4cHj7MyRgGOWX8MhCF1IZayuRc/DCX9fmfVuzoLHw sGtU+jcFlDnU2Zd0pg38KtQIw1HaknnQBXAOX5nmKS3uCrjVwUpj4mhT9+/rMZ+kcCAh TCSkS/aABDDzzQemvZQ3zMQjG0pHk1bE+AETtbOJ/j5haq4VH9K9oS5bBNoJCPPe2sGM HsvXvRVMKXFLP/NyuwGlJe1LwjCijBSmE21iPD2tYKN65p3iGKuQB5pUZibzVxJatse4 9aLu579J6u183/XABBoCJ/B/ehMZ2LpPrFYAQZ1ImTxWYpPMwVi5QkI0wG8Nl8+kYiPH R+9Q== X-Gm-Message-State: AHQUAuZlsWJ7KNvzg3X97bzY3NTkBR1wrTQPmUK6OLbzdf6JIUjGXfw+ aVgSZhA437Kf3V5D3kLd5mQbrw== X-Received: by 2002:a17:902:b70b:: with SMTP id d11mr23557013pls.178.1550727309029; Wed, 20 Feb 2019 21:35:09 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id l10sm35001421pfc.90.2019.02.20.21.35.03 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Feb 2019 21:35:07 -0800 (PST) From: Baolin Wang To: vkoul@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, arnd@arndb.de Cc: orsonzhai@gmail.com, zhang.lyra@gmail.com, dan.j.williams@intel.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, eric.long@unisoc.com, broonie@kernel.org, baolin.wang@linaro.org Subject: [PATCH v2 1/2] dt-bindings: dmaengine: sprd: Change channel id to slave id for DMA cell specifier Date: Thu, 21 Feb 2019 13:34:40 +0800 Message-Id: <652a8ef9554890c254823ec39858b8d7413fd561.1550719757.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org For Spreadtrum DMA engine, all channels are equal, which means slave can request any channels with setting a unique slave id to trigger this channel. Thus we can remove the channel id from device tree to assign the channel dynamically, moreover we should add the slave id in device tree. Signed-off-by: Baolin Wang --- Changes from v1: - Remove channel id from DT. --- Documentation/devicetree/bindings/dma/sprd-dma.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.7.9.5 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/dma/sprd-dma.txt b/Documentation/devicetree/bindings/dma/sprd-dma.txt index 7a10fea..adccea994 100644 --- a/Documentation/devicetree/bindings/dma/sprd-dma.txt +++ b/Documentation/devicetree/bindings/dma/sprd-dma.txt @@ -31,7 +31,7 @@ DMA clients connected to the Spreadtrum DMA controller must use the format described in the dma.txt file, using a two-cell specifier for each channel. The two cells in order are: 1. A phandle pointing to the DMA controller. -2. The channel id. +2. The slave id. spi0: spi@70a00000{ ...