Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp6944577pxb; Wed, 17 Feb 2021 19:03:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3sWd6zsMAtqA8bQkQm7gq5hTWn8grwVyPlv7ExQI5LqnOvPjNInkP6/eBqLpN8NJV6rcL X-Received: by 2002:aa7:cd87:: with SMTP id x7mr1922661edv.210.1613617411247; Wed, 17 Feb 2021 19:03:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1613617411; cv=pass; d=google.com; s=arc-20160816; b=A2DTQtOm0LnMxbcAu1WtpTCIQ/T4fgngd7N2RiWnPIvgfDY02u/8uXzYZMQObHSw6C Bfhn6FI5MF3NJB9SCk5n4ZN/+eTJ1JZwusZ5kWPNwWbCMxPXdM91Yw0xRyw9zDtQ74Z1 pRdZSmprG7jiTWjfhiy3S66j/7DouOALuPBpfppotq0UUGeJLS9NPUj+fnQ1qHizsKd7 K78nO8JsizmFBIzIVD+4ue7/izIbO6/DdpwtkuxZCYwEPyZ2CAYwKxYLdq7HPCqbDE6D mx+kXmQh7zQ+QVybJQKCtLdwSK2mrCU2Ssw2/wQQll9FjInrH9e5pt8ccVN6Y9UaYz5x v9wg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=wjOfEK1LdgVhSnQhlgaQOVKJp3zxp0lraEx6cUjL6Ko=; b=cflWCko2wUDPoA5CNznHSQX4Qo+7ZNify43rUHyDZla5HWWKuEpA9mjLwWCd5qkrIZ /TWP5ipxh/DV9uwqgKPAOU2j8Ccw8+xGeBkpQO8viCnaAZL3TQnh+fbv48k4Taeiy16O 21+YkiOKy/TdAD9lx69FL1n4O4mMQ0AWi0PX71TrVLo7OpTug715cvuWeqogrdhI1AwZ QPbaODTigmt9peEorLf/rYpsZFBlkeBowIUUAjhdZNUxDjQwOjkVMOWlRx5Lw3r4VJfQ K12rs1ndQIk4Qur/l3Qz5gZVXEHkjW7uXNVsXrFtaSwbsxDmrTJgmiFxqK7ZJ0pa/W6v 2YjQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=ZN8qkLJw; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bs1si2812333edb.502.2021.02.17.19.03.07; Wed, 17 Feb 2021 19:03: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; dkim=pass header.i=@nxp.com header.s=selector2 header.b=ZN8qkLJw; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229864AbhBRC6i (ORCPT + 99 others); Wed, 17 Feb 2021 21:58:38 -0500 Received: from mail-db8eur05on2057.outbound.protection.outlook.com ([40.107.20.57]:46336 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229808AbhBRC6f (ORCPT ); Wed, 17 Feb 2021 21:58:35 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eJmw0ntmXorVUIq2EVuznHVuNeIo3I4FVAt3Gz+LiBW2HNEI4yrUnrNi1mItfjsN04DB9Kwcu0fH6FuhzCTgVHywUoW4IiexlhQMj3+EzOkLKZsPtl2oTfM+i3CVqVcBc4wwxV+4GnkGt1aIwJYfAzj1yd7gIURHKK+5EUUA/LS6prJLJCBVx8y685X8U2WfKsgAZ3gmrxwPro6vXkkAOByVOotIuGESIeFpPEFkcjSiZzkY217XyqBQugsjIeFt+764Aj+3YiJkw1SqIl6dQduviruraNxV5XOG6pwFwBJibsSoMZN7Bie5xVwD8eOEifZe12ChNLLeXDYUHT8QgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wjOfEK1LdgVhSnQhlgaQOVKJp3zxp0lraEx6cUjL6Ko=; b=BoC4VXYECWcDQ+ThUHOSgo1CgyLdMVlaGntBO0Dptg71YD2+2kgZz4r5zhOdyhmk8gcnvuhUSQzBQQh92/TzZqBXuX+sMNlDSOeUzvlnn6lam1raKK1CjDe9er/tiK9CV+e17FOr0pq/mcOZqq0SFlO7pQHE9gr52k186FtFxI+apMzfkOCOVazJqtO3dhfMLiHVyHS9JCOobWEDD4rQxhS3knpulXR/FND/UDAJ/9OE8PQkmxxw15tsTQDOzYNyMhwodKbZrGkFHNGcUiuDu2Zbwxh+gelJNX/MQ2CJ/YzjM5bUyvid2iHmNuvuspyIpOv7KNHb7xgX5mb7hel/8Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wjOfEK1LdgVhSnQhlgaQOVKJp3zxp0lraEx6cUjL6Ko=; b=ZN8qkLJwl2g+rBcdck0C4qOHhktQfKvfeinmdnClR6Xw+/oeKtMJCtIzvKHv5ZZxmpCE0sYVeKmfYjJvQxNDSG2MtKfVjMoGIGyNuJIFXMFgRNfRyIw69eKBNarvMrJ/j9+BRRw3x/SXgByxht/uXQ+aHvfh3qUcEJ10XqJFgc4= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB3983.eurprd04.prod.outlook.com (2603:10a6:803:4c::16) by VI1PR0402MB3405.eurprd04.prod.outlook.com (2603:10a6:803:3::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.29; Thu, 18 Feb 2021 02:57:43 +0000 Received: from VI1PR04MB3983.eurprd04.prod.outlook.com ([fe80::2564:cacc:2da5:52d0]) by VI1PR04MB3983.eurprd04.prod.outlook.com ([fe80::2564:cacc:2da5:52d0%5]) with mapi id 15.20.3868.027; Thu, 18 Feb 2021 02:57:43 +0000 Message-ID: <28cb279081ef09216de91bddaafe5be339a9601e.camel@nxp.com> Subject: Re: [PATCH v3 09/14] drm/bridge: imx: Add i.MX8qxp pixel link to DPI support From: Liu Ying To: Rob Herring 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 Date: Thu, 18 Feb 2021 10:56:08 +0800 In-Reply-To: <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> <20210209181510.GA4045547@robh.at.kernel.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.4-0ubuntu1 Content-Transfer-Encoding: 8bit X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR0601CA0018.apcprd06.prod.outlook.com (2603:1096:3::28) To VI1PR04MB3983.eurprd04.prod.outlook.com (2603:10a6:803:4c::16) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from blueberry.ap.freescale.net (119.31.174.66) by SG2PR0601CA0018.apcprd06.prod.outlook.com (2603:1096:3::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3868.27 via Frontend Transport; Thu, 18 Feb 2021 02:57:36 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 3a7eeb18-a887-427d-eb98-08d8d3b8f5b2 X-MS-TrafficTypeDiagnostic: VI1PR0402MB3405: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4941; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: f8ahYERRcq/ubdRf3CFXmVLVG1vsvhLD3wg8z8hnQ5QbVnP0g2xRVwNuzm5muDEydMtpxGeNU+FMNsRf/Bmc2vyA/vue5zO0696qOlIjOBTXsJx4e3V/HktcUo7xLzARDsPaJscAqU/aAjVbSJA99yUR2B8Jh4Mb9isUlXn2xtcqv9ubLvb22NdsVM+89UQEYY6bBq4dQ6QosCfq+3ezI0kCEDLS9R0AgyMO9eB4l/KVQd37+CoGDZVKGpIIFQBYLJrH6xzmtZG+DGFj36fmzjQ6a2odxx3JCYGPalsSOmSbk9fc+DKTZ9HMjptndBEQuuJfj/FY2S1W8uhjUCrkKPw9MC0kZ6gHFCpanw3IIuKezrXYaCFSRZZeNN/FlWtLuqMaGE6tyIHJnb00CHUMxGOgLMAgL6N2mKknleqqboVEOEcwhwdqmkndL6QE0DjB6wyOtu+2/qrgHp5fcd3XG2PiMu16458I8wIb+I4csoJtJUGeF4EKXYJDygbUMbzsTAqKAdna4ctumtfwvbqMcw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB3983.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(39850400004)(376002)(136003)(346002)(396003)(366004)(16526019)(52116002)(6486002)(26005)(186003)(4326008)(8936002)(2616005)(956004)(6916009)(66946007)(7416002)(8676002)(36756003)(2906002)(86362001)(66476007)(66556008)(316002)(6512007)(478600001)(5660300002)(6506007)(6666004);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?bEFscHdwaHVucmxmMVBhZDJSNkxqQ0NjMTFTeXZ6R1RnUG9KVEpHZFJ5QTR3?= =?utf-8?B?S3d1UWJxQndkTXVwSGRBbXB2UDlabVhWTUI4dVNZTHJaSVVGZ0RXQzNTM0kw?= =?utf-8?B?RHVuWjIzYk0rTmx2K3QvTkkxME56RHovcDZVVEFWNk9TeW53YURvLzRQTVh1?= =?utf-8?B?d280SndsekY5STNYdHlmWXZmZStxTGU5WjdvRUVTY1hkc1NhaGZyTFRQbnVO?= =?utf-8?B?Tm0rTWMvbDRDU2VxZUJXdER2OU1zV3lNNXk0SUFZQWdYcjJpVVlSRzJianhO?= =?utf-8?B?elNFWGF5cWFvOXAwRUdac3dYUXFNcjBYaWNiOFhrdEZWZmdXRC9tODJKYUV5?= =?utf-8?B?NlMvVFd2Um1udFdISHA2dHNxbHNtVm5vdUR4K280NDBKMXpQbG55VXkybmtm?= =?utf-8?B?amJnSGRCbXRwSHNrZXZrU3hnZmRWQ3k2c3Eyak0xdEkrUVB2eUE5enh4bXBY?= =?utf-8?B?RVVoeDRnSjlpY0RIZVBDWjhSL2IwbnNOKyswNzhse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NU04WDJhb2pyTW52cWh3K2cvR212?= =?utf-8?B?OWZLb1c5QlFPd3EzSzQzRjY4eDA2ZVlCd00yekRWUzFUQnZnWllxeE9ScVVN?= =?utf-8?B?eGQxaGU2c2RlcmNiWVk3QmlJcFMzV25vNFBPYjdRTmZhT1NCNjNRcU9IdS96?= =?utf-8?B?cVlCSDFlNlM5eWpjYmNFK3FIYTF1dTkyNEF5M0EwZTlSTXpyVm1GZ2FiT1Vw?= =?utf-8?B?UFczeUdHd3ROaDl5eUhUak1ZZXl3aWNOQU1LMjBQQ1RqdHpNeDNaMmwyY1dt?= =?utf-8?B?L21Ba1NPZytMWGhXeTBFNSsyRkVpVDBSUDI5cFdTQUozM0xVODUycngxU09w?= =?utf-8?Q?Aw98JPEoEvx8n9tr3T0RkAlAO5wZ94QXPvmxMPn?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3a7eeb18-a887-427d-eb98-08d8d3b8f5b2 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB3983.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Feb 2021 02:57:43.0477 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: iQ76ftJWXK+a4//nYh6CKhOdGgblP4D57peu1bsZ4lQCh7aIpMS8mLIC8IXS5mgLVPhR+FgxwmJUPebyn/8jmw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3405 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2021-02-09 at 12:15 -0600, Rob Herring wrote: > 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). Ok. I'll use a DT property to get the SCU resource ID associated with the PXL2DPI instance. Thanks. Liu Ying > > Rob