Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1002997rwb; Wed, 28 Sep 2022 11:50:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Wnkxz3c7LBtQMnkw+Cju1shptVmE2ahfHaEN3iUD9jxYtm0A9/JtEAjoLTqrfvfJlstUP X-Received: by 2002:a05:6402:f0f:b0:451:1ecd:a61f with SMTP id i15-20020a0564020f0f00b004511ecda61fmr34582348eda.125.1664391038828; Wed, 28 Sep 2022 11:50:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664391038; cv=none; d=google.com; s=arc-20160816; b=KnD22TCjy3H/TB0l4eS1brcXBgXcTqx7Z/UHYFc/gdSr/uZIqLKjDVGyOeNv0Bw6he CSPrOLHHFqKWQ0vs+2aEhfVEbkqerTiPIsoC8HiWG2NkoEXJFM5IilmBZh08pyw6KgT0 9dNTfbdklT5n8uTnGYzMmgl/1tZg6oLjqmcxFDfjbOpCvBr18xbCT1QeBPzYXaavEbdY 1WMaZw4YiKpPtZuglp5SKXXouJl5lBwddU7yfyTZkMbAZyZL6it3BODXOGVZvz9fD8hr hTADIHsxtk+CT0Zk6GjKUD6kmxJpozIky5bXE8ipQTz00obrXPxC197vxUJmkgvrQKd2 35MA== 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=NQMMRxAJPVWPg16IHVSA8xl3RIgzmfbGw4EqRwSet6MS+Tg4R1OiCZDobBfSvzs5bX 4hpJeTmwgsHkm8vAz6aemTT7Vk3mouIAUCmEkYdMDIkdFGaiuKYFBlxy94m/5+VTJbf4 q4tkpvuv6tDOylUpTkQAphaaS4qnbS+pGc+scF6ZjN3tz7MZ466gccBTSw+1qtzTtF/a etdYzXFyUZamIfuMDvwGsYTqa/aIqCXTn2p49XFspqpKeH3IUsiLgnLSjdMMxPiCByNl Vcb/3USVXsBvcstBJ2mC8Rj9Y4t8aqd1ElrSrW/vDnZw1q9MLu7tTv8tbc4b9q6xB2iz waKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=kXwkGUOJ; 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 qa32-20020a17090786a000b007792d906f6bsi6582210ejc.420.2022.09.28.11.50.12; Wed, 28 Sep 2022 11:50:38 -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=kXwkGUOJ; 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 S233775AbiI1Sof (ORCPT + 99 others); Wed, 28 Sep 2022 14:44:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234088AbiI1Soc (ORCPT ); Wed, 28 Sep 2022 14:44:32 -0400 Received: from mail-4324.protonmail.ch (mail-4324.protonmail.ch [185.70.43.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10273E9511 for ; Wed, 28 Sep 2022 11:44:29 -0700 (PDT) Date: Wed, 28 Sep 2022 18:44:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1664390667; x=1664649867; 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=kXwkGUOJdJWiieI+LCuIBsJm/vkGP3peh0Dd/yyy+8Ev6rLkJo7Zau0sdjLTEPsB8 HZgJIUdGKRP/WLd5kFRHWRxUxq+uS5YwR8888kU/AwjGtRL6EraCH+yKxy/fn6HoKF XsFb7ONdfYIhePvuiIy7Cdym7GD3jMSNnUdrfwZEBSxEHlfxNtO9CMHP1v3A8YOOhC VAR7HLGKN0wABtQtPVl/Xo4MsKeo1Ti9pNC2yUOAQv53WFnlLLROk9atWAmaEtxGom Vx8kz5JmWVA+T+MxoAHWqW/2RzIitN/DOt73WaX4q7xUvjWVTxIIP4ViNptLEAL7bk Kjto6eSiW6LSA== 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 v5 2/4] arm64: dts: qcom: msm8916-samsung-j5-common: Add initial common device tree Message-ID: <20220928184302.186746-1-linmengbo0689@protonmail.com> In-Reply-To: <20220928184155.186632-1-linmengbo0689@protonmail.com> References: <20220928184155.186632-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=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 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