From patchwork Wed Jan 11 18:03:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Xiwen X-Patchwork-Id: 13097079 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 B9083C46467 for ; Wed, 11 Jan 2023 18:05:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233792AbjAKSFu (ORCPT ); Wed, 11 Jan 2023 13:05:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232787AbjAKSFt (ORCPT ); Wed, 11 Jan 2023 13:05:49 -0500 Received: from out203-205-221-173.mail.qq.com (out203-205-221-173.mail.qq.com [203.205.221.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9EB31056E; Wed, 11 Jan 2023 10:05:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1673460343; bh=dOzKijcvaNNdMhzpGv7PUERkFEUFDKLcNyIL06jtdtk=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=iH2tXGEytHBttMQ1/zbIzLMsGjuMdXk1Dcllga7s7O1DPxjX24lH765QuiQ1RIAr8 vNXIsslPRsiEo+7+2Ex5yOOZrXeuQmsXLWTjz0xDee4CfAupu1aIm17uYE4h96OxBS z+TZMLYyMFaqhPAugP+ijAxI9gAbbrH/NtzOxKWc= Received: from localhost.localdomain ([111.60.247.106]) by newxmesmtplogicsvrsza10-0.qq.com (NewEsmtp) with SMTP id 14F2600F; Thu, 12 Jan 2023 02:05:15 +0800 X-QQ-mid: xmsmtpt1673460340t9pmkemx2 Message-ID: X-QQ-XMAILINFO: MR/iVh5QLeie9yR/60qDFl5SJSa8OALbWbZdviDzJQnfD54hho82hiVpgv91s0 ej8u/aSNB1xB/7cT8oD4yxLIHW2OgR3oCTIZ9wTRrs9bf1BtLGcgwiXIGLaND8bF0zmJNJkPISjt BTXrYL82Eu1pTwp2HTE0S/9oJIJJF9yYzg1p6a7fVUBXrTN6LNGNutR0Y5xjMEKKVnruDV3vrUB1 QOfc37A9qHubX9munca8z4cwQZ2ss2/se2sfAxf4rMqmjR/hE74GI07KR9tn8uLyminnAZ4MfGRa y2/I2WNVgT7XQn/W0xn0H7mW015N6Pdj0/kqh6nCpjzvmSXRQhxmFpoMmJASykJspPEujLTcvdfq R18/9dpw5gXMI1RvjT2X3tdyPv1X+LKjGIsBCD6kyz9Z7kEjDNvFOTuPndh+UpZWqzlvCEa3o414 JABrToGQ+iGSLcqauDq2h/bOQW14/DPKiYdJU6DZGlFX4nY4QS6Zt/qqGGO3PNzPkDsUktoQHZ5e N6wOeg0kBTUP9aLPuC02uqOy+DNhlEslzfvXBVqZwylpANkLVRUcyWoFXrixGVVs63oQ+4OwLZ+m vf2ZaekPQ/8cu3O1J9l0CAhgtOpAB13KZpecgsMLlTk6kRkiooRj6HUcbhZ0LHDxlpgqpVMpOqCw cmim98lLXZqfv8GIcse1aJNW76wHjeFXJ4YTu7BNFMbnVtcoWXEtROgLahKGyQtDZj+gI6+ulHYE 1ExvGwEXwLmaNJhG1ZjACU0nJNDoGaBFOnHa21cYqRfMOeeRG+aFTjU2n1Jba9qEiZI7wus75e+A Ef2cZFIuE5I/Tnr9ZAUoFm5erzG641fobf0S5KDKvyz2C2AdF38p1dwJz0AokTge2pQrfbI6xvKq RycRwPy6Z2IeF55W8s4yr5D+GTRQ0pa983js8NJWNBqjOFpPivJ8v9UqgVnKjtdPqqlrdU52mTvb nC4Kfl39XyE6pZfMIA41vz7oaJJ7untE53O9AVBhfpX0i4dvX/+Ak5ml/X4Oymww4lLtiSamzlGS b2LrL72Q== From: Yang Xiwen To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Yang Xiwen , Jaime Breva , Nikita Travkin , ~postmarketos/upstreaming@lists.sr.ht Subject: [PATCH v3 1/3] dt-bindings: vendor-prefixes: add thwc Date: Thu, 12 Jan 2023 02:03:20 +0800 X-OQ-MSGID: <20230111180322.21874-2-forbidden405@foxmail.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230111180322.21874-1-forbidden405@foxmail.com> References: <20230111180322.21874-1-forbidden405@foxmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Shenzhen Tong Heng Wei Chuang Technology Co., Ltd. (hereinafter referred to as "Tong Heng Wei Chuang") is a focus on wireless communications equipment brand manufacturers. Link: http://www.szthwc.com/en/about.html 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 88227c14da99a..57d04039aca3c 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -1329,6 +1329,8 @@ patternProperties: description: thingy.jp "^thundercomm,.*": description: Thundercomm Technology Co., Ltd. + "^thwc,.*": + description: Shenzhen Tong Heng Wei Chuang Technology Co., Ltd. "^ti,.*": description: Texas Instruments "^tianma,.*": From patchwork Wed Jan 11 18:03:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Xiwen X-Patchwork-Id: 13097080 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 A38E5C677F1 for ; Wed, 11 Jan 2023 18:05:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232227AbjAKSFx (ORCPT ); Wed, 11 Jan 2023 13:05:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229844AbjAKSFu (ORCPT ); Wed, 11 Jan 2023 13:05:50 -0500 Received: from out203-205-221-209.mail.qq.com (out203-205-221-209.mail.qq.com [203.205.221.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEE8115FC6; Wed, 11 Jan 2023 10:05:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1673460346; bh=UdPnM9sqO97FbEbwIzKC53KQNJMmfNvLCQaiSudzT0g=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=yQAZ/iZeF+JmXnGOeegTnQa/7QeaTMOkLOr41ZVJOA/XblmbBa7LQj6vVBS24Dnzy 2Idj6mMjXxtXCnESYyB73qZCMGH0a6d6XgdkvlfCGjEad5wUpR1qr4y7j39wCEAp8c qFpwkyCMuGSnetJUBKwnTEsyCve4U61c2lZjM49U= Received: from localhost.localdomain ([111.60.247.106]) by newxmesmtplogicsvrsza10-0.qq.com (NewEsmtp) with SMTP id 14F2600F; Thu, 12 Jan 2023 02:05:15 +0800 X-QQ-mid: xmsmtpt1673460343tedbiqwcm Message-ID: X-QQ-XMAILINFO: OZZSS56D9fAjavfJFvD2tj5f8GJCaB496TyKA6/hqSFOqjypyWpf0RMhRKrCfg hZJGmbHCZfy/igkrQdg29PIucDyTJdMmfOX6JhQmSPp25qY7etihnzL99lQNIB3DvDwoSe2X8wHU px9hnpr967dTHGNdYteODya5Wvkjrg642S1Kj4/x7NzSKi3ft3zHTL8AEcIt0Wk0xM37lXqm7yfd uJeO4lQqifMdKhyiEOoUd51TlYjmfj6HT8evfEbxYRdQQpji/FA61+xNGJook82rsx3Btj6TneK7 r+xyktPmKsOGj0M1NoDb9aoELLQkOR8DYZJ/TYkBjzcUyM5v0e1XjPf2EntM44KpF9/iEmnLAzGJ aHK5ldaWzOe1hpVcepmSgsNevNQhji6t43EUgYJdN/N8QRKFfgs8nzzzgn/emOSzHI6ZTK80hzzS lRTwbjUbxgTyLvFmxC56b7PFEoqIsvNjCnGcppEGbROr1DVpvHq6/uLR+GfcFl7T9Tzw08zBHFyp vQZX7Bd7XKY1P4rwY2wPH95DCLsQrX/X0gr/EhViXHWR8meXQ6BO0N0FJGUhU4oNplQmcxLS+ewe Rhj6KFaA1UISQ7dDTIwR7uri3vIYtz3bM5gD+sJfBV8asvDcmb0LQMsq78aqF2MLnjPWVQcOeFxx pyvN773BCWqxxb5L//tv6cctPwxn1PibMVwoyMuUvNuOZIOIXKBU0ktW8XvW6k31sn16Q2cDEEZb 8vvyIi9Ada19JYvaq+CYF74xKNyYK0B1znuhmo6Iqq5t8zN1jmKhWIGUszueEgzBMK+hoaoXMwsX /ivAuHndlCZyD+UVZNLf2yGf63tAlltVx7HcoRU2bXK98s7pwTQ3iK+0mEuW71cQl2w18J42yHM5 K0ooIEu8NJuqbm7lm4T0qBcFECff4ssP8JlS6Pyhn6LPN9l4tonwDpLbUAr02+aCaSyG8CYCct4A 1CS3ioEHf7TP+XqupB8wl0M6Md3Cz9EVJmfPtAG6EZQ42YQxHBim3TWoQfDLyJfo2fzR7+y+Vqsc YEBGOBmcEYO+Fx8rKbPpB9jIoN9+c= From: Yang Xiwen To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Yang Xiwen , Jaime Breva , Nikita Travkin , ~postmarketos/upstreaming@lists.sr.ht, Krzysztof Kozlowski Subject: [PATCH v3 2/3] dt-bindings: qcom: Document msm8916-thwc-uf896 and ufi001c Date: Thu, 12 Jan 2023 02:03:21 +0800 X-OQ-MSGID: <20230111180322.21874-3-forbidden405@foxmail.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230111180322.21874-1-forbidden405@foxmail.com> References: <20230111180322.21874-1-forbidden405@foxmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Document the new thwc,uf896/ufi001c device tree bindings used in their device trees. Signed-off-by: Yang Xiwen Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/qcom.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml index 263913d2451d9..8cb60a5b83e0d 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -210,6 +210,8 @@ properties: - samsung,grandmax - samsung,j5 - samsung,serranove + - thwc,uf896 + - thwc,ufi001c - wingtech,wt88047 - const: qcom,msm8916 From patchwork Wed Jan 11 18:03:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Xiwen X-Patchwork-Id: 13097082 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 73BC0C678D5 for ; Wed, 11 Jan 2023 18:06:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234950AbjAKSF5 (ORCPT ); Wed, 11 Jan 2023 13:05:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233287AbjAKSFz (ORCPT ); Wed, 11 Jan 2023 13:05:55 -0500 Received: from out162-62-57-49.mail.qq.com (out162-62-57-49.mail.qq.com [162.62.57.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C33A244; Wed, 11 Jan 2023 10:05:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1673460348; bh=ZHBM4wEZkQCSOA95jsJwDNAR1NvwB3A2kjI+WhHSIdo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=XQSn0qk3awf6C0kEy+WA3OnCpiv09c/aPXi5inudW92wA7qpFwXAeKP1OWzqiZf90 D6bXey0id6VnUe8y6j1WbW9LXnQ9coGD6bt+CmZAHqosn6w326701VGFMd7BTStm0G y9ybD9M5qzBkAuOU0TZmcUpPv1uTRy/uZfamscd0= Received: from localhost.localdomain ([111.60.247.106]) by newxmesmtplogicsvrsza10-0.qq.com (NewEsmtp) with SMTP id 14F2600F; Thu, 12 Jan 2023 02:05:15 +0800 X-QQ-mid: xmsmtpt1673460345t2ayzqyup Message-ID: X-QQ-XMAILINFO: M8Cd2byC8kc4TxS6rrL65SI0n8oxxhGxnHDLz0LfXKDeycaoljX8MH/Htv1hIB WPEdzXWWfvPOLVdUh0XQu+FZjN8BTa+EPNWqLMGTLNaynQpFUaI4W5WRDPlWfeVP+wiSwTPiann0 QCscLJ+cEnlORhFPZoSlqDw/TaZdQxGv5s/Z/Ldbkb0knco6V5ay8Vum2fn4cHZ8wtYiifEhF+32 i7BrfaqhjWHRuUDWqCdEoDdGMovqM6giyogVB+i5J5+gmt4nwKxUE91L67v0I1ZyZbwOPOGdlw6E G16xrr0ZYH2etBs9h2ZhDlyQpX/YDox/022JXxdsUwd2JIaBWpx5AanJ/G4Hz6fHbNRjnmHVungf 7XFOAYqAYSUQH6Mpn+e0z4OzpLEwvI9vj9lNFZbADJ75/U1DhBh8tnja03mjlcACnT7IUamdKJ5n sKs1fTsm4duH8MD5HNLTOnIR2LHqGUeUOzOD4IQEAtACuzTFzFyfXCcTUixPBVah5iL78zbdvFr5 JSjE2BlQhCfWk2jBXEoAKlOn6n7Y/Zqx0neTdWVqyfe50xWeCi8uj6XMXrwbw+ugBj630pz8kK3T MC2N96j7EnCb+Hhpq3NvcVLHapsUPkuUMmHj8UrBJfIM/0VcujMSyl4KvkSJreCuiNsjEEbCnEkR LkGRxw3t+PFWh2DNLcTbkF/LQLeJz8KUPeMm9IOQKf0U4pwSgXn+wXKgCxF7PdArnx8nePUh51x0 oT0/t5BfRKwmmOSmT/o5KKH4vRgxdOXJ907yTIBB8jYOEspLaRPTbWxHzk34Gjh7IEUbbwcnaSzl 8Uu/Gy+bdu1OidD9bQMWHgGwp+hrv3msvE40HHn98ZNz30vPweYYy8FNPKreuTp3ddrZ6xMuNAc6 dIy3DuLiUiIO68tZG/bBER6GN/DYVkT5jZkctMC2ogCLPiSiZIO5alGb9GCXDv05ikAzX/1m2php 1UmrDm+1SNdOBZlk1chVovK+ZRTflyac77LtayzjnXHAnQCgX9xic2+gcpVTuZvcE8KSy4Ylw= From: Yang Xiwen To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Yang Xiwen , Jaime Breva , Nikita Travkin , ~postmarketos/upstreaming@lists.sr.ht Subject: [PATCH v3 3/3] arm64: dts: qcom: msm8916-thwc: Add initial device trees Date: Thu, 12 Jan 2023 02:03:22 +0800 X-OQ-MSGID: <20230111180322.21874-4-forbidden405@foxmail.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230111180322.21874-1-forbidden405@foxmail.com> References: <20230111180322.21874-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 ufi-001C and uf896 WiFi/LTE dongle made by Tong Heng Wei Chuang based on MSM8916. uf896 is another variant for the usb stick. The board design differs by using different gpios for the keys and leds. 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 Co-developed-by: Jaime Breva Signed-off-by: Jaime Breva Co-developed-by: Nikita Travkin Signed-off-by: Nikita Travkin Signed-off-by: Yang Xiwen --- arch/arm64/boot/dts/qcom/Makefile | 2 + .../boot/dts/qcom/msm8916-thwc-uf896.dts | 41 +++ .../boot/dts/qcom/msm8916-thwc-ufi001c.dts | 39 +++ arch/arm64/boot/dts/qcom/msm8916-ufi.dtsi | 246 ++++++++++++++++++ 4 files changed, 328 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/msm8916-thwc-uf896.dts create mode 100644 arch/arm64/boot/dts/qcom/msm8916-thwc-ufi001c.dts create mode 100644 arch/arm64/boot/dts/qcom/msm8916-ufi.dtsi diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index 55f9c4903cfac..6301ec861ab4d 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -21,6 +21,8 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-e7.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-grandmax.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-j5.dtb 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) += msm8953-motorola-potter.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8953-xiaomi-daisy.dtb diff --git a/arch/arm64/boot/dts/qcom/msm8916-thwc-uf896.dts b/arch/arm64/boot/dts/qcom/msm8916-thwc-uf896.dts new file mode 100644 index 0000000000000..79447ca48dd3a --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8916-thwc-uf896.dts @@ -0,0 +1,41 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/dts-v1/; + +#include "msm8916-ufi.dtsi" + +/ { + model = "uf896 4G Modem Stick"; + compatible = "thwc,uf896", "qcom,msm8916"; +}; + +&button_restart { + gpios = <&msmgpio 35 GPIO_ACTIVE_LOW>; +}; + +&led_r { + gpios = <&msmgpio 82 GPIO_ACTIVE_HIGH>; +}; + +&led_g { + gpios = <&msmgpio 83 GPIO_ACTIVE_HIGH>; + function = LED_FUNCTION_WLAN; +}; + +&led_b { + gpios = <&msmgpio 81 GPIO_ACTIVE_HIGH>; + function = LED_FUNCTION_WAN; +}; + +&button_default { + pins = "gpio35"; + bias-pull-up; +}; + +&gpio_leds_default { + pins = "gpio81", "gpio82", "gpio83"; +}; + +&sim_ctrl_default { + pins = "gpio1", "gpio2"; +}; diff --git a/arch/arm64/boot/dts/qcom/msm8916-thwc-ufi001c.dts b/arch/arm64/boot/dts/qcom/msm8916-thwc-ufi001c.dts new file mode 100644 index 0000000000000..700cf81cbf8c0 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8916-thwc-ufi001c.dts @@ -0,0 +1,39 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/dts-v1/; + +#include "msm8916-ufi.dtsi" + +/ { + model = "ufi-001c/ufi-001b 4G Modem Stick"; + compatible = "thwc,ufi001c", "qcom,msm8916"; +}; + +&button_restart { + gpios = <&msmgpio 37 GPIO_ACTIVE_HIGH>; +}; + +&led_r { + gpios = <&msmgpio 22 GPIO_ACTIVE_HIGH>; +}; + +&led_g { + gpios = <&msmgpio 21 GPIO_ACTIVE_HIGH>; +}; + +&led_b { + gpios = <&msmgpio 20 GPIO_ACTIVE_HIGH>; +}; + +&button_default { + pins = "gpio37"; + bias-pull-down; +}; + +&gpio_leds_default { + pins = "gpio20", "gpio21", "gpio22"; +}; + +&sim_ctrl_default { + pins = "gpio1", "gpio2"; +}; diff --git a/arch/arm64/boot/dts/qcom/msm8916-ufi.dtsi b/arch/arm64/boot/dts/qcom/msm8916-ufi.dtsi new file mode 100644 index 0000000000000..286768d0fbe70 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8916-ufi.dtsi @@ -0,0 +1,246 @@ +// SPDX-License-Identifier: GPL-2.0-only + +#include "msm8916-pm8916.dtsi" + +#include +#include + +/ { + chassis-type = "embedded"; + + aliases { + serial0 = &blsp1_uart2; + }; + + chosen { + stdout-path = "serial0"; + }; + + reserved-memory { + mpss_mem: mpss@86800000 { + reg = <0x0 0x86800000 0x0 0x5500000>; + no-map; + }; + + gps_mem: gps@8bd00000 { + reg = <0x0 0x8bd00000 0x0 0x200000>; + no-map; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + + pinctrl-0 = <&button_default>; + pinctrl-names = "default"; + + label = "GPIO Buttons"; + + /* gpio is board-specific */ + button_restart: button-restart { + label = "Restart"; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + pinctrl-0 = <&gpio_leds_default>; + pinctrl-names = "default"; + + /* GPIOs are board-specific */ + led_r: led-r { + color = ; + default-state = "on"; + function = LED_FUNCTION_INDICATOR; + }; + + led_g: led-g { + color = ; + default-state = "off"; + function = LED_FUNCTION_INDICATOR; + }; + + led_b: led-b { + color = ; + default-state = "off"; + function = LED_FUNCTION_INDICATOR; + }; + }; +}; + +&bam_dmux { + status = "okay"; +}; + +&bam_dmux_dma { + status = "okay"; +}; + +&blsp1_uart2 { + status = "okay"; +}; + +/* Remove &dsi_phy0 from clocks to make sure that gcc probes with display disabled */ +&gcc { + clocks = <&xo_board>, <&sleep_clk>, <0>, <0>, <0>, <0>, <0>; +}; + +&mpss { + pinctrl-0 = <&sim_ctrl_default>; + pinctrl-names = "default"; + + status = "okay"; +}; + +&pm8916_usbin { + status = "okay"; +}; + +&pronto { + status = "okay"; +}; + +&sdhc_1 { + pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>; + pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>; + pinctrl-names = "default", "sleep"; + + status = "okay"; +}; + +&usb { + extcon = <&pm8916_usbin>; + dr_mode = "peripheral"; + + status = "okay"; +}; + +&usb_hs_phy { + extcon = <&pm8916_usbin>; +}; + +&smd_rpm_regulators { + vdd_l1_l2_l3-supply = <&pm8916_s3>; + vdd_l4_l5_l6-supply = <&pm8916_s4>; + vdd_l7-supply = <&pm8916_s4>; + + s3 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1300000>; + }; + + s4 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2100000>; + }; + + l1 { + regulator-min-microvolt = <1225000>; + regulator-max-microvolt = <1225000>; + }; + + l2 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; + + l4 { + regulator-min-microvolt = <2050000>; + regulator-max-microvolt = <2050000>; + }; + + l5 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + l6 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + l7 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + l8 { + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <2900000>; + }; + + l9 { + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + + l10 { + regulator-min-microvolt = <2700000>; + regulator-max-microvolt = <2800000>; + }; + + l11 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2950000>; + regulator-system-load = <200000>; + regulator-allow-set-load; + }; + + l12 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2950000>; + }; + + l13 { + regulator-min-microvolt = <3075000>; + regulator-max-microvolt = <3075000>; + }; + + l14 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + }; + + l15 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + }; + + l16 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + }; + + l17 { + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <2850000>; + }; + + l18 { + regulator-min-microvolt = <2700000>; + regulator-max-microvolt = <2700000>; + }; +}; + +&msmgpio { + /* pins are board-specific */ + button_default: button-default-state { + function = "gpio"; + drive-strength = <2>; + }; + + gpio_leds_default: gpio-leds-default-state { + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + sim_ctrl_default: sim-ctrl-default-state { + function = "gpio"; + drive-strength = <2>; + bias-disable; + output-low; + }; +};