Skip to content
Merged
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
2 changes: 1 addition & 1 deletion devices/n66/device.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ resume = "untested"
usb_serial = "untested"
usb_network = "untested"
usb_host = "missing" # Needs the Tristar VBUS path on the iPhone's Antigua PMU; only the iPad 5's D2365 one exists
audio_output = "missing" # No Linux driver for the CS42L71 codec
audio_output = "working" # speaker only; no speaker protection (V/I sense) yet, output capped at -12 dB; CS35L21 on MCA2: 440 Hz tone heard, 60 s pink-noise soak at the caps with no OTW/OTE/AMP_SHORT (RAM boots 2026-11-23)
audio_input = "missing" # No Linux driver for the CS42L71 codec
camera = "missing"
video_decode_hevc = "untested" # VXD on for every A9; vxd-deva.bin from the recipe
11 changes: 11 additions & 0 deletions devices/n66/firmware.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,17 @@
"coprocessor": "AOP_ext"
}
]
},
{
"destination": "lib/firmware/apple/s8000-smartio.bin",
"sha256": "98242f13a7a201121f1b5029b3ba848505e1d6ca26d019fc818a77e344becc03",
"steps": [
{
"step": "smartio-from-kernelcache@2",
"input": "kernelcache",
"kext": "com.apple.driver.AppleS8000SmartIO"
}
]
}
]
}
2 changes: 1 addition & 1 deletion devices/n66m/device.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ resume = "untested"
usb_serial = "untested"
usb_network = "untested"
usb_host = "missing" # Needs the Tristar VBUS path on the iPhone's Antigua PMU; only the iPad 5's D2365 one exists
audio_output = "missing" # No Linux driver for the CS42L71 codec
audio_output = "untested" # the N66 speaker description (shared s800x-n66.dtsi); speaker only, no speaker protection yet, capped at -12 dB
audio_input = "missing" # No Linux driver for the CS42L71 codec
camera = "missing"
video_decode_hevc = "untested" # VXD on for every A9; vxd-deva.bin from the recipe
24 changes: 14 additions & 10 deletions docs/compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ Every device Orchard installs on. ✅ works · ❌ doesn't work yet · – no su
| iPad 5 (Wi-Fi) | A9, TSMC | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | [brkosebay](https://github.com/brkosebay) |
| iPhone 6s | A9, Samsung | 🤔 | 🤔 | 🤔 | ❌ | ❌ | ❌ | 🤔 | 🤔 | 🤔 | – |
| iPhone 6s | A9, TSMC | 🤔 | 🤔 | 🤔 | ❌ | ❌ | ❌ | 🤔 | 🤔 | 🤔 | – |
| iPhone 6s Plus | A9, Samsung | ✅ | 🤔 | ✅ | ❌ | ❌ | ❌ | 🤔 | 🤔 | 🤔 | [ricktav](https://github.com/ricktav) |
| iPhone 6s Plus | A9, TSMC | 🤔 | 🤔 | 🤔 | ❌ | ❌ | ❌ | 🤔 | 🤔 | 🤔 | – |
| iPhone 6s Plus | A9, Samsung | ✅ | 🤔 | ✅ | ❌ | ❌ | ✅ | 🤔 | 🤔 | 🤔 | [ricktav](https://github.com/ricktav) |
| iPhone 6s Plus | A9, TSMC | 🤔 | 🤔 | 🤔 | ❌ | ❌ | 🤔 | 🤔 | 🤔 | 🤔 | – |
| iPhone SE | A9, Samsung | 🤔 | 🤔 | 🤔 | ❌ | ❌ | ❌ | 🤔 | 🤔 | 🤔 | – |
| iPhone SE | A9, TSMC | 🤔 | 🤔 | 🤔 | ❌ | ❌ | ❌ | 🤔 | 🤔 | 🤔 | – |
| iPad 6 (Cellular) | A10 | 🤔 | 🤔 | 🤔 | 🤔 | 🤔 | 🤔 | 🤔 | 🤔 | 🤔 | – |
Expand Down Expand Up @@ -213,12 +213,12 @@ Boards Orchard builds for. States: working, untested, missing, none (no such har
| `j82` | untested | untested | untested | missing | untested | untested | missing | missing | missing | missing | untested | untested | untested | untested | untested | missing | untested | untested | untested | untested | untested | untested | untested | missing | untested | missing | missing | missing |
| `j71s` | untested | untested | untested | untested | untested | untested | untested | untested | untested | missing | untested | untested | untested | untested | untested | none | untested | untested | untested | untested | untested | untested | untested | untested | untested | untested | missing | untested |
| `j72s` | untested | untested | untested | untested | untested | untested | untested | untested | untested | missing | untested | untested | untested | untested | untested | missing | untested | untested | untested | untested | untested | untested | untested | untested | untested | untested | missing | untested |
| `n66` | working | untested | working | untested | working | working | untested | untested | working | missing | working | working | missing | missing | missing | missing | untested | untested | missing | untested | untested | untested | untested | missing | missing | missing | missing | untested |
| `n66` | working | untested | working | untested | working | working | untested | untested | working | missing | working | working | missing | missing | missing | missing | untested | untested | missing | untested | untested | untested | untested | missing | working | missing | missing | untested |
| `n69u` | untested | untested | untested | untested | untested | untested | untested | untested | untested | missing | untested | untested | missing | missing | missing | missing | untested | untested | missing | untested | untested | untested | untested | missing | missing | missing | missing | untested |
| `n71` | untested | untested | untested | untested | untested | untested | untested | untested | untested | missing | untested | untested | missing | missing | missing | missing | untested | untested | missing | untested | untested | untested | untested | missing | missing | missing | missing | untested |
| `j71t` | working | working | working | working | working | working | working | working | working | missing | working | working | working | working | untested | none | working | working | working | working | working | working | working | working | working | working | missing | working |
| `j72t` | untested | untested | untested | untested | untested | untested | untested | untested | untested | missing | untested | untested | untested | untested | untested | missing | untested | untested | untested | untested | untested | untested | untested | untested | untested | untested | missing | untested |
| `n66m` | untested | untested | untested | untested | untested | untested | untested | untested | untested | missing | untested | untested | missing | missing | missing | missing | untested | untested | missing | untested | untested | untested | untested | missing | missing | missing | missing | untested |
| `n66m` | untested | untested | untested | untested | untested | untested | untested | untested | untested | missing | untested | untested | missing | missing | missing | missing | untested | untested | missing | untested | untested | untested | untested | missing | untested | missing | missing | untested |
| `n69` | untested | untested | untested | untested | untested | untested | untested | untested | untested | missing | untested | untested | missing | missing | missing | missing | untested | untested | missing | untested | untested | untested | untested | missing | missing | missing | missing | untested |
| `n71m` | untested | untested | untested | untested | untested | untested | untested | untested | untested | missing | untested | untested | missing | missing | missing | missing | untested | untested | missing | untested | untested | untested | untested | missing | missing | missing | missing | untested |
| `j127` | untested | missing | untested | missing | missing | untested | missing | missing | missing | missing | missing | missing | missing | missing | missing | missing | missing | missing | missing | untested | untested | untested | untested | missing | missing | missing | missing | missing |
Expand Down Expand Up @@ -270,14 +270,14 @@ A yes means an enabled device tree node binds a driver in `7.3.0-rc1-orchard-app
| `j82` | experimental | yes | yes | yes | – | – | – | yes | yes | yes | yes | yes | yes | yes | yes | yes | – | yes | – | – |
| `j71s` | experimental | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | – | yes |
| `j72s` | experimental | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | – | yes |
| `n66` | experimental | yes | yes | yes | yes | yes | yes | yes | yes | – | – | – | yes | yes | yes | yes | – | – | – | yes |
| `n69u` | experimental | yes | yes | yes | yes | yes | yes | yes | yes | – | – | – | yes | yes | yes | yes | – | – | – | yes |
| `n71` | experimental | yes | yes | yes | yes | yes | yes | yes | yes | – | – | – | yes | yes | yes | yes | – | – | – | yes |
| `n66` | experimental | yes | yes | yes | yes | yes | yes | yes | yes | – | – | – | yes | yes | yes | yes | – | yes | – | yes |
| `n69u` | experimental | yes | yes | yes | yes | yes | yes | yes | yes | – | – | – | yes | yes | yes | yes | – | yes | – | yes |
| `n71` | experimental | yes | yes | yes | yes | yes | yes | yes | yes | – | – | – | yes | yes | yes | yes | – | yes | – | yes |
| `j71t` | experimental | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | – | yes |
| `j72t` | experimental | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | – | yes |
| `n66m` | experimental | yes | yes | yes | yes | yes | yes | yes | yes | – | – | – | yes | yes | yes | yes | – | – | – | yes |
| `n69` | experimental | yes | yes | yes | yes | yes | yes | yes | yes | – | – | – | yes | yes | yes | yes | – | – | – | yes |
| `n71m` | experimental | yes | yes | yes | yes | yes | yes | yes | yes | – | – | – | yes | yes | yes | yes | – | – | – | yes |
| `n66m` | experimental | yes | yes | yes | yes | yes | yes | yes | yes | – | – | – | yes | yes | yes | yes | – | yes | – | yes |
| `n69` | experimental | yes | yes | yes | yes | yes | yes | yes | yes | – | – | – | yes | yes | yes | yes | – | yes | – | yes |
| `n71m` | experimental | yes | yes | yes | yes | yes | yes | yes | yes | – | – | – | yes | yes | yes | yes | – | yes | – | yes |
| `j127` | experimental | yes | – | yes | – | – | – | – | – | – | – | – | – | – | yes | yes | – | – | – | – |
| `j128` | experimental | yes | – | yes | – | – | – | – | – | – | – | – | – | – | yes | yes | – | – | – | – |
| `j98a` | experimental | yes | – | yes | – | – | – | – | – | – | – | – | – | – | yes | yes | – | – | – | – |
Expand Down Expand Up @@ -321,5 +321,9 @@ A yes means an enabled device tree node binds a driver in `7.3.0-rc1-orchard-app
| `n53` | Speakers | missing, but a driver binds |
| `j71s` | Microphone | untested, but no driver binds |
| `j72s` | Microphone | untested, but no driver binds |
| `n69u` | Speakers | missing, but a driver binds |
| `n71` | Speakers | missing, but a driver binds |
| `j71t` | Microphone | working, but no driver binds |
| `j72t` | Microphone | untested, but no driver binds |
| `n69` | Speakers | missing, but a driver binds |
| `n71m` | Speakers | missing, but a driver binds |
1 change: 1 addition & 0 deletions kernel/configs/apple-16k/config
Original file line number Diff line number Diff line change
Expand Up @@ -4570,6 +4570,7 @@ CONFIG_SND_SOC_I2C_AND_SPI=m
# CONFIG_SND_SOC_BT_SCO is not set
# CONFIG_SND_SOC_CHV3_CODEC is not set
# CONFIG_SND_SOC_CS35L32 is not set
CONFIG_SND_SOC_CS35L19=m
# CONFIG_SND_SOC_CS35L33 is not set
# CONFIG_SND_SOC_CS35L34 is not set
# CONFIG_SND_SOC_CS35L35 is not set
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: ricktav <82380971+ricktav@users.noreply.github.com>
Date: Mon, 23 Nov 2026 15:39:57 +0100
Subject: [PATCH] arm64: dts: apple: s800-0-3: Add the NCO and MCA2

Describe the NCO (ADT /arm-io/nco, nco,s8000: the T8010 block at the
same address, five channels 0x4000 apart) with its 800 MHz reference
(the n66 ADT's clock-frequencies entry for clock-id 269), and MCA2, the
iPhones' speaker TDM link on pad 2: SmartIO endpoint 0x2c, MCLK control
word 0x20a002008, AIC 203, bitclock from NCO channel 2.

The NCO, MCA2, SmartIO and I2C1 are SoC blocks every S8000 and S8003
has, so they are enabled here; boards add only their wiring (the
i2s-switch route and what sits on the bus). The iPad 5's SmartIO
override is no longer needed.

Assisted-by: LLM
Signed-off-by: ricktav <82380971+ricktav@users.noreply.github.com>
---
arch/arm64/boot/dts/apple/s800-0-3.dtsi | 47 +++++++++++++++++++++-
arch/arm64/boot/dts/apple/s800x-ipad5.dtsi | 4 --
2 files changed, 45 insertions(+), 6 deletions(-)

diff --git a/arch/arm64/boot/dts/apple/s800-0-3.dtsi b/arch/arm64/boot/dts/apple/s800-0-3.dtsi
index 29f9d1dc3..646ea1f3d 100644
--- a/arch/arm64/boot/dts/apple/s800-0-3.dtsi
+++ b/arch/arm64/boot/dts/apple/s800-0-3.dtsi
@@ -50,6 +50,18 @@ spi3_nclk: clock-spi3-nclk {
clock-output-names = "spi3-nclk";
};

+ /*
+ * The NCO's reference: the ADT's clock-frequencies entry for the
+ * NCO's first clock-id (269), 800 MHz on the n66. A board whose ADT
+ * says otherwise overrides it.
+ */
+ nco_clkref: clock-ref-nco {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <800000000>;
+ clock-output-names = "nco_ref";
+ };
+
cpus {
#address-cells = <2>;
#size-cells = <0>;
@@ -260,6 +272,28 @@ mca0: mca@20a0a0000 {
status = "disabled";
};

+ /*
+ * ADT /arm-io/mca2: the speaker TDM link of the iPhones (pad 2),
+ * SmartIO endpoint 0x2c, bitclock from NCO 2.
+ */
+ mca2: mca@20a0a8000 {
+ compatible = "apple,s8000-mca-tdm";
+ reg = <0x2 0x0a0a8000 0x0 0x4000>,
+ <0x2 0x0a002008 0x0 0x4>;
+ reg-names = "mca", "mclk";
+ interrupt-parent = <&aic>;
+ interrupts = <AIC_IRQ 203 IRQ_TYPE_LEVEL_HIGH>;
+ power-domains = <&ps_mca2>;
+ clocks = <&nco 2>;
+ clock-names = "bitclk";
+ dmas = <&sio 0x2c>;
+ dma-names = "tx";
+ #clock-cells = <0>;
+ clock-output-names = "mca2-mclk";
+ #sound-dai-cells = <0>;
+ status = "okay";
+ };
+
serial0: serial@20a0c0000 {
compatible = "apple,s5l-uart";
reg = <0x2 0x0a0c0000 0x0 0x4000>;
@@ -335,7 +369,7 @@ i2c1: i2c@20a111000 {
power-domains = <&ps_i2c1>;
#address-cells = <1>;
#size-cells = <0>;
- status = "disabled";
+ status = "okay";
};

i2c2: i2c@20a112000 {
@@ -368,7 +402,7 @@ sio: dma-controller@20ae00000 {
firmware-name = "apple/s8000-smartio.bin";
dma-channels = <64>;
#dma-cells = <1>;
- status = "disabled";
+ status = "okay";
};

bus@20c000000 {
@@ -468,6 +502,15 @@ touchclk: clock-controller@78000 {
};
};

+ /* ADT /arm-io/nco: nco,s8000, five channels 0x4000 apart */
+ nco: clock-controller@20e044000 {
+ compatible = "apple,s8000-nco", "apple,t8010-nco";
+ reg = <0x2 0x0e044000 0x0 0x14000>;
+ clocks = <&nco_clkref>;
+ #clock-cells = <1>;
+ status = "okay";
+ };
+
pmgr_misc: power-management@20e068000 {
compatible = "apple,s8000-pmgr-misc";
reg = <0x2 0x0e068000 0x0 0x4>;
diff --git a/arch/arm64/boot/dts/apple/s800x-ipad5.dtsi b/arch/arm64/boot/dts/apple/s800x-ipad5.dtsi
index dfd1b2d42..376c15bd1 100644
--- a/arch/arm64/boot/dts/apple/s800x-ipad5.dtsi
+++ b/arch/arm64/boot/dts/apple/s800x-ipad5.dtsi
@@ -324,10 +324,6 @@ battery: fuel-gauge {
};
};

-&sio {
- status = "okay";
-};
-
&spi1 {
/* ADT function-spi_cs0 */
cs-gpios = <&pinctrl_ap 16 GPIO_ACTIVE_LOW>;
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: ricktav <82380971+ricktav@users.noreply.github.com>
Date: Mon, 23 Nov 2026 15:40:11 +0100
Subject: [PATCH] arm64: dts: apple: n66: Add the loudspeaker

The iPhone 6s Plus loudspeaker is a CS35L19 at i2c1 0x40 (ADT
audio-control,cs35l19, reset AP GPIO 70) on the TDM link of pad 2, fed
by MCA2: 8 slots of 16 bits, the speaker in slot 1. Route aud2 to pin2,
describe the amplifier with the 6s Plus's speaker-config and tie both
together in a simple-audio-card, in the file the Samsung (N66) and TSMC
(N66m) models share.

iOS clocks this link from the CS42L71 codec's ASP; without a CS42L71
driver, MCA2 provides the clocks and the codec is left untouched. The
Taptic Engine's CS35L19 (0x41) is not described.

Assisted-by: LLM
Signed-off-by: ricktav <82380971+ricktav@users.noreply.github.com>
---
arch/arm64/boot/dts/apple/s800x-n66.dtsi | 54 ++++++++++++++++++++++++
1 file changed, 54 insertions(+)

diff --git a/arch/arm64/boot/dts/apple/s800x-n66.dtsi b/arch/arm64/boot/dts/apple/s800x-n66.dtsi
index 34fc1191c..08a9f59ac 100644
--- a/arch/arm64/boot/dts/apple/s800x-n66.dtsi
+++ b/arch/arm64/boot/dts/apple/s800x-n66.dtsi
@@ -18,6 +18,60 @@ &touchscreen {
touchscreen-size-y = <1920>;
};

+/ {
+ /*
+ * The loudspeaker: MCA2 to the CS35L19 at i2c1 0x40 on the TDM link of
+ * pad 2, speaker in slot 1 of 8 x 16 bit (ADT mca2/audio-speaker). iOS
+ * clocks this link from the CS42L71 codec, which has no driver yet;
+ * here MCA2 provides the clocks and the codec's port stays untouched.
+ */
+ sound-speaker {
+ compatible = "simple-audio-card";
+ simple-audio-card,name = "iPhone Speaker";
+ simple-audio-card,format = "dsp_a";
+ simple-audio-card,bitclock-master = <&speaker_cpu>;
+ simple-audio-card,frame-master = <&speaker_cpu>;
+ simple-audio-card,widgets = "Speaker", "Speaker";
+ simple-audio-card,routing = "Speaker", "SPK";
+
+ speaker_cpu: simple-audio-card,cpu {
+ sound-dai = <&mca2>;
+ };
+
+ simple-audio-card,codec {
+ sound-dai = <&speaker_amp>;
+ dai-tdm-slot-num = <8>;
+ dai-tdm-slot-width = <16>;
+ dai-tdm-slot-rx-mask = <0 1 0 0 0 0 0 0>;
+ };
+ };
+};
+
+/* ADT mca2 function-i2s_route: aud2 -> pin2 */
+&mca2 {
+ apple,i2s-switch = <&i2s_switch 2 2>;
+};
+
+&i2c1 {
+ /*
+ * ADT i2c1/audio-speaker: audio-control,cs35l19 @0x40, reset AP GPIO
+ * 70 (0x46), interrupt AP GPIO 68 (unused). speaker-config is the
+ * 6s Plus's 20-byte blob (N66 ADT). The Taptic Engine's CS35L19 (@0x41,
+ * reset 116) is left alone.
+ */
+ speaker_amp: amplifier@40 {
+ compatible = "cirrus,cs35l19";
+ reg = <0x40>;
+ reset-gpios = <&pinctrl_ap 70 GPIO_ACTIVE_LOW>;
+ clocks = <&mca2>;
+ clock-names = "mclk";
+ apple,speaker-config = /bits/ 8 <0xaa 0x30 0x02 0x70 0x6a 0x80 0x30
+ 0x1e 0x02 0x04 0x14 0x89 0x8c 0x10
+ 0x73 0x03 0x05 0xd0 0x04 0x40>;
+ #sound-dai-cells = <0>;
+ };
+};
+
/* ADT charger charge-limits[0] */
&battery_info {
constant-charge-current-max-microamp = <1924000>;
Loading
Loading