Skip to content

Commit 030672a

Browse files
committed
Merge tag 'devicetree-for-4.21' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux
Pull Devicetree updates from Rob Herring: "The biggest highlight here is the start of using json-schema for DT bindings. Being able to validate bindings has been discussed for years with little progress. - Initial support for DT bindings using json-schema language. This is the start of converting DT bindings from free-form text to a structured format. - Reworking of initrd address initialization. This moves to using the phys address instead of virt addr in the DT parsing code. This rework was motivated by CONFIG_DEV_BLK_INITRD causing unnecessary rebuilding of lots of files. - Fix stale phandle entries in phandle cache - DT overlay validation improvements. This exposed several memory leak bugs which have been fixed. - Use node name and device_type helper functions in DT code - Last remaining conversions to using %pOFn printk specifier instead of device_node.name directly - Create new common RTC binding doc and move all trivial RTC devices out of trivial-devices.txt. - New bindings for Freescale MAG3110 magnetometer, Cadence Sierra PHY, and Xen shared memory - Update dtc to upstream version v1.4.7-57-gf267e674d145" * tag 'devicetree-for-4.21' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (68 commits) of: __of_detach_node() - remove node from phandle cache of: of_node_get()/of_node_put() nodes held in phandle cache gpio-omap.txt: add reg and interrupts properties dt-bindings: mrvl,intc: fix a trivial typo dt-bindings: iio: magnetometer: add dt-bindings for freescale mag3110 dt-bindings: Convert trivial-devices.txt to json-schema dt-bindings: arm: mrvl: amend Browstone compatible string dt-bindings: arm: Convert Tegra board/soc bindings to json-schema dt-bindings: arm: Convert ZTE board/soc bindings to json-schema dt-bindings: arm: Add missing Xilinx boards dt-bindings: arm: Convert Xilinx board/soc bindings to json-schema dt-bindings: arm: Convert VIA board/soc bindings to json-schema dt-bindings: arm: Convert ST STi board/soc bindings to json-schema dt-bindings: arm: Convert SPEAr board/soc bindings to json-schema dt-bindings: arm: Convert CSR SiRF board/soc bindings to json-schema dt-bindings: arm: Convert QCom board/soc bindings to json-schema dt-bindings: arm: Convert TI nspire board/soc bindings to json-schema dt-bindings: arm: Convert TI davinci board/soc bindings to json-schema dt-bindings: arm: Convert Calxeda board/soc bindings to json-schema dt-bindings: arm: Convert Altera board/soc bindings to json-schema ...
2 parents 24dc836 + 5801169 commit 030672a

112 files changed

Lines changed: 3461 additions & 1772 deletions

File tree

Some content is hidden

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

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*.bin
1616
*.bz2
1717
*.c.[012]*.*
18+
*.dt.yaml
1819
*.dtb
1920
*.dtb.S
2021
*.dwo

‎Documentation/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Makefile for Sphinx documentation
33
#
44

5-
subdir-y :=
5+
subdir-y := devicetree/bindings/
66

77
# You can set these variables from the command line.
88
SPHINXBUILD = sphinx-build
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.example.dts
2+
processed-schema.yaml
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
DT_DOC_CHECKER ?= dt-doc-validate
3+
DT_EXTRACT_EX ?= dt-extract-example
4+
DT_MK_SCHEMA ?= dt-mk-schema
5+
DT_MK_SCHEMA_FLAGS := $(if $(DT_SCHEMA_FILES), -u)
6+
7+
quiet_cmd_chk_binding = CHKDT $(patsubst $(srctree)/%,%,$<)
8+
cmd_chk_binding = $(DT_DOC_CHECKER) $< ; \
9+
$(DT_EXTRACT_EX) $< > $@
10+
11+
$(obj)/%.example.dts: $(src)/%.yaml FORCE
12+
$(call if_changed,chk_binding)
13+
14+
DT_TMP_SCHEMA := processed-schema.yaml
15+
extra-y += $(DT_TMP_SCHEMA)
16+
17+
quiet_cmd_mk_schema = SCHEMA $@
18+
cmd_mk_schema = $(DT_MK_SCHEMA) $(DT_MK_SCHEMA_FLAGS) -o $@ $(filter-out FORCE, $^)
19+
20+
DT_DOCS = $(shell cd $(srctree)/$(src) && find * -name '*.yaml')
21+
DT_SCHEMA_FILES ?= $(addprefix $(src)/,$(DT_DOCS))
22+
23+
extra-y += $(patsubst $(src)/%.yaml,%.example.dts, $(DT_SCHEMA_FILES))
24+
extra-y += $(patsubst $(src)/%.yaml,%.example.dtb, $(DT_SCHEMA_FILES))
25+
26+
$(obj)/$(DT_TMP_SCHEMA): $(DT_SCHEMA_FILES) FORCE
27+
$(call if_changed,mk_schema)

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

Lines changed: 0 additions & 14 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/arm/altera.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Altera's SoCFPGA platform device tree bindings
8+
9+
maintainers:
10+
- Dinh Nguyen <dinguyen@kernel.org>
11+
12+
properties:
13+
compatible:
14+
items:
15+
- enum:
16+
- altr,socfpga-cyclone5
17+
- altr,socfpga-arria5
18+
- altr,socfpga-arria10
19+
- const: altr,socfpga
20+
...

‎Documentation/devicetree/bindings/arm/altera/socfpga-clk-manager.txt‎

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/arm/altera/socfpga-clk-manager.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Altera SOCFPGA Clock Manager
8+
9+
maintainers:
10+
- Dinh Nguyen <dinguyen@kernel.org>
11+
12+
description: test
13+
14+
properties:
15+
compatible:
16+
items:
17+
- const: altr,clk-mgr
18+
reg:
19+
maxItems: 1
20+
21+
required:
22+
- compatible
23+
24+
examples:
25+
- |
26+
clkmgr@ffd04000 {
27+
compatible = "altr,clk-mgr";
28+
reg = <0xffd04000 0x1000>;
29+
};
30+
31+
...

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

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/arm/calxeda.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Calxeda Platforms Device Tree Bindings
8+
9+
maintainers:
10+
- Rob Herring <robh@kernel.org>
11+
description: |+
12+
Bindings for boards with Calxeda Cortex-A9 based ECX-1000 (Highbank) SOC
13+
or Cortex-A15 based ECX-2000 SOCs
14+
15+
properties:
16+
$nodename:
17+
const: '/'
18+
compatible:
19+
items:
20+
- enum:
21+
- calxeda,highbank
22+
- calxeda,ecx-2000

0 commit comments

Comments
 (0)