[PATCH 1/9] sh-pfc: Add OF support

Tony Prisk linux at prisktech.co.nz
Fri Jan 4 12:12:06 EST 2013


On Fri, 2013-01-04 at 01:40 +0100, Laurent Pinchart wrote:
> +- #gpio-cells: Should be 2. The first cell is the pin number and the second cell
> +  is used to specify optional parameters (currently unused).
...
> +	gpio: pfc at e6050000 {
> +		compatible = "renesas,pfc-sh73a0";
> +		reg = <0xe6050000 0x8000>,
> +		      <0xe605801c 0x1c>;
> +		gpio-controller;
> +		#gpio-cells = <2>;
> +	};
> +
> +Example 2: A GPIO LED node that references a GPIO
> +
> +	leds {
> +		compatible = "gpio-leds";
> +		led1 {
> +			gpios = <&gpio 20 1>; /* Active low */
> +		};
> +	};
> +

The second cell of gpio is '(currently unused)' but the example shows it
being used?

Regards
Tony Prisk



More information about the devicetree-discuss mailing list