The Raspberry Pi bootloader provides a revision code[0] in the devicetree, at /system/linux,revision. This patch adds /system/linux,revision to the schema to allow it to be used in mainline Linux. [0]: https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#new-style-revision-codes Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@xxxxxxx> --- Documentation/devicetree/bindings/arm/bcm/bcm2835.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/bcm/bcm2835.yaml b/Documentation/devicetree/bindings/arm/bcm/bcm2835.yaml index 162a39dab21823..c6abf818b5ea57 100644 --- a/Documentation/devicetree/bindings/arm/bcm/bcm2835.yaml +++ b/Documentation/devicetree/bindings/arm/bcm/bcm2835.yaml @@ -54,6 +54,18 @@ properties: - raspberrypi,model-zero-2-w - const: brcm,bcm2837 + system: + type: object + additionalProperties: true + properties: + + linux,revision: + $ref: /schemas/types.yaml#/definitions/string-array + description: + The "system revision" number, as determined by the bootloader. + https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#new-style-revision-codes + + additionalProperties: true ... -- 2.43.0