From patchwork Mon Jun 16 03:50:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Emilio_L=C3=B3pez?= X-Patchwork-Id: 4356011 Return-Path: X-Original-To: patchwork-dmaengine@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 D0869BEEAA for ; Mon, 16 Jun 2014 03:53:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 079BB2020E for ; Mon, 16 Jun 2014 03:53:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 20B182015D for ; Mon, 16 Jun 2014 03:53:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752834AbaFPDxa (ORCPT ); Sun, 15 Jun 2014 23:53:30 -0400 Received: from yotta.elopez.com.ar ([31.220.24.173]:58448 "EHLO yotta.elopez.com.ar" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752495AbaFPDxa (ORCPT ); Sun, 15 Jun 2014 23:53:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=elopez.com.ar; s=mail; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=qQ6Twr8uDjx+zSlQz5HxNRC52bnt/vLAFiLdNkelpNc=; b=sQh6x4rZ2dYcn+/ngzZh8hWWbWBmPUJ6+8uEg5P2NLtjdrn/ag86QP/IAMs57YMRblOC9eTb5USy6Uo9S3EEYXN/LpvdaQqVjq4Pc7EgissPIz03G8lZMcbmH4REWFrzKdYj1KusTNW0U3WZ6yxgKQM+QFnQ6szXw7w1VOUPldl8kLII29klEt7m+EXPJk8aemVUAnR8PKLWiH4H6xWMj4UTz2a7foZU2sHlirmLvJZedM70f1xEwTfSStxjHBajtdZV0yZt4HU4FFYT5Ic2hYlbjGGHKOKRYC4V1T2ybCRWYY4D/F1+1bUwH0xCSVwnt8Z0AXhScmHd8pPrWMHndQ==; Received: from 200-122-75-123.cab.prima.net.ar ([200.122.75.123] helo=desktop.lan) by yotta.elopez.com.ar with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_CBC_SHA256:128) (Exim 4.82_1-5b7a7c0-XX) id 1WwNz5-0005L1-GM; Mon, 16 Jun 2014 00:53:27 -0300 From: =?UTF-8?q?Emilio=20L=C3=B3pez?= To: Maxime Ripard , vinod.koul@intel.com, dan.j.williams@intel.com Cc: Ezequiel Garcia , , , shuge@allwinnertech.com, sunny@allwinnertech.com, kevin.z.m.zh@gmail.com, zhuzhenhua@allwinnertech.com, =?UTF-8?q?Emilio=20L=C3=B3pez?= Subject: [PATCH 09/10] ARM: sun4i: cubieboard: add an SPIdev device for testing Date: Mon, 16 Jun 2014 00:50:34 -0300 Message-Id: <1402890635-12342-10-git-send-email-emilio@elopez.com.ar> X-Mailer: git-send-email 2.0.0 In-Reply-To: <1402890635-12342-1-git-send-email-emilio@elopez.com.ar> References: <1402890635-12342-1-git-send-email-emilio@elopez.com.ar> Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,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 --- arch/arm/boot/dts/sun4i-a10-cubieboard.dts | 12 ++++++++++++ arch/arm/boot/dts/sun4i-a10.dtsi | 7 +++++++ 2 files changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts index 4684cbe..9b8d6b0 100644 --- a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts +++ b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts @@ -61,6 +61,18 @@ status = "okay"; }; + spi0: spi@01c05000 { + pinctrl-names = "default"; + pinctrl-0 = <&spi0_pins_a>; + status = "okay"; + + dac0: dh2228@2 { + compatible = "rohm,dh2228fv"; + reg = <2>; + spi-max-frequency = <100000>; + }; + }; + pinctrl@01c20800 { led_pins_cubieboard: led_pins@0 { allwinner,pins = "PH20", "PH21"; diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi index c66c39e..aefde20 100644 --- a/arch/arm/boot/dts/sun4i-a10.dtsi +++ b/arch/arm/boot/dts/sun4i-a10.dtsi @@ -535,6 +535,13 @@ allwinner,pull = <0>; }; + spi0_pins_a: spi0@0 { + allwinner,pins = "PI10", "PI11", "PI12", "PI13"; + allwinner,function = "spi0"; + allwinner,drive = <0>; + allwinner,pull = <0>; + }; + emac_pins_a: emac0@0 { allwinner,pins = "PA0", "PA1", "PA2", "PA3", "PA4", "PA5", "PA6",