Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp88428pxb; Thu, 30 Sep 2021 01:36:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybLgrRIkxTLfZzJun7qG8r1gvOopV+9+TXuoxeLUMg+6T97lbKs6G5TYg3K4OF1PTcFln5 X-Received: by 2002:a05:6402:289b:: with SMTP id eg27mr5691389edb.25.1632990985351; Thu, 30 Sep 2021 01:36:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632990985; cv=none; d=google.com; s=arc-20160816; b=NMrZhrueLo00KeDRDkU+p21LOshzXwR+p1H6wzHlHZhAwJMPD3/8A8vkdEhSnEO/Lp mJxdrdCRPsm8JTuhdV2XKxjhQuFgidYL3aLvJt+nkDG0caQtTNdmdAkXjJHoCuszmA9H pNFJD4zeQJ/RC6fwgduAuSUh4ySj4nFwXxBsbBV/g92S/fiiOcaeA5sVbIuojK86PDdU 3pFghSnIUOe/X2muMbgCqc13bFlDSKBUxHcnzVVATsyQIc8FTYETFnmL2HnqTY277TjU +M2wPFAiI/pWjfaf68vP9pj4QepJOElst/KNt+Ib+Dyhf2zYlASxpKtWCq2S1gkF247g M/Dg== 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 :message-id:date:subject:cc:to:from; bh=do27533mWNLFZkKE4aJ7XYDxFmg2/VyXe/A54l4U7xA=; b=PLn6hFOG9OH0o4ZDH1KAWtbVbdWveo7CQP73EweotnLhqsimhZNKuFjw8BRmnbKGlw xueNh4MGJUhAOk+6a6XC4i5F4bWmVrDHEJWcHyHuEoL9wVcosrWHxG6ECqJL3NXrEew3 I+OS7LhrFMxsNk/fGeV5+q2PEoa25XhDLoNWmzK5pCGFYaoKfTP1KuqGe+y1SOhOGQar Bz74/D1gIiVWHzac3fAO0950LHVlPzviC9Gj10yhl0SDpxORZCJKtvGgBx5c2mG8tSCE ljbKxa9YEZRkby79l0HeT4SNeEgNjfTaCaMlLUreVd4fYmv02fIH5NuVp3xIZp9Cb+4K ZSrg== 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 n11si2654288edt.358.2021.09.30.01.36.01; Thu, 30 Sep 2021 01:36: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 S1348467AbhI3Idm (ORCPT + 99 others); Thu, 30 Sep 2021 04:33:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348402AbhI3Idl (ORCPT ); Thu, 30 Sep 2021 04:33:41 -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 634C7C06161C; Thu, 30 Sep 2021 01:31:59 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id C49121F449E9 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, Crystal Guo , Daniel Vetter , David Airlie , Fabien Parent , Guenter Roeck , Philipp Zabel , Rob Herring , Wim Van Sebroeck , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-watchdog@vger.kernel.org Subject: [PATCH v4 0/7] Add support to the mmsys driver to be a reset controller Date: Thu, 30 Sep 2021 10:31:43 +0200 Message-Id: <20210930083150.3317003-1-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear all, The following patchset is a reimplementation of the patch sent by Jitao Shi [1] some time ago. As suggested by Chun-Kuang Hu, this time the reset is done using the reset API, where the mmsys driver is the reset controller and the mtk_dsi driver is the reset consumer. Note that the first patch is kind of unrelated change, it's just a cleanup but is needed if you want to apply all the following patches cleanly. This patchset is important in order to have the DSI panel working on some kukui MT8183 Chromebooks (i.e Lenovo IdeaPad Duet). Without it, you just get a black screen. Best regards, Enric [1] https://lore.kernel.org/linux-arm-kernel/20210420132614.150242-4-jitao.shi@mediatek.com/ Changes in v4: - Remove unnused variable as pointed by Hsin-Yi Changes in v3: - Based on top of the patch that converts mmsys to schema - Fix typo in the commit description Changes in v2: - Fix build test ERROR Reported-by: kernel test robot - Added a new patch to describe the dsi reset optional property. Enric Balletbo i Serra (7): arm64: dts: mediatek: Move reset controller constants into common location dt-bindings: mediatek: Add #reset-cells to mmsys system controller dt-bindings: display: mediatek: add dsi reset optional property arm64: dts: mt8173: Add the mmsys reset bit to reset the dsi0 arm64: dts: mt8183: Add the mmsys reset bit to reset the dsi0 soc: mediatek: mmsys: Add reset controller support drm/mediatek: mtk_dsi: Reset the dsi0 hardware .../bindings/arm/mediatek/mediatek,mmsys.yaml | 4 ++ .../display/mediatek/mediatek,dsi.txt | 6 ++ arch/arm64/boot/dts/mediatek/mt8173.dtsi | 2 + arch/arm64/boot/dts/mediatek/mt8183.dtsi | 5 +- drivers/gpu/drm/mediatek/mtk_dsi.c | 5 +- drivers/soc/mediatek/mtk-mmsys.c | 68 +++++++++++++++++++ drivers/soc/mediatek/mtk-mmsys.h | 2 + drivers/watchdog/mtk_wdt.c | 6 +- .../mt2712-resets.h | 0 include/dt-bindings/reset/mt8173-resets.h | 2 + .../mt8183-resets.h | 3 + .../mt8192-resets.h | 0 12 files changed, 97 insertions(+), 6 deletions(-) rename include/dt-bindings/{reset-controller => reset}/mt2712-resets.h (100%) rename include/dt-bindings/{reset-controller => reset}/mt8183-resets.h (98%) rename include/dt-bindings/{reset-controller => reset}/mt8192-resets.h (100%) -- 2.30.2