Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp10281926rwd; Wed, 21 Jun 2023 20:12:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6dsAm2ueyokJ0tRxuH2FdZQQ8WgpLri35PnwyTbb3G58WSWcTYPjT9lhEXsla+IPU08/Ja X-Received: by 2002:a17:902:a3cc:b0:1b2:fa8:d9c9 with SMTP id q12-20020a170902a3cc00b001b20fa8d9c9mr18447768plb.49.1687403526349; Wed, 21 Jun 2023 20:12:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687403526; cv=none; d=google.com; s=arc-20160816; b=U5212iy1CLatPzxzvAWBxgCocBXtTdE/wSydcDNR8s2oJ5bD2ULo3EiTcIFjpCBb6R TE1dYo5ioN/OwOmfYDNZ0PzyKsQx5ukq2e7APo/kWEJCtS4hRYCsQeG+BX0W0gNDjwkk 3dGjHPFwTMmzKJFDClaKT6h8ore64aiYnZBzCwtSxGbRPI3Fk/J04QvSQXbT7JPoUidg ewJVEVhqeSw2TgjOSuX7q3LZSoK8fLzQ7FgWeZWIktodleeK2V+/+FCIV8lKBKJd9mL5 fidVzE6Gks0x7X9TdE0optOCefHhXhY9hNthmPprgbkF8WzI4Ln+N1RrRm0j3I7ENp91 kTUw== 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=fV5B6btJ64xeyUcdf9cajjOxdbvHHUDzzFEKlZ+Zs5A=; b=fVk3Q8bHS9YuUNVSxd3r8l8jmqa3dstbH7fBIaO4gsldbig2j5TSt9GFzSwphswQiY kI6IzqQMvRg8VyIKr4t7NmHxeaboTYQJNcP1SQjI6BmqfWSHhaSvB7aLk2WAWihPUln2 LM7lYTg7q88Y5FZLtrqv5X4HxmWI4YyApYQMdDrZaE2Fx9lLkedq4ZD8y7VYrfxWau68 WCZAZYOX9+O2Rk/XKbZamY82J7aSUS0/swEfcLyueMcHa4B8PKIq2K3LcCtT4baqNYet qyvxyemCwAmXxT91kG6ZQUpCDy7FntrboVGXRP+c+XhlQvwU5UkuU1kGKP+qw6qspYYI 2TmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=MOLZXiFC; 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 b5-20020a170902d50500b001a637201992si6392057plg.488.2023.06.21.20.11.54; Wed, 21 Jun 2023 20:12:06 -0700 (PDT) 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=MOLZXiFC; 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 S230220AbjFVCFH (ORCPT + 99 others); Wed, 21 Jun 2023 22:05:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229921AbjFVCFF (ORCPT ); Wed, 21 Jun 2023 22:05:05 -0400 Received: from mail-4325.protonmail.ch (mail-4325.protonmail.ch [185.70.43.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 408511BDA for ; Wed, 21 Jun 2023 19:05:00 -0700 (PDT) Date: Thu, 22 Jun 2023 02:04:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1687399499; x=1687658699; bh=fV5B6btJ64xeyUcdf9cajjOxdbvHHUDzzFEKlZ+Zs5A=; 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=MOLZXiFCWoBV3v8s9/krVt8hVNz042OOqTfVpFhSD74S9NUer7Ag7FRQBWGsoUVtw t2Sfg39YfRV6b915aIGp8EgodgxIuhDLdKYLVEsyVl3zjdiMmxNH+tsGNdW0CFTgrQ dDqMF4xpPBBva1uz9fr7jw0gOmnts7vWykfqyj3pNSyxRN6dnq44JX+j0MRdB4cMat 7RxXba6JYOIM3n+izjumr7sRhxsfsvivZA7enmPQ1QKveRiP3UxYnQev6rZhHLK7YS 6GUbKeQ5FecGT+URVKlm3/+/CsBG1SMg/kdHNYtDyrsq7T3NB+YjPrNuqwClkHy6uW PGS4fBx7np80g== To: linux-kernel@vger.kernel.org From: "Lin, Meng-Bo" Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Stephan Gerhold , Nikita Travkin , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Subject: [PATCH 2/8] arm64: dts: qcom: msm8939-samsung-a7: Add initial dts Message-ID: <20230622020434.65776-1-linmengbo0689@protonmail.com> In-Reply-To: <20230622020344.65745-1-linmengbo0689@protonmail.com> References: <20230622020344.65745-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_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 This dts adds support for Samsung Galaxy A7 smartphone released in 2015. Add a device tree for A7 with initial support for: - GPIO keys - Hall Sensor - SDHCI (internal and external storage) - USB Device Mode - UART (on USB connector via the SM5502 MUIC) - WCNSS (WiFi/BT) - Regulators Signed-off-by: Lin, Meng-Bo --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/msm8939-samsung-a7.dts | 163 ++++++++++++++++++ 2 files changed, 164 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/msm8939-samsung-a7.dts diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/M= akefile index 337abc4ceb17..23fd31d4bf5a 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -39,6 +39,7 @@ dtb-$(CONFIG_ARCH_QCOM)=09+=3D msm8916-thwc-uf896.dtb dtb-$(CONFIG_ARCH_QCOM)=09+=3D msm8916-thwc-ufi001c.dtb dtb-$(CONFIG_ARCH_QCOM)=09+=3D msm8916-wingtech-wt88047.dtb dtb-$(CONFIG_ARCH_QCOM)=09+=3D msm8916-yiming-uz801v3.dtb +dtb-$(CONFIG_ARCH_QCOM)=09+=3D msm8939-samsung-a7.dtb dtb-$(CONFIG_ARCH_QCOM)=09+=3D msm8939-sony-xperia-kanuti-tulip.dtb dtb-$(CONFIG_ARCH_QCOM)=09+=3D msm8953-motorola-potter.dtb dtb-$(CONFIG_ARCH_QCOM)=09+=3D msm8953-xiaomi-daisy.dtb diff --git a/arch/arm64/boot/dts/qcom/msm8939-samsung-a7.dts b/arch/arm64/b= oot/dts/qcom/msm8939-samsung-a7.dts new file mode 100644 index 000000000000..cf2738bc3313 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8939-samsung-a7.dts @@ -0,0 +1,163 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/dts-v1/; + +#include "msm8939-pm8916.dtsi" + +#include +#include +#include + +/ { +=09model =3D "Samsung Galaxy A7 (2015)"; +=09compatible =3D "samsung,a7", "qcom,msm8939"; +=09chassis-type =3D "handset"; + +=09aliases { +=09=09mmc0 =3D &sdhc_1; /* SDC1 eMMC slot */ +=09=09mmc1 =3D &sdhc_2; /* SDC2 SD card slot */ +=09=09serial0 =3D &blsp_uart2; +=09}; + +=09chosen { +=09=09stdout-path =3D "serial0"; +=09}; + +=09reserved-memory { +=09=09/* Additional memory used by Samsung firmware modifications */ +=09=09tz-apps@85500000 { +=09=09=09reg =3D <0x0 0x85500000 0x0 0xb00000>; +=09=09=09no-map; +=09=09}; +=09}; + +=09gpio-hall-sensor { +=09=09compatible =3D "gpio-keys"; + +=09=09pinctrl-0 =3D <&gpio_hall_sensor_default>; +=09=09pinctrl-names =3D "default"; + +=09=09label =3D "GPIO Hall Effect Sensor"; + +=09=09event-hall-sensor { +=09=09=09label =3D "Hall Effect Sensor"; +=09=09=09gpios =3D <&tlmm 52 GPIO_ACTIVE_LOW>; +=09=09=09linux,input-type =3D ; +=09=09=09linux,code =3D ; +=09=09=09linux,can-disable; +=09=09}; +=09}; + +=09gpio-keys { +=09=09compatible =3D "gpio-keys"; + +=09=09pinctrl-0 =3D <&gpio_keys_default>; +=09=09pinctrl-names =3D "default"; + +=09=09label =3D "GPIO Buttons"; + +=09=09button-volume-up { +=09=09=09label =3D "Volume Up"; +=09=09=09gpios =3D <&tlmm 107 GPIO_ACTIVE_LOW>; +=09=09=09linux,code =3D ; +=09=09}; + +=09=09button-home { +=09=09=09label =3D "Home"; +=09=09=09gpios =3D <&tlmm 109 GPIO_ACTIVE_LOW>; +=09=09=09linux,code =3D ; +=09=09}; +=09}; +}; + +&blsp_i2c1 { +=09status =3D "okay"; + +=09muic: extcon@25 { +=09=09compatible =3D "siliconmitus,sm5502-muic"; +=09=09reg =3D <0x25>; + +=09=09interrupt-parent =3D <&tlmm>; +=09=09interrupts =3D <12 IRQ_TYPE_EDGE_FALLING>; + +=09=09pinctrl-0 =3D <&muic_int_default>; +=09=09pinctrl-names =3D "default"; +=09}; +}; + +&blsp_uart2 { +=09status =3D "okay"; +}; + +&pm8916_resin { +=09linux,code =3D ; +=09status =3D "okay"; +}; + +&pm8916_rpm_regulators { +=09pm8916_l17: l17 { +=09=09regulator-min-microvolt =3D <2850000>; +=09=09regulator-max-microvolt =3D <2850000>; +=09}; +}; + +&sdhc_1 { +=09status =3D "okay"; +}; + +&sdhc_2 { +=09pinctrl-0 =3D <&sdc2_default &sdc2_cd_default>; +=09pinctrl-1 =3D <&sdc2_sleep &sdc2_cd_default>; +=09pinctrl-names =3D "default", "sleep"; + +=09cd-gpios =3D <&tlmm 38 GPIO_ACTIVE_LOW>; + +=09status =3D "okay"; +}; + +&usb { +=09extcon =3D <&muic>, <&muic>; +=09status =3D "okay"; +}; + +&usb_hs_phy { +=09extcon =3D <&muic>; +}; + +&wcnss { +=09status =3D "okay"; +}; + +&wcnss_iris { +=09compatible =3D "qcom,wcn3660b"; +}; + +&tlmm { +=09gpio_hall_sensor_default: gpio-hall-sensor-default-state { +=09=09pins =3D "gpio52"; +=09=09function =3D "gpio"; +=09=09drive-strength =3D <2>; +=09=09bias-disable; +=09}; + +=09gpio_keys_default: gpio-keys-default-state { +=09=09pins =3D "gpio107", "gpio109"; +=09=09function =3D "gpio"; +=09=09drive-strength =3D <2>; +=09=09bias-pull-up; +=09}; + +=09muic_int_default: muic-int-default-state { +=09=09pins =3D "gpio12"; +=09=09function =3D "gpio"; +=09=09drive-strength =3D <2>; +=09=09bias-disable; +=09}; + +=09sdc2_cd_default: sdc2-cd-default-state { +=09=09pins =3D "gpio38"; +=09=09function =3D "gpio"; +=09=09drive-strength =3D <2>; +=09=09bias-pull-up; +=09}; +}; --=20 2.39.2