Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 85cd7467 authored by Ernst Schwab's avatar Ernst Schwab Committed by Grant Likely
Browse files

powerpc/of: added documentation for spi chipselects



Added devicetree binding documentation for gpios used as chipselect. The
code to evaluate these is already present in spi_mpc8xxx.c.

Signed-off-by: default avatarErnst Schwab <eschwab@online.de>
Reviewed-by: default avatarWolfram Sang <w.sang@pengutronix.de>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent e9cb0a49
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -13,6 +13,11 @@ Required properties:
- interrupt-parent : the phandle for the interrupt controller that
- interrupt-parent : the phandle for the interrupt controller that
  services interrupts for this device.
  services interrupts for this device.


Optional properties:
- gpios : specifies the gpio pins to be used for chipselects.
  The gpios will be referred to as reg = <index> in the SPI child nodes.
  If unspecified, a single SPI device without a chip select can be used.

Example:
Example:
	spi@4c0 {
	spi@4c0 {
		cell-index = <0>;
		cell-index = <0>;
@@ -21,4 +26,6 @@ Example:
		interrupts = <82 0>;
		interrupts = <82 0>;
		interrupt-parent = <700>;
		interrupt-parent = <700>;
		mode = "cpu";
		mode = "cpu";
		gpios = <&gpio 18 1	// device reg=<0>
			 &gpio 19 1>;	// device reg=<1>
	};
	};