Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1759115pxp; Mon, 7 Mar 2022 01:37:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJx0GHPEYt1g7m0mD14jnxA2IW9Dg9LwVaTVSPvkoFe5ppnoWB6+wGrfAv26nZGgmIryEKuz X-Received: by 2002:a17:907:6d1a:b0:6db:35ce:b7b5 with SMTP id sa26-20020a1709076d1a00b006db35ceb7b5mr1714003ejc.304.1646645821511; Mon, 07 Mar 2022 01:37:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646645821; cv=none; d=google.com; s=arc-20160816; b=hMu0R4jn1JJ6Kj/kW4NMkxxQJBT8AoM1719eJjJe87+PP8p1xpo1uWJ+a87XfpTnjP 53VAO3ytsJ2G/iulMX5yRmVXmR1Jo5SMHQSaiCQDigpOLi04D/eEovtHOtcrdVDTWWng dwOWBTZVFInE3/cR19ZAHSLngReneV0IkqylPc/KuX40QuAw9blOkYwcUj/O1X8KAFbP L6YUSvZEAFbBl7GVPA6mg1d/7ngaCU7sMhSnscy4Qz1TEPGgOK4xsZswiHVPp6Yxjedq kHBwxX2qlpmZtvhHp07if006ktHjtOGFsWY0gg9eIBlgjlvewkGGjlmFHdUq034N1a55 8mDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nphVZGk3IRt95221bT7nfSyXQcqcrjz0Ux2hJDzPmMw=; b=u22kAl4RXOI10m2ppchR8J3FuMioPgtlmTQQaXFZjxdUV2s74qhIgprzHy6tTuPhcz aHsmNmfMvJpQFhwoAvSMebyxUB6/Qitflr/kQciVPGwsh8e13MsDUC8kVld87ct9l9ys w+jkwyYSdET1R5/vdwXTq6YkC10GmOpRLEVQHbVTVXSk24XT2jJIedC82OpxvMOwfpQC TxN42RoA1xs2qNJ6P0kkcgkcRuUbE3GZq5JutkdyY8kM9xyosT2eMM1ZtckloRwLeD+4 BFXsfJ8O0IHi+nRkBhBHCj9XsxM7R+bhnzdHPx66o7ibn1JgQQiPg3foKWP+Ne8J8Pjf OHVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ifi3tEd+; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y7-20020a056402440700b00416441f8f4csi2335556eda.268.2022.03.07.01.36.37; Mon, 07 Mar 2022 01:37:01 -0800 (PST) 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=@chromium.org header.s=google header.b=ifi3tEd+; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235288AbiCGGNz (ORCPT + 99 others); Mon, 7 Mar 2022 01:13:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234977AbiCGGNt (ORCPT ); Mon, 7 Mar 2022 01:13:49 -0500 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AD3A6419 for ; Sun, 6 Mar 2022 22:12:56 -0800 (PST) Received: by mail-pg1-x536.google.com with SMTP id o23so12699141pgk.13 for ; Sun, 06 Mar 2022 22:12:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=nphVZGk3IRt95221bT7nfSyXQcqcrjz0Ux2hJDzPmMw=; b=ifi3tEd+jUJc9itlg1Xoweu6CKrVulnxsqqlasH2SskzDA+aIdNk7OLrpFeGdVti39 ICRKw31jdbcyCePqW8r/u9kG021jyloq1SQ5LsyS6jm6YYfXPc4nzwpP+vjvkAj3QfQ6 I8bKLZKELQ52QHAZQBYhCRqgAcKejZjKTfjC8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=nphVZGk3IRt95221bT7nfSyXQcqcrjz0Ux2hJDzPmMw=; b=ijcSjHod74S7pHA6bO31OFVjJ7eiiZiNpoCCJdep8gxTR+ve7lyus6x6gDCRHSQXiN YIq+g3RQzuqB0eOVJ8awMQEg/ru9O0GKQm7XSWKYc2T7F4wx+cT+3Lm3axbHI4iki3Zz UIBmukMzlOAOfqfucPRry2mQI1bni3o1mua+A46HVknsxYvP4cW2Vr1B2r+e7xqoOCLS B/HywWlD1YF/oE6VmC/adLlk3zeGpUfhwDAXuGorebOaUDLgHONL9Du4T/kyWlRURyZA ToUX0AolN9R3hx/dDShrIDvDcjVVs1owWPBLcAUA4lPCGrHjvNUEromSvReR2GvQ5a87 DYow== X-Gm-Message-State: AOAM531gNGvEatgAmdHodsPGobaB/Coj8lSTBpdlXSB1Ouf6ybVbtr8N 626vBGBK1w1B10dDaQAkbLFEYA== X-Received: by 2002:a63:1c8:0:b0:380:189b:1e66 with SMTP id 191-20020a6301c8000000b00380189b1e66mr5916458pgb.71.1646633575694; Sun, 06 Mar 2022 22:12:55 -0800 (PST) Received: from google.com ([2401:fa00:1:10:40e5:90aa:d4b:2ad9]) by smtp.gmail.com with ESMTPSA id x6-20020a17090aa38600b001bce781ce03sm11488297pjp.18.2022.03.06.22.12.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Mar 2022 22:12:55 -0800 (PST) Date: Mon, 7 Mar 2022 14:12:50 +0800 From: Chen-Yu Tsai To: Laurent Pinchart , =?iso-8859-1?Q?N=EDcolas_F=2E_R=2E_A=2E?= Prado Cc: Xin Ji , a.hajda@samsung.com, narmstrong@baylibre.com, dan.carpenter@oracle.com, robert.foss@linaro.org, jonas@kwiboo.se, jernej.skrabec@gmail.com, airlied@linux.ie, daniel@ffwll.ch, sam@ravnborg.org, pihsun@chromium.org, tzungbi@google.com, maxime@cerno.tech, drinkcat@google.com, hsinyi@chromium.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, bliang@analogixsemi.com, qwen@analogixsemi.com, robh+dt@kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v12 3/4] drm/bridge: anx7625: add MIPI DPI input feature Message-ID: References: <20211105031904.2641088-1-xji@analogixsemi.com> <20211105031904.2641088-3-xji@analogixsemi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Sun, Mar 06, 2022 at 07:13:30PM +0200, Laurent Pinchart wrote: > Hello Xin, > > (Question for Rob below, and I'm afraid this is urgent as we need to > merge a fix in v5.17). > > On Fri, Nov 05, 2021 at 11:19:03AM +0800, Xin Ji wrote: > > The basic anx7625 driver only support MIPI DSI rx signal input. > > This patch add MIPI DPI rx input configuration support, after apply > > this patch, the driver can support DSI rx or DPI rx by adding > > 'bus-type' in DT. > > > > Reviewed-by: Robert Foss > > Signed-off-by: Xin Ji > > --- > > drivers/gpu/drm/bridge/analogix/anx7625.c | 247 ++++++++++++++++------ > > drivers/gpu/drm/bridge/analogix/anx7625.h | 18 +- > > 2 files changed, 205 insertions(+), 60 deletions(-) > > > > diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c b/drivers/gpu/drm/bridge/analogix/anx7625.c > > index f48e91134c20..f7c3386c8929 100644 > > --- a/drivers/gpu/drm/bridge/analogix/anx7625.c > > +++ b/drivers/gpu/drm/bridge/analogix/anx7625.c [...] > > static int anx7625_parse_dt(struct device *dev, > > struct anx7625_platform_data *pdata) > > { > > - struct device_node *np = dev->of_node; > > + struct device_node *np = dev->of_node, *ep0; > > struct drm_panel *panel; > > int ret; > > + int bus_type, mipi_lanes; > > + > > + anx7625_get_swing_setting(dev, pdata); > > > > + pdata->is_dpi = 1; /* default dpi mode */ > > pdata->mipi_host_node = of_graph_get_remote_node(np, 0, 0); > > if (!pdata->mipi_host_node) { > > DRM_DEV_ERROR(dev, "fail to get internal panel.\n"); > > return -ENODEV; > > } > > > > - DRM_DEV_DEBUG_DRIVER(dev, "found dsi host node.\n"); > > + bus_type = V4L2_FWNODE_BUS_TYPE_PARALLEL; > > + mipi_lanes = MAX_LANES_SUPPORT; > > + ep0 = of_graph_get_endpoint_by_regs(np, 0, 0); > > + if (ep0) { > > + if (of_property_read_u32(ep0, "bus-type", &bus_type)) > > + bus_type = 0; > > + > > + mipi_lanes = of_property_count_u32_elems(ep0, "data-lanes"); > > + } > > + > > + if (bus_type == V4L2_FWNODE_BUS_TYPE_PARALLEL) /* bus type is Parallel(DSI) */ > > This is not correct *at all*. V4L2_FWNODE_BUS_TYPE_PARALLEL has nothing > to do with DSI. DSI stands for Digital *Serial* Interface. If anything, > the V4L2_FWNODE_BUS_TYPE_PARALLEL type would map better to DPI, even if > it's not an exact match. > > This patch has landed in v5.17-rc1, along with the corresponding > bindings. As DT bindings are an ABI, we should really fix this before > v5.17 is released. There is no DSI bus types defined in DT, and adding > one as a fix so late in the v5.17-rc cycle seems a bit of a stretch to > me (unless Rob disagrees). > > It would seem best to revert this series and the corresponding bindings, > and retry in v5.18. There is a DT patch using this property that is already queued up for 5.17 in the soc tree: https://lore.kernel.org/all/20220214200507.2500693-1-nfraprado@collabora.com/ merged here: http://git.kernel.org/soc/soc/c/32568ae37596b529628ac09b875f4874e614f63f We will need to revert that one as well. ChenYu