|
43 | 43 | }) |
44 | 44 | ]; |
45 | 45 |
|
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/; |
58 | 59 |
|
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> |
62 | 63 |
|
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 | + }; |
69 | 71 | }; |
70 | | - }; |
71 | 72 |
|
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 | + }; |
77 | 79 | }; |
78 | 80 | }; |
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 | + ]; |
96 | 108 |
|
97 | 109 | systemd.services.bluetooth-fydetab = lib.mkIf config.hardware.bluetooth.enable { |
98 | 110 | description = "FydeTab Duo Bluetooth fix"; |
|
0 commit comments