Skip to content
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

rust: samples: fix init argument #335

Open
wants to merge 1,040 commits into
base: asahi
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1040 commits
Select commit Hold shift + click to select a range
16f4bd5
drm/apple: Add trace point for display brightness
jannau Nov 22, 2022
a08ed8b
drm/apple: Implement drm_crtc_helper_funcs.mode_fixup
jannau Nov 23, 2022
efb0e2c
drm/apple: Read display dimensions from devicetree
jannau Nov 24, 2022
ef6633e
drm/apple: Wait for power on request to complete synchronously
asahilina Nov 27, 2022
ec845e8
drm/apple: Remove obsolete ignore_swap_complete
asahilina Nov 27, 2022
cbbb60b
drm/asahi: Fix backlight restores on non-microLED devices
asahilina Nov 27, 2022
e7029ae
drm/apple: Schedule backlight update on enable_backlight_message_ap_g…
jannau Nov 27, 2022
c504647
drm/apple: Report "PMUS.Temperature" only for mini-LED backlights
jannau Nov 27, 2022
2d8b935
drm/apple: Check if DCP firmware is supported
jannau Dec 4, 2022
f21ab25
drm/apple: Disable fake vblank IRQ machinery
asahilina Nov 27, 2022
7db59ca
gpu: drm: apple: Parse color modes completely
jannau Dec 11, 2022
8ef5c89
gpu: drm: apple: Skip parsing elements of virtual timing modes
jannau Dec 11, 2022
cf10acc
gpu: drm: apple: Add tracing for color and timing modes
jannau Dec 11, 2022
51addfa
gpu: drm: apple: Prefer SDR color modes
jannau Dec 11, 2022
9cb752b
gpu: drm: apple: Add IOMobileFramebufferAP::get_color_remap_mode
jannau Dec 11, 2022
af384fc
gpu: drm: apple: reenable support for {A,X}RGB2101010
jannau Dec 11, 2022
19729ef
gpu: drm: apple: Add show_notch module parameter
jannau Dec 11, 2022
00b312f
Revert "gpu: drm: apple: reenable support for {A,X}RGB2101010"
jannau Dec 12, 2022
1d2461a
drm/apple: Enable 10-bit mode & set colorspace to native
marcan Dec 25, 2022
9bb7faf
gpu: drm: apple: Clear all surfaces on startup
jannau Dec 31, 2022
7799a00
drm/apple: Update swap handling
jannau Jan 2, 2023
9924139
gpu: drm: apple: Use drm_aperture_remove_conflicting_framebuffers
jannau Dec 22, 2022
0296047
drm/apple: Use drm_module_platform_driver
jannau Dec 31, 2022
266101c
drm/apple: Allocate drm objects according to drm's expectations
jannau Jan 2, 2023
94c2156
gpu: drm: apple: Use components to avoid deferred probing
jannau Dec 29, 2022
638ca87
gpu: drm: apple: Wait for iomfb initialization
jannau Dec 29, 2022
b91c24f
drm/apple: simplify IOMFB_THUNK_INOUT
jannau Jan 8, 2023
fc345e4
drm/apple: Fix parse_string() memory leaks
asahilina Feb 15, 2023
24bf766
drm/apple: Fix bad error return
asahilina Feb 15, 2023
22e7a65
drm/apple: Set backlight level indirectly if no mode is set
jannau Jan 22, 2023
5c13054
drm/apple: Use backlight_get_brightness()
jannau Jan 22, 2023
e9aac13
drm/apple: Move panel options to its own sub-struct
jannau Mar 26, 2023
232850f
drm/apple: Align buffers to 16K page size
asahilina Mar 22, 2023
99e9b86
drm/apple: purge unused dcp_update_notify_clients_dcp
jannau Feb 28, 2023
2fb65ab
drm/apple: Add callbacks triggered by last_client_close_dcp()
jannau Jan 8, 2023
3547ab1
drm/apple: Add support for the macOS 13.2 DCP firmware
jannau Feb 17, 2023
7e4b690
drm/apple: ignore surf[3] in clear swap calls
jannau Mar 9, 2023
b268b51
drm/apple: Support color transformation matrices
jannau Mar 12, 2023
d8bfaf6
drm/apple: Drop unsupported DRM_FORMAT_ARGB2101010
jannau Mar 23, 2023
334d984
dcp: Allow unused trampolines
marcan Apr 11, 2023
cc0cd46
dcp: Add get_tiling_state
marcan Apr 11, 2023
502ef5e
dcp: 42-bit DMA masks
marcan Apr 11, 2023
6d35aae
dcp: T602X bwreq support
marcan Apr 11, 2023
62bc9ea
dcp: Warn if DMA mapping fails
marcan Apr 11, 2023
1a0c182
WIP: drm/apple: Port to incompatible V13.3 firmware interface
jannau Apr 14, 2023
63e3b3d
drm/probe_helper: fix the warning reported when calling drm_kms_helpe…
Mar 28, 2023
a6cc54e
drm/apple: Remove simpledrm framebuffer before DRM device alloc
jannau Apr 15, 2023
4d17014
drm/apple: Mark DCP as being in the wakeup path
marcan Apr 24, 2023
51030f2
drm: apple: iomfb: Increase modeset timeout to 2.5 seconds
jannau Apr 30, 2023
c1cfe32
drm: apple: Only match backlight service on DCP with panel
jannau Apr 30, 2023
f7eb35b
drm: apple: iomfb: limit backlight updates to integrated panels
jannau Apr 30, 2023
b541b10
drm: apple: backlight: avoid updating the brightness with a commit
jannau Jul 16, 2023
4195ecc
drm/apple: Get rid of the piodma dummy driver
jannau Jul 15, 2023
d83500e
drm/apple: Use iommu domain for piodma maps
jannau Jul 19, 2023
1d23f8e
drm: apple: Align PIODMA buffers to SZ_16K
jannau Jul 19, 2023
a67d3e0
drm: apple: Add D129 allocate_bandwidth iomfb callback
jannau Aug 23, 2023
d2f2217
drm: apple: Update supported firmware versions to 12.3 and 13.5
jannau Sep 4, 2023
a16f58c
drm: apple: dcp: Port over to DEFINE_SIMPLE_DEV_PM_OPS
jannau Nov 6, 2023
e744cf6
drm: apple: dcp: Remove cargo-culted devm_of_platform_populate
jannau Nov 6, 2023
498edd6
drm: apple: iomfb: implement abort_swaps_dcp
jannau Apr 30, 2023
c01bb47
drm: apple: iomfb: Increase modeset tiemout to 8.5 seconds
jannau Nov 6, 2023
fd0ad71
drm: apple: Remove explicit asc-dram-mask handling
jannau Nov 6, 2023
8e2abeb
mux: apple DP xbar: Add Apple silicon DisplayPort crossbar
svenpeter42 Nov 5, 2022
6640cf6
mux: apple dp crossbar: Support t8112 varient
jannau Apr 30, 2023
6f36dfc
mux: apple dp crossbar: FIFO_RD_UNK_EN seems to use 2 bits per dispext*
jannau Apr 30, 2023
584ec64
mux: apple dp crossbar: Read UNK_TUNABLE before and after writing it
jannau Apr 30, 2023
9831b17
mux: apple dp crossbar: Support t602x DP cross bar variant
jannau Aug 17, 2023
e2020bf
gpu: drm: apple: Add utility functions for matching on dict keys
povik Feb 15, 2023
966de8f
gpu: drm: apple: Add 'parse_blob'
povik Feb 23, 2023
38c0602
gpu: drm: apple: Add sound mode parsing
povik Feb 15, 2023
dfc4ecf
drm: apple: DCP AFK/EPIC support
svenpeter42 Feb 12, 2023
2173291
drm: apple: afk: Use linear array of services
jannau Nov 12, 2023
4b872ac
drm: apple: Add DPTX support
svenpeter42 Nov 5, 2022
702c1d2
drm: apple: Move offsets for rt_bandwidth callback to DT
jannau Nov 12, 2023
4e7a2d1
drm: apple: iomfb: Do not match/create PMU service for dcpext
jannau Aug 17, 2023
2b646c6
drm: apple: afk: Adapt to macOS 13.3 firmware
jannau Apr 9, 2023
226453d
drm: apple: dptx: Port APCALL to macOS 13.3 firmware
jannau Apr 28, 2023
ce6d929
drm: apple: dptx: port interface to macOS 13.5 firmware
jannau Aug 17, 2023
c146fe7
drm: apple: dptx: Add set_active_lanes APCALL
jannau Nov 6, 2023
7ffd8fd
drm: apple: dptx: Add DPTX_APCALL_ACTIVATE
jannau Nov 6, 2023
e259d4c
drm: apple: dptx: Adapt dptxport_connect() to observed behavior
jannau Nov 6, 2023
8fbad71
drm: apple: afk: Clear commands before sending them
marcan Nov 16, 2023
f3547bd
drm: apple: Fix missing unlock path in dcp_dptx_connect
marcan Nov 16, 2023
739d789
drm: apple: dptxep: Fix reply size check
marcan Nov 16, 2023
60aabd3
drm: apple: dptxep: Implement drive settings stuff
marcan Nov 16, 2023
411b25d
drm/apple: Add missing sound Kconfig dependencies
asahilina Nov 22, 2023
5a24fc5
drm: apple: HACK: Do not delete piodma platform device
jannau Nov 20, 2023
44beafe
drm: apple: afk: Update read pointer before processing message
jannau Nov 6, 2023
32926ba
drm: apple: Implement D592 callback
jannau Nov 19, 2023
fb93437
drm: apple: Keep information at which swap_id fb are still referenced
jannau Nov 19, 2023
9bc9625
Revert "drm: apple: iomfb: Do not match/create PMU service for dcpext"
jannau Nov 20, 2023
ee5214e
drm: apple: dptx: Implement APCALL_DEACTIVATE and reset the phy
jannau Nov 20, 2023
06e13b1
drm: apple: Disconnect dptx When the CRTC is powered down
jannau Nov 20, 2023
4b02100
drm: apple: dptx: Wait for completion of dptx_connect.
jannau Nov 21, 2023
d998f16
drm: apple: HPD: Only act on connect IRQs
jannau Nov 21, 2023
4a8fc9d
drm: apple: iomfb: Improve hotplug related logging
jannau Nov 21, 2023
9cd0ab7
drm: apple: Extract modeset crtc's atomic_flush()
jannau Nov 22, 2023
b70e5ca
drm: apple: dptx: Log connect/disconnect calls
jannau Nov 22, 2023
a7bed8e
drm: apple: Move modeset into drm_crtc's atomic_enable
jannau Nov 23, 2023
1da8438
drm: apple: Fix DPTX hotplug handling
jannau Nov 23, 2023
3d20d7b
drm: apple: iomfb: Use drm_kms_helper_connector_hotplug_event
jannau Nov 23, 2023
cd422b9
drm : apple: iomfb: Handle OOB ASYNC/CB context
jannau Nov 26, 2023
d962807
drm: apple: iomfb: Extend hotplug/mode parsing logging
jannau Nov 26, 2023
09fb993
drm: apple: Adjust startup sequence and timing for dptx
jannau Nov 26, 2023
dbce6ad
drm: apple: dcp: Fix resume with DPTX based display outputs
jannau Nov 28, 2023
7e2f6ca
drm: apple: Be less noisy about teardown notifies without service
jannau Dec 2, 2023
bdac34f
drm: apple: dptx: Wait for link config on connect
jannau Dec 3, 2023
b98462d
drm: apple: Prefer RGB SDR modes
jannau Dec 1, 2023
61bf5b3
drm: apple: iomfb: Always parse DisplayAttributes
jannau Dec 4, 2023
f45d369
drm: apple: parser: constify parser data
jannau Dec 10, 2023
54d9b55
drm: apple: epic: Pass full notfiy/report payload to handler
jannau Dec 10, 2023
bd06892
drm: apple: epic: systemep: Parse "mNits" log events
jannau Dec 10, 2023
11eca5f
drm: apple: mark local functions static
arndb Jan 17, 2024
be506e9
drm/apple: Add missing RTKit Kconfig dependency
alyssais Jan 11, 2024
bb85648
drm/apple: spelling fixes
jonathangray Jan 22, 2024
55d0ca3
drm: apple: backlight: force backlight update after resume
kettenis Dec 28, 2023
e8b4788
drm: apple: Fix/remove log messages
jannau Jan 22, 2024
85f95b0
drm: apple: dptx: Debounce HPD by simple msleep()
jannau Mar 26, 2024
456beee
drm: apple: Add Kconfig option for audio
jannau Jan 21, 2024
72f9c5c
drm: apple: iomfb: export property dicts in connector debugfs
jannau Dec 25, 2023
c43cbc9
gpu: drm: apple: Expose injecting of EPIC calls via debugfs
povik Feb 13, 2023
84775d3
gpu: drm: apple: Set up client of AV endpoint
povik Feb 13, 2023
105764e
drm: apple: av: Support macOS 12.3 and 13.5 firmware APIs
jannau Nov 13, 2023
617b1e2
drm: apple: av: Do not open AV service from afk receive handler
jannau Nov 13, 2023
be8ab0c
gpu: drm: apple: Add DCP audio driver
povik Feb 23, 2023
160d97b
drm: apple: dptx: Remove DPTX disconnect/connect on init
jannau Apr 14, 2024
846aca8
drm: apple: audio: init AV endpoint later
jannau Apr 14, 2024
54cb247
drm: apple: av: Use a workqueue
jannau Apr 20, 2024
de23abd
drm: apple: audio: move the audio driver into the DCP module
jannau Apr 20, 2024
946fcad
drm: apple: audio: Make the DP/HDMI audio driver a full driver
jannau Apr 21, 2024
2f7776d
drm: apple: audio: Avoid probe errors
jannau Apr 22, 2024
1263c4a
drm/apple: fix double words in comments
jonathangray Apr 21, 2024
be70c65
drm: apple: backlight: release lock in error path
cschutijser Apr 18, 2024
7ebce2b
drm: apple: Switch back to drm_atomic_helper_commit_tail_rpm()
jannau Apr 27, 2024
cf4fa2f
drm: apple: Fix broken MemDescRelay::release_descriptor callback number
jannau May 4, 2024
7fce142
drm: apple: Reduce log spam about busy command channel
jannau May 4, 2024
93e905f
drm: apple: av: Warn only once about failed calls
jannau May 4, 2024
eabe29d
drm: apple: disable HDMI audio by default
jannau May 8, 2024
6451d63
drm: apple: Override drm_vblank's page flip event handling [HACK]
jannau May 12, 2024
92400b7
drm/apple: Explicitly stop AFK endpoints on shutdown
asahilina Jun 15, 2024
b636ac7
drm/apple: audio: Create a device link to the DMA device
asahilina Jun 15, 2024
dd842f7
drm/apple: audio: Defer DMA channel acquisition to device open
asahilina Jun 15, 2024
64c1390
drm/apple: audio: Fix hotplug notifications
asahilina Jun 15, 2024
6c87f69
drm: apple: Add oob hotplug event
svenpeter42 Nov 5, 2022
dc80c79
drm: apple: dptx: Fix get_drive_settings retcode
jannau Jun 9, 2024
d45531b
drm: apple: dptxport: get_max_lane_count: Retrieve lane count from phy
jannau Jun 9, 2024
d82b423
drm/apple: Fix missing mode init (feel free to squash)
asahilina May 10, 2024
dea5f9a
drm: apple: iomfb: Align buffer size on unmap/free as well
jannau Jul 13, 2024
45eb5c4
Revert "drm: apple: HACK: Do not delete piodma platform device"
jannau Aug 21, 2024
ac232b0
drm: apple: afk: Optionally match against EPICName
jannau Aug 20, 2024
de0cab6
drm: apple: Add dcpav-service-ep
jannau Dec 3, 2023
1ba0496
drm: apple: iomfb: Provide the EDID as connector property
jannau Aug 20, 2024
1d51544
platform/apple: Add new Apple Mac SMC driver
marcan Feb 4, 2022
b232bd4
gpio: Add new gpio-macsmc driver for Apple Macs
marcan Feb 4, 2022
10b60d6
power: supply: macsmc_power: Driver for Apple SMC power/battery stats
marcan Feb 7, 2022
826d6bb
power: supply: macsmc_power: Add cycle count and health props
marcan Feb 7, 2022
dfd71ff
power: supply: macsmc_power: Add present prop
marcan Feb 8, 2022
bc7d93e
power: supply: macsmc_power: Add more props, rework others
marcan Feb 14, 2022
708007a
power: supply: macsmc_power: Use BUIC instead of BRSC for charge
marcan Feb 14, 2022
ab63aef
power: supply: macsmc_power: Turn off OBC flags if macOS left them on
marcan Feb 14, 2022
5a7a912
power: supply: macsmc_power: Add AC power supply
marcan Feb 14, 2022
dea6880
power: reset: macsmc-reboot: Add driver for rebooting via Apple SMC
marcan Feb 8, 2022
0603c50
rtc: Add new rtc-macsmc driver for Apple Silicon Macs
marcan Feb 15, 2022
f444ed1
Input: macsmc-hid: New driver to handle the Apple Mac SMC buttons/lid
marcan Mar 4, 2022
b9a8545
Input: macsmc-hid: Support button/lid wakeups
marcan Mar 4, 2022
4020c77
gpio: macsmc: Add IRQ support
marcan May 4, 2022
c83571b
Input: macsmc-hid: Support the power button on desktops
marcan Sep 18, 2022
c59a890
power: supply: macsmc_power: Add critical level shutdown & misc events
marcan Dec 4, 2022
c093775
platform/apple: smc: Add apple_smc_read_f32_scaled
marcan Dec 12, 2022
d0773ec
power: supply: macsmc_power: Add a debug mode to print power usage
marcan Dec 12, 2022
6862613
macsmc: Fix race between backend and core on notifications
marcan Apr 18, 2023
4f0a0e8
power: supply: macsmc_power: Log power data on button presses
marcan Apr 17, 2023
e6d285d
power: supply: macsmc_power: Add CHWA charge thresholds
marcan May 30, 2023
2ace298
power: supply: macsmc_power: Report available charge_behaviours
t-8ch Mar 6, 2024
1ff187a
power: supply: macsmc_power: Add more properties
marcan Jun 28, 2024
3845431
platform/apple: smc: Add apple_smc_read_ioft_scaled
jannau Oct 1, 2023
3f0da76
hwmon: add macsmc-hwmon driver
chadmed Apr 26, 2024
7949af4
hwmon: macsmc: Avoid global writable hwmon_chip_info
jannau Jun 23, 2024
9e19732
power: supply: macsmc_power: Add CHLS charge thresholds
marcan Aug 14, 2024
d82cb3e
power: supply: macsmc_power: Remove CSIL
marcan Aug 14, 2024
4bf83d9
power: supply: macsmc_power: Report not charging for CHLS thresholds
jannau Aug 14, 2024
ca16ba0
platform/apple: smc: Add apple_smc_write_f32_scaled
jannau Oct 3, 2023
a566fd3
hwmon: macsmc: wire up manual fan control support
chadmed Aug 5, 2024
c24f6a9
squash! PCI: apple: Avoid PERST# deassertion through gpiod initializa…
jannau Sep 17, 2024
51021c2
ALSA: usb-audio: Define macros for quirk table entries
tiwai Aug 14, 2024
d2c34a4
ALSA: usb-audio: Replace complex quirk lines with macros
tiwai Aug 14, 2024
c34ddb3
ALSA: usb-audio: Add quirk for RME Digiface USB
CyanNyan Sep 3, 2024
08d7e2a
ALSA: usb-audio: Add mixer quirk for RME Digiface USB
asahilina Sep 3, 2024
bcc9ecf
power: supply: Drop use_cnt check from power_supply_property_is_write…
jwrdegoede Sep 8, 2024
b90e51e
drm/sched: Fix dynamic job-flow control race
robclark Sep 13, 2024
7a2a6e4
drm/asahi: run rustfmt
jannau Jul 27, 2024
e210500
drm/asahi: file: Update to newer VM_BIND API
asahilina May 10, 2024
bec3baf
drm/asahi: Signal soft fault support to userspace
asahilina Jun 22, 2024
455679b
drm/asahi: Enable soft faults by default
asahilina Jul 27, 2024
cf6863e
rust: kernel: net: phy: Fix Module::init() signature
jannau Jul 29, 2024
3cd3694
drm/asahi: Fix u32 mult overflow on large tilebufs/TPCs
asahilina Aug 6, 2024
245c4ce
fixup! *RFL import: kernel::platform
jannau Sep 16, 2024
1c2dcab
rust: kernel::platform: Adapt to anon union for remove()/remove_new()
jannau Sep 16, 2024
e242c62
rust: block: rnull: Adapt to asahi's rust base branch
jannau Sep 16, 2024
a0e6ad6
fixup! arm64: Implement Apple IMPDEF TSO memory model control
asahilina Sep 20, 2024
8c1a782
arm64: cpufeature: Unify SCOPE_LOCAL_CPU early & late behavior
asahilina Sep 21, 2024
f15d406
fixup! arm64: Implement Apple IMPDEF TSO memory model control
asahilina Sep 21, 2024
f7850ca
fixup! arm64: Implement PR_{GET,SET}_MEM_MODEL for always-TSO CPUs
asahilina Sep 21, 2024
1fcbc13
fixup! KVM: arm64: Expose TSO capability to guests and context switch
asahilina Sep 21, 2024
503e280
drm/asahi: Workqueue: Add more debug
asahilina Sep 23, 2024
c08e3ef
drm/asahi: Fix event tracking when JobSubmission is dropped
asahilina Sep 23, 2024
28ad75b
fixup! drm/asahi: run rustfmt
asahilina Sep 23, 2024
e669000
drm/asahi: gpu: Show unknown field in timeouts
asahilina Sep 23, 2024
ef96bc4
fixup! drm/asahi: Add the Asahi driver for Apple AGX GPUs
asahilina Sep 23, 2024
20398d9
fixup! drm/asahi: Add the Asahi driver UAPI
asahilina Sep 23, 2024
c881c40
drm/asahi: Handle channel errors
asahilina Sep 23, 2024
974528c
drm/asahi: event: Initialize stamps to different values
asahilina Sep 24, 2024
1e4b90c
drm/asahi: workqueue,queue: More debug
asahilina Sep 24, 2024
4af79b7
drm/asahi: workqueue: Fix "Cannot submit, but queue is empty?" bug
asahilina Sep 24, 2024
f3841ab
drm/asahi: Clean up jobs in a workqueue
asahilina Sep 24, 2024
e9d356b
drm/asahi: Add robust_isolation kernel parameter
asahilina Sep 24, 2024
12e720e
ALSA: Introduce 'snd_interval_rate_bits'
povik Feb 23, 2023
654e07b
ALSA: Support nonatomic dmaengine PCMs
povik Feb 17, 2023
f1fa254
READ COMMIT MESSAGE! macaudio: Enable first round of models
marcan Dec 15, 2023
f8cddd8
READ COMMIT MESSAGE! macaudio: Enable second round of models
marcan Dec 15, 2023
2812dea
fixup! ASoC: macaudio: Tune DT parsing error messages
jannau Sep 24, 2024
b59a10c
fixup! ASoC: apple: Add macaudio machine driver
jannau Sep 24, 2024
fca8dbb
fixup! macaudio: Fix missing kconfig requirement
jannau Sep 24, 2024
819ac8e
fixup! WIP: phy: apple: Add Apple Type-C PHY
jannau Sep 24, 2024
d025ffc
fixup! drm/asahi: Add the Asahi driver for Apple AGX GPUs
asahilina Sep 24, 2024
1bbe2a3
drm/asahi: HACK: Disable compute preemption for now
asahilina Sep 24, 2024
b130516
Merge branch 'bits/002-backports' into asahi-wip
jannau Sep 24, 2024
315dff2
Merge branch 'bits/005-maintainers' into asahi-wip
jannau Sep 24, 2024
0f538dd
Merge branch 'bits/010-soc' into asahi-wip
jannau Sep 24, 2024
9b24bff
Merge branch 'bits/020-dart' into asahi-wip
jannau Sep 24, 2024
81eb391
Merge branch 'bits/030-misc' into asahi-wip
jannau Sep 24, 2024
0aff27d
Merge branch 'bits/040-dwc3' into asahi-wip
jannau Sep 24, 2024
9d27f16
Merge branch 'bits/050-nvme' into asahi-wip
jannau Sep 24, 2024
6fda233
Merge branch 'bits/060-spi' into asahi-wip
jannau Sep 24, 2024
6dc09ad
Merge branch 'bits/070-audio' into asahi-wip
jannau Sep 24, 2024
98a9a8b
Merge branch 'bits/080-wifi' into asahi-wip
jannau Sep 24, 2024
120d36c
Merge branch 'bits/090-spi-hid' into asahi-wip
jannau Sep 24, 2024
cd18cb3
Merge branch 'bits/110-smc' into asahi-wip
jannau Sep 24, 2024
fbd6e96
Merge branch 'bits/120-spmi' into asahi-wip
jannau Sep 24, 2024
bb8d3bd
Merge branch 'bits/130-cpufreq' into asahi-wip
jannau Sep 24, 2024
8050b5d
Merge branch 'bits/140-pci' into asahi-wip
jannau Sep 24, 2024
fd42227
Merge branch 'bits/150-xhci-firmware' into asahi-wip
jannau Sep 24, 2024
4a2ce75
Merge branch 'bits/170-atcphy' into asahi-wip
jannau Sep 24, 2024
34a83bd
Merge branch 'bits/180-sio' into asahi-wip
jannau Sep 24, 2024
1198847
Merge branch 'bits/200-dcp' into asahi-wip
jannau Sep 24, 2024
8353e91
Merge branch 'bits/210-gpu' into asahi-wip
jannau Sep 24, 2024
6e85b23
Merge branch 'bits/220-tso' into asahi-wip
jannau Sep 24, 2024
52d44bd
Merge branch 'bits/230-touchbar' into asahi-wip
jannau Sep 24, 2024
de1c5a8
Merge branch 'bits/240-isp' into asahi-wip
jannau Sep 24, 2024
016690d
rust: samples: fix init argument
Bruno-Eduardo Oct 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
32 changes: 32 additions & 0 deletions Documentation/core-api/printk-formats.rst
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,38 @@ Examples::
%p4cc Y10 little-endian (0x20303159)
%p4cc NV12 big-endian (0xb231564e)

