aboutsummaryrefslogtreecommitdiff
path: root/drivers/soc/atmel
AgeCommit message (Collapse)AuthorFilesLines
2024-08-07ARM: at91: add support in SoC driver for new sam9x7Varshini Rajendran2-0/+32
Add support for SAM9X7 SoC in the SoC driver. Signed-off-by: Varshini Rajendran <[email protected]> Reviewed-by: Claudiu Beznea <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Claudiu Beznea <[email protected]>
2023-07-29soc: microchip: Explicitly include correct DT includesRob Herring1-1/+0
The DT of_device.h and of_platform.h date back to the separate of_platform_bus_type before it as merged into the regular platform bus. As part of that merge prepping Arm DT support 13 years ago, they "temporarily" include each other. They also include platform_device.h and of.h. As a result, there's a pretty much random mix of those include files used throughout the tree. In order to detangle these headers and replace the implicit includes with struct declarations, users need to explicitly include the correct includes. Signed-off-by: Rob Herring <[email protected]> Signed-off-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] [claudiu.beznea: added link] Signed-off-by: Claudiu Beznea <[email protected]>
2023-01-09ARM: at91: add support in soc driver for new SAMA7G54 SiPsMihai Sain2-0/+12
Add detection of new SAMA7G54 System-In-Package (SIP) by the SoC driver: SAMA7G54D1G, SAMA7G54D2G, SAMA7G54D4G. Signed-off-by: Mihai Sain <[email protected]> Signed-off-by: Claudiu Beznea <[email protected]> Link: https://lore.kernel.org/r/[email protected]
2022-06-28ARM: at91: fix soc detection for SAM9X60 SiPsMihai Sain1-6/+6
Fix SoC detection for SAM9X60 SiPs: SAM9X60D5M SAM9X60D1G SAM9X60D6K Fixes: af3a10513cd6 ("drivers: soc: atmel: add per soc id and version match masks") Signed-off-by: Mihai Sain <[email protected]> Signed-off-by: Claudiu Beznea <[email protected]> Link: https://lore.kernel.org/r/[email protected]
2022-03-04ARM: at91: add support in soc driver for new SAMA5D29Mihai Sain2-0/+4
Add detection of new SAMA5D29 by the SoC driver. Signed-off-by: Mihai Sain <[email protected]> Signed-off-by: Nicolas Ferre <[email protected]> Reviewed-by: Claudiu Beznea <[email protected]> Link: https://lore.kernel.org/r/[email protected]
2021-02-04drivers: soc: atmel: fix type for same7Arnd Bergmann1-1/+1
A missing comma caused a build failure: drivers/soc/atmel/soc.c:196:24: error: too few arguments provided to function-like macro invocation Fixes: af3a10513cd6 ("drivers: soc: atmel: add per soc id and version match masks") Signed-off-by: Arnd Bergmann <[email protected]> Acked-by: Alexandre Belloni <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
2021-01-26drivers: soc: atmel: add spdx license identifierClaudiu Beznea2-10/+2
Add SPDX-License-Identifier. Signed-off-by: Claudiu Beznea <[email protected]> [[email protected]: remove license boilerplate now it's useless] Signed-off-by: Nicolas Ferre <[email protected]> Link: https://lore.kernel.org/r/[email protected]
2021-01-26drivers: soc: atmel: add support for sama7g5Claudiu Beznea2-0/+24
Add support for SAMA7G5 SoCs. Signed-off-by: Claudiu Beznea <[email protected]> Signed-off-by: Nicolas Ferre <[email protected]> Link: https://lore.kernel.org/r/[email protected]
2021-01-26drivers: soc: atmel: add per soc id and version match masksClaudiu Beznea2-66/+140
SAMA7G5 has different masks for chip ID and chip version on CIDR register compared to previous AT91 SoCs. For this the commit adapts the code for SAMA7G5 addition by introducing 2 new members in struct at91_soc and fill them properly and also preparing the parsing of proper DT binding. Signed-off-by: Claudiu Beznea <[email protected]> Signed-off-by: Nicolas Ferre <[email protected]> Link: https://lore.kernel.org/r/[email protected]
2021-01-26drivers: soc: atmel: fix "__initconst should be placed after socs[]" warningClaudiu Beznea1-1/+1
Fix checkpatch.pl warning: "__initconst should be placed after socs[]". Signed-off-by: Claudiu Beznea <[email protected]> Signed-off-by: Nicolas Ferre <[email protected]> Link: https://lore.kernel.org/r/[email protected]
2021-01-26drivers: soc: atmel: use GENMASKClaudiu Beznea1-1/+1
Use GENMASK() to define CIDR match mask. Signed-off-by: Claudiu Beznea <[email protected]> Signed-off-by: Nicolas Ferre <[email protected]> Link: https://lore.kernel.org/r/[email protected]
2021-01-26drivers: soc: atmel: add null entry at the end of at91_soc_allowed_list[]Claudiu Beznea1-1/+2
of_match_node() calls __of_match_node() which loops though the entries of matches array. It stops when condition: (matches->name[0] || matches->type[0] || matches->compatible[0]) is false. Thus, add a null entry at the end of at91_soc_allowed_list[] array. Fixes: caab13b49604 ("drivers: soc: atmel: Avoid calling at91_soc_init on non AT91 SoCs") Cc: [email protected] #4.12+ Signed-off-by: Claudiu Beznea <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Nicolas Ferre <[email protected]>
2020-12-28drivers: soc: atmel: Avoid calling at91_soc_init on non AT91 SoCsSudeep Holla1-0/+12
Since at91_soc_init is called unconditionally from atmel_soc_device_init, we get the following warning on all non AT91 SoCs: " AT91: Could not find identification node" Fix the same by filtering with allowed AT91 SoC list. Cc: Nicolas Ferre <[email protected]> Cc: Alexandre Belloni <[email protected]> Cc: Ludovic Desroches <[email protected]> Signed-off-by: Sudeep Holla <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]> Link: https://lore.kernel.org/r/[email protected]
2020-10-28ARM: at91: sam9x60 SiP types added to soc descriptionKai Stuhlemmer2-0/+9
Adding SAM9X60 SIP variants to the soc description list. Signed-off-by: Kai Stuhlemmer <[email protected]> Signed-off-by: Nicolas Ferre <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]> Link: https://lore.kernel.org/r/[email protected]
2019-12-10drivers: soc: atmel: move sam9x60 under its own config flagClaudiu Beznea1-2/+3
Move SAM9X60 under its own config flag. Signed-off-by: Claudiu Beznea <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
2019-11-07soc: at91: Add Atmel SFR SN (Serial Number) supportKamel Bouhara3-0/+111
Add support to read SFR's read-only registers providing the SoC Serial Numbers (SN0+SN1) to userspace. ~ # hexdump -n 8 -e'"%d\n"' /sys/bus/nvmem/devices/atmel-sfr0/nvmem 959527243 371539274 Signed-off-by: Kamel Bouhara <[email protected]> Tested-by: Tudor Ambarus <[email protected]> Reviewed-by: Tudor Ambarus <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
2019-05-21treewide: Add SPDX license identifier - Makefile/KconfigThomas Gleixner2-0/+2
Add SPDX license identifiers to all Make/Kconfig files which: - Have no license information of any form These files fall under the project license, GPL v2 only. The resulting SPDX license identifier is: GPL-2.0-only Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-12-12ARM: at91: add support in soc driver for new SAM9X60Sandeep Sheriker Mallikarjun2-0/+5
Add detection of new SAM9X60 by this soc.c driver. Signed-off-by: Nicolas Ferre <[email protected]> [[email protected]: split patch] Signed-off-by: Sandeep Sheriker Mallikarjun <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]>
2018-12-12ARM: at91: add support in soc driver for LPDDR2 SiPNicolas Ferre2-0/+12
Add some more SiP components to be detected by this soc.c driver. Signed-off-by: Nicolas Ferre <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]>
2017-09-17drivers: soc: atmel: Add basic support for new sama5d2 SiPsCristian Birsan2-0/+12
Add basic support for new sama5d2 System in a Package chips. Signed-off-by: Cristian Birsan <[email protected]> [[email protected]: use MiB instead of MB] Signed-off-by: Claudiu Beznea <[email protected]> Acked-by: Nicolas Ferre <[email protected]> Acked-by: Ludovic Desroches <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]>
2017-06-02ARM: at91: add armv7m SoC detectionSzemző András2-0/+50
Add SAME70/V71/S70/V70 chip-ids to SoC detection. Signed-off-by: Szemző András <[email protected]> Acked-by: Nicolas Ferre <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]>
2017-03-31ARM: at91: move SoC detection to its own driverAlexandre Belloni4-0/+329
To simplify machine init and as the soc_device struct is not used as the parent for on-chip devices anymore, move SoC detection to its own driver. Change in dmesg: - before: DMA: preallocated 256 KiB pool for atomic coherent allocations AT91: Detected SoC family: sama5d2 AT91: Detected SoC: sama5d27, revision 0 No ATAGs? clocksource: tcb_clksrc: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 184217874325 ns at_xdmac f0010000.dma-controller: 16 channels, mapped at 0xe085b000 SCSI subsystem initialized - after: DMA: preallocated 256 KiB pool for atomic coherent allocations No ATAGs? clocksource: tcb_clksrc: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 184217874325 ns at_xdmac f0010000.dma-controller: 16 channels, mapped at 0xe0859000 AT91: Detected SoC family: sama5d2 AT91: Detected SoC: sama5d27, revision 0 SCSI subsystem initialized Suggested-by: Arnd Bergmann <[email protected]> Acked-by: Nicolas Ferre <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]>