38dc954e8cb5272ad8fa3ebc902d80eecdb24a41
[openwrt/staging/blocktrron.git] /
1 From 924087c5c3d41553700b0eb83ca2a53b91643dca Mon Sep 17 00:00:00 2001
2 From: Ansuel Smith <ansuelsmth@gmail.com>
3 Date: Thu, 14 Oct 2021 00:39:14 +0200
4 Subject: dt-bindings: net: dsa: qca8k: Document qca,led-open-drain binding
5
6 Document new binding qca,ignore-power-on-sel used to ignore
7 power on strapping and use sw regs instead.
8 Document qca,led-open.drain to set led to open drain mode, the
9 qca,ignore-power-on-sel is mandatory with this enabled or an error will
10 be reported.
11
12 Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
13 Signed-off-by: David S. Miller <davem@davemloft.net>
14 ---
15 Documentation/devicetree/bindings/net/dsa/qca8k.txt | 11 +++++++++++
16 1 file changed, 11 insertions(+)
17
18 --- a/Documentation/devicetree/bindings/net/dsa/qca8k.txt
19 +++ b/Documentation/devicetree/bindings/net/dsa/qca8k.txt
20 @@ -13,6 +13,17 @@ Required properties:
21 Optional properties:
22
23 - reset-gpios: GPIO to be used to reset the whole device
24 +- qca,ignore-power-on-sel: Ignore power on pin strapping to configure led open
25 + drain or eeprom presence. This is needed for broken
26 + devices that have wrong configuration or when the oem
27 + decided to not use pin strapping and fallback to sw
28 + regs.
29 +- qca,led-open-drain: Set leds to open-drain mode. This requires the
30 + qca,ignore-power-on-sel to be set or the driver will fail
31 + to probe. This is needed if the oem doesn't use pin
32 + strapping to set this mode and prefers to set it using sw
33 + regs. The pin strapping related to led open drain mode is
34 + the pin B68 for QCA832x and B49 for QCA833x
35
36 Subnodes:
37