From patchwork Wed Jan 11 14:13:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Xiwen X-Patchwork-Id: 13096715 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 F1044C67871 for ; Wed, 11 Jan 2023 14:14:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235015AbjAKOOS (ORCPT ); Wed, 11 Jan 2023 09:14:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238368AbjAKOOR (ORCPT ); Wed, 11 Jan 2023 09:14:17 -0500 X-Greylist: delayed 69345 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 11 Jan 2023 06:14:15 PST Received: from out203-205-221-192.mail.qq.com (out203-205-221-192.mail.qq.com [203.205.221.192]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C702538B4; Wed, 11 Jan 2023 06:14:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1673446452; bh=b9a3LhEMbFnd+KAhgHHyNrwITwW+QdtCP0kjQLG7k0o=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=vBL84q+bPEpiY29Yc3X3QUCYgOOXeUyfdA/PUqSy3Qgtp3vRr1JJ3qQZW/sGw1YcU qWv4K7ylZ5tAE0Ex3j/35UWmfuHy8zW7vOvJKIKRjbIaQePZHzDaLSyJKtNtCpvhGr VKhd2G4J0Yt4XBJgfyaIX/jinh+JQnH15SHYxSDU= Received: from localhost.localdomain ([111.60.247.106]) by newxmesmtplogicsvrszc2-1.qq.com (NewEsmtp) with SMTP id 37731CEB; Wed, 11 Jan 2023 22:13:55 +0800 X-QQ-mid: xmsmtpt1673446449t674cdp1r Message-ID: X-QQ-XMAILINFO: NkHKfw09D6j8GVKSw+IBQP8hjCDv78STCdupGA9erFjoAv6nPOvl2bna0v2plt 2hvkheg7mak7bLnWvYiGowqI0x3Sp43jX3m55/z/3psu6kt7GXq6OFMk2Z1g/B9YdnMYYr14l86t uHzC16gSxtH3QnUTz3WUDGvW8vw1akVOEwU6i03x1N5TrMQGNAJrMK4Ukcb4pyqO6ZDFkRk2we/H 3uUoS8I0PvsfH7/K75BdUm6wLt7PGrl0HEH0iaZhOTkXG+lbcGmZmbcfIr76r85W+mgf2DjnVKZU 3HO4vGjuCp+ePnwVzubcr+E0Y8+7/lxo6xEDXQaLZ07d1/pSKrvdzFlIiFshgU2CmABdVSLPYbNH bb5gpKSgmMRhPF9bp8K2Mq1Fud5iquKdTOm/4ZTcpfYiHEvbbo4FUAMcMtluseWuLJmvfsLjyv7g gsiyrkxEo+FYWeTXHd6nlvJeUXEvMuv5ZsBckY4/ez+or6SR5CdE8U1N0+1m9G1S4EjhIE3zqRMy p5p9IgqRrhUj779D4bEs67bkB0y5c1ufZPsh291MTieYxk23qjael0xtvc6DILCmU6xmspgv+dkr 8Ks1NlepkRtq3xRWHV4F2LLbTIFyN2FEcI9Gnn5wRm0nBKpKJhWj8fymmARafC5eDDjUMKmQ0d9A JCxbMznrvFyeJzN9zCzROTrWasPBfLloVOz30HUyf32dZQ6zluRm+4Tuvw/d3Yo/2IQp00D84FZR JKpvXnJBGArS+42anQhdtT2RJ/jUiTCEOyGsBWQvk+oZvUba/YWxL84im8ZkLIKAvqpkdIPQyROH tbL7UZ7kcanoXVjkW5kHcFTlHeS8PKSXpqC9x6Xa+OCVDGGQa270QufD5uieY+kDPPTWUBKQ9rAv fefOMHS1pa+TqSa0lGXK0G5CxqbyzrGMV1B9y3zA4wVkKTvTcQ01E0lGC4df6JKl015HISKpyfu0 H6B6Vv/dCCbtkZyXMnYOYU10J41MxhFC0U+DU72SlmN3dC+ET0vOjCSU6OdMvkUuiUWyDR71E6uP VWP5L++g== 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: Jaime Breva , Nikita Travkin , ~postmarketos/upstreaming@lists.sr.ht, Yang Xiwen Subject: [PATCH v2 1/3] dt-bindings: vendor-prefixes: add thwc Date: Wed, 11 Jan 2023 22:13:09 +0800 X-OQ-MSGID: <20230111141311.14682-2-forbidden405@foxmail.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230111141311.14682-1-forbidden405@foxmail.com> References: <20230111141311.14682-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 --- 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 3893c45963a26..8d4c1e5c0d21a 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -1335,6 +1335,8 @@ patternProperties: description: Tecon Microprocessor Technologies, LLC. "^topeet,.*": description: Topeet + "^thwc,.*": + description: Shenzhen Tong Heng Wei Chuang Technology Co., Ltd. "^topic,.*": description: Topic Embedded Systems "^toppoly,.*": From patchwork Wed Jan 11 14:13:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Xiwen X-Patchwork-Id: 13096716 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 D484BC54EBC for ; Wed, 11 Jan 2023 14:14:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238493AbjAKOOU (ORCPT ); Wed, 11 Jan 2023 09:14:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232656AbjAKOOT (ORCPT ); Wed, 11 Jan 2023 09:14:19 -0500 Received: from out203-205-221-202.mail.qq.com (out203-205-221-202.mail.qq.com [203.205.221.202]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0E1E38B4; Wed, 11 Jan 2023 06:14:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1673446455; bh=5R+BDO8hhIMYzqA8po6d4hMbVhMtgHcE2MvtMKkOAk8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=eCPcgJuewLowX0Q8qWQQIogHk2eVWeH/4MYGw9eQyR99cAakTS48jJ360p5Bk6zdb PWmAP13rVLOIPCYx8p8dXXF0dT9Q/UAqNmAgO1Fit1x6CZW6yJOCosxCMCNbkCAXuh F3pkEcQJTH0zrJU7XmqTwFAyAzwhOqv0UFyC5YHY= Received: from localhost.localdomain ([111.60.247.106]) by newxmesmtplogicsvrszc2-1.qq.com (NewEsmtp) with SMTP id 37731CEB; Wed, 11 Jan 2023 22:13:55 +0800 X-QQ-mid: xmsmtpt1673446452t0n5cqb9g Message-ID: X-QQ-XMAILINFO: NMGzQWUSIfvTx6o2bDgHiM/5FMAB/i49UepwPDEVPF/CPWymsc/q1PshUQyz7d /OebKUMqVQge5cgj7Mlk+f7RR66c1xLJ1hMj64ptKOv5J5E9BlHb4EC5phA3IQ6rns1MCH6IF5eC GsncWmNnahFkskHhcYk4RX3AbdBPXn7iuPkIgjCZk/1Fyq8eldJE9y+6ol264/0RDarZhYB/R0m2 pxxBuPIFrj14PXj0WCuAATX2v7RT+77KBhzgY5a29eToz4Ik8Qq0sMk36v13en58bFFYOwgk41kD tv5BxDAx4Ug7uBZQ34Xb3AiotCB5bRTTtrE9FEgo8/Wn1WfYn8ngKrlR6iHiBsLcCTM4XPGAKNef fqOEys604beA6d8sXJopKeOyzfXLvUsEYabo3TdvOj97xSI6Sou9IBt887cbP4gaf26vdEXkPmLt FhgHVhXLj5XY+CQun416qnHMITbrLiL9pqFah0Usmx3IOT8D1RyVHMyRyKa2atKvXdV7J+ZnGF6x lBUziluceDzvJeOl+3STwfm9vulc7BTLvZVhT0y+BYqz/3+keVQvsAyn0iYszQ7CF3sVT8TqF7vU vmUQ5GIsvEN6KHp+QFPAtEXf/Sgl2L53SGa/tMtw/TX6AtiyF7ct4F0FWrPssDGG27Bt1t/Y19Ae EXhvK6Eob4ft3MgmNnYTspit0qcpeHQ+R6CjMlkhBB2OKCp2RtEi/LG/nAjbRvjxXqzKDzVpO35P FsxcA8Tu/ml6RekFqqXxkXuMf+H8O4bBrgUh1yFDnvHXnhyWFHnuo+0u75eDeCO7PeqBCk99/Ykm 1cPOIS6UDNyshrgpGa9XTYuUDIgUR2kOC+Bv45bxBmRzdckCndFkNgheGhaQXRY88nV/W63dMXhe 2xSgYSg9KQsVRzxCcuxqCCmqyj8q8OHb/MGR7Z5c7DcAFSuhfb4vLci1yKksYqVGaeCnsAWvsSq6 Ou1AA9AX4ebyfnF+qIA+s4UMH5eJZ4mHzlJPc747hyCP7fCDAZOuXH/ZQVvTcxYM2OZXwINO1bw6 WQq2vca0iXRxwQw36xuCgAQUkwZv8= 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: Jaime Breva , Nikita Travkin , ~postmarketos/upstreaming@lists.sr.ht, Yang Xiwen Subject: [PATCH v2 2/3] dt-bindings: qcom: Document msm8916-thwc-uf896 and ufi001c Date: Wed, 11 Jan 2023 22:13:10 +0800 X-OQ-MSGID: <20230111141311.14682-3-forbidden405@foxmail.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230111141311.14682-1-forbidden405@foxmail.com> References: <20230111141311.14682-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 65ef7e442da0d..18070574848ae 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -209,6 +209,8 @@ properties: - samsung,grandmax - samsung,j5 - samsung,serranove + - thwc,uf896 + - thwc,ufi001c - wingtech,wt88047 - const: qcom,msm8916 From patchwork Wed Jan 11 14:13:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Xiwen X-Patchwork-Id: 13096717 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 14592C5479D for ; Wed, 11 Jan 2023 14:14:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238514AbjAKOOY (ORCPT ); Wed, 11 Jan 2023 09:14:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236599AbjAKOOX (ORCPT ); Wed, 11 Jan 2023 09:14:23 -0500 Received: from out162-62-57-210.mail.qq.com (out162-62-57-210.mail.qq.com [162.62.57.210]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD53638B4; Wed, 11 Jan 2023 06:14:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1673446457; bh=WeAfG4q7lscsbUtzVg64kqY5IfCJe6Z4UI1XTaa+95M=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=vyaHVrHvAm0tS9JiSoVZ/vqOv7WMXNSotk5MHCRxuc9wypuwaHn9P1FXaGzPsJyr/ kj0URfXjp7ncYS7r+I5c8kNAcxd5smu++WY1g2PEH3PtwHMYUCs4ONOfxQzlE5hIQO BaauUdOEminWqXseKo1+TbXYaxJBV/c56GZIW2yc= Received: from localhost.localdomain ([111.60.247.106]) by newxmesmtplogicsvrszc2-1.qq.com (NewEsmtp) with SMTP id 37731CEB; Wed, 11 Jan 2023 22:13:55 +0800 X-QQ-mid: xmsmtpt1673446454t2pfeo66q Message-ID: X-QQ-XMAILINFO: Md8NwmqZYy3fbANy6RbzLrwah382LG/Bqb3hJJQps1++cwqE2CbVfTWMLQ3Mq7 Eeq8AY6dPPl95QXgxE3xvM4x/SC0WmH+OuqIV4nxUxPpoJ7Zg4USLrdILJV4DaP8SS73Bh2dOZue jBURo+oR8N/3bGRTn8wNVMUlasKFl8/MCofj9Sav9LfTEQBHGARKmcd0gKoqgCS/Mk7qFzObRWhe uc9lUSIdQlkW3FUVCz38ZS9JP2KWWe7izEnLJADDflGi7uwr6hl+S9u2Wk0PyZpQYUn3wv7YWOcI wAJJym2pj6T+xB/iM7/IlzHil/sOq49UMKE+qVJ3SDazDfnr8zgYYkfpWoC+/04iXWHgdEY437Vs n1+D/QfCxvXF7u9PKb5xn6cqTX60wlfSEtl+2Tsob05126F29LKHoVqnfcsOZVN30UoCAuQ8efhk 3a2kUmkB0RNA3XarP0zq3LHT5xaN8Z41+20hHh0JElXIPt8bKp8xgUM4yrL/1C2DMUe68ecMq8tO j6JlDEKgfXID8WMSeHF9h4pvm8T22y51GUtuLgd5PrZ8druzaDqaVYShj9hU1maTmEdrJ0QyUZdd +LY38uUtQjnH/Xp4soTjo8sVqK7qmzlZzJriagSg8SdOy/jZKs9EDRC/IV17EprMyHL1BDmUJiR7 LXW2PrA965B1e9YSZxoYBZ28dYKWyhddzqwTq7exMYO/3M2P/xvRyelN6B4+hP7hkec2sks793r3 hbzOTk3reZ896MhVg4G9XDso5Vif6E/SK2Eqcvq1PMVG9YF3OXliEJoTXpJOwBHd/heXlKpp5yA1 lPi4rj5oZdPwjfCSzJG7nRAksBt8IJNbNdMPBLDr9hSkSz0I/VEGgrmcCldJPnWa9E2yrNdWnzwP C892ORSeYwCxG02dm125Qs/ZtyfLlzlr+XjRNr8Gl4+6RQcwRS3pxxkuiCCuJBTYV5K+cD4GGBK8 Bht4d//ZbqbHCdMHctuVLIdDK3o1Ms3ddC4s6JgkArINyjPfpGZVIoojNzhkM3DAeGdwBkg1VQte xhQNoWqQ== 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: Jaime Breva , Nikita Travkin , ~postmarketos/upstreaming@lists.sr.ht, Yang Xiwen Subject: [PATCH v2 3/3] arm64: dts: qcom: msm8916-thwc: Add initial device tree for Tong Heng Wei Chuang Wifi/LTE dongle UFI-001C and uf896 Date: Wed, 11 Jan 2023 22:13:11 +0800 X-OQ-MSGID: <20230111141311.14682-4-forbidden405@foxmail.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230111141311.14682-1-forbidden405@foxmail.com> References: <20230111141311.14682-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 b42362c7be1bf..523dbe6d06be8 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; + }; +};