Commit Graph
100 Commits
Author SHA1 Message Date
Jean-Christophe PLAGNIOL-VILLARD 746831d5a1 ARM: at91: at91_dt_defconfig: enable rm9200 support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by: Nicolas Ferre <[email protected]>
2013-08-26 09:58:29 +02:00
Jean-Christophe PLAGNIOL-VILLARD 5f9ffdbe13 ARM: at91/dt: add at91rm9200 PQFP package version
The PQFP version have only 3 gpio banks (A, B & C).

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
[[email protected]: correct typo in "status" property]
Signed-off-by: Nicolas Ferre <[email protected]>
2013-08-21 12:18:52 +02:00
Jean-Christophe PLAGNIOL-VILLARD 90a69f1368 ARM: at91: at91rm9200: set default mmc0 pinctrl-names
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by: Nicolas Ferre <[email protected]>
2013-08-21 11:40:22 +02:00
Jean-Christophe PLAGNIOL-VILLARD 6e19c94d3e ARM: at91: at91sam9260: add missing pinctrl-names on mmc
pinctrl-names was missing causing mmc pinctrl to never be requested.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Acked-by: Ludovic Desroches <[email protected]>
[[email protected]: added a commit message taken from Ludovic]
Signed-off-by: Nicolas Ferre <[email protected]>
2013-08-21 11:14:18 +02:00
Jean-Christophe PLAGNIOL-VILLARD 0d63748d0b mtd: atmel_nand: use devm_xxx gpio kzalloc, gpio and ioremap
this will allow to simply the error and remove path

Cc: [email protected]
Cc: Nicolas Ferre <[email protected]>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
[[email protected]: fix checkpatch warnings and rebase to latest mtd git tree]
[[email protected]: replace devm_request_and_ioremap with devm_ioremap_resource]
Signed-off-by: Josh Wu <[email protected]>
Signed-off-by: Artem Bityutskiy <[email protected]>

Signed-off-by: David Woodhouse <[email protected]>
2013-08-05 21:06:11 +01:00
Jean-Christophe PLAGNIOL-VILLARD 19fd7441e9 Merge tag 'fbdev-3.11-2' of git://gitorious.org/linux-omap-dss2/linux into fbdev/for-next
Various fbdev changes for 3.11

* xilinxfb updates
* Small cleanups and fixes to multiple drivers
2013-06-28 18:01:28 +08:00
Jean-Christophe PLAGNIOL-VILLARD b75bf98b5d Merge tag 'omapdss-for-3.11-2' of git://gitorious.org/linux-omap-dss2/linux into fbdev/for-next
OMAP display subsystem changes for 3.11 (part 2/2)

This is the second part of OMAP DSS changes for 3.11. This part contains the
new DSS device model support.

The current OMAP panel drivers use a custom DSS bus, and there's a hard limit
of one external display block per video pipeline. In the new DSS device model
the devices/drivers are made according to the control bus of the display block,
usually platform, i2c or spi. The display blocks can also be chained so that we
can have separate drivers for setups with both external encoder and panel.

To allow the current board files, which use the old style panels, to function,
the old display drivers are left in their current state, and new ones are added
to drivers/video/omap2/displays-new/. When the board files have been converted
to use the new style panels, we can remove the old code. This is planned to
happen in v3.12.

Having to support two very different DSS device models makes the driver
somewhat confusing in some parts, and prevents us from properly cleaning up
some other parts. These cleanups will be done when the old code is removed.

The new device model is designed with CDF (Common Display Framework) in mind.
While CDF is still under work, the new DSS device model should be much more
similar to CDF's model than the old device model, which should make the
eventual conversion to CDF much easier.
2013-06-28 18:01:14 +08:00
Jean-Christophe PLAGNIOL-VILLARD 8e9804557c Merge tag 'omapdss-for-3.11-1' of git://gitorious.org/linux-omap-dss2/linux into fbdev/for-next
OMAP display subsystem changes for 3.11 (part 1/2)

This is the first part of OMAP DSS changes for 3.11. This part contains fixes,
cleanups and reorganizations that are not directly related to the new DSS
device model that is added in part 2, although many of the reorganizations are
made to make the part 2 possible.

There should not be any functional changes visible to the user except the few
bug fixes.

The main new internal features:

- Display (dis)connect support, which allows us to explicitly (dis)connect a
  whole display pipeline

- Panel list, which allows us to operate without the specific DSS bus

- Combine omap_dss_output to omap_dss_device, so that we have one generic
  "entity" for display pipeline blocks
2013-06-28 17:59:10 +08:00
Jean-Christophe PLAGNIOL-VILLARD 26e3326cc0 ARM: at91: dt: rm9200ek: add spi support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by: Nicolas Ferre <[email protected]>
2013-06-26 10:13:39 +02:00
Jean-Christophe PLAGNIOL-VILLARD 32a86877d8 ARM: at91: dt: rm9200: add spi support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by: Nicolas Ferre <[email protected]>
2013-06-26 10:13:14 +02:00
Jean-Christophe PLAGNIOL-VILLARD 546c830c90 ARM: at91: fix at91_extern_irq usage for non-dt boards
Since 4b68520dc0ec96153bc0d87bca5ffba508edfcf
ARM: at91: add AIC5 support

we allocate the at91_extern_irq.

This patch makes it static and stores the non-dt extern irq in the soc
structure. It is then possible to use a at91_get_extern_irq() function
to get the value for outside of the irq driver. It is useful for passing
its value to at91_aic_init().

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Acked-by: Ludovic Desroches <[email protected]>
[[email protected]: rework commit message]
Signed-off-by: Nicolas Ferre <[email protected]>
2013-06-21 16:35:26 +02:00
Jean-Christophe PLAGNIOL-VILLARD e25ac142f3 ARM: at91: drop rm9200dk board support
This board is impossible to found anymore.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by: Nicolas Ferre <[email protected]>
2013-06-18 10:23:15 +02:00
Jean-Christophe PLAGNIOL-VILLARD 24ce10e142 ARM: at91: sam9m10g45ek add udc DT support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Acked-by: Nicolas Ferre <[email protected]>
Tested-by: Bo Shen <[email protected]>
2013-06-15 00:15:22 +02:00
Jean-Christophe PLAGNIOL-VILLARD 3cba498f01 ARM: at91: sam9g45 add udc DT support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Acked-by: Nicolas Ferre <[email protected]>
Tested-by: Bo Shen <[email protected]>
2013-06-15 00:15:22 +02:00
Jean-Christophe PLAGNIOL-VILLARD 17bcaaa345 ARM: at91: sam9x5ek add udc DT support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Acked-by: Nicolas Ferre <[email protected]>
Tested-by: Bo Shen <[email protected]>
2013-06-15 00:15:21 +02:00
Jean-Christophe PLAGNIOL-VILLARD aecca65c13 ARM: at91: sam9x5 add udc DT support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Acked-by: Nicolas Ferre <[email protected]>
Tested-by: Bo Shen <[email protected]>
2013-06-15 00:15:07 +02:00
Jean-Christophe PLAGNIOL-VILLARD 8ea2c86449 Merge branch 'fbdev-3.11' of git://gitorious.org/linux-omap-dss2/linux into fbdev/for-next 2013-06-14 17:52:18 +08:00
Jean-Christophe PLAGNIOL-VILLARD ef1ab239c0 ARM: at91: drop non DT: Calao USB-A96x
as now we have full DT support of those board

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by: Nicolas Ferre <[email protected]>
2013-05-31 16:52:37 +02:00
Jean-Christophe PLAGNIOL-VILLARD d5c669f137 ARM: at91: dt: add Calao USB-A9G20 low power version
the low power version have a mmc-spi

eanble mmc-spi and RV3029C2 RTC in at91_dt_defconfig

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by: Nicolas Ferre <[email protected]>
2013-05-31 16:52:37 +02:00
Jean-Christophe PLAGNIOL-VILLARD 2432d20146 ARM: at91: dt: usb-a9263: add dataflash support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by: Nicolas Ferre <[email protected]>
2013-05-31 16:52:36 +02:00
Jean-Christophe PLAGNIOL-VILLARD 3e0afe688b ARM: at91: dt: usb-a9263: update shutdown controller
enable rtt and wakeup button (5 msec low)

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by: Nicolas Ferre <[email protected]>
2013-05-31 16:52:36 +02:00
Jean-Christophe PLAGNIOL-VILLARD 25a8d0772f ARM: at91: dt: usb-a9260: update shutdown controller
enable rtt and wakeup button (5 msec low)

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by: Nicolas Ferre <[email protected]>
2013-05-31 16:52:35 +02:00
Jean-Christophe PLAGNIOL-VILLARD f89ae61bd7 ARM: at91: dt: sam9260: add i2c gpio pinctrl
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by: Nicolas Ferre <[email protected]>
2013-05-31 16:52:35 +02:00
Jean-Christophe PLAGNIOL-VILLARD 5489e948dc MAINTAINERS: Framebuffer Layer maintainers update
Tomi and I will now take care of the Framebuffer Layer

