Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2265720rwb; Sat, 19 Nov 2022 12:14:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf6pr6LrJ99z/CSd5o3JFmzlYUgsukkIPk8w7/9bMM4GJ/Xq49ouYtCwHI+WF2CBmzt2WR5r X-Received: by 2002:a17:90b:4fcc:b0:213:2913:3870 with SMTP id qa12-20020a17090b4fcc00b0021329133870mr19842753pjb.119.1668888866159; Sat, 19 Nov 2022 12:14:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668888866; cv=none; d=google.com; s=arc-20160816; b=PcqGQ1GqNlRffibTaBDe1nyCy239Wn0WbZ9v60fqtIIKadqKw+tV2nDpxBzTzXvb2n 1ffbv0/hzmSqvyeArm1Wj10Ybt74daxeUN/mZxxjnUanNlR1RHNA8UHO2I48RBtIRbCV 4kTzd6kbJ9UaMljMXxYO89HtoO3OxG7DkBflxXMxuAVQMf3TYgyvK+TB4+lUmIKzBxZJ 8MExiwTQ/ncOc7TkwnvbZqR9QOxIEZvYwbx61ayQ21CB0cJ/grJFM0BpxzxcBMweuWoB 4Y+Nv3KU7mzBzQL+uudHQsPm7AAHsJW59xeVh6Wep+Pf9+hPEryXEag8OqyrOZHQp1jn DZpA== 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 Return-Path: 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.14.12; Sat, 19 Nov 2022 12:14:26 -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 + 91 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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 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/M= akefile 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)=09+=3D ipq6018-cp01-c1.dtb dtb-$(CONFIG_ARCH_QCOM)=09+=3D ipq8074-hk01.dtb dtb-$(CONFIG_ARCH_QCOM)=09+=3D ipq8074-hk10-c1.dtb dtb-$(CONFIG_ARCH_QCOM)=09+=3D ipq8074-hk10-c2.dtb +dtb-$(CONFIG_ARCH_QCOM)=09+=3D msm8916-acer-a1-724.dtb dtb-$(CONFIG_ARCH_QCOM)=09+=3D msm8916-alcatel-idol347.dtb dtb-$(CONFIG_ARCH_QCOM)=09+=3D msm8916-asus-z00l.dtb dtb-$(CONFIG_ARCH_QCOM)=09+=3D 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. + */ + +/ { +=09model =3D "Acer Iconia Talk S A1-724"; +=09compatible =3D "acer,a1-724", "qcom,msm8916"; +=09chassis-type =3D "tablet"; + +=09aliases { +=09=09serial0 =3D &blsp1_uart2; +=09}; + +=09chosen { +=09=09stdout-path =3D "serial0"; +=09}; + +=09gpio-keys { +=09=09compatible =3D "gpio-keys"; + +=09=09pinctrl-names =3D "default"; +=09=09pinctrl-0 =3D <&gpio_keys_default>; + +=09=09label =3D "GPIO Buttons"; + +=09=09button-volume-up { +=09=09=09label =3D "Volume Up"; +=09=09=09gpios =3D <&msmgpio 107 GPIO_ACTIVE_LOW>; +=09=09=09linux,code =3D ; +=09=09}; +=09}; + +=09usb_id: usb-id { +=09=09compatible =3D "linux,extcon-usb-gpio"; +=09=09id-gpio =3D <&msmgpio 110 GPIO_ACTIVE_HIGH>; +=09=09pinctrl-names =3D "default"; +=09=09pinctrl-0 =3D <&usb_id_default>; +=09}; +}; + +&blsp1_uart2 { +=09status =3D "okay"; +}; + +&pm8916_resin { +=09status =3D "okay"; +=09linux,code =3D ; +}; + +&pm8916_vib { +=09status =3D "okay"; +}; + +&pronto { +=09status =3D "okay"; +}; + +&sdhc_1 { +=09status =3D "okay"; + +=09pinctrl-names =3D "default", "sleep"; +=09pinctrl-0 =3D <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>; +=09pinctrl-1 =3D <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>; +}; + +&sdhc_2 { +=09status =3D "okay"; + +=09pinctrl-names =3D "default", "sleep"; +=09pinctrl-0 =3D <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on>; +=09pinctrl-1 =3D <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off>; + +=09cd-gpios =3D <&msmgpio 38 GPIO_ACTIVE_HIGH>; +}; + +&usb { +=09status =3D "okay"; +=09extcon =3D <&usb_id>, <&usb_id>; +}; + +&usb_hs_phy { +=09extcon =3D <&usb_id>; +}; + +&smd_rpm_regulators { +=09vdd_l1_l2_l3-supply =3D <&pm8916_s3>; +=09vdd_l4_l5_l6-supply =3D <&pm8916_s4>; +=09vdd_l7-supply =3D <&pm8916_s4>; + +=09s3 { +=09=09regulator-min-microvolt =3D <1200000>; +=09=09regulator-max-microvolt =3D <1300000>; +=09}; + +=09s4 { +=09=09regulator-min-microvolt =3D <1800000>; +=09=09regulator-max-microvolt =3D <2100000>; +=09}; + +=09l1 { +=09=09regulator-min-microvolt =3D <1225000>; +=09=09regulator-max-microvolt =3D <1225000>; +=09}; + +=09l2 { +=09=09regulator-min-microvolt =3D <1200000>; +=09=09regulator-max-microvolt =3D <1200000>; +=09}; + +=09l4 { +=09=09regulator-min-microvolt =3D <2050000>; +=09=09regulator-max-microvolt =3D <2050000>; +=09}; + +=09l5 { +=09=09regulator-min-microvolt =3D <1800000>; +=09=09regulator-max-microvolt =3D <1800000>; +=09}; + +=09l6 { +=09=09regulator-min-microvolt =3D <1800000>; +=09=09regulator-max-microvolt =3D <1800000>; +=09}; + +=09l7 { +=09=09regulator-min-microvolt =3D <1800000>; +=09=09regulator-max-microvolt =3D <1800000>; +=09}; + +=09l8 { +=09=09regulator-min-microvolt =3D <2850000>; +=09=09regulator-max-microvolt =3D <2900000>; +=09}; + +=09l9 { +=09=09regulator-min-microvolt =3D <3300000>; +=09=09regulator-max-microvolt =3D <3300000>; +=09}; + +=09l10 { +=09=09regulator-min-microvolt =3D <2700000>; +=09=09regulator-max-microvolt =3D <2800000>; +=09}; + +=09l11 { +=09=09regulator-min-microvolt =3D <1800000>; +=09=09regulator-max-microvolt =3D <2950000>; +=09=09regulator-allow-set-load; +=09=09regulator-system-load =3D <200000>; +=09}; + +=09l12 { +=09=09regulator-min-microvolt =3D <1800000>; +=09=09regulator-max-microvolt =3D <2950000>; +=09}; + +=09l13 { +=09=09regulator-min-microvolt =3D <3075000>; +=09=09regulator-max-microvolt =3D <3075000>; +=09}; + +=09l14 { +=09=09regulator-min-microvolt =3D <1800000>; +=09=09regulator-max-microvolt =3D <3300000>; +=09}; + +=09l15 { +=09=09regulator-min-microvolt =3D <1800000>; +=09=09regulator-max-microvolt =3D <3300000>; +=09}; + +=09l16 { +=09=09regulator-min-microvolt =3D <2900000>; +=09=09regulator-max-microvolt =3D <2900000>; +=09}; + +=09l17 { +=09=09regulator-min-microvolt =3D <2850000>; +=09=09regulator-max-microvolt =3D <2850000>; +=09}; + +=09l18 { +=09=09regulator-min-microvolt =3D <2700000>; +=09=09regulator-max-microvolt =3D <2700000>; +=09}; +}; + +&msmgpio { +=09gpio_keys_default: gpio-keys-default-state { +=09=09pins =3D "gpio107"; +=09=09function =3D "gpio"; + +=09=09drive-strength =3D <2>; +=09=09bias-pull-up; +=09}; + +=09usb_id_default: usb-id-default-state { +=09=09pins =3D "gpio110"; +=09=09function =3D "gpio"; + +=09=09drive-strength =3D <8>; +=09=09bias-pull-up; +=09}; +}; --=20 2.30.2