Skip to content

Commit 5a0d2df

Browse files
smaeulvinodkoul
authored andcommitted
dt-bindings: sun6i-a31-mipi-dphy: Add the interrupts property
The sun6i DPHY can generate several interrupts, mostly for reporting error conditions, but also for detecting BTA and UPLS sequences. Document this capability in order to accurately describe the hardware. The DPHY has no interrupt number provided in the vendor documentation because its interrupt line is shared with the DSI controller. A trivial interrupt handler was used to verify that interrupts were in fact generated by the DPHY and not the DSI controller. Signed-off-by: Samuel Holland <[email protected]> Acked-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent e8511f4 commit 5a0d2df

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Documentation/devicetree/bindings/phy/allwinner,sun6i-a31-mipi-dphy.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ properties:
2424
reg:
2525
maxItems: 1
2626

27+
interrupts:
28+
maxItems: 1
29+
2730
clocks:
2831
items:
2932
- description: Bus Clock
@@ -53,6 +56,7 @@ required:
5356
- "#phy-cells"
5457
- compatible
5558
- reg
59+
- interrupts
5660
- clocks
5761
- clock-names
5862
- resets
@@ -61,9 +65,12 @@ additionalProperties: false
6165

6266
examples:
6367
- |
68+
#include <dt-bindings/interrupt-controller/arm-gic.h>
69+
6470
dphy0: d-phy@1ca1000 {
6571
compatible = "allwinner,sun6i-a31-mipi-dphy";
6672
reg = <0x01ca1000 0x1000>;
73+
interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
6774
clocks = <&ccu 23>, <&ccu 97>;
6875
clock-names = "bus", "mod";
6976
resets = <&ccu 4>;

0 commit comments

Comments
 (0)