From patchwork Wed Sep 3 20:44:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 4837631 Return-Path: X-Original-To: patchwork-linux-rockchip@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7B27AC0338 for ; Wed, 3 Sep 2014 20:45:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A45EE2021F for ; Wed, 3 Sep 2014 20:45:30 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D3A512021B for ; Wed, 3 Sep 2014 20:45:29 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XPHQn-0005x3-JO; Wed, 03 Sep 2014 20:45:29 +0000 Received: from mail-pd0-x231.google.com ([2607:f8b0:400e:c02::231]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XPHQS-0004ba-41 for linux-rockchip@lists.infradead.org; Wed, 03 Sep 2014 20:45:08 +0000 Received: by mail-pd0-f177.google.com with SMTP id r10so11763289pdi.22 for ; Wed, 03 Sep 2014 13:44:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=h9qooGWZofH6Zj5Qy0j8y46g9ibzefP9JU7/vEFAjto=; b=NZvmUS4GREqdE7Q/kGhOz0QR8sz2TsKaWnHmTs6Bo6vyLz9LvogTYVwcfUSM3ggOrn 4uVfuOobIctn2s6ZrYaz59131KOiT9W8Y6/qEpXdJTYKM0tANE56ZmWS2MWPKhWDakSb b9oAhrr9dLvpD56vqZg/Hxz2ee4pUrxkw0D2M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=h9qooGWZofH6Zj5Qy0j8y46g9ibzefP9JU7/vEFAjto=; b=b3YvOFs0NDkUe9d0RnnB6ULd4sK2APFBrMTg3DEgQofb63eMH3xoV2Dh2c4EeGsbje 3MnPtocYz/PHVBgX0gCaBHkEZwQsJk0ujauWeOB/Ot8iQO36XI1tksTRDDUc7kAbAQ5k CfbMiUhReB7lyUL/kkrJbAMJUaxUPDIPraKmKyZU17ZBRpYL3blfqR+0ot294pJPi4bs Lz3Mlz0BH5LduQgeTAX6fOQXYs6atwKt9tCAk2Fg8K97RFYfgF2WeZoFs7mYBdPkCSJ+ dW7cb3lKKK+HKdKjNvuG78X6wHT29fL98qI7GJNAnPYTQlqA8nQZyXxFIKne2NIhBMCn xhAg== X-Gm-Message-State: ALoCoQnrXhgkHhwcC6TzHiBFA1kHlqV/aw6PbeGHzedE6nmmlIggU8TirOvT6H5O2Mw6lyIMuJXU X-Received: by 10.66.66.35 with SMTP id c3mr120389pat.108.1409777085643; Wed, 03 Sep 2014 13:44:45 -0700 (PDT) Received: from tictac.mtv.corp.google.com (tictac.mtv.corp.google.com [172.22.162.15]) by mx.google.com with ESMTPSA id qv9sm7597658pbb.86.2014.09.03.13.44.44 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Sep 2014 13:44:45 -0700 (PDT) From: Doug Anderson To: Mark Brown , Addy Ke , Heiko Stuebner Subject: [PATCH 3/3] dt-bindings: spi/rockchip: Mark DMA as optional Date: Wed, 3 Sep 2014 13:44:27 -0700 Message-Id: <1409777067-17422-4-git-send-email-dianders@chromium.org> X-Mailer: git-send-email 2.1.0.rc2.206.gedb03e5 In-Reply-To: <1409777067-17422-1-git-send-email-dianders@chromium.org> References: <1409777067-17422-1-git-send-email-dianders@chromium.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140903_134508_203075_0323330F X-CRM114-Status: UNSURE ( 8.60 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.8 (/) Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, Alexandru Stan , pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, broonie@linaro.org, Doug Anderson , linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, robh+dt@kernel.org, galak@codeaurora.org, Sonny Rao , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The Rockchip SPI controller works fine without DMA (aside from a few warnings). The DMA property even implies this, saying: DMA request names should include "tx" and "rx" if present. Officially mark the properties as optional. Signed-off-by: Doug Anderson --- Documentation/devicetree/bindings/spi/spi-rockchip.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/spi/spi-rockchip.txt b/Documentation/devicetree/bindings/spi/spi-rockchip.txt index 7bab355..467dec4 100644 --- a/Documentation/devicetree/bindings/spi/spi-rockchip.txt +++ b/Documentation/devicetree/bindings/spi/spi-rockchip.txt @@ -16,11 +16,15 @@ Required Properties: - clocks: Must contain an entry for each entry in clock-names. - clock-names: Shall be "spiclk" for the transfer-clock, and "apb_pclk" for the peripheral clock. +- #address-cells: should be 1. +- #size-cells: should be 0. + +Optional Properties: + - dmas: DMA specifiers for tx and rx dma. See the DMA client binding, Documentation/devicetree/bindings/dma/dma.txt - dma-names: DMA request names should include "tx" and "rx" if present. -- #address-cells: should be 1. -- #size-cells: should be 0. + Example: