Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp1648492imi; Sat, 23 Jul 2022 12:29:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tmD7pTri2AZs2D1KhfMtzgwg/VuR2uGSZFr8St/bvx/E6mgqIWc8H0f9kLj8wvYqwITRV6 X-Received: by 2002:a17:906:5d16:b0:72f:9f40:d1eb with SMTP id g22-20020a1709065d1600b0072f9f40d1ebmr4282953ejt.403.1658604566743; Sat, 23 Jul 2022 12:29:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658604566; cv=none; d=google.com; s=arc-20160816; b=GpiI1GiAKwemNSAYFWn32qtS1MzZ3OkHAlELNCj+dYKEwMPzNknXyzOKg4w9orXDSn w2QHZahKHdQInzck5KnM4B8NyckZKY0TaQzQGLkZRqEfwTvhNGoZ4JP+LcAG0eQm7KWz H+8Glba15bBs9Zl81zWwghnyAW+bcyYdzkzhJTPYaYX8vFLVG0eOJiCSiKhrjXOAFOQf OYQGvyUh1mqHpgdaCINoDrrBoL9vWlrM/XfPTBUl6qvpQAaCyIUbQ+p+I04hXbG3fwEi CazFGGke8pB7aVMeQBkYKdgZ3KWQEQE2hJeMBdwpJY4EuzF45Sb7U6wYbFIy8zn6B3Hr hzUg== 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:reply-to:cc :from:to:dkim-signature:date; bh=Sj0ZR0HohsjOPmgButsXa1atxWK2a6J45yAwavd2ntA=; b=qrMXEYe11nhGAzg2PVDTFIqcByA6bywic1SmNiwk+8vL03acQokuBDTsjucnn51NQB TifqqqJfeANIZrk5vfFJ6fKDq/JSwJ7qGC9p366RcSqR4AqXE19HAd4P8dzdCIIZByJ+ WBaHW1FCeDK3nJ9DjBh0IKzPpjghnRg9Lh1k30qKCpUuuH+ki8jqinQ3474dOIPdZKy4 EH48zimiale+UMVIGc8KFHK3PfFe8mrlebjq964HLa7yHiF16+BuynMkRQ3ZS8o+jBTD um270O2H42Q377dFC9P+qs28CHmSt/V/9yfwDmOHhScSbRKCmcziTbPU694XKyapXQJs klUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=kmWp7YUY; 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 x2-20020aa7d382000000b0043565c5a2fbsi8375579edq.89.2022.07.23.12.29.02; Sat, 23 Jul 2022 12:29:26 -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=kmWp7YUY; 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 S238679AbiGWTAk (ORCPT + 99 others); Sat, 23 Jul 2022 15:00:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235190AbiGWTAe (ORCPT ); Sat, 23 Jul 2022 15:00:34 -0400 Received: from mail-40141.protonmail.ch (mail-40141.protonmail.ch [185.70.40.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E401815805; Sat, 23 Jul 2022 12:00:31 -0700 (PDT) Date: Sat, 23 Jul 2022 19:00:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1658602829; x=1658862029; bh=Sj0ZR0HohsjOPmgButsXa1atxWK2a6J45yAwavd2ntA=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=kmWp7YUYsZ/y627bGA37yXGSqDgPyhfDkggDRN4h36WXAGKxjJVVV87Tq5OBd5DHk R3opUTLtk6uWZOGR+vtX8P+xjkXv6ly1W7UFbNzcAeY2JTZXeiI+R3p1It9JR6xUnS RbxepFNGFDA8bLO/xnD8QdO1GbA3Fz7sSkgG4Sn0AiBrYG3Zfh8dXq+mXeX3ax83uV Kz6jzbjpPdErVXdGa+vlcfUBo/AkRzdhZiImO4yumFqHt9AKpdYue6bJVIpgjRvYyn btI1s5P3aV7b36QPvaPLBAIofuCVnS+qTFSdhJO8uhPrLDkMzkkzycBVtB0Sz2B9rr +5JWlc9tBLOIA== To: devicetree@vger.kernel.org From: "Lin, Meng-Bo" Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Arnd Bergmann , Olof Johansson , Stephen Boyd , Stephan Gerhold , Nikita Travkin , soc@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, ~postmarketos/upstreaming@lists.sr.ht Reply-To: "Lin, Meng-Bo" Subject: [PATCH v6 3/5] ARM: dts: qcom-msm8916-samsung-e2015: Include dts from arm64 Message-ID: <20220723185913.203747-1-linmengbo0689@protonmail.com> In-Reply-To: <20220723185424.203340-1-linmengbo0689@protonmail.com> References: <20220723185424.203340-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.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT,SPF_HELO_PASS,SPF_PASS autolearn=no 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 After adding all necessary support for MSM8916 SMP/cpuidle without PSCI on ARM32, build the Samsung Galaxy E5/E7/Grand Max device trees from the arm64 tree together with the ARM32 include to allow booting this device on ARM32. The approach to include device tree files from other architectures is inspired from e.g. the Raspberry Pi (bcm2711-rpi-4-b.dts) where this is used to build the device tree for both ARM32 and ARM64. Signed-off-by: Lin, Meng-Bo arm64: dts: qcom: msm8916-samsung-e2015: Add regulator haptic --- arch/arm/boot/dts/Makefile | 3 +++ arch/arm/boot/dts/qcom-msm8916-samsung-e5.dts | 3 +++ arch/arm/boot/dts/qcom-msm8916-samsung-e7.dts | 3 +++ .../boot/dts/qcom-msm8916-samsung-grandmax.dts | 3 +++ .../dts/qcom/msm8916-samsung-e2015-common.dtsi | 18 +++--------------- .../boot/dts/qcom/msm8916-samsung-grandmax.dts | 4 ++-- 6 files changed, 17 insertions(+), 17 deletions(-) create mode 100644 arch/arm/boot/dts/qcom-msm8916-samsung-e5.dts create mode 100644 arch/arm/boot/dts/qcom-msm8916-samsung-e7.dts create mode 100644 arch/arm/boot/dts/qcom-msm8916-samsung-grandmax.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 5112f493f494..b7a6983ee6fa 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1030,6 +1030,9 @@ dtb-$(CONFIG_ARCH_QCOM) +=3D \ =09qcom-ipq8064-rb3011.dtb \ =09qcom-msm8226-samsung-s3ve3g.dtb \ =09qcom-msm8660-surf.dtb \ +=09qcom-msm8916-samsung-e5.dtb \ +=09qcom-msm8916-samsung-e7.dtb \ +=09qcom-msm8916-samsung-grandmax.dtb \ =09qcom-msm8916-samsung-serranove.dtb \ =09qcom-msm8960-cdp.dtb \ =09qcom-msm8974-lge-nexus5-hammerhead.dtb \ diff --git a/arch/arm/boot/dts/qcom-msm8916-samsung-e5.dts b/arch/arm/boot/= dts/qcom-msm8916-samsung-e5.dts new file mode 100644 index 000000000000..c8d34de8a71e --- /dev/null +++ b/arch/arm/boot/dts/qcom-msm8916-samsung-e5.dts @@ -0,0 +1,3 @@ +// SPDX-License-Identifier: GPL-2.0-only +#include "arm64/qcom/msm8916-samsung-e5.dts" +#include "qcom-msm8916-smp.dtsi" diff --git a/arch/arm/boot/dts/qcom-msm8916-samsung-e7.dts b/arch/arm/boot/= dts/qcom-msm8916-samsung-e7.dts new file mode 100644 index 000000000000..85be286c8608 --- /dev/null +++ b/arch/arm/boot/dts/qcom-msm8916-samsung-e7.dts @@ -0,0 +1,3 @@ +// SPDX-License-Identifier: GPL-2.0-only +#include "arm64/qcom/msm8916-samsung-e7.dts" +#include "qcom-msm8916-smp.dtsi" diff --git a/arch/arm/boot/dts/qcom-msm8916-samsung-grandmax.dts b/arch/arm= /boot/dts/qcom-msm8916-samsung-grandmax.dts new file mode 100644 index 000000000000..d3abe0536238 --- /dev/null +++ b/arch/arm/boot/dts/qcom-msm8916-samsung-grandmax.dts @@ -0,0 +1,3 @@ +// SPDX-License-Identifier: GPL-2.0-only +#include "arm64/qcom/msm8916-samsung-grandmax.dts" +#include "qcom-msm8916-smp.dtsi" diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi b/a= rch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi index 9caa8a161d31..3677fd81b6c1 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi @@ -3,13 +3,6 @@ #include "msm8916-samsung-a2015-common.dtsi" / { -=09haptic { -=09=09compatible =3D "regulator-haptic"; -=09=09haptic-supply =3D <®_motor_vdd>; -=09=09min-microvolt =3D <3300000>; -=09=09max-microvolt =3D <3300000>; -=09}; - =09i2c-muic { =09=09/* SM5504 MUIC instead of SM5502 */ =09=09/delete-node/ extcon@25; @@ -26,14 +19,9 @@ muic: extcon@14 { =09=09}; =09}; -=09reg_motor_vdd: regulator-motor-vdd { -=09=09compatible =3D "regulator-fixed"; -=09=09regulator-name =3D "motor_vdd"; -=09=09regulator-min-microvolt =3D <3300000>; -=09=09regulator-max-microvolt =3D <3300000>; - -=09=09gpio =3D <&msmgpio 76 GPIO_ACTIVE_HIGH>; -=09=09enable-active-high; +=09vibrator: vibrator { +=09=09compatible =3D "gpio-vibrator"; +=09=09enable-gpios =3D <&msmgpio 76 GPIO_ACTIVE_HIGH>; =09=09pinctrl-names =3D "default"; =09=09pinctrl-0 =3D <&motor_en_default>; diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-grandmax.dts b/arch/a= rm64/boot/dts/qcom/msm8916-samsung-grandmax.dts index 4c1becdb9428..74c07a970317 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-grandmax.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-grandmax.dts @@ -37,8 +37,8 @@ keyled { =09}; }; -®_motor_vdd { -=09gpio =3D <&msmgpio 72 GPIO_ACTIVE_HIGH>; +&vibrator { +=09enable-gpios =3D <&msmgpio 72 GPIO_ACTIVE_HIGH>; }; &msmgpio { -- 2.30.2