The git tree is now on kernel.org

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Cc: Tomi Valkeinen <[email protected]>
Cc: Olof Johansson <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Florian Tobias Schandinat <[email protected]>
Cc: [email protected]
Signed-off-by: Linus Torvalds <[email protected]>
2013-05-31 06:00:59 +09:00
Jean-Christophe PLAGNIOL-VILLARD 2436e8aa8a Merge branch 'fbdev-3.10-fixes' of git://gitorious.org/linux-omap-dss2/linux into linux-fbdev/for-3.10-fixes
Pull Tomi fixes for ps3fb and omap2

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
2013-05-29 17:00:34 +08:00
Jean-Christophe PLAGNIOL-VILLARD 87227b8b2d net: micrel : ks8851-ml: add dt support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Cc: [email protected]
Signed-off-by: David S. Miller <[email protected]>
2013-05-27 23:17:53 -07:00
Jean-Christophe PLAGNIOL-VILLARD 029efddab6 ARM: at91: at91sam9n12: move external irq declatation to DT
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by: Nicolas Ferre <[email protected]>
2013-05-24 10:53:50 +02:00
Jean-Christophe PLAGNIOL-VILLARD 4a3ae9324e USB: gadget: atmel_usba: add DT support
Allow to compile the driver all the time if AT91 enabled.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Acked-by: Felipe Balbi <[email protected]>
Acked-by: Nicolas Ferre <[email protected]>
Tested-by: Bo Shen <[email protected]>
2013-05-24 07:14:45 +08:00
Jean-Christophe PLAGNIOL-VILLARD e8f2ea3932 USB: gadget: atmel_usba: allow multi instance
drop static struct usba_udc the_udc

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Acked-by: Felipe Balbi <[email protected]>
Acked-by: Nicolas Ferre <[email protected]>
Tested-by: Bo Shen <[email protected]>
2013-05-24 07:14:16 +08:00
Jean-Christophe PLAGNIOL-VILLARD 68522de70e USB: gadget: atmel_usba: move global struct usba_ep usba_ep to struct usba_udc
so we can have multiple usb gadget instance

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Acked-by: Felipe Balbi <[email protected]>
Acked-by: Nicolas Ferre <[email protected]>
Tested-by: Bo Shen <[email protected]>
2013-05-24 07:13:24 +08:00
Jean-Christophe PLAGNIOL-VILLARD b3f442b0ee ARM: at91: udpate defconfigs
Merge 9g20 with 9260 and 9g10 with 9261 as those SoCs can run from the same
kernel even in non DT world.

Fix the sam9261ek to allow 9g10 and sam9261 to compile together.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by: Nicolas Ferre <[email protected]>
2013-05-17 15:05:08 +02:00
Jean-Christophe PLAGNIOL-VILLARD 5e8b3bc392 ARM: at91: dt: switch to standard IRQ flag defines
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by: Nicolas Ferre <[email protected]>
2013-05-17 12:11:50 +02:00
Jean-Christophe PLAGNIOL-VILLARD c9d0f317c6 ARM: at91: dt: switch to pinctrl to pre-processor
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Acked-by: Linus Walleij <[email protected]>
Signed-off-by: Nicolas Ferre <[email protected]>
2013-05-17 12:11:39 +02:00
Jean-Christophe PLAGNIOL-VILLARD 0e4686e6e6 ARM: at91: dt: add pinctrl pre-processor define
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Acked-by: Linus Walleij <[email protected]>
Signed-off-by: Nicolas Ferre <[email protected]>
2013-05-17 11:34:39 +02:00
Jean-Christophe PLAGNIOL-VILLARD 92f8629b60 ARM: at91: dt: switch to standard GPIO flag defines.
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by: Nicolas Ferre <[email protected]>
2013-05-17 11:27:49 +02:00
Jean-Christophe PLAGNIOL-VILLARD 6db64d2978 ARM: at91: dt: use #include for all device trees
to prepare the switch to the macro.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by: Nicolas Ferre <[email protected]>
2013-05-17 11:27:49 +02:00
Jean-Christophe PLAGNIOL-VILLARD b7a8ca5173 ARM: at91: rm9200 fix time support
since commit 838a2ae80a
Author: Shawn Guo <[email protected]>
Date:   Sat Jan 12 11:50:05 2013 +0000

