Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: dt-bindings: add documentation for AP806 pin controllers

Document the device tree binding for the pin controllers found on the
Armada 7K and Armada 8K SoCs.

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>

+47 -8
+47 -8
Documentation/devicetree/bindings/arm/marvell/ap806-system-controller.txt
··· 28 28 - compatible: must be: "marvell,ap806-clock" 29 29 - #clock-cells: must be set to 1 30 30 31 + Pinctrl: 32 + -------- 33 + 34 + For common binding part and usage, refer to 35 + Documentation/devicetree/bindings/pinctrl/marvell,mvebu-pinctrl.txt. 36 + 37 + Required properties: 38 + - compatible must be "marvell,ap806-pinctrl", 39 + 40 + Available mpp pins/groups and functions: 41 + Note: brackets (x) are not part of the mpp name for marvell,function and given 42 + only for more detailed description in this document. 43 + 44 + name pins functions 45 + ================================================================================ 46 + mpp0 0 gpio, sdio(clk), spi0(clk) 47 + mpp1 1 gpio, sdio(cmd), spi0(miso) 48 + mpp2 2 gpio, sdio(d0), spi0(mosi) 49 + mpp3 3 gpio, sdio(d1), spi0(cs0n) 50 + mpp4 4 gpio, sdio(d2), i2c0(sda) 51 + mpp5 5 gpio, sdio(d3), i2c0(sdk) 52 + mpp6 6 gpio, sdio(ds) 53 + mpp7 7 gpio, sdio(d4), uart1(rxd) 54 + mpp8 8 gpio, sdio(d5), uart1(txd) 55 + mpp9 9 gpio, sdio(d6), spi0(cs1n) 56 + mpp10 10 gpio, sdio(d7) 57 + mpp11 11 gpio, uart0(txd) 58 + mpp12 12 gpio, sdio(pw_off), sdio(hw_rst) 59 + mpp13 13 gpio 60 + mpp14 14 gpio 61 + mpp15 15 gpio 62 + mpp16 16 gpio 63 + mpp17 17 gpio 64 + mpp18 18 gpio 65 + mpp19 19 gpio, uart0(rxd), sdio(pw_off) 66 + 31 67 Example: 68 + ap_syscon: system-controller@6f4000 { 69 + compatible = "syscon", "simple-mfd"; 70 + reg = <0x6f4000 0x1000>; 32 71 33 - syscon: system-controller@6f4000 { 34 - compatible = "syscon", "simple-mfd"; 35 - reg = <0x6f4000 0x1000>; 36 - 37 - ap_clk: clock { 38 - compatible = "marvell,ap806-clock"; 39 - #clock-cells = <1>; 40 - }; 72 + ap_clk: clock { 73 + compatible = "marvell,ap806-clock"; 74 + #clock-cells = <1>; 41 75 }; 76 + 77 + ap_pinctrl: pinctrl { 78 + compatible = "marvell,ap806-pinctrl"; 79 + }; 80 + };