Files
BPI-CM9-Linux/build/patch/kernel/archive/sm8550-6.18/0212_arm64--dts--qcom--Add-AYANEO-Pocket-DMG.patch

118 lines
2.6 KiB
Diff

diff --git a/arch/arm64/boot/dts/qcom/qcs8550-ayaneo-pocketdmg.dts b/arch/arm64/boot/dts/qcom/qcs8550-ayaneo-pocketdmg.dts
new file mode 100644
index 000000000000..845a7cf600e2
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/qcs8550-ayaneo-pocketdmg.dts
@@ -0,0 +1,111 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (c) 2025, ROCKNIX (https://github.com/ROCKNIX)
+ */
+
+/dts-v1/;
+
+#include "qcs8550-ayaneo-pocket-common.dtsi"
+
+/ {
+ model = "AYANEO Pocket DMG";
+ qcom,board-id = <0x1000b 0x01>;
+ qcom,msm-id = <0x258 0x20000>, <0x259 0x20000>;
+ compatible = "ayaneo,pocketdmg", "qcom,qcs8550", "qcom,sm8550";
+ rocknix-u-boot-dt-id = "u-boot-pocket-dmg";
+};
+
+&tlmm {
+ panel_pwr_active: panel-pwr-active-state {
+ pins = "gpio152", "gpio153";
+ function = "gpio";
+ drive-strength = <8>;
+ bias-disable;
+ output-high;
+ };
+
+ ts_int_active: ts-int-active-state {
+ pins = "gpio25";
+ function = "gpio";
+ drive-strength = <8>;
+ bias-pull-up;
+ };
+
+ ts_reset_active: ts-reset-active-state {
+ pins = "gpio24";
+ function = "gpio";
+ drive-strength = <8>;
+ bias-pull-up;
+ };
+
+ ts_int_suspend: ts-int-suspend-state {
+ pins = "gpio25";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-pull-down;
+ };
+
+ ts_reset_suspend: ts-reset-suspend-state {
+ pins = "gpio24";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-pull-down;
+ };
+};
+
+&i2c0 {
+ clock-frequency = <400000>;
+ status = "okay";
+
+ /* Screen power */
+ sgm3804: regulator@3e {
+ compatible = "sgmicro,sgm3804";
+ reg = <0x3e>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&panel_pwr_active>;
+ regulator-name = "panel-avdd";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ reset-gpios = <&tlmm 152 GPIO_ACTIVE_HIGH>, <&tlmm 153 GPIO_ACTIVE_HIGH>;
+ };
+};
+
+&i2c4 {
+ status = "okay";
+ clock-frequency = <400000>;
+
+ hynitron@5a {
+ compatible = "hyn,66xx";
+ reg = <0x5a>;
+
+ vdd_ana;
+ vdd_ana-supply = <&vreg_l14b_3p2>;
+
+ interrupt-parent = <&tlmm>;
+ interrupts = <25 0x02>;
+ reset-gpio = <&tlmm 24 0x01>;
+ irq-gpio = <&tlmm 25 0x02>;
+
+ pinctrl-names = "ts_active","ts_suspend";
+ pinctrl-0 = <&ts_int_active &ts_reset_active>;
+ pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
+
+ max-touch-number = <5>;
+ display-coords = <0 0 1080 1240>;
+ pos-swap = <1>;
+ posx-reverse = <0>;
+ posy-reverse = <0>;
+ };
+};
+
+&display_panel {
+ compatible = "ayaneo,pocket-dmg-panel";
+
+ avdd-supply = <&sgm3804>;
+ vci-supply = <&vreg_l13b_3p0>;
+ vddio-supply = <&vreg_l12b_1p8>;
+
+ reset-gpios = <&tlmm 133 GPIO_ACTIVE_LOW>;
+
+ rotation = <270>;
+};