Generic FourCC code
-------------------

::
%p4c[hnbl] gP00 (0x67503030)

Print a generic FourCC code, as both ASCII characters and its numerical
value as hexadecimal.

The additional ``h``, ``r``, ``b``, and ``l`` specifiers are used to specify
host, reversed, big or little endian order data respectively. Host endian
order means the data is interpreted as a 32-bit integer and the most
significant byte is printed first; that is, the character code as printed
matches the byte order stored in memory on big-endian systems, and is reversed
on little-endian systems.

Passed by reference.

Examples for a little-endian machine, given &(u32)0x67503030::

%p4ch gP00 (0x67503030)
%p4cl gP00 (0x67503030)
%p4cb 00Pg (0x30305067)
%p4cr 00Pg (0x30305067)

Examples for a big-endian machine, given &(u32)0x67503030::

%p4ch gP00 (0x67503030)
%p4cl 00Pg (0x30305067)
%p4cb gP00 (0x67503030)
%p4cr 00Pg (0x30305067)

Rust
----

Expand Down
111 changes: 111 additions & 0 deletions Documentation/devicetree/bindings/dma/apple,sio.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/dma/apple,sio.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Apple SIO Coprocessor

description:
SIO is a coprocessor on Apple M1 and later chips (and maybe also on earlier
chips). Its role is to offload SPI, UART and DisplayPort audio transfers,
being a pretend DMA controller.

