Tim Crawford
dd555b9012
peci: Clear status on completion
...
The PECI-over-eSPI implementation, like the legacy implementation, must
acknowledge when the transaction is done by clearing the bit in the
register.
Fixes a hang during shutdown on oryp11 after unplugging a TBT display.
Signed-off-by: Tim Crawford <tcrawford@system76.com >
2023-06-21 12:44:12 -06:00
Tim Crawford
c7288a5a60
darp9,oryp11: Update keyboard
...
Signed-off-by: Tim Crawford <tcrawford@system76.com >
2023-06-16 14:49:54 -06:00
Tim Crawford
8e6d938f90
Add new keyboards
...
Replace micmute and darp9 layouts with new keyboards.
Signed-off-by: Tim Crawford <tcrawford@system76.com >
2023-06-16 14:40:43 -06:00
Yethal
347bbf0d9a
reuse make target for board list
2023-06-15 13:45:12 -06:00
Yethal
faede6264a
Generate matrix from directory
2023-06-15 13:45:12 -06:00
13r0ck
fe6faa21fc
Add reset command to ectool
2023-06-14 13:50:20 -06:00
Tim Crawford
485f390077
darp9: Set CC_EN high
...
Fixes using the non-TBT USB-C port.
Signed-off-by: Tim Crawford <tcrawford@system76.com >
2023-06-08 12:18:53 -06:00
Jeremy Soller
9b111bafc6
Fix K_MIC_MUTE keycode
2023-06-07 17:24:06 -06:00
Tim Crawford
c09960cbc6
Replace Call Mute with random key for micmute
...
Replace the Windows specific key with an arbitrary keycode to remap to
micmute on Linux.
Signed-off-by: Tim Crawford <tcrawford@system76.com >
2023-06-07 17:24:06 -06:00
Tim Crawford
2dd33ffec5
Add "Call Mute" combo key for darp9
...
The proprietary firmware for the darp9 adds the mic mute hotkey using
the new "Call Mute" hotkey from Windows 11 22H2, which is mapped to
`Super+Alt+K` [1]. Match the behavior in open firmware.
[1]: https://support.microsoft.com/en-us/windows/keyboard-shortcuts-in-windows-dcc61a57-8ff0-cffe-9796-cb9706c75eec#WindowsVersion=Windows_11
Signed-off-by: Tim Crawford <tcrawford@system76.com >
2023-06-07 17:24:06 -06:00
Tim Crawford
399415fdf6
Add custom keymap for darp9
...
Despite the darp9 supporting an RGB backlit keyboard, the keyboard
option was removed and it ships with a white-only LED backlit keyboard
instead. The keypad `/` still has the cycle symbol printed on it, so
replace the color cycling function with the keyboard brightness
function used by other white-only LED keyboards (the 14" TKL ones).
Signed-off-by: Tim Crawford <tcrawford@system76.com >
2023-06-07 17:24:06 -06:00
Tim Crawford
9ac513128a
kbled: Add a "step" function for BKL hotkey
...
Replace the get+set logic with a step function to change the backlight
level for `K_KBD_BKL`.
Keyboards using a DAC have a different set of levels due to the
brightness difference between the keyboards.
Signed-off-by: Tim Crawford <tcrawford@system76.com >
2023-06-07 17:24:06 -06:00
Tim Crawford
4c9d3197b8
kbled: Make white_dac work like others
...
Make `white_dac` functions work based on the DAC power level like the
other I2C and PWM mechanisms, instead of preset values from an array.
Signed-off-by: Tim Crawford <tcrawford@system76.com >
2023-06-07 17:24:06 -06:00
Tim Crawford
bfbbfe43e6
acpi: Update keyboard backlight functions
...
Existing FDAT values remain unchanged in their functionality.
New functionality is added to fill unused FDAT values.
FDAT values correspond to the following functionality:
- 0: Set brightness
- 1: Get brightness
- 2: Get backlight type (new)
- 3: Set color
- 4: Get color (new)
- 5: <unused>
- 6: Set brightness (duplicate)
Signed-off-by: Tim Crawford <tcrawford@system76.com >
2023-06-07 17:24:06 -06:00
Tim Crawford
598aef8c4a
kbled: Check if using white or RGB keyboard
...
Use RGBKB-DET# to determine the type of keyboard connected.
If a white keyboard is attached, always set the color to white, and
always return white for the color.
Signed-off-by: Tim Crawford <tcrawford@system76.com >
2023-06-07 17:24:06 -06:00
Tim Crawford
c71a58f7cf
Add RGBKB-DET# GPIO
...
This GPIO can be used to detect if the connected keyboard is RGB.
Signed-off-by: Tim Crawford <tcrawford@system76.com >
2023-06-07 17:24:06 -06:00
Tim Crawford
e60873a82c
darp9: Add Darter Pro 9
...
Signed-off-by: Tim Crawford <tcrawford@system76.com >
2023-06-07 17:24:06 -06:00
Jeremy Soller
002823908a
oryp9,oryp10: enable firmware security
2023-06-07 11:56:11 -06:00
Tim Crawford
498508f2f1
scripts: Disable showing signature when getting date
...
Fixes building when `log.showSignature` is enabled.
Signed-off-by: Tim Crawford <tcrawford@system76.com >
2023-06-04 13:48:35 -06:00
Jeremy Soller
f4ad9520a8
bonw15: invert USB power GPIO
2023-05-31 20:20:44 -06:00
Tim Crawford
82f091ef55
galp{6,7}: Reduce PL4 on AC to 65W
...
Reduce PL4 to the same value as other non-GPU units, even though the
galp7 has an H series CPU.
Signed-off-by: Tim Crawford <tcrawford@system76.com >
2023-05-25 10:27:42 -06:00
Tim Crawford
2d5cbadf71
galp6,galp7: Enable firmware security
...
Signed-off-by: Tim Crawford <tcrawford@system76.com >
2023-05-18 08:56:37 -06:00
Tim Crawford
43dfbb055b
Increase PL4 on battery to 45W for dGPU boards
...
Signed-off-by: Tim Crawford <tcrawford@system76.com >
2023-05-17 10:43:26 -06:00
Tim Crawford
99dfbeaec3
power: Set PL4 based on AC state on all boards
...
Limit PL4 based on AC state for all units, not just those with dGPUs.
This will allow setting standard values in coreboot.
Signed-off-by: Tim Crawford <tcrawford@system76.com >
2023-05-17 10:43:26 -06:00
Tim Crawford
b967e7c921
Format code
...
Signed-off-by: Tim Crawford <tcrawford@system76.com >
2023-05-15 10:25:44 -06:00
Jeremy Soller
f5c4eaba97
lemp12: hack to drain LDO_3V3 capacitors
2023-05-12 11:00:27 -06:00
Jeremy Soller
ca1996dd44
lemp12: Reset GPIO to match lemp11
2023-05-12 11:00:27 -06:00
Jeremy Soller
bc92291c26
lemp12: set PSYS current gain to 0.5uA/W
2023-05-12 11:00:27 -06:00
Jeremy Soller
e6b8eb4c42
charger/oz26786: support different PSYS current gains
2023-05-12 11:00:27 -06:00
Jeremy Soller
93c2784eb3
lemp12: adjust GPIOs some more
2023-05-12 11:00:27 -06:00
Jeremy Soller
f5c2548d04
lemp12: check and fix all GPIO config
2023-05-12 11:00:27 -06:00
Jeremy Soller
36e6059e90
lemp12: remove unused GPIOs
2023-05-12 11:00:27 -06:00
Jeremy Soller
3f4c65931a
lemp12: enable firmware security
2023-05-12 11:00:27 -06:00
Jeremy Soller
55632aab7a
lemp12: set PD_POWER_EN to output
2023-05-12 11:00:27 -06:00
Jeremy Soller
f80f40f006
Add lemp12
2023-05-12 11:00:27 -06:00
Tim Crawford
5d2f2fd5c0
galp7: Symlink to galp6
...
galp7 is a CPU refresh of galp6 and contains no EC changes.
Signed-off-by: Tim Crawford <tcrawford@system76.com >
2023-05-09 14:43:40 -06:00
Jeremy Soller
930f16b230
addw3, oryp11, serw13: Set VBATT_BOOST# to input
2023-04-03 13:06:16 -06:00
Jeremy Soller
d38ef1413f
Fix style
2023-04-03 13:06:16 -06:00
Jeremy Soller
916c9f8c5f
Fixup bonw15 gpios
2023-04-03 13:06:16 -06:00
Jeremy Soller
5d11cc14f8
bonw15: Change keyboard model to 15in_102
2023-04-03 13:06:16 -06:00
Jeremy Soller
a03ce8d1c3
Set bonw15 smart charger
2023-04-03 13:06:16 -06:00
Jeremy Soller
da9648dddb
Add bonw15
2023-04-03 13:06:16 -06:00
Tim Crawford
d0596100bd
serw13: Hook up USB-PD
...
Signed-off-by: Tim Crawford <tcrawford@system76.com >
2023-04-03 13:06:16 -06:00
Jeremy Soller
cd0321bfbb
Ensure smart charger uses new input current limits when detected
2023-04-03 13:06:16 -06:00
Jeremy Soller
658f24a8a8
Hack and slash until it is done
2023-04-03 13:06:16 -06:00
Jeremy Soller
7a5c111786
Set CPU power limit based on input current
2023-04-03 13:06:16 -06:00
Jeremy Soller
c5229fafab
Set input current based on USB-PD charger data
2023-04-03 13:06:16 -06:00
Jeremy Soller
a5ea9f4f05
Expose input current setting
2023-04-03 13:06:16 -06:00
Jeremy Soller
49aee51343
Fix gaze17-3050 input current
2023-04-03 13:06:16 -06:00
Jeremy Soller
edcfac1050
Make INPUT_CURRENT a macro taking arguments
2023-04-03 13:06:16 -06:00