sync: huiwei: e94a4cf98b93de7f711637033a43f0e2f5f3ac7a

merge into c2a6429c9b9d3fe12738317f410fb1b5cb96cb3b
This commit is contained in:
lin_jiayong
2024-01-27 18:55:31 +08:00
committed by Han Gao
parent a1feea7628
commit 698e02e86a
745 changed files with 916719 additions and 96 deletions

View File

@@ -1,33 +1,164 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (C) 2022-2023 Alibaba Group Holding Limited.
* Copyright (C) 2022 Alibaba Group Holding Limited.
*/
#include "th1520-huiwei.dtsi"
#include "th1520-lpi4a.dtsi"
/ {
model = "T-HEAD Light Lichee Pi 4A configuration for 8GB DDR board";
compatible = "thead,light-val", "thead,light-lpi4a", "thead,light";
memory@0 {
device_type = "memory";
reg = <0x0 0x00000000 0x2 0x00000000>;
};
vcc1v8_lontium: vcc1v8-lontium {
compatible = "regulator-fixed";
enable-active-high;
gpio = <&gpio3_porta 17 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&vcc1v8_lontium_pwren>;
regulator-name = "vcc1v8_lontium_pwren";
regulator-boot-on;
regulator-always-on;
};
vcc3v3_edp: vcc3v3-edp {
compatible = "regulator-fixed";
enable-active-high;
gpio = <&gpio2_porta 18 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&vcc3v3_edp_pwren>;
regulator-name = "vcc3v3_edp_pwren";
regulator-boot-on;
regulator-always-on;
};
};
&cmamem {
alloc-ranges = <0x1 0xe4000000 0 0x14000000>; // [0x1E400_0000 ~ 0x1F800_0000]
};
&pwm {
status = "okay";
};
&qspi0 {
status = "okay";
};
&qspi1 {
status = "okay";
};
&i2c3 {
touch@14 {
touchscreen-size-x = <800>;
touchscreen-size-y = <1200>;
clock-frequency = <400000>;
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c3>;
lt8911exb@29 {
status = "okay";
compatible = "lontium,lt8911exb";
reg = <0x29>;
lt8911exb,backlight-gpio = <&gpio2_porta 20 GPIO_ACTIVE_HIGH>;
lt8911exb,irq-gpio = <&gpio3_porta 16 GPIO_ACTIVE_LOW>;
lt8911exb,reset-gpio = <&gpio3_porta 15 GPIO_ACTIVE_LOW>;
lt8911exb,rst-delay-ms = <100>;
lt8911exb,edp-lane-cnt = <2>;
lt8911exb,mipi-lane-cnt = <4>;
lt8911exb,edp-depth = <8>; /* 6 or 8 */
pinctrl-names = "default";
pinctrl-0 = <&lt8911exb_gpios>;
};
};
&dpu_enc0 {
status = "okay";
ports {
/* output */
port@1 {
reg = <1>;
enc0_out: endpoint {
remote-endpoint = <&dsi0_in>;
};
};
};
};
&dpu_enc1 {
ports {
/delete-node/ port@0;
};
};
&dpu {
status = "okay";
};
&dsi0 {
status = "okay";
};
&dpu_enc0 {
status = "okay";
};
&dhost_0 {
panel0@0 {
compatible = "chongzhou,cz101b4001", "jadard,jd9365da-h3";
reg = <0>;
backlight = <&lcd0_backlight>;
reset-gpio = <&gpio2_porta 22 GPIO_ACTIVE_LOW>; /* active low */
hsvcc-supply = <&vcc1v8_lontium>;
vspn3v3-supply = <&vcc3v3_edp>;
pinctrl-names = "default";
pinctrl-0 = <&dsi_reset_gpio>;
port {
panel0_in: endpoint {
remote-endpoint = <&dsi0_out>;
};
};
};
};
&padctrl0_apsys { /* right-pinctrl */
light-evb-padctrl0 {
/*
* Pin Configuration Node:
* Format: <pin_id mux_node config>
*/
pinctrl_i2c3: i2c3grp {
thead,pins = <
FM_I2C3_SCL LIGHT_PIN_FUNC_0 0x204
FM_I2C3_SDA LIGHT_PIN_FUNC_0 0x204
>;
};
lt8911exb_gpios: lt8911exb-gpios {
thead,pins = <
FM_GPIO2_20 LIGHT_PIN_FUNC_0 0x208
FM_GMAC0_RXD1 LIGHT_PIN_FUNC_3 0x0
FM_GMAC0_RXD0 LIGHT_PIN_FUNC_3 0x208
>;
};
vcc1v8_lontium_pwren: vcc1v8-lontium-pwren {
thead,pins = <
FM_GMAC0_RXD2 LIGHT_PIN_FUNC_3 0x208
>;
};
vcc3v3_edp_pwren: vcc3v3-edp-pwren {
thead,pins = <
FM_GPIO2_18 LIGHT_PIN_FUNC_0 0x208
>;
};
dsi_reset_gpio: dsi-reset-gpio {
thead,pins = <
FM_GPIO2_22 LIGHT_PIN_FUNC_0 0x0
>;
};
};
};

View File

@@ -29,14 +29,14 @@
sound-dai = <&es7210_audio_codec>;
};
};
simple-audio-card,dai-link@2 { /* I2S - AUDIO SYS CODEC 8156*/
simple-audio-card,dai-link@2 { /* I2S - AUDIO SYS CODEC 8388*/
reg = <2>;
format = "i2s";
cpu {
sound-dai = <&i2s1 0>;
};
codec {
sound-dai = <&es8156_audio_codec>;
sound-dai = <&es8388_audio_codec>;
};
};
};

