update ax1800

This commit is contained in:
Dongming Han 2022-09-09 16:19:29 +08:00
parent 4282e4f558
commit 881f9b3447
3 changed files with 84 additions and 0 deletions

View File

@ -0,0 +1,61 @@
From 639c5cd8f5e55b7f8f5db1eaf3bf819799ed3d79 Mon Sep 17 00:00:00 2001
From: Dongming Han <handongming@gl-inet.com>
Date: Fri, 9 Sep 2022 15:05:54 +0800
Subject: [PATCH] ax1800 dts add ble uart
---
.../boot/dts/qcom/qcom-ipq6018-gl-ax1800.dts | 26 +++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/feeds/ipq807x/ipq807x/files/arch/arm64/boot/dts/qcom/qcom-ipq6018-gl-ax1800.dts b/feeds/ipq807x/ipq807x/files/arch/arm64/boot/dts/qcom/qcom-ipq6018-gl-ax1800.dts
index 685cfc68..4d9ec935 100644
--- a/feeds/ipq807x/ipq807x/files/arch/arm64/boot/dts/qcom/qcom-ipq6018-gl-ax1800.dts
+++ b/feeds/ipq807x/ipq807x/files/arch/arm64/boot/dts/qcom/qcom-ipq6018-gl-ax1800.dts
@@ -22,6 +22,8 @@
compatible = "glinet,ax1800", "qcom,ipq6018-cp03", "qcom,ipq6018";
aliases {
+ serial0 = &blsp1_uart3; //system uart = ttyMSM0
+ serial1 = &blsp1_uart4; //tl8251 = ttyMSM1
ethernet3 = "/soc/dp4";
ethernet4 = "/soc/dp5";
};
@@ -58,6 +60,16 @@
};
&soc {
+ blsp1_uart4: serial@78b2000 {
+ compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
+ reg = <0x78b2000 0x200>;
+ interrupts = <GIC_SPI 307 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&gcc GCC_BLSP1_UART4_APPS_CLK>,
+ <&gcc GCC_BLSP1_AHB_CLK>;
+ clock-names = "core", "iface";
+ status = "disabled";
+ };
+
dp4 {
device_type = "network";
compatible = "qcom,nss-dp";
@@ -91,4 +103,18 @@
bias-pull-up;
};
};
+ uart_tl8251_pins: uart_tl8251_pins {
+ mux {
+ pins = "gpio75", "gpio76"; // gpio 77 reset tl8251
+ function = "blsp3_uart";
+ drive-strength = <8>;
+ bias-pull-down;
+ };
+ };
+};
+
+&blsp1_uart4 {
+ pinctrl-0 = <&uart_tl8251_pins>;
+ pinctrl-names = "default";
+ status = "ok";
};
--
2.25.1

View File

@ -0,0 +1,21 @@
From 3aeebef3953f02243419009204d08ae546e1d69c Mon Sep 17 00:00:00 2001
From: Dongming Han <handongming@gl-inet.com>
Date: Fri, 9 Sep 2022 15:06:26 +0800
Subject: [PATCH] ax1800 kernel config sync with axt1800
---
feeds/ipq807x/ipq807x/config-4.4 | 1 +
1 file changed, 1 insertion(+)
diff --git a/feeds/ipq807x/ipq807x/config-4.4 b/feeds/ipq807x/ipq807x/config-4.4
index 2f8d74a7..c64eca49 100644
--- a/feeds/ipq807x/ipq807x/config-4.4
+++ b/feeds/ipq807x/ipq807x/config-4.4
@@ -828,3 +828,4 @@ CONFIG_DIAG_CHAR=y
# CONFIG_CRYPTO_DEV_QCRYPTO is not set
# CONFIG_MHI_BUS_TEST is not set
# CONFIG_IP6_NF_TARGET_MASQUERADE is not set
+CONFIG_SENSORS_PWM_FAN=m
--
2.25.1

View File

@ -9,5 +9,7 @@ packages:
- gl-sdk4-led
- i2c-tools
- kmod-i2c-gpio-custom
- gl-ble_cfg_ax1800
- gl-ble-ubus
diffconfig: |