maintainers:
- Martin Povišer <[email protected]>

allOf:
- $ref: dma-controller.yaml#

properties:
compatible:
items:
- enum:
- apple,t6000-sio
- apple,t8103-sio
- const: apple,sio

reg:
maxItems: 1

'#dma-cells':
const: 1
description:
DMA clients specify a single cell that corresponds to the RTKit endpoint
number used for arranging the transfers in question

dma-channels:
maximum: 128

mboxes:
maxItems: 1

iommus:
maxItems: 1

power-domains:
maxItems: 1

memory-region:
minItems: 2
maxItems: 8
description:
A number of references to reserved memory regions among which are the DATA/TEXT
sections of coprocessor executable firmware and also auxiliary firmware data
describing the available DMA-enabled peripherals

apple,sio-firmware-params:
$ref: /schemas/types.yaml#/definitions/uint32-array
description: |
Parameters in the form of opaque key/value pairs that are to be sent to the SIO
coprocesssor once it boots. These parameters can point into the reserved memory
regions (in device address space).

Note that unlike Apple's firmware, we treat the parameters, and the data they
refer to, as opaque. Apple embed short data blobs into their SIO devicetree node
that describe the DMA-enabled peripherals (presumably with defined semantics).
Their driver processes those blobs and sets up data structure in mapped device
memory, then references this memory in the parameters sent to the SIO. At the
level of description we are opting for in this binding, we assume the job of
constructing those data structures has been done in advance, leaving behind an
opaque list of key/value parameter pairs to be sent by a prospective driver.

