Skip to content

Navigation Menu

Sign in
Sign up

arm64: dts: apple: Add built-in keyboard support for M4 Macbook Pro #567

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Ryan1202 wants to merge 3 commits into AsahiLinux:bits/000-devicetree
base: bits/000-devicetree
Choose a base branch
Loading
from Ryan1202:bits-000-devicetree
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions arch/arm64/boot/dts/apple/t8132-j604.dts
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,26 @@
&fpwm1 {
status = "okay";
};

&mtp {
status = "okay";
};

&mtp_mbox {
status = "okay";
};

&mtp_dart {
status = "okay";
};

&mtp_dockchannel {
status = "okay";
};

&mtp_hid {
keyboard: keyboard {
hid-country-code = <0>;
apple,keyboard-layout-id = <0>;
};
};
108 changes: 108 additions & 0 deletions arch/arm64/boot/dts/apple/t8132.dtsi
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Copyright The Asahi Linux Contributors
*/

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/apple-aic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/pinctrl/apple.h>
Expand Down Expand Up @@ -255,6 +256,33 @@
<AIC_IRQ 505 IRQ_TYPE_LEVEL_HIGH>;
};

smc_mbox: mbox@38c608000 {
compatible = "apple,t8132-asc-mailbox", "apple,asc-mailbox-v4";
reg = <0x3 0x8c608000 0x0 0x4000>;
interrupt-parent = <&aic>;
interrupts = <AIC_IRQ 561 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 562 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 563 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 564 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "send-empty", "send-not-empty",
"recv-empty", "recv-not-empty";
#mbox-cells = <0>;
};

smc: smc@38c600000 {
compatible = "apple,t8132-smc", "apple,t8103-smc";
reg = <0x3 0x8c600000 0x0 0x4000>,
<0x3 0x8de00000 0x0 0x100000>;
reg-names = "smc", "sram";
mboxes = <&smc_mbox>;

smc_gpio: gpio {
compatible = "apple,smc-gpio";
gpio-controller;
#gpio-cells = <2>;
};
};

pinctrl_smc: pinctrl@38c820000 {
compatible = "apple,t8132-pinctrl", "apple,t8103-pinctrl";
reg = <0x3 0x8c820000 0x0 0x4000>;
Expand Down Expand Up @@ -344,6 +372,86 @@
};
};

mtp: mtp@394600000 {
compatible = "apple,t8132-mtp",
"apple,t8132-rtk-helper-asc4",
"apple,mtp",
"apple,rtk-helper-asc4";
reg = <0x3 0x94600000 0x0 0x4000>,
<0x3 0x946c0000 0x0 0x100000>;
reg-names = "asc", "sram";

mboxes = <&mtp_mbox>;
iommus = <&mtp_dart 0>;
#helper-cells = <0>;

status = "disabled";
};

mtp_mbox: mbox@394608000 {
compatible = "apple,t8132-asc-mailbox", "apple,asc-mailbox-v4";
reg = <0x3 0x94608000 0x0 0x4000>;

interrupt-parent = <&aic>;
interrupts = <AIC_IRQ 1113 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 1114 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 1115 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 1116 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "send-empty", "send-not-empty",
"recv-empty", "recv-not-empty";
#mbox-cells = <0>;
status = "disabled";
};

mtp_dart: iommu@394800000 {
compatible = "apple,t8132-dart", "apple,t8110-dart";
reg = <0x3 0x94800000 0x0 0x4000>;

interrupt-parent = <&aic>;
interrupts = <AIC_IRQ 1091 IRQ_TYPE_LEVEL_HIGH>;

#iommu-cells = <1>;

status = "disabled";
};

mtp_dockchannel: fifo@394b30000 {
compatible = "apple,t8132-dockchannel", "apple,dockchannel";
reg = <0x3 0x94b14000 0x0 0x4000>;
reg-names = "irq";
interrupt-parent = <&aic>;
interrupts = <AIC_IRQ 1093 IRQ_TYPE_LEVEL_HIGH>;

ranges = <0 0x3 0x94b28000 0x20000>;
nonposted-mmio;
#address-cells = <1>;
#size-cells = <1>;

interrupt-controller;
#interrupt-cells = <2>;

status = "disabled";

mtp_hid: input@0 {
compatible = "apple,dockchannel-hid";
reg = <0x0000 0x1000>,
<0x4000 0x1000>,
<0x8000 0x1000>,
<0xc000 0x1000>;
reg-names = "rmt-config", "rmt-data", "config", "data";

iommus = <&mtp_dart 0>;

interrupt-parent = <&mtp_dockchannel>;
interrupts = <2 IRQ_TYPE_LEVEL_HIGH>,
<3 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "tx", "rx";

apple,fifo-size = <0x800>;
apple,helper-cpu = <&mtp>;
};
};

i2c0: i2c@3ad010000 {
compatible = "apple,t8132-i2c", "apple,t8103-i2c";
reg = <0x3 0xad010000 0x0 0x4000>;
Expand Down

AltStyle によって変換されたページ (->オリジナル) /