From patchwork Mon Dec 5 09:20:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 9460703 X-Patchwork-Delegate: horms@verge.net.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7BF476022E for ; Mon, 5 Dec 2016 09:48:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6EC6720951 for ; Mon, 5 Dec 2016 09:48:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6354424B44; Mon, 5 Dec 2016 09:48:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C969320951 for ; Mon, 5 Dec 2016 09:48:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751836AbcLEJkl (ORCPT ); Mon, 5 Dec 2016 04:40:41 -0500 Received: from 7.mo68.mail-out.ovh.net ([46.105.63.230]:42927 "EHLO 7.mo68.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751496AbcLEJjZ (ORCPT ); Mon, 5 Dec 2016 04:39:25 -0500 Received: from player711.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo68.mail-out.ovh.net (Postfix) with ESMTP id 7A4FE166E6 for ; Mon, 5 Dec 2016 10:20:20 +0100 (CET) Received: from w540.lan (93-34-114-119.ip49.fastwebnet.it [93.34.114.119]) (Authenticated sender: jacopo@jmondi.org) by player711.ha.ovh.net (Postfix) with ESMTPSA id 05727380076; Mon, 5 Dec 2016 10:20:16 +0100 (CET) From: Jacopo Mondi To: magnus.damm@gmail.com, geert+renesas@glider.be Cc: linux-renesas-soc@vger.kernel.org Subject: [RFCv2 2/2] dts: arm: genmai: Add MAXDESREF4x spidev Date: Mon, 5 Dec 2016 10:20:05 +0100 Message-Id: <1480929605-28564-3-git-send-email-jacopo@jmondi.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1480929605-28564-1-git-send-email-jacopo@jmondi.org> References: <1480693434-9415-1-git-send-email-jacopo@jmondi.org> <1480929605-28564-1-git-send-email-jacopo@jmondi.org> X-Ovh-Tracer-Id: 3554466008424575823 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeelfedrgeejgdeigecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemuceftddtnecu Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add device node for the MAX11100 evaluation board connected to Genmai's CN2. The evaluation kit is connected to 3 GPIO lines configured as bitbanged SPI master interface. Signed-off-by: Jacopo Mondi --- arch/arm/boot/dts/r7s72100-genmai.dts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/r7s72100-genmai.dts b/arch/arm/boot/dts/r7s72100-genmai.dts index 233908b..659efbf 100644 --- a/arch/arm/boot/dts/r7s72100-genmai.dts +++ b/arch/arm/boot/dts/r7s72100-genmai.dts @@ -46,6 +46,23 @@ }; }; + spi-gpio { + compatible = "spi-gpio"; + #address-cells = <1>; + #size-cells = <0>; + + gpio-miso = <&port11 10 GPIO_ACTIVE_HIGH>; + gpio-sck = <&port11 9 GPIO_ACTIVE_HIGH>; + num-chipselects = <1>; + cs-gpios = <&port11 11 GPIO_ACTIVE_HIGH>; + status = "ok"; + + maxrefdes4x@0 { + compatible = "spidev"; + reg = <0>; + spi-max-frequency = <240000>; + }; + }; }; &extal_clk { @@ -123,3 +140,7 @@ spi-max-frequency = <5000000>; }; }; + +&port11 { + status = "okay"; +};