arch: riscv: dts: thead: th1520-lpi4a: change dc-charger pin, add compatible field

This commit is contained in:
Lu Hui
2024-04-01 16:39:46 +08:00
committed by Han Gao/Revy/Rabenda
parent fa953236e1
commit 833d4accd7
3 changed files with 20 additions and 4 deletions

View File

@@ -8,6 +8,7 @@
/ { / {
model = "T-HEAD Light Lichee Pi 4A configuration for LicheeConsole4A"; model = "T-HEAD Light Lichee Pi 4A configuration for LicheeConsole4A";
compatible = "thead,light", "sipeed,th1520-laptop", "sipeed,console4a";
}; };
&dsi0_panel0 { &dsi0_panel0 {

View File

@@ -7,6 +7,7 @@
/ { / {
model = "T-HEAD Light Lichee Pi 4A configuration for 8GB DDR board use on laptop"; model = "T-HEAD Light Lichee Pi 4A configuration for 8GB DDR board use on laptop";
compatible = "thead,light", "sipeed,th1520-laptop";
reg_sys_vcc_5v: regulator-sys-vcc-5v-en { reg_sys_vcc_5v: regulator-sys-vcc-5v-en {
status = "okay"; status = "okay";
@@ -19,12 +20,15 @@
regulator-boot-on; regulator-boot-on;
regulator-always-on; regulator-always-on;
// suspend for lichee laptop is not ready so dont turn it off
/*
regulator-state-mem { regulator-state-mem {
regulator-off-in-suspend; regulator-off-in-suspend;
}; };
regulator-state-standby { regulator-state-standby {
regulator-off-in-suspend; regulator-off-in-suspend;
}; };
*/
}; };
reg_sys_vcc_3v3: regulator-sys-vcc-3v3-en { reg_sys_vcc_3v3: regulator-sys-vcc-3v3-en {
@@ -115,7 +119,7 @@
charger: dc-charger { charger: dc-charger {
compatible = "gpio-charger"; compatible = "gpio-charger";
charger-type = "mains"; charger-type = "mains";
gpios = <&ao_gpio_porta 2 GPIO_ACTIVE_HIGH>; gpios = <&gpio0_porta 16 GPIO_ACTIVE_HIGH>;
}; };
}; };
@@ -228,6 +232,7 @@
&uart3 { &uart3 {
clock-frequency = <100000000>; clock-frequency = <100000000>;
pinctrl-0 = <&pinctrl_uart3_tx_is_gpio>;
status = "okay"; status = "okay";
}; };

View File

@@ -296,10 +296,10 @@
debounce-interval = <1>; debounce-interval = <1>;
gpios = <&gpio2_porta 25 0x1>; gpios = <&gpio2_porta 25 0x1>;
}; };
key-sleep { key-wake {
label = "Sleep Wake Key"; label = "Wake Key";
wakeup-source; wakeup-source;
linux,code = <KEY_SLEEP>; linux,code = <KEY_WAKEUP>;
debounce-interval = <1>; debounce-interval = <1>;
gpios = <&ao_gpio_porta 2 0x1>; gpios = <&ao_gpio_porta 2 0x1>;
}; };
@@ -1105,6 +1105,16 @@
>; >;
}; };
pinctrl_uart3_tx_is_gpio: uart3txisgpiogrp {
thead,pins = <
FM_UART3_TXD 0x3 0x202
FM_UART3_RXD 0x1 0x202
>;
};
pinctrl_wifi_wake: wifi_grp { pinctrl_wifi_wake: wifi_grp {
thead,pins = < thead,pins = <
FM_GPIO0_27 0x0 0x202 FM_GPIO0_27 0x0 0x202