Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp937419rwb; Wed, 28 Sep 2022 10:56:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4mDhW1U/i4P6HROBwQsLbxHkeLIwZZRtYdY4x9CGL8NHcFyDtBkJThNl8tU0ffYP+PD2d4 X-Received: by 2002:a17:902:e88b:b0:176:c37f:511c with SMTP id w11-20020a170902e88b00b00176c37f511cmr1003799plg.2.1664387799805; Wed, 28 Sep 2022 10:56:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664387799; cv=none; d=google.com; s=arc-20160816; b=j66xsxZukIySzUTry0CrG5NPjN9yume34jEbFprIu7WSlI0g1VWkNNEnZGG8VP+iDk c2uYzMQapanAZT6+T8SzRh5o3zhcMt49VBKZ1sIHFUwenMFMZSRC00E5mXmvvR1yFB7t fyDG45F4tLmlqAZupg6TeBpsXakDWGKm+TTYISOmmeMlLO2Cly2fRijOLJHr3o9ZQDfA Un1hOT+v+GZah/k3GMVTD1rm8O7PmdfTy7JeLjNsxrcMGhydGL6YGTj1KZwi9Uyu8qkL RHxtBw3aB+ko+/puiUb45URzPIIzwnHKV3Cuz9pQYB29cNVbAhbAQAOWogfLE86i9RUA 8Rkw== 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=jdgnDPIW1i8/EnlMqwqgWQ54V49D0MOxylpjnkaU4gwV62h52XYwJITPNR07IngGx8 eH6qlj3JVQ6G1eiG4Tc89UOxEnvVbIXHXMG481YkkYb+etFGEvrngE/IToB5uOJwtK2o bAE1cq7BsFFFjFdK/tKy2cOcMf9wxc4uT2oBnvzlUR0XpjfxYtWIjy8osFj7tYQApjGc xMx+QSyZmmaXyVj8Es6bycK6AT8btHFJxqAarmmBSNZWphMCnhAVpY2prcxqmclCEQzz ZHCX9zbRM1r/LKs+zww6p/VwZTIUV7qF0ScURIjk0EnyCjpVp5etcutxZa4n5i5J3RJp kvoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=xwesXVg5; 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 q19-20020a056a00085300b0054a43b9711csi3852048pfk.198.2022.09.28.10.56.28; Wed, 28 Sep 2022 10:56:39 -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=xwesXVg5; 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 S232725AbiI1RAf (ORCPT + 99 others); Wed, 28 Sep 2022 13:00:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233904AbiI1RAc (ORCPT ); Wed, 28 Sep 2022 13:00:32 -0400 Received: from mail-40137.protonmail.ch (mail-40137.protonmail.ch [185.70.40.137]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7D7558DF1; Wed, 28 Sep 2022 10:00:25 -0700 (PDT) Date: Wed, 28 Sep 2022 17:00:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1664384424; x=1664643624; 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=xwesXVg5ZMe5+KWYyfNmOI35fC16PTYEOAGWFv61C4+/4ODdv1KBArpDl8mo6pkww 4Pk0K7bMga+qA9a6izzDBYrcA5fCtB7PIzFPF01qaCbo7gvccui8kcEuxmwc4W7aNu yhlMnCUXTsJQ9B3Qn3vjMSdpLPTVxIt6AEf0jRfw4A3YJ+ZLW4l9PU3NkJvLLxvCDO mXivexD/Fge6x6/Dou6d83fscJFLsfVwZLzCm8AVQ7du3sW5Sfix/dMW7J92eie873 PwVPOCLj3NaCwwl6FBBTMhkFCA7Ms2bBWSRT1PpOjHkqac904a/G5hUPPLluaNtkKl 20kjjNVzJEdrg== 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 v3 3/5] arm64: dts: qcom: msm8916-samsung-j5-common: Add initial common device tree Message-ID: <20220928165920.181087-1-linmengbo0689@protonmail.com> In-Reply-To: <20220928164806.179314-1-linmengbo0689@protonmail.com> References: <20220928164806.179314-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=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 --- ...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