Skip to content
Merged
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
93 changes: 68 additions & 25 deletions arch/arm64/boot/dts/apple/t6050-j714c.dts
Original file line number Diff line number Diff line change
Expand Up @@ -109,35 +109,11 @@
};
};

/* ATC1, ATC3 and the PD controller buses nub-spmi-a0 and -a2: not yet described for this board */
&nub_spmi_a0 {
status = "disabled";
};

/* ATC3 and the PD controller bus nub-spmi-a2: not on this board's ports */
&nub_spmi_a2 {
status = "disabled";
};

&atc1_phy_mbox {
status = "disabled";
};

&atc1_phy {
status = "disabled";
};

&usb_drd1 {
status = "disabled";
};

&usb_drd1_dart_0 {
status = "disabled";
};

&usb_drd1_dart_1 {
status = "disabled";
};

&atc3_phy_mbox {
status = "disabled";
};
Expand Down Expand Up @@ -278,6 +254,73 @@

#include "t6050-max-atc2.dtsi"

/*
* ==== The left-front USB-C port (ATC1) ====
*
* ADT /arm-io/nub-spmi-a0/hpm1 (SN201202x, SPMI address 0xa, port-number 2, port-location
* "left-front", acio-parent acio1), with atc-phy1, usb-drd1 and dart-usb1. The PHY, the DWC3 and
* their DARTs and mailbox are the ATC1 template of t6050-dieX.dtsi; only the links to the PD
* controller are the board's. The port's USB4/Thunderbolt router (/arm-io/acio1) and its
* DisplayPort routes are not described yet; the PHY runs in USB mode.
*
* The left-back port (ATC0, hpm0) is the boot link's debug port. The combo PHY binding and
* driver exclude it on purpose (apple,port-index 0), so it is not described either.
*/
/ {
aliases {
atcphy1 = &atc1_phy;
};
};

&atc1_phy {
port {
atc1_phy_ep: endpoint {
remote-endpoint = <&hpm1_ss>;
};
};
};

&usb_drd1 {
port {
usb_drd1_hs: endpoint {
remote-endpoint = <&hpm1_hs>;
};
};
};

&nub_spmi_a0 {
hpm1: usb-pd@a {
compatible = "apple,sn201202x";
reg = <0xa SPMI_USID>;

connector {
compatible = "usb-c-connector";
label = "USB-C Left Front";
power-role = "dual";
data-role = "dual";

ports {
#address-cells = <1>;
#size-cells = <0>;

port@0 {
reg = <0>;
hpm1_hs: endpoint {
remote-endpoint = <&usb_drd1_hs>;
};
};

port@1 {
reg = <1>;
hpm1_ss: endpoint {
remote-endpoint = <&atc1_phy_ep>;
};
};
};
};
};
};

/* The host DROM from the J714cAP ADT (/arm-io/acio2 thunderbolt-drom); the boot loader replaces it */
&acio2_nhi {
apple,thunderbolt-drom = [fd 02 00 00 00 00 00 00 00 90 19 c3 8c 00 5c 00
Expand Down
Loading