ARM: davinci: GPIO: Add platform data structure

Add struct davinci_gpio_platform_data davinci gpio module.

Signed-off-by: KV Sujith <sujithkv@ti.com>
Signed-off-by: Philip Avinash <avinashphilip@ti.com>
gpio: gpio-davinci: Coding style correction

1. Corrects coding and commenting styles
2. Use meaningful variables
3. Remove unnecessary variable usage

Signed-off-by: Philip Avinash <avinashphilip@ti.com>
gpio: gpio-davinci: convert to to platform driver.

Converts gpio-davinci  driver to platform driver. This helps in start
supporting device tree. Also remove the dependency on davinci_soc_info
by populating platform data.

Signed-off-by: Philip Avinash <avinashphilip@ti.com>
arm: davinci: Creation of gpio platform device

gpio controller resource information being associated with
davinci_soc_info structure and not created any device. Hence davinci
gpio didn't fall under proper device model. This patch creates gpio
davinci as a platform device for da8xx platforms.

Signed-off-by: Philip Avinash <avinashphilip@ti.com>
arm: davinci: Creation of gpio platform device for dm platforms

gpio controller resource information being associated with
davinci_soc_info structure and not created any device. Hence davinci
gpio didn't fall under proper device model. This patch creates gpio
davinci as a platform device for dm platforms.

Signed-off-by: Philip Avinash <avinashphilip@ti.com>
arm: davinci: da8xx: gpio device creation

Create davinci gpio device and remove references in davinci_soc_info
structure.

Signed-off-by: Philip Avinash <avinashphilip@ti.com>
arm: davinci: create davinci gpio device for dm platforms

Signed-off-by: Philip Avinash <avinashphilip@ti.com>
arm: davinci: Start using gpiolib support

davinci platforms populates gpio library APIs platform specific way.
This patch removes the platform specific GPIO API support and start
using gpio libray APIs directly.

Signed-off-by: Philip Avinash <avinashphilip@ti.com>
ARM: davinci: GPIO: DT Changes for driver

- Add of_device_id for Davinci GPIO driver.
- Add function to populate data from DT.
- Modify the probe to read from DT if DT match is found.
- Coding Style Corrections.

Signed-off-by: KV Sujith <sujithkv@ti.com>
Signed-off-by: Philip Avinash <avinashphilip@ti.com>
Add documentation for GPIO properties specific to Davinci

Add DT binding documentation for Davinci GPIO properties in a new file
gpio-davinci.txt located at Documentation/devicetree/bindings/gpio/.

Signed-off-by: KV Sujith <sujithkv@ti.com>
Signed-off-by: Philip Avinash <avinashphilip@ti.com>
ARM: davinci: da850: add GPIO DT entries

Add DT entries for Davinci GPIO.

Signed-off-by: KV Sujith <sujithkv@ti.com>
Signed-off-by: Philip Avinash <avinashphilip@ti.com>
ARM: davinci: da850 evm: add GPIO DT data

- Add GPIO DT Data and pinmux for DA850 EVM. GPIO is configurable differently
  on different boards. So add GPIO pinmuxing in dts file.
- Dependency: This patch is dependent on Grab-pin-control patch;
  https://patchwork.kernel.org/patch/2013751/

Signed-off-by: KV Sujith <sujithkv@ti.com>
Signed-off-by: Philip Avinash <avinashphilip@ti.com>
for testing only