From patchwork Tue Dec 6 16:34:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 9462895 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 3CE3460231 for ; Tue, 6 Dec 2016 16:35:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2CE43283EC for ; Tue, 6 Dec 2016 16:35:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1E9422843C; Tue, 6 Dec 2016 16:35:25 +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 8C2C4283EC for ; Tue, 6 Dec 2016 16:35:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752097AbcLFQfV (ORCPT ); Tue, 6 Dec 2016 11:35:21 -0500 Received: from 7.mo178.mail-out.ovh.net ([46.105.58.91]:60816 "EHLO 7.mo178.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751762AbcLFQfR (ORCPT ); Tue, 6 Dec 2016 11:35:17 -0500 X-Greylist: delayed 112249 seconds by postgrey-1.27 at vger.kernel.org; Tue, 06 Dec 2016 11:35:16 EST Received: from player793.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo178.mail-out.ovh.net (Postfix) with ESMTP id 0748AAF8B for ; Tue, 6 Dec 2016 17:34:38 +0100 (CET) Received: from w540.lan (93-34-114-119.ip49.fastwebnet.it [93.34.114.119]) (Authenticated sender: jacopo@jmondi.org) by player793.ha.ovh.net (Postfix) with ESMTPSA id A99E44007B; Tue, 6 Dec 2016 17:34:35 +0100 (CET) From: Jacopo Mondi To: wsa+renesas@sang-engineering.com, magnus.damm@gmail.com Cc: linux-renesas-soc@vger.kernel.org Subject: [RFC] dts: arm: renesas: koelsh: Add MAX11100 device Date: Tue, 6 Dec 2016 17:34:31 +0100 Message-Id: <1481042071-18659-1-git-send-email-jacopo@jmondi.org> X-Mailer: git-send-email 2.7.4 X-Ovh-Tracer-Id: 16761553389314241429 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeelfedrhedtgdegtdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemuceftddtnecu 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 node to test MAX11100 ADC with LED28 connected to the chip input line. The ADC sits on a gpio-spi master. Signed-off-by: Jacopo Mondi --- Sending as RFC only, not for inclusion. Used to test MAX11100 ADC driver currently connected to Koelsch GPIO expander. Adding LED28 as ADC input line. --- arch/arm/boot/dts/r8a7791-koelsch.dts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index 5405d33..ac8f10d 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -170,6 +170,27 @@ gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>; label = "LED8"; }; + led28 { + gpios = <&gpio5 28 GPIO_ACTIVE_HIGH>; + label = "LED28"; + }; + }; + + spi_gpio: spi-gpio { + compatible = "spi-gpio"; + #address-cells = <1>; + #size-cells = <0>; + gpio-sck = <&gpio5 27 GPIO_ACTIVE_HIGH>; + gpio-miso = <&gpio5 25 GPIO_ACTIVE_HIGH>; + num-chipselects = <1>; + cs-gpios = <&gpio5 26 GPIO_ACTIVE_LOW>; + status = "okay"; + + spi@0 { + compatible = "maxim,max11100"; + reg = <0>; + spi-max-frequency = <2500000>; + }; }; vcc_sdhi0: regulator-vcc-sdhi0 {