From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Walleij Subject: Re: [PATCH] leds: pca955x: add GPIO support Date: Tue, 23 May 2017 10:18:31 +0200 Message-ID: References: <1494311772-21872-1-git-send-email-clg@kaod.org> <20b94199-a154-53cd-96d1-910ae3de1085@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: In-Reply-To: <20b94199-a154-53cd-96d1-910ae3de1085-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Jacek Anaszewski Cc: =?UTF-8?Q?C=C3=A9dric_Le_Goater?= , Richard Purdie , Pavel Machek , Rob Herring , Mark Rutland , "linux-leds-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Joel Stanley List-Id: devicetree@vger.kernel.org On Thu, May 11, 2017 at 10:23 PM, Jacek Anaszewski wrote: >> +Optional properties: >> +- gpio-controller: allows pins to be used as GPIOs. Are these output-only? Then write something about that. >> +- #gpio-cells: if present, must not be 0. Must be present and must be <2> >> +- gpio-base : base number of the pins used as GPIOs. If there are more >> + than one, they should be contiguous. See 'type' property >> + below. NACK. Not in my life. Provide -1 in the Linux driver and use the ioctl() from userspace to look up your gpios. Add .names array to the gpiochip if necessary, define line names in the device tree for the board. Consult tools/gpio/* for the modern way of using GPIOs. Yours, Linus Walleij -- 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