View File

@@ -8,7 +8,10 @@
#include "th1520.dtsi"
#include <dt-bindings/input/linux-event-codes.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/usb/pd.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include "th1520-vi-devices.dtsi"
/ {
model = "T-HEAD Light Lichee Pi 4A board";
compatible = "thead,light-val", "thead,light-lpi4a", "thead,light";
@@ -23,6 +26,52 @@
stdout-path = "serial0:115200n8";
};
cam_pwren: cam-pwren {
compatible = "regulator-fixed";
regulator-name = "cam_pwren";
regulator-boot-on;
enable-active-high;
regulator-always-on;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&gpio2_porta 23 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&camera_pwr>;
};
rk_headset: rk-headset {
status = "okay";
compatible = "rockchip_headset";
headset_gpio = <&ao_gpio4_porta 0 GPIO_ACTIVE_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_audiopa0>;
// io-channels = <&adc 1>;
};
hall_sensor: hall-mh248 {
compatible = "hall-mh248";
pinctrl-names = "default";
pinctrl-0 = <&mh248_irq_gpio>;
irq-gpio = <&ao_gpio_porta 2 IRQ_TYPE_EDGE_BOTH>;
hall-active = <1>;
status = "okay";
};
battery: battery {
compatible = "simple-battery";
charge-full-design-microamp-hours = <4500000>;
};
usb_en: usb-en{
compatible = "usb_en";
host-en-gpio = <&gpio0_porta 27 GPIO_ACTIVE_HIGH>;
hub-en-gpio = <&gpio3_porta 18 GPIO_ACTIVE_HIGH>;
usb_sw-gpio= <&gpio1_porta 11 GPIO_ACTIVE_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&usb_hub_en &usb_host_en &usb_sw>;
status = "disabled";
};
leds {
compatible = "gpio-leds";
status = "disabled";
@@ -261,8 +310,58 @@
regulator-name = "regulator-hub-vcc5v-en";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
gpio = <&pcal6408ahk_d 3 1>;
gpio = <&gpio3_porta 18 GPIO_ACTIVE_HIGH>;
enable-active-high;
regulator-always-on;
};
ext_vcc5v: ext5v0-en {
compatible = "regulator-fixed";
regulator-name = "ext5v-en";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
gpio = <&gpio1_porta 2 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&ext_vcc5v_en>;
enable-active-high;
regulator-boot-on;
regulator-always-on;
};
hdmi_en_vcc5v: hdmi-en5v0-en {
compatible = "regulator-fixed";
regulator-name = "hdmi-en5v-en";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
gpio = <&gpio3_porta 14 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&hdmi_en>;
enable-active-high;
regulator-boot-on;
regulator-always-on;
};
fp_pwern_l: fp-pwern-l {
compatible = "regulator-fixed";
regulator-name = "fp-pwern-l";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&ao_gpio_porta 15 GPIO_ACTIVE_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_audiopa26>;
// enable-active-high;
regulator-always-on;
};
WCN_PW_EN: WCN-PW-EN {
compatible = "regulator-fixed";
regulator-name = "wcn-pw-en";
gpio = <&gpio0_porta 28 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_wifi_wake>;
enable-active-high;
regulator-always-on;
regulator-boot-on;
};
wcn_wifi: wireless-wlan {
@@ -270,18 +369,17 @@
clock-names = "clk_wifi";
ref-clock-frequency = <24000000>;
keep_wifi_power_on;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_wifi_wake>;
wifi_chip_type = "rtl8723ds";
// WIFI,poweren_gpio = <&pcal6408ahk_c 4 0>;
// pinctrl-names = "default";
// pinctrl-0 = <&pinctrl_wifi_wake>;
wifi_chip_type = "rtl8822cs";
// WIFI,poweren_gpio = <&gpio0_porta 28 GPIO_ACTIVE_HIGH>;
status = "okay";
};
wcn_bt: wireless-bluetooth {
compatible = "bluetooth-platdata";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_bt_wake>;
// BT,power_gpio = <&pcal6408ahk_c 5 0>;
pinctrl-names = "default", "rts_gpio";
BT,power_gpio = <&gpio0_porta 22 GPIO_ACTIVE_HIGH>;
status = "okay";
};
@@ -394,7 +492,7 @@
regulator-name = "soc_vbus_en";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&gpio1_porta 22 1>;
gpio = <&gpio0_porta 27 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
@@ -701,6 +799,10 @@
alloc-ranges = <0 0xd8000000 0 0x20000000>; // [0x0D800_0000 ~ 0x0F800_0000]
};
&usb {
status = "okay";
};
&resmem {
#address-cells = <2>;
#size-cells = <2>;
@@ -766,18 +868,22 @@
clock-frequency = <100000>;
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_audiopa29>,
<&pinctrl_audiopa30>,
pinctrl-0 = <&pinctrl_audiopa6>,
<&pinctrl_audiopa7>,
<&pinctrl_audio_i2c0>;
es8156_audio_codec: es8156@8 {
es8388_audio_codec: es8388@11 {
#sound-dai-cells = <0>;
compatible = "everest,es8156";
reg = <0x08>;
sound-name-prefix = "ES8156";
compatible = "everest,es8388", "everest,es8323";
reg = <0x11>;
sound-name-prefix = "ES8388";
AVDD-supply = <&soc_aud_3v3_en_reg>;
DVDD-supply = <&soc_aud_1v8_en_reg>;
PVDD-supply = <&soc_aud_1v8_en_reg>;
spk-ctl-gpios = <&ao_gpio4_porta 3 GPIO_ACTIVE_HIGH>;
hp-ctl-gpios = <&ao_gpio4_porta 2 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_audiopa3 &pinctrl_audiopa2>;
};
es7210_audio_codec: es7210@40 {
@@ -809,8 +915,8 @@
&audio_i2c1 {
clock-frequency = <100000>;
status = "okay";
pinctrl-0 = <&pinctrl_audiopa6>,
<&pinctrl_audiopa7>,
pinctrl-0 = <&pinctrl_audiopa29>,
<&pinctrl_audiopa30>,
<&pinctrl_audio_i2c1>;
es8156_audio_codec_1: es8156@8 {
@@ -849,7 +955,7 @@
status = "okay";
spi_norflash@0 {
status = "okay";
status = "disable";
#address-cells = <1>;
#size-cells = <1>;
compatible = "winbond,w25q64jwm", "jedec,spi-nor";
@@ -858,6 +964,13 @@
w25q,fast-read;
};
tpm_tis@0 {
status = "okay";
compatible = "tcg,tpm_tis-spi";
reg = <0>;
spi-max-frequency = <10000000>;
};
spidev@1 {
status = "disable";
compatible = "spidev";
@@ -866,6 +979,18 @@
reg = <0x1>;
spi-max-frequency = <50000000>;
};
finger@1 {
compatible = "microarray,microarray-fp";
reg = <0>;
#address-cells = <0x1>;
#size-cells = <0x1>;
spi-max-frequency = <9600000>;
fingerprint,touch-int-gpio = <&gpio3_porta 22 0>;
pinctrl-names = "default";
pinctrl-0 = <&fingerprint_int>;
status = "okay";
};
};
&uart0 {
@@ -934,7 +1059,7 @@
rx-clk-delay = <0x00>; /* for RGMII */
tx-clk-delay = <0x00>; /* for RGMII */
phy-handle = <&phy_88E1111_0>;
status = "okay";
status = "disabled";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_gmac0>;
@@ -958,7 +1083,7 @@
rx-clk-delay = <0x00>; /* for RGMII */
tx-clk-delay = <0x00>; /* for RGMII */
phy-handle = <&phy_88E1111_1>;
status = "okay";
status = "disabled";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_gmac1>;
};
@@ -1007,10 +1132,13 @@
* Pin Configuration Node:
* Format: <pin_id mux_node config>
*/
pinctrl_uart0: uart0grp {
camera_pwr: camera-pwr {
thead,pins = < FM_GPIO2_23 LIGHT_PIN_FUNC_0 0x27f >;
};
fingerprint_int:fingerprint-int {
thead,pins = <
FM_UART0_TXD 0x0 0x202
FM_UART0_RXD 0x0 0x202
FM_GMAC0_CRS 0x3 0x20a
>;
};
@@ -1028,6 +1156,17 @@
>;
};
usbc0_int: husb311_int {
thead,pins = < FM_GMAC0_TXD0 LIGHT_PIN_FUNC_3 0x27f >;
};
pinctrl_uart0: uart0grp {
thead,pins = <
FM_UART0_TXD 0x0 0x202
FM_UART0_RXD 0x0 0x202
>;
};
pinctrl_spi0: spi0grp {
thead,pins = <
FM_SPI_CSN 0x3 0x20a
@@ -1078,16 +1217,30 @@
>;
};
pinctrl_sdio0: sdio0grp {
pinctrl_pwm: pwmgrp {
thead,pins = <
FM_SDIO0_DETN 0x0 0x202
FM_GPIO3_2 0x1 0x208 /* pwm0 */
>;
};
pinctrl_pwm: pwmgrp {
usb_hub_en: usb-hub-en {
thead,pins = < FM_GMAC0_RXD3 LIGHT_PIN_FUNC_3 0x208 >;
};
hdmi_en: hdmi-en {
thead,pins = < FM_GMAC0_RXDV LIGHT_PIN_FUNC_3 0x208 >;
};
typec0_en: typec0-en {
thead,pins = < FM_GMAC0_TXD3 LIGHT_PIN_FUNC_3 0x208 >;
};
typec1_en: typec1-en {
thead,pins = < FM_GMAC0_TXD2 LIGHT_PIN_FUNC_3 0x208 >;
};
pinctrl_sdio0: sdio0grp {
thead,pins = <
FM_GPIO3_2 0x1 0x20f /* pwm0 */
FM_GPIO3_3 0x1 0x20f /* pwm1 */
FM_SDIO0_DETN 0x0 0x202
>;
};
@@ -1128,15 +1281,25 @@
* Pin Configuration Node:
* Format: <pin_id mux_node config>
*/
pinctrl_qspi1: qspi1grp {
pinctrl_i2c4: i2c4grp {
thead,pins = <
FM_QSPI1_SCLK 0x0 0x20a
FM_QSPI1_CSN0 0x3 0x20a
FM_QSPI1_D0_MOSI 0x0 0x23a
FM_QSPI1_D1_MISO 0x0 0x23a
FM_GPIO0_18 0x1 0x204
FM_GPIO0_19 0x1 0x204
>;
};
usbc1_int: usbc1-int {
thead,pins = < FM_GPIO1_5 LIGHT_PIN_FUNC_0 0x27f >;
};
hc32fx_int: hc32fx_int {
thead,pins = < FM_GPIO1_7 LIGHT_PIN_FUNC_0 0x27f >;
};
CHRG_OK: CHRG-OK {
thead,pins = < FM_GPIO1_28 LIGHT_PIN_FUNC_0 0x208 >;
};
pinctrl_i2c0: i2c0grp {
thead,pins = <
FM_I2C0_SCL 0x0 0x204
@@ -1186,7 +1349,7 @@
pinctrl_wifi_wake: wifi_grp {
thead,pins = <
FM_GPIO0_27 0x0 0x202
FM_GPIO0_28 0x0 0x202
>;
};
@@ -1196,13 +1359,12 @@
>;
};
pinctrl_iso7816: iso7816grp {
pinctrl_qspi1: qspi1grp {
thead,pins = <
FM_QSPI1_SCLK 0x1 0x208
FM_QSPI1_D0_MOSI 0x1 0x238
FM_QSPI1_D1_MISO 0x1 0x238
FM_QSPI1_D2_WP 0x1 0x238
FM_QSPI1_D3_HOLD 0x1 0x238
FM_QSPI1_SCLK 0x0 0x20a
FM_QSPI1_CSN0 0x3 0x20a
FM_QSPI1_D0_MOSI 0x0 0x23a
FM_QSPI1_D1_MISO 0x0 0x23a
>;
};
@@ -1211,6 +1373,18 @@
FM_CLK_OUT_2 0x3 0x208
>;
};
usb_sw: usb-sw {
thead,pins = < FM_GPIO1_11 LIGHT_PIN_FUNC_0 0x208 >;
};
usb_host_en: usb-host-en {
thead,pins = < FM_GPIO0_27 LIGHT_PIN_FUNC_0 0x238 >;
};
ext_vcc5v_en: ext_vcc5v_en{
thead,pins = < FM_GPIO1_2 LIGHT_PIN_FUNC_0 0x208 >;
};
};
};
@@ -1227,10 +1401,15 @@
>;
};
pinctrl_audiopa2: audiopa2_grp {
thead,pins = <
FM_AUDIO_PA2 0x0 0x72
>;
pinctrl_audiopa0: audiopa0 {
thead,pins = < FM_AUDIO_PA0 LIGHT_PIN_FUNC_3 0x27f >;
};
pinctrl_audiopa2: audiopa2 {
thead,pins = < FM_AUDIO_PA2 LIGHT_PIN_FUNC_3 0x20a >;
};
pinctrl_audiopa3: audiopa3 {
thead,pins = < FM_AUDIO_PA3 LIGHT_PIN_FUNC_3 0x20a >;
};
pinctrl_audiopa6: audiopa6 {
thead,pins = < FM_AUDIO_PA6 LIGHT_PIN_FUNC_0 0x000 >;
@@ -1238,6 +1417,9 @@
pinctrl_audiopa7: audiopa7 {
thead,pins = < FM_AUDIO_PA7 LIGHT_PIN_FUNC_0 0x000 >;
};
pinctrl_audiopa13: audiopa13 {
thead,pins = < FM_AUDIO_PA13 LIGHT_PIN_FUNC_0 0x000 >;
};
pinctrl_audiopa14: audiopa14 {
thead,pins = < FM_AUDIO_PA14 LIGHT_PIN_FUNC_0 0x000 >;
};
@@ -1268,10 +1450,18 @@
pinctrl_audiopa30: audiopa30 {
thead,pins = < FM_AUDIO_PA30 LIGHT_PIN_FUNC_0 0x000 >;
};
pinctrl_sleep: sleep_grp {
thead,pins = <FM_CPU_JTG_TCLK 0x3 0x238 >;
touchpad_irq_gpio: touchpad-irq-gpio {
thead,pins = < FM_CPU_JTG_TDI LIGHT_PIN_FUNC_3 0x20a >;
};
hidkey_irq_gpio: hidkey-irq-gpio {
thead,pins = < FM_CPU_JTG_TMS LIGHT_PIN_FUNC_3 0x20a >;
};
pinctrl_audiopa26: audiopa26 {
thead,pins = < FM_AOGPIO_15 LIGHT_PIN_FUNC_0 0x000 >;
};
mh248_irq_gpio: mh248-irq-gpio {
thead,pins = < FM_CPU_JTG_TCLK LIGHT_PIN_FUNC_3 0x20a >;
};
};
};
@@ -1287,14 +1477,14 @@
pinctrl_audio_i2c0: audio_i2c0_grp {
thead,pins = <
FM_AUDIO_IO_PA29 LIGHT_PIN_FUNC_2 0x004
FM_AUDIO_IO_PA30 LIGHT_PIN_FUNC_2 0x004
FM_AUDIO_IO_PA6 LIGHT_PIN_FUNC_0 0x004
FM_AUDIO_IO_PA7 LIGHT_PIN_FUNC_0 0x004
>;
};
pinctrl_audio_i2c1: audio_i2c1_grp {
thead,pins = <
FM_AUDIO_IO_PA6 LIGHT_PIN_FUNC_2 0x004
FM_AUDIO_IO_PA7 LIGHT_PIN_FUNC_2 0x004
FM_AUDIO_IO_PA29 LIGHT_PIN_FUNC_2 0x004
FM_AUDIO_IO_PA30 LIGHT_PIN_FUNC_2 0x004
>;
};
pinctrl_audio_i2s1: audio_i2s1_grp {
@@ -1333,6 +1523,84 @@
gpio-controller;
#gpio-cells = <2>;
};
usbc0: husb311_0@4e {
compatible = "hynetek,husb311";
reg = <0x4e>;
// interrupt-parent = <&gpio3_porta>;
// interrupts = <10 0>;
int_gpio = <&gpio3_porta 10 GPIO_ACTIVE_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&usbc0_int>;
status = "okay";
usb_con0: connector {
compatible = "usb-c-connector";
label = "USB-C";
data-role = "dual";
power-role = "dual";
try-power-role = "sink";
source-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)>;
sink-pdos =
<PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
PDO_FIXED(9000, 3000, PDO_FIXED_USB_COMM)
PDO_FIXED(12000, 3000, PDO_FIXED_USB_COMM)>;
op-sink-microwatt = <10000000>;
};
};
cw2015@62 {
clock-frequency = <100000>;
status = "okay";
compatible = "cellwise,cw2015";
reg = <0x62>;
cellwise,battery-profile = /bits/ 8
<0x17 0x67 0x66 0x65 0x64 0x63 0x61 0x5E
0x52 0x6D 0x4D 0x58 0x5B 0x51 0x44 0x3B
0x33 0x2C 0x26 0x23 0x24 0x29 0x34 0x42
0x49 0x16 0x0E 0xB8 0x3D 0x5D 0x68 0x7D
0x78 0x75 0x7B 0x7A 0x3F 0x18 0x82 0x48
0x09 0x4A 0x1A 0x47 0x86 0x93 0x97 0x15
0x49 0x71 0x9A 0xC3 0x80 0x41 0x4F 0xCB
0x2F 0x00 0x64 0xA5 0xB5 0x0D 0xB8 0x91>;
cellwise,monitor-interval-ms = <5000>;
cellwise,dual-cell = <1>;
monitored-battery = <&battery>;
power-supplies = <&bq25703>;
};
bq25703: bq25703@6b {
status = "okay";
compatible = "ti,bq25703";
reg = <0x6b>;
typec0-enable-gpios = <&gpio3_porta 13 GPIO_ACTIVE_LOW>; //CHG_PATH_SEL0_180
typec1-enable-gpios = <&gpio3_porta 12 GPIO_ACTIVE_LOW>; //CHG_PATH_SEL1_180
interrupt-parent = <&gpio1_porta>;
interrupts = <28 IRQ_TYPE_LEVEL_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&typec0_en &typec1_en &CHRG_OK>;
ti,usb-charger-detection = <&usbc0>;
ti,usb-charger-detection1 = <&usbc1>;
ti,charge-current = <2500000>;
ti,max-input-voltage = <20000000>;
ti,max-input-current = <6000000>;
ti,max-charge-voltage = <8700000>;
ti,input-current-sdp = <500000>;
ti,input-current-dcp = <2000000>;
ti,input-current-cdp = <2000000>;
ti,minimum-sys-voltage = <6000000>;
ti,otg-voltage = <5000000>;
ti,otg-current = <1500000>;
pd-charge-only = <0>;
vbus_otg_typec: vbus-otg-typec {
compatible = "regulator-fixed";
regulator-name = "vbus_otg_typec";
};
};
};
&i2c1 {
@@ -1347,6 +1615,41 @@
gpio-controller;
#gpio-cells = <2>;
};
hc32fx_mcu:hc32fx_mcu@0x4c {
compatible = "hc32fx-mcu";
reg = <0x4c>;
interrupt-parent = <&gpio1_porta>;
interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&hc32fx_int>;
clock-frequency = <100000>;
};
usbc1: husb311_1@4e {
compatible = "hynetek,husb311";
reg = <0x4e>;
// interrupt-parent = <&gpio1_porta>;
// interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
int_gpio = <&gpio1_porta 5 GPIO_ACTIVE_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&usbc1_int>;
status = "okay";
usb_con1: connector {
compatible = "usb-c-connector";
label = "USB-C";
data-role = "dual";
power-role = "dual";
try-power-role = "sink";
source-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)>;
sink-pdos =
<PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
PDO_FIXED(9000, 3000, PDO_FIXED_USB_COMM)
PDO_FIXED(12000, 3000, PDO_FIXED_USB_COMM)>;
op-sink-microwatt = <10000000>;
};
};
};
&i2c2 {
@@ -1354,11 +1657,24 @@
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c2>;
hidkey: hidkey@15 {
status = "okay";
clock-frequency = <100000>;
compatible = "hid-over-i2c";
interrupt-parent = <&ao_gpio_porta>;
interrupts = <3 0>;
pinctrl-names = "default";
pinctrl-0 = <&hidkey_irq_gpio>;
reg = <0x15>;
hid-descr-addr = <0x20>;
hid-support-wakeup;
};
};
&i2c3 {
clock-frequency = <400000>;
status = "okay";
status = "disabled";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c3>;
@@ -1386,6 +1702,19 @@
&i2c4 {
clock-frequency = <400000>;
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c4>;
touchpad: touchpad@2c {
status = "okay";
compatible = "hid-over-i2c";
interrupt-parent = <&ao_gpio_porta>;
interrupts = <4 0>;
pinctrl-names = "default";
pinctrl-0 = <&touchpad_irq_gpio>;
reg = <0x2c>;
hid-descr-addr = <0x20>;
};
};
&isp0 {
@@ -1762,6 +2091,10 @@
status = "okay";
};
&dsi0 {
status = "okay";
};
&dhost_0 {
ports {
#address-cells = <1>;
@@ -1825,7 +2158,7 @@
sound-dai = <&i2s1 0>;
};
codec {
sound-dai = <&es8156_audio_codec>;
sound-dai = <&es8388_audio_codec>;
};
};
simple-audio-card,dai-link@1 { /* I2S - AUDIO SYS CODEC 7210*/
@@ -1861,7 +2194,8 @@
&i2s1 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_audiopa14>,
pinctrl-0 = <&pinctrl_audiopa13>,
<&pinctrl_audiopa14>,
<&pinctrl_audiopa15>,
<&pinctrl_audiopa16>,
<&pinctrl_audiopa17>,
@@ -1880,9 +2214,10 @@
};
&usb_1 {
hubswitch-gpio = <&ao_gpio_porta 4 0>;
pinctrl-names = "default";
pinctrl-0 = <&usb_hub_en &usb_host_en &usb_sw>;
hubswitch-gpio = <&gpio1_porta 11 GPIO_ACTIVE_LOW>;
vbus-supply = <&soc_vbus_en_reg>;
hub1v2-supply = <&reg_usb_hub_vdd1v2>;
hub5v-supply = <&reg_usb_hub_vcc5v>;
};

View File

@@ -38,7 +38,6 @@ CONFIG_FORCE_MAX_ZONEORDER=15
CONFIG_SOC_SIFIVE=y
CONFIG_SOC_THEAD=y
CONFIG_SMP=y
CONFIG_VECTOR=y
CONFIG_CPU_IDLE=y
CONFIG_CPU_IDLE_GOV_LADDER=y
CONFIG_CPU_FREQ=y
@@ -62,7 +61,6 @@ CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
CONFIG_BLK_DEV_THROTTLING=y
CONFIG_BINFMT_MISC=m
CONFIG_CMA=y
CONFIG_CMA_DEBUGFS=y
CONFIG_CMA_AREAS=16
CONFIG_NET=y
@@ -154,6 +152,7 @@ CONFIG_BLK_DEV_LOOP=y
CONFIG_VIRTIO_BLK=y
CONFIG_LIGHT_DSMART_CARD=y
CONFIG_EEPROM_AT24=y
CONFIG_MCU_HC32FX=y
CONFIG_SCSI=y
CONFIG_BLK_DEV_SD=y
CONFIG_MD=y
@@ -181,11 +180,11 @@ CONFIG_USB_USBNET=m
# CONFIG_USB_NET_AX88179_178A is not set
# CONFIG_USB_NET_NET1080 is not set
CONFIG_BRCMFMAC=m
CONFIG_RTL8723DS=y
CONFIG_RTL8723DS=m
CONFIG_AIC_WLAN_SUPPORT=y
CONFIG_AIC_FW_PATH="/lib/firmware/aic8800"
CONFIG_AIC8800_WLAN_SUPPORT=m
CONFIG_AIC8800_BTLPM_SUPPORT=m
CONFIG_RTL8822CS=m
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_JOYDEV=y
CONFIG_INPUT_EVDEV=y
@@ -193,9 +192,9 @@ CONFIG_KEYBOARD_GPIO=y
# CONFIG_INPUT_MOUSE is not set
CONFIG_INPUT_TOUCHSCREEN=y
CONFIG_TOUCHSCREEN_GOODIX=y
CONFIG_TOUCHSCREEN_GT9XX=y
CONFIG_INPUT_MISC=y
CONFIG_INPUT_UINPUT=y
CONFIG_MTK_FINGERPRINT_SUPPORT=y
CONFIG_SERIAL_8250=y
# CONFIG_SERIAL_8250_DEPRECATED_OPTIONS is not set
CONFIG_SERIAL_8250_CONSOLE=y
@@ -207,6 +206,8 @@ CONFIG_SERIAL_EARLYCON_RISCV_SBI=y
CONFIG_VIRTIO_CONSOLE=y
CONFIG_HW_RANDOM=y
CONFIG_HW_RANDOM_VIRTIO=y
CONFIG_TCG_TPM=y
CONFIG_TCG_TIS_SPI=y
CONFIG_I2C_CHARDEV=y
CONFIG_I2C_DESIGNWARE_PLATFORM=y
CONFIG_SPI=y
@@ -221,12 +222,10 @@ CONFIG_GPIO_SYSFS=y
CONFIG_GPIO_DWAPB=y
CONFIG_GPIO_PCA953X=y
CONFIG_GPIO_PCA953X_IRQ=y
CONFIG_POWER_SUPPLY=y
CONFIG_BATTERY_CW2015=m
CONFIG_CHARGER_GPIO=m
CONFIG_SENSORS_MR75203=y
CONFIG_SENSORS_PWM_FAN=y
CONFIG_THERMAL=y
CONFIG_THERMAL_GOV_POWER_ALLOCATOR=y
CONFIG_CPU_THERMAL=y
CONFIG_THERMAL_EMULATION=y
@@ -311,13 +310,15 @@ CONFIG_SND_SOC_AW87519=y
CONFIG_SND_SOC_BT_SCO=y
CONFIG_SND_SOC_ES7210=y
CONFIG_SND_SOC_ES8156=y
CONFIG_SND_SOC_ES8323=y
CONFIG_SND_SOC_WM8960=y
CONFIG_SND_SIMPLE_CARD=y
CONFIG_SND_AUDIO_GRAPH_CARD=y
CONFIG_RK_HEADSET=y
CONFIG_UHID=y
CONFIG_HID_PID=y
CONFIG_USB_HIDDEV=y
CONFIG_I2C_HID=m
CONFIG_I2C_HID=y
CONFIG_USB=y
CONFIG_USB_XHCI_HCD=y
CONFIG_USB_XHCI_PLATFORM=y
@@ -393,7 +394,9 @@ CONFIG_USB_MASS_STORAGE=m
CONFIG_USB_G_SERIAL=m
CONFIG_USB_G_MULTI=m
CONFIG_USB_G_MULTI_CDC=y
CONFIG_USB_ROLE_SWITCH=m
CONFIG_TYPEC=m
CONFIG_TYPEC_TCPM=m
CONFIG_TYPEC_TCPCI=m
CONFIG_MMC=y
CONFIG_MMC_SDHCI=y
CONFIG_MMC_SDHCI_PLTFM=y
@@ -436,7 +439,6 @@ CONFIG_HWSPINLOCK=y
CONFIG_HWSPINLOCK_LIGHT=y
CONFIG_HWSPINLOCK_LIGHT_TEST=m
CONFIG_MAILBOX=y
CONFIG_RPMSG=y
CONFIG_RPMSG_CHAR=y
CONFIG_RPMSG_THEAD_LIGHT=y
CONFIG_RPMSG_VIRTIO=y
@@ -446,7 +448,6 @@ CONFIG_DEVFREQ_GOV_PERFORMANCE=y
CONFIG_DEVFREQ_GOV_POWERSAVE=y
CONFIG_DEVFREQ_GOV_USERSPACE=y
CONFIG_DEVFREQ_GOV_PASSIVE=y
CONFIG_PM_DEVFREQ=y
CONFIG_PM_DEVFREQ_EVENT=y
CONFIG_EXTCON=y
CONFIG_IIO=y
@@ -469,7 +470,6 @@ CONFIG_OVERLAY_FS=y
CONFIG_MSDOS_FS=y
CONFIG_VFAT_FS=y
CONFIG_EXFAT_FS=m
CONFIG_TMPFS=y
CONFIG_TMPFS_POSIX_ACL=y
CONFIG_HUGETLBFS=y
CONFIG_JFFS2_FS=y
@@ -503,7 +503,6 @@ CONFIG_CRYPTO_USER_API_HASH=y
CONFIG_CRYPTO_USER_API_SKCIPHER=y
CONFIG_CRYPTO_USER_API_RNG=y
CONFIG_CRYPTO_USER_API_AEAD=y
CONFIG_DMA_CMA=y
CONFIG_DMA_PERNUMA_CMA=y
CONFIG_CMA_SIZE_MBYTES=32
CONFIG_PRINTK_TIME=y