Skip to content

Commit 11b2a10

Browse files
authored
Merge pull request #1605 from RossComputerGuy/fix/fyde
fydetab/duo: fix hardware.firmware being applied
2 parents af3dd1c + 7e40faf commit 11b2a10

File tree

4 files changed

+60
-45
lines changed

4 files changed

+60
-45
lines changed

fydetab/duo/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ The Fydetab Duo is an open source and hackable tablet by FydeOS.
55
## Features
66

77
- Display: **works**
8+
- X11: **untested**
9+
- Wayland: **not working** (niri, sway, COSMIC)
810
- GPU driver: **not working**
911
- WiFi: **working**
1012
- Cellular: **untested**

fydetab/duo/config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6540,7 +6540,7 @@ CONFIG_HID_WIIMOTE=m
65406540
# CONFIG_HID_XINMO is not set
65416541
# CONFIG_HID_ZEROPLUS is not set
65426542
# CONFIG_HID_ZYDACRON is not set
6543-
# CONFIG_HID_SENSOR_HUB is not set
6543+
CONFIG_HID_SENSOR_HUB=m
65446544
# CONFIG_HID_ALPS is not set
65456545
# CONFIG_HID_MCP2221 is not set
65466546
# end of Special HID drivers

fydetab/duo/default.nix

Lines changed: 56 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -43,56 +43,68 @@ in
4343
})
4444
];
4545

46-
hardware = {
47-
deviceTree = lib.mkMerge [
48-
{
49-
name = "rockchip/rk3588s-fydetab-duo.dtb";
50-
}
51-
(lib.mkIf config.hardware.fydetab.duo.enablePanthor {
52-
overlays = [
53-
{
54-
name = "fydetab-panthor-gpu";
55-
dtsText = ''
56-
/dts-v1/;
57-
/plugin/;
46+
hardware = lib.mkMerge [
47+
{
48+
deviceTree = lib.mkMerge [
49+
{
50+
name = "rockchip/rk3588s-fydetab-duo.dtb";
51+
}
52+
(lib.mkIf config.hardware.fydetab.duo.enablePanthor {
53+
overlays = [
54+
{
55+
name = "fydetab-panthor-gpu";
56+
dtsText = ''
57+
/dts-v1/;
58+
/plugin/;
5859
59-
#include <dt-bindings/clock/rk3588-cru.h>
60-
#include <dt-bindings/interrupt-controller/arm-gic.h>
61-
#include <dt-bindings/power/rk3588-power.h>
60+
#include <dt-bindings/clock/rk3588-cru.h>
61+
#include <dt-bindings/interrupt-controller/arm-gic.h>
62+
#include <dt-bindings/power/rk3588-power.h>
6263
63-
/ {
64-
compatible = "rockchip,rk3588s-tablet-12c-linux";
65-
fragment@0 {
66-
target = <&gpu>;
67-
__overlay__ {
68-
status = "disabled";
64+
/ {
65+
compatible = "rockchip,rk3588s-tablet-12c-linux";
66+
fragment@0 {
67+
target = <&gpu>;
68+
__overlay__ {
69+
status = "disabled";
70+
};
6971
};
70-
};
7172
72-
fragment@1 {
73-
target = <&gpu_panthor>;
74-
__overlay__ {
75-
status = "okay";
76-
mali-supply = <&vdd_gpu_s0>;
73+
fragment@1 {
74+
target = <&gpu_panthor>;
75+
__overlay__ {
76+
status = "okay";
77+
mali-supply = <&vdd_gpu_s0>;
78+
};
7779
};
7880
};
79-
};
80-
'';
81-
}
82-
];
83-
})
84-
];
85-
rockchip = {
86-
rk3588.enable = true;
87-
platformFirmware = pkgs.callPackage ./u-boot.nix { };
88-
};
89-
firmware = lib.mkMerge [
90-
# Only iwd is supported by the interface
91-
(lib.mkIf config.networking.wireless.iwd.enable ap6275pFirmware)
92-
(lib.mkIf config.hardware.graphics.enable (pkgs.callPackage ./mali-g610.nix { }))
93-
(lib.mkIf config.hardware.sensor.iio.enable (pkgs.callPackage ./himax.nix { }))
94-
];
95-
};
81+
'';
82+
}
83+
];
84+
})
85+
];
86+
rockchip = {
87+
rk3588.enable = true;
88+
platformFirmware = pkgs.callPackage ./u-boot.nix { };
89+
};
90+
}
91+
(lib.mkIf config.networking.wireless.iwd.enable {
92+
firmware = [
93+
# Only iwd is supported by the interface
94+
ap6275pFirmware
95+
];
96+
})
97+
(lib.mkIf config.hardware.graphics.enable {
98+
firmware = [
99+
(pkgs.callPackage ./mali-g610.nix { })
100+
];
101+
})
102+
(lib.mkIf config.hardware.sensor.iio.enable {
103+
firmware = [
104+
(pkgs.callPackage ./himax.nix { })
105+
];
106+
})
107+
];
96108

97109
systemd.services.bluetooth-fydetab = lib.mkIf config.hardware.bluetooth.enable {
98110
description = "FydeTab Duo Bluetooth fix";

fydetab/duo/himax.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ stdenv.mkDerivation (_finalAttrs: {
99

1010
src = fetchurl {
1111
url = "https://github.com/Linux-for-Fydetab-Duo/pkgbuilds/raw/f4c012bd42d87f677370f987f703982d53cd233d/fydetabduo-post-install/Himax_firmware.bin";
12+
hash = "sha256-z0p/zXcNTBdhKCV6GmM2C8C02lu4Wkb2HP+Ir/nQJTc=";
1213
};
1314

1415
compressFirmware = false;

0 commit comments

Comments
 (0)