This approach is chosen for two reasons:

- It means we don't need to try to understand the semantics of Apple's blobs
as long as we know the transformation we need to do from Apple's devicetree
data to SIO data (which can be shoved away into a loader). It also means the
semantics of Apple's blobs (or of something to replace them) need not be part
of the binding and be kept up with Apple's firmware changes in the future.

- It leaves less work for the driver attaching on this binding. Instead the work
is done upfront in the loader which can be better suited for keeping up with
Apple's firmware changes.

required:
- compatible
- reg
- '#dma-cells'
- dma-channels
- mboxes
- iommus
- power-domains

additionalProperties: false

examples:
- |
sio: dma-controller@36400000 {
compatible = "apple,t8103-sio", "apple,sio";
reg = <0x36400000 0x8000>;
dma-channels = <128>;
#dma-cells = <1>;
mboxes = <&sio_mbox>;
iommus = <&sio_dart 0>;
power-domains = <&ps_sio_cpu>;
memory-region = <&sio_text>, <&sio_data>,
<&sio_auxdata1>, <&sio_auxdata2>; /* Filled by loader */
apple,sio-firmware-params = <0xb 0x10>, <0xc 0x1b80>, <0xf 0x14>,
<0x10 0x1e000>, <0x30d 0x34>, <0x30e 0x4000>,
<0x1a 0x38>, <0x1b 0x50>; /* Filled by loader */
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/input/touchscreen/apple,z2-touchscreen.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Apple touchscreens attached using the Z2 protocol.

maintainers:
- [email protected]
- Sasha Finkelstein <[email protected]>

description: A series of touschscreen controllers used in Apple products.

allOf:
- $ref: touchscreen.yaml#
- $ref: /schemas/spi/spi-peripheral-props.yaml#

properties:
compatible:
items:
- enum:
- apple,j293-touchbar
- apple,j493-touchbar
- const: apple,z2-touchbar
- const: apple,z2-multitouch

reg:
maxItems: 1

interrupts:
maxItems: 1

reset-gpios:
maxItems: 1

cs-gpios:
maxItems: 1

firmware-name:
maxItems: 1

label:
maxItems: 1

touchscreen-size-x: true
touchscreen-size-y: true
spi-max-frequency: true
spi-cs-hold-delay-ns: true
spi-cs-setup-delay-ns: true

required:
- compatible
- interrupts
- reset-gpios
- firmware-name
- label
- touchscreen-size-x
- touchscreen-size-y

additionalProperties: false

examples:
- |
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>

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

touchscreen@0 {
compatible = "apple,j293-touchbar", "apple,z2-touchbar",
"apple,z2-multitouch";
reg = <0>;
spi-max-frequency = <11500000>;
reset-gpios = <&pinctrl_ap 139 0>;
cs-gpios = <&pinctrl_ap 109 0>;
interrupts-extended = <&pinctrl_ap 194 IRQ_TYPE_EDGE_FALLING>;
firmware-name = "apple/dfrmtfw-j293.bin";
touchscreen-size-x = <23045>;
touchscreen-size-y = <640>;
label = "MacBookPro17,1 Touch Bar";
};
};

