From patchwork Sun Jul 6 04:05:18 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: 4489311 X-Patchwork-Delegate: vinod.koul@intel.com Return-Path: X-Original-To: patchwork-dmaengine@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 07EFC9F1AC for ; Sun, 6 Jul 2014 04:33:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 35EB820295 for ; Sun, 6 Jul 2014 04:33:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 50EA720266 for ; Sun, 6 Jul 2014 04:33:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751338AbaGFEdz (ORCPT ); Sun, 6 Jul 2014 00:33:55 -0400 Received: from yotta.elopez.com.ar ([31.220.24.173]:54355 "EHLO yotta.elopez.com.ar" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750912AbaGFEdy (ORCPT ); Sun, 6 Jul 2014 00:33:54 -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=Edz4FkwHshBhTMsH4gx1zUyQHZNwE7oCFYAbcNGSDUw=; b=IjdV0DIRXABqf/elxhR39LJtx5LMBWpOTFTjHVZmOL4gzTSTT7OP1lxZ/C3h2yFF/eO+3EqjLC/J5XQf50Y9/h63j7sM/cEfkMZeKSuQbV57aLL9ta21uB2P4PjUtjk3S3zJ7sejRKnZ6+rRJywLFD1EJ68PPRT3zgxgjoBkcPzfMYKvDH7WQl8rYAmTX01kt8Up5Bs7ZmyuMT0AIC9+vtmy76ehCmeExA+1NTfBR4U2p+82gtZBG4BsQp0xXM2vtg+STl9xGeHNV7xvkKH/t3dTHopGDjyZWh2oN+bLAwG3cDtpjQrJxsMCGI8YKZLEwBnCQe9EnjPB7G71FdxXOg==; Received: from [181.164.71.8] (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 1X3dkH-0001kf-AS; Sun, 06 Jul 2014 01:08:09 -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, Chen-Yu Tsai , =?UTF-8?q?Emilio=20L=C3=B3pez?= Subject: [PATCH v2 11/8] ARM: sun5i: a10s-olinuxino-micro: add an SPIdev device for testing Date: Sun, 6 Jul 2014 01:05:18 -0300 Message-Id: <1404619518-7592-12-git-send-email-emilio@elopez.com.ar> X-Mailer: git-send-email 2.0.1 In-Reply-To: <1404619518-7592-1-git-send-email-emilio@elopez.com.ar> References: <1404619518-7592-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/sun5i-a10s-olinuxino-micro.dts | 12 ++++++++++++ arch/arm/boot/dts/sun5i-a10s.dtsi | 7 +++++++ 2 files changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts b/arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts index ea9519d..3f19e57 100644 --- a/arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts +++ b/arch/arm/boot/dts/sun5i-a10s-olinuxino-micro.dts @@ -68,6 +68,18 @@ status = "okay"; }; + spi2: spi@01c17000 { + pinctrl-names = "default"; + pinctrl-0 = <&spi2_pins_a>; + status = "okay"; + + dac0: dh2228@2 { + compatible = "rohm,dh2228fv"; + reg = <2>; + spi-max-frequency = <100000>; + }; + }; + pinctrl@01c20800 { mmc0_cd_pin_olinuxino_micro: mmc0_cd_pin@0 { allwinner,pins = "PG1"; diff --git a/arch/arm/boot/dts/sun5i-a10s.dtsi b/arch/arm/boot/dts/sun5i-a10s.dtsi index 12f26f3..814cddb 100644 --- a/arch/arm/boot/dts/sun5i-a10s.dtsi +++ b/arch/arm/boot/dts/sun5i-a10s.dtsi @@ -506,6 +506,13 @@ allwinner,drive = <2>; allwinner,pull = <0>; }; + + spi2_pins_a: spi2@0 { + allwinner,pins = "PB11", "PB12", "PB13", "PB14"; + allwinner,function = "spi2"; + allwinner,drive = <0>; + allwinner,pull = <0>; + }; }; timer@01c20c00 {