Skip to content

Commit b805c40

Browse files
moore-brosholtmann
authored andcommitted
dt-bindings: net: bluetooth: add support for MediaTek MT7663U and MT7668U UART devices
Update binding document with adding support of MT7663U and MT7668U UART devices to mediatek-bluetooth. Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Sean Wang <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
1 parent 94d6671 commit b805c40

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

Documentation/devicetree/bindings/net/mediatek-bluetooth.txt

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,67 @@ Example:
3333
clock-names = "ref";
3434
};
3535
};
36+
37+
MediaTek UART based Bluetooth Devices
38+
==================================
39+
40+
This device is a serial attached device to UART device and thus it must be a
41+
child node of the serial node with UART.
42+
43+
Please refer to the following documents for generic properties:
44+
45+
Documentation/devicetree/bindings/serial/slave-device.txt
46+
47+
Required properties:
48+
49+
- compatible: Must be
50+
"mediatek,mt7663u-bluetooth": for MT7663U device
51+
"mediatek,mt7668u-bluetooth": for MT7668U device
52+
- vcc-supply: Main voltage regulator
53+
- pinctrl-names: Should be "default", "runtime"
54+
- pinctrl-0: Should contain UART RXD low when the device is powered up to
55+
enter proper bootstrap mode.
56+
- pinctrl-1: Should contain UART mode pin ctrl
57+
58+
Optional properties:
59+
60+
- reset-gpios: GPIO used to reset the device whose initial state keeps low,
61+
if the GPIO is missing, then board-level design should be
62+
guaranteed.
63+
- current-speed: Current baud rate of the device whose defaults to 921600
64+
65+
Example:
66+
67+
uart1_pins_boot: uart1-default {
68+
pins-dat {
69+
pinmux = <MT7623_PIN_81_URXD1_FUNC_GPIO81>;
70+
output-low;
71+
};
72+
};
73+
74+
uart1_pins_runtime: uart1-runtime {
75+
pins-dat {
76+
pinmux = <MT7623_PIN_81_URXD1_FUNC_URXD1>,
77+
<MT7623_PIN_82_UTXD1_FUNC_UTXD1>;
78+
};
79+
};
80+
81+
uart1: serial@11003000 {
82+
compatible = "mediatek,mt7623-uart",
83+
"mediatek,mt6577-uart";
84+
reg = <0 0x11003000 0 0x400>;
85+
interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_LOW>;
86+
clocks = <&pericfg CLK_PERI_UART1_SEL>,
87+
<&pericfg CLK_PERI_UART1>;
88+
clock-names = "baud", "bus";
89+
90+
bluetooth {
91+
compatible = "mediatek,mt7663u-bluetooth";
92+
vcc-supply = <&reg_5v>;
93+
reset-gpios = <&pio 24 GPIO_ACTIVE_LOW>;
94+
pinctrl-names = "default", "runtime";
95+
pinctrl-0 = <&uart1_pins_boot>;
96+
pinctrl-1 = <&uart1_pins_runtime>;
97+
current-speed = <921600>;
98+
};
99+
};

0 commit comments

Comments
 (0)