spi: mediatek: Update document devicetree bindings to support multiple devices
This patch updates document devicetree bindings to support multiple devices. Signed-off-by: Leilk Liu <leilk.liu@mediatek.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
32b88194f7
commit
eca3a1ee8d
1 changed files with 6 additions and 3 deletions
|
@ -29,8 +29,11 @@ Required properties:
|
||||||
muxes clock, and "spi-clk" for the clock gate.
|
muxes clock, and "spi-clk" for the clock gate.
|
||||||
|
|
||||||
Optional properties:
|
Optional properties:
|
||||||
|
-cs-gpios: see spi-bus.txt, only required for MT8173.
|
||||||
|
|
||||||
- mediatek,pad-select: specify which pins group(ck/mi/mo/cs) spi
|
- mediatek,pad-select: specify which pins group(ck/mi/mo/cs) spi
|
||||||
controller used, this value should be 0~3, only required for MT8173.
|
controller used. This is a array, the element value should be 0~3,
|
||||||
|
only required for MT8173.
|
||||||
0: specify GPIO69,70,71,72 for spi pins.
|
0: specify GPIO69,70,71,72 for spi pins.
|
||||||
1: specify GPIO102,103,104,105 for spi pins.
|
1: specify GPIO102,103,104,105 for spi pins.
|
||||||
2: specify GPIO128,129,130,131 for spi pins.
|
2: specify GPIO128,129,130,131 for spi pins.
|
||||||
|
@ -49,7 +52,7 @@ spi: spi@1100a000 {
|
||||||
<&topckgen CLK_TOP_SPI_SEL>,
|
<&topckgen CLK_TOP_SPI_SEL>,
|
||||||
<&pericfg CLK_PERI_SPI0>;
|
<&pericfg CLK_PERI_SPI0>;
|
||||||
clock-names = "parent-clk", "sel-clk", "spi-clk";
|
clock-names = "parent-clk", "sel-clk", "spi-clk";
|
||||||
|
cs-gpios = <&pio 105 GPIO_ACTIVE_LOW>, <&pio 72 GPIO_ACTIVE_LOW>;
|
||||||
mediatek,pad-select = <0>;
|
mediatek,pad-select = <1>, <0>;
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue