Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp385870pxv; Wed, 30 Jun 2021 07:49:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhUzdsAwzHPNVorLdY1YnaI9eH6YlhoiXDPkVvhC/ZQ+iWEq6deVDeSr0Ev51yoROzGJEh X-Received: by 2002:a05:6402:204:: with SMTP id t4mr46831619edv.34.1625064575696; Wed, 30 Jun 2021 07:49:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625064575; cv=none; d=google.com; s=arc-20160816; b=LC9hFyP4jDEO7cngt3InLG1SjWOuWiez8K9yxBdDU8u+7yCIAgn3H9VpcWf8Vnp7f5 TYbT9GGKvRIIaTWOzM/CAWdsyoVunFDUahY5ItBklEaoShHtpLIcXdVoRl3K5UP6RdEE 9toU6ch+dzReNqROqZ3vaT1d7yR4+mhopoeoHwvp2vZHvA39SMK3f+8/WIZetLWcQ+PK lfxBLRap0pzLfbdUOwtKITZgowopx/w+4MbPnf3NQdByB20zD7YcJvq/aokdqnJ5zNDI t6GBBM9hESuW2kPpRsUtm+YqwCMb2Rfs/nzR+Vyx5EBjIxsFYHqioRKfB4OMndA10wwB Sr6g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=qiQmJZPeX54Rz5uYIf3yB/I7nJ38odvXV3uNVb/IpUQ=; b=tBwnGsV0b/AfXu+V3lbeLri9S0wbwHQ4P6WV9EAJnHa2QGsib2ac1s6FSt0kJIJxQf O5w1IQCI0GRzlqgb6ewqoHEfQ0rXFHBMPXFSZH72aLXo2vfDamsHu0nO2tbnSXvccL8D TF/c6TbK2sZEEwElieukrP5FCN4YQu4mju6Fopbh7nH0maJlOi3RlPLg9YvXjLmKek4x 1m3khSVBPEyDCW3gKwpTcCrBAIzymZg74Vamr7lgrgSp92RMLd6/FW/ZyKIXqSd4hw5J kg6PScCJWXXLZubUNYr0Kc1Ha1ZhRCdNe6nhnLYOjgst0VXXna4ePGDm34V+lTepvyUd FJsg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dz21si1645126edb.94.2021.06.30.07.49.12; Wed, 30 Jun 2021 07:49:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235729AbhF3OuX (ORCPT + 99 others); Wed, 30 Jun 2021 10:50:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235654AbhF3Otr (ORCPT ); Wed, 30 Jun 2021 10:49:47 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F928C061283; Wed, 30 Jun 2021 07:47:16 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 2DBB11F435EE From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org Cc: jitao.shi@mediatek.com, chunkuang.hu@kernel.org, matthias.bgg@gmail.com, drinkcat@chromium.org, eizan@chromium.org, kernel@collabora.com, linux-mediatek@lists.infradead.org, hsinyi@chromium.org, Philipp Zabel , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/6] arm64: dts: mt8173: Add the mmsys reset bit to reset the dsi0 Date: Wed, 30 Jun 2021 16:46:43 +0200 Message-Id: <20210630164623.3.I7bd7d9a8da5e2894711b700a1127e6902a2b2f1d@changeid> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210630144646.868702-1-enric.balletbo@collabora.com> References: <20210630144646.868702-1-enric.balletbo@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reset the DSI hardware is needed to prevent different settings between the bootloader and the kernel. Signed-off-by: Enric Balletbo i Serra --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 2 ++ include/dt-bindings/reset/mt8173-resets.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index e5596fe01a1d..36c3998eb7f1 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi @@ -1036,6 +1036,7 @@ mmsys: syscon@14000000 { assigned-clocks = <&topckgen CLK_TOP_MM_SEL>; assigned-clock-rates = <400000000>; #clock-cells = <1>; + #reset-cells = <1>; mboxes = <&gce 0 CMDQ_THR_PRIO_HIGHEST>, <&gce 1 CMDQ_THR_PRIO_HIGHEST>; mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0 0x1000>; @@ -1262,6 +1263,7 @@ dsi0: dsi@1401b000 { <&mmsys CLK_MM_DSI0_DIGITAL>, <&mipi_tx0>; clock-names = "engine", "digital", "hs"; + resets = <&mmsys MT8173_MMSYS_SW0_RST_B_DISP_DSI0>; phys = <&mipi_tx0>; phy-names = "dphy"; status = "disabled"; diff --git a/include/dt-bindings/reset/mt8173-resets.h b/include/dt-bindings/reset/mt8173-resets.h index ba8636eda5ae..6a60c7cecc4c 100644 --- a/include/dt-bindings/reset/mt8173-resets.h +++ b/include/dt-bindings/reset/mt8173-resets.h @@ -27,6 +27,8 @@ #define MT8173_INFRA_GCE_FAXI_RST 40 #define MT8173_INFRA_MMIOMMURST 47 +/* MMSYS resets */ +#define MT8173_MMSYS_SW0_RST_B_DISP_DSI0 25 /* PERICFG resets */ #define MT8173_PERI_UART0_SW_RST 0 -- 2.30.2