arm64: renesas: r8a7795: Add Renesas R8A7795 SoC support
Subsystems (6)
Magnus Damm
maintainerPATCH v10 1/7 arm64: renesas: r8a7795: Add Renesas R8A7795 SoC support
From: Gaku Inami <[email protected]>
Initial version of Renesas R-Car H3 support (V10)
---
TODO:
- Split this patch based on ARM-SoC maintainer preference
Changes since v9: (Magnus Damm <[email protected]>)
- Added clock-output-names for the CPG
Changes since v8: (Magnus Damm <[email protected]>)
- Renamed xtal node name to drop _clk - thanks Geert!
- Kconfig s/platform/platforms/g - thanks Laurent!
- Added select PINCTRL - thanks Geert
- Removed unused Makefile subdir line - thanks Laurent!
Changes since v7: (Magnus Damm <[email protected]>)
- Folded together the following patches from v7:
[PATCH 6/25] arm64: renesas: Add new Renesas R-Car Gen3 SoC Kconfig
[PATCH 7/25] arm64: renesas: r8a7795: Add Renesas R8A7795 SoC support
[PATCH 8/25] arm64: renesas: r8a7795: Add initial SoC support - Updated Kconfig bits
Changed to CONFIG_ARCH_R8A7795 and CONFIG_RENESAS CONFIG_ARCH_SHMOBILE is still set to be able to build various drivers CONFIG_ARCH_SHMOBILE_MULTI is gone
select PM_GENERIC_DOMAINS if PM
- Moved "s3d4_clk" to clock patch from geert
- Replaced CPG clock-output-names with clock-indices
- set #power-domain-cells to 0
Documentation/devicetree/bindings/arm/shmobile.txt | 2 arch/arm64/Kconfig.platforms | 17 +++ arch/arm64/boot/dts/Makefile | 1 arch/arm64/boot/dts/renesas/Makefile | 2 arch/arm64/boot/dts/renesas/r8a7795.dtsi | 89 ++++++++++++++++++++ include/dt-bindings/clock/r8a7795-clock.h | 38 ++++++++ 6 files changed, 149 insertions(+)
Documentation/devicetree/bindings/arm/shmobile.txt +2 -0
@@ -27,6 +27,8 @@ SoCs: compatible = "renesas,r8a7793" - R-Car E2 (R8A77940) compatible = "renesas,r8a7794" + - R-Car H3 (R8A77950) + compatible = "renesas,r8a7795" Boards:
arch/arm64/Kconfig.platforms +17 -0
@@ -66,6 +66,23 @@ config ARCH_SEATTLE help This enables support for AMD Seattle SOC Family +config ARCH_SHMOBILE + bool + +config ARCH_RENESAS + bool "Renesas SoC Platforms" + select ARCH_SHMOBILE + select PINCTRL + select PM_GENERIC_DOMAINS if PM + help + This enables support for the ARMv8 based Renesas SoCs. + +config ARCH_R8A7795 + bool "Renesas R-Car H3 SoC Platform" + depends on ARCH_RENESAS + help + This enables support for the Renesas R-Car H3 SoC. + config ARCH_TEGRA bool "NVIDIA Tegra SoC Family" select ARCH_HAS_RESET_CONTROLLER
arch/arm64/boot/dts/Makefile +1 -0
@@ -9,6 +9,7 @@ dts-dirs += hisilicon dts-dirs += marvell dts-dirs += mediatek dts-dirs += qcom +dts-dirs += renesas dts-dirs += rockchip dts-dirs += sprd dts-dirs += xilinx
arch/arm64/boot/dts/renesas/Makefile new file +2 -0
@@ -0,0 +1,2 @@ +always := $(dtb-y) +clean-files := *.dtb
arch/arm64/boot/dts/renesas/r8a7795.dtsi new file +89 -0
89 lines not on this page · raw message
include/dt-bindings/clock/r8a7795-clock.h new file +38 -0
@@ -0,0 +1,38 @@ +/* +* Copyright (C) 2015 Renesas Electronics Corp. +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation; either version 2 of the License, or +* (at your option) any later version. +*/ +#ifndef __DT_BINDINGS_CLOCK_R8A7795_H__ +#define __DT_BINDINGS_CLOCK_R8A7795_H__ + +/* CPG */ +#define R8A7795_CLK_MAIN 0 +#define R8A7795_CLK_PLL0 1 +#define R8A7795_CLK_PLL1 2 +#define R8A7795_CLK_PLL2 3 +#define R8A7795_CLK_PLL3 4 +#define R8A7795_CLK_PLL4 5 + +/* MSTP0 */ + +/* MSTP1 */ + +/* MSTP2 */ + +/* MSTP3 */ + +/* MSTP5 */ + +/* MSTP7 */ + +/* MSTP8 */ + +/* MSTP9 */ + +/* MSTP10 */ + +#endif /* __DT_BINDINGS_CLOCK_R8A7795_H__ */