Skip to content

Commit 36e7886

Browse files
Fabio Estevambroonie
authored andcommitted
dt-bindings: misc: lwn,bk4-spi: Add binding
Add a lwn,bk4-spi.yaml binding for Liebherr's BK4 external SPI controller. Currently, the compatible string used for this device is "lwn,bk4", which is the same as the board compatible string documented at fsl.yaml. This causes several dt-schema warnings: make dtbs_check DT_SCHEMA_FILES=fsl.yaml ... ['lwn,bk4'] is too short 'lwn,bk4' is not one of ['tq,imx8dxp-tqma8xdp-mba8xx'] 'lwn,bk4' is not one of ['tq,imx8qxp-tqma8xqp-mba8xx'] 'lwn,bk4' is not one of ['armadeus,imx1-apf9328', 'fsl,imx1ads'] ... Use a more specific "lwn,bk4-spi" compatible string for this device. Signed-off-by: Fabio Estevam <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 40384c8 commit 36e7886

File tree

2 files changed

+54
-26
lines changed

2 files changed

+54
-26
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/misc/lwn,bk4-spi.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Liebherr's BK4 external SPI controller
8+
9+
maintainers:
10+
- Lukasz Majewski <[email protected]>
11+
12+
description: |
13+
Liebherr's BK4 external SPI controller is a device which handles data
14+
acquisition from compatible industrial peripherals.
15+
The SPI is used for data and management purposes in both master and
16+
slave modes.
17+
18+
allOf:
19+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
20+
21+
properties:
22+
compatible:
23+
const: lwn,bk4-spi
24+
25+
reg:
26+
maxItems: 1
27+
28+
spi-max-frequency:
29+
maximum: 30000000
30+
31+
fsl,spi-cs-sck-delay: true
32+
33+
fsl,spi-sck-cs-delay: true
34+
35+
required:
36+
- compatible
37+
- spi-max-frequency
38+
39+
additionalProperties: false
40+
41+
examples:
42+
- |
43+
spi {
44+
#address-cells = <1>;
45+
#size-cells = <0>;
46+
47+
spidev@0 {
48+
compatible = "lwn,bk4-spi";
49+
reg = <0>;
50+
spi-max-frequency = <30000000>;
51+
fsl,spi-cs-sck-delay = <200>;
52+
fsl,spi-sck-cs-delay = <400>;
53+
};
54+
};

Documentation/devicetree/bindings/misc/lwn-bk4.txt

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)