ARM: use clockevents_config_and_register() where possible

The timer is wrongly configured and result in a nice crash
so revert it on rm9200 timer.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Cc: stable <[email protected]> # 3.8+
Cc: Shawn Guo <[email protected]>
Signed-off-by: Nicolas Ferre <[email protected]>
2013-05-15 12:37:45 +02:00
Jean-Christophe PLAGNIOL-VILLARD 9349d00fc3 ARM: at91/trivial: fix model name for SAM9X25-EK
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by: Nicolas Ferre <[email protected]>
Cc: stable <[email protected]> # 3.8+
2013-05-14 15:33:35 +02:00
Jean-Christophe PLAGNIOL-VILLARD beca9e767e iio: at91_adc: fix missing Sample and Hold time
On the at91_adc a minimal Sample and Hold Time is necessary for the ADC to
guarantee the best converted final value between two channels selection.
This time has to be programmed through the bitfield SHTIM in the
Mode Register ADC_MR.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by: Ludovic Desroches <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
2013-04-02 19:22:16 +01:00
Jean-Christophe PLAGNIOL-VILLARD e748783c55 iio: at91_adc: add sleep mode support
The sleep mode will allow to put the adc in sleep between conversion.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by: Ludovic Desroches <[email protected]>
Acked-by: Maxime Ripard <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
2013-04-02 19:17:39 +01:00
Jean-Christophe PLAGNIOL-VILLARD 9317960fa3 ARM: at91: renamme rm9200 dt file
Rename the board-rm9200-dt.c file so that we follow the pattern for
Device Tree board files: board-dt-<name of SoC sharing same core>.c

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
[[email protected]: modify commit message]
Signed-off-by: Nicolas Ferre <[email protected]>
2013-03-13 17:28:14 +01:00
Jean-Christophe PLAGNIOL-VILLARD 4afcd1db82 ARM: at91: rename board-dt to more specific name board-dt-sam9
We will produce a board-dt file per SoC core type. That will ease code
readability and will prevent from including superfluous code for supporting
machines that will never be compiled together (particularly the ARM9 and C-A5
upcoming SoCs).

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
[[email protected]: modify commit message]
Signed-off-by: Nicolas Ferre <[email protected]>
2013-03-13 17:18:00 +01:00
Jean-Christophe PLAGNIOL-VILLARD 3ae8dbdcfa ARM: at91: move non DT Kconfig to Kconfig.non_dt
This is the legacy platform support

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by: Nicolas Ferre <[email protected]>
2013-03-13 17:16:15 +01:00
Jean-Christophe PLAGNIOL-VILLARD a5618928d5 ARM: at91: Animeo IP: enable watchdog support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Cc: Sylvain FARGIER <[email protected]>
Signed-off-by: Nicolas Ferre <[email protected]>
2013-02-07 16:40:07 +01:00
Jean-Christophe PLAGNIOL-VILLARD 36224d0fe0 ARM: at91: rm9200: remake the BGA as default version
Make BGA as the default version as we are supposed to just have
to specify when we use the PQFP version.

