public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: robh@kernel.org (Rob Herring)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 12/18] dt-bindings: Add PLX Technology OXNAS pinctrl and gpio bindings
Date: Fri, 25 Mar 2016 09:48:34 -0500	[thread overview]
Message-ID: <20160325144834.GA27177@rob-hp-laptop> (raw)
In-Reply-To: <1458838215-23314-13-git-send-email-narmstrong@baylibre.com>

On Thu, Mar 24, 2016 at 05:50:09PM +0100, Neil Armstrong wrote:
> Add pinctrl and gpio DT bindings for PLX Technology OXNAS SoC Family.
> This version supports the ARM926EJ-S based OX810SE SoC with 34 IO pins.
> 
> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
> ---
>  .../devicetree/bindings/gpio/gpio_oxnas.txt        | 47 ++++++++++++++++++
>  .../bindings/pinctrl/plxtech,pinctrl.txt           | 57 ++++++++++++++++++++++
>  2 files changed, 104 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/gpio/gpio_oxnas.txt
>  create mode 100644 Documentation/devicetree/bindings/pinctrl/plxtech,pinctrl.txt
> 
> diff --git a/Documentation/devicetree/bindings/gpio/gpio_oxnas.txt b/Documentation/devicetree/bindings/gpio/gpio_oxnas.txt
> new file mode 100644
> index 0000000..4530fa9
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/gpio/gpio_oxnas.txt
> @@ -0,0 +1,47 @@
> +* PLX Technology OXNAS SoC GPIO Controller
> +
> +Required properties:
> + - compatible: "oxsemi,ox810se-gpio"
> + - reg: Base address and length for the device.
> + - interrupts: The port interrupt shared by all pins.
> + - gpio-controller: Marks the port as GPIO controller.
> + - #gpio-cells: Two. The first cell is the pin number and
> +   the second cell is used to specify the gpio polarity as defined in
> +   defined in <dt-bindings/gpio/gpio.h>:
> +      0 = GPIO_ACTIVE_HIGH
> +      1 = GPIO_ACTIVE_LOW
> + - interrupt-controller: Marks the device node as an interrupt controller.
> + - #interrupt-cells: Two. The first cell is the GPIO number and second cell
> +   is used to specify the trigger type as defined in
> +   <dt-bindings/interrupt-controller/irq.h>:
> +      IRQ_TYPE_EDGE_RISING
> +      IRQ_TYPE_EDGE_FALLING
> +      IRQ_TYPE_EDGE_BOTH
> + - plxtech,gpio-bank: Specifies which bank a controller owns.

How is this used?

> + - gpio-ranges: Interaction with the PINCTRL subsystem.
> + - ngpios: Specifies the gpio lines count in this specific bank.
> +
> +Example:
> +
> +gpio0: gpio at 0 {
> +	compatible = "oxsemi,ox810se-gpio";
> +	reg = <0x000000 0x100000>;
> +	interrupts = <21>;
> +	#gpio-cells = <2>;
> +	gpio-controller;
> +	interrupt-controller;
> +	#interrupt-cells = <2>;
> +	plxtech,gpio-bank = <0>;
> +	gpio-ranges = <&pinctrl 0 0 32>;
> +	ngpios = <32>;

Is 32 the max? It should not be needed then.

> +};
> +
> +keys {
> +	...
> +
> +	button at sw1 {

sw1 is not a unit-address. Just do "sw1-button".

> +		label = "ESC";
> +		linux,code = <1>;
> +		gpios = <&gpio0 12 0>;
> +	};
> +};

  reply	other threads:[~2016-03-25 14:48 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-24 16:49 [PATCH v3 00/18] Add Initial support for PLX Technology OX810SE Neil Armstrong
2016-03-24 16:49 ` [PATCH v3 01/18] clocksource: sp804: Add support for OX810SE 24bit timer width Neil Armstrong
2016-03-29 14:37   ` Daniel Lezcano
2016-03-24 16:49 ` [PATCH v3 02/18] dt-bindings: timer: sp804: add new compatible for OX810SE SoC Neil Armstrong
2016-03-25 14:40   ` Rob Herring
2016-03-24 16:50 ` [PATCH v3 03/18] irqchip: versatile-fpga: " Neil Armstrong
2016-03-24 17:11   ` Marc Zyngier
2016-03-24 16:50 ` [PATCH v3 04/18] dt-bindings: irq: arm, versatile-fpga: add compatible string " Neil Armstrong
2016-03-25 14:41   ` [PATCH v3 04/18] dt-bindings: irq: arm,versatile-fpga: " Rob Herring
2016-03-24 16:50 ` [PATCH v3 05/18] dt-bindings: vendor-prefixes: Add PLX Technology Neil Armstrong
2016-03-24 16:50 ` [PATCH v3 06/18] dt-bindings: Add Oxford Semiconductors to vendor prefixes Neil Armstrong
2016-03-24 16:50 ` [PATCH v3 07/18] reset: Add PLX Technology Reset Controller driver Neil Armstrong
2016-03-24 16:50 ` [PATCH v3 08/18] dt-bindings: Add PLX Technology Reset Controller bindings Neil Armstrong
2016-03-30 14:19   ` Philipp Zabel
2016-03-24 16:50 ` [PATCH v3 09/18] clk: Add PLX Technology OXNAS Standard Clocks Neil Armstrong
2016-03-24 16:50 ` [PATCH v3 10/18] dt-bindings: Add PLX Technology OXNAS Standard Clocks bindings Neil Armstrong
2016-03-24 16:50 ` [PATCH v3 11/18] pinctrl: Add PLX Technology OXNAS pinctrl and gpio driver Neil Armstrong
2016-03-24 16:50 ` [PATCH v3 12/18] dt-bindings: Add PLX Technology OXNAS pinctrl and gpio bindings Neil Armstrong
2016-03-25 14:48   ` Rob Herring [this message]
2016-03-31  8:58     ` Linus Walleij
2016-03-31 13:36       ` Rob Herring
2016-04-01 14:30         ` Neil Armstrong
2016-04-01 15:19           ` Rob Herring
2016-04-01 15:48             ` Neil Armstrong
2016-04-08 11:16               ` Linus Walleij
2016-04-08 11:14         ` Linus Walleij
2016-03-31  8:55   ` Linus Walleij
2016-03-24 16:50 ` [PATCH v3 13/18] arm: Add new mach-oxnas Neil Armstrong
2016-03-24 16:50 ` [PATCH v3 14/18] arm: Add build support for mach-oxnas Neil Armstrong
2016-03-29 13:01   ` Arnd Bergmann
2016-03-24 16:50 ` [PATCH v3 15/18] arm: boot: dts: Add PLX Technology OX810SE dtsi Neil Armstrong
2016-03-24 16:50 ` [PATCH v3 16/18] dt-bindings: Add OXNAS bindings Neil Armstrong
2016-03-25 14:48   ` Rob Herring
2016-03-24 16:50 ` [PATCH v3 17/18] dt-bindings: Add Western Digital to vendor prefixes Neil Armstrong
2016-03-24 16:50 ` [PATCH v3 18/18] arm: boot: dts: Add Western Digital My Book World Edition device tree Neil Armstrong
2016-03-29 13:07 ` [PATCH v3 00/18] Add Initial support for PLX Technology OX810SE Arnd Bergmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160325144834.GA27177@rob-hp-laptop \
    --to=robh@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox