From patchwork Fri Mar 10 14:33:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Xiwen X-Patchwork-Id: 13169322 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F424C74A4B for ; Fri, 10 Mar 2023 14:42:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232836AbjCJOmr (ORCPT ); Fri, 10 Mar 2023 09:42:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232818AbjCJOmf (ORCPT ); Fri, 10 Mar 2023 09:42:35 -0500 Received: from out203-205-221-221.mail.qq.com (out203-205-221-221.mail.qq.com [203.205.221.221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38BE81220B1; Fri, 10 Mar 2023 06:42:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1678459040; bh=OfRq4RsjFmFjVbXxoteCcZ+CskP3emYj476+qItt3ZA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=geHRgdeWEUWgC4Mt1YUk2R7/0LfeUCfM73w/GwQ8G06aVR/UcO6mb+D2XHFeQOuTa +A2dnCZ3OQJ5UYUBxIjdQvjA96BR6NTB7LmdkGTtgcHwRD3sUU3oMEPkZ9RW9BNijz ojKrarmUwCGPkrzl/+VptoadD61Tf6ytmP3oychU= Received: from DESKTOP-ZMX.localdomain ([115.156.143.0]) by newxmesmtplogicsvrsza10-0.qq.com (NewEsmtp) with SMTP id 8A61225E; Fri, 10 Mar 2023 22:34:38 +0800 X-QQ-mid: xmsmtpt1678458899t5mn9caiy Message-ID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FdwO6AafE+1Xw+oCI0Y8ZiqhS2gVbAR From: Yang Xiwen To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Nikita Travkin , Yang Xiwen Subject: [PATCH 1/3] dt-bindings: vendor-prefixes: Add Henan Yiming Technology Co., Ltd. Date: Fri, 10 Mar 2023 22:33:28 +0800 X-OQ-MSGID: <20230310143330.9485-2-forbidden405@foxmail.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230310143330.9485-1-forbidden405@foxmail.com> References: <20230310143330.9485-1-forbidden405@foxmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Henan Yiming Technology Co., Ltd. was established in 2021. The business scope of the company includes: communication equipment (excluding radio control equipment). Link: https://gw.yimingkeji.net Signed-off-by: Yang Xiwen 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 ed64e06ecca49..d6ec61904d6b8 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -1528,6 +1528,8 @@ patternProperties: description: Yes Optoelectronics Co.,Ltd. "^yic,.*": description: YIC System Co., Ltd. + "^yiming,.*": + description: Henan Yiming Technology Co., Ltd. "^ylm,.*": description: Shenzhen Yangliming Electronic Technology Co., Ltd. "^yna,.*": From patchwork Fri Mar 10 14:33:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Xiwen X-Patchwork-Id: 13169426 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 28072C6FD1F for ; Fri, 10 Mar 2023 15:30:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234380AbjCJPad (ORCPT ); Fri, 10 Mar 2023 10:30:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234337AbjCJPaP (ORCPT ); Fri, 10 Mar 2023 10:30:15 -0500 Received: from out162-62-57-252.mail.qq.com (out162-62-57-252.mail.qq.com [162.62.57.252]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE6051220A7; Fri, 10 Mar 2023 07:18:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1678461472; bh=i5ecUFTtu8gE2VtNKUKEO0PlHAqi+1Iwkf2T4V9zR8Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=lmxYkmqr29L2LWuMOLm05jwyMn82LZPVSLEMC/HxVICp0xd72aHBWS0lICP5Fa4th pW4Dtv4dj+B6OkTcNX4ERaBn65duI66GX0qt/1eGbmgMEoLBWADrugCX8o0F4vM4ke X7Jp7U9jVZ9kWHt0Xs3j2d7GEImLwGMEfY7a9WQ4= Received: from DESKTOP-ZMX.localdomain ([115.156.143.0]) by newxmesmtplogicsvrsza10-0.qq.com (NewEsmtp) with SMTP id 8A61225E; Fri, 10 Mar 2023 22:34:38 +0800 X-QQ-mid: xmsmtpt1678458901tvdq2of68 Message-ID: X-QQ-XMAILINFO: NMGzQWUSIfvTkpZXdI0KmUOakjYxFf3TJBcnTvjsonGe8oB2aMXKQhIMuTGzOI h92UByFh0TAoRgHqcVMOcdccq1skiQE32YG5LEn8ITcsnDltMmX9QPx3F4pEFyWUQcW6OQIbtZry H2IyfU4yMHTOllwD5qXnsC8sQ3ohnd5SH1XYvqWAwOD+0ErRLhWn5Jp9l0Y5C4HHMDAdQ6e49wN3 8uus6jL1W52nQxONMqude0IsQD606jOodzzScg1CnkPIYtRKzgdMvKi1gA25we00y1Dj4dlIUQRU 4EcHfFfVXKMRacgD6X8tYl5O2fXppvZv2R5hxHuFfJ58eq5O/xzsa9/2t7sh75xaom9P/vn0mYeE 4geniVrO3dHi62isTxa94YUfp99aXzt8eu8bqqaeoUaqUQFEKKEhpqpIfVfVdoNLuDiffQ3VJyBB lvXms5nORoxmDzj4kn6aJCBc4xjfxmKiJFsHfOjXKMvVlzfuzRSokPqYzmw7GxtvgVsjnb6t8lUR vw1+Yua96xW2kvEK6HZNTkCCqM7dLYlBO4GTB8upRYw+Do7Eg8wqC36a3wveyrHN6IDfTYKpUD/o 2LdnFe4hroNz1V3OG2B6AMtYwMMYSeA7D/VX9B3PWacLeU8lbMV8LfRwGcXONxHU9iUXUJlPTd5p Zw9fEmuz+8tpUQvTtQ5s+tOuNSxdyuj9eMUJK0QNEgN75a77LHqQMcD4vYkHznUJayuYFDHvFQsP oWq4uiXUTeaYiH5o09vo1epeUJMTDSQI2g1h1YRPz7Mbsj+SwXtPsE1nkvCRIHqTU4cBFTyPFy9h xIVaswInBbwr1KTv9RcU5FNcnp99Hw4nPUX0zU2GbWe+jvooupUl9mjknyxJZue1JcTNo2LXsObI Hp96WSiS9p8bD7L1VsArDw0fE4KSIy+HAAgMVBRIdkVp5gWzu5KhX6Q6Gxkf6J72usl6NGemVuNa IaGKR/yOq3ghUNXFZiL8UihNPYPQKb7SFWJfF7BuimuXXQ1ZdTxhdASmc5D9ghqzDj9rRjiB4= From: Yang Xiwen To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Nikita Travkin , Yang Xiwen Subject: [PATCH 2/3] dt-bindings: arm: qcom: Add Yiming LTE dongle uz801-v3.0 (yiming-uz801v3) Date: Fri, 10 Mar 2023 22:33:29 +0800 X-OQ-MSGID: <20230310143330.9485-3-forbidden405@foxmail.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230310143330.9485-1-forbidden405@foxmail.com> References: <20230310143330.9485-1-forbidden405@foxmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add a compatible for Yiming LTE dongle uz801-v3.0 Signed-off-by: Yang Xiwen 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 1bb24d46e4eec..6e17cb0726918 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -226,6 +226,7 @@ properties: - thwc,uf896 - thwc,ufi001c - wingtech,wt88047 + - yiming,uz801-v3 - const: qcom,msm8916 - items: From patchwork Fri Mar 10 14:33:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Xiwen X-Patchwork-Id: 13169327 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DA0E4C74A44 for ; Fri, 10 Mar 2023 14:44:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232927AbjCJOoG (ORCPT ); Fri, 10 Mar 2023 09:44:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232858AbjCJOnq (ORCPT ); Fri, 10 Mar 2023 09:43:46 -0500 Received: from out203-205-221-221.mail.qq.com (out203-205-221-221.mail.qq.com [203.205.221.221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E601EFCF1F; Fri, 10 Mar 2023 06:43:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1678459421; bh=UGzmVkXCL+1EkPSwzlDgNi3i411tT8zWbKctyhvLmow=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=vIeVl9ykyZz35GKcZWAPeSCGGw2SH6irRPNoyyT1IFXDepP7t/PWaMf5PY6rTLA6P +d/h3w18YitflKHhr10lUIBnZm83fnKNB/20uZ1NJqtl5MJdqQwpzH7Az8ta1gwz0d mfXA0g8AKYm+Ln/h8LOYN0Phh0X5cQWbc6tqPZK4= Received: from DESKTOP-ZMX.localdomain ([115.156.143.0]) by newxmesmtplogicsvrsza10-0.qq.com (NewEsmtp) with SMTP id 8A61225E; Fri, 10 Mar 2023 22:34:38 +0800 X-QQ-mid: xmsmtpt1678458904tlpmm9eo4 Message-ID: X-QQ-XMAILINFO: NupD2wIGF7MkbLXrURGLr0r0johuVIoGwBoq/JHBCOruw2uSS9jS+BMqd9dldZ qVJLBxTB9v93hyTPPsO2OMwOSJqVqimvxSCU+OIhe9JhtTCjUcI3IaK8f+RW71xY+qIkO1ctmD2H c17ZnkE+HhOaJxwiXLa/iB7pTywZFrIGfNpK9J6ZjhO1H1mVn15DgzCWmonXqtCSS7SblPip83rm 7bqPhguIrqnq63bThqEhunaHhY3QU6jZVcNhjuU2en84POVg7VkBLW2RAklAw95o7aYUyACL0qrd EWJgeV2VGpuF3HSH9UoR6M61+4b+y5bj58xIIrdASUGCj8RWgbxc+jBIXrxRtogFJg3Ut9g59Pp2 u3PvEHnKdYW8qimtkb9XMtdRC6xiISrZqtPa0MboJIelvVD2LoX5zgK+QFBxHVyJdTPnQ+5EeQny h8rle+kEBGvtUP6c+3I6C+2H/a/Uk03Md6B0GYBgu3Vvkk0H/7Nl7pXROhEhvnvdqG8RCzeSa9oD IFmzItzrW2Bi5JBWH1gWH4k1VYloU5+4YmCYu5+KRAPm+nC8a8BhARaG3YdfJzly3n91VlzefipC YFdYzmVfamzCKn8tdPZGiPgEKkQyVcEGCtSKrWBef5QEpyflrK/+U8r6igjm7u/fKFkOVqGi2+Hu 3+OhomhkDzBUU5faUhK0M4yEYzWiXdzoYMQZYsq3g1MArnt6R6+3gvNldW9r0l3uOz9hP2Y19QDp uz7luM73o+XFnVSZ/35vxf0pAzZS+T7s4yM8KuGdjpA9my3RhVhwd40JykS/bqHgrDinm7AfzFwn cVqa1o2h8MznjP1fTQRJOYquySrxSBdNqBRMPXM6aEiREid5Xlq/bQwUEQI36wLQMNUcBKvKDPqS 2LPE6yh9qU0jTr4eW1MomXxlrEyp0qUVn5VQFHjeWDXhrAq/QjrjnlN2zPLe4ij1mFapvIhmip3/ armkDUMlIEmUtmmMUpsCL7Nf6BgRbtZyLQ6mhphl776WQAzuEltzuwEGdiE6s1WV1iBhu0x0g= From: Yang Xiwen To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Nikita Travkin , Yang Xiwen Subject: [PATCH 3/3] arm64: dts: qcom: msm8916-yiming-uz801v3: Add initial device tree Date: Fri, 10 Mar 2023 22:33:30 +0800 X-OQ-MSGID: <20230310143330.9485-4-forbidden405@foxmail.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230310143330.9485-1-forbidden405@foxmail.com> References: <20230310143330.9485-1-forbidden405@foxmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This commit adds support for the uz801 v3.0 WiFi/LTE dongle made by Henan Yiming Technology Co., Ltd. based on MSM8916. Note: The original firmware does not support 64-bit OS. It is necessary to flash 64-bit TZ firmware to boot arm64. Currently supported: - All CPU cores - Buttons - LEDs - Modem - SDHC - USB Device Mode - UART Signed-off-by: Yang Xiwen Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/msm8916-yiming-uz801v3.dts | 35 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/msm8916-yiming-uz801v3.dts diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index 31aa54f0428c3..0c4c71d6277b7 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -28,6 +28,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-serranove.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-thwc-uf896.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-thwc-ufi001c.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-wingtech-wt88047.dtb +dtb-$(CONFIG_ARCH_QCOM) += msm8916-yiming-uz801v3.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8953-motorola-potter.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8953-xiaomi-daisy.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8953-xiaomi-mido.dtb diff --git a/arch/arm64/boot/dts/qcom/msm8916-yiming-uz801v3.dts b/arch/arm64/boot/dts/qcom/msm8916-yiming-uz801v3.dts new file mode 100644 index 0000000000000..74ce6563be183 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8916-yiming-uz801v3.dts @@ -0,0 +1,35 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/dts-v1/; + +#include "msm8916-ufi.dtsi" + +/ { + model = "uz801 v3.0 4G Modem Stick"; + compatible = "yiming,uz801-v3", "qcom,msm8916"; +}; + +&button_restart { + gpios = <&msmgpio 23 GPIO_ACTIVE_LOW>; +}; + +&led_r { + gpios = <&msmgpio 7 GPIO_ACTIVE_HIGH>; +}; + +&led_g { + gpios = <&msmgpio 8 GPIO_ACTIVE_HIGH>; +}; + +&led_b { + gpios = <&msmgpio 6 GPIO_ACTIVE_HIGH>; +}; + +&button_default { + pins = "gpio23"; + bias-pull-up; +}; + +&gpio_leds_default { + pins = "gpio6", "gpio7", "gpio8"; +};