18c2ecf20Sopenharmony_ci* Marvell Dove SoC pinctrl driver for mpp
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciPlease refer to marvell,mvebu-pinctrl.txt in this directory for common binding
48c2ecf20Sopenharmony_cipart and usage.
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ciRequired properties:
78c2ecf20Sopenharmony_ci- compatible: "marvell,dove-pinctrl"
88c2ecf20Sopenharmony_ci- clocks: (optional) phandle of pdma clock
98c2ecf20Sopenharmony_ci- reg: register specifiers of MPP, MPP4, and PMU MPP registers
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ciAvailable mpp pins/groups and functions:
128c2ecf20Sopenharmony_ciNote: brackets (x) are not part of the mpp name for marvell,function and given
138c2ecf20Sopenharmony_cionly for more detailed description in this document.
148c2ecf20Sopenharmony_ciNote: pmu* also allows for Power Management functions listed below
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ciname          pins     functions
178c2ecf20Sopenharmony_ci================================================================================
188c2ecf20Sopenharmony_cimpp0          0        gpio, pmu, uart2(rts), sdio0(cd), lcd0(pwm), pmu*
198c2ecf20Sopenharmony_cimpp1          1        gpio, pmu, uart2(cts), sdio0(wp), lcd1(pwm), pmu*
208c2ecf20Sopenharmony_cimpp2          2        gpio, pmu, uart2(txd), sdio0(buspwr), sata(prsnt),
218c2ecf20Sopenharmony_ci                       uart1(rts), pmu*
228c2ecf20Sopenharmony_cimpp3          3        gpio, pmu, uart2(rxd), sdio0(ledctrl), sata(act),
238c2ecf20Sopenharmony_ci                       uart1(cts), lcd-spi(cs1), pmu*
248c2ecf20Sopenharmony_cimpp4          4        gpio, pmu, uart3(rts), sdio1(cd), spi1(miso), pmu*
258c2ecf20Sopenharmony_cimpp5          5        gpio, pmu, uart3(cts), sdio1(wp), spi1(cs), pmu*
268c2ecf20Sopenharmony_cimpp6          6        gpio, pmu, uart3(txd), sdio1(buspwr), spi1(mosi), pmu*
278c2ecf20Sopenharmony_cimpp7          7        gpio, pmu, uart3(rxd), sdio1(ledctrl), spi1(sck), pmu*
288c2ecf20Sopenharmony_cimpp8          8        gpio, pmu, watchdog(rstout), pmu*
298c2ecf20Sopenharmony_cimpp9          9        gpio, pmu, pex1(clkreq), pmu*
308c2ecf20Sopenharmony_cimpp10         10       gpio, pmu, ssp(sclk), pmu*
318c2ecf20Sopenharmony_cimpp11         11       gpio, pmu, sata(prsnt), sata-1(act), sdio0(ledctrl),
328c2ecf20Sopenharmony_ci                       sdio1(ledctrl), pex0(clkreq), pmu*
338c2ecf20Sopenharmony_cimpp12         12       gpio, pmu, uart2(rts), audio0(extclk), sdio1(cd),
348c2ecf20Sopenharmony_ci                       sata(act), pmu*
358c2ecf20Sopenharmony_cimpp13         13       gpio, pmu, uart2(cts), audio1(extclk), sdio1(wp),
368c2ecf20Sopenharmony_ci                       ssp(extclk), pmu*
378c2ecf20Sopenharmony_cimpp14         14       gpio, pmu, uart2(txd), sdio1(buspwr), ssp(rxd), pmu*
388c2ecf20Sopenharmony_cimpp15         15       gpio, pmu, uart2(rxd), sdio1(ledctrl), ssp(sfrm), pmu*
398c2ecf20Sopenharmony_cimpp16         16       gpio, uart3(rts), sdio0(cd), ac97(sdi1), lcd-spi(cs1)
408c2ecf20Sopenharmony_cimpp17         17       gpio, uart3(cts), sdio0(wp), ac97(sdi2), twsi(sda),
418c2ecf20Sopenharmony_ci                       ac97-1(sysclko)
428c2ecf20Sopenharmony_cimpp18         18       gpio, uart3(txd), sdio0(buspwr), ac97(sdi3), lcd0(pwm)
438c2ecf20Sopenharmony_cimpp19         19       gpio, uart3(rxd), sdio0(ledctrl), twsi(sck)
448c2ecf20Sopenharmony_cimpp20         20       gpio, sdio0(cd), sdio1(cd), spi1(miso), lcd-spi(miso),
458c2ecf20Sopenharmony_ci                       ac97(sysclko)
468c2ecf20Sopenharmony_cimpp21         21       gpio, sdio0(wp), sdio1(wp), spi1(cs), lcd-spi(cs0),
478c2ecf20Sopenharmony_ci                       uart1(cts), ssp(sfrm)
488c2ecf20Sopenharmony_cimpp22         22       gpio, sdio0(buspwr), sdio1(buspwr), spi1(mosi),
498c2ecf20Sopenharmony_ci                       lcd-spi(mosi), uart1(cts), ssp(txd)
508c2ecf20Sopenharmony_cimpp23         23       gpio, sdio0(ledctrl), sdio1(ledctrl), spi1(sck),
518c2ecf20Sopenharmony_ci                       lcd-spi(sck), ssp(sclk)
528c2ecf20Sopenharmony_cimpp_camera    24-39    gpio, camera
538c2ecf20Sopenharmony_cimpp_sdio0     40-45    gpio, sdio0
548c2ecf20Sopenharmony_cimpp_sdio1     46-51    gpio, sdio1
558c2ecf20Sopenharmony_cimpp_audio1    52-57    gpio, i2s1/spdifo, i2s1, spdifo, twsi, ssp/spdifo, ssp,
568c2ecf20Sopenharmony_ci                       ssp/twsi
578c2ecf20Sopenharmony_cimpp_spi0      58-61    gpio, spi0
588c2ecf20Sopenharmony_cimpp_uart1     62-63    gpio, uart1
598c2ecf20Sopenharmony_cimpp_nand      64-71    gpo, nand
608c2ecf20Sopenharmony_ciaudio0        -        i2s, ac97
618c2ecf20Sopenharmony_citwsi          -        none, opt1, opt2, opt3
628c2ecf20Sopenharmony_ci
638c2ecf20Sopenharmony_ciPower Management functions (pmu*):
648c2ecf20Sopenharmony_cipmu-nc               Pin not driven by any PM function
658c2ecf20Sopenharmony_cipmu-low              Pin driven low (0)
668c2ecf20Sopenharmony_cipmu-high             Pin driven high (1)
678c2ecf20Sopenharmony_cipmic(sdi)            Pin is used for PMIC SDI
688c2ecf20Sopenharmony_cicpu-pwr-down         Pin is used for CPU_PWRDWN
698c2ecf20Sopenharmony_cistandby-pwr-down     Pin is used for STBY_PWRDWN
708c2ecf20Sopenharmony_cicore-pwr-good        Pin is used for CORE_PWR_GOOD (Pins 0-7 only)
718c2ecf20Sopenharmony_cicpu-pwr-good         Pin is used for CPU_PWR_GOOD (Pins 8-15 only)
728c2ecf20Sopenharmony_cibat-fault            Pin is used for BATTERY_FAULT
738c2ecf20Sopenharmony_ciext0-wakeup          Pin is used for EXT0_WU
748c2ecf20Sopenharmony_ciext1-wakeup          Pin is used for EXT0_WU
758c2ecf20Sopenharmony_ciext2-wakeup          Pin is used for EXT0_WU
768c2ecf20Sopenharmony_cipmu-blink            Pin is used for blink function
778c2ecf20Sopenharmony_ci
788c2ecf20Sopenharmony_ciNotes:
798c2ecf20Sopenharmony_ci* group "mpp_audio1" allows the following functions and gpio pins:
808c2ecf20Sopenharmony_ci  - gpio          : gpio on pins 52-57
818c2ecf20Sopenharmony_ci  - i2s1/spdifo   : audio1 i2s on pins 52-55 and spdifo on 57, no gpios
828c2ecf20Sopenharmony_ci  - i2s1          : audio1 i2s on pins 52-55, gpio on pins 56,57
838c2ecf20Sopenharmony_ci  - spdifo        : spdifo on pin 57, gpio on pins 52-55
848c2ecf20Sopenharmony_ci  - twsi          : twsi on pins 56,57, gpio on pins 52-55
858c2ecf20Sopenharmony_ci  - ssp/spdifo    : ssp on pins 52-55, spdifo on pin 57, no gpios
868c2ecf20Sopenharmony_ci  - ssp           : ssp on pins 52-55, gpio on pins 56,57
878c2ecf20Sopenharmony_ci  - ssp/twsi      : ssp on pins 52-55, twsi on pins 56,57, no gpios
888c2ecf20Sopenharmony_ci* group "audio0" internally muxes i2s0 or ac97 controller to the dedicated
898c2ecf20Sopenharmony_ci  audio0 pins.
908c2ecf20Sopenharmony_ci* group "twsi" internally muxes twsi controller to the dedicated or option pins.
91