Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp518525rwb; Wed, 28 Sep 2022 06:00:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4oZYGAyqATyToA7FfoNf8SrjLvHtOr7Z8mnU/roSxEgNE4mGaI0CfYra6bTbII0Z98qRPb X-Received: by 2002:a50:fe8c:0:b0:454:31ad:b99a with SMTP id d12-20020a50fe8c000000b0045431adb99amr32904089edt.165.1664370000932; Wed, 28 Sep 2022 06:00:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664370000; cv=none; d=google.com; s=arc-20160816; b=oYBc7jCzqSTiLX8Jssq+/sI50BT2Hv/+shZFAh6V3eSg5AmTnfcTcWacIj8OpNlIKV 9hpgwtoovb5Ib2JcdqTuErG7SukX0BkjOW5dqfI9KU1Nue+ZAo4eNIssyOnRuGQGJa10 zHFtkYoK4grSj/Fx3u0+j0vzlucNuqlbnT9tex1of952Ubo3w8+zwkj0MZCjRgY52yn5 eCy29/eReUbz4f1245/XEzzdWig7KK+yAXfqJU8PuGU3qvf8507T2kcin8QD7zqRFzEx m8n15tl8ec3rirFpsTS7T1f7l6Itjqp/HZ++G1chFBR4kwoxucg3TW9s8DyXjJi69DW0 wb8g== 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=d+blWYb4ULJVGCJee2V9wdzS63cumSK3O0mGsQ29MLo=; b=U12rgO+HMNYh8RzzGvAG3MiIZeljYLMb9Yuwk3XRT1k/5Eoe6RN/0cmKCMmrnOGaHp /v6bR40oolo1WYkSyEldR8cHFdtPx76kyitrJhealWLdIDYuIrj1ZBCP/IT4HVWb7SmI RSknBxIu28Mg5y1sPuRQxJhQ2Hp2Oe0UgBzKZyU4+SQKQX/14Cs2nInCl0acdixYa0jp fPDnsHgAqx6vjQjs83HMPXYezZqk2Z2S8ii8oxtE7P9hKmc+KmykVYsNrycVECHQVX2M cK3qO41VX6D02FqLLKUd3fDtcyhpoY0CGghgbhdSH2oeZMI2VF+mawRvtCxLVzr++JrJ zPMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b="f4e7RW/y"; 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 fg15-20020a1709069c4f00b0076f7f824407si3830897ejc.948.2022.09.28.05.59.35; Wed, 28 Sep 2022 06:00:00 -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="f4e7RW/y"; 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 S233425AbiI1MkQ (ORCPT + 99 others); Wed, 28 Sep 2022 08:40:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233733AbiI1MkL (ORCPT ); Wed, 28 Sep 2022 08:40:11 -0400 Received: from mail-0301.mail-europe.com (mail-0301.mail-europe.com [188.165.51.139]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1C362ED69; Wed, 28 Sep 2022 05:40:07 -0700 (PDT) Date: Wed, 28 Sep 2022 12:39:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1664368798; x=1664627998; bh=d+blWYb4ULJVGCJee2V9wdzS63cumSK3O0mGsQ29MLo=; 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=f4e7RW/ynjs+kA73emJ9OV4+Cdxcctw4U7X7FuBkLnBKbIdMNX0OOmFHSFCQhXhmU xP4QmKJ8zTtN7FHMAUx2hYNsGSsxjORQY6HPlx0ESrQKFbjy/tXcqPAv3nvTpaxdre 3N6vAAz16i8oSZzTzGqwpUjERLKA7wBfeXASmn1aJvW5FCC2HXIKnR9o+PhzUa1ayR 58zDHHAfz6Z+IDFSrP6/0N94t27EnuVAIEClAvdF5/LjVPUQVlH752syYpA3i0qwme YO6oOu4KhKnNgkOypl+vkTKuv4titchGICvvbXgEP4Pb2j+30B1MQtBeJyyvWOWAKh KWr2wRHyqGoAQ== 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 3/4] arm64: dts: qcom: msm8916-samsung-j5: Use common device tree Message-ID: <20220928123839.104700-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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,SPF_HELO_NONE,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 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 [Add j5x device tree] Co-developed-by: Josef W Menad Signed-off-by: Josef W Menad [Use &pm8916_usbin as USB extcon and add chassis-type for j5x] Co-developed-by: Stephan Gerhold Signed-off-by: Stephan Gerhold [Use common init device tree and add j3 device tree] Signed-off-by: Lin, Meng-Bo --- arch/arm64/boot/dts/qcom/Makefile | 2 ++ .../boot/dts/qcom/msm8916-samsung-j3.dts | 21 +++++++++++++++++++ .../boot/dts/qcom/msm8916-samsung-j5.dts | 15 +++++++++++++ .../boot/dts/qcom/msm8916-samsung-j5x.dts | 11 ++++++++++ 4 files changed, 49 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/msm8916-samsung-j3.dts create mode 100644 arch/arm64/boot/dts/qcom/msm8916-samsung-j5.dts create mode 100644 arch/arm64/boot/dts/qcom/msm8916-samsung-j5x.dts diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/M= akefile index 1d86a33de528..357a2529fe74 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -15,7 +15,9 @@ dtb-$(CONFIG_ARCH_QCOM)=09+=3D msm8916-longcheer-l8910.dt= b dtb-$(CONFIG_ARCH_QCOM)=09+=3D msm8916-mtp.dtb dtb-$(CONFIG_ARCH_QCOM)=09+=3D msm8916-samsung-a3u-eur.dtb dtb-$(CONFIG_ARCH_QCOM)=09+=3D msm8916-samsung-a5u-eur.dtb +dtb-$(CONFIG_ARCH_QCOM)=09+=3D msm8916-samsung-j3.dtb dtb-$(CONFIG_ARCH_QCOM)=09+=3D msm8916-samsung-j5.dtb +dtb-$(CONFIG_ARCH_QCOM)=09+=3D msm8916-samsung-j5x.dtb dtb-$(CONFIG_ARCH_QCOM)=09+=3D msm8916-samsung-serranove.dtb dtb-$(CONFIG_ARCH_QCOM)=09+=3D msm8916-wingtech-wt88047.dtb dtb-$(CONFIG_ARCH_QCOM)=09+=3D msm8992-lg-bullhead-rev-10.dtb diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-j3.dts b/arch/arm64/b= oot/dts/qcom/msm8916-samsung-j3.dts new file mode 100644 index 000000000000..bf8672ebedcd --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-j3.dts @@ -0,0 +1,21 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/dts-v1/; + +#include "msm8916-samsung-j5-common.dtsi" + +/ { +=09model =3D "Samsung Galaxy J3 (2016)"; +=09compatible =3D "samsung,j3", "qcom,msm8916"; +=09chassis-type =3D "handset"; + +=09reserved-memory { +=09=09/delete-node/ tz-apps@85500000; + +=09=09/* Additional memory used by Samsung firmware modifications */ +=09=09tz-apps@85a00000 { +=09=09=09reg =3D <0x0 0x85800000 0x0 0x800000>; +=09=09=09no-map; +=09=09}; +=09}; +}; diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-j5.dts b/arch/arm64/b= oot/dts/qcom/msm8916-samsung-j5.dts new file mode 100644 index 000000000000..0a32d33e9778 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-j5.dts @@ -0,0 +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>; +}; diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-j5x.dts b/arch/arm64/= boot/dts/qcom/msm8916-samsung-j5x.dts new file mode 100644 index 000000000000..7656ac4508cf --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-j5x.dts @@ -0,0 +1,11 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/dts-v1/; + +#include "msm8916-samsung-j5-common.dtsi" + +/ { +=09model =3D "Samsung Galaxy J5 (2016)"; +=09compatible =3D "samsung,j5x", "qcom,msm8916"; +=09chassis-type =3D "handset"; +}; --=20 2.30.2