Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp292630pxb; Wed, 25 Aug 2021 03:29:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/OXWUlkoNUeZ+cq/GReTAFRhWlDmQhP6eM5s4pgtJmysguUQFRMwj85XjdcG8RVfkZloa X-Received: by 2002:a17:906:3486:: with SMTP id g6mr45748964ejb.71.1629887365261; Wed, 25 Aug 2021 03:29:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629887365; cv=none; d=google.com; s=arc-20160816; b=p+YgbdOD27a9FdKishQ16Vi3wpo0JREnDW43wjZ+BPZ3XIo0LNUI54z/4nIJAj3CnC nRMUI57tmh8/A3GABqsKovXo9aOMebcia69+7p0EGwz5saDBwYrkySpomDpEprZNV2kS BSpq8gKUyGdOla3bm/4ZXQbS8Obor8yXep/EUCOBVLkb30wCqdo7qfZZpspkC2U5dFJi dNSklfwA0kjzvEKCgMdfJyQmwR7uxPSFPKRGuqoWfQzaYBe/QupXnW6iUd8MLhsHUPzg gtjYRiCF+JN4cmGSU5+q68nthrPhjtPXhsAyK9Ba7BoUGTUm4fnmyFWD1jYJUgufiUue G6zA== 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=hSwjIkGAkMIJqwD3mbjwlKWjcUqrY7bahrGki9tYsRE=; b=l9VEMnTE+94pOfHum0Wwk4HbJJGjDf9dbMC8dmE7Z2xF90YoM/VpoXARiUW6pRvND/ T8J/cP3BWuaPxg4RTaO3DSLouZR73/69bUac2Fa05tz7ham6mdhfbmaqcsRPxbk35cFF V+tR/sMMOtxmFNsx07yA+gtonG/srK6yxdx++AXYgjZjj0F4QIJXEosdf+5qP/PPu20H 66qgK42nYmclaRuxSxyUaTd4m4oIHjlx8e4l1On8t5ut03QQHkOe4frLV2eqJfisvkXe SoR8/Zk/8sV6oZEHSvPIKBZvI8NXyJxrr0GMd8T5/henDVz3ohohlW8JwXSCa7MvVz9V rX3g== 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 h6si19790424eje.225.2021.08.25.03.29.01; Wed, 25 Aug 2021 03:29:25 -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 S240132AbhHYK1p (ORCPT + 99 others); Wed, 25 Aug 2021 06:27:45 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:48080 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239987AbhHYK1a (ORCPT ); Wed, 25 Aug 2021 06:27:30 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 0A1941F43716 From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org Cc: matthias.bgg@gmail.com, hsinyi@chromium.org, linux-mediatek@lists.infradead.org, jitao.shi@mediatek.com, eizan@chromium.org, drinkcat@chromium.org, chunkuang.hu@kernel.org, kernel@collabora.com, Rob Herring , Philipp Zabel , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 5/7] arm64: dts: mt8183: Add the mmsys reset bit to reset the dsi0 Date: Wed, 25 Aug 2021 12:26:30 +0200 Message-Id: <20210825122613.v3.5.I933f1532d7a1b2910843a9644c86a7d94a4b44e1@changeid> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210825102632.601614-1-enric.balletbo@collabora.com> References: <20210825102632.601614-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 Acked-by: Rob Herring --- (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 9f72701a3b2e..7c47a76b3d02 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