-
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 'devicetree-for-4.5' of git://git.kernel.org/pub/scm/linux/…
…kernel/git/robh/linux Pull DeviceTree updates from Rob Herring: - Rework and export the changeset API to make it available to users other than DT overlays - ARM secure devices binding - OCTEON USB binding - Clean-up of various SRAM binding docs - Various other binding doc updates * tag 'devicetree-for-4.5' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (21 commits) drivers/of: Export OF changeset functions Fix documentation for adp1653 DT ARM: psci: Fix indentation in DT bindings of/platform: export of_default_bus_match_table of/unittest: Show broken behaviour in the platform bus of: fix declaration of of_io_request_and_map of/address: replace printk(KERN_ERR ...) with pr_err(...) of/irq: optimize device node matching loop in of_irq_init() dt-bindings: tda998x: Document the required 'port' node. net/macb: bindings doc: Merge cdns-emac to macb dt-bindings: Misc fix for the ATH79 DDR controllers dt-bindings: Misc fix for the ATH79 MISC interrupt controllers Documentation: dt: Add bindings for Secure-only devices dt-bindings: ARM: add arm,cortex-a72 compatible string ASoC: Atmel: ClassD: add GCK's parent clock in DT binding DT: add Olimex to vendor prefixes Documentation: fsl-quadspi: Add fsl,ls1021-qspi compatible string Documentation/devicetree: document OCTEON USB bindings usb: misc: usb3503: Describe better how to bind clock to the hub dt-bindings: Consolidate SRAM bindings from all vendors ...
- Loading branch information
Showing
28 changed files
with
252 additions
and
98 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
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,53 @@ | ||
* ARM Secure world bindings | ||
|
||
ARM CPUs with TrustZone support have two distinct address spaces, | ||
"Normal" and "Secure". Most devicetree consumers (including the Linux | ||
kernel) are not TrustZone aware and run entirely in either the Normal | ||
world or the Secure world. However some devicetree consumers are | ||
TrustZone aware and need to be able to determine whether devices are | ||
visible only in the Secure address space, only in the Normal address | ||
space, or visible in both. (One example of that situation would be a | ||
virtual machine which boots Secure firmware and wants to tell the | ||
firmware about the layout of the machine via devicetree.) | ||
|
||
The general principle of the naming scheme for Secure world bindings | ||
is that any property that needs a different value in the Secure world | ||
can be supported by prefixing the property name with "secure-". So for | ||
instance "secure-foo" would override "foo". For property names with | ||
a vendor prefix, the Secure variant of "vendor,foo" would be | ||
"vendor,secure-foo". If there is no "secure-" property then the Secure | ||
world value is the same as specified for the Normal world by the | ||
non-prefixed property. However, only the properties listed below may | ||
validly have "secure-" versions; this list will be enlarged on a | ||
case-by-case basis. | ||
|
||
Defining the bindings in this way means that a device tree which has | ||
been annotated to indicate the presence of Secure-only devices can | ||
still be processed unmodified by existing Non-secure software (and in | ||
particular by the kernel). | ||
|
||
Note that it is still valid for bindings intended for purely Secure | ||
world consumers (like kernels that run entirely in Secure) to simply | ||
describe the view of Secure world using the standard bindings. These | ||
secure- bindings only need to be used where both the Secure and Normal | ||
world views need to be described in a single device tree. | ||
|
||
Valid Secure world properties: | ||
|
||
- secure-status : specifies whether the device is present and usable | ||
in the secure world. The combination of this with "status" allows | ||
the various possible combinations of device visibility to be | ||
specified. If "secure-status" is not specified it defaults to the | ||
same value as "status"; if "status" is not specified either then | ||
both default to "okay". This means the following combinations are | ||
possible: | ||
|
||
/* Neither specified: default to visible in both S and NS */ | ||
secure-status = "okay"; /* visible in both */ | ||
status = "okay"; /* visible in both */ | ||
status = "okay"; secure-status = "okay"; /* visible in both */ | ||
secure-status = "disabled"; /* NS-only */ | ||
status = "okay"; secure-status = "disabled"; /* NS-only */ | ||
status = "disabled"; secure-status = "okay"; /* S-only */ | ||
status = "disabled"; /* disabled in both */ | ||
status = "disabled"; secure-status = "disabled"; /* disabled in both */ |
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
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
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
File renamed without changes.
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,62 @@ | ||
OCTEON/OCTEON+ USB BLOCK | ||
|
||
1) Main node | ||
|
||
Required properties: | ||
|
||
- compatible: must be "cavium,octeon-5750-usbn" | ||
|
||
- reg: specifies the physical base address of the USBN block and | ||
the length of the memory mapped region. | ||
|
||
- #address-cells: specifies the number of cells needed to encode an | ||
address. The value must be 2. | ||
|
||
- #size-cells: specifies the number of cells used to represent the size | ||
of an address. The value must be 2. | ||
|
||
- ranges: specifies the translation between child address space and parent | ||
address space. | ||
|
||
- clock-frequency: speed of the USB reference clock. Allowed values are | ||
12000000, 24000000 or 48000000. | ||
|
||
- cavium,refclk-type: type of the USB reference clock. Allowed values are | ||
"crystal" or "external". | ||
|
||
- refclk-frequency: deprecated, use "clock-frequency". | ||
|
||
- refclk-type: deprecated, use "cavium,refclk-type". | ||
|
||
2) Child node | ||
|
||
The main node must have one child node which describes the built-in | ||
USB controller. | ||
|
||
Required properties: | ||
|
||
- compatible: must be "cavium,octeon-5750-usbc" | ||
|
||
- reg: specifies the physical base address of the USBC block and | ||
the length of the memory mapped region. | ||
|
||
- interrupts: specifies the interrupt number for the USB controller. | ||
|
||
3) Example: | ||
|
||
usbn: usbn@1180068000000 { | ||
compatible = "cavium,octeon-5750-usbn"; | ||
reg = <0x11800 0x68000000 0x0 0x1000>; | ||
ranges; /* Direct mapping */ | ||
#address-cells = <2>; | ||
#size-cells = <2>; | ||
clock-frequency = <12000000>; | ||
cavium,refclk-type = "crystal"; | ||
|
||
usbc@16f0010000000 { | ||
compatible = "cavium,octeon-5750-usbc"; | ||
reg = <0x16f00 0x10000000 0x0 0x80000>; | ||
interrupts = <0 56>; | ||
}; | ||
}; | ||
|
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
Oops, something went wrong.