Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp999488rwb; Wed, 28 Sep 2022 11:47:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7UqGw77DLwxTYkM+UvAnoKnuU6DnYjMAM0SzQew830Rli+unooZmv9JPzl7DK+74HEAKmB X-Received: by 2002:a17:907:3da0:b0:787:89cc:faab with SMTP id he32-20020a1709073da000b0078789ccfaabmr4303956ejc.92.1664390861094; Wed, 28 Sep 2022 11:47:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664390861; cv=none; d=google.com; s=arc-20160816; b=fHRYMAZpxIV9cm9CeMaWZ9p72MEswFMoSYDHiMNsQ9cIUnG06SWpb4u3jnH7Jn5SL3 tl1Borzui2QIucznq7PJbHKgN863ZSFnnY7hDDvbV2jUMc53frz1LFj5/PLE7+1qlsHI aixuJL3O2SfoJO9QpRRK6sANN8b9/YS1y3EE4tH2GFfmcASaq8s7V0zjpUgjsBzgL0E9 8LLfLAI6/6oQZsT4v5Vo34SZ06NNOZEt1lwnUmLGjNO66PrJjhg1DddpGw145n4Q9IDW vwxUd2DYxEwneLpXj/VCiRPcV4WpDs9aXcfPfKgJnJWQ0ntjMYXrtiz7UA95d64cTYal e3Cw== 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=J6Q0VuvyIjV0kEqykmiUPF3+T4Y0AOtQNu0NAJk0z28=; b=m9osLTxeTghPIa/Tw224ZywCHBQrGinB9k0oY40zfkm2RfsO+DW3Ae0Hc0BSKS/ak7 4G0eeifs8+ymmbLvXzTRU2YO2GiVvklwOo3tnmky9S9GFkQZ3HSHVitX5Jrc8gHm8ePV 1OTVwflNrgB9PSOB72+nxHKbEtW5ReEUUkr1dDusKzN5HMV+6IuZNu2RKSyIebIvKrgK Bm4m1BG6lYiMz6GrNKE+Xfxj0VOivKchQ/oq06RPq1yH/U/MOxe6pwrk4HgQRl8baH11 1HVzoL/XX9R/ygHLOH9qNe7w25xDt7tPsr1CNLHH1mmx7j52g+vEIfcip6JI/yyXiJUK KOKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=Z1re1hcf; 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 gs37-20020a1709072d2500b00781b277d931si6703124ejc.390.2022.09.28.11.47.15; Wed, 28 Sep 2022 11:47:41 -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=Z1re1hcf; 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 S234039AbiI1S3T (ORCPT + 99 others); Wed, 28 Sep 2022 14:29:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234052AbiI1S3P (ORCPT ); Wed, 28 Sep 2022 14:29:15 -0400 Received: from mail-4318.protonmail.ch (mail-4318.protonmail.ch [185.70.43.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E35F10652D; Wed, 28 Sep 2022 11:29:12 -0700 (PDT) Date: Wed, 28 Sep 2022 18:29:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1664389749; x=1664648949; bh=J6Q0VuvyIjV0kEqykmiUPF3+T4Y0AOtQNu0NAJk0z28=; 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=Z1re1hcf6xVNgettc/MzhcqUJaDjgd5rUpJfdtgNMyas4LXaYxH6yh6Uu3dFruOxz 3O+px1y6t9UybLwYiIsbLgRxbttn6ML/1XpPIM9hZ8aBRTZOVtEKeZvSYjxl58DFvd YuJRNcH9aDlOLl9Up4DiO40rQ7zxtfTdI8U7C2s/UgVzsOrEoW7DbrIcMyiK6N2qP6 aPaiNF2CxOhe41C+W0vwG/d+bOo3CYjRvQSzDua7j6BuCp3EsIiBeBqFqGcLvqOtib z+o8OsgnvdU+SMKluDNWhptt2iqYvJtCI41c0UIP/JUOtOnX57E2Zwfn8bxF2A1Oav Qv5CYldob1R3g== To: devicetree@vger.kernel.org From: "Lin, Meng-Bo" Cc: Stephan Gerhold , Nikita Travkin , Julian Ribbeck , Josef W Menad , Markuss Broks , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Subject: [PATCH v4 2/4] arm64: dts: qcom: msm8916-samsung-j5-common: Add initial common device tree Message-ID: <20220928182722.186237-1-linmengbo0689@protonmail.com> In-Reply-To: <20220928182435.186116-1-linmengbo0689@protonmail.com> References: <20220928182435.186116-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 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 --- ...-j5.dts =3D> msm8916-samsung-j5-common.dtsi} | 9 +- .../boot/dts/qcom/msm8916-samsung-j5.dts | 224 ++---------------- 2 files changed, 16 insertions(+), 217 deletions(-) copy arch/arm64/boot/dts/qcom/{msm8916-samsung-j5.dts =3D> msm8916-samsung= -j5-common.dtsi} (94%) rewrite arch/arm64/boot/dts/qcom/msm8916-samsung-j5.dts (93%) 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% copy from arch/arm64/boot/dts/qcom/msm8916-samsung-j5.dts copy to arch/arm64/boot/dts/qcom/msm8916-samsung-j5-common.dtsi index eabeed18cfaa..502b38d4a61e 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,9 @@ // 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 +86,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 +192,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 diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-j5.dts b/arch/arm64/b= oot/dts/qcom/msm8916-samsung-j5.dts dissimilarity index 93% index eabeed18cfaa..0a32d33e9778 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-j5.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-j5.dts @@ -?,? +1,15 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/dts-v1/; + +#include "msm8916-samsung-j5-common.dtsi" + +/ { +=09model =3D "Samsung Galaxy J5 (2015)"; +=09compatible =3D "samsung,j5", "qcom,msm8916"; +=09chassis-type =3D "handset"; +}; + +&usb_hs_phy { +=09qcom,init-seq =3D /bits/ 8 <0x1 0x19 0x2 0x0b>; +}; --=20 2.30.2