From patchwork Tue Jan 14 14:46:48 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: 13938853 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 D2EF513C67E; Tue, 14 Jan 2025 14:46:54 +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=1736866014; cv=none; b=ECfevN7L/BwXwF+NMR0u3zsqKIn0tWQar8njZ1LOMPymE23yUraxTkPB1/MdqwoF0sCETrR0Po8CVucO4Fg9w0igdwJw94JXBsq3vIgK9vry3mKRU3RaD8xBKTYfdO76SlkpI95+rgdrOmEPSx2hFrXNKNk61LdXu2tptKtiBgw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736866014; c=relaxed/simple; bh=vcyeBmSbSgree/fFE1hvcj9N4VexLe+jdjZA0V6hTBg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=kliiFV+m+uUm45b2Xl/TNRe3jPzRDaMjJ/fSvZBvUDNyaPWZ0fOFPPXd+LAAsBs7p5QjTgUz+1ieovzIwX7RuRC9FLhmishUWE51Z3Ogzp+r0dmKNzPORfH5aixifovNpAOhBCp2k7fxlTPSsnKMi09q4gZStoiCOUosvyWARSM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hMZ+ZR+d; 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="hMZ+ZR+d" Received: by smtp.kernel.org (Postfix) with ESMTPS id 784CEC4CEE3; Tue, 14 Jan 2025 14:46:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1736866014; bh=vcyeBmSbSgree/fFE1hvcj9N4VexLe+jdjZA0V6hTBg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=hMZ+ZR+dxP0K3WkRP4AEeXwa8iYiUwRieZrAdKgYm+yPwMhZeGdu8oYxvtBgKt6my KIimZxAAnJFoMX21Kv7ZEaEQsQVW5r2QkeA3g0QGvzbekc/mWy0rqGzsGovsRpwuGy YIBaLDrg7HGriYlfRmgMixe30pyAMRF3ke3z7ei0tIsJx0N95438BYiLifoT+Vm2lF 7LO1iP2ZTg559lqzPoXK1wOe6xIM61hmifgsWvcN/VbZz5ASSHdSDMGSXnJD0Qdmx/ JvuIwUJXLmUb7zNNFh7b3B/calDNdzXp4SL7g1RPioGUhxpIheCNzycA71G6UI2An9 WTYAIDz8NpIpw== 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 68C5FE77188; Tue, 14 Jan 2025 14:46:54 +0000 (UTC) From: Ricky Cheung via B4 Relay Date: Tue, 14 Jan 2025 22:46:48 +0800 Subject: [PATCH RESEND 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-495e986579ce@gmail.com> References: <20250114-xiaoxun-jz0145-v33-v2-0-495e986579ce@gmail.com> In-Reply-To: <20250114-xiaoxun-jz0145-v33-v2-0-495e986579ce@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=1736866013; l=1085; i=rcheung844@gmail.com; s=20250114; h=from:subject:message-id; bh=YLItZhmnioQz+msagvBTQwosqfJj9133Wi6WbhZanLw=; b=fJNoy1b5kdpf8rL9yaDYqmv29qVRpaC8WcRbZGq8n2Q+ryINaqE3QrHcGkMxw/oHnbLeBvwPd t1WqfGHrmLlBJZMOr+0fCM9UTqraFqVIEKLzoRWKtLbKf4cGrL6Bqad 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 Acked-by: Krzysztof Kozlowski --- 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:46:49 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: 13938854 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 D2FA8148310; Tue, 14 Jan 2025 14:46:54 +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=1736866014; cv=none; b=onK3q+NNfl9KgKwxCE+eJc451X7rY+D+eZX2pPbFGm8zrjYAsP1jEEYas1qLFjEfnhhYEVF3mE2DmatSBfIAKiwxfsR8biJynNk5Hoy86fR2L4nNLfPo5cgSx/+ilt0hFU1ST66Lbn/NDaPMwwnsZloGMcyjVp61P/ggEBPUgVw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736866014; c=relaxed/simple; bh=zqK5+u9pQxDXrUlhQIqO4rd9BiRJrfpADnoSryH88Xw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=gXgwGFSbLoRauzWQWRkR38Jr5+SznkBZ+zi8nh/xJ5+SpKqVrLhHFfPm8mqhl1tkOkzsmOAvUs0PJ7bZzy5U10oBS+nleYRCQFEYjLmPXAS8GAeR7DVRAfG7npFN1QN63hRkkVvT+hE4kHrYueRu2YcCmRR/neg6MhWmFmsGDX4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gYjH7ph7; 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="gYjH7ph7" Received: by smtp.kernel.org (Postfix) with ESMTPS id 86123C4AF0C; Tue, 14 Jan 2025 14:46:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1736866014; bh=zqK5+u9pQxDXrUlhQIqO4rd9BiRJrfpADnoSryH88Xw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=gYjH7ph7YJEBpB6hA6ROq/1QhDDQn5URZMll4TfOefEAAJWkq7Vyd75VnwOkTLEDh /379DNhAMTJKyjjr+vM0hzdcdUVmuuLBVWTRtCAPYG2v3AnIAm65g3URxveXvycClt kI2uFISvVcQzFi4X5pm2zs9fV6mZiugOjqi9XxSyPAjDRRaJbvzH4TmAGPsoV1PFOF 88SSbTg0Y9WY4dkW6I38E7et8pKSNWODrmyIWoQcVL4t+LoYiB3QIUJ5ln9P2SHSkf M1uk0OmxrS0EvEI5Va4DVA7Iq0e/bbHjWQayHbBL5nXT0PjozgYIN9G4Ud9xacd/Za TX6YfeW/GqUqg== 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 7787FC02187; Tue, 14 Jan 2025 14:46:54 +0000 (UTC) From: Ricky Cheung via B4 Relay Date: Tue, 14 Jan 2025 22:46:49 +0800 Subject: [PATCH RESEND 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-495e986579ce@gmail.com> References: <20250114-xiaoxun-jz0145-v33-v2-0-495e986579ce@gmail.com> In-Reply-To: <20250114-xiaoxun-jz0145-v33-v2-0-495e986579ce@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=1736866013; l=777; i=rcheung844@gmail.com; s=20250114; h=from:subject:message-id; bh=rcWv0GEI8Tk+7bGBT8IFODLra+FIFnAENM9Ul2xHUTY=; b=ITFWCEWvKBi34RZ71YSdewYcfs9cqxSN5UKBTLpI/6UhNurtlD7Z9s92tiBgB1xU0MKrnoRcf ZRlM6HN2CGLAsqFUg+/+111m4nc9NkrKKZknsakgqGjnlMqnET7Qo/s 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 Acked-by: Krzysztof Kozlowski --- 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:46:50 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: 13938855 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 06CD61494A5; Tue, 14 Jan 2025 14:46:54 +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=1736866015; cv=none; b=FEeWLKgf6FOBfiVQx6hjSGttnQPjZuTG014kSSOoT05caAggEGNC4u3Ch0Zb3T74uQSamoztnyhL7V7aKaqFm5SnZ+OhvYdmjuxFFSM+U3PBy8Rvw+nanzynhHToBbOJTaUEudS5a3JwqqP55z9fFxfm9Q4d7q2rDOvf1O6WVSY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736866015; c=relaxed/simple; bh=PdLXMpw6mCU+0JWw02u7MvqnmujtMCIwWZO18hYjTB0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Qtd7ItLi3vvww8GXckB0w9lN8KsN+qR/oW/zPFGWuJtOZEqEJQjHLIj1zS6WUO2mD8gt5f16LJYLCh2a5va405iARJ1CdwpLecntveoMle+cyU2KPZAGau+GUwDHQ4JTVubXXfEC1OyPoC2G+voSCvbTMfBAK8Vb6N07JI7Oc4U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PjuYS0NC; 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="PjuYS0NC" Received: by smtp.kernel.org (Postfix) with ESMTPS id 9478CC4CEE4; Tue, 14 Jan 2025 14:46:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1736866014; bh=PdLXMpw6mCU+0JWw02u7MvqnmujtMCIwWZO18hYjTB0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=PjuYS0NCNwOj6OsLBtJ9g5/Fgb2qLUXbEO6jfero59q61XDL0nRz4exBL5SfWeQft 4CdrxxJOSsjrTCimg34q7DFLxsKzwJ059M0UPonIAh/BlAlTzgII6cnhx8bAtsPOlY nabsSLayOHB9/dzaEU5DlXQaZlRIkZYJs7WEKUqJDEJsv4pxuj0RJglDorM0A+Sz+C Sr+q1vBKjYYg7HH/LDWFz9woVRxoMQpzFh8ViAQlx7CeMrQrli2HeguZHhKsXZf7b3 oEsvEO37w890HVQ6aYiTHdPNdyt/UUtZBW3wLKnIHBUIV2358DH+Dg20/GpjbL7HY4 N2mLTzHAe0YHg== 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 89040C02185; Tue, 14 Jan 2025 14:46:54 +0000 (UTC) From: Ricky Cheung via B4 Relay Date: Tue, 14 Jan 2025 22:46:50 +0800 Subject: [PATCH RESEND 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-495e986579ce@gmail.com> References: <20250114-xiaoxun-jz0145-v33-v2-0-495e986579ce@gmail.com> In-Reply-To: <20250114-xiaoxun-jz0145-v33-v2-0-495e986579ce@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=1736866013; l=2981; i=rcheung844@gmail.com; s=20250114; h=from:subject:message-id; bh=aIMQMh96vCDp6yLLJW7U1OCy3sPhGfKYSD82VLXOyKc=; b=Q9gCbGyNmj2MC/WTb3BTCarJrM+iQpvKWnQeA+GZ9Kdo/XuMKmuIhBvGAtL7sLBax9LU/zDK0 JEjkA+kIma0APajAAMo+AtZS8/gtPNjKeqX/tG1tdAE1m+AGgSdYx6T 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; + }; + }; +};