kernel: fix busy wait loop in mediatek PPE code
[openwrt/openwrt.git] / target / linux / bcm4908 / patches-5.4 / 140-0001-dt-bindings-mtd-move-partition-binding-to-its-own-fi.patch
1 From 4fdbaa5a3dbe761b231c13feaa53242aae3306cc Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Fri, 15 Jan 2021 15:23:02 +0100
4 Subject: [PATCH 1/3] dt-bindings: mtd: move partition binding to its own file
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Single partition binding is quite common and may be:
10 1. Used by multiple parsers
11 2. Extended for more specific cases
12
13 Move it to separated file to avoid code duplication.
14
15 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
16 ---
17 .../mtd/partitions/fixed-partitions.yaml | 33 +------------
18 .../bindings/mtd/partitions/partition.yaml | 47 +++++++++++++++++++
19 2 files changed, 48 insertions(+), 32 deletions(-)
20 create mode 100644 Documentation/devicetree/bindings/mtd/partitions/partition.yaml
21
22 --- a/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml
23 +++ b/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml
24 @@ -27,38 +27,7 @@ properties:
25
26 patternProperties:
27 "@[0-9a-f]+$":
28 - description: node describing a single flash partition
29 - type: object
30 -
31 - properties:
32 - reg:
33 - description: partition's offset and size within the flash
34 - maxItems: 1
35 -
36 - label:
37 - description: The label / name for this partition. If omitted, the label
38 - is taken from the node name (excluding the unit address).
39 -
40 - read-only:
41 - description: This parameter, if present, is a hint that this partition
42 - should only be mounted read-only. This is usually used for flash
43 - partitions containing early-boot firmware images or data which should
44 - not be clobbered.
45 - type: boolean
46 -
47 - lock:
48 - description: Do not unlock the partition at initialization time (not
49 - supported on all devices)
50 - type: boolean
51 -
52 - slc-mode:
53 - description: This parameter, if present, allows one to emulate SLC mode
54 - on a partition attached to an MLC NAND thus making this partition
55 - immune to paired-pages corruptions
56 - type: boolean
57 -
58 - required:
59 - - reg
60 + $ref: "partition.yaml#"
61
62 required:
63 - "#address-cells"
64 --- /dev/null
65 +++ b/Documentation/devicetree/bindings/mtd/partitions/partition.yaml
66 @@ -0,0 +1,47 @@
67 +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
68 +%YAML 1.2
69 +---
70 +$id: http://devicetree.org/schemas/mtd/partitions/partition.yaml#
71 +$schema: http://devicetree.org/meta-schemas/core.yaml#
72 +
73 +title: Partition
74 +
75 +description: |
76 + This binding describes a single flash partition. Each partition must have its
77 + relative offset and size specified. Depending on partition function extra
78 + properties can be used.
79 +
80 +maintainers:
81 + - Rafał Miłecki <rafal@milecki.pl>
82 +
83 +properties:
84 + reg:
85 + description: partition's offset and size within the flash
86 + maxItems: 1
87 +
88 + label:
89 + description: The label / name for this partition. If omitted, the label
90 + is taken from the node name (excluding the unit address).
91 +
92 + read-only:
93 + description: This parameter, if present, is a hint that this partition
94 + should only be mounted read-only. This is usually used for flash
95 + partitions containing early-boot firmware images or data which should
96 + not be clobbered.
97 + type: boolean
98 +
99 + lock:
100 + description: Do not unlock the partition at initialization time (not
101 + supported on all devices)
102 + type: boolean
103 +
104 + slc-mode:
105 + description: This parameter, if present, allows one to emulate SLC mode
106 + on a partition attached to an MLC NAND thus making this partition
107 + immune to paired-pages corruptions
108 + type: boolean
109 +
110 +required:
111 + - reg
112 +
113 +additionalProperties: true