From patchwork Sat Nov 19 19:48:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lin, Meng-Bo" X-Patchwork-Id: 23307 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp850270wrr; Sat, 19 Nov 2022 12:06:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf45VEbEo3Q4+EbchbIgCr2Cvwel4tnoqRbTtbnkVFoobQyU+caRk/yHWrxmKGxsSnFUppuh X-Received: by 2002:a65:60c9:0:b0:470:48c1:aae9 with SMTP id r9-20020a6560c9000000b0047048c1aae9mr2208144pgv.4.1668888359900; Sat, 19 Nov 2022 12:05:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668888359; cv=none; d=google.com; s=arc-20160816; b=WonzV+imF/Z1yyN8dPpp820eVlvPCdcmCLa4nmM4PhBlD5hiJvGy8xWhtjRAL83nxz csSWBKEXfjqOH9pJfFdIS7X7iR2pP5SsGBpiEjt/Whczkcaxh0s2HPTckgCOmp4ToEGY mNZR3z3yeA/Mq6Q2xxHk8sX2BF9zn/a3Zwtydg87iZgFnn3ju5nixICZdpcbaIASJIW6 YrjNdj6BRmI8R+DoId1NR7laJPW4YzA1KCCBoJn+R4ag3u2FG2FhDnnFIGr3bjru7A8c zxcCTaZFP9gpAS1rAe92B/VAcWwPxFNWxevzfjVAk0fXy4L5o9X98ko7b8Mc2R9aVRD2 3efA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:cc:from:to :dkim-signature:date; bh=eIEl89I/FCcRoTqjgCQKLi93kH0LmWEm09LZk3oD43E=; b=BlBmwgSp4hsqN15sn1RIFZ9kEsjmNrl+9+XvtGJ3RdbFkonq4i/I4EKTx461/DRyVp E5EWWHLi/TEIDQu4VQSrATn6VXR1RGgI98OMGrERfvoxebu8DskwroUTHFb7PBsBMfxv l8QN9+xgx9ntO0nQbhnoHsknc4Jbz2DOaRlrK4D+j7QwO9gUmda1YVHPFiPByyNJo+7s 8NwYKd/uKjF83mP3GGlfSbp9AaQgsyiKo9F2Io7wyZAanabTJdkw9gA6e/RakMGFnW7Q /rGsRcOnU2n7mIahXTOXuxvq+bkaZHMnoNcjclPVPRWyn7m/+cMgT4K0qBKYKyd9PR+H 3e/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=LVYC8DmQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 15-20020a63000f000000b00473e2ba5516si7226292pga.855.2022.11.19.12.05.39; Sat, 19 Nov 2022 12:05:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=LVYC8DmQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234187AbiKSTsM (ORCPT + 99 others); Sat, 19 Nov 2022 14:48:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231757AbiKSTsK (ORCPT ); Sat, 19 Nov 2022 14:48:10 -0500 Received: from mail-4325.protonmail.ch (mail-4325.protonmail.ch [185.70.43.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41C281408E; Sat, 19 Nov 2022 11:48:09 -0800 (PST) Date: Sat, 19 Nov 2022 19:48:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1668887287; x=1669146487; bh=eIEl89I/FCcRoTqjgCQKLi93kH0LmWEm09LZk3oD43E=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=LVYC8DmQXfYw4NJmAJITmdY983phtrRBH+1MVB+m+RMFy+vUEtS38bVI0VS7J4UUa daxLS3KRCXDDGXJnKVogGuQK8GBQrOnX9M0YRflmXuzUn9jZhawUwcQy/jaRP+gAu/ LIVjMvnSFUbmQ0YzybyWIXMcMwLSX2OlB0pNrq23CA8OTreSgkW2uQ17kKtdYkkmFQ nan/9DWucUmLYKsGG6rHVX+bebo4fF7DJJEbjkj130X5gBSwPmhq1DdX3WjbPQ4PKz ntIo00u4Bqci04goOJ2OU1bwKv2XeISVs5/YWkM4P834jTpiLepKRK7/Ic6Z5klJXF hDOxTXbdbzhSw== To: linux-kernel@vger.kernel.org From: "Lin, Meng-Bo" Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Stephan Gerhold , Nikita Travkin , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Subject: [PATCH 1/3] dt-bindings: qcom: Document bindings for new msm8916-acer-a7-724 device Message-ID: <20221119194709.91998-1-linmengbo0689@protonmail.com> In-Reply-To: <20221119194340.91789-1-linmengbo0689@protonmail.com> References: <20221119194340.91789-1-linmengbo0689@protonmail.com> Feedback-ID: 40467236:user:proton MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749956280511036531?= X-GMAIL-MSGID: =?utf-8?q?1749956280511036531?= Document the new acer,a1-724 device tree bindings used in its device tree. Signed-off-by: Lin, Meng-Bo --- 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 463509f0f23a..83f6748979a9 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -180,6 +180,7 @@ properties: - items: - enum: + - acer,a1-724 - alcatel,idol347 - asus,z00l - huawei,g7 From patchwork Sat Nov 19 19:48:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lin, Meng-Bo" X-Patchwork-Id: 23310 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp852547wrr; Sat, 19 Nov 2022 12:13:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf6l1QPsAScqCEZZho4mfB1Zm+7IanpM1347/zBlw5qgnZZSvlEYdAp0AMlO/yzufdZBb2Z3 X-Received: by 2002:a63:6601:0:b0:469:f133:ae77 with SMTP id a1-20020a636601000000b00469f133ae77mr156494pgc.537.1668888824245; Sat, 19 Nov 2022 12:13:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668888824; cv=none; d=google.com; s=arc-20160816; b=0fM4Tu/hHDMMW9f/jhj6PeJ3Hwbq4dYeCr1JdMZoQpQeG2ipIwEmAyCfJ+hV/pGO7+ SJDgDJMxJw7UPqMRWl8zoI+NeDC1ydbBio4QGDQNW73h1ezmoHKiXye6x8u/+mgF46lE aoovE12TC/I70chhh5wxnHhsNKoT8Dr4vegA3HDpQJbqQFTbkgu6aoMvPkwRi5BGyKjd QDEvj3g+fMjH9rX6XJUK0oHvuoB7gs30Zy+hML5pODraGo7oGbeF+iEJ5Xcn8lS31Ect +7AXNzTQRl4SL3Up+FzCZcVV+b6gxkGb0aUDknF8xqkCMFOZ39GpOjqJp7dr6JVciuHn 8zew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:cc:from:to :dkim-signature:date; bh=hPoacXHlZ89+oEM9rfwXsaEVZ93x+4FJwRdNup6QWe0=; b=pT5s9/gXWvVkfyZEp3Q/fdP7zjwzhl0ux8qDNGHi91VP0SrABYiKT0s4mA2X+2X6wv VYf7VdP8pfvRD6xjmy4b9U38HmOEkM9tk9aYtNgW0FrTt723Qm57AhwW3PUQ94OM7qMa GOTaHrjkzjKyrkbAwn7ZgJg8hb8dLKSPrxGby3h3UWYZuj7QDFJBjJ4P2bQ4E3iYrNWk /9BrD4fZtY76B6J+7y5x+PR415uRiwfNIq9o07oxK3B3UcGjNK26aaqOa+FprMAO9U8n qKtMF9GB22EdUnU0l0tLawQn8W6IYyMPRceZ+kfaQGPqZwtSitN9nI8vSEUqyfdgXYv6 5s2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=j38gD7Gq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u18-20020a627912000000b00547a857b7b3si6617766pfc.375.2022.11.19.12.13.27; Sat, 19 Nov 2022 12:13:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=j38gD7Gq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233986AbiKSTsc (ORCPT + 99 others); Sat, 19 Nov 2022 14:48:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234476AbiKSTsV (ORCPT ); Sat, 19 Nov 2022 14:48:21 -0500 Received: from mail-40141.protonmail.ch (mail-40141.protonmail.ch [185.70.40.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 172001409D for ; Sat, 19 Nov 2022 11:48:18 -0800 (PST) Date: Sat, 19 Nov 2022 19:48:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1668887296; x=1669146496; bh=hPoacXHlZ89+oEM9rfwXsaEVZ93x+4FJwRdNup6QWe0=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=j38gD7GqjfghBF0QHQ0YFhdYwFfgX3JoweU9eBBELhRssSXI9/j1v/O9ZY7nV6sFP pV/MaluOQzhify0n/evb8wGnY+4o4cc4gL2gG5hEa4pFpmptLiZTVPeF7m7nJa4DHu Wh6iakAbdszkq7xXnjyUStU+rRr2DCrWUFmw5BLnxowMpdjyItcRy0oftJLAeqoXvb VGEx8dF1QcmDLWO2isOfgNkPDHd3QDnO21220EGco14eWzrVVkr3Vh78sfP4ATPb1c rnsHWHaFzjPX2r37Ze+duUi2FsTWpY52svOq4wecIwQ7Ho6GUHnlkcRJhaBCWNhjk7 XlLWwA93YbgLQ== To: linux-kernel@vger.kernel.org From: "Lin, Meng-Bo" Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Stephan Gerhold , Nikita Travkin , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Subject: [PATCH 2/3] arm64: dts: qcom: msm8916-acer-a1-724: Add initial device tree Message-ID: <20221119194718.92052-1-linmengbo0689@protonmail.com> In-Reply-To: <20221119194340.91789-1-linmengbo0689@protonmail.com> References: <20221119194340.91789-1-linmengbo0689@protonmail.com> Feedback-ID: 40467236:user:proton MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749956372908267948?= X-GMAIL-MSGID: =?utf-8?q?1749956767421585497?= Acer Iconia Talk S A1-724 is a tablet using the MSM8916 SoC released in 2014. Note: The original firmware from Acer can only boot 32-bit kernels. To boot arm64 kernels it is necessary to flash 64-bit TZ/HYP firmware with EDL, e.g. taken from the DragonBoard 410c. This works because Acer didn't set up (firmware) secure boot. Add a device tree for with initial support for: - GPIO keys - pm8916-vibrator - SDHCI (internal and external storage) - USB Device Mode - UART - WCNSS (WiFi/BT) - Regulators Signed-off-by: Lin, Meng-Bo --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/msm8916-acer-a1-724.dts | 217 ++++++++++++++++++ 2 files changed, 218 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/msm8916-acer-a1-724.dts diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index afe496a93f94..f38a20074013 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -7,6 +7,7 @@ dtb-$(CONFIG_ARCH_QCOM) += ipq6018-cp01-c1.dtb dtb-$(CONFIG_ARCH_QCOM) += ipq8074-hk01.dtb dtb-$(CONFIG_ARCH_QCOM) += ipq8074-hk10-c1.dtb dtb-$(CONFIG_ARCH_QCOM) += ipq8074-hk10-c2.dtb +dtb-$(CONFIG_ARCH_QCOM) += msm8916-acer-a1-724.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-alcatel-idol347.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-asus-z00l.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8916-huawei-g7.dtb diff --git a/arch/arm64/boot/dts/qcom/msm8916-acer-a1-724.dts b/arch/arm64/boot/dts/qcom/msm8916-acer-a1-724.dts new file mode 100644 index 000000000000..acd909551a75 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8916-acer-a1-724.dts @@ -0,0 +1,217 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/dts-v1/; + +#include "msm8916-pm8916.dtsi" + +#include +#include + +/* + * NOTE: The original firmware from Acer can only boot 32-bit kernels. + * To boot this device tree using arm64 it is necessary to flash 64-bit + * TZ/HYP firmware (e.g. taken from the DragonBoard 410c). + * See https://wiki.postmarketos.org/wiki/Acer_Iconia_Talk_S_(acer-a1-724) + * for suggested installation instructions. + */ + +/ { + model = "Acer Iconia Talk S A1-724"; + compatible = "acer,a1-724", "qcom,msm8916"; + chassis-type = "tablet"; + + aliases { + serial0 = &blsp1_uart2; + }; + + chosen { + stdout-path = "serial0"; + }; + + gpio-keys { + compatible = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&gpio_keys_default>; + + label = "GPIO Buttons"; + + button-volume-up { + label = "Volume Up"; + gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + usb_id: usb-id { + compatible = "linux,extcon-usb-gpio"; + id-gpio = <&msmgpio 110 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&usb_id_default>; + }; +}; + +&blsp1_uart2 { + status = "okay"; +}; + +&pm8916_resin { + status = "okay"; + linux,code = ; +}; + +&pm8916_vib { + status = "okay"; +}; + +&pronto { + status = "okay"; +}; + +&sdhc_1 { + status = "okay"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>; + pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>; +}; + +&sdhc_2 { + status = "okay"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on>; + pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off>; + + cd-gpios = <&msmgpio 38 GPIO_ACTIVE_HIGH>; +}; + +&usb { + status = "okay"; + extcon = <&usb_id>, <&usb_id>; +}; + +&usb_hs_phy { + extcon = <&usb_id>; +}; + +&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-allow-set-load; + regulator-system-load = <200000>; + }; + + 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 = <2900000>; + regulator-max-microvolt = <2900000>; + }; + + l17 { + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <2850000>; + }; + + l18 { + regulator-min-microvolt = <2700000>; + regulator-max-microvolt = <2700000>; + }; +}; + +&msmgpio { + gpio_keys_default: gpio-keys-default-state { + pins = "gpio107"; + function = "gpio"; + + drive-strength = <2>; + bias-pull-up; + }; + + usb_id_default: usb-id-default-state { + pins = "gpio110"; + function = "gpio"; + + drive-strength = <8>; + bias-pull-up; + }; +}; From patchwork Sat Nov 19 19:48:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lin, Meng-Bo" X-Patchwork-Id: 23309 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp851243wrr; Sat, 19 Nov 2022 12:09:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf4jEIKnlwNyM+tU9JQrN5mCjS8talIlCBg5JzVvAnng0zVjAdSks02yMKys51eCNOLUXy69 X-Received: by 2002:a17:90b:2544:b0:20a:f341:4ed9 with SMTP id nw4-20020a17090b254400b0020af3414ed9mr19383494pjb.11.1668888541656; Sat, 19 Nov 2022 12:09:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668888541; cv=none; d=google.com; s=arc-20160816; b=T1QEo6Le0DLQ0UKoMa+KAqevVRJaJcgM9Rkxt0YdhHwYF1ISpPjWvnCR3hpi8yqhjl YV2s5h+ZMDWUFmWf4dp6Ha5/CudgESk1MrBvzOzv+mhYWjxPkYlBnQYL0LP1AbF45cuT lim7t4W+iTQsKII8APllcx4iLKwbMHy9XeN9ndj3g1U6l7J/r4cvygNXGuQsI4o8ObjM uDxtjMmYzMyabN4AepiiwYHA8IfcaU0Nd4gYaoQXHWrPS6VmSAO02jpjiF1WY9HNTfYB dIN/8H/MN4CIWf8XXDJTLqoITkOQGgUj/OEYKtf+R1WcjAIzxrwq8aOA7cohiODYuSem VX3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:cc:from:to :dkim-signature:date; bh=RZgjb9/5OQctpPzuTFDZDZE4FEfMwb4kqi0lsraby84=; b=g5n4R6N5WHQA8nwt8Um/fJ9qfxJidFag8C9qs6o4+uYUwLjbMHvSc/t9cUufLzSeLQ GiOp5RLqAEhwsIbx2MotmQBC+HqkFmkEnrLQQUMjRnZJ7ixjjv4ZeIhAz1p1njdYZVXs 2t0H3BFYr+p4DREIKvRaImm/zszcvIP9JCg3+nzRIk29kqYMvn8x/3HxaWJLGRyHGLkt z3VotGiW5AILPE9QALvg2Xqg9so0ZrhCtPzwfKcJdifQdAhJ5Xwr25qYQsImd7ZP6eS0 m0fgrO1v8wlTJ7ra2TsOzK8/kJOJ7q9gc6U7sb8i9BhbqfGnyxRKMmn3A/UBb4iB1152 y++g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=bmjXCh6r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g11-20020a63520b000000b00473d2c2c082si7540665pgb.361.2022.11.19.12.08.48; Sat, 19 Nov 2022 12:09:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=bmjXCh6r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234551AbiKSTsQ (ORCPT + 99 others); Sat, 19 Nov 2022 14:48:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234219AbiKSTsK (ORCPT ); Sat, 19 Nov 2022 14:48:10 -0500 Received: from mail-4027.protonmail.ch (mail-4027.protonmail.ch [185.70.40.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4CFC140A2 for ; Sat, 19 Nov 2022 11:48:09 -0800 (PST) Date: Sat, 19 Nov 2022 19:48:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1668887287; x=1669146487; bh=RZgjb9/5OQctpPzuTFDZDZE4FEfMwb4kqi0lsraby84=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=bmjXCh6r4dYxxZyWdbMlYrDOJ9FCxeTzDr8SoarfS1ALYHHP1BCEYF7NbMOrz5ipM 6G4n6+d52N/gRuz7aLalCrtIwHOaEsa+20EPdZosQGYsZq7478ekYKWTu/FrxWux4k vQR+HU5zwtuZl+JAavxXffNsGbtEWVH7/zrGMr43FFah2Prh/29ot2JfIniOuiN98V ip+HPV7DvrB1/FcEXk43pW3FY2r1M47o/bXNPXM2T7s9gLfjxaXr7Ip796/U1pNMWy R6SVPXWiGqbMdbNMmaotlkYqznbdaasbGlAGxwrKW5Gnwk9u9odeoq9Pafz13aKrwr Y9rDY9XvvaASw== To: linux-kernel@vger.kernel.org From: "Lin, Meng-Bo" Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Stephan Gerhold , Nikita Travkin , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Subject: [PATCH 3/3] arm64: dts: qcom: msm8916-acer-a1-724: Add accelerometer/magnetometer Message-ID: <20221119194727.92107-1-linmengbo0689@protonmail.com> In-Reply-To: <20221119194340.91789-1-linmengbo0689@protonmail.com> References: <20221119194340.91789-1-linmengbo0689@protonmail.com> Feedback-ID: 40467236:user:proton MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749956471441236672?= X-GMAIL-MSGID: =?utf-8?q?1749956471441236672?= Iconia Talk S uses a Bosch BMC150 accelerometer/magnetometer combo. The chip provides two separate I2C devices for the accelerometer and magnetometer that are already supported by the bmc150-accel and bmc150-magn driver. Signed-off-by: Lin, Meng-Bo Reviewed-by: Konrad Dybcio --- .../boot/dts/qcom/msm8916-acer-a1-724.dts | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-acer-a1-724.dts b/arch/arm64/boot/dts/qcom/msm8916-acer-a1-724.dts index acd909551a75..3461a39ee866 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-acer-a1-724.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-acer-a1-724.dts @@ -6,6 +6,7 @@ #include #include +#include /* * NOTE: The original firmware from Acer can only boot 32-bit kernels. @@ -51,6 +52,35 @@ usb_id: usb-id { }; }; +&blsp_i2c2 { + status = "okay"; + + accelerometer@10 { + compatible = "bosch,bmc150_accel"; + reg = <0x10>; + interrupt-parent = <&msmgpio>; + interrupts = <115 IRQ_TYPE_EDGE_RISING>; + + vdd-supply = <&pm8916_l17>; + vddio-supply = <&pm8916_l6>; + + pinctrl-names = "default"; + pinctrl-0 = <&accel_int_default>; + + mount-matrix = "0", "-1", "0", + "-1", "0", "0", + "0", "0", "1"; + }; + + magnetometer@12 { + compatible = "bosch,bmc150_magn"; + reg = <0x12>; + + vdd-supply = <&pm8916_l17>; + vddio-supply = <&pm8916_l6>; + }; +}; + &blsp1_uart2 { status = "okay"; }; @@ -199,6 +229,14 @@ l18 { }; &msmgpio { + accel_int_default: accel-int-default-state { + pins = "gpio115"; + function = "gpio"; + + drive-strength = <2>; + bias-disable; + }; + gpio_keys_default: gpio-keys-default-state { pins = "gpio107"; function = "gpio";