From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell King - ARM Linux Subject: Re: [PATCH linux v1 4/4] arm: dts: Add dt-binding to support seven segment display on zaius Date: Wed, 14 Dec 2016 11:06:35 +0000 Message-ID: <20161214110635.GB14217@n2100.armlinux.org.uk> References: <1481702104-8617-1-git-send-email-jaghu@google.com> <1481702104-8617-5-git-send-email-jaghu@google.com> <3917905.e4iOqADnVQ@wuerfel> <10697525.O7CkPN6Gfl@wuerfel> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <10697525.O7CkPN6Gfl@wuerfel> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Arnd Bergmann Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Jaghathiswari Rankappagounder Natarajan , openbmc-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, mark.rutland-5wv7dgnIgG8@public.gmane.org, gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org, joel-U3u1mxZcP9KHXe+LvDLADg@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, "linux-gpio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org List-Id: linux-gpio@vger.kernel.org On Wed, Dec 14, 2016 at 10:00:46AM +0100, Arnd Bergmann wrote: > On Wednesday, December 14, 2016 9:55:47 AM CET Arnd Bergmann wrote: > > According to your introductory mail, the interface is assumed to be > > a 74HC164. Should we use that ID in the compatible string? > > > > We can always add other strings later if we want to support multiple > > wire formats. > > Actually, looking up 74hc164, that seems to be a gpio expander, > so maybe a more flexible way to do the same is to put a driver > for the expander into drivers/gpio/ and have the main driver > access the outputs of that using the gpiolib interface. There already is - drivers/gpio/gpio-74x164.c -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net. -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932463AbcLNLHG (ORCPT ); Wed, 14 Dec 2016 06:07:06 -0500 Received: from pandora.armlinux.org.uk ([78.32.30.218]:51406 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932179AbcLNLHF (ORCPT ); Wed, 14 Dec 2016 06:07:05 -0500 Date: Wed, 14 Dec 2016 11:06:35 +0000 From: Russell King - ARM Linux To: Arnd Bergmann Cc: linux-arm-kernel@lists.infradead.org, Jaghathiswari Rankappagounder Natarajan , openbmc@lists.ozlabs.org, robh+dt@kernel.org, mark.rutland@arm.com, gregkh@linuxfoundation.org, joel@jms.id.au, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, "linux-gpio@vger.kernel.org" , linus.walleij@linaro.org Subject: Re: [PATCH linux v1 4/4] arm: dts: Add dt-binding to support seven segment display on zaius Message-ID: <20161214110635.GB14217@n2100.armlinux.org.uk> References: <1481702104-8617-1-git-send-email-jaghu@google.com> <1481702104-8617-5-git-send-email-jaghu@google.com> <3917905.e4iOqADnVQ@wuerfel> <10697525.O7CkPN6Gfl@wuerfel> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <10697525.O7CkPN6Gfl@wuerfel> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 14, 2016 at 10:00:46AM +0100, Arnd Bergmann wrote: > On Wednesday, December 14, 2016 9:55:47 AM CET Arnd Bergmann wrote: > > According to your introductory mail, the interface is assumed to be > > a 74HC164. Should we use that ID in the compatible string? > > > > We can always add other strings later if we want to support multiple > > wire formats. > > Actually, looking up 74hc164, that seems to be a gpio expander, > so maybe a more flexible way to do the same is to put a driver > for the expander into drivers/gpio/ and have the main driver > access the outputs of that using the gpiolib interface. There already is - drivers/gpio/gpio-74x164.c -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net. From mboxrd@z Thu Jan 1 00:00:00 1970 From: linux@armlinux.org.uk (Russell King - ARM Linux) Date: Wed, 14 Dec 2016 11:06:35 +0000 Subject: [PATCH linux v1 4/4] arm: dts: Add dt-binding to support seven segment display on zaius In-Reply-To: <10697525.O7CkPN6Gfl@wuerfel> References: <1481702104-8617-1-git-send-email-jaghu@google.com> <1481702104-8617-5-git-send-email-jaghu@google.com> <3917905.e4iOqADnVQ@wuerfel> <10697525.O7CkPN6Gfl@wuerfel> Message-ID: <20161214110635.GB14217@n2100.armlinux.org.uk> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wed, Dec 14, 2016 at 10:00:46AM +0100, Arnd Bergmann wrote: > On Wednesday, December 14, 2016 9:55:47 AM CET Arnd Bergmann wrote: > > According to your introductory mail, the interface is assumed to be > > a 74HC164. Should we use that ID in the compatible string? > > > > We can always add other strings later if we want to support multiple > > wire formats. > > Actually, looking up 74hc164, that seems to be a gpio expander, > so maybe a more flexible way to do the same is to put a driver > for the expander into drivers/gpio/ and have the main driver > access the outputs of that using the gpiolib interface. There already is - drivers/gpio/gpio-74x164.c -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net.