Skip to contentSkip to conversation

arm64: dts: qcom: Add support for the Ayaneo Pocket S2

PATCH Applied Neil Armstrong 2 participants 7 messages Mar 19 – Mar 24

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

v6 cover arm64: dts: qcom: Add support for the Ayaneo Pocket S2

The Ayaneo Pocket S2 is a gaming console based on the Qualcomm Snapdragon 8 Gen 3. It has an internal UFS storage, WiFi, Bluetooth, gaming buttons, SDCard, 2K display and USB-C connector.

Product Page [1].

The Initial linux port was done by KancyJoe (Sunflower2333) at [2].

The UPD720201 binding patch has been sent separately in [3] and is ready to be merged. The pci/pwrctrl changes were merged in the pci tree.

[1] https://www.ayaneo.com/goods/9344082149621
[2] https://github.com/sunflower2333/linux/tree/master
[3] https://lore.kernel.org/all/20260319-topic-sm8650-ayaneo-pocket-s2-upd-bindings-v1-1-84e4ef564022@linaro.org/

---
Changes in v6:
- Added the review tags
- Dropped all the pci/pwrctrl applied patches
- Sent the UPD720201 bindings in a separate patch
- Link to v5: https://patch.msgid.link/20260220-topic-sm8650-ayaneo-pocket-s2-base-v5-0-1ad79caa1efa@linaro.org

Changes in v5:
- Rebased on -next
- Collected tags
- Rebased/renamed slot to generic based on changes from Bjorn
- Link to v4: https://patch.msgid.link/20260216-topic-sm8650-ayaneo-pocket-s2-base-v4-0-802c82795431@linaro.org

Changes in v4:
- Renamed slot to generic, in the code as well, fixed Kconfig & commit message
- Switched the UPD72020x bindings additionalProperties to true to allow devices subnodes
- Collected acks
- Link to v3: https://patch.msgid.link/20260206-topic-sm8650-ayaneo-pocket-s2-base-v3-0-5b79c5d61a03@linaro.org

Changes in v3:
- Made renesas,upd720201-pci bindings supplies required
- Fixed description and example of renesas,upd720201-pci bindings
- Renamed slot to generic, added renesas,upd720201-pci entry
- Used PMIC_GPIO_STRENGTH_LOW instead of numbers
- Removed all output-low in pinconf
- Link to v2: https://patch.msgid.link/20260127-topic-sm8650-ayaneo-pocket-s2-base-v2-0-c55ec1b5d8bf@linaro.org

Changes in v2:
- Add proper regulators for the USB controller, with bindings & power ctrl
- Add proper regulators for FAN
- Dropped support for headset over USB-C, audio is connected to a jack port
- Cleaned up Audio routing and fixed the DP endpoint index
- Added i2c clk frequencies
- Renamed fan node and used interrupts-extended
- Dropped the usb-c self-powered
- Reordered nodes alphabetically
- Renamed pcieport1 to pcie1_port0
- Link to v1: https://patch.msgid.link/20260121-topic-sm8650-ayaneo-pocket-s2-base-v1-0-bb3f95f1c085@linaro.org

---
KancyJoe (1):
arm64: dts: qcom: add basic devicetree for Ayaneo Pocket S2 gaming console

Neil Armstrong (4):
arm64: defconfig: enable pci-pwrctrl-generic as module
dt-binding: vendor-prefixes: document the Ayaneo brand
dt-bindings: arm: qcom: document the Ayaneo Pocket S2
arm64: dts: qcom: sm8650: Add sound DAI prefix for DP

 Documentation/devicetree/bindings/arm/qcom.yaml    |    1 +
 .../devicetree/bindings/vendor-prefixes.yaml       |    2 +
 arch/arm64/boot/dts/qcom/Makefile                  |    1 +
 .../boot/dts/qcom/sm8650-ayaneo-pocket-s2.dts      | 1551 ++++++++++++++++++++
 arch/arm64/boot/dts/qcom/sm8650.dtsi               |   47 +-
 arch/arm64/configs/defconfig                       |    1 +
 6 files changed, 1580 insertions(+), 23 deletions(-)

---
base-commit: 8e42d2514a7e8eb8d740d0ba82339dd6c0b6463f
change-id: 20260121-topic-sm8650-ayaneo-pocket-s2-base-05c348efd86d

Best regards,

Signature · 1 line
Neil Armstrong <[email protected]>
#1 lore raw

PATCH v6 1/5 arm64: defconfig: enable pci-pwrctrl-generic as module

Enable the generic power control driver module since it's required to power up the PCIe USB3 controller found on the Ayaneo Pocket S2 gaming console.

---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +1 -0
index 18881bd239f9..47347da14900 100644
@@ -258,6 +258,7 @@ CONFIG_PCIE_LAYERSCAPE_GEN4=y
 CONFIG_PCI_ENDPOINT=y
 CONFIG_PCI_ENDPOINT_CONFIGFS=y
 CONFIG_PCI_EPF_TEST=m
+CONFIG_PCI_PWRCTRL_GENERIC=m
 CONFIG_DEVTMPFS=y
 CONFIG_DEVTMPFS_MOUNT=y
 CONFIG_FW_LOADER_USER_HELPER=y
