Renesas ARM Based SoC Match Updates for v4.10
Subsystems (5)
Hi Olof, Hi Kevin, Hi Arnd,
Please consider these Renesas ARM based SoC match updates for v4.10.
This pull request is based on the pull request "soc_device_match() interface for matching against soc_bus attributes" sent by Geert Uytterhoeven which corresponds to the soc-device-match-tag1 tag in his renesas-driver's tree. It provides infrastructure used by changes in this pull request.
This pull request is broken out of an earlier pull request, "Second Round of Renesas ARM Based SoC Drivers Updates for v4.10". The motivation for breaking up the pull request is to provide branches with minimal dependencies.
This pull request is targeted at the next/drivers branch of the arm-soc tree.
It introduces some minor merge conflicts in drivers/soc/renesas/Makefile. The resolution is to take both sides. A sample merge resolution is provided in the renesas-next-20161123v2-v4.9-rc1 tag of the renesas tree.
The following changes since commit da65a1589dacc7ec44ea0557a14d70a39d991f32:
base: soc: Provide a dummy implementation of soc_device_match() (2016-11-10 10:10:37 +0100)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-soc-match-for-v4.10
for you to fetch changes up to 8d6799a9ba23acd675f3243580ee6f1756fb4381:
soc: renesas: Identify SoC and register with the SoC bus (2016-11-23 20:22:21 +0100)
----------------------------------------------------------------
Renesas ARM Based SoC Match Updates for v4.10
* Identify SoC and register with the SoC bus
----------------------------------------------------------------
Geert Uytterhoeven (2):
ARM: shmobile: Document DT bindings for Product Register
soc: renesas: Identify SoC and register with the SoC bus
Documentation/devicetree/bindings/arm/shmobile.txt | 18 ++ arch/arm/mach-shmobile/Kconfig | 1 + arch/arm64/Kconfig.platforms | 1 + drivers/soc/renesas/Makefile | 2 + drivers/soc/renesas/renesas-soc.c | 257 +++++++++++++++++++++ 5 files changed, 279 insertions(+) create mode 100644 drivers/soc/renesas/renesas-soc.c
PATCH 1/2 ARM: shmobile: Document DT bindings for Product Register
From: Geert Uytterhoeven <[email protected]>
Add device tree binding documentation for the Product Register (PRR), which provides product and revision information on most Renesas ARM SoCs.
--- Documentation/devicetree/bindings/arm/shmobile.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
Documentation/devicetree/bindings/arm/shmobile.txt +18 -0
@@ -75,3 +75,21 @@ Boards: compatible = "renesas,silk", "renesas,r8a7794" - Wheat compatible = "renesas,wheat", "renesas,r8a7792" + + +Most Renesas ARM SoCs have a Product Register that allows to retrieve SoC +product and revision information. If present, a device node for this register +should be added. + +Required properties: + - compatible: Must be "renesas,prr". + - reg: Base address and length of the register block. + + +Examples +-------- + + prr: chipid at ff000044 { + compatible = "renesas,prr"; + reg = <0 0xff000044 0 4>; + };
Signature · 1 line
2.7.0.rc3.207.g0ac5344
PATCH 2/2 soc: renesas: Identify SoC and register with the SoC bus
In reply to Simon HormanFrom: Geert Uytterhoeven <[email protected]>
Identify the SoC type and revision, and register this information with the SoC bus, so it is available under /sys/devices/soc0/, and can be checked where needed using soc_device_match().
Identification is done using the Product Register or Common Chip Code Register, as declared in DT (PRR only for now), or using a hardcoded fallback if missing.
Example:
Detected Renesas R-Car Gen2 r8a7791 ES1.0
...
# cat /sys/devices/soc0/{machine,family,soc_id,revision}
Koelsch
R-Car Gen2
r8a7791
ES1.0--- arch/arm/mach-shmobile/Kconfig | 1 + arch/arm64/Kconfig.platforms | 1 + drivers/soc/renesas/Makefile | 2 + drivers/soc/renesas/renesas-soc.c | 257 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 261 insertions(+) create mode 100644 drivers/soc/renesas/renesas-soc.c
arch/arm/mach-shmobile/Kconfig +1 -0
@@ -40,6 +40,7 @@ menuconfig ARCH_RENESAS select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE select NO_IOPORT_MAP select PINCTRL + select SOC_BUS select GPIOLIB select ZONE_DMA if ARM_LPAE
arch/arm64/Kconfig.platforms +1 -0
@@ -143,6 +143,7 @@ config ARCH_RENESAS select PM select PM_GENERIC_DOMAINS select RENESAS_IRQC + select SOC_BUS help This enables support for the ARMv8 based Renesas SoCs.
drivers/soc/renesas/Makefile +2 -0
@@ -1,3 +1,5 @@ +obj-$(CONFIG_SOC_BUS) += renesas-soc.o + obj-$(CONFIG_ARCH_R8A7779) += rcar-sysc.o r8a7779-sysc.o obj-$(CONFIG_ARCH_R8A7790) += rcar-sysc.o r8a7790-sysc.o obj-$(CONFIG_ARCH_R8A7791) += rcar-sysc.o r8a7791-sysc.o
drivers/soc/renesas/renesas-soc.c new file +257 -0
257 lines not on this page · raw message
Signature · 1 line
2.7.0.rc3.207.g0ac5344
Quoted 11 lines · CET Simon Horman
This pull request is based on the pull request "
soc_device_match()interface for matching againstsoc_busattributes" sent by Geert Uytterhoeven which corresponds to the soc-device-match-tag1 tag in his renesas-driver's tree. It provides infrastructure used by changes in this pull request.This pull request is broken out of an earlier pull request, "Second Round of Renesas ARM Based SoC Drivers Updates for v4.10". The motivation for breaking up the pull request is to provide branches with minimal dependencies.
Quoted 6 lines
This pull request is targeted at the next/drivers branch of the arm-soc tree.
It introduces some minor merge conflicts in
drivers/soc/renesas/Makefile. The resolution is to take both sides. A sample merge resolution is provided in the renesas-next-20161123v2-v4.9-rc1 tag of the renesas tree.
Pulled into next/drivers, thanks!
Arnd
Quoted 12 lines · Arnd Bergmann
Quoted 11 lines · CET Simon Horman
This pull request is based on the pull request "
soc_device_match()interface for matching againstsoc_busattributes" sent by Geert Uytterhoeven which corresponds to the soc-device-match-tag1 tag in his renesas-driver's tree. It provides infrastructure used by changes in this pull request.This pull request is broken out of an earlier pull request, "Second Round of Renesas ARM Based SoC Drivers Updates for v4.10". The motivation for breaking up the pull request is to provide branches with minimal dependencies.
Quoted 8 lines
Quoted 6 lines
This pull request is targeted at the next/drivers branch of the arm-soc tree.
It introduces some minor merge conflicts in
drivers/soc/renesas/Makefile. The resolution is to take both sides. A sample merge resolution is provided in the renesas-next-20161123v2-v4.9-rc1 tag of the renesas tree.Pulled into next/drivers, thanks!
Thanks for pulling this and other outstanding pull requests from Geert and myself. I don't think we have anything more outstanding at this time.
Quoted 2 lines · CET Simon Horman
Thanks for pulling this and other outstanding pull requests from Geert and myself. I don't think we have anything more outstanding at this time.
Ok, thanks for the confirmation!
Arnd