Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3585938pxp; Tue, 8 Mar 2022 18:07:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJxWW2jl1uAd7Ts650RGK4qlwJcY0jPYYuBF0AsPrboNshzBUDpowWtm0HrOMr4Pnp6Rk/0Y X-Received: by 2002:a63:1620:0:b0:375:948e:65bf with SMTP id w32-20020a631620000000b00375948e65bfmr16951685pgl.49.1646791674961; Tue, 08 Mar 2022 18:07:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646791674; cv=none; d=google.com; s=arc-20160816; b=uxndnmcGuLQHmva9Ky/8Q0IjRRF4eYvXqEL7elYXmRCN5EC2kvvIZ+QGlp66Jveuwb Lr18rjR5X0V7JQXHdGkvmNDtr/AxVTVZfH9MlWKOkckZIAky3162sVInO/ur0ulHF4D2 +OJzvjY3hwYtCEWF2IFVCHOYay4Xim+bTW3LAONMNBX6hnIc5j1cdF56/311rn7dAW3s zmdaOcfLDXzgKyzRfkIPCCu5OYRyhqowDD7msWmKyc3gKRhCiLUPctbMkTGIfi/y8pJa 8Uq0qSGEPVXqWzrUs2CDBmB9ZX4nnLuCCt1FqiQA0VXKibB2kxGNcBUNtR6lbfVpMQ4c e+AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=w3pwSt00P8dq6UBwqoWZplPcJrIB0Twk+vNu1P1BFVs=; b=vIeTQwoXAcKx6SzD7mTEAwFyMCW4Z7uFlWZPc4y5AT9QzWzI5zC5CXf2VZlEySvo41 HMjPCjNHYbWEr+mQlRktzIW9d6BYP2irFSgJ+HKb83Mp1pZ3Yw30Iz45mvuwZdgWhGOt qNgK0ohgOz/Jyy+/qhJXAtMaR8vwChwwM6m5kuvel7CDjTIDmCSDxxXiHIDTkwuYKXh1 RbxtAmsOe7Vnbq0maeRbmGYxXWbvIAv3p2X7sTw5Z4XJRp/ySGAPIj041pbS0mjgdmrw yRXkX5kpgm9HdT4ieuqp4ejBBVn7tVEjGoIaIDqVxEVaSW5ETfjJYBD4KGV07JrJEOn5 j+pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=L7srTIOZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c16-20020a17090a8d1000b001bfa79127a1si1052389pjo.9.2022.03.08.18.07.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 18:07:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=L7srTIOZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 386D9123BCF; Tue, 8 Mar 2022 16:38:52 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345587AbiCHKBd (ORCPT + 99 others); Tue, 8 Mar 2022 05:01:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345629AbiCHKB2 (ORCPT ); Tue, 8 Mar 2022 05:01:28 -0500 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2042C427FF for ; Tue, 8 Mar 2022 02:00:32 -0800 (PST) Received: by mail-pj1-x1030.google.com with SMTP id kx6-20020a17090b228600b001bf859159bfso1765792pjb.1 for ; Tue, 08 Mar 2022 02:00:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=w3pwSt00P8dq6UBwqoWZplPcJrIB0Twk+vNu1P1BFVs=; b=L7srTIOZ8D0DZTGnRZ7EHHRoCmawxSsPAQyn/J9KoAPqsTr+S5L+A2Wrx55SIn5X+H l6oRFyDkbe2VZLF9uHm4CqDRJpfC5E6s8qTi5CGq5NTLl1ZXQ+2ngxCTbu5MoLwZRCjX FE/dnSTMzKVHzHr3G41DX6xkQb5EMUvQquStOPuzl0jSHoi1yequGbqPgo7XswP6tjh8 z74qBjieToCxyJ8JyCVa9UOomtKdiXwHHMoJ4TpefldBA93npQYduoRrrD3eFEfeBaeB va8s4KKAXSXJDOMFpKFb+v+rbgCCQ+4j4Z4qzKQPxE/ArYrt1PYwb0Jcme81inWNactP Zs6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=w3pwSt00P8dq6UBwqoWZplPcJrIB0Twk+vNu1P1BFVs=; b=S7P7Dcc8bZLbW+vocKZc1/YRKSaTLVPhjJFDmsbyjMC0Ru9wtgHgtaJtZvjnYPI4Ge bmOAYOg+UZuhu+jQAjyydM5ARLny5+0RtxCvftqvdNq3BrWDl6ZuaUAiSfRqqYkLE6Wi ssKJK3nxlQmzBR4Dv96WYIZg6zAw9j/Qmr6cTGtUxjC/T1z+fLE658TVV1UJr11bRefH G5Ecza2SaLKb2QbsqPBaN4XxRsSk7686iF8I3abHpFpiGVZX2v54z92ShJYALGanVMZm 5UybOPS0qPJVmYGvsqmaUraw0YkQyMpisLY2Q/J75sbuTdgqoG7tH3jg9GKVdGVZheWc 1L7A== X-Gm-Message-State: AOAM533gzDyINTHe6bqz0eKoe8UXRYAJjtCsM8lpZwTMbBFTkNanZdSO ZeWi6KxW7gGvxxVdnwwJfovYsi1lfGSpDNWu6A6Htw== X-Received: by 2002:a17:90b:906:b0:1be:e765:882 with SMTP id bo6-20020a17090b090600b001bee7650882mr3815408pjb.152.1646733631227; Tue, 08 Mar 2022 02:00:31 -0800 (PST) MIME-Version: 1.0 References: <20211105031904.2641088-1-xji@analogixsemi.com> <20211105031904.2641088-3-xji@analogixsemi.com> In-Reply-To: From: Robert Foss Date: Tue, 8 Mar 2022 11:00:20 +0100 Message-ID: Subject: Re: [PATCH v12 3/4] drm/bridge: anx7625: add MIPI DPI input feature To: Chen-Yu Tsai Cc: Laurent Pinchart , =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Xin Ji , a.hajda@samsung.com, narmstrong@baylibre.com, dan.carpenter@oracle.com, 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Mon, 7 Mar 2022 at 16:49, Robert Foss wrote: > > On Mon, 7 Mar 2022 at 07:12, Chen-Yu Tsai wrote: > > > > 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. > > I just submitted a series reverting the dt-binding change + the > related commit to "mt8183: jacuzzi". > Can I get a quick r-b/a-b in order to get this into v5.17. > > https://lore.kernel.org/all/20220307154558.2505734-3-robert.foss@linaro.org/ > v2 of revert submitted. https://lore.kernel.org/all/20220308094911.2680291-1-robert.foss@linaro.org/ Xin: Will you spin a series that adds DPI support and re-enables DPI for anx7625? Additionally, "mt8183: jacuzzi" will have to have DPI re-enabled.