forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'armsoc-drivers' of git://git.kernel.org/pub/scm/linux/kern…
…el/git/arm/arm-soc Pull ARM SoC driver updates from Olof Johansson: "Driver updates for v4.1. Some of these are for drivers/soc, where we find more and more SoC-specific drivers these days. Some are for other driver subsystems where we have received acks from the appropriate maintainers. The larger parts of this branch are: - MediaTek support for their PMIC wrapper interface, a high-level interface for talking to the system PMIC over a dedicated I2C interface. - Qualcomm SCM driver has been moved to drivers/firmware. It's used for CPU up/down and needs to be in a shared location for arm/arm64 common code. - cleanup of ARM-CCI PMU code. - another set of cleanusp to the OMAP GPMC code" * tag 'armsoc-drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (43 commits) soc/mediatek: Remove unused variables clocksource: atmel-st: select MFD_SYSCON soc: mediatek: Add PMIC wrapper for MT8135 and MT8173 SoCs arm-cci: Fix CCI PMU event validation arm-cci: Split the code for PMU vs driver support arm-cci: Get rid of secure transactions for PMU driver arm-cci: Abstract the CCI400 PMU specific definitions arm-cci: Rearrange code for splitting PMU vs driver code drivers: cci: reject groups spanning multiple HW PMUs ARM: at91: remove useless include clocksource: atmel-st: remove mach/hardware dependency clocksource: atmel-st: use syscon/regmap ARM: at91: time: move the system timer driver to drivers/clocksource ARM: at91: properly initialize timer ARM: at91: at91rm9200: remove deprecated arm_pm_restart watchdog: at91rm9200: implement restart handler watchdog: at91rm9200: use the system timer syscon mfd: syscon: Add atmel system timer registers definition ARM: at91/dt: declare atmel,at91rm9200-st as a syscon soc: qcom: gsbi: Add support for ADM CRCI muxing ...
- Loading branch information
Showing
52 changed files
with
2,753 additions
and
960 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
Renesas Bus State Controller (BSC) | ||
================================== | ||
|
||
The Renesas Bus State Controller (BSC, sometimes called "LBSC within Bus | ||
Bridge", or "External Bus Interface") can be found in several Renesas ARM SoCs. | ||
It provides an external bus for connecting multiple external devices to the | ||
SoC, driving several chip select lines, for e.g. NOR FLASH, Ethernet and USB. | ||
|
||
While the BSC is a fairly simple memory-mapped bus, it may be part of a PM | ||
domain, and may have a gateable functional clock. | ||
Before a device connected to the BSC can be accessed, the PM domain | ||
containing the BSC must be powered on, and the functional clock | ||
driving the BSC must be enabled. | ||
|
||
The bindings for the BSC extend the bindings for "simple-pm-bus". | ||
|
||
|
||
Required properties | ||
- compatible: Must contain an SoC-specific value, and "renesas,bsc" and | ||
"simple-pm-bus" as fallbacks. | ||
SoC-specific values can be: | ||
"renesas,bsc-r8a73a4" for R-Mobile APE6 (r8a73a4) | ||
"renesas,bsc-sh73a0" for SH-Mobile AG5 (sh73a0) | ||
- #address-cells, #size-cells, ranges: Must describe the mapping between | ||
parent address and child address spaces. | ||
- reg: Must contain the base address and length to access the bus controller. | ||
|
||
Optional properties: | ||
- interrupts: Must contain a reference to the BSC interrupt, if available. | ||
- clocks: Must contain a reference to the functional clock, if available. | ||
- power-domains: Must contain a reference to the PM domain, if available. | ||
|
||
|
||
Example: | ||
|
||
bsc: bus@fec10000 { | ||
compatible = "renesas,bsc-sh73a0", "renesas,bsc", | ||
"simple-pm-bus"; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
ranges = <0 0 0x20000000>; | ||
reg = <0xfec10000 0x400>; | ||
interrupts = <0 39 IRQ_TYPE_LEVEL_HIGH>; | ||
clocks = <&zb_clk>; | ||
power-domains = <&pd_a4s>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
Simple Power-Managed Bus | ||
======================== | ||
|
||
A Simple Power-Managed Bus is a transparent bus that doesn't need a real | ||
driver, as it's typically initialized by the boot loader. | ||
|
||
However, its bus controller is part of a PM domain, or under the control of a | ||
functional clock. Hence, the bus controller's PM domain and/or clock must be | ||
enabled for child devices connected to the bus (either on-SoC or externally) | ||
to function. | ||
|
||
While "simple-pm-bus" follows the "simple-bus" set of properties, as specified | ||
in ePAPR, it is not an extension of "simple-bus". | ||
|
||
|
||
Required properties: | ||
- compatible: Must contain at least "simple-pm-bus". | ||
Must not contain "simple-bus". | ||
It's recommended to let this be preceded by one or more | ||
vendor-specific compatible values. | ||
- #address-cells, #size-cells, ranges: Must describe the mapping between | ||
parent address and child address spaces. | ||
|
||
Optional platform-specific properties for clock or PM domain control (at least | ||
one of them is required): | ||
- clocks: Must contain a reference to the functional clock(s), | ||
- power-domains: Must contain a reference to the PM domain. | ||
Please refer to the binding documentation for the clock and/or PM domain | ||
providers for more details. | ||
|
||
|
||
Example: | ||
|
||
bsc: bus@fec10000 { | ||
compatible = "renesas,bsc-sh73a0", "renesas,bsc", | ||
"simple-pm-bus"; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
ranges = <0 0 0x20000000>; | ||
reg = <0xfec10000 0x400>; | ||
interrupts = <0 39 IRQ_TYPE_LEVEL_HIGH>; | ||
clocks = <&zb_clk>; | ||
power-domains = <&pd_a4s>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* arch/arm/include/asm/arm-cci.h | ||
* | ||
* Copyright (C) 2015 ARM Ltd. | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef __ASM_ARM_CCI_H | ||
#define __ASM_ARM_CCI_H | ||
|
||
#ifdef CONFIG_MCPM | ||
#include <asm/mcpm.h> | ||
|
||
/* | ||
* We don't have a reliable way of detecting whether, | ||
* if we have access to secure-only registers, unless | ||
* mcpm is registered. | ||
*/ | ||
static inline bool platform_has_secure_cci_access(void) | ||
{ | ||
return mcpm_is_available(); | ||
} | ||
|
||
#else | ||
static inline bool platform_has_secure_cci_access(void) | ||
{ | ||
return false; | ||
} | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.