Skip to content

Commit 94409d6

Browse files
Anton Vorontsovkumargala
authored andcommitted
powerpc: Add device tree bindings for BCSR GPIO banks
The patch adds bindings for BCSR GPIO banks, the bindings are used to describe particular BCSR registers that act as simple GPIO controllers. These GPIO banks might control power switches, SPI chip-selects, LEDs, etc. While at it, also fix "length" spelling error in the PIXIS FPGA bindings. Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
1 parent 1b9e890 commit 94409d6

1 file changed

Lines changed: 31 additions & 1 deletion

File tree

  • Documentation/powerpc/dts-bindings/fsl

‎Documentation/powerpc/dts-bindings/fsl/board.txt‎

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This is the memory-mapped registers for on board FPGA.
1818

1919
Required properities:
2020
- compatible : should be "fsl,fpga-pixis".
21-
- reg : should contain the address and the lenght of the FPPGA register
21+
- reg : should contain the address and the length of the FPPGA register
2222
set.
2323

2424
Example (MPC8610HPCD):
@@ -27,3 +27,33 @@ Example (MPC8610HPCD):
2727
compatible = "fsl,fpga-pixis";
2828
reg = <0xe8000000 32>;
2929
};
30+
31+
* Freescale BCSR GPIO banks
32+
33+
Some BCSR registers act as simple GPIO controllers, each such
34+
register can be represented by the gpio-controller node.
35+
36+
Required properities:
37+
- compatible : Should be "fsl,<board>-bcsr-gpio".
38+
- reg : Should contain the address and the length of the GPIO bank
39+
register.
40+
- #gpio-cells : Should be two. The first cell is the pin number and the
41+
second cell is used to specify optional paramters (currently unused).
42+
- gpio-controller : Marks the port as GPIO controller.
43+
44+
Example:
45+
46+
bcsr@1,0 {
47+
#address-cells = <1>;
48+
#size-cells = <1>;
49+
compatible = "fsl,mpc8360mds-bcsr";
50+
reg = <1 0 0x8000>;
51+
ranges = <0 1 0 0x8000>;
52+
53+
bcsr13: gpio-controller@d {
54+
#gpio-cells = <2>;
55+
compatible = "fsl,mpc8360mds-bcsr-gpio";
56+
reg = <0xd 1>;
57+
gpio-controller;
58+
};
59+
};

0 commit comments

Comments
 (0)