Message ID | 1616662832-27048-2-git-send-email-victor.liu@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=WXuV=IX=lists.freedesktop.org=dri-devel-bounces@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 40835C433C1 for <dri-devel@archiver.kernel.org>; Thu, 25 Mar 2021 09:14:58 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F2A1D619D5 for <dri-devel@archiver.kernel.org>; Thu, 25 Mar 2021 09:14:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F2A1D619D5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 62B9C6EB47; Thu, 25 Mar 2021 09:14:57 +0000 (UTC) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150083.outbound.protection.outlook.com [40.107.15.83]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3EF0D6EB47 for <dri-devel@lists.freedesktop.org>; Thu, 25 Mar 2021 09:14:56 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eNtV1xsR2prVCrx86CaX7+TRlU8iy/df1IhUkVlgqnOaloyr4bqrBUIHrEjbbNuLlxQ/wFBpJzDbPmBvXd2a5lT3HJVgPGAU1Pom/+l2Eb1iYfOjPdt4shk+mK6h2UcjY5/LvTL4WnD5umFTghKPZnDa1Y0EveQLchJI4XHM18WFaeDTmS6P6xQ8nzzTWuNCpifjSxjB61qtv0N/8gNawQSyHYzZTzqs9WPPo+DubldhumGVXdJiRnAfzhCV5DNvLtGXUD0FpydveysHZ/2i6IHfM1wqbBYVik43gCWvIhxYLhIN8weEsMLybjHLcnCOEu4PbHuFp9BN+ULLXma3ZQ== 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=zKUevlIS/pPr9dxRWiV7l3CwA0jZ5orOFptAqFk/LNU=; b=AuPr0U8VsyQ0tec+6Bv7iPI+RhqGk344eAo5Q+nYJg8/MhY/ilDmMxrxsDqiSqWkedqQw/fmG1dRomkYxSoFapZdNUOlW87beDN0B139Kz8IQm3Moz9vIyzjp4tTxw8nGvLjNqc8ku41ZNhueNelF1Y2AaMBcHCcfFHipcG3NI8Sn7h3wnh4qay0Lp4zwygSk1R7xaPao/O88iMjvAjsRyuvr5ieq39ohE3gyae6H5EpPpgvyOlOcdqG9uhZ/PbTXA5UzfUN0yn+fYZW8DMkhZbfE31K7zzxzkKwIFoO4xArhmugndWF2xWgLNxEVNh2xUU3mlR5vK1WGGQmhnmGAQ== 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=zKUevlIS/pPr9dxRWiV7l3CwA0jZ5orOFptAqFk/LNU=; b=qfbDMMrVycJwPIqMC6hkSAyrRUpW6VLaZDw3cgqO8yZ9Qv8gsb5idHHb6ELm//Cx2SS/Tvddhtu9ha7Kb1QAzzirHl5Us+TSA8xGh2gCBzgKGBLlGv48UKr2IpfoQ99a/Mc6ym93KpN9dOVFO4dmO7lX7zyFd0ThIaQ0rJtT/hA= 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 VI1PR0401MB2319.eurprd04.prod.outlook.com (2603:10a6:800:26::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.25; Thu, 25 Mar 2021 09:14:50 +0000 Received: from VI1PR04MB3983.eurprd04.prod.outlook.com ([fe80::3ce1:4759:5c33:514c]) by VI1PR04MB3983.eurprd04.prod.outlook.com ([fe80::3ce1:4759:5c33:514c%5]) with mapi id 15.20.3977.026; Thu, 25 Mar 2021 09:14:49 +0000 From: Liu Ying <victor.liu@nxp.com> To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v5 1/5] drm/bridge: nwl-dsi: Set PHY mode in nwl_dsi_enable() Date: Thu, 25 Mar 2021 17:00:28 +0800 Message-Id: <1616662832-27048-2-git-send-email-victor.liu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1616662832-27048-1-git-send-email-victor.liu@nxp.com> References: <1616662832-27048-1-git-send-email-victor.liu@nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR02CA0164.apcprd02.prod.outlook.com (2603:1096:201:1f::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 HK2PR02CA0164.apcprd02.prod.outlook.com (2603:1096:201:1f::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3977.25 via Frontend Transport; Thu, 25 Mar 2021 09:14:43 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: be1694d7-b3f4-4709-39fd-08d8ef6e7123 X-MS-TrafficTypeDiagnostic: VI1PR0401MB2319: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <VI1PR0401MB23191D4A3CD9749B9B931A5F98629@VI1PR0401MB2319.eurprd04.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:2201; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: PtazQV0CyT/lnkTszIg0RzGotApb8RAAwXOin50cqVOQTtqfemVvFfFlzOqQ42wH85tbUxE0uIvHl4LbrjHCKjev5OIWOufCfUEafzZTHjWDsSaK7K2y7xg+tR19x4gXScIbs4aBJHRP3L5Lt7GIZpATdJAaXhiPoEeGbYQGgNMgGr3bHRouQz4muM1PT7Kl6+bHb8TaxKcuy3dDvFg/a0KOCSTv4t7+48GOMD32rsauBAEahMonf5i5o/Wz2hN8z74R58nZ+p/LRvQybUILgqusHjU4cRZ0qF8nk49DFtNP157rFwqOABg05dxGSTNeyIzOM9/LA4OdeE6g6lNXjduADH5k2AO6tJlYNl9Dgxq56VUo1Iy+N3Z3hBZSuVlzaRBwc1IdC7k2tsL/67X5PtkpSoAWHJAkvtrVUSpF7613u6TU56aXVW19wSaS8uJvf2Nvv2Oo8gsyMCMUIG4Tm2JIDq+u6YgE8yLKbob5iiWf0XX1eGiKH+RacOUTcYYxk6SXgK8RMJ3Tsd8bZ9jQYsuYgIxGNcjlfqLHGclAM1ZcSUGMxGyVdgKCL+KJ6j3rrHpzDy2XBzHcJWtdGDE7VwRaFVuaHWq76eUMghzHTh1Hqhd6om/0gZfNZBchxd8FRVXwc8G1isDMx+yzFT4UyAZXPpcmhyKQE9Ak8H8Y7ic= 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)(346002)(376002)(366004)(396003)(39860400002)(136003)(6512007)(2906002)(7416002)(6666004)(5660300002)(6506007)(8936002)(6486002)(8676002)(66556008)(66476007)(4326008)(66946007)(2616005)(956004)(316002)(38100700001)(16526019)(186003)(52116002)(478600001)(86362001)(36756003)(26005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?q?1Ct4oRXoxXua6z8fmaUZy6CrsOH48M?= =?utf-8?q?A7PbXmDKiiPxP2A6RN7QDuQP/rtVqwO8yM/vG9ArtIBRYy8urgJZLf0+AtHEIlr2P?= =?utf-8?q?h0NulMtFGiNe3Fsj21awUli8QzrZGvc3F1mZZlH0wspEJ2WEe8q4HJp2q3ZOwEMmV?= =?utf-8?q?oR+Xtu5inN6AF50RXgL91GElNUOgzvDLWvS3icsciT0rzkNRGOMhpLhDr/AYbgGy9?= =?utf-8?q?muMey3Ji7iyVMuntL4cnIebtvZREyh2Blve/8MI+OiwKKkcruvm59QIk9OErt/OCv?= =?utf-8?q?+GGhMPxxY+nGoy8cnM8/9G6hTnWwdWffnMC89OHjLg1r2r97FOeWUm9T7euqtndHq?= =?utf-8?q?LDLkLqTgJLmhBjAHB7+ch6KtZEPvi40W1Uy8Xda7cmtF3PaE6Alt6eYKG0Gs5xgNJ?= =?utf-8?q?IPkJA2wAut0v9TmfASjbh91qmxGC5zzFhuo+8nOIRyxeSrwuh5oF2BJryVvU+OL8q?= =?utf-8?q?des33llq6VYM6fYhiylIQ8IwM0l36+UXhEl5GjI/Lqmijqv5vvRClCMXG8rwVxVuv?= =?utf-8?q?+gPnrrxaTy2MWkiAjh85/tFXmOr5sdZLFqkl6uGhU3h50+r2lIkx4NnNOI3ocHF2s?= =?utf-8?q?nMyvDCmG0MC2Pq/MVFdHasonuNrafyBjAZ2Z21ueEPB+ls7TacRHRbRBSKCxgnrgo?= =?utf-8?q?QKGoTY4/6VZ7mvVFVDXibvg76ERQvYs3wv+zibtL+Od+gprkBdiA7PIYggrRzUtaB?= =?utf-8?q?Vm8LZg2TJf2PUjH+8dBVHkKiwMu7zWSvvJgaZhNTKcmRC3wuQstl6gZLkGqDHWP32?= =?utf-8?q?oiFBxlnF2uwx33goshWYMxz7TV9k5kl1QEDcRdQluRD4x4qYdT8Zw7taNK2WNDslu?= =?utf-8?q?Ar+8Aop7B9uGr7Ikyodip8uXWsIb4Ac0OOpX92+cdd8+LueH4K96QwBJkPSXqplyx?= =?utf-8?q?fBtfrA4Pm1SkQCaiLV3DYF0tHhkytaGVWDPmFe2STyCCun3TvUfZDEKAX1HH1IIlF?= =?utf-8?q?H36QSye5/Ceew7WBifvBGHW8an5O1olV68sbp+VWIPDIT6QfZhHgGZNeGH7Jc/Rg5?= =?utf-8?q?abKa23cSNJYMsmE/wMURxkO4uNA7xmOXro3FiuPEeZgHpL8ddWZKnekcbADU/e417?= =?utf-8?q?XmGuAFI4FizVDlzaKux584USJ11xcKnWCsPqJ3rJ3662TvopdTsAQKWSgxv6zT9eq?= =?utf-8?q?TWtydU+KL3PEPgcR5RgWBjaEz0bhLOTnzz1+m/qT03dhobB/MrwuieCf/ryMw9ZIp?= =?utf-8?q?OAGX/8MTQ0PnuFMYjbBSlrU5E50wQJiuC7PrBdsAl+pPaLa3BBPjiQvhvcwmp4enx?= =?utf-8?q?/lSzGQwDK6GQrg?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: be1694d7-b3f4-4709-39fd-08d8ef6e7123 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB3983.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2021 09:14:49.8459 (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: //10cXfxsP1Ybl8uGwSZ9Pg+jVsgl/HXKnuYRuP4xouGhm/A5TE6TfyfURbrEM8Vj+gwYp6iTU/yTjBIZZwlvg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2319 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: martin.kepplinger@puri.sm, jernej.skrabec@siol.net, kernel@pengutronix.de, narmstrong@baylibre.com, airlied@linux.ie, s.hauer@pengutronix.de, jonas@kwiboo.se, robert.foss@linaro.org, kishon@ti.com, a.hajda@samsung.com, vkoul@kernel.org, robh+dt@kernel.org, Laurent.pinchart@ideasonboard.com, robert.chiras@nxp.com, shawnguo@kernel.org, agx@sigxcpu.org, linux-imx@nxp.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> |
Series |
phy: phy-fsl-imx8-mipi-dphy: Add i.MX8qxp LVDS PHY mode support
|
expand
|
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);