From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755421AbbCFLhO (ORCPT ); Fri, 6 Mar 2015 06:37:14 -0500 Received: from mail-ob0-f177.google.com ([209.85.214.177]:46881 "EHLO mail-ob0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754407AbbCFLhJ (ORCPT ); Fri, 6 Mar 2015 06:37:09 -0500 MIME-Version: 1.0 In-Reply-To: <1424744104-14151-2-git-send-email-abrestic@chromium.org> References: <1424744104-14151-1-git-send-email-abrestic@chromium.org> <1424744104-14151-2-git-send-email-abrestic@chromium.org> Date: Fri, 6 Mar 2015 12:37:09 +0100 Message-ID: Subject: Re: [PATCH 1/2] pinctrl: Add Pistachio SoC pin control binding document From: Linus Walleij To: Andrew Bresticker Cc: Alexandre Courbot , Ralf Baechle , "devicetree@vger.kernel.org" , "linux-gpio@vger.kernel.org" , Linux MIPS , "linux-kernel@vger.kernel.org" , Ezequiel Garcia , James Hartley , James Hogan , Damien Horsley , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 24, 2015 at 3:15 AM, Andrew Bresticker wrote: > Add a device-tree binding document for the pin controller present > on the IMG Pistachio SoC. > > Signed-off-by: Damien Horsley > Signed-off-by: Andrew Bresticker (...) > +Note that the GPIO bank sub-nodes *must* be listed in order. Usually we use aliases to mark the order of things. e.g.: aliases { gpio0 = &gpio0; gpio1 = &gpio1; gpio2 = &gpio2; ethernet0 = ð0; ethernet1 = ð1; }; (arch/arm/boot/dts/armada-375.dtsi) > +Required properties for pin configuration sub-nodes: > +---------------------------------------------------- > + - pins: List of pins to which the configuration applies. See below for a > + list of possible pins. > + > +Optional properties for pin configuration sub-nodes: > +---------------------------------------------------- > + - function: Mux function for the specified pins. This is not applicable for > + non-MFIO pins. See below for a list of valid functions for each pin. > + - bias-high-impedance: Enable high-impedance mode. > + - bias-pull-up: Enable weak pull-up. > + - bias-pull-down: Enable weak pull-down. > + - bias-bus-hold: Enable bus-keeper mode. > + - drive-strength: Drive strength in mA. Supported values: 2, 4, 8, 12. > + - input-schmitt-enable: Enable Schmitt trigger. > + - input-schmitt-disable: Disable Schmitt trigger. > + - slew-rate: Slew rate control. 0 for slow, 1 for fast. We actually haven't specified that function+pins is a valid pattern, a lot of drivers just started doing that :( function+groups is documented for muxing. group + config opts is documented for config. Please consider patching the generic bindings to reflect this mux use of pins... We need to discuss it. Yours, Linus Walleij