From patchwork Thu Aug 5 11:07:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xin Ji X-Patchwork-Id: 492404 Return-Path: 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=-8.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SPF_HELO_NONE, SPF_PASS 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 154AAC432BE for ; Thu, 5 Aug 2021 11:08:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id ECD5560F22 for ; Thu, 5 Aug 2021 11:08:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240690AbhHELIM (ORCPT ); Thu, 5 Aug 2021 07:08:12 -0400 Received: from mail-co1nam11on2131.outbound.protection.outlook.com ([40.107.220.131]:29088 "EHLO NAM11-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S240579AbhHELIM (ORCPT ); Thu, 5 Aug 2021 07:08:12 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cnjMUpwhsNsDxAb6rc3sxOk39BKdHpKuh50fqp8ngUq7QTpan4TuC8J9zkr+tQOnMnfr24y8iZK3q2Tw1r2oE2sFVIn7oiVyECbz7wSJUvWCFa25jNXR6Svo4YH0HjTWVHH0CVbqVzy89AvoErJgxM7upElv7+CTK78/q98kgzUvAhGXqL582ciC5ml7/0s3hgnn+MzXNSjzgvIcgdCuA5ObS6jWFPHRpT1ov4pWyKmMTHw9GLuEN0XY7pGibp7iKNGEwnDUmWs479YKVUi7gyQUJRaNTftFRvab9EsaJVQp5YFKKH36KMK2EV5qaSACmOlP/qILy4NsgzTV3ISWqg== 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=5jm1yErAlZG4d+Ypt/Woxl4UH+n+0VhfEjRSo/ZCJBc=; b=h0/i7JY+oPxOoNXnDwnm3voV3zorRPrYmAEn3eLosr97wCTQTC1TFynKB/xdJXzPnymO0/9Jbi+40fVE0/rTcgPLmw0KztYL2gV0IgCxbUKfBr9VvE2XBGeNsi88XykpSY05jF5jgTKUyM4ssA0ilySOxnm0rfIDfAdt0dS1ZutjIFOHDF6jVJR+8VbXG6o2rrLvZn0VvbdlFMzrPGGCP2vBeVuL5cMH0daqDR7iLfRe+GtH7EZbBuQiDJoQ1AHJHMXWeGmUyx7AqDCERT53j8m8loMKRIcGaIs9S82l6MOrTuFOYS6G5mV0R18+VYjFpMEvqWe66WDDjncC2tFDaA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=analogixsemi.com; dmarc=pass action=none header.from=analogixsemi.com; dkim=pass header.d=analogixsemi.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Analogixsemi.onmicrosoft.com; s=selector2-Analogixsemi-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5jm1yErAlZG4d+Ypt/Woxl4UH+n+0VhfEjRSo/ZCJBc=; b=2nlkmQ5MmG1tBRFr6c8pwwUOt1jdp2DqTKGcCBsj5P7zmvBHR4yHzdAFDiZ74lXQkB8QzDiuJYBiN3ANA6v+bzKTL9/k1c9GgEpXT/p1VzypuJYs11qScovysZAuuU/7YaTTzrIhvoABHoyDHYXD+Vd3OS3GdzF+OV5HziX2/gw= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=analogixsemi.com; Received: from BY5PR04MB6739.namprd04.prod.outlook.com (2603:10b6:a03:229::8) by BYAPR04MB4901.namprd04.prod.outlook.com (2603:10b6:a03:4f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.24; Thu, 5 Aug 2021 11:07:55 +0000 Received: from BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::5c0e:fbe5:2bd6:ec6]) by BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::5c0e:fbe5:2bd6:ec6%3]) with mapi id 15.20.4394.018; Thu, 5 Aug 2021 11:07:55 +0000 Date: Thu, 5 Aug 2021 19:07:44 +0800 From: Xin Ji To: Rob Herring , David Airlie , Nicolas Boichat , Hsin-Yi Wang Cc: Daniel Vetter , Sam Ravnborg , Laurent Pinchart , Maxime Ripard , Mark Brown , Ricardo =?iso-8859-1?q?Ca=F1uelo?= , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, Bernie Liang , Sheng Pan , Zhen Li , linux-kernel@vger.kernel.org Subject: [PATCH v11 0/4] Add MIPI rx DPI support Message-ID: Content-Disposition: inline X-ClientProxiedBy: HK2PR02CA0182.apcprd02.prod.outlook.com (2603:1096:201:21::18) To BY5PR04MB6739.namprd04.prod.outlook.com (2603:10b6:a03:229::8) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from anxtwsw-Precision-3640-Tower (60.251.58.79) by HK2PR02CA0182.apcprd02.prod.outlook.com (2603:1096:201:21::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.15 via Frontend Transport; Thu, 5 Aug 2021 11:07:54 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2e117450-16bc-4e28-aa9b-08d958014650 X-MS-TrafficTypeDiagnostic: BYAPR04MB4901: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: B/qbCsQG5pVeZocHrLO2+EGe1CnrV4yDhVxeb1xh2/oeyNZb9ed+VVOxB7LfQmcBp+KHoSoEla8QA9HFKHTFSjYex/LwN3uQbssScrcJeuan7l5ab7y2TBMS32jLRAKmSSjVmBPQ4JZoGhF6tju+KBpeQax+VpzN/F16+Ud7VM9n6iFNZ45pddfEeC1LomQCz/H38vlNHbt2AcllUGP8MnjaEs+Ho7Ul0c8goeZ2kqUaeePv6sI9Xukm0iY8/+GGidMsPeuuqB/TGu4gyZskHCFQOON5zczeWKb7Z0z8bMDk4LRT0a9Q2RBc6+QrxpiBHkLcA25btXOIDsuUKV9FjkCY8W76syc8TiJjHGhh8JgJ+WioYRYHKwhXPvvg8EeUiB6Uv3CPrZ//+XIdsHJzDt+zOTQxcUFllmecwjz9S7MPFwybfEnkFtYuN8XSrOfac/tkmOomCzqh+PeIiT5GYBk94aZoxjtbPoUHB6J+HRhsyOtrwjAEHJC6dNW/4HjnVsESAXbld6qcIsFFPYiigf4y3f2o+5hZAYW0q+iIx9Jwoov8iGBKcXVo7KS0Sv7rxuYbbjrrefT9vCP9L4V8dQJdpJbVIEW5qB68f9IpLQ4pm2mdOWI3CbH/HA1zR+KS8NTQ4Y7lVZFZjvnw6X8YoheThq3+ZlhGOG4zyc4TU2FeKUWXrd7DxuSXInraEFfb X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY5PR04MB6739.namprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(346002)(136003)(376002)(396003)(366004)(39850400004)(86362001)(4326008)(36756003)(2616005)(26005)(55236004)(6486002)(956004)(38100700002)(38350700002)(52116002)(83380400001)(6496006)(54906003)(8676002)(2906002)(8936002)(5660300002)(316002)(66556008)(7416002)(6666004)(478600001)(186003)(66476007)(110136005)(66946007); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: upBeGvXRgQpNrZthThJgaJeMtAWEGVClbBMD3EoTGinqzaC/h1sS911ZLNOQAZ3cMNMFREuvXnpVINwky0CuRcKC0csS6jYn8eW7Ah1dzwJypLPDHl/xkrJpAl1mYTvlrS6aIXK9crJVuTYtqBjEBq/6YEVXjqPXD9PCnQ9tHM6MVKhcmu8Z3XCKkKVs0TvjQ0KTmWgWgz3otVPQ31LS6ik4/JRyQklHTxxgo9u/9bQ+ORLaQy8GFZNEKre5rSy1RgNziZQGzryX9x/yInT4D5Suf5BJpPjTN/tKWY0g6Uqt7NJdRxWFy4V+XYVRRAgtKecnoqVDwjlxoV3D1a9Yv+2MdLBFbIBlXdWdCiKGT2u4F+oJBJ19WgPCkdI/UUzG23MUyDtrlAjTJCbbqk7pZVJEVmxc51m6vYKc2ORSI7lIrUhr+0+Fm3Mx+u/pRvyWi0TxZexW9SDHpk6PqXhxRVsUeJXgpODt/Pq6yHApQ3T5FOfCKn8OVEEaW3pyWIWL8n/GtnFpCsqeBC4Y1NqQyHQeDktgp1e9D0MUiSNHPA+hbqGXIL6z5RaQ1NX1zx7lIWHab1ToI+3I85xZZGCCqzhd0ZDghI8s9/sSGlCJvTkQ6WprZ94nnY/4TzyDWnSA2VqxGZ75AkSDKRKCCukTO/b36yRW3ukxOZ4ISn7ZJ7m0Vy3Teh3IEiQ/85FGIjFoa9iyWDJa0YD3woysHKNxC167wno3nt9X9SsgMBjpT7zTeK/j768gjK9T2IFOkqUo+kG5VLfVykJJikD/4YaFMefQJW+vREJlMtrCIUAOFqHyedFv+Jsqw9mc88FdZUvwtSqmb+tI5fWRUoSodnmQ/WZs5CnLWtXW3sC+ISeuIsEn02H4vmsPqHT7c4WGBr+/7UmKBlXoWNJt4+zp60oMsxXV2bK9WqKFoETjyyNaek3Cws4ZRQd9RY69SCEt5kseKwFaFh9KCBnTcsg3jUIGxLP2m9bCoWSJ9GC/UUIxmnnnBCiZgBbQEewoBIAflurjpOsQVzHdeWhlSxi/6HqWlJoTxHD5QeDBFUmJhhnQxjnF8LVBsyEr3HtiT3f+awcBYOxiiXNHM19rXbj9xwJCPfG3qG+TH+RidBRkOEbUmSYJebwl0vKrhCpN/oMQL1lorilxH4YRCzmgchRX93WMq0laqKyRBYSm63f0crjioMZRmbKInlXSJ/ImwEZSDNBLiNzOLNJ0mBEa+VA4p+SUmosMJ/iFyMgPeU65dop5t/nF+6yTaAE+0DHxJymDujysIiLbVdh58lWEhU/MDF4ag3d8RP9096ImqbtN2mGyvaQw29+KNMujWGZj1rIQMK7N X-OriginatorOrg: analogixsemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2e117450-16bc-4e28-aa9b-08d958014650 X-MS-Exchange-CrossTenant-AuthSource: BY5PR04MB6739.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Aug 2021 11:07:55.1252 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b099b0b4-f26c-4cf5-9a0f-d5be9acab205 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 950OkklFD9tb1mPchANI6eoYTosTCVvkzCkGKmTwreTp5MGYgFZQLHBt1+Sv/vJtaH12tFnqO7Wz3tfWTib1Wg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR04MB4901 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hi all, this patch series implement MIPI rx DPI feature. Please help to review. This is the v11 version, rebase all patches on the latest code. Any mistakes, please let me know, I'll fix it in the next series. Change history: v11: Fix Rob Herring comment - Move swing register description in property. - Remove additional property. v10: Fix Rob Herring and Laurent Pinchart comments - Add more description about lane swing configuration in commit message. v9: Fix Neil Amstrong comment - use macro define 'V4L2_FWNODE_BUS_TYPE_PARALLEL' instead of fixing value. v8: Fix Laurent Pinchart comment - Expand the commit message. v7: - Rebase DT on the latest branch 'drm-misc-next'. - Remove HDCP patch. v6: Fix kernel robot compile warning v5: Fix Rob Herring, Hsin-Yi, Robert Foss comments - Rebase code on the branch 'drm-misc-next', refer video-interfaces.yaml - Seprate HDCP function to a new patch - Fix driver not correctly get 'bus-type' 'data-lanes' - Add audio HDMI codec function support v4: Fix Rob Herring comment - Rebase code on the branch 'drm-misc-next' - Change 'analogix,hdcp-support' type to boolean v3: Fix Rob Herring, Dan Carpenter, Nicolas comment - Split the patch, fix not correct return data - Fix several coding format - Split DP tx swing register setting to two property - Add HDCP support vender flag - remove 'analogix,swing-setting' and 'analogix,mipi-dpi-in' property v2: Fix Rob Herring comment - Fix yamllint warnings/errors in analogix,anx7625.yaml - Fix kernel robot compile warning v1: initial MIPI rx DPI feature support Xin Ji (4): dt-bindings:drm/bridge:anx7625:add vendor define drm/bridge: anx7625: fix not correct return value drm/bridge: anx7625: add MIPI DPI input feature drm/bridge: anx7625: add HDMI audio function .../display/bridge/analogix,anx7625.yaml | 65 ++- drivers/gpu/drm/bridge/analogix/anx7625.c | 458 ++++++++++++++++-- drivers/gpu/drm/bridge/analogix/anx7625.h | 23 +- 3 files changed, 491 insertions(+), 55 deletions(-)