Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp387040pxv; Wed, 30 Jun 2021 07:51:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJza+k0f2WsYqMVN255EnBUQsc8dJpMNF2nrw4YFrj7G8SubIF2j+59QRMczyrmXerVlzEmg X-Received: by 2002:aa7:d8d4:: with SMTP id k20mr46815230eds.143.1625064667689; Wed, 30 Jun 2021 07:51:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625064667; cv=none; d=google.com; s=arc-20160816; b=yQO0G9RH7/hgg+fxDBzDq8FDFvb3kkfpgKhWwmEWS7DuCYkIEBJaWtv1QEftTq9uDl NsfROSohXq7jvNBaUVWts9FZMz972fB0/sUOG+AAZ7Sbe9Ah6XWAJlKSC1Vzd76XidH0 +v4m+PJZC8UtHth1tuJtunmuFTEy/2fV3mbRrCItQYUHnS1h/WybSWpU43oO4o5Q5ZTe cJgya+CTUlrCqy82el5tGyVltDfoL5RuEGFgZyOdt0xJhnXJtDNzrRQJsd+7/GcQPAfy 28o8HacQS39IrdjbWuuErXI3tUwHnAV2e1qr5QKtDjhOvJOpEAvdYBuNNl7c+GuM//Pm th0Q== 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=Js1nEQOV8XmHsotGN/bcT0dMZRhaELD6bCrzWd8YKo4=; b=hcapP1Q32EJrGdJlJ/TwvkgpdxodW9vohsA5JXCS5qmNN/6mOXW99ZVIvGdi8R5L2i TT5TiZmYM7zVfKslNcr3XVYx15RLbm5HvYQOKRC3zQ735Xi0Mw6rPjPx5lEUuruFfjTQ /2byJmtuv4tlIeikFqe8L8Gu3IJHI2RNspVfEsqRIegDha5kWCvt/1OB9KSWiLTCY3NQ 0YTk5izbFBA5EjNBfxhu/DNkZSp37/HcjXNYmTCOl5uiUEBdkX1A0B7bVuLETro6FJvm JuM5RJb8ULK1S0K8aYxp+yy09JPBrkwizzA1a3OOYnrHBBG5vyFDRhkg1QbrWRwuuG+V m2Fg== 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 hz7si14686776ejc.673.2021.06.30.07.50.38; Wed, 30 Jun 2021 07:51:07 -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 S235569AbhF3Otb (ORCPT + 99 others); Wed, 30 Jun 2021 10:49:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235508AbhF3Ot0 (ORCPT ); Wed, 30 Jun 2021 10:49:26 -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 4016BC061756; Wed, 30 Jun 2021 07:46:57 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 9CA861F435EB 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, 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 Subject: [PATCH 0/6] Add support to the mmsys driver to be a reset controller Date: Wed, 30 Jun 2021 16:46:40 +0200 Message-Id: <20210630144646.868702-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/ Enric Balletbo i Serra (6): arm64: dts: mediatek: Move reset controller constants into common location dt-bindings: mediatek: Add #reset-cells to mmsys system controller 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.txt | 2 + 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 | 69 +++++++++++++++++++ drivers/soc/mediatek/mtk-mmsys.h | 2 + .../mt2712-resets.h | 0 include/dt-bindings/reset/mt8173-resets.h | 2 + .../mt8183-resets.h | 3 + .../mt8192-resets.h | 0 10 files changed, 87 insertions(+), 3 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