Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp761276pxb; Tue, 9 Feb 2021 11:41:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJylyQoRsaSmvKL/iEiilmcCbQ4kVtrTCmom5hxdkstju4EryXC/lqFbmU+VA8gyZo7ji4DP X-Received: by 2002:a17:906:5fc1:: with SMTP id k1mr16985623ejv.16.1612899691467; Tue, 09 Feb 2021 11:41:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612899691; cv=none; d=google.com; s=arc-20160816; b=d3dFJjD6cQ52EmNZRP0jQaxEp0nshcCTQPgY/vDAM5/GnQj9BzFw2fDre7frOVxHm7 1x/7eUMEPFToXMBZbNQ+tXXXJSfOgHND+y77Gnt7ptHLBYcaP5WnxDHvhos2hO/8yybD 02b9PvTYl6rxtCvRIoi+SfZKlDMEe4QcxCF9Pin1B5W6A1lj5IUpxQu3C4uZUbmXUVh2 Iq02xb/DobuehNEkgI8flNUk/eyqRnksJ0A6h2+u1bkqQvOscj4mIfbYqZzNYN4bKWTE bTKODA+Fskjo48BfwDqST+6tRg+o4A11xoo1SMbivXvjyRPgzqelhqzdqBL8x8kx5EAC jm7g== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=yvEVgFXxj42ho51jb6dVDNgFxU/choj/euDd8LGx2dg=; b=NTEjfxwwUV3JAUWW1Zi3xZa8npBtS+B0yKV2Jcrejf9YYeajXWILJ4Z+cqUl9vAPg8 Eop8HeuupvzbfkQRwseQKnifQvBgdD9x/5TXs+WJy0VGfZmDh6MNbBWsSmxObYxol2qm 4Fg+JA28+Mc8f9QtjPTgd6Y6z5aqMyOZCF6ifM+M0kfaf8t1jbOURaklAe7dQT69lGky TY2pOrgkZPN8YzwPogD8rPR5bwUxzcO7UZdJgvXMcHXc8CF0n3umLEI91Gln8sT5XKwv yiZIdza/Puu2v7mmfFbq+7JUy+OmRdKbAozfI/RzGQP6X++SjrZZ9px3kciu8wO777DG xTvQ== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id co21si15545215edb.165.2021.02.09.11.41.07; Tue, 09 Feb 2021 11:41:31 -0800 (PST) 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; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233379AbhBIThW (ORCPT + 99 others); Tue, 9 Feb 2021 14:37:22 -0500 Received: from mail-ot1-f54.google.com ([209.85.210.54]:42000 "EHLO mail-ot1-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232788AbhBISRv (ORCPT ); Tue, 9 Feb 2021 13:17:51 -0500 Received: by mail-ot1-f54.google.com with SMTP id q4so8696309otm.9; Tue, 09 Feb 2021 10:15:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=yvEVgFXxj42ho51jb6dVDNgFxU/choj/euDd8LGx2dg=; b=me97rCxDInYiYZZC5XuYlcWX8rJmwJ6vJcr7yItwhSv7F/o4GQ25Xo+4Xm6p+x1azg Wr73HkIMD0sBaoB/htir40QnoQOrW2Bp0ruDNwRghs0SweKjH4RPEAyzDmtdsajwul2b 8dTSD01VhqrqcYa6Sl1Bg8gEecZVJK8ggBPYN1/YONBukbCtJ0Thr9h0cSuBf5D6jmJA mI5eO88qtZITL4va8bNAoUw5vu3pTWgcE/Z625UvoDQ4QGqfoqV+bArLaeyaGSHi05yC oS+od2CL1fnGYxOeUxoyPWiCH3t/tnO0vCzR4hkU3GvGHpb6HDYlZrs3quMqMLLpPml7 Uixg== X-Gm-Message-State: AOAM531CXLmtIe34/adt2SltDErcGe1TWi65G41pGZTVdTB4+ozVkQqW DQgYck8Vt27AkEXYarvLGw== X-Received: by 2002:a9d:17ed:: with SMTP id j100mr17375162otj.169.1612894513667; Tue, 09 Feb 2021 10:15:13 -0800 (PST) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id k67sm3069817oia.7.2021.02.09.10.15.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Feb 2021 10:15:12 -0800 (PST) Received: (nullmailer pid 4073574 invoked by uid 1000); Tue, 09 Feb 2021 18:15:10 -0000 Date: Tue, 9 Feb 2021 12:15:10 -0600 From: Rob Herring To: Liu Ying Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, airlied@linux.ie, daniel@ffwll.ch, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, mchehab@kernel.org, a.hajda@samsung.com, narmstrong@baylibre.com, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@siol.net, kishon@ti.com, vkoul@kernel.org Subject: Re: [PATCH v3 09/14] drm/bridge: imx: Add i.MX8qxp pixel link to DPI support Message-ID: <20210209181510.GA4045547@robh.at.kernel.org> References: <1611737488-2791-1-git-send-email-victor.liu@nxp.com> <1611737488-2791-10-git-send-email-victor.liu@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1611737488-2791-10-git-send-email-victor.liu@nxp.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 27, 2021 at 04:51:23PM +0800, Liu Ying wrote: > This patch adds a drm bridge driver for i.MX8qxp pixel link to display > pixel interface(PXL2DPI). The PXL2DPI interfaces the pixel link 36-bit > data output and the DSI controller’s MIPI-DPI 24-bit data input, and > inputs of LVDS Display Bridge(LDB) module used in LVDS mode, to remap > the pixel color codings between those modules. The PXL2DPI is purely > combinatorial. > > Signed-off-by: Liu Ying > --- > v2->v3: > * Call syscon_node_to_regmap() to get regmap instead of > syscon_regmap_lookup_by_phandle(). > > v1->v2: > * Drop unnecessary port availability check. > > drivers/gpu/drm/bridge/imx/Kconfig | 8 + > drivers/gpu/drm/bridge/imx/Makefile | 1 + > drivers/gpu/drm/bridge/imx/imx8qxp-pxl2dpi.c | 488 +++++++++++++++++++++++++++ > 3 files changed, 497 insertions(+) > create mode 100644 drivers/gpu/drm/bridge/imx/imx8qxp-pxl2dpi.c > + p2d->regmap = syscon_node_to_regmap(np->parent); > + if (IS_ERR(p2d->regmap)) { > + ret = PTR_ERR(p2d->regmap); > + if (ret != -EPROBE_DEFER) > + DRM_DEV_ERROR(dev, "failed to get regmap: %d\n", ret); > + return ret; > + } > + > + p2d->id = of_alias_get_id(np, "pxl2dpi"); Don't add random aliases. I'd rather see a property in this node as long as it is specific to what this is used for (and not a generic index). Rob