Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp385796pxv; Wed, 30 Jun 2021 07:49:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyd0EvozvBIStEPKVUekgHEt9KRD0UybcDaxl9swUC4CNpSFHphz91v1QKQY7eMSVuLh3A X-Received: by 2002:a05:6638:50f:: with SMTP id i15mr9284706jar.28.1625064569364; Wed, 30 Jun 2021 07:49:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625064569; cv=none; d=google.com; s=arc-20160816; b=xj+m2GDZSNORfN4TVLjGX6mgRkt9IFyiJ9GEFAYfzn/HpfVL+cPWW3g4R0s69nWHX9 WSCaegofP1vJJGEK1wOUGWzJjoahjltABKHhcoU40FzrKCcokz0fgg07pFFIh9EIrth7 syIe93VhAYfAo8T2leDTtjdHPDY5sf0O2tRRCevUV0NkPaoL49p/wLU6g7GsO/TxIPHj nsKLCDuNFEquBXJIlvjmK5AVl4ONJsanKufOeSzRvSk/+m7X0iErjQt0YkXXjECAV6+B O0rQBCUwXhNuRIpDaoE8NQc0NPaj/aCqfZv4u3gL+iLtuJ8ZdHxGDejs/q+k3F7W27xG It1A== 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=Mvg2lCkLeyKvqWt8M430TD1DyF/pbzYErdH8f+7Rqtg=; b=AWH5rhANalyhl12WbifIZMq8RuW3Wai6dAJAxHgCRMz4ep+4p7BuoVg4dl+LvyfFs2 3uPakFj5JwKV30uurBOq2Lp/YWfsj0dfGbljXnUAuIveVP1ZrE7FYIC9n1/PQNMpPitq FvNtI+Uyfmdl6CmtykScGPI+91dhGiYJgHEIUN9AgfYnuW8XQI3oLZP8d6kpNiIUkZT2 jUMjMY84hKWuEKmF6mCNQT34KeuNAONk2JD0yZa+ehdcH7A6jKvAU4gzndKGVfg36RO4 ElCCudFkRrxUGyGB/ECXBgASAbJGvLzWuSITjUteyZDqOaF/CFgvm9cd7TiwHKlgYuYZ FIiw== 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 d6si17436215ilu.46.2021.06.30.07.49.17; Wed, 30 Jun 2021 07:49:29 -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 S235791AbhF3Ou2 (ORCPT + 99 others); Wed, 30 Jun 2021 10:50:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235659AbhF3Otr (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 BA354C06124C; 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 78C381F435F8 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 4/6] arm64: dts: mt8183: Add the mmsys reset bit to reset the dsi0 Date: Wed, 30 Jun 2021 16:46:44 +0200 Message-Id: <20210630164623.4.I933f1532d7a1b2910843a9644c86a7d94a4b44e1@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. While here, also remove the undocumented and also not used 'mediatek,syscon-dsi' property. Signed-off-by: Enric Balletbo i Serra --- 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 085e2c96b5f4..2d02365633c3 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi @@ -1286,6 +1286,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>; @@ -1400,11 +1401,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