From patchwork Tue Jan 14 14:11:18 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: 13938819 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 B586F13AA2F; Tue, 14 Jan 2025 14:11:21 +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=1736863881; cv=none; b=gK5DG57Jb/5kmXpTU6rPezlZgBn5lkDqq5xEJ8hGdy933q7iiC38JilkLHHnCoZ1To0VWSZ13ClUBBmGUlX0dR1R3KK4d4tGiPYmoAE1umZdMj6skY0xrjoRztD0qG65ko6TnpdqB/9qsKo1ucs9nXYVwB2CkvuiryzBki1m7O4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736863881; c=relaxed/simple; bh=vcyeBmSbSgree/fFE1hvcj9N4VexLe+jdjZA0V6hTBg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=O43yV2e/qa+mky+z55O2HdQmQsSOmRiuW/cGK9owM8GFv1uIes7ePQ+UcZp2Xr3NDZEm0hOMFmLjXTcw5NHaD7s39lHL/ba7Aj+T0mBhX5Z2HRJPa6EjhjEtWX9PpioIDHkTIU6JiYI7Rj2lEmQ5JQ7+JVh6STWTa9tdacygHKk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=njmlVfxQ; 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="njmlVfxQ" Received: by smtp.kernel.org (Postfix) with ESMTPS id 5ACE7C4CEE1; Tue, 14 Jan 2025 14:11:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1736863881; bh=vcyeBmSbSgree/fFE1hvcj9N4VexLe+jdjZA0V6hTBg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=njmlVfxQXK443f8AKUs5epVFeTsfgrjeo80WGuXIlMHdCiZW09oZKKRnnGHBXNImO p4k6gyaTbRplHEbhWxdl3sjz1HiRxp0dfecIok/EFxZHH3TTRYB3BJudUz3fzd/et/ Ra1/zf1/CksxBV/LGdfyOb4bRTuRyVrXTWF0Yc1oyh9SN/qVe6VksmXrCEDjhTRgvo qWW1Xc9hd0jLkymDeSGvD/SJ7u8DgzvQSqdGxm44szomGw8a9ga8PLbdTtJ48jzesI MBF7KMpZnGGv3O2mLlUzBWoK4XJZ0+6AK6msGB9AMqE3hSxC7SwSL9j0Ow/vH/pKrJ DFmjGR36J8PLg== 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 51766C02185; Tue, 14 Jan 2025 14:11:21 +0000 (UTC) From: Ricky Cheung via B4 Relay Date: Tue, 14 Jan 2025 22:11:18 +0800 Subject: [PATCH 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-v1-1-dc51f7ce3bd8@gmail.com> References: <20250114-xiaoxun-jz0145-v33-v1-0-dc51f7ce3bd8@gmail.com> In-Reply-To: <20250114-xiaoxun-jz0145-v33-v1-0-dc51f7ce3bd8@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=1736863880; l=1085; i=rcheung844@gmail.com; s=20250114; h=from:subject:message-id; bh=YLItZhmnioQz+msagvBTQwosqfJj9133Wi6WbhZanLw=; b=3rDDWsIIf8vdabeI3uKNUkg8MrYNNkST/043MuSOZr2VIPBZXwAzHyUFuQxLzcqAHzZ6uj/rf ck5QAZlXxTDBzTv/qwXTdIu0346UdsXTc+mskuRsRndVm+5/j5KaRhS 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:11:19 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: 13938820 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 CC742762F7; Tue, 14 Jan 2025 14:11:21 +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=1736863881; cv=none; b=d3/q8YpoRZL79boQ6ZuqM4U25OK6ShjLKZvDBAOJngwBIJiq8sc8Y6RG0QUaB1atuoZ7UGOf7/IO0n96TKgnlvg12U3wSJ4SrC+nmMfgHB68YHAcrIuWWbpAuqikP9oei2G5aNyeD+OHoebczwLU32EnGaS1VQgKet3o83jc4wU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736863881; c=relaxed/simple; bh=zqK5+u9pQxDXrUlhQIqO4rd9BiRJrfpADnoSryH88Xw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=quDGBylndBDASgMRxoBlg9whOR5PLq38rNu9GLZmtkr1C6AT9FX/eNvcUlxzX+WXQ2VepwY8hQPn5zBvxwJdFBKSiBIHW6DupXtw6ldE32Fl1VwJ5m0GPHl5SyIgmrOwQKB/F6qC3Er7gfJP+TgVhxvFnXSyOOOU/alyJ+/WqM4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OiQoxb7D; 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="OiQoxb7D" Received: by smtp.kernel.org (Postfix) with ESMTPS id 66F30C4CEE5; Tue, 14 Jan 2025 14:11:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1736863881; bh=zqK5+u9pQxDXrUlhQIqO4rd9BiRJrfpADnoSryH88Xw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=OiQoxb7DYk4qkn6zwghPDHMW+/QksbY/6ZvycKfH/22xybpFmIBvbJYbHvBPHWa6g VMVVvu1dhVyTfD9UA4PxscoTmI5Vbvbad/kUI3HwfMpmHVuMi/eWQg10x6OlSKtPO5 UwU+WT2rwdfkNByXk6H6Tu4ry8HOYyzZJradn33g0Ch8+nV0EV0kHGPgqI+z1Rl1bp 6+0tj3dbmpo//0nhJ9NsLIb+DzWVbMYNfd8BbC2nbPgbobpHuWqtiMfVfZbBVYZC45 WtIs8+q613ZAm+QccSJIC5DaeRTpSPccdRUne0q2VaKh6LdrZUHSWMoqUHf+uC0+N4 QBCfFjy0h3beg== 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 5D738C02187; Tue, 14 Jan 2025 14:11:21 +0000 (UTC) From: Ricky Cheung via B4 Relay Date: Tue, 14 Jan 2025 22:11:19 +0800 Subject: [PATCH 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-v1-2-dc51f7ce3bd8@gmail.com> References: <20250114-xiaoxun-jz0145-v33-v1-0-dc51f7ce3bd8@gmail.com> In-Reply-To: <20250114-xiaoxun-jz0145-v33-v1-0-dc51f7ce3bd8@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=1736863880; l=777; i=rcheung844@gmail.com; s=20250114; h=from:subject:message-id; bh=rcWv0GEI8Tk+7bGBT8IFODLra+FIFnAENM9Ul2xHUTY=; b=yrm7tQFFdAhlbC+1iQUgSN+Xdjjb+tl4tL0ahicMd4mW7d9JcKW+/k8+8NorQLUaKdXTHGXTj jSYpNoUbcxWDzSL+aXFj215GSWQ8p/2FiocIg1Tpi9RQRUrrPjyUF46 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:11:20 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: 13938821 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 E5E8B13C3D3; Tue, 14 Jan 2025 14:11:21 +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=1736863882; cv=none; b=NPvpy741Hb+CbzmWjmBFAjDOrkBHMNL02p8K87M54i9H1RLzLwaMPtBZyvyYAgDkykBL48bVzUbZw9UfhPaTIHs3X1BJTXmsgrECOua1J5DdRlHE9wlwAN5g+LOr/BV4k4eynvvXakBIuk+FE3BIqSXTixwO2IiP4jULyvP+UPg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736863882; c=relaxed/simple; bh=SzgaLH47i8Fl4TwxX9pjbIuQJnVn2ovdLScqBdOV78E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YrlmoRT7pdflweEQPd/lIj0NMFrlt5yPC94ROSbxF9EAdR+1HlRVLIYg0H7+CAlxSnT4h4gYV9fR4UL6vmz1VqjQrjQyxxVadsFjO9CtiYjoCaGIJrXZfb7IMWfIlO8awCt93t7CT8YH2YLDiUDl1NtM46He8lqyoLPA3t5/0jE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tbQWzb0l; 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="tbQWzb0l" Received: by smtp.kernel.org (Postfix) with ESMTPS id 74763C4CEE8; Tue, 14 Jan 2025 14:11:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1736863881; bh=SzgaLH47i8Fl4TwxX9pjbIuQJnVn2ovdLScqBdOV78E=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=tbQWzb0lK7zF4QnRpLWZlaFDR3L4K0zaEH6T6dgA75/dPafp/qXs/SO4GlfiEC28n Gcra5g4/PKzu9V1dd3NI+P7Pnh7OeJV7pPY0TA9C7v9RCCSG78Js3mTnsSazrZnuLi UQlTj9HLqbI8WeFpfx0m0BZkeat1T4BjFXH1JhRsEzhyEgd/A/Jsp4wUl6m48j03R5 byhezLeN8z8dpqZyJDnx9HuaHSZATu3U0HAZ1ubmmSyY1FReokQQBs6IzseCyp3YOO L33ClNnR1he7nKAWfzcLm24VJ8RY1ydXb7tAaNogCksdF32auSaqe8BnoK1mgpryvm mxzq3miB5miaw== 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 6ABBEC02183; Tue, 14 Jan 2025 14:11:21 +0000 (UTC) From: Ricky Cheung via B4 Relay Date: Tue, 14 Jan 2025 22:11:20 +0800 Subject: [PATCH 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-v1-3-dc51f7ce3bd8@gmail.com> References: <20250114-xiaoxun-jz0145-v33-v1-0-dc51f7ce3bd8@gmail.com> In-Reply-To: <20250114-xiaoxun-jz0145-v33-v1-0-dc51f7ce3bd8@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=1736863880; l=2981; i=rcheung844@gmail.com; s=20250114; h=from:subject:message-id; bh=zknxHLh/0yD6xrk03GtNYivOjkwjH1tCp9FwILMCT+8=; b=kSCS7SQZPecgrWAfh5fmzsRHNmCikB5YdyEti+49Kze6EDGs1IzIPKQ6fAh1W0KLm0EMCpOu6 0aVNtRfbl3FAeS9ewBgxwUE8RKnRo8/rwAXlugPpbByWzjlk6a713G7 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..b41bf312ebb6ed9c216ec3887e5dc128209d3f4f 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; + }; + }; +};