kernel: fix busy wait loop in mediatek PPE code
[openwrt/openwrt.git] / target / linux / bcm4908 / patches-5.4 / 140-0002-dt-bindings-mtd-add-binding-from-BCM4908-partitions.patch
1 From 4f740351484e88bcea3776578288b6ec400829c8 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 16:01:04 +0100
4 Subject: [PATCH 2/3] dt-bindings: mtd: add binding from BCM4908 partitions
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 BCM4908 uses fixed partitions layout but function of some partitions may
10 vary. Some devices use multiple firmware partitions and those should be
11 marked to let system discover their purpose.
12
13 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
14 ---
15 .../partitions/brcm,bcm4908-partitions.yaml | 68 +++++++++++++++++++
16 1 file changed, 68 insertions(+)
17 create mode 100644 Documentation/devicetree/bindings/mtd/partitions/brcm,bcm4908-partitions.yaml
18
19 --- /dev/null
20 +++ b/Documentation/devicetree/bindings/mtd/partitions/brcm,bcm4908-partitions.yaml
21 @@ -0,0 +1,68 @@
22 +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
23 +%YAML 1.2
24 +---
25 +$id: http://devicetree.org/schemas/mtd/partitions/brcm,bcm4908-partitions.yaml#
26 +$schema: http://devicetree.org/meta-schemas/core.yaml#
27 +
28 +title: Broadcom BCM4908 partitioning
29 +
30 +description: |
31 + Broadcom BCM4908 CFE bootloader supports two firmware partitions. One is used
32 + for regular booting, the other is treated as fallback.
33 +
34 + This binding allows defining all fixed partitions and marking those containing
35 + firmware. System can use that information e.g. for booting or flashing
36 + purposes.
37 +
38 +maintainers:
39 + - Rafał Miłecki <rafal@milecki.pl>
40 +
41 +properties:
42 + compatible:
43 + const: brcm,bcm4908-partitions
44 +
45 + "#address-cells": true
46 +
47 + "#size-cells": true
48 +
49 +patternProperties:
50 + "@[0-9a-f]+$":
51 + allOf:
52 + - $ref: "partition.yaml#"
53 + - properties:
54 + compatible:
55 + const: brcm,bcm4908-firmware
56 +
57 +required:
58 + - "#address-cells"
59 + - "#size-cells"
60 +
61 +additionalProperties: false
62 +
63 +examples:
64 + - |
65 + partitions {
66 + compatible = "brcm,bcm4908-partitions";
67 + #address-cells = <1>;
68 + #size-cells = <1>;
69 +
70 + partition@0 {
71 + label = "cferom";
72 + reg = <0x0 0x100000>;
73 + };
74 +
75 + partition@100000 {
76 + compatible = "brcm,bcm4908-firmware";
77 + reg = <0x100000 0xf00000>;
78 + };
79 +
80 + partition@1000000 {
81 + compatible = "brcm,bcm4908-firmware";
82 + reg = <0x1000000 0xf00000>;
83 + };
84 +
85 + partition@1f00000 {
86 + label = "calibration";
87 + reg = <0x1f00000 0x100000>;
88 + };
89 + };