Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp305878iog; Fri, 17 Jun 2022 04:06:30 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vkBwlonSLkVBvUHWrJEAqY+FDyqUxK8oHmgxoCARxV13JkVLmZwFXV/cLJ1Ut0PYemKwMf X-Received: by 2002:a05:6a00:22ce:b0:51c:15ac:3977 with SMTP id f14-20020a056a0022ce00b0051c15ac3977mr9541413pfj.3.1655463990153; Fri, 17 Jun 2022 04:06:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655463990; cv=none; d=google.com; s=arc-20160816; b=Rto30RqfIdEzIstcqIvSl5lYTB3Gx2IGYwLShfrhKV2CBvM7/JVK5zUQfsCtbxhug/ ZcDa573FvchypqXYQp6yJvvG6ralIodPjncWJ0TpvppehE9ku56GCL5LfnJE6tlbik1O 7LC9J10XliRWnYrAATFX2SHFEWMqzEQGPvGYPFkR4O8gFESTDtDy0tcOKnzFQiCIQmRa nJzo7koL7W/7NfLUbSDa1QnxgN/3pBPkAx5QLPb6hlkIIKDWDMtSNmKMKU0+BpVgV0fO UDyEM3hCHTDZJvOlFPXSjkrKCoOWrFcB38F1ybnMLGtVTkwiDyKkZgQFQj4ePHfahE5m i/WQ== 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=VoPEBTe8GIWOjbjulVhuWkgAmLX2oZ/qEHBUDv8Xq4A=; b=JVUr+JvAd3a+SDEOyCM2zhj3cVoK1zz98tGk836CWGBrZZ9361FX3gF0ivG2nrFzRY fhA6V96D59bYZtF4vAPM0q+0loD2oQKwKZkbOZchdLH3JixnZC6ygIShlKVYpA6nC5AL wfWd8xEIKLDbM1OkY7wC26b4Df9eL/zY20N2yx+MQwZiYPaMVzm7wnZXzuivr0v1hEWD egakVZw69I4S2MGBvv38VLTyTR1isAq4MuIj2g8eMYaFo21KmuZOqgB7OGxhqmuJ7CM4 DCwXfvbWTFFmEG3ZYnlhixmqFkbU4Zd/CKRQl0YBZCx05kJ7tl2EP2JaRwnEp5M2udx5 iL+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=T8mspU3p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i16-20020a17090332d000b0016390f2f284si5994746plr.167.2022.06.17.04.06.13; Fri, 17 Jun 2022 04:06:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=T8mspU3p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1381366AbiFQK0k (ORCPT + 99 others); Fri, 17 Jun 2022 06:26:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232153AbiFQK0i (ORCPT ); Fri, 17 Jun 2022 06:26:38 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D24AA6AA46; Fri, 17 Jun 2022 03:26:37 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id n1so4922381wrg.12; Fri, 17 Jun 2022 03:26:37 -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=VoPEBTe8GIWOjbjulVhuWkgAmLX2oZ/qEHBUDv8Xq4A=; b=T8mspU3pKYdO8CUcvqthLXqrOQjJPUSkkv257NLusbuA8D/FXqWjAsPN4BlAbrUh18 Iuj7wTUJYyyWy/R59XJTqtBCjIwAh/Zw766eyhjpZE27PfcPNEy9P8SxB+vzhrrvTyfI LalDITAZYpx+jrf26Z77xY913zVn716mxfAo9TRTUkwHbsNzzxMd8owSzazAfVmq+gaS RioAf09Li9mX5EhwESX9qKJ/anXW3aNmzNHTOaSJ29ICo3kL44+gmjDjYYnqCdizV9OA RmPsiJHvBjTysXlujz8NjWwuhk5U6NIfEBK9CBy9+SH/sbgoFVi8h2+igSYptJKqGSwa rLpw== 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=VoPEBTe8GIWOjbjulVhuWkgAmLX2oZ/qEHBUDv8Xq4A=; b=gzAHNrTUxfxWspzHHywwFTKRBdE3zb79Z/nJkaczIvwkdlcjPRRaZW/F9O0Dhn/Q8M zR+bWOHaq0nZSPvEMN3zTz2Yh5WDole9wo9NTKBom9tR+kzNNl0qPvshZA19UtEM85fO /TAUqH+6Fw8bM8+s1BOkccwD95VgEjDhpBV673s+0icME0Z6TeJIfOHBfYriwYKDm2JA Z8TOUnxeE4eVQOJdrgn9EJN+xNGiaBhGQW61VfIXI++XedW2fAH8ncf9+cqCQE+Hj50u Yp+HZ5pXL0VrUIcwJkmQnE+PKP8/4uD5p5TGUBMWo1U30I5N0vLyBuo5HjccHluccttX CxDA== X-Gm-Message-State: AJIora+AspUuSRj42/y0WTOjzsHNRLVlMz6G6xMQRO/0NUZxa+HFZlPr XFkrD4z5/JDy2c5r0HlsyFU= X-Received: by 2002:a5d:5c04:0:b0:21a:23e0:6ba3 with SMTP id cc4-20020a5d5c04000000b0021a23e06ba3mr8861230wrb.71.1655461596259; Fri, 17 Jun 2022 03:26:36 -0700 (PDT) Received: from [192.168.0.24] (80.174.78.229.dyn.user.ono.com. [80.174.78.229]) by smtp.gmail.com with ESMTPSA id z12-20020a05600c220c00b0039c5b4ab1b0sm4774639wml.48.2022.06.17.03.26.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Jun 2022 03:26:35 -0700 (PDT) Message-ID: <9f36c019-dff7-7fa8-b8c8-ed118cef716e@gmail.com> Date: Fri, 17 Jun 2022 12:26:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH 5/7] soc: mediatek: mt8365-mmsys: add DPI/HDMI display path Content-Language: en-US To: CK Hu , Fabien Parent , jitao.shi@mediatek.com, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org Cc: chunkuang.hu@kernel.org, p.zabel@pengutronix.de, airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20220530201436.902505-1-fparent@baylibre.com> <20220530201436.902505-5-fparent@baylibre.com> <3b5e4d1e3b8dd8593c4a0cf0edbb0cee4538fa8e.camel@mediatek.com> From: Matthias Brugger In-Reply-To: <3b5e4d1e3b8dd8593c4a0cf0edbb0cee4538fa8e.camel@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/06/2022 07:53, CK Hu wrote: > Hi, Fabien: > > On Mon, 2022-05-30 at 22:14 +0200, Fabien Parent wrote: >> Right now only the DSI path connections are described in the mt8365 >> mmsys driver. The external path will be DPI/HDMI. This commit adds >> the connections for DPI/HDMI. > > Reviewed-by: CK Hu > Applied, thanks! >> >> Signed-off-by: Fabien Parent >> --- >> drivers/soc/mediatek/mt8365-mmsys.h | 22 ++++++++++++++++++++++ >> 1 file changed, 22 insertions(+) >> >> diff --git a/drivers/soc/mediatek/mt8365-mmsys.h >> b/drivers/soc/mediatek/mt8365-mmsys.h >> index 24129a6c25f8..7abaf048d91e 100644 >> --- a/drivers/soc/mediatek/mt8365-mmsys.h >> +++ b/drivers/soc/mediatek/mt8365-mmsys.h >> @@ -10,6 +10,9 @@ >> #define MT8365_DISP_REG_CONFIG_DISP_RDMA0_RSZ0_SEL_IN 0xf60 >> #define MT8365_DISP_REG_CONFIG_DISP_COLOR0_SEL_IN 0xf64 >> #define MT8365_DISP_REG_CONFIG_DISP_DSI0_SEL_IN 0xf68 >> +#define MT8365_DISP_REG_CONFIG_DISP_RDMA1_SOUT_SEL 0xfd0 >> +#define MT8365_DISP_REG_CONFIG_DISP_DPI0_SEL_IN 0xfd8 >> +#define MT8365_DISP_REG_CONFIG_DISP_LVDS_SYS_CFG_00 0xfdc >> >> #define MT8365_RDMA0_SOUT_COLOR0 0x1 >> #define MT8365_DITHER_MOUT_EN_DSI0 0x1 >> @@ -18,6 +21,10 @@ >> #define MT8365_RDMA0_RSZ0_SEL_IN_RDMA0 0x0 >> #define MT8365_DISP_COLOR_SEL_IN_COLOR0 0x0 >> #define MT8365_OVL0_MOUT_PATH0_SEL BIT(0) >> +#define MT8365_RDMA1_SOUT_DPI0 0x1 >> +#define MT8365_DPI0_SEL_IN_RDMA1 0x0 >> +#define MT8365_LVDS_SYS_CFG_00_SEL_LVDS_PXL_CLK 0x1 >> +#define MT8365_DPI0_SEL_IN_RDMA1 0x0 >> >> static const struct mtk_mmsys_routes mt8365_mmsys_routing_table[] = >> { >> { >> @@ -55,6 +62,21 @@ static const struct mtk_mmsys_routes >> mt8365_mmsys_routing_table[] = { >> MT8365_DISP_REG_CONFIG_DISP_RDMA0_RSZ0_SEL_IN, >> MT8365_RDMA0_RSZ0_SEL_IN_RDMA0, >> MT8365_RDMA0_RSZ0_SEL_IN_RDMA0 >> }, >> + { >> + DDP_COMPONENT_RDMA1, DDP_COMPONENT_DPI0, >> + MT8365_DISP_REG_CONFIG_DISP_LVDS_SYS_CFG_00, >> + MT8365_LVDS_SYS_CFG_00_SEL_LVDS_PXL_CLK, >> MT8365_LVDS_SYS_CFG_00_SEL_LVDS_PXL_CLK >> + }, >> + { >> + DDP_COMPONENT_RDMA1, DDP_COMPONENT_DPI0, >> + MT8365_DISP_REG_CONFIG_DISP_DPI0_SEL_IN, >> + MT8365_DPI0_SEL_IN_RDMA1, MT8365_DPI0_SEL_IN_RDMA1 >> + }, >> + { >> + DDP_COMPONENT_RDMA1, DDP_COMPONENT_DPI0, >> + MT8365_DISP_REG_CONFIG_DISP_RDMA1_SOUT_SEL, >> + MT8365_RDMA1_SOUT_DPI0, MT8365_RDMA1_SOUT_DPI0 >> + }, >> }; >> >> #endif /* __SOC_MEDIATEK_MT8365_MMSYS_H */ >