| 1 |
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/spi/axiado,ax3000-spi.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: Axiado AX3000 SoC SPI controller |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Vladimir Moravcevic <[email protected]> |
| 11 |
- Tzu-Hao Wei <[email protected]> |
| 12 |
- Swark Yang <[email protected]> |
| 13 |
- Prasad Bolisetty <[email protected]> |
| 14 |
|
| 15 |
allOf: |
| 16 |
- $ref: spi-controller.yaml# |
| 17 |
|
| 18 |
properties: |
| 19 |
compatible: |
| 20 |
enum: |
| 21 |
- axiado,ax3000-spi |
| 22 |
|
| 23 |
reg: |
| 24 |
maxItems: 1 |
| 25 |
|
| 26 |
interrupts: |
| 27 |
maxItems: 1 |
| 28 |
|
| 29 |
clock-names: |
| 30 |
items: |
| 31 |
- const: ref |
| 32 |
- const: pclk |
| 33 |
|
| 34 |
clocks: |
| 35 |
maxItems: 2 |
| 36 |
|
| 37 |
num-cs: |
| 38 |
description: | |
| 39 |
Number of chip selects used. |
| 40 |
$ref: /schemas/types.yaml#/definitions/uint32 |
| 41 |
minimum: 1 |
| 42 |
maximum: 4 |
| 43 |
default: 4 |
| 44 |
|
| 45 |
required: |
| 46 |
- compatible |
| 47 |
- reg |
| 48 |
- interrupts |
| 49 |
- clock-names |
| 50 |
- clocks |
| 51 |
|
| 52 |
unevaluatedProperties: false |
| 53 |
|
| 54 |
examples: |
| 55 |
- | |
| 56 |
#include <dt-bindings/interrupt-controller/irq.h> |
| 57 |
#include <dt-bindings/interrupt-controller/arm-gic.h> |
| 58 |
|
| 59 |
soc { |
| 60 |
#address-cells = <2>; |
| 61 |
#size-cells = <2>; |
| 62 |
|
| 63 |
spi@80510000 { |
| 64 |
compatible = "axiado,ax3000-spi"; |
| 65 |
reg = <0x00 0x80510000 0x00 0x1000>; |
| 66 |
clock-names = "ref", "pclk"; |
| 67 |
clocks = <&spi_clk>, <&apb_pclk>; |
| 68 |
interrupt-parent = <&gic500>; |
| 69 |
interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>; |
| 70 |
num-cs = <4>; |
| 71 |
}; |
| 72 |
}; |
| 73 |
... |