Skip to content

Commit 0e19118

Browse files
KanjiMonsterbroonie
authored andcommitted
dt-bindings: spi: convert spi-brcm63xx.txt to YAML
Changes done during conversion: * added a description, lifting and adapting the limitation sentence from brcm,bcm63xx-hsspi.yml * added appropriate compatibles for all SoCs that are supported by bcm63xx/bmips Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Jonas Gorski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 142c61a commit 0e19118

File tree

3 files changed

+72
-34
lines changed

3 files changed

+72
-34
lines changed
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/spi/brcm,bcm63xx-spi.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Broadcom BCM6348/BCM6358 SPI controller
8+
9+
maintainers:
10+
- Jonas Gorski <[email protected]>
11+
12+
description: |
13+
Broadcom "Low Speed" SPI controller found in many older MIPS based Broadband
14+
SoCs.
15+
16+
This controller has a limitation that can not keep the chip select line active
17+
between the SPI transfers within the same SPI message. This can terminate the
18+
transaction to some SPI devices prematurely. The issue can be worked around by
19+
the controller's prepend mode.
20+
21+
allOf:
22+
- $ref: spi-controller.yaml#
23+
24+
properties:
25+
compatible:
26+
oneOf:
27+
- items:
28+
- enum:
29+
- brcm,bcm6368-spi
30+
- brcm,bcm6362-spi
31+
- brcm,bcm63268-spi
32+
- const: brcm,bcm6358-spi
33+
- enum:
34+
- brcm,bcm6348-spi
35+
- brcm,bcm6358-spi
36+
37+
reg:
38+
maxItems: 1
39+
40+
clocks:
41+
items:
42+
- description: SPI master reference clock
43+
44+
clock-names:
45+
items:
46+
- const: spi
47+
48+
interrupts:
49+
maxItems: 1
50+
51+
required:
52+
- compatible
53+
- reg
54+
- clocks
55+
- clock-names
56+
- interrupts
57+
58+
unevaluatedProperties: false
59+
60+
examples:
61+
- |
62+
spi@10000800 {
63+
compatible = "brcm,bcm6368-spi", "brcm,bcm6358-spi";
64+
reg = <0x10000800 0x70c>;
65+
interrupts = <1>;
66+
clocks = <&clkctl 9>;
67+
clock-names = "spi";
68+
num-cs = <5>;
69+
#address-cells = <1>;
70+
#size-cells = <0>;
71+
};

Documentation/devicetree/bindings/spi/spi-bcm63xx.txt

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

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4127,7 +4127,7 @@ BROADCOM BCM6348/BCM6358 SPI controller DRIVER
41274127
M: Jonas Gorski <[email protected]>
41284128
41294129
S: Odd Fixes
4130-
F: Documentation/devicetree/bindings/spi/spi-bcm63xx.txt
4130+
F: Documentation/devicetree/bindings/spi/brcm,bcm63xx-spi.yaml
41314131
F: drivers/spi/spi-bcm63xx.c
41324132

41334133
BROADCOM ETHERNET PHY DRIVERS

0 commit comments

Comments
 (0)