1 From cdfed4d05780450817ef96567e2cd8d355ca9e70 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Marek=20Beh=C3=BAn?= <kabel@kernel.org>
3 Date: Mon, 1 Jul 2024 13:30:03 +0200
4 Subject: [PATCH 01/11] dt-bindings: firmware: add cznic,turris-omnia-mcu
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
10 Add binding for cznic,turris-omnia-mcu, the device-tree node
11 representing the system-controller features provided by the MCU on the
14 Signed-off-by: Marek BehĂșn <kabel@kernel.org>
15 Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
16 Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
17 Reviewed-by: Andy Shevchenko <andy@kernel.org>
18 Acked-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
19 Link: https://lore.kernel.org/r/20240701113010.16447-2-kabel@kernel.org
20 Signed-off-by: Arnd Bergmann <arnd@arndb.de>
22 .../firmware/cznic,turris-omnia-mcu.yaml | 86 +++++++++++++++++++
24 2 files changed, 87 insertions(+)
25 create mode 100644 Documentation/devicetree/bindings/firmware/cznic,turris-omnia-mcu.yaml
28 +++ b/Documentation/devicetree/bindings/firmware/cznic,turris-omnia-mcu.yaml
30 +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
33 +$id: http://devicetree.org/schemas/firmware/cznic,turris-omnia-mcu.yaml#
34 +$schema: http://devicetree.org/meta-schemas/core.yaml#
36 +title: CZ.NIC's Turris Omnia MCU
39 + - Marek BehĂșn <kabel@kernel.org>
42 + The MCU on Turris Omnia acts as a system controller providing additional
43 + GPIOs, interrupts, watchdog, system power off and wakeup configuration.
47 + const: cznic,turris-omnia-mcu
50 + description: MCU I2C slave address
56 + interrupt-controller: true
61 + The first cell specifies the interrupt number (0 to 63), the second cell
62 + specifies interrupt type (which can be one of IRQ_TYPE_EDGE_RISING,
63 + IRQ_TYPE_EDGE_FALLING or IRQ_TYPE_EDGE_BOTH).
64 + The interrupt numbers correspond sequentially to GPIO numbers, taking the
65 + GPIO banks into account:
66 + IRQ number GPIO bank GPIO pin within bank
70 + There are several exceptions:
72 + 11 LED panel brightness changed by button press
73 + 13 TRNG entropy ready
74 + 14 ECDSA message signature computation done
76 + gpio-controller: true
81 + The first cell is bank number (0, 1 or 2), the second cell is pin number
82 + within the bank (0 to 15 for banks 0 and 2, 0 to 31 for bank 1), and the
83 + third cell specifies consumer flags.
89 + - interrupt-controller
92 +additionalProperties: false
96 + #include <dt-bindings/interrupt-controller/irq.h>
99 + #address-cells = <1>;
102 + system-controller@2a {
103 + compatible = "cznic,turris-omnia-mcu";
106 + interrupt-parent = <&gpio1>;
107 + interrupts = <11 IRQ_TYPE_NONE>;
112 + interrupt-controller;
113 + #interrupt-cells = <2>;
118 @@ -2104,6 +2104,7 @@ F: Documentation/ABI/testing/sysfs-bus-m
119 F: Documentation/ABI/testing/sysfs-firmware-turris-mox-rwtm
120 F: Documentation/devicetree/bindings/bus/moxtet.txt
121 F: Documentation/devicetree/bindings/firmware/cznic,turris-mox-rwtm.txt
122 +F: Documentation/devicetree/bindings/firmware/cznic,turris-omnia-mcu.yaml
123 F: Documentation/devicetree/bindings/gpio/gpio-moxtet.txt
124 F: Documentation/devicetree/bindings/leds/cznic,turris-omnia-leds.yaml
125 F: Documentation/devicetree/bindings/watchdog/armada-37xx-wdt.txt