Skip to content

Commit dd6ec12

Browse files
committed
Merge tag 'devicetree-for-4.13' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux
Pull DeviceTree updates from Rob Herring: - vsprintf format specifier %pOF for device_node's. This will enable us to stop storing the full node names. Conversion of users will happen next cycle. - Update documentation to point to DT specification instead of ePAPR. - Split out graph and property functions to a separate file. - New of-graph functions for ALSA - Add vendor prefixes for RISC-V, Linksys, iWave Systems, Roofull, Itead, and BananaPi. - Improve dtx_diff utility filename printing. * tag 'devicetree-for-4.13' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (32 commits) of: document /sys/firmware/fdt dt-bindings: Add RISC-V vendor prefix vsprintf: Add %p extension "%pOF" for device tree of: find_node_by_full_name rewrite to compare each level of: use kbasename instead of open coding dt-bindings: thermal: add file extension to brcm,ns-thermal of: update ePAPR references to point to Devicetree Specification scripts/dtc: dtx_diff - Show real file names in diff header of: detect invalid phandle in overlay of: be consistent in form of file mode of: make __of_attach_node() static of: address.c header comment typo of: fdt.c header comment typo of: make of_fdt_is_compatible() static dt-bindings: display-timing.txt convert non-ascii characters to ascii Documentation: remove overlay-notes reference to non-existent file dt-bindings: usb: exynos-usb: Add missing required VDD properties dt-bindings: Add vendor prefix for Linksys MAINTAINERS: add device tree ABI documentation file of: Add vendor prefix for iWave Systems Technologies Pvt. Ltd ...
2 parents 21c19bc + a4485b5 commit dd6ec12

49 files changed

