Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4261025rwb; Mon, 21 Nov 2022 05:46:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf5pLfblnHlWXu/z47soxab6qHb8LVEtI7l8WeuPmX1cjX6h721MVJfie+OEO5mALb7xkZ7f X-Received: by 2002:a17:906:28d1:b0:78d:bc56:8f22 with SMTP id p17-20020a17090628d100b0078dbc568f22mr14711359ejd.256.1669038363772; Mon, 21 Nov 2022 05:46:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669038363; cv=none; d=google.com; s=arc-20160816; b=QkPWluY5KBM6ZMy6G6/0AEaMenArzVkAvblt97GFmCJ9S8fiPuvBZJYZNA/jwCVRLo x9fWw/ITeuR3En2CWfcz4GFmIUpT1+DbDbpNNb+j23na4RdMvFvgzk3rYPcBC363wEDs kxJzgtDXuGQy0ySkStEhU96pxtVC9tNHrJ/ts4IVIBxPYmu3YcRvEAxcshvMaVoHShaM rWz6ogtQXyBlpdSD4MS8Ckj7XO8bOzBME3UMT0a/MOzFk/XpRJ698IR03QV3Ey3wiNTg 8b4LQlcCxBEk2LpwCzQ8MAq56XtFbGsUqNCgEG+FJR+z7jfO4KvuZRIx5AANu4XveXoF +Tkg== 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=N7sAmAbP+TptEIQhG2TWqnIIMg3L2LT3ggreVAaUFbo=; b=D82cRkGFw50g4I3WB0fM5Eg8KplwN6Wn9+Z95kvYaQqOIaiA+hcHFGfIKp8yyT7Rtp poQstrc/TdrCXSLPzNgheAZFSDgnCza1p1gxhfEZNSjchIFr7L4kn5LqSfmDi1z6xAZQ lKhuVaLWob5LY8McTHziWgI+kW+8YqZPL16KuRhEQMQ79J3WE9nNl3MFfw3W3YS5jSVX Iu2LGuDfzq9KHSB5i3DHcSY9gKWbjRuWO65leZWyov9zAyyOOJfMfsZ6sCOmY4xUlL8t 1iCeY3xCz5ogfY+DYjdFiGNKdpuFgl5DezCcWmf934HBzt0XBtozp3s4GYCTOcax2SCj nv7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=uhBfK30j; 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 xb14-20020a170907070e00b007b28c6790edsi10006791ejb.205.2022.11.21.05.45.38; Mon, 21 Nov 2022 05:46:03 -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=uhBfK30j; 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 S230245AbiKUNaH (ORCPT + 91 others); Mon, 21 Nov 2022 08:30:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230300AbiKUN35 (ORCPT ); Mon, 21 Nov 2022 08:29:57 -0500 Received: from mail-4325.protonmail.ch (mail-4325.protonmail.ch [185.70.43.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63217C0510; Mon, 21 Nov 2022 05:29:50 -0800 (PST) Date: Mon, 21 Nov 2022 13:29:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1669037388; x=1669296588; bh=N7sAmAbP+TptEIQhG2TWqnIIMg3L2LT3ggreVAaUFbo=; 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=uhBfK30j0h5O2b80SB4bROOzKT+2zY7QXuWBGFyOjnZ91dzddAPSRPnED2PeUsIGD tEZPobAUQrPQpqmqqB1rs+MQPhaGnfIeuTo6m15Kj/Gq3Mc7GKzCXR9V1tsO2jtgH/ +n2lXk6QzSHjwqldpcG4sQRansabdDnTatTEQt8gnjYIGJ8UfUN4E+bR9p8D1BM0EB KwtGDtF00LWG8HBaUlIf5rWcI5Pst8mDXGmrDqDgn+5mWGsUCLAq0JKZhzVkGWhMJa eNtuJQRS6AQ47qzm4q5W8ia3igIo15fVEkudU+cqz6ZxHGf8mOGrZPWC1C/NDaiHhy i/s/6omrL/Vjw== To: linux-kernel@vger.kernel.org From: "Lin, Meng-Bo" Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Linus Walleij , Stanislav Jakubek , Shawn Guo , Stephan Gerhold , Nikita Travkin , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Subject: [PATCH v3 3/5] arm64: dts: qcom: msm8916-gplus-fl8005a: Add initial device tree Message-ID: <20221121132817.206999-1-linmengbo0689@protonmail.com> In-Reply-To: <20221121132139.206581-1-linmengbo0689@protonmail.com> References: <20221121132139.206581-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,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 GPLUS FL8005A is a tablet using the MSM8916 SoC released in 2015. Add a device tree for with initial support for: - GPIO keys - GPIO LEDs - pm8916-vibrator - SDHCI (internal and external storage) - USB Device Mode - UART - WCNSS (WiFi/BT) - Regulators Signed-off-by: Lin, Meng-Bo --- .../boot/dts/qcom/msm8916-gplus-fl8005a.dts | 239 ++++++++++++++++++ 1 file changed, 239 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts diff --git a/arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts b/arch/arm6= 4/boot/dts/qcom/msm8916-gplus-fl8005a.dts new file mode 100644 index 000000000000..a8e8d5273e75 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts @@ -0,0 +1,239 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/dts-v1/; + +#include "msm8916-pm8916.dtsi" + +#include +#include +#include + +/ { +=09model =3D "GPLUS FL8005A"; +=09compatible =3D "gplus,fl8005a", "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}; + +=09gpio-leds { +=09=09compatible =3D "gpio-leds"; + +=09=09pinctrl-names =3D "default"; +=09=09pinctrl-0 =3D <&gpio_leds_default>; + +=09=09led-red { +=09=09=09function =3D LED_FUNCTION_CHARGING; +=09=09=09color =3D ; +=09=09=09gpios =3D <&msmgpio 117 GPIO_ACTIVE_HIGH>; +=09=09=09retain-state-suspended; +=09=09}; + +=09=09led-green { +=09=09=09function =3D LED_FUNCTION_CHARGING; +=09=09=09color =3D ; +=09=09=09gpios =3D <&msmgpio 118 GPIO_ACTIVE_HIGH>; +=09=09=09retain-state-suspended; +=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 { +=09linux,code =3D ; +=09status =3D "okay"; +}; + +&pm8916_vib { +=09status =3D "okay"; +}; + +&pronto { +=09status =3D "okay"; +}; + +&sdhc_1 { +=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>; + +=09status =3D "okay"; +}; + +&sdhc_2 { +=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_LOW>; + +=09status =3D "okay"; +}; + +&usb { +=09extcon =3D <&usb_id>, <&usb_id>; +=09status =3D "okay"; +}; + +&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-system-load =3D <200000>; +=09=09regulator-allow-set-load; +=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 <1800000>; +=09=09regulator-max-microvolt =3D <3300000>; +=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}; + +=09gpio_leds_default: gpio-led-default-state { +=09=09pins =3D "gpio117", "gpio118"; +=09=09function =3D "gpio"; + +=09=09drive-strength =3D <2>; +=09=09bias-disable; +=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