Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp251453pxv; Wed, 14 Jul 2021 03:13:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxC4lx++/6rrADNL2HG8QtOcD5ditM8dA+36fOrVpGWEpKGU4GNcF1wXch1S8ixqDRjW0wW X-Received: by 2002:a05:6402:160d:: with SMTP id f13mr9375711edv.295.1626257587976; Wed, 14 Jul 2021 03:13:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626257587; cv=none; d=google.com; s=arc-20160816; b=bDB+GsvjPIjIpfdHnehzFKw9vcN699/OXDKyykouFOKa1e4JATdB2e4nnOo53WgmmA upZ3/fn2zlmYLlWMRoKrP9HNLWIYe/ExxOvjTEFWiU9KA6o7KXBEdzca1aWOqoAkGgo4 DI7jTJ6D6Scq68k5ONfCQ0C1/eRuhH+iAZegV4lvZbFJ5XaZkPf/sRTw6CFln7GFjJuv C5mrTRHoGdgsWzfDy1f9e5OGMyDl7kUlq8P0dDs9aNNCRg9ow72fiYV7OYPri790xLRd TE5BewNk98cWcErbSfM03msbgbDKOLYVqgcgrRF2cLp1Fo0Ben7zw3t4GBJS0F0qAXCH 9tTg== 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=BzfxBYS3ZHyAGy89csSrj95AFmpiROMenuu2FpKcLTY=; b=ahF59qNGvqso1lvZH48jIh1lDSPFEZiarI048KTfJbsf2mdp+DFZzHcKLq98QhKcK+ YAJBAisnvbfVaveooMb+V2QM2V7weWCqIJbK9CuwmTtmjX00LVNRqJYlAd3VNn4lgVhw J7doruerKacGCKq3WMg4dN61U2lH+k/C2fxuXvsvXd901ezPSa/VQI4jh3qTmSD3Obqd PkbGrUEs37Ix3Gz+obF0Yw8WtMbjkVjZCa1geUcpVjZNO+L9gMgDWzDLdEZLD4GyLsmv pib5iFZY9l4XsAMrR4u8WfuvFPh/Bzp8ACM4Pa25gU7Zg6EVk4qbqWzNm7KT1UOG+w/X j41A== 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 d12si2533069ejj.278.2021.07.14.03.12.43; Wed, 14 Jul 2021 03:13: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 S238887AbhGNKOo (ORCPT + 99 others); Wed, 14 Jul 2021 06:14:44 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:50660 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238359AbhGNKOn (ORCPT ); Wed, 14 Jul 2021 06:14:43 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 23F721F42DB7 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, 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 v2 0/7] Add support to the mmsys driver to be a reset controller Date: Wed, 14 Jul 2021 12:11:34 +0200 Message-Id: <20210714101141.2089082-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 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.txt | 2 + .../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 | 69 +++++++++++++++++++ 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, 96 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