pinctrl: at91: add support for OUTPUT config

Add support for pin output control through the pinctrl config:
 - support enabling/disabling output on a given pin
 - support output level setting (high or low)

Signed-off-by: Boris BREZILLON <b.brezillon@overkiz.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
spi: atmel: adopt pinctrl support

Amend the pin controller to optionally take a pin control
handle and set the state of the pins to:

- "default" on boot, resume
- "sleep" on suspend()

This should make it possible to optimize energy usage for the pins
both for the suspend/resume cycle.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
i2c: at91: adopt pinctrl support

Amend the pin controller to optionally take a pin control
handle and set the state of the pins to:

- "default" on boot, resume
- "sleep" on suspend()

This should make it possible to optimize energy usage for the pins
both for the suspend/resume cycle.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
mmc: atmel: adopt pinctrl support

Amend the pin controller to optionally take a pin control
handle and set the state of the pins to:

- "default" on boot, resume
- "sleep" on suspend()

This should make it possible to optimize energy usage for the pins
both for the suspend/resume cycle.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
serial: atmel: adopt pinctrl support

Amend the pin controller to optionally take a pin control
handle and set the state of the pins to:

- "default" on boot, resume
- "sleep" on suspend()

This should make it possible to optimize energy usage for the pins
both for the suspend/resume cycle.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
lcdc: at91: adopt pinctrl support

Amend the pin controller to optionally take a pin control
handle and set the state of the pins to:

- "default" on boot, resume
- "sleep" on suspend()

This should make it possible to optimize energy usage for the pins
both for the suspend/resume cycle.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
ssc: atmel: adopt pinctrl support

Amend the atmel pin controller to optionally take a pin control
handle and set the state of the pins to:

- "default" on boot, resume
- "sleep" on suspend()

This should make it possible to optimize energy usage for the pins
both for the suspend/resume cycle.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
iio: adc: at91: adopt pinctrl support

Amend the pin controller to optionally take a pin control
handle and set the state of the pins to:

- "default" on boot, resume
- "sleep" on suspend()

This should make it possible to optimize energy usage for the pins
both for the suspend/resume cycle.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
net: ethernet: cadence: adopt pinctrl support

Amend the pin controller to optionally take a pin control
handle and set the state of the pins to:

- "default" on boot, resume
- "sleep" on suspend()

This should make it possible to optimize energy usage for the pins
both for the suspend/resume cycle.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
mtd: nand: atmel: adopt pinctrl support

Amend the pin controller to optionally take a pin control
handle and set the state of the pins to:

- "default" on boot, resume
- "sleep" on suspend()

This should make it possible to optimize energy usage for the pins
both for the suspend/resume cycle.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
can: at91: adopt pinctrl support

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
ARM: atmel: sama5d4: vdec: add PM operations

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
net: phy_device: resume the PHY while probing

The purpose is to resume the PHY device to Normal Mode
if it has been put in the Power Dowm Mode in the previous boot stage.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
pm: at91: pm_slowclock: disable/enable MPDDRC controller clock and DDR clock

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
pm: at91: pm_slowclock: improvement to disable the UTMI PLL

1./ Add condition to disable/enable the UTMI PLL.
2./ To get faster to resume from suspend to memory,
    move disable/enable the UTMI PLL out of the route
    when the PCK source is slow clock.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
pm: at91: pm_slowclock: move disable/enable PLLB out of the route

Because during this period, the PCK clock source is slow clock,
To do so to get faster resume from suspend to memory.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
ARM: dts: at91: sama5d4ek: add pins sleep state dtsi file

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
ARM: dts: at91: at91-sama5d3_xplained: add pin sleep state dtsi file

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
ARM: dts: at91: at91-sama5d3_xplained: add gpio-key pinctrl property

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
defconfig: update sama5d3_xplained_defconfig

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>