597: microsoft-surface: upgrade kernel 6.1.6 to 6.1.18 r=Mic92 a=jokogr



599: fix: add missing touch-ft5406 export to raspberry-pi config r=Mic92 a=louib



Co-authored-by: Ioannis Koutras <ioannis.koutras@gmail.com>
Co-authored-by: louib <code@louib.net>
This commit is contained in:
bors[bot] 2023-03-29 06:12:10 +00:00 committed by GitHub
commit a6aa8174fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 44 additions and 22 deletions

View file

@ -7,7 +7,7 @@ in {
imports = [
./linux-5.19.17
./linux-6.0.17
./linux-6.1.6
./linux-6.1.18
];
options.microsoft-surface.kernelVersion = mkOption {

View file

@ -8,7 +8,7 @@ let
cfg = config.microsoft-surface;
version = "6.1.6";
version = "6.1.18";
extraMeta.branch = "6.1";
patchDir = repos.linux-surface + "/patches/${extraMeta.branch}";
kernelPatches = pkgs.callPackage ./patches.nix {
@ -20,17 +20,17 @@ let
inherit version extraMeta kernelPatches;
src = fetchurl {
url = "mirror://kernel/linux/kernel/v6.x/linux-${version}.tar.xz";
sha256 = "sha256-Pk2OVh2lcDogWujXsr7WxcZPxCme68v9IEgeY7V9XuM=";
sha256 = "sha256-hCrBXv8Ob7DBUP34P09qr2tMEjnc+MFOIidiDsCuFB4=";
};
};
in {
options.microsoft-surface.kernelVersion = mkOption {
type = types.enum [ "6.1.6" ];
type = types.enum [ "6.1.18" ];
};
config = mkIf (cfg.kernelVersion == "6.1.6") {
config = mkIf (cfg.kernelVersion == "6.1.18") {
boot = {
inherit kernelPackages;
};

View file

@ -36,6 +36,11 @@
#
SURFACE_HOTPLUG = module;
#
# Intel Touch Host Controller
#
HID_ITHC = module;
#
# IPTS touchscreen
#
@ -94,31 +99,47 @@
patch = patchDir + "/0004-ipts.patch";
}
{
name = "ms-surface/0005-surface-sam";
patch = patchDir + "/0005-surface-sam.patch";
name = "ms-surface/0005-ithc";
patch = patchDir + "/0005-ithc.patch";
}
{
name = "ms-surface/0006-surface-sam-over-hid";
patch = patchDir + "/0006-surface-sam-over-hid.patch";
name = "ms-surface/0006-surface-sam";
patch = patchDir + "/0006-surface-sam.patch";
}
{
name = "ms-surface/0007-surface-button";
patch = patchDir + "/0007-surface-button.patch";
name = "ms-surface/0007-surface-sam-over-hid";
patch = patchDir + "/0007-surface-sam-over-hid.patch";
}
{
name = "ms-surface/0008-surface-typecover";
patch = patchDir + "/0008-surface-typecover.patch";
name = "ms-surface/0008-surface-button";
patch = patchDir + "/0008-surface-button.patch";
}
{
name = "ms-surface/0009-cameras";
patch = patchDir + "/0009-cameras.patch";
name = "ms-surface/0009-surface-typecover";
patch = patchDir + "/0009-surface-typecover.patch";
}
{
name = "ms-surface/0010-amd-gpio";
patch = patchDir + "/0010-amd-gpio.patch";
name = "ms-surface/0010-surface-shutdown";
patch = patchDir + "/0010-surface-shutdown.patch";
}
{
name = "ms-surface/0011-rtc";
patch = patchDir + "/0011-rtc.patch";
name = "ms-surface/0011-surface-gpe";
patch = patchDir + "/0011-surface-gpe.patch";
}
{
name = "ms-surface/0012-cameras";
patch = patchDir + "/0012-cameras.patch";
}
{
name = "ms-surface/0013-amd-gpio";
patch = patchDir + "/0013-amd-gpio.patch";
}
{
name = "ms-surface/0014-rtc";
patch = patchDir + "/0014-rtc.patch";
}
{
name = "ms-surface/0015-intel-thread-director";
patch = patchDir + "/0015-intel-thread-director.patch";
}
]

View file

@ -4,8 +4,8 @@
linux-surface = fetchFromGitHub {
owner = "linux-surface";
repo = "linux-surface";
rev = "91240ac43dfdfb3e68bbc604def84685a218fab9";
sha256 = "sha256-Jf7tthFWj67Esjx+/ZwG7BYlN7zWS26e1TbsznNxE9Q=";
rev = "efe7ddadd4aad3d1a6531334fe086931ec8640a1";
sha256 = "sha256-WgJHLY4vU4lsZ6M0hOng8TMVRALxQeSwQM4QX6DzrbI=";
};
# This is the owner and repo for the pre-patched kernel from the "linux-surface" project:

View file

@ -17,7 +17,7 @@ in {
../../../common/cpu/intel/kaby-lake
];
microsoft-surface.kernelVersion = "6.1.6";
microsoft-surface.kernelVersion = "6.1.18";
boot.kernelParams = [
"i915.enable_rc6=1"

View file

@ -11,6 +11,7 @@
./poe-hat.nix
./poe-plus-hat.nix
./tc358743.nix
./touch-ft5406.nix
./pwm0.nix
./pkgs-overlays.nix
];