Resguardo inicial

This commit is contained in:
lastdragon
2026-09-06 12:53:21 -06:00
parent 662efe3c2a
commit ad2088d178
94853 changed files with 43200404 additions and 0 deletions
@@ -0,0 +1,12 @@
// SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
/*
* Test fixture: a .dts using space indent (must use tabs).
*/
/dts-v1/;
/ {
compatible = "example,test-board";
#address-cells = <1>;
#size-cells = <1>;
};
@@ -0,0 +1,41 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/test-bad-child-order.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Test fixture with addressed children out of order
maintainers:
- Test User <test@example.com>
properties:
compatible:
const: example,test-child-order
reg:
maxItems: 1
required:
- compatible
- reg
additionalProperties: false
examples:
- |
bus@10000 {
compatible = "simple-bus";
reg = <0x10000 0x1000>;
#address-cells = <1>;
#size-cells = <1>;
device@200 {
compatible = "example,test-child-order";
reg = <0x200 0x10>;
};
device@100 {
compatible = "example,test-child-order";
reg = <0x100 0x10>;
};
};
@@ -0,0 +1,37 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/test-bad-child-name-order.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Test fixture with unaddressed children out of name order
maintainers:
- Test User <test@example.com>
properties:
compatible:
const: example,test-child-name-order
reg:
maxItems: 1
required:
- compatible
- reg
additionalProperties: false
examples:
- |
bus@10000 {
compatible = "simple-bus";
reg = <0x10000 0x1000>;
foo {
label = "foo";
};
bar {
label = "bar";
};
};
@@ -0,0 +1,30 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/test-bad-cont-align.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Test fixture with mis-aligned multi-line property
maintainers:
- Test User <test@example.com>
properties:
compatible:
const: example,test-cont-align
reg:
maxItems: 2
required:
- compatible
- reg
additionalProperties: false
examples:
- |
foo@1000 {
compatible = "example,test-cont-align";
reg = <0x1000 0x100>,
<0x2000 0x100>;
};
@@ -0,0 +1,37 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/test-bad-digit-node-order.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Test fixture with digit-leading nodes out of address order
maintainers:
- Test User <test@example.com>
properties:
compatible:
const: example,test-digit-node-order
required:
- compatible
additionalProperties: false
examples:
- |
bus@0 {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <1>;
3d-engine@20 {
compatible = "example,3d-engine";
reg = <0x20 0x4>;
};
1wire@10 {
compatible = "example,1wire";
reg = <0x10 0x4>;
};
};
@@ -0,0 +1,29 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/test-bad-hex-case.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Test fixture with uppercase hex literals
maintainers:
- Test User <test@example.com>
properties:
compatible:
const: example,test-hex-case
reg:
maxItems: 1
required:
- compatible
- reg
additionalProperties: false
examples:
- |
foo@1000 {
compatible = "example,test-hex-case";
reg = <0xABCD 0x100>;
};
@@ -0,0 +1,29 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/test-bad-indent-strict.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Test fixture using 2-space indent (rejected by strict mode)
maintainers:
- Test User <test@example.com>
properties:
compatible:
const: example,test-indent-strict
reg:
maxItems: 1
required:
- compatible
- reg
additionalProperties: false
examples:
- |
device@1000 {
compatible = "example,test-indent-strict";
reg = <0x1000 0x100>;
};
@@ -0,0 +1,30 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/test-bad-label-in-string.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Test fixture where a label is only "referenced" inside a string
maintainers:
- Test User <test@example.com>
properties:
compatible:
const: example,test-label-in-string
reg:
maxItems: 1
required:
- compatible
- reg
additionalProperties: false
examples:
- |
foo: device@1000 {
compatible = "example,test-label-in-string";
reg = <0x1000 0x100>;
info = "see &foo for details";
};
@@ -0,0 +1,29 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/test-bad-line-length.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Test fixture exceeding 80 columns
maintainers:
- Test User <test@example.com>
properties:
compatible:
const: example,test-line-length
reg:
maxItems: 1
required:
- compatible
- reg
additionalProperties: false
examples:
- |
foo@1000 {
compatible = "example,test-line-length-this-is-a-very-long-name-indeed-yeah";
reg = <0x1000 0x100>;
};
@@ -0,0 +1,29 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/test-bad-mixed-indent.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Test fixture mixing tabs and spaces in indent
maintainers:
- Test User <test@example.com>
properties:
compatible:
const: example,test-mixed
reg:
maxItems: 1
required:
- compatible
- reg
additionalProperties: false
examples:
- |
device@1000 {
compatible = "example,test-mixed";
reg = <0x1000 0x100>;
};
@@ -0,0 +1,35 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/test-bad-multi-close.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Test fixture with two closing braces on one line
maintainers:
- Test User <test@example.com>
properties:
compatible:
const: example,test-multi-close
reg:
maxItems: 1
required:
- compatible
- reg
additionalProperties: false
examples:
- |
bus@10000 {
compatible = "simple-bus";
reg = <0x10000 0x1000>;
#address-cells = <1>;
#size-cells = <1>;
device@100 {
compatible = "example,test-multi-close";
reg = <0x100 0x10>;
}; };
@@ -0,0 +1,31 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/test-bad-node-close.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Test fixture with closing brace not on its own line
maintainers:
- Test User <test@example.com>
properties:
compatible:
const: example,test-node-close
reg:
maxItems: 1
required:
- compatible
- reg
additionalProperties: false
examples:
- |
bus@10000 {
compatible = "simple-bus";
reg = <0x10000 0x1000>;
empty {};
};
@@ -0,0 +1,29 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/test-bad-prop-order.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Test fixture with reg before compatible
maintainers:
- Test User <test@example.com>
properties:
compatible:
const: example,test-prop-order
reg:
maxItems: 1
required:
- compatible
- reg
additionalProperties: false
examples:
- |
device@1000 {
reg = <0x1000 0x100>;
compatible = "example,test-prop-order";
};
@@ -0,0 +1,33 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/test-bad-prop-pairing.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Test fixture exercising <x>-names and pinctrl-names pairing
maintainers:
- Test User <test@example.com>
properties:
compatible:
const: example,test-prop-pairing
reg:
maxItems: 1
required:
- compatible
- reg
additionalProperties: false
examples:
- |
foo@1000 {
compatible = "example,test-prop-pairing";
reg = <0x1000 0x100>;
clock-names = "bus";
clocks = <&clk 0>;
pinctrl-names = "default";
pinctrl-0 = <&p0>;
};
@@ -0,0 +1,33 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/test-bad-required-blank.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Test fixture missing required blank lines
maintainers:
- Test User <test@example.com>
properties:
compatible:
const: example,test-required-blank
reg:
maxItems: 1
required:
- compatible
- reg
additionalProperties: false
examples:
- |
bus@10000 {
compatible = "simple-bus";
reg = <0x10000 0x1000>;
status = "okay";
child@100 {
reg = <0x100>;
};
};
@@ -0,0 +1,29 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/test-bad-tab.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Test fixture with a tab in a DTS line
maintainers:
- Test User <test@example.com>
properties:
compatible:
const: example,test-tab
reg:
maxItems: 1
required:
- compatible
- reg
additionalProperties: false
examples:
- |
device@1000 {
compatible = "example,test-tab";
reg = <0x1000 0x100>; /* registers */
};
@@ -0,0 +1,26 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/test-bad-trailing-comment.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Test fixture with properties out of order behind trailing comments
maintainers:
- Test User <test@example.com>
properties:
compatible:
const: example,test-trailing-comment
required:
- compatible
additionalProperties: false
examples:
- |
foo@0 { /* the device node */
reg = <0x0 0x4>; /* registers */
compatible = "example,test-trailing-comment"; // misplaced
};
@@ -0,0 +1,29 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/test-bad-trailing.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Test fixture with trailing whitespace
maintainers:
- Test User <test@example.com>
properties:
compatible:
const: example,test-trailing
reg:
maxItems: 1
required:
- compatible
- reg
additionalProperties: false
examples:
- |
device@1000 {
compatible = "example,test-trailing";
reg = <0x1000 0x100>;
};
@@ -0,0 +1,30 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/test-bad-unclosed-comment.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Test fixture with an unclosed /* block comment
maintainers:
- Test User <test@example.com>
properties:
compatible:
const: example,test-unclosed-comment
reg:
maxItems: 1
required:
- compatible
- reg
additionalProperties: false
examples:
- |
/* this comment never closes
device@1000 {
compatible = "example,test-unclosed-comment";
reg = <0x1000 0x100>;
};
@@ -0,0 +1,29 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/test-bad-unit-addr-prefix.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Test fixture with 0x-prefixed unit address
maintainers:
- Test User <test@example.com>
properties:
compatible:
const: example,test-unit-addr-prefix
reg:
maxItems: 1
required:
- compatible
- reg
additionalProperties: false
examples:
- |
memory@0x1000 {
compatible = "example,test-unit-addr-prefix";
reg = <0x1000 0x100>;
};
@@ -0,0 +1,29 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/test-bad-unit-addr.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Test fixture with malformed unit address
maintainers:
- Test User <test@example.com>
properties:
compatible:
const: example,test-unit-addr
reg:
maxItems: 1
required:
- compatible
- reg
additionalProperties: false
examples:
- |
foo@01000 {
compatible = "example,test-unit-addr";
reg = <0x1000 0x100>;
};
@@ -0,0 +1,29 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/test-bad-unused-label.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Test fixture with an unused label
maintainers:
- Test User <test@example.com>
properties:
compatible:
const: example,test-unused-label
reg:
maxItems: 1
required:
- compatible
- reg
additionalProperties: false
examples:
- |
dev: device@1000 {
compatible = "example,test-unused-label";
reg = <0x1000 0x100>;
};
@@ -0,0 +1,27 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/test-bad-value-ws-multiline.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Test fixture with extra whitespace in a multi-line cell array
maintainers:
- Test User <test@example.com>
properties:
compatible:
const: example,test-value-ws-multiline
required:
- compatible
additionalProperties: false
examples:
- |
foo@0 {
compatible = "example,test-value-ws-multiline";
reg = < 0x0 0x4
0x8 0xc>;
};
@@ -0,0 +1,29 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/test-bad-value-ws.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Test fixture with extra whitespace inside <...>
maintainers:
- Test User <test@example.com>
properties:
compatible:
const: example,test-value-ws
reg:
maxItems: 1
required:
- compatible
- reg
additionalProperties: false
examples:
- |
foo@1000 {
compatible = "example,test-value-ws";
reg = < 0x1000 0x100 >;
};