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
17 changes: 17 additions & 0 deletions devices/j120/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# iPad Pro 12.9-inch (2017), Wi-Fi

J120 (A1670, iPad7,1) boots from internal storage through a J120-capable
m1n1 binary. The loader must be able to read the internal FAT boot partition,
supply the NVMe handoff in the Linux device tree and start the saved Linux entry.

Supply the loader separately as `m1n1.bin`. When assembling release inputs,
pass the file to Orchard's `orchard.inputs` module with `--m1n1 FILE`.
The generic Orchard `v0.3.2` loader has not been qualified for J120 internal boot.

## Loader source

The J120 build used AsahiLinux/m1n1 at
`c9ef56f7356e93e6f6cac116c529d31c277ef6a6` with local J120 changes. Orchard
carries its standard loader changes in [boot/m1n1/patches](../../boot/m1n1/patches/).
The additional J120 source patch is pending a separate export from the loader
maintainer.
54 changes: 25 additions & 29 deletions devices/j120/device.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# iPad Pro 2 (12.9-inch, Wi-Fi) (J120): identity from public sources
# (tools/catalog/generate). In its platform's kernel, no bring-up yet; see docs/device-bring-up.md.
# iPad Pro 12.9-inch (2017), Wi-Fi: J120 / iPad7,1 / A1670.
schema = 1
kind = "hardware.device"

Expand All @@ -14,46 +13,43 @@ chip = 0x8011
board = 0x0c

[boot]
methods = ["checkm8-pongo"] # palera1n's device list (palera.in); not run with Orchard yet.
methods = ["checkm8-pongo"] # RAM and tethered internal ext4 boot on J120.

[kernel]
platform = "apple-16k"
dtb = "t8011-j120" # arch/arm64/boot/dts/apple/<dtb>.dtb

[firmware]
recipe = "firmware.json" # Pins this board's public IPSW; converts nothing until bring-up needs it.
recipe = "firmware.json" # Pinned touch, BCM4355 C0 WLAN and AOP firmware.

[support]
status = "experimental"

