Home
last modified time | relevance | path

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

/linux-6.6/Documentation/devicetree/bindings/
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 Also see :ref:`example-schema`.
13 Schema Contents
14 ---------------
16 Each schema doc is a structured json-schema which is defined by a set of
17 top-level properties. Generally, there is one binding defined per file. The
18 top-level json-schema properties used are:
[all …]
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
19 $(DT_DOC_CHECKER) --version 2>/dev/null || echo 0; } | sort -Vc >/dev/null || \
28 find_all_cmd = find $(srctree)/$(src) \( -name '*.yaml' ! \
29 -name 'processed-schema*' \)
31 find_cmd = $(find_all_cmd) | grep -F -e "$(subst :," -e ",$(DT_SCHEMA_FILES))"
36 xargs -n200 -P$$(nproc) \
37 $(DT_SCHEMA_LINT) -f parsable -c $(srctree)/$(src)/.yamllint >&2) || true
[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#
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
30 # schema should be applied to the node. It is optional and by default the
[all …]
D.gitignore1 # SPDX-License-Identifier: GPL-2.0-only
3 /processed-schema*.yaml
4 /processed-schema*.json
7 # We don't want to ignore the following even if they are dot-files
Dsubmitting-patches.rst1 .. SPDX-License-Identifier: GPL-2.0
11 Documentation/process/submitting-patches.rst applies.
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 Documentation/devicetree/bindings/writing-schema.rst for more details
29 about schema and tools setup.
32 (GPL-2.0-only OR BSD-2-Clause).
55 - compatible: Must contain '"nvidia,<chip>-pcie",
56 "nvidia,tegra20-pcie"' where <chip> is tegra30, tegra132, ...
[all …]
/linux-6.6/tools/net/ynl/
Dcli.py2 # SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
5 import json
14 parser.add_argument('--spec', dest='spec', type=str, required=True)
15 parser.add_argument('--schema', dest='schema', type=str)
16 parser.add_argument('--no-schema', action='store_true')
17 parser.add_argument('--json', dest='json_text', type=str)
18 parser.add_argument('--do', dest='do', type=str)
19 parser.add_argument('--dump', dest='dump', type=str)
20 parser.add_argument('--sleep', dest='sleep', type=int)
21 parser.add_argument('--subscribe', dest='ntf', type=str)
[all …]
Dethtool.py2 # SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
5 import json
14 Verify and convert command-line arguments to the ynl-compatible request.
17 valid_attrs.remove('header') # not user-provided
41 Pretty-print a set of fields from the reply. desc specifies the
66 Print out the speed-like strings from the value dict.
68 speed_re = re.compile(r'[0-9]+base[^/]+/.+')
78 'dev-name': args.device,
95 if msg['header']['dev-name'] == args.device:
96 if args.json:
[all …]
/linux-6.6/tools/perf/scripts/python/
Dgecko.py1 # gecko.py - Convert perf record output to Firefox's gecko profile format
2 # SPDX-License-Identifier: GPL-2.0
9 # perf record -a -g -F 99 sleep 60
14 # perf script gecko -F 99 -a sleep 60
19 import json
32 # Add the Perf-Trace-Util library to the Python path
34 '/scripts/python/Perf-Trace-Util/lib/Perf/Trace')
48 # https://github.com/firefox-devtools/profiler/blob/53970305b51b9b472e26d7457fee1d66cd4e2737/src/ty…
53 PRODUCT = os.popen('uname -op').read().strip()
68 # https://github.com/firefox-devtools/profiler/blob/53970305b51b9b472e26d7457fee1d66cd4e2737/src/ty…
[all …]
/linux-6.6/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-6.6/Documentation/netlink/
Dgenetlink.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
3 ---
4 $id: http://kernel.org/schemas/netlink/genetlink-legacy.yaml#
5 $schema: https://json-schema.org/draft-07/schema
12 len-or-define:
14 pattern: ^[0-9A-Za-z_]+( - 1)?$
17 # Schema for specs
21 required: [ name, doc, attribute-sets, operations ]
34 description: Schema compatibility level. Default is "genetlink".
36 uapi-header:
[all …]
Dgenetlink-c.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
3 ---
4 $id: http://kernel.org/schemas/netlink/genetlink-c.yaml#
5 $schema: https://json-schema.org/draft-07/schema
12 len-or-define:
14 pattern: ^[0-9A-Za-z_]+( - 1)?$
17 # Schema for specs
21 required: [ name, doc, attribute-sets, operations ]
34 description: Schema compatibility level. Default is "genetlink".
35 enum: [ genetlink, genetlink-c ]
[all …]
Dgenetlink-legacy.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
3 ---
4 $id: http://kernel.org/schemas/netlink/genetlink-legacy.yaml#
5 $schema: https://json-schema.org/draft-07/schema
12 len-or-define:
14 pattern: ^[0-9A-Za-z_]+( - 1)?$
17 # Schema for specs
21 required: [ name, doc, attribute-sets, operations ]
34 description: Schema compatibility level. Default is "genetlink".
35 enum: [ genetlink, genetlink-c, genetlink-legacy ] # Trim
[all …]
Dnetlink-raw.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
3 ---
4 $id: http://kernel.org/schemas/netlink/netlink-raw.yaml#
5 $schema: https://json-schema.org/draft-07/schema
12 len-or-define:
14 pattern: ^[0-9A-Za-z_]+( - 1)?$
17 # Schema for specs
21 required: [ name, doc, attribute-sets, operations ]
30 description: Schema compatibility level.
31 enum: [ netlink-raw ] # Trim
[all …]
/linux-6.6/Documentation/devicetree/bindings/mailbox/
Dxlnx,zynqmp-ipi-mailbox.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/mailbox/xlnx,zynqmp-ipi-mailbox.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
14 +-------------------------------------+
16 +-------------------------------------+
17 +--------------------------------------------------+
18 TF-A | |
21 +--------------------------+ |
24 +--------------------------------------------------+
[all …]
/linux-6.6/
DMakefile1 # SPDX-License-Identifier: GPL-2.0
28 # Most importantly: sub-Makefiles should only ever modify files in
31 # unavoidable when linking the built-in.a targets which finally
41 this-makefile := $(lastword $(MAKEFILE_LIST))
42 export abs_srctree := $(realpath $(dir $(this-makefile)))
47 # Do not use make's built-in rules and variables
48 # (this increases performance and avoids hard-to-debug behaviour)
49 MAKEFLAGS += -rR
61 # ---------------------------------------------------------------------------
71 # A simple variant is to prefix commands with $(Q) - that's useful
[all …]
/linux-6.6/Documentation/dev-tools/
Dcheckpatch.rst1 .. SPDX-License-Identifier: GPL-2.0-only
27 - -q, --quiet
31 - -v, --verbose
35 - --no-tree
39 - --no-signoff
41 Disable the 'Signed-off-by' line check. The sign-off is a simple line at
43 or otherwise have the right to pass it on as an open-source patch.
47 Signed-off-by: Random J Developer <random@developer.example.org>
49 Setting this flag effectively stops a message for a missing signed-off-by
52 - --patch
[all …]
/linux-6.6/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)
9 KBUILD_AFLAGS += $(subdir-asflags-y)
10 KBUILD_CFLAGS += $(subdir-ccflags-y)
11 KBUILD_RUSTFLAGS += $(subdir-rustflags-y)
16 # When an object is listed to be built compiled-in and modular,
17 # only build the compiled-in version
[all …]