mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-31 22:23:05 +00:00

The example DTS should be indented with two or four (preferred) spaces, as mentioned in Writing Schema document. While re-indenting, change the node names to somehow generic names, as expected by Devicetree specification. Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Ralf Schlatterbeck <rsc@runtux.com> Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
56 lines
964 B
YAML
56 lines
964 B
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/auxdisplay/img,ascii-lcd.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: ASCII LCD displays on Imagination Technologies boards
|
|
|
|
maintainers:
|
|
- Paul Burton <paulburton@kernel.org>
|
|
|
|
properties:
|
|
compatible:
|
|
enum:
|
|
- img,boston-lcd
|
|
- mti,malta-lcd
|
|
- mti,sead3-lcd
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
offset:
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
description:
|
|
Offset in bytes to the LCD registers within the system controller
|
|
|
|
required:
|
|
- compatible
|
|
|
|
oneOf:
|
|
- required:
|
|
- reg
|
|
- required:
|
|
- offset
|
|
|
|
if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
const: img,boston-lcd
|
|
then:
|
|
required:
|
|
- reg
|
|
else:
|
|
required:
|
|
- offset
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
lcd: lcd@17fff000 {
|
|
compatible = "img,boston-lcd";
|
|
reg = <0x17fff000 0x8>;
|
|
};
|