# States: working, untested, missing, none (features.toml). Nothing here has run on
# this board with Orchard: "untested" means a driver binds in its device tree
# (tools/catalog/drivers.json), plus the display's boot console.
[features]
display = "untested"
display = "working"
screen_off = "missing"
backlight = "untested"
touch = "missing"
buttons = "untested"
accelerometer = "missing"
gyroscope = "missing"
light_sensor = "missing"
backlight = "working"
touch = "working"
buttons = "working" # Power/Home and polled Smart Cover close. Cover-open wake needs an IRQ.
accelerometer = "working"
gyroscope = "untested"
light_sensor = "working"
touch_id = "missing"
storage_read = "missing"
storage_write = "missing"
wifi = "missing"
bluetooth_input = "missing"
bluetooth_audio = "missing"
cellular = "missing"
battery = "missing"
charging = "missing"
storage_read = "working"
storage_write = "working"
wifi = "working"
bluetooth_input = "working"
bluetooth_audio = "working"
cellular = "none"
battery = "working"
charging = "working" # Guarded Lightning charging.
charging_control = "missing"
suspend = "untested"
resume = "untested"
usb_serial = "untested"
usb_network = "untested"
suspend = "working"
resume = "working"
usb_serial = "working"
usb_network = "working"
usb_host = "missing"
audio_output = "missing"
audio_input = "missing"
audio_output = "working"
audio_input = "working"
camera = "missing"
video_decode_hevc = "missing"
video_decode_hevc = "working"
207 changes: 203 additions & 4 deletions devices/j120/firmware.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,211 @@
"sha256": "c84ad24b6981a859eec499b1802be9ac593acfd3dc0a185a76d06e4d767a1451"
},
"inputs": {
"DeviceTree.im4p": {
"J120.mtprops": {
"ipsw": {
"zip": "Firmware/all_flash/DeviceTree.j120ap.im4p"
"rootfs": "usr/share/firmware/multitouch/J120.mtprops"
},
"sha256": "3f612f64819fbf6a8aacc03fabeda08ba897c4bf5385df995c59815c0c80c8f0"
"device": "/usr/share/firmware/multitouch/J120.mtprops",
"sha256": "c70b61fe6b93d52f09bb1a61cc5ccb0f03960d1ab8a377831437ac985a7ba3b4"
},
"joya.trx": {
"ipsw": {
"rootfs": "System/Library/DriverExtensions/com.apple.DriverKit-AppleBCMWLAN.dext/Firmware/C-4355__s-C0/joya.trx"
},
"device": "/System/Library/DriverExtensions/com.apple.DriverKit-AppleBCMWLAN.dext/Firmware/C-4355__s-C0/joya.trx",
"sha256": "010cba55ca64d54659b6b036f5a3aa671ba1ef9fc53da3dd611b79a37c3b7ace"
},
"joya.clmb": {
"ipsw": {
"rootfs": "System/Library/DriverExtensions/com.apple.DriverKit-AppleBCMWLAN.dext/Firmware/C-4355__s-C0/joya.clmb"
},
"device": "/System/Library/DriverExtensions/com.apple.DriverKit-AppleBCMWLAN.dext/Firmware/C-4355__s-C0/joya.clmb",
"sha256": "510e223ec2ea1dfe7fe23ded44fc53b15f6cf7d868fbdb68af83a8cc9fd9f097"
},
"joya.txcb": {
"ipsw": {
"rootfs": "System/Library/DriverExtensions/com.apple.DriverKit-AppleBCMWLAN.dext/Firmware/C-4355__s-C0/joya.txcb"
},
"device": "/System/Library/DriverExtensions/com.apple.DriverKit-AppleBCMWLAN.dext/Firmware/C-4355__s-C0/joya.txcb",
"sha256": "1922ad54c98774877e7d4bcedfb51b68465ea9233c136b9a48b8bb0b35868c1f"
},
"P-joya_M-YSBC_V-u__m-4.1.txt": {
"ipsw": {
"rootfs": "System/Library/DriverExtensions/com.apple.DriverKit-AppleBCMWLAN.dext/Firmware/C-4355__s-C0/P-joya_M-YSBC_V-u__m-4.1.txt"
},
"device": "/System/Library/DriverExtensions/com.apple.DriverKit-AppleBCMWLAN.dext/Firmware/C-4355__s-C0/P-joya_M-YSBC_V-u__m-4.1.txt",
"sha256": "193f6555e82334313ae02bcbc7ef5216da56edcad0fbac85e815a8c0094b0e31"
},
"aop.im4p": {
"ipsw": {
"zip": "Firmware/AOP/aopfw-ipad7aop.RELEASE.im4p"
},
"sha256": "853be8f95f14740231c605cec954af5dd6d1994a66cfeb9513eb6dfcf706d90b"
},
"BlueTool": {
"ipsw": {
"rootfs": "usr/sbin/BlueTool"
},
"device": "/usr/sbin/BlueTool",
"sha256": "1dd532b7f9fb25a5348011bad7041ce029b6bd990b68cfe9e5f076a073d1f5bf"
},
"kernelcache": {
"ipsw": {
"kernelcache": true
},
"device": {
"kernelcache": "active"
},
"sha256": "f18b4df865405f2a287b84977d7aca745e056d656d9fc9df1662970ce2969de7"
}
},
"outputs": []
"outputs": [
{
"destination": "lib/firmware/apple/t8011-smartio.bin",
"sha256": "8a6e5a1bcdd2768db4515d714c7ee311d7089656e83b5073efa70b625b762b9e",
"steps": [
{
"step": "smartio-from-kernelcache@2",
"input": "kernelcache",
"kext": "com.apple.driver.AppleT8011SmartIO"
}
]
},
{
"destination": "lib/firmware/apple/j120-touch-K1F18,3.z2fw",
"sha256": "b12aecc2c895561c7d9edb7d1bfb7295d041b5a0efe3c466cef54b89194a7ace",
"steps": [
{
"step": "z2fw-from-mtprops@1",
"input": "J120.mtprops",
"profile": "K1F18,3",
"packet": "K1HBPP14",
"load_address": 1048576,
"hbpp_version": 260
}
]
},
{
"destination": "lib/firmware/brcm/brcmfmac4355-pcie.apple,j120.bin",
"sha256": "010cba55ca64d54659b6b036f5a3aa671ba1ef9fc53da3dd611b79a37c3b7ace",
"steps": [
{
"step": "copy@1",
"input": "joya.trx"
}
]
},
{
"destination": "lib/firmware/brcm/brcmfmac4355-pcie.apple,j120.clm_blob",
"sha256": "510e223ec2ea1dfe7fe23ded44fc53b15f6cf7d868fbdb68af83a8cc9fd9f097",
"steps": [
{
"step": "copy@1",
"input": "joya.clmb"
}
]
},
{
"destination": "lib/firmware/brcm/brcmfmac4355-pcie.apple,j120.txcap_blob",
"sha256": "1922ad54c98774877e7d4bcedfb51b68465ea9233c136b9a48b8bb0b35868c1f",
"steps": [
{
"step": "copy@1",
"input": "joya.txcb"
}
]
},
{
"destination": "lib/firmware/brcm/brcmfmac4355-pcie.apple,j120-YSBC-u-4.1.txt",
"sha256": "193f6555e82334313ae02bcbc7ef5216da56edcad0fbac85e815a8c0094b0e31",
"steps": [
{
"step": "copy@1",
"input": "P-joya_M-YSBC_V-u__m-4.1.txt"
}
]
},
{
"destination": "lib/firmware/apple/aop-ipad7.bin",
"sha256": "a2bac8975ab0658295ecb5824187962d3606cc569e38a673770f7d1d4d1f8f54",
"steps": [
{
"step": "im4p-payload@1",
"input": "aop.im4p"
},
{
"step": "aop-image@1",
"coprocessor": "AOP"
}
]
},
{
"destination": "lib/firmware/apple/aop-ipad7-ext.bin",
"sha256": "28bfaad8cbfdaa9fceb55d02e68a323a16f107f40840fb2fdabaafcd5f2c6eb1",
"steps": [
{
"step": "im4p-payload@1",
"input": "aop.im4p"
},
{
"step": "aop-image@1",
"coprocessor": "AOP_ext"
}
]
},
{
"destination": "lib/firmware/brcm/BCM.apple,j120-u.hcd",
"sha256": "df14e4a858108b5381d5699999becb50dd86a41841f93ed26b0e6e3527464632",
"steps": [
{
"step": "bluetool-hcd@1",
"input": "BlueTool"
}
]
},
{
"destination": "lib/firmware/brcm/BCM.apple,j120-m.hcd",
"sha256": "b6fc9fb2a0eec9fd7b3b233d78cbe2541667542296e3889425f56b3f744e02ec",
"steps": [
{
"step": "bluetool-hcd@1",
"input": "BlueTool"
}
]
},
{
"destination": "lib/firmware/brcm/BCM.apple,j120-u.regulatory",
"sha256": "b48cdcdc06db1573cc8793ca80373af59219a7bba8d28a89a352597e9db5779a",
"steps": [
{
"step": "bluetool-regulatory@1",
"input": "BlueTool",
"address": 4304523153,
"size": 210
}
]
},
{
"destination": "lib/firmware/brcm/BCM.apple,j120-m.regulatory",
"sha256": "b48cdcdc06db1573cc8793ca80373af59219a7bba8d28a89a352597e9db5779a",
"steps": [
{
"step": "bluetool-regulatory@1",
"input": "BlueTool",
"address": 4304523363,
"size": 210
}
]
},
{
"destination": "lib/firmware/apple/vxd-deva.bin",
"sha256": "bf5167652e81540471aaca141943fd33d71c3990c137f145471305f5f5ade83b",
"steps": [
{
"step": "vxd-firmware-from-kernelcache@1",
"input": "kernelcache"
}
]
}
]
}
6 changes: 3 additions & 3 deletions docs/compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Generated by `tools/catalog/generate matrix` from `devices/`, `chips/` and `meth
| A10 | `j172` | iPad 7 (Cellular) | iPad7,12 | experimental | yes | checkm8-pongo | yes | yes | 21H16 |
| A10 | `j71b` | iPad 6 (Wi-Fi) | iPad7,5 | supported | yes | checkm8-pongo | yes | yes | 21H461 |
| A10 | `j72b` | iPad 6 (Cellular) | iPad7,6 | experimental | yes | checkm8-pongo | yes | yes | 21H461 |
| A10X | `j120` | iPad Pro 2 (12.9-inch, Wi-Fi) | iPad7,1 | experimental | – | checkm8-pongo | yes | yes | 21H461 |
| A10X | `j120` | iPad Pro 2 (12.9-inch, Wi-Fi) | iPad7,1 | experimental | yes | checkm8-pongo | yes | yes | 21H461 |
| A10X | `j121` | iPad Pro 2 (12.9-inch, Cellular) | iPad7,2 | experimental | – | checkm8-pongo | yes | yes | 21H461 |
| A10X | `j207` | iPad Pro (10.5-inch, Wi-Fi) | iPad7,3 | experimental | – | checkm8-pongo | yes | yes | 21H461 |
| A10X | `j208` | iPad Pro (10.5-inch, Cellular) | iPad7,4 | experimental | – | checkm8-pongo | yes | yes | 21H461 |
Expand Down Expand Up @@ -178,7 +178,7 @@ Boards Orchard builds for. States: working, untested, missing, none (no such har
| `j172` | untested | untested | untested | untested | untested | untested | untested | untested | missing | untested | untested | untested | missing | missing | missing | untested | untested | missing | untested | untested | untested | untested | untested | untested | untested | missing | untested |
| `j71b` | working | working | working | working | working | working | untested | untested | missing | working | working | working | working | working | none | working | working | working | working | working | working | working | untested | working | working | missing | untested |
| `j72b` | untested | untested | untested | untested | untested | untested | untested | untested | missing | untested | untested | untested | missing | missing | missing | untested | untested | untested | untested | untested | untested | untested | untested | untested | untested | missing | untested |
| `j120` | untested | missing | untested | missing | untested | missing | missing | missing | missing | missing | missing | missing | missing | missing | missing | missing | missing | missing | untested | untested | untested | untested | missing | missing | missing | missing | missing |
| `j120` | working | missing | working | working | working | working | untested | working | missing | working | working | working | working | working | none | working | working | missing | working | working | working | working | missing | working | working | missing | working |
| `j121` | untested | missing | untested | missing | untested | missing | missing | missing | missing | missing | missing | missing | missing | missing | missing | missing | missing | missing | untested | untested | untested | untested | missing | missing | missing | missing | missing |
| `j207` | untested | missing | untested | missing | untested | missing | missing | missing | missing | missing | missing | missing | missing | missing | missing | missing | missing | missing | untested | untested | untested | untested | missing | missing | missing | missing | missing |
| `j208` | untested | missing | untested | 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 @@ -233,7 +233,7 @@ A yes means an enabled device tree node binds a driver in `7.3.0-rc1-orchard-app
| `j172` | experimental | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
| `j71b` | supported | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
| `j72b` | experimental | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
| `j120` | experimental | yes | – | yes | – | – | – | – | – | – | – | – | – | – | yes | yes | – | – | – | – |
| `j120` | experimental | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | – | yes | yes | yes |
| `j121` | experimental | yes | – | yes | – | – | – | – | – | – | – | – | – | – | yes | yes | – | – | – | – |
| `j207` | experimental | yes | – | yes | – | – | – | – | – | – | – | – | – | – | yes | yes | – | – | – | – |
| `j208` | experimental | yes | – | yes | – | – | – | – | – | – | – | – | – | – | yes | yes | – | – | – | – |
Expand Down
7 changes: 6 additions & 1 deletion kernel/configs/apple-16k/config
Original file line number Diff line number Diff line change
Expand Up @@ -2431,6 +2431,7 @@ CONFIG_TOUCHSCREEN_APPLE_Z2=m
# CONFIG_TOUCHSCREEN_ZINITIX is not set
# CONFIG_TOUCHSCREEN_HIMAX_HX83112B is not set
CONFIG_INPUT_MISC=y
CONFIG_INPUT_APPLE_J120_COVER=m
# CONFIG_INPUT_AD714X is not set
# CONFIG_INPUT_ATMEL_CAPTOUCH is not set
# CONFIG_INPUT_AW86927 is not set
Expand Down Expand Up @@ -4399,6 +4400,7 @@ CONFIG_SND_SOC_GENERIC_DMAENGINE_PCM=y
# CONFIG_SND_SOC_APPLE_MCA is not set
CONFIG_SND_SOC_APPLE_S8000_MCA=m
CONFIG_SND_SOC_APPLE_T8010_PDM=m
CONFIG_SND_SOC_APPLE_J120_SPEAKERS=m
# end of Apple

