Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2463633rwl; Fri, 6 Jan 2023 06:50:09 -0800 (PST) X-Google-Smtp-Source: AMrXdXsyktpTaIsdJWqS5uGGeotafwqAMbuDPz4yBUYOxkQpiVaNV1UaEZyNvcYFgZ6tjgyaOvRx X-Received: by 2002:a17:906:30c9:b0:78d:f457:1052 with SMTP id b9-20020a17090630c900b0078df4571052mr46113989ejb.15.1673016609633; Fri, 06 Jan 2023 06:50:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673016609; cv=none; d=google.com; s=arc-20160816; b=LWU/DZHLL96XJHprSWk9YJCWUhSunL0Fn6hdA8qWAFGDAgz8lG1M83SWKg/Y6c+bQ3 8U4wAdJ6ezWVgV0cBt+XBvLfDpCMtsus945B0kVMAefSNafwEBNTmzSTChEIhx39VG1x 3k5pyfQ0XUxhUucLOdAb7Z7rH48xvJEkod/zY/6lx/flCD1Wge/MHK/nDIDZIkpL3nxM EO3Q8CgWN0cSHEf47lcv9w1vr82GJrFaz4YCj0MkBzOOn+8rjlS6yiXcp0JDVJlzL4dE AX7bfadXTgc3U0rNRxx/Yd1bhvmBOAj9xw6Hz01Fz/ta4vzWEcqNWaaAPR3Y7ZyBYy99 7KIg== 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=zwgxDtrvvsnKx3WwIiMDTQ8qwPQosXJZ2V7U0l4c1eg=; b=iRj66yiumUBvtxHgSxIL6Qz+Qso0I/i3ma3jPME6ZyMXM9UGC3tE+ntlcJyy1YbMro +gppt8Y1U3iUPzAmFwvomQUklc5LHyn3X+VyKz8ix6WLtXHpi2ukEqOG97EtE++OjnOg CQiQtFjEOCS4CAoUlrGj7bb4JkFXyl7jTa3K+KvvfSk8umkz09kyM26ud9oBPT92QAhR 7w0GHNDRaMRxwKCPZyqIFINrioZk/orV6CQspMQqNbAVcAKGTtvDifcd2sYwIIoFCWnp BZzC8+nz9Olvx7+HXs++y5NL6DdjFryc0p4igznlc0/xz9/dddtqRTZQ3NsBWkDOWj30 G9aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=kR4wRpqt; 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 hj1-20020a1709069fc100b0084cd9dba340si1661186ejc.962.2023.01.06.06.49.57; Fri, 06 Jan 2023 06:50:09 -0800 (PST) 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=kR4wRpqt; 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 S234092AbjAFOcB (ORCPT + 54 others); Fri, 6 Jan 2023 09:32:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234387AbjAFOb3 (ORCPT ); Fri, 6 Jan 2023 09:31:29 -0500 Received: from mail-40140.protonmail.ch (mail-40140.protonmail.ch [185.70.40.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFD507F46D for ; Fri, 6 Jan 2023 06:31:20 -0800 (PST) Date: Fri, 06 Jan 2023 14:31:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1673015478; x=1673274678; bh=zwgxDtrvvsnKx3WwIiMDTQ8qwPQosXJZ2V7U0l4c1eg=; 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:BIMI-Selector; b=kR4wRpqtPRneXInVTW1WRLYAwKN3zaJ8PjaTKTTL6DUL4lToK8fHTZ7oUHqMobIfw aO2D6qvOGUiz1YMm7MNWdXP7MrsaNWx8cLC9cWWocG20JpKAfqUhCo+bh8ChUtl32l hkiwW2JszoAATrIth6JSTeDzl8dPBYVwQTV+VspeZzHq/FavrKVwqC9oTXAYYwmaGc HIqeawU051Z+Ib5EnRWf+WEwWKJPBTIz9rk/cLbauksrhwnplOeVEg26n6kQ0T9Y2K RSkNf4fos+IcrX270MZciNChFrj6rVwo5rCqVuW1aoPU3i172UX0R/lnTAlK8lltf4 jI7tQj9kBxYpA== To: devicetree@vger.kernel.org From: "Lin, Meng-Bo" Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , 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, Krzysztof Kozlowski Subject: [PATCH v6 2/5] arm64: dts: qcom: msm8916-samsung-j5-common: Add initial common device tree Message-ID: <20230106143010.547140-1-linmengbo0689@protonmail.com> In-Reply-To: <20230106142748.546975-1-linmengbo0689@protonmail.com> References: <20230106142748.546975-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_DNSWL_NONE,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*) Move msm8916-samsung-j5.dts to msm8916-samsung-j5-common.dtsi, and 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 two devices (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. This patch rewrites J5 2015 devices, later patches will add support for other models. Signed-off-by: Lin, Meng-Bo Acked-by: Krzysztof Kozlowski --- ...-j5.dts =3D> msm8916-samsung-j5-common.dtsi} | 7 - .../boot/dts/qcom/msm8916-samsung-j5.dts | 224 ++---------------- 2 files changed, 15 insertions(+), 216 deletions(-) copy arch/arm64/boot/dts/qcom/{msm8916-samsung-j5.dts =3D> msm8916-samsung= -j5-common.dtsi} (95%) 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 95% copy from arch/arm64/boot/dts/qcom/msm8916-samsung-j5.dts copy to arch/arm64/boot/dts/qcom/msm8916-samsung-j5-common.dtsi index 7ac49a021563..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 { 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 7ac49a021563..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