Home
last modified time | relevance | path

Searched +full:json +full:- +full:schema (Results 1 – 8 of 8) sorted by relevance

/linux-5.10/Documentation/devicetree/
Dwriting-schema.rst1 .. SPDX-License-Identifier: GPL-2.0
3 Writing DeviceTree Bindings in json-schema
6 Devicetree bindings are written using json-schema vocabulary. Schema files are
7 written in a JSON compatible subset of YAML. YAML is used instead of JSON as it
11 Schema Contents
12 ---------------
14 Each schema doc is a structured json-schema which is defined by a set of
15 top-level properties. Generally, there is one binding defined per file. The
16 top-level json-schema properties used are:
19 A json-schema unique identifier string. The string must be a valid
[all …]
/linux-5.10/Documentation/devicetree/bindings/
DMakefile1 # 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
13 $(DT_DOC_CHECKER) --version 2>/dev/null || echo 0; } | sort -VC || \
23 DT_TMP_SCHEMA := $(obj)/processed-schema-examples.json
25 find_cmd = find $(srctree)/$(src) \( -name '*.yaml' ! \
26 -name 'processed-schema*' ! \
27 -name '*.example.dt.yaml' \)
31 xargs $(DT_SCHEMA_LINT) -f parsable -c $(srctree)/$(src)/.yamllint
[all …]
Dexample-schema.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 ---
5 # All the top-level keys are standard json-schema keywords except for
10 $id: http://devicetree.org/schemas/example-schema.yaml#
11 # $schema is the meta-schema this schema should be validated with.
12 $schema: http://devicetree.org/meta-schemas/core.yaml#
14 title: An example schema annotated with jsonschema details
17 - Rob Herring <robh@kernel.org>
20 A more detailed multi-line description of the binding.
29 # 'select' is a schema applied to a DT node to determine if this binding
[all …]
D.gitignore1 # SPDX-License-Identifier: GPL-2.0-only
3 processed-schema*.yaml
4 processed-schema*.json
Dsubmitting-patches.rst1 .. SPDX-License-Identifier: GPL-2.0
10 0) Normal patch submission rules from Documentation/process/submitting-patches.rst
13 1) The Documentation/ and include/dt-bindings/ portion of the patch should
16 "dt-bindings: <binding dir>: ..."
22 2) DT binding files are written in DT schema format using json-schema
28 See ../writing-schema.rst for more details about schema and tools setup.
31 (GPL-2.0-only OR BSD-2-Clause).
54 - compatible: Must contain '"nvidia,<chip>-pcie",
55 "nvidia,tegra20-pcie"' where <chip> is tegra30, tegra132, ...
62 string that is matched by the driver (as in the "nvidia,tegra20-pcie"
[all …]
/linux-5.10/tools/testing/kunit/
Dkunit_json.py1 # SPDX-License-Identifier: GPL-2.0
3 # Generates JSON from KUnit results according to
4 # KernelCI spec: https://github.com/kernelci/kernelci-doc/wiki/Test-API
9 import json
34 # failure message, see https://api.kernelci.org/schema-test-case.html#get
55 json_obj = json.dumps(test_group, indent=4)
/linux-5.10/tools/testing/selftests/bpf/
Dtest_offload.py7 # June 1991 as shown in the file COPYING in the top-level directory of this
20 import json
50 log_level -= sub
113 stdout = stdout.decode("utf-8")
114 stderr = stderr.decode("utf-8")
119 if stderr[-1] == "\n":
120 stderr = stderr[:-1]
129 if len(stderr) > 0 and stderr[-1] == "\n":
130 stderr = stderr[:-1]
139 cmd("rm -f %s" % (f))
[all …]
/linux-5.10/scripts/
DMakefile.lib1 # SPDX-License-Identifier: GPL-2.0
3 asflags-y += $(EXTRA_AFLAGS)
4 ccflags-y += $(EXTRA_CFLAGS)
5 cppflags-y += $(EXTRA_CPPFLAGS)
6 ldflags-y += $(EXTRA_LDFLAGS)
8 $(warning 'always' is deprecated. Please use 'always-y' instead)
9 always-y += $(always)
11 ifneq ($(hostprogs-y),)
12 $(warning 'hostprogs-y' is deprecated. Please use 'hostprogs' instead)
13 hostprogs += $(hostprogs-y)
[all …]