#
Expand Down Expand Up @@ -5521,7 +5523,7 @@ CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND=y
# CONFIG_PM_DEVFREQ_EVENT is not set
# CONFIG_EXTCON is not set
# CONFIG_MEMORY is not set
CONFIG_IIO=m
CONFIG_IIO=y
CONFIG_IIO_BUFFER=y
# CONFIG_IIO_BUFFER_CB is not set
# CONFIG_IIO_BUFFER_DMA is not set
Expand Down Expand Up @@ -5625,6 +5627,7 @@ CONFIG_APPLE_AOP_ACCEL=m
# CONFIG_AD799X is not set
# CONFIG_AD9467 is not set
# CONFIG_ADE9000 is not set
CONFIG_APPLE_ORION_VBUS=y
# CONFIG_CC10001_ADC is not set
# CONFIG_ENVELOPE_DETECTOR is not set
# CONFIG_GEHC_PMC_ADC is not set
Expand Down Expand Up @@ -5946,6 +5949,7 @@ CONFIG_APPLE_AOP_GYRO=m
# CONFIG_AL3000A is not set
# CONFIG_AL3010 is not set
# CONFIG_AL3320A is not set
CONFIG_AMS_CT709=m
# CONFIG_APDS9160 is not set
# CONFIG_APDS9300 is not set
# CONFIG_APDS9306 is not set
Expand Down Expand Up @@ -6264,6 +6268,7 @@ CONFIG_NVMEM_LAYOUTS=y
#
# Layout Types
#
CONFIG_NVMEM_LAYOUT_BRCM_APPLE_OTP=m
# CONFIG_NVMEM_LAYOUT_APPLE_SYSCFG is not set
# CONFIG_NVMEM_LAYOUT_SL28_VPD is not set
# CONFIG_NVMEM_LAYOUT_ONIE_TLV is not set
Expand Down
Loading