Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1563563rdb; Thu, 7 Dec 2023 02:48:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IGY+JgWkCWucifn828rfvoCSRP5pNby3XeqiciO9kVVl+Sw9C4oiW5vtyV0UjKiXZHxwhYT X-Received: by 2002:a05:6a20:7343:b0:18f:97c:9263 with SMTP id v3-20020a056a20734300b0018f097c9263mr2036434pzc.72.1701946124055; Thu, 07 Dec 2023 02:48:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701946123; cv=none; d=google.com; s=arc-20160816; b=DwY/YaTyAsyd8ZfFfQ5tVdVA3BVm+BLwEi0hheSKLk+ViLpZpSaoQDwPm66/mfvnSE JkKT6T5yzByatCmoJBF457Tuny0rmfWG1nvHxMHjmsbPQIH7rlP8Ftyho07JBR1AtvtM k23KBKEs6KW1ZDqRzq0XtHcp3eGKd+5uthRQm5xIpl37yuQILSsMWSoJTk4ZBDcdv6R2 EaXyXxm0L2o7wogyYwI/lG4r8rA4QHBTAGYx4cGMWrQ7RJVPDe3vYxWjbEMXZSyTUOV6 Zr5TMY99aF5jW64JLCZ4KmAF/c+iQeGZcVXrKHDRMF1A4oMCXrUJSlts979MGOQBMYdn Y32w== 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; bh=huRY6JIGGvNahJeEl6Mz5CvQnw0Q0j29sH2C8TYaqC8=; fh=lTyPjb/A0DKwDyWbXXtqJ39/tOJT3XN/eo0WcXvG6+M=; b=qQVrEjjPoO4aWhjAbh64hgiIH2nEGryHPm+OhpMgqp8jZsMBp3hTvG5uDivwHa2atI 6gtd/dUTOvZsd2F8o8RBFLU67yGo3pfyyLi/DYMdov7owRUEeOPKBLfGYi0oC9Aqjpk/ mXW6B9AycgJB6aQOyzyQ/ehrmLFVXrAo2nOVpQtw6AyySmoiejwbd71o2ECsdlbOtMJI kio7hZqxeJ5f2F+P/53FjCzdm01roSbxQXnqL4HnRuf8XObqrUnje8eUQNJeGWYIUbA2 wNM2KEeGLKAkii3771U1coDdT6BIc0S+acc9J41/AlZUx62tnjPv8iqAX2G2mCyQSawx EC9w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id w6-20020a17090a8a0600b00286b47270b3si919641pjn.151.2023.12.07.02.48.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 02:48:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 270B18076651; Thu, 7 Dec 2023 02:48:41 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231876AbjLGKsY convert rfc822-to-8bit (ORCPT + 99 others); Thu, 7 Dec 2023 05:48:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230055AbjLGKsW (ORCPT ); Thu, 7 Dec 2023 05:48:22 -0500 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 469A2D53; Thu, 7 Dec 2023 02:48:25 -0800 (PST) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id 335198062; Thu, 7 Dec 2023 18:48:18 +0800 (CST) Received: from EXMBX061.cuchost.com (172.16.6.61) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 7 Dec 2023 18:48:15 +0800 Received: from [192.168.60.132] (180.164.60.184) by EXMBX061.cuchost.com (172.16.6.61) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 7 Dec 2023 18:48:16 +0800 Message-ID: Date: Thu, 7 Dec 2023 18:48:13 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [v3 5/6] drm/vs: Add hdmi driver Content-Language: en-US To: Andy Yan CC: Maxime Ripard , "devicetree@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , "linux-riscv@lists.infradead.org" , "tzimmermann@suse.de" , "airlied@gmail.com" , "krzysztof.kozlowski+dt@linaro.org" , William Qiu , Xingyu Wu , "paul.walmsley@sifive.com" , "aou@eecs.berkeley.edu" , "palmer@dabbelt.com" , "p.zabel@pengutronix.de" , Shengyang Chen , Jack Zhu , Changhuang Liang , "maarten.lankhorst@linux.intel.com" , "suijingfeng@loongson.cn" References: <20231204123315.28456-1-keith.zhao@starfivetech.com> <20231204123315.28456-6-keith.zhao@starfivetech.com> <94a1f9fc-82fb-4a04-a44b-f9b20c2bdfdd@starfivetech.com> <40cdd3c7-174e-4611-9ea6-22cb56d1f62b@starfivetech.com> From: Keith Zhao In-Reply-To: Content-Type: text/plain; charset="UTF-8" X-Originating-IP: [180.164.60.184] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) To EXMBX061.cuchost.com (172.16.6.61) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 07 Dec 2023 02:48:41 -0800 (PST) On 2023/12/7 17:02, Andy Yan wrote: > > > > > Hi Keith: > > > > > > > > > > > > At 2023-12-06 22:11:33, "Keith Zhao" wrote: >> >> >>On 2023/12/6 20:56, Maxime Ripard wrote: >>> On Wed, Dec 06, 2023 at 08:02:55PM +0800, Keith Zhao wrote: >>>> >> +static const struct of_device_id starfive_hdmi_dt_ids[] = { >>>> >> + { .compatible = "starfive,jh7110-inno-hdmi",}, >>>> > >>>> > So it's inno hdmi, just like Rockchip then? >>>> > >>>> > This should be a common driver. >>>> >>>> Rockchip has a inno hdmi IP. and Starfive has a inno hdmi IP. >>>> but the harewawre difference of them is big , it is not easy to use the common driver >>>> maybe i need the inno hdmi version here to make a distinction >>> >>> I just had a look at the rockchip header file: all the registers but the >>> STARFIVE_* ones are identical. >>> >>> There's no need to have two identical drivers then, please use the >>> rockchip driver instead. >>> >>> Maxime >> >>ok, have a simple test , edid can get . i will continue > > Maybe you can take drivers/gpu/drm/bridge/synopsys/dw-hdmi as a reference, this > is also a hdmi ip used by rockchip/meson/sunxi/jz/imx。 > We finally make it share one driver。 >> hi Andy: dw_hdmi seems a good choice , it can handle inno hdmi hardware by define its dw_hdmi_plat_data. does it means i can write own driver files such as(dw_hdmi-starfive.c) based on dw_hdmi instead of add plat_data in inno_hdmi.c Thanks for pointing this out!!! >> >>_______________________________________________ >>linux-riscv mailing list >>linux-riscv@lists.infradead.org >>http://lists.infradead.org/mailman/listinfo/linux-riscv