Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp171480pxu; Thu, 3 Dec 2020 23:45:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJx2FXC7qGA5+ajyl1ZI/ynIYVoh1qW/3tC6G1zFZ7blOu5p01clZ1Ri8Qe05z1lK0DB0YtO X-Received: by 2002:a17:906:c790:: with SMTP id cw16mr5992214ejb.344.1607067944656; Thu, 03 Dec 2020 23:45:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1607067944; cv=pass; d=google.com; s=arc-20160816; b=PLa1o17wb0OkwCSEEdeaFN77KrAj0f7Ng5xw5s4AV/zKQ4Pd6zmzdghO5rMpDv3AHR 4rzBIAvkOCGXuydJQjMez80X+spu4el5tciARQgjO8cJjv94cvRc/EZzvJKt5y5aYQcb PRfGf6/tnhLEtYpB7mDPMvMeg92glbDaYt05/76VZ9eDyPdFDrHOyycQO2ZUo8mQlAi2 sIyum9J8nFAJfN2Gt8jAB1rghZqJBCJyBx7U/bKU6Wc2INGOeIt2EOf6jdsZcVp7HYm9 UZ/dklrgxfUbsRiZAKKWxnIqU08KOQLGNKzJ2XVjB1zblXJmGTUJA9md59mpFALR5eBF ASNg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0GY+mPBR68leo2+CVA8zk7THF2LYgIVwEjfNNPnFlpo=; b=0dKk1GvQ7Uic6OU/HscoJM/h8LEp/kAqSrmbX7pbRlomuZfrS1c8vMHafMK3ReJQix Xn2LvxAgx7JjJbTYNBkoQ/to0nc1DNOZoVXJvMx3kaF1Pai3quOQsGZjKmSYlI5sR4ZT YXkJN5f3E4rfdgnPVcGeFTHGxpZLXQy56cCJ8L+jUdvuhelE2MGkbnTeGzu6slP9Qgc/ z7XxTgifvNnxqhMUuh9VdZJu/Nd7RyPG5QrB58Brk9Vlz2JLd+VvpxpmiX7NvHHgtQeg y1G2Y1PtmKYhtvkPULRxjkh5cq8d/elnubqMgd8TrmnrEKAWCkOpdvbt3joPyHSyfB9j 9tSg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=gND8LVV8; 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 co9si2282499edb.379.2020.12.03.23.45.20; Thu, 03 Dec 2020 23:45:44 -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=gND8LVV8; 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 S1728619AbgLDHn2 (ORCPT + 99 others); Fri, 4 Dec 2020 02:43:28 -0500 Received: from mail-eopbgr00088.outbound.protection.outlook.com ([40.107.0.88]:62532 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727007AbgLDHn1 (ORCPT ); Fri, 4 Dec 2020 02:43:27 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nBIL0Cubgkm8+dmxOMubxLQdy3CQhIJF9AMLxEiZHgJKRWxpzVfrghNk3fEGJkqRX0jW6iBiAn0tgfFcLDDhay4E1qipgWIWCB84XGIVL4C/1BAO4VMFySAkryfEz6P3TH/V+rXEcj6AeN0jlAzegvTEA2A8rJKtPKPToCG+uKPE+JFdUwI6rouzdQA03jMm38yMqDqRmShTd/umQFnqJLyQoZTXsgd9x+/0kcryR33shKco2SrkH9bhr8WbMuDQJ5UKntk/ZJYon+rD0CEyNOhPenjnRQyfITFCA32gbi8ygzwtlhO/TrMwNBNj7OMHjibJW44b/zCIP4VdcVIViw== 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=0GY+mPBR68leo2+CVA8zk7THF2LYgIVwEjfNNPnFlpo=; b=mSE0LAn2hWf2IEinQhFbJyBtkXkL/o6HakIxHpkBEE7tD9fLPJJrhfJsP3MXTit6Iem8adVrt1adJgFIrClhn8OIe0YJSrlo6ZD6ttMu9govIk9PrxaFdUnzZUtCkHfhDA6Hpk7gaLgTp4sRsp+Of0jkUguM98PaEDbgmNoXp2iK8iXNbqFHkzHH0C4WYKzXjTJTvgbaK73QRN7hYVcrcUKT7ORHueqk8muoohOCg8MFw5ZWfTETTHQZujh1+TIBckn3QSQmslLiCIHxjxow9SG0UglTwl16M1qS2TsnkG0IS/CQE10KCd/6dAhGgssXIY+45zbm2pPK+X6InA7xHg== 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=0GY+mPBR68leo2+CVA8zk7THF2LYgIVwEjfNNPnFlpo=; b=gND8LVV8q14yXv23uyG8TYoD7bQoSjNZRRA2XWl9yQMgQZUXI+mITqvMFTahwyG/ZyvfgFrwM6NSXt1V+pvEuvYF7RKNR4Eyq5lOU5uiEDzVDC5NU+4PNgx+x4idzlaWoUgsPvkf39SrBKYHRUiGdxb7EMUliz5Rm1eSknAEIoU= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB3983.eurprd04.prod.outlook.com (2603:10a6:803:4c::16) by VI1PR0402MB3421.eurprd04.prod.outlook.com (2603:10a6:803:5::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.21; Fri, 4 Dec 2020 07:42:07 +0000 Received: from VI1PR04MB3983.eurprd04.prod.outlook.com ([fe80::dcb7:6117:3def:2685]) by VI1PR04MB3983.eurprd04.prod.outlook.com ([fe80::dcb7:6117:3def:2685%7]) with mapi id 15.20.3611.025; Fri, 4 Dec 2020 07:42:07 +0000 From: Liu Ying To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org Cc: kishon@ti.com, vkoul@kernel.org, robh+dt@kernel.org, a.hajda@samsung.com, narmstrong@baylibre.com, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@siol.net, airlied@linux.ie, daniel@ffwll.ch, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, agx@sigxcpu.org, robert.chiras@nxp.com, martin.kepplinger@puri.sm Subject: [PATCH 1/4] drm/bridge: nwl-dsi: Set PHY mode in nwl_dsi_enable() Date: Fri, 4 Dec 2020 15:33:41 +0800 Message-Id: <1607067224-15616-2-git-send-email-victor.liu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1607067224-15616-1-git-send-email-victor.liu@nxp.com> References: <1607067224-15616-1-git-send-email-victor.liu@nxp.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR01CA0098.apcprd01.prod.exchangelabs.com (2603:1096:3:15::24) To VI1PR04MB3983.eurprd04.prod.outlook.com (2603:10a6:803:4c::16) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by SG2PR01CA0098.apcprd01.prod.exchangelabs.com (2603:1096:3:15::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3632.17 via Frontend Transport; Fri, 4 Dec 2020 07:42:01 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: db29b7c2-516d-419c-12f6-08d8982819d7 X-MS-TrafficTypeDiagnostic: VI1PR0402MB3421: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2201; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /0+Yjp6pbosezozu9svnkWtxsc38PFDPxKhweML4r2T3abEK9+sLTf+1AdqpuODnc2n5Nv2q21HbnuoNMZQJ/qLu1S6SnRSe/yDCC/55ZJ9CrJrG2kN3AJiP2F51JHxaTwTPRoq3HTMQXUSuQq9gyoY7I8qnhyJSva7oK1owGPrA6rKbaP/HHNHT7zaaoi7k+63iSXOY7qX3P5mWKXh4J7KuVg9LA5MZOOOwe/vsNl2Omut2A9qCSBOfBO+Ntss9snnQ+nOCZ5xx+4PduPO/L7pBWm1rJBMjgD0hHz6UwakPM9KvZ3Zw75XYcVo6Tu4lklisyIwya2Uld9mi+Hgh2g== 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)(366004)(136003)(376002)(39860400002)(346002)(396003)(4326008)(66556008)(6512007)(66476007)(66946007)(316002)(8676002)(36756003)(7416002)(2906002)(86362001)(6486002)(8936002)(26005)(186003)(52116002)(16526019)(2616005)(956004)(478600001)(6666004)(5660300002)(6506007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?WGFSSGlucnFQR0hCQjN4RVVhbHBnVXdEL3c0SityUGRqYXk0K0RGV0Q3Mmpy?= =?utf-8?B?ekN5VDdiZlR6MmdpeFMycGdkc2dEK241UTVBWE54aW55QmxhQS8rTFFETFVZ?= =?utf-8?B?b2t4N0c0WmFmbkZwd2M4d3ltZzBmejdBdUp6cGo5bkZheUphaEV0dVhKRGJ3?= =?utf-8?B?THNldDdqRjU2eFdIVXVnRDl2VFN2RXB0WkxUR2V6VENaSGRuNkRrYnZTOUF3?= =?utf-8?B?Q0lxS2phVnJzK09aQTVlODZ1bSs0WlFRN0dLajFZNFFxQkp5OG81djdiSnRN?= =?utf-8?B?NHM1NUZ6NTFtTzNiM0JXK0loZnI5WVU4VXk3UVc1eUFsV0xMTUZscWgzbkQ1?= =?utf-8?B?K0ZiaG1LbTBXZG1KKzhqUEZDcC84MUNkUmRjSkRxdWJUWHM0d3VtZS92dDZP?= =?utf-8?B?RTdnS2JKZnlyUVMybE9uUU5oNDdzQjhGZTMwbjAwSW1GTjBQTUo3eFNNUFFi?= =?utf-8?B?TTJTNUVGQ0k4TmpFWDdDSGtTaGRkekR0OFdhcEY1RDRjZWtFWG5uTWZqa1Y4?= =?utf-8?B?Y0FtWkhvWU5CRWZabUt6TG5XRXhBZzBSakd5a2tNWmNZU3NJeVkxRFh0Y1Va?= =?utf-8?B?djRRelBOUU9HZE5XYTJVd0J3TElqemVkL3pOdzBJdzlCVHB3SEpDZFY4dlZP?= =?utf-8?B?aytOcW13WFEzWVREa2hJM2trVklYRkFnZWNuUndueWkrU1QzSi81NW9ubjNT?= =?utf-8?B?Z1pLOENiTG1IK0pwSWtFc3NUS0ZJM2FmWWlrMHBsWjg2M3AzM3pNVnBYQkZX?= =?utf-8?B?ZVcrTUVQUXpQaWd6TnlMNzRQOE1XNEZRUUhVWVVleEs2eEswa2pxdHpjbnlk?= =?utf-8?B?eFRzVzVEZ09NcFRlWVlDT1hzRzYxSExCM2xTazVBelFNdTNpcHFUUXVzb1kx?= =?utf-8?B?KzVTeERsTXFDVnE0MG94ejBDemg3L1pMOEw4OVN0bUYydjhIWGhNanVwSDlO?= =?utf-8?B?cEFmSllIdVloMVRibmRxVUZWQ2pNZjZQa1ZJYXl2MDlKZmdYTzUwc3Nieldt?= =?utf-8?B?elVGRDhubE40VEV4UzJCckVzYnJPL01PVEtVYjBKQ1JleHl5cEhTcU9MKy9W?= =?utf-8?B?ZjliQW5UTjhCSGlmek96NVk3VUp5MkVIYnNjbUl5SS9oZzJJR3RsYkNmdElX?= =?utf-8?B?M1hFV3FmbklmSFEvTGxDaDZIZWwwVnNzamxmYTZJczhqSlRDMTZZQkdTL0k0?= =?utf-8?B?Tyt3Rkt2RkRWTGIvM0FMNnpTYWhxZVRub2ZiZnZ3WWMrNnFkdVNNL09qdlFB?= =?utf-8?B?cGVhUFYyNEswc2RrR2liSnpxOEpiY0VGZkdoZllEZFk2RWplaDdpT25yejhM?= =?utf-8?Q?ULsbalJswdfFlcwdwFj+8bNqKDkdiNdNjG?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: db29b7c2-516d-419c-12f6-08d8982819d7 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB3983.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2020 07:42:07.5692 (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: 9xf7cy49ghIJzeGKpo9WfZIqKjKirSnTbumzD9Xt0a43mYesV3mn+snEM8rGIPA8h3uVZw+QNvgKmdsgh7kv/w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3421 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Northwest Logic MIPI DSI host controller embedded in i.MX8qxp works with a Mixel MIPI DPHY + LVDS PHY combo to support either a MIPI DSI display or a LVDS display. So, this patch calls phy_set_mode() from nwl_dsi_enable() to set PHY mode to MIPI DPHY explicitly. Cc: Guido Günther Cc: Robert Chiras Cc: Martin Kepplinger Cc: Andrzej Hajda Cc: Neil Armstrong Cc: Laurent Pinchart Cc: Jonas Karlman Cc: Jernej Skrabec Cc: David Airlie Cc: Daniel Vetter Cc: NXP Linux Team Signed-off-by: Liu Ying --- drivers/gpu/drm/bridge/nwl-dsi.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/bridge/nwl-dsi.c b/drivers/gpu/drm/bridge/nwl-dsi.c index 66b6740..be6bfc5 100644 --- a/drivers/gpu/drm/bridge/nwl-dsi.c +++ b/drivers/gpu/drm/bridge/nwl-dsi.c @@ -678,6 +678,12 @@ static int nwl_dsi_enable(struct nwl_dsi *dsi) return ret; } + ret = phy_set_mode(dsi->phy, PHY_MODE_MIPI_DPHY); + if (ret < 0) { + DRM_DEV_ERROR(dev, "Failed to set DSI phy mode: %d\n", ret); + goto uninit_phy; + } + ret = phy_configure(dsi->phy, phy_cfg); if (ret < 0) { DRM_DEV_ERROR(dev, "Failed to configure DSI phy: %d\n", ret); -- 2.7.4