Signature · 1 line
2.34.1
#2 lore raw

PATCH v6 2/5 dt-binding: vendor-prefixes: document the Ayaneo brand

In reply to Neil Armstrong

Document the Ayaneo from the Anyun Intelligent Technology (Hong Kong) Co., Ltd company.
Website: https://www.ayaneo.com/product/ayaneobrand.html

---
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
index 5a806faf7170..1e9338a50d8c 100644
@@ -221,6 +221,8 @@ patternProperties:
     description: Axiado Corporation
   "^axis,.*":
     description: Axis Communications AB
+  "^ayaneo,.*":
+    description: Anyun Intelligent Technology (Hong Kong) Co., Ltd
   "^azoteq,.*":
     description: Azoteq (Pty) Ltd
   "^azw,.*":
Signature · 1 line
2.34.1
#3 lore raw

PATCH v6 3/5 dt-bindings: arm: qcom: document the Ayaneo Pocket S2

In reply to Neil Armstrong

Document the Qualcomm SM8650 based Ayaneo Pocket S2 gaming console.

---
 Documentation/devicetree/bindings/arm/qcom.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/qcom.yaml +1 -0
index d054a8f5632d..0a6312b15712 100644
@@ -1077,6 +1077,7 @@ properties:
 
       - items:
           - enum:
+              - ayaneo,pocket-s2
               - qcom,sm8650-hdk
               - qcom,sm8650-mtp
               - qcom,sm8650-qrd
Signature · 1 line
2.34.1
#4 lore raw

PATCH v6 4/5 arm64: dts: qcom: sm8650: Add sound DAI prefix for DP

In reply to Neil Armstrong

Sound DAI devices exposing same set of mixers, e.g. each DisplayPort controller, need to add dedicated prefix for these mixers to avoid conflicts and to allow ALSA to properly configure given instance.

---
 arch/arm64/boot/dts/qcom/sm8650.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/qcom/sm8650.dtsi +1 -0
index 357e43b90740..f172c78367c7 100644
@@ -5905,6 +5905,7 @@ mdss_dp0: displayport-controller@af54000 {
 				phy-names = "dp";
 
 				#sound-dai-cells = <0>;
+				sound-name-prefix = "DisplayPort0";
 
 				status = "disabled";
 
Signature · 1 line
2.34.1
#5 lore raw

PATCH v6 5/5 arm64: dts: qcom: add basic devicetree for Ayaneo Pocket S2 gaming console

In reply to Neil Armstrong

From: KancyJoe <[email protected]>

Add initial Device Tree for the Ayaneo Pocket S2 gaming console based on the Qualcomm Snapdragon 8 Gen 3 platform.

The design is similar to a phone without the modem, the game control is handled via a standalone controller connected to a PCIe USB controller.

Display panel support will be added in a second time.

---
 arch/arm64/boot/dts/qcom/Makefile                  |    1 +
 .../boot/dts/qcom/sm8650-ayaneo-pocket-s2.dts      | 1551 ++++++++++++++++++++
 arch/arm64/boot/dts/qcom/sm8650.dtsi               |   46 +-
 3 files changed, 1575 insertions(+), 23 deletions(-)
arch/arm64/boot/dts/qcom/Makefile +1 -0
index 02921a495b2c..b0ec17907113 100644
@@ -353,6 +353,7 @@ dtb-$(CONFIG_ARCH_QCOM)	+= sm8550-mtp.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sm8550-qrd.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sm8550-samsung-q5q.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sm8550-sony-xperia-yodo-pdx234.dtb
+dtb-$(CONFIG_ARCH_QCOM)	+= sm8650-ayaneo-pocket-s2.dtb
 
 sm8650-hdk-display-card-dtbs	:= sm8650-hdk.dtb sm8650-hdk-display-card.dtbo
 sm8650-hdk-display-card-rear-camera-card-dtbs	:= sm8650-hdk.dtb sm8650-hdk-display-card.dtbo sm8650-hdk-rear-camera-card.dtbo
arch/arm64/boot/dts/qcom/sm8650-ayaneo-pocket-s2.dts new file +1551 -0

1,551 lines not on this page · raw message

arch/arm64/boot/dts/qcom/sm8650.dtsi +23 -23

184 lines not on this page · raw message

Signature · 1 line
2.34.1
maintainer Applied
#6 lore raw

Re: (subset) [PATCH v6 0/5] arm64: dts: qcom: Add support for the Ayaneo Pocket S2

In reply to Neil Armstrong
Quoted 8 lines · Neil Armstrong

The Ayaneo Pocket S2 is a gaming console based on the Qualcomm Snapdragon 8 Gen 3. It has an internal UFS storage, WiFi, Bluetooth, gaming buttons, SDCard, 2K display and USB-C connector.

Product Page [1].

[...]

Applied, thanks!

[1/5] arm64: defconfig: enable pci-pwrctrl-generic as module

      commit: fdeb077b8ae53a6ef772c5b3c4d1f3a408dac2a0

Best regards,

Signature · 1 line
Bjorn Andersson <[email protected]>