Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp254112pxv; Wed, 14 Jul 2021 03:16:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsOe4WuJigyAX+aUcyYRgacO16CwQ2qx7+xzgPN90EPhyISeV5Oe01By+dY12mTFGh+cpO X-Received: by 2002:a17:906:60d3:: with SMTP id f19mr11703088ejk.413.1626257775378; Wed, 14 Jul 2021 03:16:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626257775; cv=none; d=google.com; s=arc-20160816; b=RCRNp1SZSYWdvzlv3ttr3NUgzUu+QShbNlcsm56dnJAK/VqmTA7pNpNTUMrJVxEPth 9piffDOSTog+BqJ4Xdi5Kx1PL5eJQefclOcY9K2YSuWcqFGgB3g7GIx0G2yDO4pDo4qa ngPxZ5xBO2mTfKM7wpC9jsney+kpmL4Ey3adjJEJBPZXO5niwKO69yZCJzY6wp11F4ip 1CRWbCg3hA699wCudN2xnVb8TlQadRwRXS8Y3ICf+AR4ExLyHxLajJ2BBraVjWfdv7hM CZo1QA6Pa26Bt7cGvofqQfmGSg1pQDAypJNycudgISpZbxagq6BtJlY+aTzdIwQwrkg5 XIzg== 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=Cd+O2oNKGBwwYt+QsCgfX9JpiaFpE+1fmX8VGYwXB24=; b=HFfKV96ebwr0ngr0qt3QV2r9QSQsBEQq/glYmLMq9Cg/r6RtMO284U42M4z8+zsLDw MVmsmiZcVxUr43kOj0a8jSHY497ukDKN6EchLcatEnxnMPESLzs2xENc/WYVAbX21kbt OO5x5zs62ObBo9UDCfTOApqSEEymy+Af9dMGk5bC5fsdq3iYauRZAfXL2aXx4+P/xu7K cp5AvAlx7mN+mEToPi1ohAIFalZcLY0K0p4SDrYZ8YaUPxy4qim05LoJU4eayfv8IfsR 4Rz4gM/u8zrHO0EgW984tyvCRmf6nJdHHDrh7fFvWxDlXZWkWYf+iFFEuOBWpbuXtp+v mefA== 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 cb17si2129065edb.276.2021.07.14.03.15.52; Wed, 14 Jul 2021 03:16:15 -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 S239103AbhGNKOy (ORCPT + 99 others); Wed, 14 Jul 2021 06:14:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239053AbhGNKOu (ORCPT ); Wed, 14 Jul 2021 06:14:50 -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 CAF69C06175F; Wed, 14 Jul 2021 03:11:58 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 007371F42DDE From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org Cc: chunkuang.hu@kernel.org, hsinyi@chromium.org, kernel@collabora.com, drinkcat@chromium.org, eizan@chromium.org, linux-mediatek@lists.infradead.org, matthias.bgg@gmail.com, jitao.shi@mediatek.com, Philipp Zabel , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 5/7] arm64: dts: mt8183: Add the mmsys reset bit to reset the dsi0 Date: Wed, 14 Jul 2021 12:11:39 +0200 Message-Id: <20210714121116.v2.5.I933f1532d7a1b2910843a9644c86a7d94a4b44e1@changeid> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210714101141.2089082-1-enric.balletbo@collabora.com> References: <20210714101141.2089082-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. While here, also remove the undocumented and also not used 'mediatek,syscon-dsi' property. Signed-off-by: Enric Balletbo i Serra --- (no changes since v1) arch/arm64/boot/dts/mediatek/mt8183.dtsi | 3 ++- include/dt-bindings/reset/mt8183-resets.h | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index 4ef0b5b23047..7ae108f8ba89 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi @@ -1251,6 +1251,7 @@ mmsys: syscon@14000000 { compatible = "mediatek,mt8183-mmsys", "syscon"; reg = <0 0x14000000 0 0x1000>; #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>; @@ -1365,11 +1366,11 @@ dsi0: dsi@14014000 { reg = <0 0x14014000 0 0x1000>; interrupts = ; power-domains = <&spm MT8183_POWER_DOMAIN_DISP>; - mediatek,syscon-dsi = <&mmsys 0x140>; clocks = <&mmsys CLK_MM_DSI0_MM>, <&mmsys CLK_MM_DSI0_IF>, <&mipi_tx0>; clock-names = "engine", "digital", "hs"; + resets = <&mmsys MT8183_MMSYS_SW0_RST_B_DISP_DSI0>; phys = <&mipi_tx0>; phy-names = "dphy"; }; diff --git a/include/dt-bindings/reset/mt8183-resets.h b/include/dt-bindings/reset/mt8183-resets.h index a1bbd41e0d12..48c5d2de0a38 100644 --- a/include/dt-bindings/reset/mt8183-resets.h +++ b/include/dt-bindings/reset/mt8183-resets.h @@ -80,6 +80,9 @@ #define MT8183_INFRACFG_SW_RST_NUM 128 +/* MMSYS resets */ +#define MT8183_MMSYS_SW0_RST_B_DISP_DSI0 25 + #define MT8183_TOPRGU_MM_SW_RST 1 #define MT8183_TOPRGU_MFG_SW_RST 2 #define MT8183_TOPRGU_VENC_SW_RST 3 -- 2.30.2