...
51 changes: 48 additions & 3 deletions Documentation/devicetree/bindings/pci/apple,pcie.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,27 @@ properties:
power-domains:
maxItems: 1

patternProperties:
"^pci@":
$ref: /schemas/pci/pci-bus.yaml#
type: object
description: A single PCI root port

properties:
reg:
maxItems: 1

pwren-gpios:
description: Optional GPIO to power on the device
maxItems: 1

required:
- reset-gpios
- interrupt-controller
- "#interrupt-cells"
- interrupt-map-mask
- interrupt-map

required:
- compatible
- reg
Expand Down Expand Up @@ -142,34 +163,58 @@ examples:
pinctrl-0 = <&pcie_pins>;
pinctrl-names = "default";

pci@0,0 {
port00: pci@0,0 {
device_type = "pci";
reg = <0x0 0x0 0x0 0x0 0x0>;
reset-gpios = <&pinctrl_ap 152 0>;

#address-cells = <3>;
#size-cells = <2>;
ranges;

interrupt-controller;
#interrupt-cells = <1>;
interrupt-map-mask = <0 0 0 7>;
interrupt-map = <0 0 0 1 &port00 0 0 0 0>,
<0 0 0 2 &port00 0 0 0 1>,
<0 0 0 3 &port00 0 0 0 2>,
<0 0 0 4 &port00 0 0 0 3>;
};

pci@1,0 {
port01: pci@1,0 {
device_type = "pci";
reg = <0x800 0x0 0x0 0x0 0x0>;
reset-gpios = <&pinctrl_ap 153 0>;

#address-cells = <3>;
#size-cells = <2>;
ranges;

interrupt-controller;
#interrupt-cells = <1>;
interrupt-map-mask = <0 0 0 7>;
interrupt-map = <0 0 0 1 &port01 0 0 0 0>,
<0 0 0 2 &port01 0 0 0 1>,
<0 0 0 3 &port01 0 0 0 2>,
<0 0 0 4 &port01 0 0 0 3>;
};

pci@2,0 {
port02: pci@2,0 {
device_type = "pci";
reg = <0x1000 0x0 0x0 0x0 0x0>;
reset-gpios = <&pinctrl_ap 33 0>;

#address-cells = <3>;
#size-cells = <2>;
ranges;

interrupt-controller;
#interrupt-cells = <1>;
interrupt-map-mask = <0 0 0 7>;
interrupt-map = <0 0 0 1 &port02 0 0 0 0>,
<0 0 0 2 &port02 0 0 0 1>,
<0 0 0 3 &port02 0 0 0 2>,
<0 0 0 4 &port02 0 0 0 3>;
};
};
};
12 changes: 12 additions & 0 deletions Documentation/devicetree/bindings/power/apple,pmgr-pwrstate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,18 @@ properties:
minimum: 0
maximum: 15

apple,force-disable:
description:
Forces this device to be disabled (bus access blocked) when the power
domain is powered down.
type: boolean

apple,force-reset:
description:
Forces a reset/error recovery of the power control logic when the power
domain is powered down.
type: boolean

required:
- compatible
- reg
Expand Down
Loading