Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752189AbaG0Xfr (ORCPT ); Sun, 27 Jul 2014 19:35:47 -0400 Received: from mail-we0-f172.google.com ([74.125.82.172]:41104 "EHLO mail-we0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751509AbaG0Xfg convert rfc822-to-8bit (ORCPT ); Sun, 27 Jul 2014 19:35:36 -0400 Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: [PATCH 2/2] V3 ARM: mvebu: Added dts defintion for Lenovo Iomega ix4-300d NAS From: Benoit Masson In-Reply-To: <20140727223258.36b050b9@free-electrons.com> Date: Mon, 28 Jul 2014 01:35:35 +0200 Cc: Benoit Masson , Rob Herring , Pawel Moll , Ian Campbell , Kumar Gala , Russell King , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, gregory.clement@free-electrons.com, andrew@lunn.ch, sebastian.hesselbarth@googlemail.com, jason@lakedaemon.net Content-Transfer-Encoding: 8BIT Message-Id: References: <1406418490-61502-1-git-send-email-yahoo@perenite.com> <20140727223258.36b050b9@free-electrons.com> To: Thomas Petazzoni X-Mailer: Apple Mail (2.1878.6) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 27 juil. 2014 ? 22:32, Thomas Petazzoni a ?crit : > Dear Benoit Masson, > Dear Thomas, > On Sat, 26 Jul 2014 16:48:10 -0700, Benoit Masson wrote: > >> + gpio-keys { >> + compatible = "gpio-keys"; >> + pinctrl-0 = <&power_button_pin &reset_button_pin >> + &select_button_pin &scroll_button_pin>; >> + pinctrl-names = "default"; >> + >> + power-button { >> + label = "Power Button"; >> + linux,code = ; >> + gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>; >> + }; >> + >> + reset-button { >> + label = "Reset Button"; >> + linux,code = ; >> + gpios = <&gpio1 13 GPIO_ACTIVE_LOW>; >> + }; >> + >> + select-button { >> + label = "Select Button"; >> + linux,code = ; >> + gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; >> + }; >> + >> + scroll-button { >> + label = "Scroll Button"; >> + linux,code = ; >> + gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; > > So you're using the GPIO_ACTIVE_ defines here. > >> + }; >> + }; >> + >> + spi3 { >> + compatible = "spi-gpio"; >> + status = "okay"; >> + gpio-sck = <&gpio0 25 0>; >> + gpio-mosi = <&gpio1 15 0>; /*gpio 47*/ >> + cs-gpios = <&gpio0 27 0 >; > > But not here. Any reason? Indeed I think Jason made this comment already and I seem to have missed -> Corrected in V4 > > Also, nitpick: unneeded space in <&gpio0 27 0 > (i.e the space right > before the closing >). > -> Corrected in V4 >> + num-chipselects = <1>; >> + #address-cells = <1>; >> + #size-cells = <0>; >> + >> + gpio2: gpio2@0 { >> + compatible = "fairchild,74hc595"; >> + gpio-controller; >> + #gpio-cells = <2>; >> + reg = <0>; >> + registers-number = <2>; >> + spi-max-frequency = <100000>; >> + }; > > I'm not sure "gpio2" is a good name, as we might think of it as being > the third GPIO controller internal to the SoC. > Renamed to gpio_spi, tested ok -> Corrected in V4 > Thanks, > You're welcome, patch issued as V4 just now. > Thomas > -- > Thomas Petazzoni, CTO, Free Electrons > Embedded Linux, Kernel and Android engineering > http://free-electrons.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/