Lines changed: 1212 additions & 911 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/ABI/testing/sysfs-firmware-ofw‎

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
What: /sys/firmware/devicetree/*
22
Date: November 2013
3-
Contact: Grant Likely <grant.likely@linaro.org>
3+
Contact: Grant Likely <grant.likely@arm.com>, devicetree@vger.kernel.org
44
Description:
55
When using OpenFirmware or a Flattened Device Tree to enumerate
66
hardware, the device tree structure will be exposed in this
@@ -26,3 +26,27 @@ Description:
2626
name plus address). Properties are represented as files
2727
in the directory. The contents of each file is the exact
2828
binary data from the device tree.
29+
30+
What: /sys/firmware/fdt
31+
Date: February 2015
32+
KernelVersion: 3.19
33+
Contact: Frank Rowand <frowand.list@gmail.com>, devicetree@vger.kernel.org
34+
Description:
35+
Exports the FDT blob that was passed to the kernel by
36+
the bootloader. This allows userland applications such
37+
as kexec to access the raw binary. This blob is also
38+
useful when debugging since it contains any changes
39+
made to the blob by the bootloader.
40+
41+
The fact that this node does not reside under
42+
/sys/firmware/device-tree is deliberate: FDT is also used
43+
on arm64 UEFI/ACPI systems to communicate just the UEFI
44+
and ACPI entry points, but the FDT is never unflattened
45+
and used to configure the system.
46+
47+
A CRC32 checksum is calculated over the entire FDT
48+
blob, and verified at late_initcall time. The sysfs
49+
entry is instantiated only if the checksum is valid,
50+
i.e., if the FDT blob has not been modified in the mean
51+
time. Otherwise, a warning is printed.
52+
Users: kexec, debugging

‎Documentation/devicetree/bindings/arm/cci.txt‎

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@ clusters, through memory mapped interface, with a global control register
1111
space and multiple sets of interface control registers, one per slave
1212
interface.
1313

14-
Bindings for the CCI node follow the ePAPR standard, available from:
15-
16-
www.power.org/documentation/epapr-version-1-1/
17-
18-
with the addition of the bindings described in this document which are
19-
specific to ARM.
20-
2114
* CCI interconnect node
2215

2316
Description: Describes a CCI cache coherent Interconnect component
@@ -50,10 +43,10 @@ specific to ARM.
5043
as a tuple of cells, containing child address,
5144
parent address and the size of the region in the
5245
child address space.
53-
Definition: A standard property. Follow rules in the ePAPR for
54-
hierarchical bus addressing. CCI interfaces
55-
addresses refer to the parent node addressing
56-
scheme to declare their register bases.
46+
Definition: A standard property. Follow rules in the Devicetree
47+
Specification for hierarchical bus addressing. CCI
48+
interfaces addresses refer to the parent node
49+
addressing scheme to declare their register bases.
5750

5851
CCI interconnect node can define the following child nodes:
5952

‎Documentation/devicetree/bindings/arm/cpus.txt‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ The device tree allows to describe the layout of CPUs in a system through
66
the "cpus" node, which in turn contains a number of subnodes (ie "cpu")
77
defining properties for every cpu.
88

9-
Bindings for CPU nodes follow the ePAPR v1.1 standard, available from:
9+
Bindings for CPU nodes follow the Devicetree Specification, available from:
1010

11-
https://www.power.org/documentation/epapr-version-1-1/
11+
https://www.devicetree.org/specifications/
1212

1313
with updates for 32-bit and 64-bit ARM systems provided in this document.
1414

1515
================================
1616
Convention used in this document
1717
================================
1818

19-
This document follows the conventions described in the ePAPR v1.1, with
20-
the addition:
19+
This document follows the conventions described in the Devicetree
20+
Specification, with the addition:
2121

2222
- square brackets define bitfields, eg reg[7:0] value of the bitfield in
2323
the reg property contained in bits 7 down to 0
@@ -26,8 +26,9 @@ the addition:
2626
cpus and cpu node bindings definition
2727
=====================================
2828

29-
The ARM architecture, in accordance with the ePAPR, requires the cpus and cpu
30-
nodes to be present and contain the properties described below.
29+
The ARM architecture, in accordance with the Devicetree Specification,
30+
requires the cpus and cpu nodes to be present and contain the properties
31+
described below.
3132

3233
- cpus node
3334

‎Documentation/devicetree/bindings/arm/idle-states.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,5 +695,5 @@ cpus {
695695
[4] ARM Architecture Reference Manuals
696696
http://infocenter.arm.com/help/index.jsp
697697

698-
[5] ePAPR standard
699-
https://www.power.org/documentation/epapr-version-1-1/
698+
[5] Devicetree Specification
699+
https://www.devicetree.org/specifications/

‎Documentation/devicetree/bindings/arm/l2c2x0.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ ARM cores often have a separate L2C210/L2C220/L2C310 (also known as PL210/PL220/
44
PL310 and variants) based level 2 cache controller. All these various implementations
55
of the L2 cache controller have compatible programming models (Note 1).
66
Some of the properties that are just prefixed "cache-*" are taken from section
7-
3.7.3 of the ePAPR v1.1 specification which can be found at:
8-
https://www.power.org/wp-content/uploads/2012/06/Power_ePAPR_APPROVED_v1.1.pdf
7+
3.7.3 of the Devicetree Specification which can be found at:
8+
https://www.devicetree.org/specifications/
99

1010
The ARM L2 cache representation in the device tree should be done as follows:
1111

‎Documentation/devicetree/bindings/arm/topology.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ corresponding to the system hierarchy; syntactically they are defined as device
2929
tree nodes.
3030

3131
The remainder of this document provides the topology bindings for ARM, based
32-
on the ePAPR standard, available from:
32+
on the Devicetree Specification, available from:
3333

34-
http://www.power.org/documentation/epapr-version-1-1/
34+
https://www.devicetree.org/specifications/
3535

3636
If not stated otherwise, whenever a reference to a cpu node phandle is made its
3737
value must point to a cpu node compliant with the cpu node bindings as

‎Documentation/devicetree/bindings/bus/simple-pm-bus.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ enabled for child devices connected to the bus (either on-SoC or externally)
1010
to function.
1111

1212
While "simple-pm-bus" follows the "simple-bus" set of properties, as specified
13-
in ePAPR, it is not an extension of "simple-bus".
13+
in the Devicetree Specification, it is not an extension of "simple-bus".
1414

1515

1616
Required properties:

‎Documentation/devicetree/bindings/chosen.txt‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ stdout-path property
1010
--------------------
1111

1212
Device trees may specify the device to be used for boot console output
13-
with a stdout-path property under /chosen, as described in ePAPR, e.g.
13+
with a stdout-path property under /chosen, as described in the Devicetree
14+
Specification, e.g.
1415

1516
/ {
1617
chosen {

‎Documentation/devicetree/bindings/common-properties.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Common properties
22

3-
The ePAPR specification does not define any properties related to hardware
3+
The Devicetree Specification does not define any properties related to hardware
44
byteswapping, but endianness issues show up frequently in porting Linux to
55
different machine types. This document attempts to provide a consistent
66
way of handling byteswapping across drivers.

‎Documentation/devicetree/bindings/crypto/fsl-sec4.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ PROPERTIES
118118
Definition: A list of clock name strings in the same order as the
119119
clocks property.
120120

121-
Note: All other standard properties (see the ePAPR) are allowed
122-
but are optional.
121+
Note: All other standard properties (see the Devicetree Specification)
122+
are allowed but are optional.
123123

124124

125125
EXAMPLE

0 commit comments

Comments
 (0)