From patchwork Tue Nov 22 13:31:53 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: 24371 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2201096wrr; Tue, 22 Nov 2022 05:32:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf7jBSianowwvldeGC/d5V/7Fj12ndivEjusvnDUxgVl7g54Zxr8nNT2FkvJ7UioLwb1zgJo X-Received: by 2002:a17:902:da84:b0:185:3ecb:d464 with SMTP id j4-20020a170902da8400b001853ecbd464mr4494859plx.78.1669123978491; Tue, 22 Nov 2022 05:32:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669123978; cv=none; d=google.com; s=arc-20160816; b=KMje36sSBkahkn+fHV5IahkCooQPNu3Mq0VMaQsv/EkXF1avg69dqvpUT3KiyRGN1i QQS/hVXYMvid8arHMqk4pY7i96m5kz9NtrooGoT5CnyZ8qd6AYWwqJKUrjuXWK7dfMki KP532aNf0NiP079vYDM8OZNF5yTtwA4lCWgVAfckjV9EaVI6XYcbispbp+olY21FtLec D+5+9qtHB6E7qjxeF8wmZaolRfVbHjyXxsjMS04Z33CRPCOJrCjcUmqoGme7owM53t90 nO8z44NqBKU+IghCb7jNeKbCBTmfQLhlDiB7dIoqMpZW24QuAf2ddc/t83ll7epq6M17 5qeA== 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=jfqqTP5BWjnX4gaBhfE4ZQlDKqyMGBo+E5+/v+guTYs=; b=VUhLeKgU70zO/o4gTvS0rpj4Xl9tjbUP4kSRaL1SSSqXZrDzKtPPRdgwOUbcpcIiSU FFBQ2lFn5iKWF086JI2VTHJY55M/8H9grEjDSQfsQyYbsofA7MoGK3BKso7JrNwWQsXL rZvlchnQjDby3YbG1zmAMNiwx0mZnj0X4+ssi3vGKl/oB+G7+GJ7d4fC3PDrQFEPM79R vtfsbgKkiZxSIw2q3DZYtzIIYNSRKE5JhwLzrMMv8kRVGiv05kI9EW+PTzlCbPIAyrNi bdks3aUcsVYu+wX3ceZyKOkK7CRwqTsGXPAIcCcbvs8T7DiGWyzUb3pakPSGrnLFHueg kyZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=sguJaKxw; 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 c9-20020a17090a8d0900b00218abadb6a3si6560434pjo.65.2022.11.22.05.32.43; Tue, 22 Nov 2022 05:32:58 -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=sguJaKxw; 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 S233800AbiKVNcK (ORCPT + 99 others); Tue, 22 Nov 2022 08:32:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233748AbiKVNcC (ORCPT ); Tue, 22 Nov 2022 08:32:02 -0500 Received: from mail-4319.protonmail.ch (mail-4319.protonmail.ch [185.70.43.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 081FF654D0; Tue, 22 Nov 2022 05:32:02 -0800 (PST) Date: Tue, 22 Nov 2022 13:31:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1669123920; x=1669383120; bh=jfqqTP5BWjnX4gaBhfE4ZQlDKqyMGBo+E5+/v+guTYs=; 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=sguJaKxwXe26pQd8RP6DuxFyEEPAK3IBoZNdozA9oOUJTOT5Oeh7ALsEQxuJu8Wpa LUEeKudttc84wLJFK3h/F7zDwcd2vmsUU18ZU7qGhRE+32zpl0XiEwOB0nR3CbKXBV Pg3Z5iHONPBLhSVqOnXTFBomHWcwef/gKmOItTRd+nHpnYXveX9hXrPd71FAJGw+CA ind2pZ/cF7C2kw1U7nC0/wz8dAg1/h7hmXFZtnNcS3mhhD0UY4ttYsjRZo5gf5LagV yAlGWmbniXcZ8QoR3fpZ+bSx+qpLSzpxxtb4v7G78cGSyhaO2FNF5EQDRDn06NR64B /2BhWWfJlM/nQ== 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, Krzysztof Kozlowski Subject: [RESEND PATCH v5 1/4] dt-bindings: qcom: Document msm8916-acer-a1-724 Message-ID: <20221122133114.258195-1-linmengbo0689@protonmail.com> In-Reply-To: <20221122132816.257717-1-linmengbo0689@protonmail.com> References: <20221122132816.257717-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?1750203345115362887?= X-GMAIL-MSGID: =?utf-8?q?1750203345115362887?= Document the new acer,a1-724 device tree bindings used in its device tree. Signed-off-by: Lin, Meng-Bo 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 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 Tue Nov 22 13:31:59 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: 24372 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2201203wrr; Tue, 22 Nov 2022 05:33:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf6Mf1C/XqYXeqzDa7j+KE2ebEG/nwOAiYztP2NGAfrSvwm9iKZ70zxeO8CUMXJ27QLm9dX/ X-Received: by 2002:aa7:96d2:0:b0:574:2447:947d with SMTP id h18-20020aa796d2000000b005742447947dmr1399984pfq.32.1669123990220; Tue, 22 Nov 2022 05:33:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669123990; cv=none; d=google.com; s=arc-20160816; b=0wBDXWYuiBu/MBoA/vPYNauJiLa24xv9gYR+U6BVX7uOy1CroN81E2UtwnNtApxgEG 9HlWH6gElHrvhCoP+PJ1M9lV0/GFAxgkeuBzjNVCU1kf9WhMZMnR6dtCeLcNnw+7ldYX P3WLFow9AYMYJddWlljehLwlSP19KHDw/L1A0iBqoXj8o82gdZGQeHq7ZzhxQXzEtOgs yI0tpak/bMT19KlqYqxs10XpqexAz6sTkwk8OOZKKXOCHd90WKNh9+xppIbDskorD2Lt hHk/8iJbgcUtGp6NAZkklcI3PH/4vZzwgKshLtFx/MX4iP1KCGC0DtTtmJ3cdosYQE0R 8ZRQ== 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=6W9FJcrKkXqvtUDQ/mak3DR9IXLeyshZQ39tP+pf8Cs=; b=BJE/Yprmd9/OBX6zsm4FB8VlTMphR9qOoeYIf37ApKSyBMI1XH1PPveazjwpfjponR /AzRWLJS0SzPBYi3vXAYqtcTiqfJObbjjFUjAS9F2Or1pP9UBI/TrE25pZO2WejjrrlR I8g7BJpXamdOtNXF1QHJ/0xDbpvVeXsbsds4tMPc6BXB9GniPRb+VLvXjzB0NPbsAqK9 M368SzXZgvuCQ9JbFcGtHqRYTjhbcNjp5qS5KjRvQI6bITW4co0qIGBtwSh0M0F0RsN+ jNItLmazZPle9En1fgJuEoYt8IR2FWhGvn1WjTn7OcH2HV7HGUerpwVlvSSA2UZeSvjT 6OSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=C4MnXVNj; 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 pg16-20020a17090b1e1000b002009ed52bf6si15467524pjb.19.2022.11.22.05.32.53; Tue, 22 Nov 2022 05:33:10 -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=C4MnXVNj; 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 S233476AbiKVNcM (ORCPT + 99 others); Tue, 22 Nov 2022 08:32:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233786AbiKVNcG (ORCPT ); Tue, 22 Nov 2022 08:32:06 -0500 Received: from mail-4318.protonmail.ch (mail-4318.protonmail.ch [185.70.43.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 720D9654D0; Tue, 22 Nov 2022 05:32:04 -0800 (PST) Date: Tue, 22 Nov 2022 13:31:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1669123922; x=1669383122; bh=6W9FJcrKkXqvtUDQ/mak3DR9IXLeyshZQ39tP+pf8Cs=; 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=C4MnXVNjJqPxYF4tZkA2ceQo6DydWJ4nMnh2gu/s5ihBFRdpuUd19YQBHTCNx5rtL OwoaAwFuv+JYPZZTbKVJJs46PeljjkO4lp/LT7yQZNCY4AQdgRiq9Wnfo6rwqiIC2V RzAxWYPWFvrcLvcgcB/MMzfprAWzZjM4J3Rhz58Ab2d2J9T1uNurtNw6676fEGkw19 nOk762gMRYE76rI60N69++MhbTe5Yx1JAbe7JGPz0aQucNe9CBISvOHCehqEanM3EF m1Uev3B7e0WzKb1s8v//1szfebj0kmsWh7cnCSMyElnGwUncWu47NFZ5QEpWIgv5bj AShBWP3AJSsew== 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: [RESEND PATCH v5 2/4] arm64: dts: qcom: msm8916-acer-a1-724: Add initial device tree Message-ID: <20221122133123.258249-1-linmengbo0689@protonmail.com> In-Reply-To: <20221122132816.257717-1-linmengbo0689@protonmail.com> References: <20221122132816.257717-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?1750113786219788133?= X-GMAIL-MSGID: =?utf-8?q?1750203357123943329?= 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 Reviewed-by: Konrad Dybcio --- 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..593051ea92b6 --- /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 { + linux,code = ; + status = "okay"; +}; + +&pm8916_vib { + status = "okay"; +}; + +&pronto { + status = "okay"; +}; + +&sdhc_1 { + 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>; + + status = "okay"; +}; + +&sdhc_2 { + 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>; + + status = "okay"; +}; + +&usb { + extcon = <&usb_id>, <&usb_id>; + status = "okay"; +}; + +&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-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 = <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 Tue Nov 22 13:32:13 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: 24373 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2201715wrr; Tue, 22 Nov 2022 05:34:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf5b6Ilm529bD5Y++opGf+Jq7WFA3fNv2Cr2qtXsXKG7hNvsNrA4kILz0iy2T2npMrzVew36 X-Received: by 2002:a17:90a:5c85:b0:20a:92d2:226a with SMTP id r5-20020a17090a5c8500b0020a92d2226amr14284890pji.155.1669124048032; Tue, 22 Nov 2022 05:34:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669124048; cv=none; d=google.com; s=arc-20160816; b=MnRtR88xhq1/3MPmWMMqa2x2NtcWqsetZKAOOxoEd4Y8mLBFtKEVMkbAp8xyFmfZYk xUxXup5NSnJHk+9tk9aRL/WTcMH4Xuf8LwJTl0PHo9zQvlkPxzEcg1GG1lXWe1LivOhq 2DM6CrMTfUC/wDGSIXeh4E7p/Z93eN7c3Ew2ml28J6ZrlWCSLu8Z5id4RaiJg35Gs9eK Bxh1ZjB+Zr+oyJcgW/ffpqW9jxrtmVI/FNDroaHMYJaqN1i7MJyQ6z8qsP+YIwO8BLg1 ijHZcJTg4deehFvg3NSlYM7HfId9U2wo42iStjBZ+kDA5s0qoomKRV1ybbf+NKnyPx8T cubA== 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=AhqCCaLvPKm6+EzCNox2qptaiFM8dp9eaZqm0qf77Bk=; b=ksHbV8wMAeb5fn3K31hHIPvArEtJcP6//68GnLa3mY2Vv3kis7xaBHw/Uw9ABfQALs SYy7+QnnD3Py7v5tpRUou1XWdVO08iumwL2CqQ/dRJxlvKvy+3T+pwyLDRXi3PCIpd2E PSPB8hNdhaPzhtX6wS1fWGt0r5c6fsgOYRVP74ak8kOeDpM9iWw999gm6CIDp9aIxV+v LjwQ7XOzqkeLjgCTqbnZPTRLuPUwqNHqUqVJVPMpRawhy9YGUiFfjEWddEv3AYLF0sFM uhcIOuNsy2nk/5+d8QC7l4c9wupRxEYVQfXV3+bfL/kdbsNcnr0T1v4bLVMK2xIUmxH8 +f9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=g2rNv+tJ; 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 h184-20020a636cc1000000b00476d0c7b644si12878515pgc.290.2022.11.22.05.33.53; Tue, 22 Nov 2022 05:34:08 -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=g2rNv+tJ; 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 S233027AbiKVNcj (ORCPT + 99 others); Tue, 22 Nov 2022 08:32:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233773AbiKVNcc (ORCPT ); Tue, 22 Nov 2022 08:32:32 -0500 Received: from mail-4318.protonmail.ch (mail-4318.protonmail.ch [185.70.43.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3C8065E58; Tue, 22 Nov 2022 05:32:24 -0800 (PST) Date: Tue, 22 Nov 2022 13:32:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1669123942; x=1669383142; bh=AhqCCaLvPKm6+EzCNox2qptaiFM8dp9eaZqm0qf77Bk=; 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=g2rNv+tJKdEyOLDJyUjMOa3+5ZPzUD3TPLHn07JiiHLF8fCdfQiOyoec71DvLzitO kZbzh81cKWq9Rn/ts+PCqvTwLUMypWI495iM0FcHl12tF75Mo1IHVgzgQ4MxrqgE4d K4tM1HR6Hu87NcRwiLMcWbVQulCi714O9oTeEYLIGsMEMI4SKz7QZkSE2kjSlM15KA eGN0ecFqUqJ+9XQSF8ZsFYLm2V3xygAX0086Hej5FijiY61H60O9AsFXaMRg6C5zgc nDxEgtnk++sLT++lcNKCU/kp4WZ7dp3GFa7JXX5fu+m50V6ft6ifwLLKu7I/enEeTo XtsjC4rNygt/Q== 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: [RESEND PATCH v5 3/4] arm64: dts: qcom: msm8916-acer-a1-724: Add accelerometer/magnetometer Message-ID: <20221122133132.258303-1-linmengbo0689@protonmail.com> In-Reply-To: <20221122132816.257717-1-linmengbo0689@protonmail.com> References: <20221122132816.257717-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?1750203417889118725?= X-GMAIL-MSGID: =?utf-8?q?1750203417889118725?= 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 593051ea92b6..bea0d022dd9a 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"; From patchwork Tue Nov 22 13:32:28 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: 24374 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2202691wrr; Tue, 22 Nov 2022 05:36:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf7md24xkA0XMjghLnnclzsePa3H/X/7c7WvHN07vwTATxDvyFVESqa/D/HV2yS5tfxdRgMl X-Received: by 2002:a62:868a:0:b0:56e:3a98:f02 with SMTP id x132-20020a62868a000000b0056e3a980f02mr11811729pfd.53.1669124170599; Tue, 22 Nov 2022 05:36:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669124170; cv=none; d=google.com; s=arc-20160816; b=cLmm1wWPsPLCbGw5gMpXRZ6QHWVve5A3cdGcyYYlU1LUYBXD4iSnPrn99bgKzlXytl 7o2Y+A6IyUWW0yFGJeoBDqLiBxdi9mdBLj0kAPozcX1LCAiPU5oRY/ifE0ugCb3jltbq pwonkw5kRJXqjCVMoxNAWDWeukFcB+Emu7TvaByaW8ORDclsUkNhwgD/27IcVYwTxEqc nNNoYsT47Vw77Xujr1a/WsgDKFsxa0jbqkmbJPRkRtJJcHsU0X2gjhiDCszJVTEY7tAB SO7f3lQ0vj9HHI+pT2rJvwJ7hhUJ1LHAFddzU+WQ6RQfdtZPCRLotugUPmA4DkLjTMeH 5JLQ== 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=pMgyj6309dziadQUAmdkN8/52Ea7gPzJRy2Jf1geJQ0=; b=zbGqYUYQv6mzJGhERJPOw/70/K8VDzJ3EpV81zipY0btyKBN4TWD8sQX2bv9esPhEA Wnbhr9StPFYT4GqrPfSZNcg2Nes1UwP8+EJIs+J6t94dHFRzAaUnNAUrJF2IjYxRdehb QfkiUa5mU5zzSJ58jOCrliWVjogOi+OQeyzxXmuFd5u/8JzAIiKk0fymolRZg9MUYb5J RBpfp5smviRDYcnRtVvZYgfyf8PnWpcIrstJGREa4V5srHeXrV5X2csTd9Kl/qGNDN/G 1j3MOW5H/QhBfH235W2p/CPKjCNxqoTRvg6tIgQ7rg1A2rkSgkrA1y9k4C3r5kVbNAjZ cjdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=mjtT6EgC; 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 a14-20020a170902ecce00b00178431e09bdsi13718528plh.230.2022.11.22.05.35.56; Tue, 22 Nov 2022 05:36:10 -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=mjtT6EgC; 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 S233805AbiKVNcm (ORCPT + 99 others); Tue, 22 Nov 2022 08:32:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233802AbiKVNch (ORCPT ); Tue, 22 Nov 2022 08:32:37 -0500 Received: from mail-4319.protonmail.ch (mail-4319.protonmail.ch [185.70.43.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1959C74; Tue, 22 Nov 2022 05:32:33 -0800 (PST) Date: Tue, 22 Nov 2022 13:32:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1669123951; x=1669383151; bh=pMgyj6309dziadQUAmdkN8/52Ea7gPzJRy2Jf1geJQ0=; 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=mjtT6EgCEwE8+XuS8+w0R+4ofsX1V819BBmdonEiDDR39lUerGE3a+lF9NFEYql9J tGaDwLhfACpoopmLOVgzncL0p5dyhK1jyYBZ6l0HZjgEpI2zK0Y3rxHBsHm0ghxde9 DvuWbrFAFqodjCN5qwGn4VKZ1YYy9Nq2R9cJxE8MgPrIccQRmtLt888aKgYczzYYho aZhg0KlT5ka0m38acxmUVZ0roCtZeRFtOZiI2YLenbqGvsayE5Jq/k/PDP3zSayjB2 eyuZH/N87Dtc9Puezvty+hmpf0EPCLD5KlMZt/l7+MK1aiKBNCs6hLvj7bsxFmSbq4 Gxp/Bfyjh/7Zw== 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: [RESEND PATCH v5 4/4] dts: arm64: qcom: msm8916-acer-a1-724: Add touchscreen Message-ID: <20221122133141.258357-1-linmengbo0689@protonmail.com> In-Reply-To: <20221122132816.257717-1-linmengbo0689@protonmail.com> References: <20221122132816.257717-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?1750203546084157063?= X-GMAIL-MSGID: =?utf-8?q?1750203546084157063?= A1-724 uses a Focaltech FT5446 touchscreen that is connected to blsp_i2c5. Add it to the device tree. Signed-off-by: Lin, Meng-Bo --- .../boot/dts/qcom/msm8916-acer-a1-724.dts | 42 +++++++++++++++++++ 1 file changed, 42 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 bea0d022dd9a..5b216107f69b 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-acer-a1-724.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-acer-a1-724.dts @@ -81,6 +81,30 @@ magnetometer@12 { }; }; +&blsp_i2c5 { + status = "okay"; + + touchscreen@38 { + /* Actually ft5446 */ + compatible = "edt,edt-ft5406"; + reg = <0x38>; + + interrupt-parent = <&msmgpio>; + interrupts = <13 IRQ_TYPE_LEVEL_LOW>; + + reset-gpios = <&msmgpio 12 GPIO_ACTIVE_LOW>; + + vcc-supply = <&pm8916_l16>; + iovcc-supply = <&pm8916_l6>; + + touchscreen-size-x = <720>; + touchscreen-size-y = <1280>; + + pinctrl-names = "default"; + pinctrl-0 = <&touchscreen_default>; + }; +}; + &blsp1_uart2 { status = "okay"; }; @@ -245,6 +269,24 @@ gpio_keys_default: gpio-keys-default-state { bias-pull-up; }; + touchscreen_default: touchscreen-default-state { + reset-pins { + pins = "gpio12"; + function = "gpio"; + + drive-strength = <2>; + bias-disable; + }; + + touchscreen-pins { + pins = "gpio13"; + function = "gpio"; + + drive-strength = <2>; + bias-pull-up; + }; + }; + usb_id_default: usb-id-default-state { pins = "gpio110"; function = "gpio";