diff --git a/pkgs/additional/linux-megous/default.nix b/pkgs/additional/linux-megous/default.nix index cbee7a763..9008b12b1 100644 --- a/pkgs/additional/linux-megous/default.nix +++ b/pkgs/additional/linux-megous/default.nix @@ -15,6 +15,7 @@ buildLinux, fetchpatch, fetchFromGitea, + newScope, pkgs, # modem_power is incompatible with eg25-manager: withModemPower ? true, @@ -67,6 +68,8 @@ let major = lib.versions.major base; minor = lib.versions.minor base; + patches = import ./patches.nix { inherit lib newScope; }; + # pinephone uses the linux dtb at arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi # - this includes sun50i-a64.dtsi # - and sun50i-a64-cpu-opp.dtsi @@ -365,7 +368,7 @@ let # extraStructuredConfig = config; # }; -in (buildLinux { +in ((buildLinux { version = base + rc; # modDirVersion needs to be x.y.z, where `z` could be `Z-rcN` @@ -402,9 +405,9 @@ in (buildLinux { # so, this option has no effect when `autoModules` is false. # the benefit i think is mostly that such modules get automatically included in the initrd? preferBuiltin = withFullConfig; -}) // { - # XXX(2024/07/01): fix the magnetometer for pinephone 1.2b (breaks pp 1.2) - # see: - # long-term fix is to unify the pinephone 1.2 and 1.2b dts files and have u-boot select which of the two magnetometers to enable. - passthruPatches.af8133j = ./pinephone-1_2b-af8133j.patch; -} +})) +.overrideAttrs (base: { + passthru = (base.passthru or {}) // { + inherit patches; + }; +}) diff --git a/pkgs/additional/linux-megous/patches.nix b/pkgs/additional/linux-megous/patches.nix new file mode 100644 index 000000000..2635d06e9 --- /dev/null +++ b/pkgs/additional/linux-megous/patches.nix @@ -0,0 +1,485 @@ +{ + lib, + newScope, +}: +lib.makeScope newScope (self: with self; { + # XXX(2024/07/01): fix the magnetometer for pinephone 1.2b (breaks pp 1.2) + # see: + # long-term fix is to unify the pinephone 1.2 and 1.2b dts files and have u-boot select which of the two magnetometers to enable. + af8133j = ./pinephone-1_2b-af8133j.patch; + + getByName = name: { + inherit name; + patch = "${./commits}/${name}.patch"; + }; + + # e.g. `byName.PREF012-8723cs-Enable-OOB-interrupt` is a valid kernel patch + byName = lib.genAttrs patchNames getByName; + series = builtins.map getByName patchNames; + + patchNames = [ + "PREF001-bes2600-Add-the-wifi-driver-for-Pinetab2-WiFi-chip-0" + "PREF002-bes2600-Update-the-wifi-driver-from-bestechnic-0.3.5" + "PREF003-bes2600-Hook-the-driver-up-to-staging" + "PREF004-bes2600-Move-Kconfig-options-to-makefile" + "PREF005-bes2600-Port-to-Linux-6.5" + "PREF006-bes2600-Use-device-tree-exclusively-for-platform-dat" + "PREF007-bes2600-Read-MAC-address-from-DT-if-available" + "PREF008-bes2600-Move-firmware-loader-locations-to-a-bes2600-" + "PREF009-bes2600-Use-firmware-loader-to-load-factory-data" + "PREF013-bes2600-Disable-STANDARD_FACTORY_EFUSE_FLAG" + "PREF015-bes2600-We-re-not-all-in-China-yet" + "PREF017-bes2600-Don-t-kill-the-association-3s-after-joining" + "PREF010-8723cs-Add-a-new-driver-v5.12.2-7-g2de5ec386.2020101" + "PREF011-8723cs-Make-the-driver-compile-and-probe-drop-rockch" + "PREF012-8723cs-Enable-OOB-interrupt" + "PREF014-8723cs-Load-the-MAC-address-from-local-mac-address" + "PREF016-8723cs-Modify-makefile-options-to-better-suit-PinePh" + "PREF018-8723cs-Enable-monitor-mode" + "PREF019-8723cs-Disable-power-saving" + "PREF020-8723cs-aes_encrypt-aes_encrypt_128-to-avoid-symbol-n" + "PREF021-8723cs-Enable-wifi-power-saving-mode" + "PREF022-8723cs-Enable-TDLS-802.11z-support-direct-sta-sta-co" + "PREF023-8723cs-Disable-CONFIG_CONCURRENT_MODE" + "PREF024-8723cs-Set-CONFIG_RTW_SDIO_PM_KEEP_POWER-n-to-fix-su" + "PREF025-8723cs-Resume-wifi-in-a-workqueue" + "PREF026-8723cs-Port-to-5.11" + "PREF027-8723cs-Enable-WoWLAN" + "PREF028-8723cs-Port-to-5.12" + "PREF029-8723cs-Fix-misleading-indentation" + "PREF030-8723cs-Disable-use-of-NAPI" + "PREF031-8723cs-Fix-indentation" + "PREF032-8723cs-Fix-compile-warnings" + "PREF033-8723cs-Port-to-5.15" + "PREF034-8723cs-Clear-wowlan_last_wake_reason-prior-to-suspen" + "PREF035-8723cs-Forward-port-to-5.17" + "PREF036-8723cs-Port-to-5.18" + "PREF037-8723cs-Fix-some-compilation-warnings" + "PREF038-8723cs-Adapt-to-API-changes-in-stable-5.19.2-and-6.0" + "PREF039-8723cs-Port-to-6.0" + "PREF040-8723cs-Port-to-6.1" + "PREF041-8723cs-Port-to-6.1-rc1" + "PREF042-8723cs-Forward-port-to-Linux-6.3" + "PREF043-8723cs-Add-support-for-set_cqm_rssi_config-to-help-s" + "PREF044-8723cs-Fix-the-RSSI-monitor-implementation" + "PREF045-8723cs-Fix-symbol-conflicts-with-rtw88-driver" + "PREF046-8723cs-Port-to-6.5" + "PREF047-8723cs-Port-to-linux-6.7" + "PREF048-8723cs-Port-to-Linux-6.8" + "PREF049-8723cs-Ignore-warnings" + "PREF050-8723cs-Port-to-v6.9" + "PREF051-8723cs-Fix-building-with-LLVM" + "PREF052-8723cs-Replace-invalid-elseif" + "PREF053-8723cs-Remove-unused-code-that-causes-warnings" + "PREF054-8723cs-Ensure-types-are-available-in-headers" + "PREF056-8723cs-Port-to-6.10" + "PREF055-cw1200-support-loading-cw1x60-FW" + "PREF057-cw1200-xr819-hacks" + "PREF058-cw1200-use-kmalloc-allocation-instead-of-stack" + "PREF059-net-wireless-cw1200-Add-support-for-BES2600" + "PREF060-cw1200-Improve-error-reporting-from-probe" + "PREF061-cw1200-Disable-automatic-module-loading-until-the-mo" + "PREF064-cw1200-Enable-FW-loader-debug-mode" + "PREF062-besdbg-Add-a-debug-driver-for-controlling-the-wifi-c" + "PREF065-mmc-Add-pwrseq_bes-driver-for-powering-up-BES2600-on" + "PREF063-net-wireless-brcmfmac-Add-support-for-detecting-AP62" + "PREF066-net-wireless-brcmfmac-Add-optional-32k-clock-enable-" + "PREF075-Implement-adaptivity-functions" + "PREF077-Implement-CFO-tracking" + "PREF067-media-ov5640-Experiment-Try-to-disable-denoising-sha" + "PREF068-media-ov5640-Sleep-after-poweroff-to-ensure-next-pow" + "PREF069-media-ov5640-Don-t-powerup-the-sensor-during-driver-" + "PREF070-media-ov5640-set-default-ae-target-lower" + "PREF071-media-ov5640-Improve-error-reporting" + "PREF072-media-ov5640-Implement-autofocus" + "PREF073-media-ov5640-Improve-firmware-load-time" + "PREF074-media-ov5640-Fix-focus-commands-blocking-until-compl" + "PREF076-media-ov5640-Add-read-only-property-for-vblank" + "PREF078-media-ov5640-use-pm_runtime_force_suspend-resume-for" + "PREF079-media-sun6i-csi-capture-Use-subdev-operation-to-acce" + "PREF080-media-sun6i-csi-subdev-Use-subdev-active-state-to-st" + "PREF081-media-sun6i-csi-merge-sun6i_csi_formats-and-sun6i_cs" + "PREF083-media-sun6i-csi-add-V4L2_CAP_IO_MC-capability" + "PREF085-media-sun6i-csi-implement-vidioc_enum_framesizes" + "PREF087-media-sun6i-csi-Add-multicamera-support-for-parallel" + "PREF082-Input-goodix-Add-config-debugfs-file" + "PREF084-Input-goodix-Add-option-to-power-off-the-controller-" + "PREF086-Input-goodix-Try-to-keep-regulator-enable-disable-ba" + "PREF088-input-touchscreen-goodix-Respect-IRQ-flags-from-DT-w" + "PREF089-iio-light-stk3310-Implement-vdd-supply-and-power-it-" + "PREF092-iio-light-stk3310-Add-support-for-I2C-regulator" + "PREF095-iio-stk3310-Fix-regulator-disable-enable-order" + "PREF090-Add-minimal-EBAZ4205-defconfig" + "PREF093-dt-bindings-Add-Zynq-clocks" + "PREF096-arm-xilinx-ebaz4205-Add-test-config-for-various-PL-p" + "PREF091-nfc-pn544-Add-support-for-VBAT-PVDD-regulators" + "PREF094-bluetooth-bcm-Restore-drive_rts_on_open-true-behavio" + "PREF097-mmc-add-delay-after-power-class-selection" + "PREF098-ARM-dts-sun8i-a83t-tbs-a711-Add-PN544-NFC-support" + "PREF099-ARM-dts-sun8i-a83t-tbs-a711-Add-powerup-down-support" + "PREF100-ARM-dts-sun8i-a83t-Add-cedrus-video-codec-support-to" + "PREF101-ARM-dts-suni-a83t-Add-i2s0-pins" + "PREF102-ARM-dts-sun8i-a83t-tbs-a711-Add-sound-support-via-AC" + "PREF104-ARM-dts-sun8i-a83t-tbs-a711-Add-regulators-to-the-ac" + "PREF106-ARM-dts-sun8i-a83t-tbs-a711-Add-camera-sensors-HM506" + "PREF108-ARM-dts-sun8i-a83t-tbs-a711-Add-flash-led-support" + "PREF103-dt-bindings-input-gpio-vibrator-Don-t-require-enable" + "PREF105-input-gpio-vibra-Allow-to-use-vcc-supply-alone-to-co" + "PREF107-ARM-dts-sun8i-a83t-tbs-a711-Add-support-for-the-vibr" + "PREF109-ARM-dts-sun8i-a83t-tbs-a711-Increase-voltage-on-the-" + "PREF118-dt-bindings-leds-Add-a-binding-for-AXP813-charger-le" + "PREF120-leds-axp20x-Support-charger-LED-on-AXP20x-like-PMICs" + "PREF122-ARM-dts-axp813-Add-charger-LED" + "PREF124-ARM-dts-sun8i-a83t-tbs-a711-Enable-charging-LED" + "PREF110-MAINTAINERS-Add-entry-for-Himax-HM5065" + "PREF111-dt-bindings-media-Add-bindings-for-Himax-HM5065-came" + "PREF112-hm5065-yaml-bindings-wip" + "PREF113-media-hm5065-Add-subdev-driver-for-Himax-HM5065-came" + "PREF114-media-i2c-gc2145-Move-upstream-driver-out-of-the-way" + "PREF115-media-gc2145-Galaxycore-camera-module-driver" + "PREF116-media-gc2145-Added-BGGR-bayer-mode" + "PREF117-media-gc2145-Disable-debug-output" + "PREF119-media-gc2145-Add-PIXEL_RATE-HBLANK-and-VBLANK-contro" + "PREF121-media-gc2145-implement-system-suspend" + "PREF123-media-gc2145-fix-white-balance-colors" + "PREF133-media-i2c-gc2145-Parse-and-register-properties" + "PREF125-mailbox-Allow-to-run-mailbox-while-timekeeping-is-su" + "PREF126-ARM-sunxi-Add-experimental-suspend-to-memory-impleme" + "PREF127-ARM-sunxi-sunxi_cpu0_hotplug_support_set-is-not-supp" + "PREF128-firmware-scpi-Add-support-for-sending-a-SCPI_CMD_SET" + "PREF129-ARM-sunxi-Use-SCPI-to-send-suspend-message-to-SCP-on" + "PREF130-gnss-ubx-Send-soft-powerdown-message-on-suspend" + "PREF131-clk-sunxi-ng-Export-CLK_DRAM-for-devfreq" + "PREF134-ARM-dts-sun8i-a83t-Add-MBUS-node" + "PREF132-clk-sunxi-ng-Set-maximum-P-and-M-factors-to-1-for-H3" + "PREF135-clk-sunxi-ng-Don-t-use-CPU-PLL-gating-and-CPUX-repar" + "PREF136-ARM-dts-sun8i-h3-Use-my-own-more-aggressive-OPPs-on-" + "PREF137-arm64-dts-sun50i-h5-Use-my-own-more-aggressive-OPPs-" + "PREF139-ARM-dts-sun8i-h3-orange-pi-pc-Increase-max-CPUX-volt" + "PREF141-ARM-dts-sun8i-a83t-Improve-CPU-OPP-tables-go-up-to-1" + "PREF143-cpufreq-sun50i-Show-detected-CPU-bin-for-easier-debu" + "PREF138-net-stmmac-sun8i-Use-devm_regulator_get-for-PHY-regu" + "PREF140-net-stmmac-sun8i-Rename-PHY-regulator-variable-to-re" + "PREF142-net-stmmac-sun8i-Add-support-for-enabling-a-regulato" + "PREF144-arm64-dts-allwinner-orange-pi-3-Enable-ethernet" + "PREF145-input-cyttsp4-De-obfuscate-platform-data-for-keys" + "PREF146-input-cyttsp4-Remove-useless-indirection-with-driver" + "PREF147-input-cyttsp4-Remove-unused-enable_vkeys" + "PREF148-input-cyttsp4-De-obfuscate-MT-signals-setup-platform" + "PREF149-input-cyttsp4-Clear-the-ids-buffer-in-a-saner-way" + "PREF150-input-cyttsp4-ENOSYS-error-is-ok-when-powering-up" + "PREF151-input-cyttsp4-Faster-recovery-from-failed-wakeup-HAC" + "PREF152-input-cyttsp4-Use-i2c-spi-names-directly-in-the-driv" + "PREF153-input-cyttsp4-Port-the-driver-to-use-device-properti" + "PREF154-input-cyttsp4-Restart-on-wakeup-wakeup-by-I2C-read-d" + "PREF155-input-cyttsp4-Fix-warnings" + "PREF156-input-cyttsp4-Make-the-driver-not-hog-the-system-s-w" + "PREF157-input-cyttsp4-Fix-probe-oops" + "PREF158-video-fbdev-eInk-display-driver-for-A13-based-Pocket" + "PREF159-regulator-Add-simple-driver-for-enabling-a-regulator" + "PREF160-regulator-tp65185x-Add-tp65185x-eInk-panel-regulator" + "PREF161-regulator-tp65185-Add-hwmon-device-for-reading-tempe" + "PREF162-iio-adc-sun4i-gpadc-iio-Allow-to-use-sun5i-a13-gpadc" + "PREF163-mtd-spi-nor-Add-vdd-regulator-support" + "PREF164-ARM-dts-sun5i-Add-soc-handle" + "PREF165-ARM-dts-sun5i-Add-PocketBook-Touch-Lux-3-display-ctp" + "PREF166-ARM-dts-sun5i-a13-pocketbook-touch-lux-3-Add-RTC-clo" + "PREF167-arm64-dts-sun50i-a64-pinephone-Add-front-back-camera" + "PREF168-arm64-dts-sun50i-a64-pinephone-Add-Type-C-support-fo" + "PREF169-arm64-dts-sun50i-a64-pinephone-Add-modem-power-manag" + "PREF170-arm64-dts-sun50i-a64-pinephone-Fix-BH-modem-manager-" + "PREF171-arm64-dts-sun50i-a64-pinephone-Add-detailed-OCV-to-c" + "PREF172-arm64-dts-sun50i-a64-pinephone-Shorten-post-power-on" + "PREF173-arm64-dts-sun50i-a64-pinephone-Add-mount-matrix-for-" + "PREF174-arm64-dts-sun50i-a64-pinephone-Add-support-for-Bluet" + "PREF175-arm64-dts-sun50i-a64-pinephone-Enable-internal-HMIC-" + "PREF176-arm64-dts-sun50i-a64-pinephone-Add-support-for-modem" + "PREF177-arm64-dts-sun50i-a64-pinephone-Bump-I2C-frequency-to" + "PREF178-arm64-dts-sun50i-a64-pinephone-Add-interrupt-pin-for" + "PREF179-arm64-dts-sun50i-a64-pinephone-Power-off-the-touch-c" + "PREF180-arm64-dts-sun50i-a64-pinephone-Don-t-make-lradc-keys" + "PREF181-arm64-dts-sun50i-a64-pinephone-Set-minimum-backlight" + "PREF182-arm64-dts-sun50i-a64-pinephone-Add-supply-for-i2c-bu" + "PREF183-arm64-dts-sun50i-a64-pinephone-Workaround-broken-HDM" + "PREF184-arm64-dts-sun50i-a64-pinephone-Add-AF8133J-to-PinePh" + "PREF185-arm64-dts-sun50i-a64-pinephone-Add-mount-matrix-for-" + "PREF186-arm64-dts-sun50i-a64-pinephone-Add-support-for-Pinep" + "PREF187-arm64-dts-sun50i-a64-pinephone-Enable-Pinephone-Keyb" + "PREF189-arm64-dts-sun50i-a64-pinephone-Add-support-for-Pinep" + "PREF191-arm64-dts-sun50i-a64-pinephone-Add-power-supply-to-s" + "PREF193-arm64-dts-sun50i-a64-pinephone-Add-reboot-mode-drive" + "PREF195-arm64-dts-sun50i-a64-pinephone-Use-newer-jack-detect" + "PREF197-arm64-dts-sun50i-Define-orientation-and-rotation-for" + "PREF199-arm64-dts-sun50i-Define-orientation-and-rotation-for" + "PREF201-arm64-dts-sun50-a64-pinephone-Define-jack-pins-in-DT" + "PREF188-dt-bindings-sound-Add-jack-type-property-to-sun8i-a3" + "PREF190-ASoC-sun8i-codec-Allow-the-jack-type-to-be-set-via-d" + "PREF192-ASoC-sun8i-codec-define-button-keycodes" + "PREF194-ASoC-sun8i-codec-Add-debug-output-for-jack-detection" + "PREF196-ASoC-sun8i-codec-Set-jack_type-from-DT-in-probe" + "PREF198-ASoC-simple-card-Allow-to-define-pins-for-aux-jack-d" + "PREF200-clk-sunxi-ng-a64-Increase-PLL_AUDIO-base-frequency" + "PREF211-dt-bindings-mfd-Add-codec-related-properties-to-AC10" + "PREF213-sound-soc-ac100-codec-Support-analog-part-of-X-Power" + "PREF215-sound-soc-sun8i-codec-Add-support-for-digital-part-o" + "PREF217-ASoC-ec25-New-codec-driver-for-the-EC25-modem" + "PREF202-ASOC-sun9i-hdmi-audio-Initial-implementation" + "PREF203-ARM-dts-sunxi-h3-h5-Add-hdmi-sound-card" + "PREF204-ARM-dts-sun8i-h3-Enable-hdmi-sound-card-on-boards-wi" + "PREF205-ARM-dts-sun8i-h2-plus-bananapi-m2-zero-Enable-HDMI-a" + "PREF206-ARM-dts-sun8i-a83t-Add-hdmi-sound-card" + "PREF207-ARM-dts-sun8i-a83t-Enable-hdmi-sound-card-on-boards-" + "PREF208-ARM-dts-sun8i-r40-Add-hdmi-sound-card" + "PREF209-ARM-dts-sun8i-r40-bananapi-m2-ultra-Enable-HDMI-audi" + "PREF210-ARM-dts-sun8i-v40-bananapi-m2-berry-Enable-HDMI-audi" + "PREF212-arm64-dts-allwinner-h6-Add-hdmi-sound-card" + "PREF214-arm64-dts-allwinner-h6-Enable-hdmi-sound-card-on-boa" + "PREF216-arm64-dts-allwinner-a64-Add-hdmi-sound-card" + "PREF221-arm64-dts-allwinner-a64-Enable-hdmi-sound-card-on-bo" + "PREF224-arm64-dts-allwinner-h5-Enable-hdmi-sound-card-on-boa" + "PREF227-Move-a-node-to-avoid-merge-conflict" + "PREF219-arm64-dts-sun50i-a64-Set-fifo-size-for-uarts" + "PREF222-ARM-dts-sun8i-a83t-Set-fifo-size-for-uarts" + "PREF225-Mark-some-slow-drivers-for-async-probe-with-PROBE_PR" + "PREF228-arm64-xor-Select-32regs-without-benchmark-to-speed-u" + "PREF218-clk-sunxi-ng-Mark-TWD-clocks-as-critical" + "PREF220-firmware-arm_scpi-Support-unidirectional-mailbox-cha" + "PREF223-ARM-dts-sunxi-a83t-Add-SCPI-protocol" + "PREF226-ARM-dts-sunxi-h3-h5-Add-SCPI-protocol" + "PREF233-ARM-dts-sun8i-a83t-tbs-a711-Give-Linux-more-privileg" + "PREF235-rtc-sun6i-Allow-RTC-wakeup-after-shutdown" + "PREF236-misc-modem-power-Power-manager-for-modems" + "PREF229-arm64-dts-rk3399-pinebook-pro-Fix-codec-frequency-af" + "PREF230-arm64-dts-rk3399-pinebook-pro-Disable-SD-card-power-" + "PREF231-arm64-dts-rk3399-pinebook-pro-Remove-redundant-pinct" + "PREF232-arm64-dts-rk3399-pinebook-pro-Improve-Type-C-support" + "PREF234-arm64-dts-rk3399-pinebook-pro-Add-SDR104-to-sdmmc" + "PREF237-arm64-dts-rk3399-pinebook-pro-Add-DMC-nodes" + "PREF247-arm64-dts-rk3399-rockpro64-Add-DMC-nodes" + "PREF249-arm64-dts-rk3399-rockpro64-Add-Type-C-OTG-Alt-DP-sup" + "PREF238-ARM-dts-sun8i-a83t-Add-missing-GPU-trip-point" + "PREF239-arm64-dts-sun50i-h5-Add-missing-GPU-trip-point" + "PREF240-arm64-dts-sun50i-a64-Add-missing-trip-points-for-GPU" + "PREF241-arm64-dts-allwinner-a64-Fix-LRADC-compatible" + "PREF242-ASoC-codec-es8316-DAC-Soft-Ramp-Rate-is-just-a-2-bit" + "PREF243-spi-rockchip-Fix-runtime-PM-and-other-issues" + "PREF244-spi-fixes" + "PREF245-media-cedrus-Fix-failure-to-clean-up-hardware-on-pro" + "PREF246-ASoC-rockchip-Fix-doubling-of-playback-speed-after-s" + "PREF248-usb-musb-sunxi-Avoid-enabling-host-side-code-on-SoCs" + "PREF250-arm64-dts-allwinner-Enforce-consistent-MMC-numbering" + "PREF251-ARM-dts-sunxi-Add-aliases-for-MMC" + "PREF252-drm-rockchip-Fix-panic-on-reboot-when-DRM-device-fai" + "PREF253-usb-gadget-Fix-dangling-pointer-in-netdev-private-da" + "PREF254-mmc-dw-mmc-rockchip-fix-sdmmc-after-soft-reboot" + "PREF255-Revert-drm-sun4i-lvds-Invert-the-LVDS-polarity" + "PREF256-of-property-fw_devlink-Support-allwinner-sram-links" + "PREF257-arm64-dts-rockchip-rk356x-Fix-PCIe-register-map-and-" + "PREF258-Fix-intptr_t-typedef" + "PREF259-mmc-sunxi-mmc-Remove-runtime-PM" + "PREF260-pci-Workaround-ITS-timeouts-on-poweroff-reboot-on-Or" + "PREF261-usb-serial-option-add-reset_resume-callback-for-WWAN" + "PREF262-media-rkisp1-Adapt-to-different-SoCs-having-differen" + "PREF263-media-ov5648-Fix-call-to-pm_runtime_set_suspended" + "PREF264-drm-rockchip-dw-mipi-dsi-rockchip-Fix-ISP1-PHY-initi" + "PREF265-bluetooth-h5-Don-t-re-initialize-rtl8723cs-on-resume" + "PREF266-drm-sun4i-Mark-one-of-the-UI-planes-as-a-cursor-one" + "PREF267-drm-sun4i-Implement-gamma-correction" + "PREF268-drm-panel-st7703-Fix-xbd599-timings-to-make-refresh-" + "PREF269-drm-sun4i-Support-taking-over-display-pipeline-state" + "PREF271-video-pwm_bl-Allow-to-change-lth_brightness-via-sysf" + "PREF273-clk-sunxi-ng-sun50i-a64-Switch-parent-of-MIPI-DSI-to" + "PREF275-drm-sun4i-tcon-Support-keeping-dclk-rate-upon-ancest" + "PREF270-phy-allwinner-sun4i-usb-Add-support-for-usb_role_swi" + "PREF272-regulator-axp20x-Add-support-for-vin-supply-for-driv" + "PREF274-regulator-axp20x-Turn-N_VBUSEN-to-input-on-x-powers-" + "PREF283-drm-bridge-dw-hdmi-Allow-to-accept-HPD-status-from-o" + "PREF285-drm-bridge-dw-hdmi-Report-HDMI-hotplug-events" + "PREF287-usb-typec-anx7688-Add-driver-for-ANX7688-USB-C-HDMI-" + "PREF289-usb-typec-anx7688-Port-to-Linux-6.9" + "PREF291-usb-typec-anx7688-Port-to-Linux-6.10" + "PREF276-dt-bindings-axp20x-adc-allow-to-use-TS-pin-as-GPADC" + "PREF277-iio-adc-axp20x_adc-allow-to-set-TS-pin-to-GPADC-mode" + "PREF278-power-axp20x_battery-Allow-to-set-target-voltage-to-" + "PREF279-power-supply-axp20x_battery-Add-support-for-reportin" + "PREF280-regulator-axp20x-Enable-over-temperature-protection-" + "PREF281-power-supply-axp20x_battery-Setup-thermal-regulation" + "PREF282-power-supply-axp20x_battery-Fix-charging-done-detect" + "PREF284-mfd-axp20x-Add-battery-IRQ-resources" + "PREF286-power-supply-axp20x_battery-Send-uevents-for-status-" + "PREF288-power-supply-axp20x_battery-Monitor-battery-health" + "PREF290-power-supply-axp20x-usb-power-Change-Vbus-hold-volta" + "PREF292-power-axp803-Add-interrupts-for-low-battery-power-co" + "PREF294-power-supply-axp20x-battery-Support-POWER_SUPPLY_PRO" + "PREF296-power-supply-axp20x-battery-Enable-poweron-by-RTC-al" + "PREF298-power-supply-axp20x-battery-Add-support-for-POWER_SU" + "PREF300-power-supply-Add-support-for-USB_BC_ENABLED-and-USB_" + "PREF302-power-supply-axp20x-usb-power-Add-missing-interrupts" + "PREF293-sunxi-Use-dev_err_probe-to-handle-EPROBE_DEFER-error" + "PREF295-thermal-sun8i-Be-loud-when-probe-fails" + "PREF297-i2c-mv64xxx-Don-t-make-a-fuss-when-pinctrl-recovery-" + "PREF299-iio-st_sensors-Don-t-report-error-when-the-device-is" + "PREF301-opp-core-Avoid-confusing-error-when-no-regulator-is-" + "PREF303-rtc-Print-which-error-caused-RTC-read-failure" + "PREF308-arm64-dts-allwinner-a64-pinetab-add-front-camera" + "PREF310-arm64-allwinner-dts-a64-enable-K101-IM2BYL02-panel-f" + "PREF312-arm64-dts-sun50i-a64-pinetab-Name-sound-card-PineTab" + "PREF314-arm64-dts-sun50i-a64-pinetab-Add-accelerometer" + "PREF316-arm64-dts-sun50i-a64-pinetab-enable-RTL8723CS-blueto" + "PREF304-usb-typec-fusb302-Slightly-increase-wait-time-for-BC" + "PREF305-usb-typec-fusb302-Set-the-current-before-enabling-pu" + "PREF306-usb-typec-fusb302-Extend-debugging-interface-with-dr" + "PREF307-usb-typec-fusb302-Retry-reading-of-CC-pins-status-if" + "PREF309-usb-typec-fusb302-More-useful-of-logging-status-on-i" + "PREF311-usb-typec-fusb302-Update-VBUS-state-even-if-VBUS-int" + "PREF313-usb-typec-fusb302-Add-OF-extcon-support" + "PREF315-usb-typec-fusb302-Fix-register-definitions" + "PREF317-usb-typec-fusb302-Clear-interrupts-before-we-start-t" + "PREF322-media-i2c-imx258-Add-i2c-supply" + "PREF324-media-i2c-imx258-Add-debug-register-access" + "PREF326-media-imx258-Add-reset-gpio" + "PREF462-media-imx258-Drop-interface-speed-to-1224-mbps" + "PREF318-power-rk818-Configure-rk808-clkout2-function" + "PREF319-power-supply-rk818-battery-Add-battery-driver-for-RK" + "PREF320-power-supply-rk818-battery-Use-a-more-propper-compat" + "PREF321-power-supply-rk818-charger-Implement-charger-driver-" + "PREF323-power-supply-rk818-charger-Change-charger-type-to-MA" + "PREF325-power-supply-rk818-battery-Report-charging-status-ba" + "PREF327-power-supply-rk818-battery-Drop-dependency-on-frameb" + "PREF329-power-supply-rk818-charger-Unify-rk818-charger-and-r" + "PREF331-power-supply-rk818-battery-Speed-up-battery-current-" + "PREF333-power-supply-rk818-charger-Delay-applying-input-curr" + "PREF335-power-supply-rk818-battery-Don-t-auto-poweroff-the-P" + "PREF337-power-supply-rk818-charger-Add-support-for-POWER_SUP" + "PREF339-power-supply-rk818-battery-Don-t-reset-dsoc-to-0-on-" + "PREF328-ASoC-codecs-rt5640-Fix-output-mixer-input-channel-li" + "PREF330-ASoC-codecs-rt5640-Fix-hpout-restore-when-lout-is-en" + "PREF332-ASoC-codecs-rt5640-Resolve-failure-to-set-DMIC-clock" + "PREF334-ASoC-codecs-rt5640-Add-input-mixer-input-volume-cont" + "PREF336-ASoC-codecs-rt5640-Allow-to-control-single-ended-dif" + "PREF338-ASoC-codecs-rt5640-Keep-the-codec-enabled-when-idle" + "PREF340-ASoC-codecs-rt5640-Add-support-for-power-supplies" + "PREF341-drm-rockchip-cdn-dp-Disable-CDN-DP-on-disconnect" + "PREF342-phy-phy-rockchip-inno-usb2-Decrease-delay-between-po" + "PREF343-phy-rockchip-inno-usb2-More-robust-charger-detection" + "PREF344-usb-dwc3-Track-the-power-state-of-usb3_generic_phy" + "PREF346-usb-dwc3-Add-support-for-snps-usb3-phy-reset-quirk" + "PREF348-usb-dwc3-Extend-reset-quirk-support-to-include-role-" + "PREF345-usb-typec-typec-extcon-Add-typec-extcon-bridge-drive" + "PREF347-usb-typec-typec-extcon-Enable-debugging-for-now" + "PREF349-usb-typec-typec-extcon-Allow-to-force-reset-on-each-" + "PREF350-Revert-usb-typec-tcpm-unregister-existing-source-cap" + "PREF351-usb-typec-altmodes-displayport-Respect-DP_CAP_RECEPT" + "PREF352-usb-typec-tcpm-Unregister-altmodes-before-registerin" + "PREF353-usb-typec-tcpm-Fix-PD-devices-capabilities-registrat" + "PREF355-usb-typec-tcpm-Improve-logs" + "PREF356-sdhci-arasan-Add-runtime-PM-support" + "PREF354-drm-rockchip-dw-mipi-dsi-Fix-hsclk-calculation-for-n" + "PREF358-drm-bridge-dw-mipi-dsi-Tracing" + "PREF360-drm-panel-hx8394-Add-mode-init-sequence-update-via-f" + "PREF362-drm-panel-hs8394-Instrument-the-panel-driver-s-callb" + "PREF364-drm-rockchip-Don-t-require-MIPI-DSI-device-when-it-s" + "PREF366-clk-rockchip-rk3399-Don-t-allow-to-reparent-dclk_vop" + "PREF368-Revert-drm-rockchip-Don-t-require-MIPI-DSI-device-wh" + "PREF370-rt5640-DMIC-debug" + "PREF357-mtd-spi-nor-gigadevice-add-support-for-gd25lq128e" + "PREF359-clk-rk3399-Export-SCLK_CIF_OUT_SRC-to-device-tree" + "PREF361-arm64-dts-rk3399-Disable-debug-nodes" + "PREF363-arm64-dts-rk3399-Add-reboot-mode-driver" + "PREF365-arm64-dts-rk3399-pinephone-pro-Add-internal-display-" + "PREF367-arm64-dts-rk3399-pinephone-pro-Add-BSP-battery-drive" + "PREF369-arm64-dts-rk3399-pinephone-pro-Add-5V-power-supply" + "PREF371-arm64-dts-rk3399-pinephone-pro-Add-sound-support" + "PREF372-arm64-dts-rk3399-pinephone-pro-Add-Type-C-port-suppo" + "PREF373-arm64-dts-rk3399-pinephone-pro-Add-camera-support" + "PREF374-arm64-dts-rk3399-pinephone-pro-Add-correct-camera-ro" + "PREF375-arm64-dts-rk3399-pinephone-pro-Add-camera-orientatio" + "PREF376-arm64-dts-rk3399-pinephone-pro-World-cam-doesn-t-hav" + "PREF377-arm64-dts-rk3399-pinephone-pro-Add-modem-support" + "PREF378-arm64-dts-rk3399-pinephone-pro-Change-modem-codec-sa" + "PREF379-arm64-dts-rk3399-pinephone-pro-Add-light-proximity-s" + "PREF380-arm64-dts-rk3399-pinephone-pro-Add-I2C-supply-to-stk" + "PREF381-arm64-dts-rk3399-pinephone-pro-Add-accelerometer-sen" + "PREF382-arm64-dts-rk3399-pinephone-pro-Add-magnetometer-sens" + "PREF383-arm64-dts-rk3399-pinephone-pro-Add-mount-matrix-for-" + "PREF384-arm64-dts-rk3399-pinephone-pro-Enable-POGO-pins-I2C" + "PREF385-arm64-dts-rk3399-pinephone-pro-Add-pinephone-keyboar" + "PREF386-arm64-dts-rk3399-pinephone-pro-Switch-LED-backlight-" + "PREF387-arm64-dts-rk3399-pinephone-pro-Fix-voltage-threshold" + "PREF388-arm64-dts-rk3399-pinephone-pro-Pre-configure-DMC" + "PREF389-arm64-dts-rk3399-pinephone-pro-Improve-SPI-access-sp" + "PREF390-arm64-dts-rk3399-pinephone-pro-Assign-power-supplies" + "PREF405-arm64-dts-rk3399-pinephone-pro-Add-wcam-link-freques" + "PREF391-power-supply-ip5xxx-Report-remaining-battery-capacit" + "PREF392-power-supply-ip5xxx-Modify-initial-configuration" + "PREF393-power-supply-ip5xxx-Add-boost-status-property" + "PREF394-power-supply-ip5xxx-Add-ip5xxx-usb-supply" + "PREF395-power-supply-ip5xxx-Add-support-for-POWER_SUPPLY_PRO" + "PREF396-power-supply-ip5xxx-Add-support-for-POWER_SUPPLY_PRO" + "PREF397-input-pinephone-keyboard-Allow-disabling-the-keyboar" + "PREF398-input-pinephone-keyboard-Allow-to-disable-Fn-layer-p" + "PREF399-input-pinephone-keyboard-Don-t-print-error-when-the-" + "PREF400-input-pinephone-keyboard-Wait-a-bit-after-enabling-v" + "PREF401-misc-ppkb-manager-Pinephone-Keyboard-power-manager" + "PREF402-misc-ppkb-manager-Remove-BLOCKED-flag" + "PREF403-misc-ppkb-manager-Disable-ppkb-manager-by-default-ca" + "PREF404-misc-ppkb-manager-Show-read-write-error-codes" + "PREF406-misc-ppkb-manager-Disable-debug-mode" + "PREF407-power-supply-rk817-charger-Fix-battery-capacity-sani" + "PREF409-power-supply-rk817-charger-Add-input-current-limit-s" + "PREF411-power-supply-rk817-charger-Take-input-current-limit-" + "PREF413-power-supply-rk817-charger-Propagate-proper-errors" + "PREF415-power-supply-rk817-charger-Add-support-for-runtime-c" + "PREF408-arm64-dts-rk3566-pientab2-Use-non-linear-brightness-" + "PREF410-arm64-dts-rk3566-pinetab2-Add-Type-C-controller-node" + "PREF412-arm64-dts-rk3566-pinetab2-Re-order-and-use-extcon-br" + "PREF414-usb-tcpci-Add-support-for-extcon-based-input-current" + "PREF416-arm64-dts-rk3566-pinetab2-Add-DT-nodes-for-besdbg-dr" + "PREF427-usb-typec-husb311-Add-HUSB311-TCPI-driver" + "PREF417-phy-rockchip-usbdp-Change-init-exit-callbacks-to-pow" + "PREF418-arm64-dts-rk3588-orangepi-5-plus-Add-USB-3.0-ports-s" + "PREF419-arm64-dts-rk3588-orangepi-5-plus-Add-dwc3-reset-quir" + "PREF420-arm64-dts-rk3588-orangepi-5-plus-add-rfkill-for-wlan" + "PREF421-arm64-dts-rk3588-quartzpro64-Add-QuartzPro64-USB-3.0" + "PREF422-arm64-dts-rk3588-quartzpro64-Add-AP6275P-WiFi-suppor" + "PREF423-arm64-dts-rk3588-quartzpro64-Add-dwc3-reset-quirk" + "PREF424-arm64-dts-rockchip-rk3588-orangepi-5-plus-Add-hdmi-o" + "PREF425-phy-phy-rockchip-samsung-hdptx-Explicitly-include-pm" + "PREF426-phy-phy-rockchip-samsung-hdptx-Enable-runtime-PM-at-" + "PREF428-phy-phy-rockchip-samsung-hdptx-Add-clock-provider-su" + "PREF429-phy-phy-rockchip-samsung-hdptx-Add-FRL-EARC-support" + "PREF430-drm-rockchip-vop2-Improve-display-modes-handling-on-" + "PREF431-arm64-dts-rockchip-Add-HDMI0-bridge-to-rk3588" + "PREF433-arm64-dts-rockchip-Enable-HDMI0-PHY-clk-provider-on-" + "PREF435-drm-bridge-synopsys-Add-DW-HDMI-QP-TX-Controller-dri" + "PREF437-drm-rockchip-Explicitly-include-bits-header" + "PREF439-drm-rockchip-Add-basic-RK3588-HDMI-output-support" + "PREF441-arm64-dts-rockchip-rk3588-orangepi-5-plus-Enable-GPU" + "PREF443-arm64-dts-rk3588-quartzpro64-Add-HDMI0-connector-sup" + "PREF432-clk-rockchip-Add-support-for-RV1106-RV1103" + "PREF434-pinctrl-rockchip-Add-support-for-RV1106-RV1103" + "PREF436-iio-adc-rockchip-saradc-Add-support-for-RV1106" + "PREF438-nvmem-rockchip-otp-Add-support-for-RV1106-SoC" + "PREF440-thermal-rockchip-Add-support-for-RV1106-SoC" + "PREF442-mtd-nand-spi-Add-support-for-W25N01KVZEIR" + "PREF444-soc-rockchip-Add-support-for-power-monitoring-driver" + "PREF445-phy-rockchip-inno-usb2-Add-support-for-RV1106-RV1103" + "PREF446-char-hw_random-Add-support-for-Rockchip-RNG" + "PREF447-rtc-rockchip-Add-support-for-RTC-present-in-RV1106-S" + "PREF448-net-phy-Add-Rockchip-RK630-PHY-driver" + "PREF449-net-ethernet-stmmac-Add-support-for-Rockchip-RV1106" + "PREF450-ARM-dts-rockchip-rv1103-Add-Rockchip-RV1103-SoC-supp" + "PREF452-ARM-dts-rockchip-Add-Rockchip-RV1106-SoC-support" + "PREF454-ARM-dts-rockchip-rv1103-Add-Luckfox-Pico-Mini-suppor" + "PREF456-ARM-dts-rockchip-Add-support-for-Luckfox-Pico-Pro-Ma" + "PREF451-Make-microbuttons-on-Orange-Pi-PC-and-PC-2-work-as-p" + "PREF453-Add-support-for-my-private-Sapomat-device" + "PREF455-ARM-dts-sun8i-h3-orange-pi-one-Enable-all-gpio-heade" + "PREF457-mtd-spi-nor-Add-Alliance-memory-support" + "PREF458-Add-README.md-with-information-and-u-boot-patches" + "PREF459-Defconfigs-for-all-my-devices" + "PREF460-Update-defconfigs" + "PREF461-Update-for-6.11" + "PREF463-Main-integration-branch-Read-commit-message-for-NEWS" + ]; +}) diff --git a/pkgs/additional/linux-postmarketos-allwinner/default.nix b/pkgs/additional/linux-postmarketos-allwinner/default.nix index 09761116f..4e78a2c07 100644 --- a/pkgs/additional/linux-postmarketos-allwinner/default.nix +++ b/pkgs/additional/linux-postmarketos-allwinner/default.nix @@ -98,7 +98,7 @@ in (linuxManualConfig { ] ++ [ { name = "pinephone-1.2b-add-af8133j-magnetometer"; - patch = linux-megous.passthruPatches.af8133j; + patch = linux-megous.patches.af8133j; } ]; }).overrideAttrs (base: { diff --git a/pkgs/additional/u-boot-pinephone/default.nix b/pkgs/additional/u-boot-pinephone/default.nix index 281883801..5081c1bd3 100644 --- a/pkgs/additional/u-boot-pinephone/default.nix +++ b/pkgs/additional/u-boot-pinephone/default.nix @@ -35,7 +35,7 @@ # # name = "sunxi: pinephone: force 1.2b magnetometer"; # # hash = "sha256-64pFPYDZPTkIjmqQiqrPTxbK5b7TlKTZ3R0Ufe2+w+s="; # # }) - # linux-megous.passthruPatches.af8133j + # linux-megous.patches.af8133j # ]; # postPatch = (base.postPatch or "") + '' # substituteInPlace configs/pinephone_defconfig \