Skip to content

Commit e246d5f

Browse files
committed
dt-bindings: soc: apple: Add Dockchannel and MTP bindings
This adds device tree bindings for the DockChannel, DockChannel HID and MTP nodes required to enable internal keyboard/trackpad support on M2 and later Apple Silicon laptops. Signed-off-by: Michael Reeves <[email protected]>
1 parent 8f0b4cc commit e246d5f

1 file changed

Lines changed: 86 additions & 0 deletions

File tree

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
# Copyright (c) 2025 The Asahi Linux contributors
3+
%YAML 1.2
4+
---
5+
$id: http://devicetree.org/schemas/soc/apple/apple,dockchannel.yaml#
6+
$schema: http://devicetree.org/meta-schemas/core.yaml#
7+
8+
title: Apple DockChannel FIFO
9+
10+
maintainers:
11+
- Michael Reeves <[email protected]>
12+
13+
description: |
14+
DockChannel is a hardware FIFO and interrupt controller used on Apple SoCs
15+
for low-latency communication with co-processors.
16+
17+
properties:
18+
compatible:
19+
oneOf:
20+
- items:
21+
- const: apple,t8112-dockchannel
22+
- items:
23+
- const: apple,t6020-dockchannel
24+
- const: apple,t8112-dockchannel
25+
26+
reg:
27+
maxItems: 1
28+
29+
interrupts:
30+
maxItems: 1
31+
32+
interrupt-controller: true
33+
34+
"#interrupt-cells":
35+
const: 2
36+
37+
ranges: true
38+
39+
nonposted-mmio: true
40+
41+
"#address-cells":
42+
const: 2
43+
44+
"#size-cells":
45+
const: 2
46+
47+
patternProperties:
48+
"^input@[0-9a-f]+$":
49+
$ref: /schemas/input/apple,dockchannel-hid.yaml
50+
51+
required:
52+
- compatible
53+
- reg
54+
- interrupts
55+
- interrupt-controller
56+
- "#interrupt-cells"
57+
- ranges
58+
- "#address-cells"
59+
- "#size-cells"
60+
61+
additionalProperties: false
62+
63+
examples:
64+
- |
65+
#include <dt-bindings/interrupt-controller/apple-aic.h>
66+
#include <dt-bindings/interrupt-controller/irq.h>
67+
68+
soc {
69+
#address-cells = <2>;
70+
#size-cells = <2>;
71+
72+
fifo@2a9b14000 {
73+
compatible = "apple,t6020-dockchannel", "apple,t8112-dockchannel";
74+
reg = <0x2 0xa9b14000 0x0 0x4000>;
75+
76+
interrupt-parent = <&aic>;
77+
interrupts = <AIC_IRQ 0 677 IRQ_TYPE_LEVEL_HIGH>;
78+
79+
ranges;
80+
#address-cells = <2>;
81+
#size-cells = <2>;
82+
83+
interrupt-controller;
84+
#interrupt-cells = <2>;
85+
};
86+
};

0 commit comments

Comments
 (0)