Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2360512pxb; Fri, 8 Oct 2021 06:19:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygLn95+nDnHQh/RVN9Nq/jns+QHRPNsUNLVY96BBvuJBLkUwnWFgk8pMXos1SudI9qWMBY X-Received: by 2002:a17:906:1fc1:: with SMTP id e1mr4100155ejt.515.1633699170490; Fri, 08 Oct 2021 06:19:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633699170; cv=none; d=google.com; s=arc-20160816; b=oLP3viv37qBJ2s49SXa/6w6a4fZ8uSebRyH5RXGXBNOW/9ViDjAFPJSVYo1GzAKRkC +L2F52OpklA899m2GO4UR/FdBOP1qTh2mcIQxdSXq2pUmXGOQTetG6N2/VGmqDQazEjh KfMBkrxxY6I6ckrTe/gHdYkW0YBaxjjUbZskR1s5I8kGCquxR4sHSh9ISwQc+bIj4v+n wSuqI0UEaFCKgnvVtaoXblyT0yVOgHLplilN4x32nE8uOPC8CS8naJ94YD/MblUBg/Th ZryrdncWuLWnWGcSkgJAugq7wRoTuBFXcjfsJW08iRjQ+UKXm1E288NDqzVNxJPdXzUj 5U7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Gr1byabWHn1PUa1m+Lt+dKzXId3ni3LSSa9lwDSa3gk=; b=LLcVQ4bREWIfOfriHUESgt0S7pGR9syPej1z25XjdnyhUnfp3z4GOjZCi9BhUmKQNn moYEpUuE1TtsOx5tdVh4mUlYw1ROYVT9V5csT2VI5dXudrtPqytWRRNx3ClQIUGnfXCR mCjdmOUii2sLLfpg+RHvMYnrxVFA5M+tJHQxAuCP8g8LgZeCCIx8in7qvpy2UqGxUOZa BddDmZbKmFNztvFZNggPmf0dfzaEAxi04eYzgmcDchNBixBRctn5MR1cOPTaKU6EWCce UbZRxcmxccoZtO2K+pnA+JEJCA5WEA28wZkn2SSFMwFWQG82DXMgRjZ4W82nibg6538B l7dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TJwvim7w; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 26si3437345ejz.347.2021.10.08.06.18.58; Fri, 08 Oct 2021 06:19:30 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TJwvim7w; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241522AbhJHNSo (ORCPT + 99 others); Fri, 8 Oct 2021 09:18:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230258AbhJHNSn (ORCPT ); Fri, 8 Oct 2021 09:18:43 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0ED41C061570; Fri, 8 Oct 2021 06:16:48 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id r18so29835032wrg.6; Fri, 08 Oct 2021 06:16:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=Gr1byabWHn1PUa1m+Lt+dKzXId3ni3LSSa9lwDSa3gk=; b=TJwvim7w+eQFFfurbsl40FGMPwvnfLNLF3mqkVbNUxpugKorDKYZpgJ6ppC/PTEfU/ zOILl/qFEGzOdn6zfkCqtCzngeViZPdhvYzMHbM3IFZjQGHrra/zDS/6TMIKgTnVc55t FcMxubz12x29/ajr4yg/4IapyvyKUFNo3xqRhsRdQeIVc4OPAXyzrkZY81y6rOdHomht hqzwPEcVHx/WmerpaSHDHB18z/kd2XNccqlNpJydYkZY9xgv9A3ahUCBrPFCZeng3Ptm jP6ttiHbfEf7muJb0bTHpjXuPa4qjwlq/IFgZ8831A1pXDw+R+PUitOMme4fSBTH9oWk WxPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=Gr1byabWHn1PUa1m+Lt+dKzXId3ni3LSSa9lwDSa3gk=; b=iFs4jdEOVja953VOS/7c6Nmef6OKoxLGerjQlvVaYtTnnCbFxerO+qAedYx9EU/YZD b2Y2fTlT/kvv+SVYlS+j1W92y6wup2HixbFe4BMuJ5nbNMUT6pLN5slTpUp1wds2FiEY tMr4xRmVEEkSE/DyV5L9gBP8JnsRM0QNnJ952EC+HqwwOjcQFwXZoMwIEIpm/1bShNFk 2WtX23Sb28V1V39vyr9FEoV7F619dWR4Ybv/4jkTzYsmS2ODOEo0wNFsEoiu/ivgdziR ECGeayWmzSVdX9EifSXPnKe0z8g2Co6KEkoWgbWvfUi2aXGE4l9oUAG5LV1Udqbq1WTR YSrg== X-Gm-Message-State: AOAM530bkpknxGv0vP6iIos2jPh5VxIhkVMEki+ucWW1lj6EzutPD+53 An4blNrZbdu1GOr7t1CkhCE= X-Received: by 2002:a5d:6245:: with SMTP id m5mr4099639wrv.148.1633699006563; Fri, 08 Oct 2021 06:16:46 -0700 (PDT) Received: from [192.168.2.177] ([206.204.146.29]) by smtp.gmail.com with ESMTPSA id g2sm2642909wrb.20.2021.10.08.06.16.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 Oct 2021 06:16:45 -0700 (PDT) Message-ID: <266143bd-6135-adf6-8a80-537f9d6ea3ff@gmail.com> Date: Fri, 8 Oct 2021 15:16:43 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.2 Subject: Re: [PATCH v4 0/7] Add support to the mmsys driver to be a reset controller Content-Language: en-US To: Enric Balletbo i Serra , 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, 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 References: <20210930083150.3317003-1-enric.balletbo@collabora.com> From: Matthias Brugger In-Reply-To: <20210930083150.3317003-1-enric.balletbo@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30/09/2021 10:31, Enric Balletbo i Serra wrote: > 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. > Patch 1-5 pushed to v5.15-next/dts64 Patch 6-7 pushed to v5.15-next/soc Thanks! Matthias > 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%) >