mirror of
https://github.com/DrHo1y/orangepi-build.git
synced 2026-10-09 03:46:38 +07:00
Update for Orange Pi Zero2w
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
# Handle AXP power button with systemd
|
||||
ACTION=="remove", GOTO="power_switch_end"
|
||||
|
||||
SUBSYSTEM=="input", KERNEL=="event*", ATTRS{name}=="axp20x-pek", TAG+="power-switch"
|
||||
SUBSYSTEM=="input", KERNEL=="event*", ENV{ID_PATH}=="platform-soc@3000000", TAG+="power-switch"
|
||||
SUBSYSTEM=="input", KERNEL=="event*", ENV{ID_PATH}=="platform-soc@3000000", ENV{ID_INPUT}="1"
|
||||
SUBSYSTEM=="input", KERNEL=="event*", ENV{ID_PATH}=="platform-soc@3000000", ENV{ID_INPUT_KEY}="1"
|
||||
SUBSYSTEM=="input", KERNEL=="event*", ATTRS{name}=="axp[12][890]-supplyer", TAG+="power-switch"
|
||||
|
||||
LABEL="power_switch_end"
|
||||
|
||||
@@ -97,7 +97,7 @@ prepare_board() {
|
||||
rockpro64|renegade-elite|pinebook-pro|station-p1)
|
||||
BOARDFAMILY=rk3399
|
||||
;;
|
||||
orangepi5|orangepi5b|orangepi5plus|orangepitab|orangepi900)
|
||||
orangepi5|orangepicm5|orangepi5b|orangepi5plus|orangepitab|orangepi900)
|
||||
[[ $BOARD =~ orangepi5|orangepi5b ]] && echo host > /sys/kernel/debug/usb/fc000000.usb/mode
|
||||
|
||||
if [[ $BOARD =~ orangepi900 ]]; then
|
||||
@@ -187,7 +187,12 @@ prepare_board() {
|
||||
|
||||
if [[ $BOARD == orangepizero2w ]]; then
|
||||
|
||||
interface_100m="eth0"
|
||||
if [[ ${DISTRIBUTION_CODENAME} == "bookworm" ]]; then
|
||||
interface_100m="end0"
|
||||
else
|
||||
interface_100m="eth0"
|
||||
fi
|
||||
|
||||
echo netdev > /sys/class/leds/100m_act/trigger
|
||||
echo "${interface_100m}" > /sys/class/leds/100m_act/device_name
|
||||
echo 1 > /sys/class/leds/100m_act/tx
|
||||
|
||||
15
external/packages/bsp/h618/sun50i-h618-lradc-keys-current.dts
vendored
Normal file
15
external/packages/bsp/h618/sun50i-h618-lradc-keys-current.dts
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
fragment@0 {
|
||||
target = <&keyboard>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
|
||||
key0 = <600 2>;
|
||||
key1 = <800 28>;
|
||||
};
|
||||
};
|
||||
};
|
||||
22
external/packages/bsp/h618/sun50i-h618-lradc-keys-next.dts
vendored
Normal file
22
external/packages/bsp/h618/sun50i-h618-lradc-keys-next.dts
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
fragment@0 {
|
||||
target = <&r_lradc>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
|
||||
button-500 {
|
||||
label = "KEY_1";
|
||||
linux,code = <2>;
|
||||
};
|
||||
|
||||
button-800 {
|
||||
label = "KEY_ENTER";
|
||||
linux,code = <28>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user