Skip to content
Merged
Changes from 1 commit
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
67 changes: 65 additions & 2 deletions arch/arm64/boot/dts/apple/t6050-j716c.dts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
};
};

/* ATC1, ATC3 and the PD controller buses nub-spmi-a0 and -a2: not yet described for this board */
/* ATC1, ATC3 and the PD controller bus nub-spmi-a2: not yet described for this board */
&nub_spmi_a0 {
status = "disabled";
};
Expand Down Expand Up @@ -205,6 +205,26 @@
apple,fan-mode = "F1md";
apple,fan-manual-control;
};

power-PSTR {
apple,key-id = "PSTR";
label = "Total System Power";
};

power-PHPC {
apple,key-id = "PHPC";
label = "Heatpipe Power";
};

power-PDTR {
apple,key-id = "PDTR";
label = "AC Input Power";
};

voltage-SBAV {
apple,key-id = "SBAV";
label = "Battery Voltage";
};
};

/*
Expand Down Expand Up @@ -334,19 +354,62 @@
*/
#include "t6050-j714s-ane.dtsi"

/* The port controllers follow the sleep's command rules (tipd: woken first, read at intervals) */
/*
* Wire SPMI controller interrupts (with fault queue windows) and per-port
* event/sleep/wake IRQs on the four USB-PD controllers so tipd uses
* interrupt-driven handling and idle sleep instead of 500 ms polling.
*/
&nub_spmi_a0 {
reg = <0x2 0x8a188000 0x0 0x4000>,
<0x2 0x8a184000 0x0 0x4000>;
interrupt-controller;
#interrupt-cells = <2>;
interrupt-parent = <&aic>;
interrupts = <AIC_IRQ 0 761 IRQ_TYPE_LEVEL_HIGH>;
};

&nub_spmi_a1 {
reg = <0x2 0x8a1a8000 0x0 0x4000>,
<0x2 0x8a1a4000 0x0 0x4000>;
interrupt-controller;
#interrupt-cells = <2>;
interrupt-parent = <&aic>;
interrupts = <AIC_IRQ 0 763 IRQ_TYPE_LEVEL_HIGH>;
};

/* The port controllers follow the sleep's command rules and use SPMI event/sleep/wake IRQs. */
&hpm0 {
compatible = "apple,t8132-sn201202x", "apple,sn201202x";
interrupts = <11 IRQ_TYPE_EDGE_RISING>,
<17 IRQ_TYPE_EDGE_RISING>,
<19 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "irq", "sleep", "wake";
apple,sleep-ssps-rules;
};

&hpm1 {
compatible = "apple,t8132-sn201202x", "apple,sn201202x";
interrupts = <37 IRQ_TYPE_EDGE_RISING>,
<43 IRQ_TYPE_EDGE_RISING>,
<45 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "irq", "sleep", "wake";
apple,sleep-ssps-rules;
};

&hpm2 {
compatible = "apple,t8132-sn201202x", "apple,sn201202x";
interrupts = <11 IRQ_TYPE_EDGE_RISING>,
<17 IRQ_TYPE_EDGE_RISING>,
<19 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "irq", "sleep", "wake";
apple,sleep-ssps-rules;
};

&hpm5 {
compatible = "apple,t8132-sn201202x", "apple,sn201202x";
interrupts = <63 IRQ_TYPE_EDGE_RISING>,
<69 IRQ_TYPE_EDGE_RISING>,
<71 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "irq", "sleep", "wake";
apple,sleep-ssps-rules;
};
Loading