Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934182AbdCVKhq (ORCPT ); Wed, 22 Mar 2017 06:37:46 -0400 Received: from mail-io0-f193.google.com ([209.85.223.193]:35789 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752276AbdCVKh1 (ORCPT ); Wed, 22 Mar 2017 06:37:27 -0400 MIME-Version: 1.0 In-Reply-To: <1490026491-21742-4-git-send-email-jacopo+renesas@jmondi.org> References: <1490026491-21742-1-git-send-email-jacopo+renesas@jmondi.org> <1490026491-21742-4-git-send-email-jacopo+renesas@jmondi.org> From: Geert Uytterhoeven Date: Wed, 22 Mar 2017 11:35:35 +0100 X-Google-Sender-Auth: ylGkEfTE-575S0DlGoxxF9V5TeM Message-ID: Subject: Re: [PATCH v2 3/7] arm: dts: dt-bindings: Add Renesas RZ pinctrl header To: Jacopo Mondi Cc: Geert Uytterhoeven , Laurent Pinchart , Chris Brandt , Linus Walleij , Rob Herring , Mark Rutland , Russell King , Linux-Renesas , "linux-gpio@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2172 Lines: 74 On Mon, Mar 20, 2017 at 5:14 PM, Jacopo Mondi wrote: > Add dt-bindings for Renesas r7s72100 pin controller header file. > > Signed-off-by: Jacopo Mondi > --- > include/dt-bindings/pinctrl/r7s72100-pinctrl.h | 36 ++++++++++++++++++++++++++ > 1 file changed, 36 insertions(+) > create mode 100644 include/dt-bindings/pinctrl/r7s72100-pinctrl.h > > diff --git a/include/dt-bindings/pinctrl/r7s72100-pinctrl.h b/include/dt-bindings/pinctrl/r7s72100-pinctrl.h > new file mode 100644 > index 0000000..98852d3 > --- /dev/null > +++ b/include/dt-bindings/pinctrl/r7s72100-pinctrl.h > @@ -0,0 +1,36 @@ > +/* > + * Defines macros and constants for Renesas RZ/A1 pin controller pin > + * muxing functions. > + */ > +#ifndef __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H > +#define __DT_BINDINGS_PINCTRL_RENESAS_RZA1_H > + > +#define RZA1_PINS_PER_PORT 16 > + > +/* Create the pin index from it's bank and position numbers */ its bank > +#define PIN(b, p) ((b) * RZA1_PINS_PER_PORT + (p)) > + > +/* > + * Flags to apply to alternate function configuration > + * All of the following are mutually exclusive. > + */ > + > +/* > + * Pin is bi-directional. > + * Alternate function that need both input/outpu functionalities shall An alternate function that needs ... output > + * be configured as bidirectional. > + * Eg. SDA/SCL pins of an I2c interface. > + */ > +#define BI_DIR (1 << 3) > + > +/* > + * Flags used to ask software drive the pin I/O direction overriding the to drive > + * alternate function configuration. > + * Some alternate function requires software to force I/O direction of a pin, functions require > + * ovverriding the designated one. overriding > + * Reference to the HW manual to know when this flag shall be used. Refer Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds