| 1 |
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/spi/loongson,ls2k-spi.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: Loongson SPI controller |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Yinbo Zhu <[email protected]> |
| 11 |
|
| 12 |
allOf: |
| 13 |
- $ref: /schemas/spi/spi-controller.yaml# |
| 14 |
|
| 15 |
properties: |
| 16 |
compatible: |
| 17 |
oneOf: |
| 18 |
- enum: |
| 19 |
- loongson,ls2k1000-spi |
| 20 |
- items: |
| 21 |
- enum: |
| 22 |
- loongson,ls2k0500-spi |
| 23 |
- const: loongson,ls2k1000-spi |
| 24 |
|
| 25 |
reg: |
| 26 |
maxItems: 1 |
| 27 |
|
| 28 |
clocks: |
| 29 |
maxItems: 1 |
| 30 |
|
| 31 |
required: |
| 32 |
- compatible |
| 33 |
- reg |
| 34 |
- clocks |
| 35 |
|
| 36 |
unevaluatedProperties: false |
| 37 |
|
| 38 |
examples: |
| 39 |
- | |
| 40 |
spi0: spi@1fff0220{ |
| 41 |
compatible = "loongson,ls2k1000-spi"; |
| 42 |
reg = <0x1fff0220 0x10>; |
| 43 |
clocks = <&clk 17>; |
| 44 |
#address-cells = <1>; |
| 45 |
#size-cells = <0>; |
| 46 |
}; |