Issue was existing since commit:
3e90772 (ARM: at91: fix at91rm9200 soc subtype handling).

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Cc: stable <[email protected]> [v3.3]
Signed-off-by: Nicolas Ferre <[email protected]>
2013-01-23 10:31:14 +01:00
Jean-Christophe PLAGNIOL-VILLARD d2aec37c3b USB: gadget: at91_adc: fix pullup pin validity check
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Cc: [email protected]
Signed-off-by: Felipe Balbi <[email protected]>
2013-01-10 12:41:01 +02:00
Jean-Christophe PLAGNIOL-VILLARD 116797672f iio: at91: fix dev var name in at91_adc_trigger_handler
/opt/work/linux-2.6/drivers/iio/adc/at91_adc.c: In function 'at91_adc_trigger_handler':
/opt/work/linux-2.6/drivers/iio/adc/at91_adc.c:83:22: error: 'indio_dev' undeclared (first use in this function)
/opt/work/linux-2.6/drivers/iio/adc/at91_adc.c:83:22: note: each undeclared identifier is reported only once for each function it appears in

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Cc: [email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
2012-12-27 10:59:38 +00:00
Jean-Christophe PLAGNIOL-VILLARD 850a5b670a spi/atmel: add DT support
Use the newly introduce cs-gpios dt support on atmel.
We do not use the hardware cs as it's wired and has bugs and limitations.
As the controller believes that only active-low devices/systems exists.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Acked-by: Nicolas Ferre <[email protected]>
Signed-off-by: Grant Likely <[email protected]>
2012-12-17 17:11:32 +00:00
Jean-Christophe PLAGNIOL-VILLARD 452b5ecda0 asix: use ramdom hw addr if the one read is not valid
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: David S. Miller <[email protected]>
2012-11-23 14:29:51 -05:00
Jean-Christophe PLAGNIOL-VILLARD 93272e07d8 net: add micrel KSZ8873MLL switch support
this will allow to detect the link between the switch and the soc

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Cc: [email protected]
Signed-off-by: David S. Miller <[email protected]>
2012-11-23 14:29:51 -05:00
Jean-Christophe PLAGNIOL-VILLARD 7431798490 of_spi: add generic binding support to specify cs gpio
This will allow to use gpio for chip select with no modification in the
driver binding

When use the cs-gpios, the gpio number will be passed via the cs_gpio field
and the number of chip select will automatically increased with max(hw cs, gpio cs).

So if for example the controller has 2 CS lines, and the cs-gpios
property looks like this:

cs-gpios = <&gpio1 0 0> <0> <&gpio1 1 0> <&gpio1 2 0>;

Then it should be configured so that num_chipselect = 4 with the
following mapping:

cs0 : &gpio1 0 0
cs1 : native
cs2 : &gpio1 1 0
cs3 : &gpio1 2 0

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Richard Genoud <[email protected]>
[grant.likely: fixed up type of cs count so min() can do type checking]
Signed-off-by: Grant Likely <[email protected]>
2012-11-21 23:25:33 +00:00
Jean-Christophe PLAGNIOL-VILLARD c12a819e3a ARM: at91: pm9g45: add mmc support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
2012-11-20 01:10:28 +08:00
Jean-Christophe PLAGNIOL-VILLARD 301333bc6c ARM: at91: Animeo IP: add mmc support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
2012-11-20 01:10:28 +08:00
Jean-Christophe PLAGNIOL-VILLARD 199e2edec4 ARM: at91: dt: add mmc pinctrl for Atmel reference boards
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
2012-11-20 01:10:27 +08:00
Jean-Christophe PLAGNIOL-VILLARD d4fe9ac76d ARM: at91: dt: at91sam9: add mmc pinctrl support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
2012-11-20 01:10:27 +08:00
Jean-Christophe PLAGNIOL-VILLARD 2abb74eaf6 atmel: move ATMEL_MAX_UART to platform_data/atmel.h
Modify both AT91 and AVR32 platforms.
Use 7 for it as the sam9260 or the sam9g25 have 7 of them DBGU included.

Reported-by: Joachim Eastwood <[email protected]>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by: Nicolas Ferre <[email protected]>
2012-11-19 17:44:54 +01:00
Jean-Christophe PLAGNIOL-VILLARD ad8a15d99c ARM: at91: add Somfy Animeo IP board support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
2012-11-19 07:51:11 +08:00
Jean-Christophe PLAGNIOL-VILLARD ee867d8eab ARM: at91: add Ronetix pm9g45 board support
CPU Module with ATMEL AT91SAM9G45
http://www.ronetix.at/pm9g45.html

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
2012-11-19 07:51:07 +08:00
Jean-Christophe PLAGNIOL-VILLARD c58c0c5acc ARM: at91: dt: at91sam9260: split rts and cts pinctrl not
as we just use the rts and not the rts & cts for rs485

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
2012-11-19 07:50:56 +08:00
Jean-Christophe PLAGNIOL-VILLARD 9e3129e937 ARM: at91: fix usart/uart namimg in pinctrl
USART are the full pin uart
DBGU the debug Unit
UART the two pin uart

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
2012-11-19 06:54:31 +08:00
Jean-Christophe PLAGNIOL-VILLARD d9b4fe837d ARM: at91sam9: add macb pinctrl support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
2012-11-19 06:54:25 +08:00
Jean-Christophe PLAGNIOL-VILLARD 7ebd7a3ae0 pinctrl: at91 add deglitch, debounce, pull down and schmitt trigger mux option support
add :
 set_deglitch: enable/disable deglitch
 set_debounce: enable/disable debounce
 set_pulldown: enable/disable pulldown
 disable_schmitt_trig: disable schmitt trigger

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
2012-11-19 06:35:55 +08:00
Jean-Christophe PLAGNIOL-VILLARD 32b01a366e pinctrl: at91: provide gpio names
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
2012-11-19 06:35:37 +08:00
Jean-Christophe PLAGNIOL-VILLARD d68cbdd4fb mtd: physmap_of: allow to specify the mtd name for retro compatiblity
linux,mtd-name allow to specify the mtd name for retro capability with
physmap-flash drivers as boot loader pass the mtd partition via the old
device name physmap-flash.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by: Artem Bityutskiy <[email protected]>
2012-11-16 10:57:39 +02:00
Jean-Christophe PLAGNIOL-VILLARD 6d7b42a447 mtd: fsmc_nand: pass the ale and cmd resource via resource
Do not use the platform_data to pass resource and be smart in the drivers.
Just pass it via resource

Switch to devm_request_and_ioremap at the sametime

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Acked-by: Linus Walleij <[email protected]>
Reviewed-By: Vipin Kumar <[email protected]>
Signed-off-by: Artem Bityutskiy <[email protected]>
2012-11-15 15:37:47 +02:00
Jean-Christophe PLAGNIOL-VILLARD dea09247b4 net: at91_ether: add pinctrl support
If no pinctrl available just report a warning as some architecture may not
need to do anything.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Tested-by: Joachim Eastwood <[email protected]>
Cc: Nicolas Ferre <[email protected]>
Cc: [email protected]
Signed-off-by: David S. Miller <[email protected]>
2012-11-06 17:41:42 -05:00
Jean-Christophe PLAGNIOL-VILLARD 96f6360c5a net: at91_ether: add dt support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Tested-by: Joachim Eastwood <[email protected]>
Cc: Nicolas Ferre <[email protected]>
Cc: [email protected]
Signed-off-by: David S. Miller <[email protected]>
2012-11-06 17:41:42 -05:00
Jean-Christophe PLAGNIOL-VILLARD 75984df05d arm: at91: move at91rm9200 rtc header in drivers/rtc
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Cc: Nicolas Ferre <[email protected]>
2012-11-06 20:30:52 +08:00
Jean-Christophe PLAGNIOL-VILLARD f0995d089e arm: at91: move reset controller header to arm/arm/mach-at91
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Cc: Nicolas Ferre <[email protected]>
2012-11-06 20:30:48 +08:00
Jean-Christophe PLAGNIOL-VILLARD ffe5cd8e3a arm: at91: move pit define to the driver
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Cc: Nicolas Ferre <[email protected]>
2012-11-06 20:30:09 +08:00
Jean-Christophe PLAGNIOL-VILLARD 176bdd2c54 arm: at91: move at91_shdwc.h to arch/arm/mach-at91
This is only used by old boards style or via core code.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Cc: Nicolas Ferre <[email protected]>
2012-11-06 20:29:52 +08:00
Jean-Christophe PLAGNIOL-VILLARD ad238495fe arm: at91: move board header to arch/arm/mach-at91
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Cc: Nicolas Ferre <[email protected]>
2012-11-06 20:29:48 +08:00
Jean-Christophe PLAGNIOL-VILLARD d6ca436e01 arn: at91: move at91_tc.h to arch/arm/mach-at91
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Cc: Nicolas Ferre <[email protected]>
2012-11-06 20:29:44 +08:00
Jean-Christophe PLAGNIOL-VILLARD a510b9bacd arm: at91 move at91_aic.h to arch/arm/mach-at91
as this is only used board old style board old mach code

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Cc: Nicolas Ferre <[email protected]>
2012-11-06 20:29:41 +08:00
Jean-Christophe PLAGNIOL-VILLARD 43d2f53292 arm: at91 move board.h to arch/arm/mach-at91
as this is only used board old style board

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Cc: Nicolas Ferre <[email protected]>
2012-11-06 20:29:37 +08:00
Jean-Christophe PLAGNIOL-VILLARD bcd2360c1f arm: at91: move platfarm_data to include/linux/platform_data/atmel.h
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Cc: Nicolas Ferre <[email protected]>
2012-11-06 20:29:33 +08:00
Jean-Christophe PLAGNIOL-VILLARD 2484575268 arm: at91: drop machine defconfig
No one care about them for releases and the machine are present in soc
defconfigs so drop them.

For qil-a9260 and usb-a9260 I maintain them and now switch to the
at91sam9260_defconfig.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Cc: Nicolas Ferre <[email protected]>
2012-11-06 20:29:03 +08:00
Jean-Christophe PLAGNIOL-VILLARD 8ef29f8aae net/macb: add pinctrl consumer support
If no pinctrl available just report a warning as some architecture may not
need to do anything.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
[[email protected]: adapt the error path, remove unneeded headers]
Signed-off-by: Nicolas Ferre <[email protected]>
Tested-by: Joachim Eastwood <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2012-11-01 11:45:58 -04:00
Jean-Christophe PLAGNIOL-VILLARD 2201bbb87c MAINTAINERS: add pinctrl atmel at91 entry
Cc: [email protected]
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
2012-10-28 20:08:34 +01:00
Jean-Christophe PLAGNIOL-VILLARD dffa91230f pinctrl/: at91: fix warnings
/opt/work/linux-2.6/drivers/pinctrl/pinctrl-at91.c: In function 'at91_pinctrl_probe_dt':
/opt/work/linux-2.6/drivers/pinctrl/pinctrl-at91.c:952:12: warning: assignment discards qualifiers from pointer target type
/opt/work/linux-2.6/drivers/pinctrl/pinctrl-at91.c: In function 'at91_gpio_probe':
/opt/work/linux-2.6/drivers/pinctrl/pinctrl-at91.c:1517:17: warning: assignment discards qualifiers from pointer target type

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
2012-10-28 20:02:56 +01:00
Jean-Christophe PLAGNIOL-VILLARD 08d04a135a ARM: at91: drop duplicated config SOC_AT91SAM9 entry
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Acked-by: Nicolas Ferre <[email protected]>
2012-10-24 18:08:48 +02:00
Jean-Christophe PLAGNIOL-VILLARD a728c7cdd0 gpio/at91: auto request and configure the pio as input when the interrupt is used via DT
If we do this

	interrupt-parent = <&pioA>;
	interrupts = <7 0x0>;

The current core map the irq correctly but the gpio is not configured as input.
The pinctrl configure the pin as gpio with the correct mux parameter but is
not responsible to configure it as input.

So do it during the xlate

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
2012-10-24 14:01:15 +02:00
Jean-Christophe PLAGNIOL-VILLARD 525fae2131 pinctrl: at91: fix typo on PULL_UP
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Cc: Ludovic Desroches <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
2012-10-24 13:59:45 +02:00
Jean-Christophe PLAGNIOL-VILLARD 251e783ad0 MTD: atmel_nand: add pinctrl consumer support
Acked-by: Nicolas Ferre <[email protected]>
Acked-by: Artem Bityutskiy <[email protected]>
Acked-by: Linus Walleij <[email protected]>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
2012-10-13 11:31:41 +08:00
Jean-Christophe PLAGNIOL-VILLARD 7a38d450b6 arm: at91: dt: at91sam9 add nand pinctrl support
Acked-by: Nicolas Ferre <[email protected]>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
2012-10-13 11:31:41 +08:00
Jean-Christophe PLAGNIOL-VILLARD 0cdc7e8e11 arm: at91: dt: sam9g20ek: use rts/cts/dtr/dsr/dcd/ri pinctrl group for uart0
Acked-by: Linus Walleij <[email protected]>
Acked-by: Nicolas Ferre <[email protected]>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
2012-10-13 09:21:46 +08:00
Jean-Christophe PLAGNIOL-VILLARD 4b20d98cf2 arm: at91: dt: sam9263ek: use rts/cts pinctrl group for uart0
Acked-by: Nicolas Ferre <[email protected]>
Acked-by: Linus Walleij <[email protected]>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
2012-10-13 09:21:45 +08:00
Jean-Christophe PLAGNIOL-VILLARD ea45f743de arm: at91: dt: sam9m10g45ek: use rts/cts pinctrl group for uart1
Acked-by: Nicolas Ferre <[email protected]>
Acked-by: Linus Walleij <[email protected]>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
2012-10-13 09:21:45 +08:00
Jean-Christophe PLAGNIOL-VILLARD 784557decc tty: atmel_serial: add pinctrl support
Acked-by: Nicolas Ferre <[email protected]>
Acked-by: Greg Kroah-Hartman <[email protected]>
Acked-by: Linus Walleij <[email protected]>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
2012-10-13 09:21:44 +08:00
Jean-Christophe PLAGNIOL-VILLARD ec6754a7b9 arm: at91: dt: at91sam9 add serial pinctrl support
Set the dbgu pinctrl config by default as we have only one possible config
For other uart set the rxd/txd by default.

For at91sam9x5ek create soc based dts as we need to include specific soc dtsi.

Acked-by: Nicolas Ferre <[email protected]>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
2012-10-13 09:21:44 +08:00
Jean-Christophe PLAGNIOL-VILLARD 5314ec8e52 arm: at91: dt: at91sam9 add pinctrl support
Acked-by: Nicolas Ferre <[email protected]>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
2012-10-13 09:21:43 +08:00
Jean-Christophe PLAGNIOL-VILLARD 6732ae5cb4 ARM: at91: add pinctrl support
This is also include the gpio controller as the IP share both.
Each soc will have to describe the SoC limitation and pin configuration via
DT.

This will allow to do not need to touch the C code when adding new SoC if the
IP version is supported.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
2012-10-13 09:21:43 +08:00
Jean-Christophe PLAGNIOL-VILLARD 97e5e62524 ARM: at91: add dummies pinctrl for non dt platform
Acked-by: Nicolas Ferre <[email protected]>
Acked-by: Linus Walleij <[email protected]>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
2012-10-13 09:09:29 +08:00
Jean-Christophe PLAGNIOL-VILLARD fc33ff4313 arm: at91: at91sam9x5: fix gpio number per bank
On the at91sam9x5 SoC series, GPIO banks B and D only have 19 and 22
pins. So add a property to set this parameter.

Acked-by: Nicolas Ferre <[email protected]>
Acked-by: Linus Walleij <[email protected]>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
2012-10-13 09:09:29 +08:00
Jean-Christophe PLAGNIOL-VILLARD e4541ff212 at91: regroup gpio and pinctrl under the same ranges
Fix also the reg size as we have 512 bytes bank not 256 bytes per gpio/mux
controller

Acked-by: Linus Walleij <[email protected]>
Acked-by: Nicolas Ferre <[email protected]>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
2012-10-13 09:09:28 +08:00
Jean-Christophe PLAGNIOL-VILLARD c18486e10d ARM: at91: gpio: implement request
Configure the pin as pio when requested.

It is needed to configure the pin as PIO at "request time" when we are
using DT. Indeed, the muxing via old AT91 API is not allowed anymore if
we are using the plain gpiolib.

Acked-by: Nicolas Ferre <[email protected]>
Acked-by: Linus Walleij <[email protected]>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
2012-10-13 09:09:28 +08:00
Jean-Christophe PLAGNIOL-VILLARD 8d39e0fd08 arm: at91: use macro to declare soc boot data
Instead of check the pointer of the init function, check the new builtin bool
to known if the soc is enabled.

This is needed as with the switch to the pinctrl the init will be NULL on pure
DT SoC.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
2012-10-13 09:09:28 +08:00
Jean-Christophe PLAGNIOL-VILLARD 28446acb1f mtd: atmel nand: fix gpio missing request
without this the gpio will not be muxed as a gpio by the current custom pinmux
or later by the pinctrl

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by: Artem Bityutskiy <[email protected]>
Signed-off-by: David Woodhouse <[email protected]>
2012-09-29 14:53:58 +01:00
Jean-Christophe PLAGNIOL-VILLARD 51ac51a6a5 ARM: at91: fix missing #interrupt-cells on gpio-controller
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Tested-by: Bo Shen <[email protected]>
Signed-off-by: Nicolas Ferre <[email protected]>
2012-09-17 10:25:01 +02:00
Jean-Christophe PLAGNIOL-VILLARD c657394370 ARM: at91: aic add dt support for external irqs
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by: Nicolas Ferre <[email protected]>
2012-07-02 14:26:58 +02:00