Add device tree for Acer Swift Go Pro AI (SFA14-11)
cover Add device tree for Acer Swift Go Pro AI (SFA14-11)
Introduce device tree for the Acer Swift Go Pro AI (SFA14-11). It is a laptop based on the Qualcomm Snapdragon X Elite (X1E78100) SoC.
The work started with x1-crd.dtsi as initial template. HDMI refers to ThinkPad T14s.
Bluetooth refers to x1-crd.dtsi from the ubuntu-concept kernel [1]. PWM brightness control refers to Ratizux's GitHub repository [2].
Tested on linux-next / Ubuntu 26.04 LTS
Tested and working devices:
- NVMe
- Keyboard & Touchpad
- USB Type-A, Type-C
- Battery & charging status
- Internal display & Backlight brightness control
- HDMI & Type-C display
- Bluetooth & Wi-Fi
- Webcam (usb_2)
- GPU
The following are some known issues:
Battery:
Battery status works only when the following kernel configs are enabled:CONFIG_BATTERY_QCOM_BATTMGR=yCONFIG_QCOM_CPUCP_MBOX=y
Or the battery percentage and charging status disappear randomly.
Audio:
Neither the internal speakers nor headphone jack are detected by GNOME, and both fail to output sound.
The sound card seems functional since audio playback via Bluetooth works correctly.
Also, when manually enabling speakers via alsamixer and then running speaker-test, speakers can only emit some electrical noise.
Fingerprint:
The fingerprint reader can be probed. Running lsusb shows:
Bus 002 Device 003: ID 3274:9003 Generic Realtek USB2.0 Finger Print Bridge. However, currently, the libfprint in Ubuntu 26.04 desktop does not support this device, so I cannot verify if the device actually works.
Corrupted Display after suspend:
Internal monitor, Type-C and HDMI displays would break when the laptop resumes from suspend or after logging out, displaying corrupted graphics.
The following are some reference details:
Bluetooth (uart14):
I referred to x1-crd.dtsi from the ubuntu-concept kernel [1].
HDMI (hdmi-bridge, hdmi-connector):
I referred to x1e78100-lenovo-thinkpad-t14s.dtsi.
Backlight brightness control (pm8550_pwm, pm8550_gpios):
The configuration of pm8550_gpios refers to Ratizux's GitHub repository [2]. Although I could not find any hardware information to confirm this, the backlight brightness control works, but it is inverted.
Since the pm8550_pwm does not support "PWM_POLARITY_INVERTED", I used a descending order array for the brightness-level.
With this workaround, the backlight brightness control works as expected.
This is my first time trying to upstream something,
not sure if I am doing everything correctly.
Any reviews, comments or suggestions would be greatly appreciated! Thanks a lot!
[1] https://git.launchpad.net/~ubuntu-concept/ubuntu/+source/linux/+git/resolute/log/?h=qcom-x1e-7.0
[2] https://github.com/Ratizux/linux-device-acer-sfa14-11.git
Kaipeng Zeng (2):
dt-bindings: arm: qcom: Add Acer Swift Go Pro AI (SFA14-11)
arm64: dts: qcom: Add support for Acer Swift Go Pro AI (SFA14-11)
.../devicetree/bindings/arm/qcom.yaml | 1 + arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/x1e78100-acer-sfa14-11.dts | 1711 +++++++++++++++++ 3 files changed, 1713 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts
base-commit: 3ce97bd3c4f18608335e709c24d6a40e7036cab8
Signature · 1 line
2.53.0
PATCH 1/2 dt-bindings: arm: qcom: Add Acer Swift Go Pro AI (SFA14-11)
Add compatible values for the Acer Swift Go Pro AI (SFA14-11), using "acer,sfa14-11".
The laptop is based on the Snapdragon X Elite (X1E78100) SoC.
--- Documentation/devicetree/bindings/arm/qcom.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/qcom.yaml +1 -0
@@ -1142,6 +1142,7 @@ properties: - items: - enum: + - acer,sfa14-11 - medion,sprchrgd14s1 - tuxedo,elite14gen1 - const: qcom,x1e78100
Signature · 1 line
2.53.0
Re: [PATCH 1/2] dt-bindings: arm: qcom: Add Acer Swift Go Pro AI (SFA14-11)
Quoted 2 lines · Kaipeng Zeng
Add compatible values for the Acer Swift Go Pro AI (SFA14-11), using "acer,sfa14-11".
"Add Acer Swift Go Pro AI (SFA14-11), a laptop based on the Snapdragon X Elite (X1E78100) SoC."
That's it. Don't add unnecessary boilerplate.
Quoted 13 lines
The laptop is based on the Snapdragon X Elite (X1E78100) SoC.
Signed-off-by Kaipeng Zeng <[email protected]>--- Documentation/devicetree/bindings/arm/qcom.yaml | 1 + 1 file changed, 1 insertion(+)Documentation/devicetree/bindings/arm/qcom.yaml +0
-0
Documentation/devicetree/bindings/arm/qcom.yaml properties: · line 1145
Quoted 4 lines
Documentation/devicetree/bindings/arm/qcom.yaml +1
-0@@ -1142,6 +1142,7 @@ properties: - items: - enum: + - acer,sfa14-11
Why no user-recognizable name is used? Look at other consumer products:
lenovo,thinkpad-x13s, lenovo,flex-5g, microsoft,surface-prox, lenovo,thinkpad-t14s-lcd, tuxedo,elite14gen1, microsoft,denali, asus,vivobook-s15... and so on.
Documentation/devicetree/bindings/arm/qcom.yaml properties: · line 1148
Quoted 3 lines
Documentation/devicetree/bindings/arm/qcom.yaml +0
-0- medion,sprchrgd14s1 - tuxedo,elite14gen1 - const: qcom,x1e78100
Best regards,
Krzysztof
Re: [PATCH 1/2] dt-bindings: arm: qcom: Add Acer Swift Go Pro AI (SFA14-11)
Quoted 8 lines · Krzysztof Kozlowski
Quoted 2 lines · Kaipeng Zeng
Add compatible values for the Acer Swift Go Pro AI (SFA14-11), using "acer,sfa14-11".
"Add Acer Swift Go Pro AI (SFA14-11), a laptop based on the Snapdragon X Elite (X1E78100) SoC."
That's it. Don't add unnecessary boilerplate.
Also, please fix time on your machine, so you do not send emails claiming they are in the future. This affects how they are seen in the inbox. Look:
1. Your email:
Thu, 2 Jul 2026 14:31:55 +0800
so, 8:31 +0200
2. My answer:
Thu, 2 Jul 2026 08:27:21 +0200
I went back in time, did I?
Best regards,
Krzysztof
Re: [PATCH 1/2] dt-bindings: arm: qcom: Add Acer Swift Go Pro AI (SFA14-11)
In reply to Krzysztof KozlowskiQuoted 24 lines · Krzysztof Kozlowski
Quoted 2 lines · Kaipeng Zeng
Add compatible values for the Acer Swift Go Pro AI (SFA14-11), using "acer,sfa14-11".
"Add Acer Swift Go Pro AI (SFA14-11), a laptop based on the Snapdragon X Elite (X1E78100) SoC."
That's it. Don't add unnecessary boilerplate.
Quoted 14 lines
The laptop is based on the Snapdragon X Elite (X1E78100) SoC.
Signed-off-by Kaipeng Zeng <[email protected]>--- Documentation/devicetree/bindings/arm/qcom.yaml | 1 + 1 file changed, 1 insertion(+)Documentation/devicetree/bindings/arm/qcom.yaml +0
-0@@ -1142,6 +1142,7 @@ properties:
Quoted 8 lines
Documentation/devicetree/bindings/arm/qcom.yaml properties: · line 1145
Quoted 3 lines
Documentation/devicetree/bindings/arm/qcom.yaml +1
-0- items: - enum: + - acer,sfa14-11Why no user-recognizable name is used? Look at other consumer products:
lenovo,thinkpad-x13s, lenovo,flex-5g, microsoft,surface-prox, lenovo,thinkpad-t14s-lcd, tuxedo,elite14gen1, microsoft,denali, asus,vivobook-s15... and so on.
We have a good mix of both. I tend to dislike relying on marketing names, as they may be similar (or identical) across wholly different products.
e.g. microsoft,denali that you mentioned is a MS codename for the Surface Pro something something
Konrad
Re: [PATCH 1/2] dt-bindings: arm: qcom: Add Acer Swift Go Pro AI (SFA14-11)
Quoted 34 lines · Konrad Dybcio
Quoted 24 lines · Krzysztof Kozlowski
Quoted 2 lines · Kaipeng Zeng
Add compatible values for the Acer Swift Go Pro AI (SFA14-11), using "acer,sfa14-11".
"Add Acer Swift Go Pro AI (SFA14-11), a laptop based on the Snapdragon X Elite (X1E78100) SoC."
That's it. Don't add unnecessary boilerplate.
Quoted 14 lines
The laptop is based on the Snapdragon X Elite (X1E78100) SoC.
Signed-off-by Kaipeng Zeng <[email protected]>--- Documentation/devicetree/bindings/arm/qcom.yaml | 1 + 1 file changed, 1 insertion(+)Documentation/devicetree/bindings/arm/qcom.yaml +0
-0@@ -1142,6 +1142,7 @@ properties:Quoted 8 lines
Documentation/devicetree/bindings/arm/qcom.yaml properties: · line 1145
Quoted 3 lines
Documentation/devicetree/bindings/arm/qcom.yaml +1
-0- items: - enum: + - acer,sfa14-11Why no user-recognizable name is used? Look at other consumer products:
lenovo,thinkpad-x13s, lenovo,flex-5g, microsoft,surface-prox, lenovo,thinkpad-t14s-lcd, tuxedo,elite14gen1, microsoft,denali, asus,vivobook-s15... and so on.
Quoted 6 lines
We have a good mix of both. I tend to dislike relying on marketing names, as they may be similar (or identical) across wholly different products.
e.g. microsoft,denali that you mentioned is a MS codename for the Surface Pro something something
I am fine with mixing (swift-go-sfa14-11), but the model number alone is very hard to parse by humans.
Best regards,
Krzysztof
Re: [PATCH 1/2] dt-bindings: arm: qcom: Add Acer Swift Go Pro AI (SFA14-11)
Quoted 39 lines · Krzysztof Kozlowski
Quoted 38 lines · Konrad Dybcio
Quoted 24 lines · Krzysztof Kozlowski
Quoted 2 lines · Kaipeng Zeng
Add compatible values for the Acer Swift Go Pro AI (SFA14-11), using "acer,sfa14-11".
"Add Acer Swift Go Pro AI (SFA14-11), a laptop based on the Snapdragon X Elite (X1E78100) SoC."
That's it. Don't add unnecessary boilerplate.
Quoted 14 lines
The laptop is based on the Snapdragon X Elite (X1E78100) SoC.
Signed-off-by Kaipeng Zeng <[email protected]>--- Documentation/devicetree/bindings/arm/qcom.yaml | 1 + 1 file changed, 1 insertion(+)Documentation/devicetree/bindings/arm/qcom.yaml +0
-0@@ -1142,6 +1142,7 @@ properties:Quoted 8 lines
Documentation/devicetree/bindings/arm/qcom.yaml properties: · line 1145
Quoted 3 lines
Documentation/devicetree/bindings/arm/qcom.yaml +1
-0- items: - enum: + - acer,sfa14-11Why no user-recognizable name is used? Look at other consumer products:
lenovo,thinkpad-x13s, lenovo,flex-5g, microsoft,surface-prox, lenovo,thinkpad-t14s-lcd, tuxedo,elite14gen1, microsoft,denali, asus,vivobook-s15... and so on.We have a good mix of both. I tend to dislike relying on marketing names, as they may be similar (or identical) across wholly different products.
Quoted 8 lines
Quoted 2 lines
e.g. microsoft,denali that you mentioned is a MS codename for the Surface Pro something something
I am fine with mixing (swift-go-sfa14-11), but the model number alone is very hard to parse by humans.
Best regards,
Krzysztof
Initially, I chose the model number because Acer has several QCOM powered laptops with similar product names:
- Acer Swift Go Pro AI (SFA14-11)
- Acer Swift Go 14 AI (SFG14-*)
- Acer Swift Spin 14 AI (SFSP14-Q51T)
- Acer Swift 14 AI (SF14-11*)
Using the product name directly here can be confusing. I think using a mixed name (swift-go-sfa14-11) is better, too.
Re: [PATCH 1/2] dt-bindings: arm: qcom: Add Acer Swift Go Pro AI (SFA14-11)
Quoted 16 lines · Kaipeng Zeng
Quoted 8 lines
Quoted 2 lines
e.g. microsoft,denali that you mentioned is a MS codename for the Surface Pro something something
I am fine with mixing (swift-go-sfa14-11), but the model number alone is very hard to parse by humans.
Best regards,
KrzysztofInitially, I chose the model number because Acer has several QCOM powered laptops with similar product names:
- Acer Swift Go Pro AI (SFA14-11)
- Acer Swift Go 14 AI (SFG14-*)
- Acer Swift Spin 14 AI (SFSP14-Q51T)
- Acer Swift 14 AI (SF14-11*)
Quoted 3 lines
Using the product name directly here can be confusing. I think using a mixed name (swift-go-sfa14-11) is better, too.
All the names are different, so I do not see confusion.
Best regards,
Krzysztof
PATCH 2/2 arm64: dts: qcom: Add support for Acer Swift Go Pro AI (SFA14-11)
In reply to Kaipeng ZengIntroduce device tree for the Acer Swift Go Pro AI (SFA14-11). It is a laptop based on the Qualcomm Snapdragon X Elite (X1E78100) SoC. This device tree implementation references nodes from the x1-crd.dtsi.
Supported features:
- Internal display & Brightness control
- Keyboard & Touchpad
- USB Type-C, Type-A
- Wi-Fi & Bluetooth
- ADSP & CDSP
- Adreno X1-85 GPU
- HDMI & USB Type-C display
- Webcam
--- arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/x1e78100-acer-sfa14-11.dts | 1711 +++++++++++++++++ 2 files changed, 1712 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts
arch/arm64/boot/dts/qcom/Makefile +1 -0
@@ -457,3 +457,4 @@ x1p42100-lenovo-thinkbook-16-el2-dtbs := x1p42100-lenovo-thinkbook-16.dtb x1-el2 dtb-$(CONFIG_ARCH_QCOM) += x1p42100-lenovo-thinkbook-16.dtb x1p42100-lenovo-thinkbook-16-el2.dtb x1p64100-microsoft-denali-el2-dtbs := x1p64100-microsoft-denali.dtb x1-el2.dtbo dtb-$(CONFIG_ARCH_QCOM) += x1p64100-microsoft-denali.dtb x1p64100-microsoft-denali-el2.dtb +dtb-$(CONFIG_ARCH_QCOM) += x1e78100-acer-sfa14-11.dtb
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts new file +1711 -0
1,711 lines not on this page · raw message
Signature · 1 line
2.53.0
Re: [PATCH 2/2] arm64: dts: qcom: Add support for Acer Swift Go Pro AI (SFA14-11)
arch/arm64/boot/dts/qcom/Makefile x1p42100-lenovo-thinkbook-16-el2-dtbs := x1p42100-lenovo-thinkbook-16.dtb x1-el2 · line 460
Quoted 9 lines · Kaipeng Zeng
arch/arm64/boot/dts/qcom/Makefile +1
-0@@ -457,3 +457,4 @@ x1p42100-lenovo-thinkbook-16-el2-dtbs := x1p42100-lenovo-thinkbook-16.dtb x1-el2 dtb-$(CONFIG_ARCH_QCOM) += x1p42100-lenovo-thinkbook-16.dtb x1p42100-lenovo-thinkbook-16-el2.dtb x1p64100-microsoft-denali-el2-dtbs := x1p64100-microsoft-denali.dtb x1-el2.dtbo dtb-$(CONFIG_ARCH_QCOM) += x1p64100-microsoft-denali.dtb x1p64100-microsoft-denali-el2.dtb +dtb-$(CONFIG_ARCH_QCOM) += x1e78100-acer-sfa14-11.dtb
Do not add new entries in random order.
Quoted 32 lines
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts new file +26
-0@@ -0,0 +1,1711 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2026, Kaipeng Zeng <[email protected]> + */ + +/dts-v1/; + +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/input/gpio-keys.h> +#include <dt-bindings/input/input.h> +#include <dt-bindings/pinctrl/qcom,pmic-gpio.h> +#include <dt-bindings/regulator/qcom,rpmh-regulator.h> + +#include "hamoa.dtsi" +#include "hamoa-pmics.dtsi" + +/ { + model = "Acer Swift Go Pro AI (SFA14-11)"; + compatible = "acer,sfa14-11", "qcom,x1e78100", "qcom,x1e80100"; + + aliases { + serial0 = &uart21; + serial1 = &uart14; + }; +
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts line 36
Quoted 10 lines
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts new file +10
-0+ backlight: backlight { + compatible = "pwm-backlight"; + + pwms = <&pm8550_pwm 3 5000000>; + power-supply = <&vreg_edp_bl>; + + brightness-levels = <254 225 200 175 150 125 100 75 65 60 55>; + default-brightness-level = <8>; + + status = "okay";
Who disabled it that you need to enable?
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts line 47
Quoted 11 lines
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts new file +11
-0+ }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + gpio-keys { + compatible = "gpio-keys"; + + pinctrl-0 = <&hall_int_n_default>, <&kypd_vol_up_n>; + pinctrl-names = "default";
Why isn't this enabled in such case?
Quoted 124 lines
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts new file +124
-0+ + key-vol-up { + label = "volume_up"; + gpios = <&pm8550_gpios 6 GPIO_ACTIVE_LOW>; + linux,code = <KEY_VOLUMEUP>; + wakeup-source; + }; + + switch-lid { + label = "lid"; + gpios = <&tlmm 92 GPIO_ACTIVE_LOW>; + linux,input-type = <EV_SW>; + linux,code = <SW_LID>; + wakeup-source; + wakeup-event-action = <EV_ACT_DEASSERTED>; + }; + }; + + hdmi-bridge { + compatible = "realtek,rtd2171"; + + pinctrl-0 = <&hdmi_hpd_default>; + pinctrl-names = "default"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + hdmi_bridge_dp_in: endpoint { + remote-endpoint = <&usb_1_ss2_qmpphy_out_dp>; + }; + }; + + port@1 { + reg = <1>; + + hdmi_bridge_tmds_out: endpoint { + remote-endpoint = <&hdmi_con>; + }; + }; + }; + }; + + hdmi-connector { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_con: endpoint { + remote-endpoint = <&hdmi_bridge_tmds_out>; + }; + }; + }; + + pmic-glink { + compatible = "qcom,x1e80100-pmic-glink", + "qcom,sm8550-pmic-glink", + "qcom,pmic-glink"; + #address-cells = <1>; + #size-cells = <0>; + orientation-gpios = <&tlmm 121 GPIO_ACTIVE_HIGH>, + <&tlmm 123 GPIO_ACTIVE_HIGH>, + <&tlmm 125 GPIO_ACTIVE_HIGH>; + + nvmem-cells = <&charge_limit_en>, + <&charge_limit_end>, + <&charge_limit_delta>; + nvmem-cell-names = "charge_limit_en", + "charge_limit_end", + "charge_limit_delta"; + + /* have only one typec */ + connector@0 { + compatible = "usb-c-connector"; + reg = <0>; + power-role = "dual"; + data-role = "dual"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + pmic_glink_ss0_hs_in: endpoint { + remote-endpoint = <&usb_1_ss0_dwc3_hs>; + }; + }; + + port@1 { + reg = <1>; + + pmic_glink_ss0_ss_in: endpoint { + remote-endpoint = <&retimer_ss0_ss_out>; + }; + }; + + port@2 { + reg = <2>; + + pmic_glink_ss0_con_sbu_in: endpoint { + remote-endpoint = <&retimer_ss0_con_sbu_out>; + }; + }; + }; + }; + }; + + reserved-memory { + linux,cma { + compatible = "shared-dma-pool"; + size = <0x0 0x8000000>; + reusable; + linux,cma-default; + }; + adsp_fastrpc_mem: fastrpc-adsp { + compatible = "shared-dma-pool"; + reusable; + size = <0x0 0x800000>; + };
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts line 181
Quoted 10 lines
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts new file +10
-0+ cdsp_fastrpc_mem: fastrpc-cdsp { + compatible = "shared-dma-pool"; + reusable; + size = <0x0 0x800000>; + }; + }; + + sound { + compatible = "qcom,x1e80100-sndcard"; + model = "X1E80100-CRD";
Wrong model name, you do not have CRD here... unless you want to say that sound card is exactly identical. That would be the first case, so if you do something completely different than every other DTS, you need to explain it in comments.
Quoted 259 lines
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts new file +259
-0+ audio-routing = "WooferLeft IN", "WSA WSA_SPK1 OUT", + "TweeterLeft IN", "WSA WSA_SPK2 OUT", + "WooferRight IN", "WSA2 WSA_SPK1 OUT", + "TweeterRight IN", "WSA2 WSA_SPK2 OUT", + "IN1_HPHL", "HPHL_OUT", + "IN2_HPHR", "HPHR_OUT", + "AMIC2", "MIC BIAS2", + "VA DMIC0", "MIC BIAS3", + "VA DMIC1", "MIC BIAS3", + "VA DMIC2", "MIC BIAS1", + "VA DMIC3", "MIC BIAS1", + "TX SWR_INPUT1", "ADC2_OUTPUT"; + + displayport-0-dai-link { + link-name = "DisplayPort0 Playback"; + + codec { + sound-dai = <&mdss_dp0>; + }; + + cpu { + sound-dai = <&q6apmbedai DISPLAY_PORT_RX_0>; + }; + + platform { + sound-dai = <&q6apm>; + }; + }; + + wcd-playback-dai-link { + link-name = "WCD Playback"; + + cpu { + sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_0>; + }; + + codec { + sound-dai = <&wcd938x 0>, <&swr1 0>, <&lpass_rxmacro 0>; + }; + + platform { + sound-dai = <&q6apm>; + }; + }; + + wcd-capture-dai-link { + link-name = "WCD Capture"; + + cpu { + sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>; + }; + + codec { + sound-dai = <&wcd938x 1>, <&swr2 1>, <&lpass_txmacro 0>; + }; + + platform { + sound-dai = <&q6apm>; + }; + }; + + wsa-dai-link { + link-name = "WSA Playback"; + + cpu { + sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>; + }; + + codec { + sound-dai = <&left_woofer>, <&left_tweeter>, + <&swr0 0>, <&lpass_wsamacro 0>, + <&right_woofer>, <&right_tweeter>, + <&swr3 0>, <&lpass_wsa2macro 0>; + }; + + platform { + sound-dai = <&q6apm>; + }; + }; + + va-dai-link { + link-name = "VA Capture"; + + cpu { + sound-dai = <&q6apmbedai VA_CODEC_DMA_TX_0>; + }; + + codec { + sound-dai = <&lpass_vamacro 0>; + }; + + platform { + sound-dai = <&q6apm>; + }; + }; + }; + + vph_pwr: regulator-vph-pwr { + compatible = "regulator-fixed"; + + regulator-name = "vph_pwr"; + regulator-min-microvolt = <3700000>; + regulator-max-microvolt = <3700000>; + + regulator-always-on; + regulator-boot-on; + }; + + vreg_edp_3p3: regulator-edp-3p3 { + compatible = "regulator-fixed"; + + regulator-name = "VREG_EDP_3P3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + + gpio = <&tlmm 70 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-0 = <&edp_reg_en>; + pinctrl-names = "default"; + + regulator-always-on; + }; + + vreg_edp_bl: regulator-edp-bl { + compatible = "regulator-fixed"; + + regulator-name = "VBL9"; + regulator-min-microvolt = <3600000>; + regulator-max-microvolt = <3600000>; + + regulator-always-on; + regulator-boot-on; + }; + + vreg_misc_3p3: regulator-misc-3p3 { + compatible = "regulator-fixed"; + + regulator-name = "VREG_MISC_3P3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + + gpio = <&pm8550ve_8_gpios 6 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-names = "default"; + pinctrl-0 = <&misc_3p3_reg_en>; + + regulator-boot-on; + regulator-always-on; + }; + + vreg_nvme: regulator-nvme { + compatible = "regulator-fixed"; + + regulator-name = "VREG_NVME_3P3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + + gpio = <&tlmm 18 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-names = "default"; + pinctrl-0 = <&nvme_reg_en>; + + regulator-boot-on; + }; + + vreg_rtmr0_1p15: regulator-rtmr0-1p15 { + compatible = "regulator-fixed"; + + regulator-name = "VREG_RTMR0_1P15"; + regulator-min-microvolt = <1150000>; + regulator-max-microvolt = <1150000>; + + gpio = <&pmc8380_5_gpios 8 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-0 = <&usb0_pwr_1p15_reg_en>; + pinctrl-names = "default"; + + regulator-boot-on; + }; + + vreg_rtmr0_1p8: regulator-rtmr0-1p8 { + compatible = "regulator-fixed"; + + regulator-name = "VREG_RTMR0_1P8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + + gpio = <&pm8550ve_9_gpios 8 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-0 = <&usb0_1p8_reg_en>; + pinctrl-names = "default"; + + regulator-boot-on; + }; + + vreg_rtmr0_3p3: regulator-rtmr0-3p3 { + compatible = "regulator-fixed"; + + regulator-name = "VREG_RTMR0_3P3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + + gpio = <&pm8550_gpios 11 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-0 = <&usb0_3p3_reg_en>; + pinctrl-names = "default"; + + regulator-boot-on; + }; + + vreg_wcn_0p95: regulator-wcn-0p95 { + compatible = "regulator-fixed"; + + regulator-name = "VREG_WCN_0P95"; + regulator-min-microvolt = <950000>; + regulator-max-microvolt = <950000>; + + vin-supply = <&vreg_wcn_3p3>; + }; + + vreg_wcn_1p9: regulator-wcn-1p9 { + compatible = "regulator-fixed"; + + regulator-name = "VREG_WCN_1P9"; + regulator-min-microvolt = <1900000>; + regulator-max-microvolt = <1900000>; + + vin-supply = <&vreg_wcn_3p3>; + }; + + vreg_wcn_3p3: regulator-wcn-3p3 { + compatible = "regulator-fixed"; + + regulator-name = "VREG_WCN_3P3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + + gpio = <&tlmm 214 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-0 = <&wcn_sw_en>; + pinctrl-names = "default"; + + regulator-boot-on; + }; + + vreg_wwan: regulator-wwan { + compatible = "regulator-fixed"; + + regulator-name = "SDX_VPH_PWR"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; +
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts line 450
Quoted 10 lines
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts new file +10
-0+ gpio = <&tlmm 221 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-0 = <&wwan_sw_en>; + pinctrl-names = "default"; + + regulator-boot-on; + }; + + wcd938x: audio-codec {
Messed up sorting of nodes. It seems you copied CRD, so why did you break the CRD proper code?
Best regards,
Krzysztof
[email protected]
AI reviewRe: [PATCH 2/2] arm64: dts: qcom: Add support for Acer Swift Go Pro AI (SFA14-11)
In reply to Kaipeng ZengThank you for your contribution! Sashiko AI review found 6 potential issue(s) to consider: - [High] WSA8845 speakers use `reset-gpios` instead of `powerdown-gpios` and share the GPIO incorrectly.…
Thank you for your contribution! Sashiko AI review found 6 potential issue(s) to consider:
- [High] WSA8845 speakers use reset-gpios instead of powerdown-gpios and share the GPIO incorrectly.
- [High] Type-C Switch Configuration Error on Type-A Port due to inherited PHY properties.
- [Medium] Missing Audio DAI Link for HDMI output.
- [Medium] Commit message claims 'Webcam' support but no camera nodes are added.
- [Low] Inaccurate orientation-gpios array length in pmic-glink.
- [Low] The High-Speed USB PHY usb_1_ss2_hsphy is enabled despite no USB controller consuming it. --
commit 61c654b8218e8d2d66d2d6d5ec3990a2ffe03533
Author: Kaipeng Zeng <[email protected]>
Subject: arm64: dts: qcom: Add support for Acer Swift Go Pro AI (SFA14-11)
This commit introduces the device tree for the Acer Swift Go Pro AI (SFA14-11) laptop, based on the Snapdragon X Elite SoC. It enables core hardware features including internal display, USB, Wi-Fi, audio routing, and HDMI output.
Quoted 10 lines
Supported features:
- Internal display & Brightness control
- Keyboard & Touchpad
- USB Type-C, Type-A
- Wi-Fi & Bluetooth
- ADSP & CDSP
- Adreno X1-85 GPU
- HDMI & USB Type-C display
- Webcam
[Severity: Medium]
Is the webcam feature fully implemented in this patch? The commit message lists Webcam as a supported feature, but a review of the device tree reveals no camss, cci, or image sensor nodes added in this patch.
Quoted 5 lines
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts new file +0
-0
[ ... ]
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts line 113
Quoted 9 lines
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts new file +9
-0+ pmic-glink { + compatible = "qcom,x1e80100-pmic-glink", + "qcom,sm8550-pmic-glink", + "qcom,pmic-glink"; + #address-cells = <1>; + #size-cells = <0>; + orientation-gpios = <&tlmm 121 GPIO_ACTIVE_HIGH>, + <&tlmm 123 GPIO_ACTIVE_HIGH>, + <&tlmm 125 GPIO_ACTIVE_HIGH>;
[Severity: Low]
Does this array length match the number of connectors? The qcom,pmic-glink bindings require the orientation-gpios array to contain exactly one GPIO entry per connector node. This board explicitly defines only one connector, but supplies three GPIOs here.
[ ... ]
Quoted 23 lines
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts new file +23
-0+ sound { + compatible = "qcom,x1e80100-sndcard"; + model = "X1E80100-CRD"; + audio-routing = "WooferLeft IN", "WSA WSA_SPK1 OUT", + "TweeterLeft IN", "WSA WSA_SPK2 OUT", + "WooferRight IN", "WSA2 WSA_SPK1 OUT", + "TweeterRight IN", "WSA2 WSA_SPK2 OUT", + "IN1_HPHL", "HPHL_OUT", + "IN2_HPHR", "HPHR_OUT", + "AMIC2", "MIC BIAS2", + "VA DMIC0", "MIC BIAS3", + "VA DMIC1", "MIC BIAS3", + "VA DMIC2", "MIC BIAS1", + "VA DMIC3", "MIC BIAS1", + "TX SWR_INPUT1", "ADC2_OUTPUT"; + + displayport-0-dai-link { + link-name = "DisplayPort0 Playback"; + + codec { + sound-dai = <&mdss_dp0>; + }; +
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts line 211
Quoted 10 lines
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts new file +10
-0+ cpu { + sound-dai = <&q6apmbedai DISPLAY_PORT_RX_0>; + }; + + platform { + sound-dai = <&q6apm>; + }; + }; + + wcd-playback-dai-link {
[Severity: Medium]
Will audio work over HDMI without a DAI link for mdss_dp2? The board routes HDMI through a bridge connected to mdss_dp2, but the sound node only defines a DAI link for mdss_dp0. Without displayport-2-dai-link, the audio driver may not expose the HDMI audio endpoint to userspace.
[ ... ]
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts line 1297
Quoted 11 lines
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts new file +11
-0+ swr0 { + pinctrl-0 = <&wsa_swr_active>, <&spkr_01_sd_n_active>; + pinctrl-names = "default"; + + status = "okay"; + + /* WSA8845, Left Woofer */ + left_woofer: speaker@0,0 { + compatible = "sdw20217020400"; + reg = <0 0>; + reset-gpios = <&lpass_tlmm 12 GPIO_ACTIVE_LOW>;
[Severity: High]
Should this use powerdown-gpios instead of reset-gpios? The ASoC WSA884x codec driver does not look for reset-gpios, which means the GPIO is never toggled and the speaker amplifiers might fail to power up.
Additionally, will sharing the GPIO directly here cause a failure when probing the tweeter? The gpiod_get requests exclusive access, so the second probed device could fail with -EBUSY. A gpio-reset controller is usually required to share the line properly.
[ ... ]
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts line 1350
Quoted 11 lines
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts new file +11
-0+ swr3 { + pinctrl-0 = <&wsa2_swr_active>, <&spkr_23_sd_n_active>; + pinctrl-names = "default"; + + status = "okay"; + + /* WSA8845, Right Woofer */ + right_woofer: speaker@0,0 { + compatible = "sdw20217020400"; + reg = <0 0>; + reset-gpios = <&lpass_tlmm 13 GPIO_ACTIVE_LOW>;
[Severity: High]
Similar to the left woofer, does this need to use powerdown-gpios and a gpio-reset controller to avoid probe failures?
[ ... ]
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts line 1631
Quoted 6 lines
+&usb_1_ss1_qmpphy {
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts new file +5
-0+ vdda-phy-supply = <&vreg_l2j_1p2>; + vdda-pll-supply = <&vreg_l2d_0p9>; + + status = "okay"; +};
[Severity: High]
Does this node need to explicitly delete the mode-switch and orientation-switch properties? In hamoa.dtsi, usb_1_ss1_qmpphy is defined as a combo PHY and contains those properties, which causes the PHY driver to register a Type-C switch and default to TYPEC_ORIENTATION_NONE.
Since this board uses a regular Type-A port here and won't receive Type-C orientation events, this can leave the USB 3.0 lanes permanently disabled, degrading the port to USB 2.0.
[ ... ]
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts line 1595
Quoted 6 lines
+&usb_1_ss2_hsphy {
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts new file +5
-0+ vdd-supply = <&vreg_l3j_0p8>; + vdda12-supply = <&vreg_l2j_1p2>; + + status = "okay"; +};
[Severity: Low]
Is it necessary to enable this High-Speed PHY? The usb_1_ss2 controller is disabled because this port is exclusively used for DisplayPort output. Enabling the PHY without a USB controller to consume it leaves a dangling device probing indefinitely.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
Re: [PATCH 2/2] arm64: dts: qcom: Add support for Acer Swift Go Pro AI (SFA14-11)
In reply to Kaipeng ZengQuoted 17 lines · Kaipeng Zeng
Introduce device tree for the Acer Swift Go Pro AI (SFA14-11). It is a laptop based on the Qualcomm Snapdragon X Elite (X1E78100) SoC. This device tree implementation references nodes from the
x1-crd.dtsi.Supported features:
- Internal display & Brightness control
- Keyboard & Touchpad
- USB Type-C, Type-A
- Wi-Fi & Bluetooth
- ADSP & CDSP
- Adreno X1-85 GPU
- HDMI & USB Type-C display
- WebcamSigned-off-by Kaipeng Zeng <[email protected]>---
[...]
Quoted 8 lines
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts new file +8
-0+ pmic-glink { + compatible = "qcom,x1e80100-pmic-glink", + "qcom,sm8550-pmic-glink", + "qcom,pmic-glink"; + #address-cells = <1>; + #size-cells = <0>; + orientation-gpios = <&tlmm 121 GPIO_ACTIVE_HIGH>, + <&tlmm 123 GPIO_ACTIVE_HIGH>,
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts line 122
Quoted 10 lines
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts new file +10
-0+ <&tlmm 125 GPIO_ACTIVE_HIGH>; + + nvmem-cells = <&charge_limit_en>, + <&charge_limit_end>, + <&charge_limit_delta>; + nvmem-cell-names = "charge_limit_en", + "charge_limit_end", + "charge_limit_delta"; + + /* have only one typec */
I think this comment is superfluous
[...]
Quoted 8 lines
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts new file +8
-0+ reserved-memory { + linux,cma { + compatible = "shared-dma-pool"; + size = <0x0 0x8000000>; + reusable; + linux,cma-default; + }; + adsp_fastrpc_mem: fastrpc-adsp {
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts line 177
Quoted 10 lines
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts new file +10
-0+ compatible = "shared-dma-pool"; + reusable; + size = <0x0 0x800000>; + }; + cdsp_fastrpc_mem: fastrpc-cdsp { + compatible = "shared-dma-pool"; + reusable; + size = <0x0 0x800000>; + }; + };
The latter two will (likely?) be assigned in the common DTSI soon, you can drop them
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts line 181
Quoted 4 lines
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts new file +4
-0+ + sound { + compatible = "qcom,x1e80100-sndcard"; + model = "X1E80100-CRD";
This must match your machine
[...]
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts line 450
Quoted 1 line
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts new file +1
-0+ wcd938x: audio-codec {
Nodes should be sorted - by 'reg' and unit address if there's one, by name if there isn't (minus some special cases like GPIOs), see:
https://docs.kernel.org/devicetree/bindings/dts-coding-style.html
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts line 454
Quoted 6 lines
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts new file +4
-0+ compatible = "qcom,wcd9385-codec"; + + pinctrl-names = "default"; + pinctrl-0 = <&wcd_default>;
property-n
property-names
in this order, file-wide, please
[...]
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts line 539
Quoted 4 lines
+&apps_rsc {
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts new file +3
-0+ regulators-0 { + compatible = "qcom,pm8550-rpmh-regulators"; + qcom,pmic-id = "b";
Have you verified this against the DSDT of your device? Incorrect settings may lead to hw damage
[...]
Review
Quoted 2 lines
+&iris {
(quoted diff) +1
-0+ status = "okay";
You need to specify a firmare path
Konrad
Re: [PATCH 2/2] arm64: dts: qcom: Add support for Acer Swift Go Pro AI (SFA14-11)
Hi Konrad,
Quoted 11 lines · Konrad Dybcio
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts line 450
Quoted 1 line · Kaipeng Zeng
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts new file +1
-0+ wcd938x: audio-codec {Nodes should be sorted - by 'reg' and unit address if there's one, by name if there isn't (minus some special cases like GPIOs), see:
https://docs.kernel.org/devicetree/bindings/dts-coding-style.html
Quoted 1 line
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts new file +1
-0+ compatible = "qcom,wcd9385-codec";
Quoted 9 lines
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts line 454
Quoted 3 lines
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts new file +3
-0+ + pinctrl-names = "default"; + pinctrl-0 = <&wcd_default>;property-n
property-namesin this order, file-wide, please
Got it, I will fix the property order file-wide.
Should I sort all nodes, including those copied from the x1-crd.dtsi? For example, vph_pwr is inserted between two vreg_* nodes in x1-crd.dtsi.
Quoted 10 lines
[...]
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts line 539
Quoted 4 lines
+&apps_rsc {
arch/arm64/boot/dts/qcom/x1e78100-acer-sfa14-11.dts new file +3
-0+ regulators-0 { + compatible = "qcom,pm8550-rpmh-regulators"; + qcom,pmic-id = "b";Have you verified this against the DSDT of your device? Incorrect settings may lead to hw damage
Quoted 2 lines
[...]
Thank you for pointing this out, I had not verified this before.
Looking inside the DSDT, I found some "PMICVREGVOTE" packages that list a value as the required voltage.
And I need to check if any required voltage falls outside the
range set by DTS. Is that correct?
However, some PPP_RESOURCE_ID_* seem to be mentioned only and lack a specific voltage. For these, should I retain the original value (from x1e80100-crd.dtsi), or is there another way to determine their correct ranges?
Quoted 5 lines
Review
Quoted 2 lines
+&iris {
(quoted diff) +1
-0+ status = "okay";You need to specify a firmare path
I will add a firmware path.
But since the firmware of this device is not archived by linux-firmware, is it proper to use "qcom/x1e80100/ACER/SFA14-11/*.mbn" as the firmware path? Currently, I use it for all firmware paths.
Quoted 1 line
Konrad
Thank you again for your helpful replies!
Re: [PATCH 2/2] arm64: dts: qcom: Add support for Acer Swift Go Pro AI (SFA14-11)
Quoted 11 lines · Kaipeng Zeng
Hi Konrad,
Quoted 7 lines · Konrad Dybcio
Quoted 1 line · Kaipeng Zeng
+ wcd938x: audio-codec {
Nodes should be sorted - by 'reg' and unit address if there's one, by name if there isn't (minus some special cases like GPIOs), see:
https://docs.kernel.org/devicetree/bindings/dts-coding-style.html
[...]
Quoted 11 lines
Quoted 10 lines
Quoted 4 lines
+&apps_rsc {
+ regulators-0 {
+ compatible = "qcom,pm8550-rpmh-regulators"; + qcom,pmic-id = "b";Have you verified this against the DSDT of your device? Incorrect settings may lead to hw damage
[...]
Quoted 8 lines
Thank you for pointing this out, I had not verified this before.
Looking inside the DSDT, I found some "PMICVREGVOTE" packages that list a value as the required voltage.
And I need to check if any required voltage falls outside the
range set by DTS. Is that correct?
However, some PPP_RESOURCE_ID_* seem to be mentioned only and lack a specific voltage. For these, should I retain the original value (fromx1e80100-crd.dtsi), or is there another way to determine their correct ranges?
You can only reasonably-safely copy settings for L12B and L15B (they power always-on components) and regulators that supply the on-SoC components (like PHYs). Everything else may be board specific, so avoid if unsure.
Quoted 9 lines
Quoted 6 lines
Quoted 3 lines
+&iris {
+ status = "okay";You need to specify a firmare path
I will add a firmware path.
But since the firmware of this device is not archived by linux-firmware, is it proper to use "qcom/x1e80100/ACER/SFA14-11/*.mbn" as the firmware path?
Yes, it's still useful if you e.g. keep a local firmware package, since it allows for the same image to be reused across machines (you don't have to overwrite the existing files)
Konrad