Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp89518pxb; Thu, 30 Sep 2021 01:38:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrB9vuCv67CD/nr1fXvNUabB+sU34bo6z6VnmBySRpmEeNTsVV5SGbdfm4XxckdEIOL24B X-Received: by 2002:a17:907:7e88:: with SMTP id qb8mr3049547ejc.216.1632991100920; Thu, 30 Sep 2021 01:38:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632991100; cv=none; d=google.com; s=arc-20160816; b=X+qYbP97FIjtu6f/XTdrtbI+oruXNsWTUFFKc4+vMB9JtOfFCXOo4uywF6IsnngRTp nCeTD4+YrozGsHq3uqAxAOeAzSAOVguIvpnXbCDToUZhpuGhhDxsQm80wedR498hprLg Q19fbwYEuslcAZuTwYXhhtdjsKol9floxW09MNBCzRoTYcEYerp7h+lGntan79SAnGW1 p2xU6T1qQcDnjamnxF1RXUCJBMHSXZtPgUT6WvRl/SnlA8R5Q17v4b47eNYuqfnsXYYJ Pg1En/oP0C4OCq3C3F+b35ogIBsKpWbtrnEd945ekNRn0i+2SCzLdmvR659koawkbiwV 2jSg== 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=fAsJX606lPPuPKjZi5FwBLX345ucHoKeyrLlnLLHUwM=; b=y5EBCgiMGk2uGPJZDsTZbMORH2pFJjZEjynUxfQgfthn/q1qnoZUGWG5uVXW2p1aQd UBKSBagyYTVMth1tlCWWT7TiM06DKET0x31r/GB84ioMIfeF1gVvYR1yye1ziOLYbYhn +MDb4bjZWUeQLG0mMN+jizmA2T2oSU6fV1lgpyjR2AHDuwsPZ+y1MYcKN6bB9+Aib0en TzE6nLxdhRsersFoejfEoX+URHp3gpKqjKLpiAyvHt7tK5SpjVY9fHaCY8R20OwIlb+Y dgi3BYU3u+rtUocNSmlky0xriDfnR1xHsezhFRrFYchLg76TJyLi6dIXHHgS0iBFlZq/ jhYQ== 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 hd42si3736708ejc.627.2021.09.30.01.37.56; Thu, 30 Sep 2021 01:38:20 -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 S1349202AbhI3Idv (ORCPT + 99 others); Thu, 30 Sep 2021 04:33:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349193AbhI3Ido (ORCPT ); Thu, 30 Sep 2021 04:33:44 -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 619E4C06176D; Thu, 30 Sep 2021 01:32:02 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 825C61F449F4 From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org Cc: linux-mediatek@lists.infradead.org, eizan@chromium.org, kernel@collabora.com, drinkcat@chromium.org, jitao.shi@mediatek.com, chunkuang.hu@kernel.org, hsinyi@chromium.org, matthias.bgg@gmail.com, Rob Herring , Philipp Zabel , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v4 4/7] arm64: dts: mt8173: Add the mmsys reset bit to reset the dsi0 Date: Thu, 30 Sep 2021 10:31:47 +0200 Message-Id: <20210930103105.v4.4.I7bd7d9a8da5e2894711b700a1127e6902a2b2f1d@changeid> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210930083150.3317003-1-enric.balletbo@collabora.com> References: <20210930083150.3317003-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 Acked-by: Rob Herring --- (no changes since v1) 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 17d70e2f5394..97ea3f9960b1 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