From 3023004e9903bc2f726da7c4a6724cf55f45bfff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Christ?= Date: Sun, 26 Mar 2023 20:11:16 +0200 Subject: [PATCH] raspberry-pi/4: Fix comments and indentation. --- raspberry-pi/4/touch-ft5406.nix | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/raspberry-pi/4/touch-ft5406.nix b/raspberry-pi/4/touch-ft5406.nix index 12bb768..5cc0a70 100644 --- a/raspberry-pi/4/touch-ft5406.nix +++ b/raspberry-pi/4/touch-ft5406.nix @@ -20,15 +20,8 @@ in }; config = lib.mkIf cfg.enable { - # Configure for modesetting in the device tree hardware.deviceTree = { overlays = [ - # this *should* be equivalent to (which doesn't work): - # https://github.com/raspberrypi/linux/blob/rpi-5.10.y/arch/arm/boot/dts/overlays/dwc2-overlay.dts - # but actually it's obtained using - # dtc -I dtb -O dts ${config.hardware.deviceTree.kernelPackage}/dtbs/overlays/dwc2.dtbo - # (changes: modified top-level "compatible" field) - # which is slightly different and works { name = "rpi-ft5406-overlay"; dtsText = '' @@ -55,7 +48,7 @@ in touchscreen-inverted-x = <&ts>,"touchscreen-inverted-x?"; touchscreen-inverted-y = <&ts>,"touchscreen-inverted-y?"; touchscreen-swapped-x-y = <&ts>,"touchscreen-swapped-x-y?"; - }; + }; }; ''; }