Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: auxdisplay: img-ascii-lcd: Convert to json-schema

Convert the Device Tree binding documentation for ASCII LCD displays on
Imagination Technologies boards to json-schema.

Drop bogus regmap property.
Add example.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/6e74aa466d39ddc9abe502e054d04e8cc7b76b40.1627402094.git.geert@linux-m68k.org
[robh: add type to 'offset']
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Geert Uytterhoeven and committed by
Rob Herring
9c407378 dbe60e5d

+56 -18
+55
Documentation/devicetree/bindings/auxdisplay/img,ascii-lcd.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/auxdisplay/img,ascii-lcd.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: ASCII LCD displays on Imagination Technologies boards 8 + 9 + maintainers: 10 + - Paul Burton <paulburton@kernel.org> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - img,boston-lcd 16 + - mti,malta-lcd 17 + - mti,sead3-lcd 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + offset: 23 + $ref: /schemas/types.yaml#/definitions/uint32 24 + description: 25 + Offset in bytes to the LCD registers within the system controller 26 + 27 + required: 28 + - compatible 29 + 30 + oneOf: 31 + - required: 32 + - reg 33 + - required: 34 + - offset 35 + 36 + if: 37 + properties: 38 + compatible: 39 + contains: 40 + const: img,boston-lcd 41 + then: 42 + required: 43 + - reg 44 + else: 45 + required: 46 + - offset 47 + 48 + additionalProperties: false 49 + 50 + examples: 51 + - | 52 + lcd: lcd@17fff000 { 53 + compatible = "img,boston-lcd"; 54 + reg = <0x17fff000 0x8>; 55 + };
-17
Documentation/devicetree/bindings/auxdisplay/img-ascii-lcd.txt
··· 1 - Binding for ASCII LCD displays on Imagination Technologies boards 2 - 3 - Required properties: 4 - - compatible : should be one of: 5 - "img,boston-lcd" 6 - "mti,malta-lcd" 7 - "mti,sead3-lcd" 8 - 9 - Required properties for "img,boston-lcd": 10 - - reg : memory region locating the device registers 11 - 12 - Required properties for "mti,malta-lcd" or "mti,sead3-lcd": 13 - - regmap: phandle of the system controller containing the LCD registers 14 - - offset: offset in bytes to the LCD registers within the system controller 15 - 16 - The layout of the registers & properties of the display are determined 17 - from the compatible string, making this binding somewhat trivial.
+1 -1
MAINTAINERS
··· 9040 9040 IMGTEC ASCII LCD DRIVER 9041 9041 M: Paul Burton <paulburton@kernel.org> 9042 9042 S: Maintained 9043 - F: Documentation/devicetree/bindings/auxdisplay/img-ascii-lcd.txt 9043 + F: Documentation/devicetree/bindings/auxdisplay/img,ascii-lcd.yaml 9044 9044 F: drivers/auxdisplay/img-ascii-lcd.c 9045 9045 9046 9046 IMGTEC IR DECODER DRIVER