Skip to content

Commit 73d2d70

Browse files
adalessandroVudentz
authored andcommitted
dt-bindings: net: Convert Marvell 8897/8997 bindings to DT schema
Convert the existing text-based DT bindings for Marvell 8897/8997 (sd8897/sd8997) bluetooth devices controller to a DT schema. While here, bindings for "usb1286,204e" (USB interface) are dropped from the DT schema definition as these are currently documented in file [0]. [0] Documentation/devicetree/bindings/net/btusb.txt Signed-off-by: Ariel D'Alessandro <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent 0b00bee commit 73d2d70

File tree

3 files changed

+80
-84
lines changed

3 files changed

+80
-84
lines changed
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/net/bluetooth/marvell,sd8897-bt.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Marvell 8897/8997 (sd8897/sd8997) bluetooth devices (SDIO)
8+
9+
maintainers:
10+
- Ariel D'Alessandro <[email protected]>
11+
12+
allOf:
13+
- $ref: /schemas/net/bluetooth/bluetooth-controller.yaml#
14+
15+
properties:
16+
compatible:
17+
enum:
18+
- marvell,sd8897-bt
19+
- marvell,sd8997-bt
20+
21+
reg:
22+
maxItems: 1
23+
24+
interrupts:
25+
maxItems: 1
26+
27+
marvell,cal-data:
28+
$ref: /schemas/types.yaml#/definitions/uint8-array
29+
description:
30+
Calibration data downloaded to the device during initialization.
31+
maxItems: 28
32+
33+
marvell,wakeup-pin:
34+
$ref: /schemas/types.yaml#/definitions/uint16
35+
description:
36+
Wakeup pin number of the bluetooth chip. Used by firmware to wakeup host
37+
system.
38+
39+
marvell,wakeup-gap-ms:
40+
$ref: /schemas/types.yaml#/definitions/uint16
41+
description:
42+
Wakeup latency of the host platform. Required by the chip sleep feature.
43+
44+
required:
45+
- compatible
46+
- reg
47+
- interrupts
48+
49+
additionalProperties: false
50+
51+
examples:
52+
- |
53+
#include <dt-bindings/interrupt-controller/irq.h>
54+
55+
mmc {
56+
vmmc-supply = <&wlan_en_reg>;
57+
bus-width = <4>;
58+
cap-power-off-card;
59+
keep-power-in-suspend;
60+
61+
#address-cells = <1>;
62+
#size-cells = <0>;
63+
64+
bluetooth@2 {
65+
compatible = "marvell,sd8897-bt";
66+
reg = <2>;
67+
interrupt-parent = <&pio>;
68+
interrupts = <119 IRQ_TYPE_LEVEL_LOW>;
69+
70+
marvell,cal-data = /bits/ 8 <
71+
0x37 0x01 0x1c 0x00 0xff 0xff 0xff 0xff 0x01 0x7f 0x04 0x02
72+
0x00 0x00 0xba 0xce 0xc0 0xc6 0x2d 0x00 0x00 0x00 0x00 0x00
73+
0x00 0x00 0xf0 0x00>;
74+
marvell,wakeup-pin = /bits/ 16 <0x0d>;
75+
marvell,wakeup-gap-ms = /bits/ 16 <0x64>;
76+
};
77+
};
78+
79+
...

Documentation/devicetree/bindings/net/btusb.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Required properties:
1414

1515

1616
Also, vendors that use btusb may have device additional properties, e.g:
17-
Documentation/devicetree/bindings/net/marvell-bt-8xxx.txt
17+
Documentation/devicetree/bindings/net/bluetooth/marvell,sd8897-bt.yaml
1818

1919
Optional properties:
2020

Documentation/devicetree/bindings/net/marvell-bt-8xxx.txt

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

0 commit comments

Comments
 (0)