From patchwork Tue Jan 14 14:18:55 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricky Cheung via B4 Relay X-Patchwork-Id: 13938832 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5CB7713A3F7; Tue, 14 Jan 2025 14:18:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736864338; cv=none; b=XW7JXODfbKhWzFu+JXf8oN1ARz+QL638NVa+QeXbTpTsgyrL/vA5rIyfEJytjkIT9DAZNfOnvon81QiW3ho46m1Ek81kH7urzdnY0VVasLYybtauxV4gzTmRsghsIhIH2qSn9z4Aw1RMQ7U/+7yzQkdW/4UdoMdw0TLZ5cL7Lys= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736864338; c=relaxed/simple; bh=vcyeBmSbSgree/fFE1hvcj9N4VexLe+jdjZA0V6hTBg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HbxuPF+AvLdqakFCCt0ySmIKER+8dkYJ012/aFZ3OSu+xb07/2hKt1Rpr1fRA8KzXkOra1Zw5dG4Eo+LV1Q/2EWruRizjwr5i4gmSoXHQ/WdTUfkmmp/GbNdsFskGpB1zTdPhoUugIohkGRCZmsOub+2EGSWZN1hKU4Fko8ggZc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=E2dlSPKV; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="E2dlSPKV" Received: by smtp.kernel.org (Postfix) with ESMTPS id DDE23C4CEE7; Tue, 14 Jan 2025 14:18:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1736864337; bh=vcyeBmSbSgree/fFE1hvcj9N4VexLe+jdjZA0V6hTBg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=E2dlSPKVC6ZEjzGcRXSi8Sd8SlNQFdy+UWmJHkxlynWlc9q+MzdBxS8/E4nSl0f2K SUfQuVoz4AHH2nNVbNXDI7sdDCf/Qf9Lf+iahccFQ0mJ0lgs7O7vTcDsEaEAa9WNge GsB6b1qj4nQ6qz2wFp6wYN8ITf0VBUxxoIwCqqpkEA2tqohWm3FzzUOcL4/fDB/JJF XRmUPoE1CIKAGBhh8PnXd4394FL0MfBe/g5E/ou/xRylQzodkRM91SjRAywJbFlb85 7B2OUi8eGff9rolT+NpSjBhbid9NCXNWBOIPaGP8slEoG4y2C2BiWIZNbb/ohaSrZQ Cdby9aA33BAlQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id C9CFFC02183; Tue, 14 Jan 2025 14:18:57 +0000 (UTC) From: Ricky Cheung via B4 Relay Date: Tue, 14 Jan 2025 22:18:55 +0800 Subject: [PATCH v2 1/3] dt-bindings: vendor-prefixes: Add XiaoXun BiCheng Technology Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250114-xiaoxun-jz0145-v33-v2-1-8b42f77badfa@gmail.com> References: <20250114-xiaoxun-jz0145-v33-v2-0-8b42f77badfa@gmail.com> In-Reply-To: <20250114-xiaoxun-jz0145-v33-v2-0-8b42f77badfa@gmail.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Ricky Cheung X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1736864336; l=1085; i=rcheung844@gmail.com; s=20250114; h=from:subject:message-id; bh=YLItZhmnioQz+msagvBTQwosqfJj9133Wi6WbhZanLw=; b=JG54DA3vK6ssV+27pPJLKGmBrIHn2deyI642+5k5tfAEgbZ4s9k8MvOiBB+RRYkEIbbmtefvg +0s5lA3mRHGDYfItHYiWo5ZtaFclcc76r2Ed2suckpLPb7dv42fV3uQ X-Developer-Key: i=rcheung844@gmail.com; a=ed25519; pk=JjZsSnuDD1xuR4EXY4XGKELgToA++HxxheDlHU/41yI= X-Endpoint-Received: by B4 Relay for rcheung844@gmail.com/20250114 with auth_id=323 X-Original-From: Ricky Cheung Reply-To: rcheung844@gmail.com From: Ricky Cheung Add a vendor prefix for XiaoXun BiCheng Technology, which was an online store on TaoBao selling 4G LTE WiFi modems. TaoBao mostly require stores to be operated by companies, so they are a valid vendor. However, this company has ended operations recently. Signed-off-by: Ricky Cheung --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index b320a39de7fe40ce4d97ed3ea264a5971a3428dd..9bbd21b47201d866ae68e6ae406189266871617f 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -1673,6 +1673,8 @@ patternProperties: description: Extreme Engineering Solutions (X-ES) "^xiaomi,.*": description: Xiaomi Technology Co., Ltd. + "^xiaoxun,.*": + description: XiaoXun BiCheng Technology "^xillybus,.*": description: Xillybus Ltd. "^xingbangda,.*": From patchwork Tue Jan 14 14:18:56 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricky Cheung via B4 Relay X-Patchwork-Id: 13938831 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5CAFC1369AE; Tue, 14 Jan 2025 14:18:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736864338; cv=none; b=cU0nKESl6llkVKdKCWuAM6NXl/Wnxt/WkVguCbbX6Y+fdsS2T91htcCoPmCIIy5D0U7l/fif3hjxVjdAY23R7vt8Yi8kTGenHPHh8yST904dG6F6XpO5f+EEwY6aQHBvbdZWAoJxo2poVxE4SdbSQH+ZXn0CyHTHzj4LTLtHy/s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736864338; c=relaxed/simple; bh=zqK5+u9pQxDXrUlhQIqO4rd9BiRJrfpADnoSryH88Xw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TlYKLrGXq+r0L11NmRlfOHR+fiq1cu1qwJS1DGLUYJVKkT14JNn13+hPIzgt2a771HSpqe3i1uKTSIGlxEwu2JrwkbsHABT/Q20mmM5Yv17N7xcAtwXLi6Xfw6A/9TeFI4e0YmwnPU2Fp74sml19CBWeYssHP+IdvML1A5YgcNc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nL2yCLVi; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nL2yCLVi" Received: by smtp.kernel.org (Postfix) with ESMTPS id F3260C4CEDD; Tue, 14 Jan 2025 14:18:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1736864338; bh=zqK5+u9pQxDXrUlhQIqO4rd9BiRJrfpADnoSryH88Xw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=nL2yCLViz3h5K4FM/MYwjRflCTjvA0xtubb7vCumVXggdWIq1boz3aMVrcd41Hh6v oJjgdpSJSC7OKDA6Km6haogG+w+GneIRhfG6oacdO6RUPUspev5iwgOMbmxlw3OZqP JLd8WPAkDMWhmu/QhqVI5DmJdlSXt2oYTpBddghxPaGnXpCqr8OKYf3w8DEewW6x++ +kn/sBMYAGYBNmE9Pd3NgA+kMQO6klkjGnvIbkm3+SnOXahLRGldFL8dca3EYAuLEW MnbcxWitSCfUSoKNjje0Y3pCi2PBkJbWdJsSSSQBvnfGeBhodnP1Th+hGVTQUaEdxV zpTSRGOU+Rq6g== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id E763AC02187; Tue, 14 Jan 2025 14:18:57 +0000 (UTC) From: Ricky Cheung via B4 Relay Date: Tue, 14 Jan 2025 22:18:56 +0800 Subject: [PATCH v2 2/3] dt-bindings: arm: qcom: Add XiaoXun JZ0145 v33 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250114-xiaoxun-jz0145-v33-v2-2-8b42f77badfa@gmail.com> References: <20250114-xiaoxun-jz0145-v33-v2-0-8b42f77badfa@gmail.com> In-Reply-To: <20250114-xiaoxun-jz0145-v33-v2-0-8b42f77badfa@gmail.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Ricky Cheung X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1736864336; l=777; i=rcheung844@gmail.com; s=20250114; h=from:subject:message-id; bh=rcWv0GEI8Tk+7bGBT8IFODLra+FIFnAENM9Ul2xHUTY=; b=jQu0QupxITpPkUIhpJPtvGbluEi+a+gIOe9iMZMZz+IXouXaVRiYS9toJSWii6HpTB6yBcR5g fSRi+MrQDuQBNgspPW3ZkCa5OI8g4z92m/v5SsVNXx9h1NwbTaOIi8N X-Developer-Key: i=rcheung844@gmail.com; a=ed25519; pk=JjZsSnuDD1xuR4EXY4XGKELgToA++HxxheDlHU/41yI= X-Endpoint-Received: by B4 Relay for rcheung844@gmail.com/20250114 with auth_id=323 X-Original-From: Ricky Cheung Reply-To: rcheung844@gmail.com From: Ricky Cheung Document the MSM8916-based 4G LTE WiFi modem. Signed-off-by: Ricky Cheung --- Documentation/devicetree/bindings/arm/qcom.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml index 5cb54d69af0b7206e0f6a66023a203b8d7087696..92dd91cb66b7b1b26b013a7d32c20dfe44690569 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -245,6 +245,7 @@ properties: - wingtech,wt86518 - wingtech,wt86528 - wingtech,wt88047 + - xiaoxun,jz0145-v33 - yiming,uz801-v3 - const: qcom,msm8916 From patchwork Tue Jan 14 14:18:57 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricky Cheung via B4 Relay X-Patchwork-Id: 13938833 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5CABF13212A; Tue, 14 Jan 2025 14:18:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736864338; cv=none; b=FcBTTM1/RExYo9i0vg9LGpvknxW1IHsBAbDPA6c4Ztm2HyyCKOqoPYWVlVFs6Tn9V2d4uRCBe5XGUCAzAgfl/OUSNZ2RqoPE1Tz8ictAi4yu3flAw5RRaV1nMmRVdwWbpDBbJWFVqIKoEPHzb3JV+ZrvuYdB/4s2XnX2mhQj6B0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736864338; c=relaxed/simple; bh=PdLXMpw6mCU+0JWw02u7MvqnmujtMCIwWZO18hYjTB0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KBhaN1XSV1Zvz5g6cIV941PgtRYCl0X1DBqKggFfoRO6O/QcIfqq4ZgRmpQy4GBy/jKd9fo3WZHgjTPc2LqNGSB34VNn2StEEpki1JLe4JhWYIAIRUrQS4W080XTHyh8hnM9KR2k5uhsQ9mXqB54V1l3qfdANIAaOktpRE3u+YU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jtxP+45+; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jtxP+45+" Received: by smtp.kernel.org (Postfix) with ESMTPS id 147D1C4CEEA; Tue, 14 Jan 2025 14:18:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1736864338; bh=PdLXMpw6mCU+0JWw02u7MvqnmujtMCIwWZO18hYjTB0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=jtxP+45+YLcInoRFZgZw5jvX3sdHsRxvXIHNgpsPMIySFpugtmpLkXA2ZpfTx/Tpr GUYEayl7kkp1EOdySqynrGaUArUcaULz2ZoPMTeqsAdOzvTITbuU8HSx3JlpRq9Rvc IG5OGx2Ivty+rVPPlLwgsB/pz+SY1XHkkwoXq1cR8orPyl1fW/h6qrBN3K9Wi+DWIC nvVoQBnpLciLkHOI5HVL1vWffZOyrSFfWZP3rSfCIsiu7ADE3lW1xK+47tWPOg08b5 iUEFvEH2pHk5NPtvGcnoYtNuswVkvD/WoV6xQOu7kI23Kk/RlXI5KfIHfXjDEjKInl 3WTno3xEaJoWw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0BD26C02185; Tue, 14 Jan 2025 14:18:58 +0000 (UTC) From: Ricky Cheung via B4 Relay Date: Tue, 14 Jan 2025 22:18:57 +0800 Subject: [PATCH v2 3/3] arm64: dts: qcom: msm8916-xiaoxun-jz0145-v33: Add initial device tree Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250114-xiaoxun-jz0145-v33-v2-3-8b42f77badfa@gmail.com> References: <20250114-xiaoxun-jz0145-v33-v2-0-8b42f77badfa@gmail.com> In-Reply-To: <20250114-xiaoxun-jz0145-v33-v2-0-8b42f77badfa@gmail.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Ricky Cheung X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1736864336; l=2981; i=rcheung844@gmail.com; s=20250114; h=from:subject:message-id; bh=aIMQMh96vCDp6yLLJW7U1OCy3sPhGfKYSD82VLXOyKc=; b=4JTSz4foaOONNXGuNxSFhSWovoHrPa542F1OB/cYZsWaxwkGSO+Y8pgGAmFLxmyqPrDKI6brA JG+Mbwz4DhQDyAdopjLxRB0IV98twLvtdGNljcM2B09EqEP4kKhw3MS X-Developer-Key: i=rcheung844@gmail.com; a=ed25519; pk=JjZsSnuDD1xuR4EXY4XGKELgToA++HxxheDlHU/41yI= X-Endpoint-Received: by B4 Relay for rcheung844@gmail.com/20250114 with auth_id=323 X-Original-From: Ricky Cheung Reply-To: rcheung844@gmail.com From: Ricky Cheung This commit implements support for the JZ0145 v33 WiFi/LTE dongle based on MSM8916, which was sold by XiaoXun BiCheng Technology. The stock bootloader could boot with this patch with lk2nd, but only one CPU core would be enabled. Enablement for all CPU cores require lk1st and d410c firmware files. Currently supported / tested: - All CPU cores - Buttons - LEDs - Modem - SDHC - USB Device Mode Although I do not have UART equipment on hand, UART should function and is labelled on the PCB of this device. Signed-off-by: Ricky Cheung --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/msm8916-xiaoxun-jz0145-v33.dts | 66 ++++++++++++++++++++++ 2 files changed, 67 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index ae002c7cf1268a6f848fefdfadbd746091ee517b..ce8d4a731645e012f1222a130f068b62cacaa514 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -58,6 +58,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8916-thwc-ufi001c.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-wingtech-wt86518.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-wingtech-wt86528.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-wingtech-wt88047.dtb +dtb-$(CONFIG_ARCH_QCOM) += msm8916-xiaoxun-jz0145-v33.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-yiming-uz801v3.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8929-wingtech-wt82918hd.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8939-huawei-kiwi.dtb diff --git a/arch/arm64/boot/dts/qcom/msm8916-xiaoxun-jz0145-v33.dts b/arch/arm64/boot/dts/qcom/msm8916-xiaoxun-jz0145-v33.dts new file mode 100644 index 0000000000000000000000000000000000000000..7f1049e111b37213eeadc6a247d4cf21e7e0cd5f --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8916-xiaoxun-jz0145-v33.dts @@ -0,0 +1,66 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/dts-v1/; + +#include "msm8916-ufi.dtsi" + +/ { + model = "JZ0145 v33 4G Modem Stick"; + compatible = "xiaoxun,jz0145-v33", "qcom,msm8916"; +}; + +&button_restart { + gpios = <&tlmm 37 GPIO_ACTIVE_HIGH>; +}; + +&led_b { + gpios = <&tlmm 8 GPIO_ACTIVE_HIGH>; +}; + +&led_g { + gpios = <&tlmm 7 GPIO_ACTIVE_HIGH>; +}; + +&led_r { + gpios = <&tlmm 6 GPIO_ACTIVE_HIGH>; +}; + +&mpss { + pinctrl-0 = <&sim_ctrl_default>; + pinctrl-names = "default"; +}; + +&button_default { + pins = "gpio37"; + bias-pull-down; +}; + +&gpio_leds_default { + pins = "gpio6", "gpio7", "gpio8"; +}; + +/* This selects the external SIM card slot by default */ +&tlmm { + sim_ctrl_default: sim-ctrl-default-state { + esim-sel-pins { + pins = "gpio22", "gpio23"; + function = "gpio"; + bias-disable; + output-low; + }; + + sim-en-pins { + pins = "gpio1"; + function = "gpio"; + bias-disable; + output-low; + }; + + sim-sel-pins { + pins = "gpio20"; + function = "gpio"; + bias-disable; + output-high; + }; + }; +};