Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp559384rwb; Wed, 28 Sep 2022 06:24:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5awLXje3qBJV6g6xCIm7AKSwughAdWkwjf7rkXdpdQKN6ah+dIzqfsv40ldznaKq+ZFptg X-Received: by 2002:a17:907:72c4:b0:783:4fe0:daca with SMTP id du4-20020a17090772c400b007834fe0dacamr14808114ejc.455.1664371455139; Wed, 28 Sep 2022 06:24:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664371455; cv=none; d=google.com; s=arc-20160816; b=oQm3I1g1XMhxcI+g3f7EwQs+1OTIxJDfpDMf9adCGmDixxbbOMYHv8k7G7/nCxMrhe 7jMZhcDLaMMfvRQgaSmlLjbfu13u74hDkUnmGDNd3vb9bxKpXuFZmv0SIRg9iQCjY/km f77D2UHzsgqDX0M/SqP/01b9J1kRxXzJwoI8iaGaV70ZRoke8PGQ1yH2QBs8S2n4ogY1 2bb/SVnaW8LVqQhTzQQOYTWETjDcQfC91RyRnJh8FqQcKyGUEckuDswzS9QpHf8Vgd/C nrJaNQX6OV6zspoZUtCOUhS77KeaRNwvCYnoU/pR1cHPpt6xlV2z9lhWz1H/VyZwlnHx tBXw== 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=HMfLWuTCBimoQHszrNwwVDH2NqizvlSNDkSybhyZMak=; b=0pYf+7fU2AYOKK9T6anpezzrt8lOJ5koUoL3pWQ/um0etoCPmQskWrc7xMS8OuMVQi +t0k1sez2zukO0M4bQMknou/XsQSXCscn9ZD6KsZqC5p2NNthP6vHIFkOioqE60sQSAl 2QXaU1sKy1Qcn+0DfIn3rLm+pI6AUb86H8Vvl2x2SNRijiYAMLR1rQ7CT7TvybrLwmSL mB/9QHDw61jU8aFEWUk8tO+BntOppU5Zs58ZSFNUblVsuZhO5VECvyr5Hz2lanBn+gO3 9O2ya+XU4qHxQVSDS7w0V43bJzIRwXvwPHyeoZy/CS0l8nMBlreWLmWy0KCGDLc14AfP rlWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b="km0i1e/X"; 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 hb31-20020a170907161f00b007831481d678si5946951ejc.751.2022.09.28.06.23.48; Wed, 28 Sep 2022 06:24:15 -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="km0i1e/X"; 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 S233784AbiI1MkJ (ORCPT + 99 others); Wed, 28 Sep 2022 08:40:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233398AbiI1MkG (ORCPT ); Wed, 28 Sep 2022 08:40:06 -0400 Received: from mail-40138.protonmail.ch (mail-40138.protonmail.ch [185.70.40.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D91812A73F for ; Wed, 28 Sep 2022 05:39:57 -0700 (PDT) Date: Wed, 28 Sep 2022 12:39:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1664368795; x=1664627995; bh=HMfLWuTCBimoQHszrNwwVDH2NqizvlSNDkSybhyZMak=; 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; b=km0i1e/X0rg5kc+7bfYSu44YgzN8/c5x9NJ4novA/xvvJB6XAYa1vgVOI7MNz6hXy JZeNTcEsr0j2kk0QPRfRis87F5soY0vDVGckZcNmv670OwGHNpywHwoEErdvZj2YHX YUjUCUqQnGJVsY8E1abqU6MXI8oSH9e50c+DilY6KXFsLspEqAU0ygcMyFn7k4HPjK gKoSp+AzNe9d0OB6+iZHsSooa7N+DTUtXa+yhveZpf49bHXcSom+uK3xSKrTc2SBC+ mYbumC3ZUXZNKUcQ+NRqDnYiDTrvNpwoZ4pJOwh1N4fyTr97ngXLT1DX2IA8WSxaOG jlg9vpSvCLJ4Q== To: devicetree@vger.kernel.org From: "Lin, Meng-Bo" Cc: Stephan Gerhold , Nikita Travkin , Josef W Menad , Markuss Broks , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, "Lin, Meng-Bo" , "Lin, Andy Gross" , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Subject: [PATCH v2 2/4] arm64: dts: qcom: msm8916-samsung-j5-common: Add initial common device tree Message-ID: <20220928123816.104641-1-linmengbo0689@protonmail.com> In-Reply-To: <20220928121717.102402-1-linmengbo0689@protonmail.com> References: <20220928110049.96047-1-linmengbo0689@protonmail.com> <20220928121717.102402-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=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 The smartphones below are using the MSM8916 SoC, which are released in 2015-2016: Samsung Galaxy J5 2015 (SM-J500*) Samsung Galaxy J5 2016 (SM-J510*) Samsung Galaxy J3 2016 - SM-J3109/SM-J320Y/SM-J320YZ - SM-J320N0/SM-J320ZN - SM-J320P/SM-J320R4/SM-J320V/SM-S320VL Add a common device tree for with initial support for: - GPIO keys - SDHCI (internal and external storage) - USB Device Mode - UART (on USB connector via the SM5703 MUIC) - WCNSS (WiFi/BT) - Regulators The three devices (some varints of J3, all other variants of J5 released in 2015 and J5X released in 2016) are very similar, with some differences in display and GPIO pins. The common parts are shared in msm8916-samsung-j5-common.dtsi to reduce duplication. Signed-off-by: Lin, Meng-Bo --- ...6-samsung-j5.dts =3D> msm8916-samsung-j5-common.dtsi} | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) rename arch/arm64/boot/dts/qcom/{msm8916-samsung-j5.dts =3D> msm8916-samsu= ng-j5-common.dtsi} (94%) diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-j5.dts b/arch/arm64/b= oot/dts/qcom/msm8916-samsung-j5-common.dtsi similarity index 94% rename from arch/arm64/boot/dts/qcom/msm8916-samsung-j5.dts rename to arch/arm64/boot/dts/qcom/msm8916-samsung-j5-common.dtsi index eabeed18cfaa..4f71609bf6f8 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-j5.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-j5-common.dtsi @@ -1,15 +1,10 @@ // SPDX-License-Identifier: GPL-2.0-only =20 -/dts-v1/; - #include "msm8916-pm8916.dtsi" + #include =20 / { -=09model =3D "Samsung Galaxy J5 (2015)"; -=09compatible =3D "samsung,j5", "qcom,msm8916"; -=09chassis-type =3D "handset"; - =09aliases { =09=09serial0 =3D &blsp1_uart2; =09}; @@ -92,7 +87,6 @@ &usb { =20 &usb_hs_phy { =09extcon =3D <&pm8916_usbin>; -=09qcom,init-seq =3D /bits/ 8 <0x1 0x19 0x2 0x0b>; }; =20 &smd_rpm_regulators { @@ -199,7 +193,7 @@ l18 { }; =20 &msmgpio { -=09gpio_keys_default: gpio-keys-default { +=09gpio_keys_default: gpio-keys-default-state { =09=09pins =3D "gpio107", "gpio109"; =09=09function =3D "gpio"; =20 --=20 2.30.2