~mil/framebufferphone-devel

config: add device paths for the Librem 5 v2 PROPOSED

Clayton Craft: 1
 config: add device paths for the Librem 5

 1 files changed, 18 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~mil/framebufferphone-devel/patches/28567/mbox | git am -3
Learn more about email & git

[PATCH v2] config: add device paths for the Librem 5 Export this patch

---
 src/config.zig | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
diff --git a/src/config.zig b/src/config.zig
index 1eb5f4f..b372150 100644
--- a/src/config.zig
+++ b/src/config.zig
@@ -128,32 +128,50 @@ pub const status_height = 20;
pub const files_status = [_][]const u8{
    "/sys/class/power_supply/axp20x-battery/capacity",
    "/sys/class/power_supply/BAT0/capacity",

    // Librem 5
    "/sys/class/power_supply/max170xx_battery/capacity",
};

pub const files_led_red = [_][]const u8{
    "/sys/class/leds/red:indicator/brightness",
    "/sys/class/leds/tpacpi::thinklight/brightness",

    // Librem 5
    "/sys/class/leds/red:status/brightness",
};

pub const files_led_green = [_][]const u8{
    "/sys/class/leds/green:indicator/brightness",
    "/sys/class/leds/tpacpi::thinklight/power",

    // Librem 5
    "/sys/class/leds/green:status/brightness",
};

pub const files_led_blue = [_][]const u8{
    "/sys/class/leds/blue:indicator/brightness",
    "/sys/class/leds/input0::capslock/brightness",

    // Librem 5
    "/sys/class/leds/blue:status/brightness",
};

pub const folders_backlight = [_][]const u8{
    "/sys/class/backlight/backlight",
    "/sys/class/backlight/nv_backlight",

    // Librem 5
    "/sys/class/backlight/backlight-dsi",
};

pub const files_wakeupsources_enable = [_][]const u8{
    // Power button
    "/sys/devices/platform/soc/1f03400.rsb/sunxi-rsb-3a3/axp221-pek/power/wakeup",

    // Librem 5 Power button
    "/sys/bus/platform/devices/30370000.snvs:snvs-powerkey",

    // Modem ring GPIO
    "/sys/devices/platform/gpio-keys/power/wakeup",
};
-- 
2.34.1