Skip to content

Commit ac4c064

Browse files
nxpfranklibroonie
authored andcommitted
spi: dt-bindings: add nxp,lpc3220-spi.yaml
Add lpc3220 spi controller binding doc to fix below CHECK_DTBS warning: arch/arm/boot/dts/nxp/lpc/lpc3250-ea3250.dtb: /ahb/apb/spi@20088000: failed to match any schema with compatible: ['nxp,lpc3220-spi'] Signed-off-by: Frank Li <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent e6352bf commit ac4c064

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/spi/nxp,lpc3220-spi.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: NXP LPC3220 SPI controller
8+
9+
maintainers:
10+
- Frank Li <[email protected]>
11+
12+
properties:
13+
compatible:
14+
enum:
15+
- nxp,lpc3220-spi
16+
17+
reg:
18+
maxItems: 1
19+
20+
clocks:
21+
maxItems: 1
22+
23+
allOf:
24+
- $ref: spi-controller.yaml#
25+
26+
unevaluatedProperties: false
27+
28+
required:
29+
- compatible
30+
- reg
31+
- clocks
32+
33+
examples:
34+
- |
35+
#include <dt-bindings/clock/lpc32xx-clock.h>
36+
37+
spi@20088000 {
38+
compatible = "nxp,lpc3220-spi";
39+
reg = <0x20088000 0x1000>;
40+
clocks = <&clk LPC32XX_CLK_SPI1>;
41+
#address-cells = <1>;
42+
#size-cells = <0>;
43+
};
44+

0 commit comments

Comments
 (0)