From patchwork Tue Feb 6 06:57:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shengyang Chen X-Patchwork-Id: 19981 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp1375354dyb; Mon, 5 Feb 2024 23:30:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IH8v0x3eqEFZKKbISdQZ4e4doOBqyvxuTmyagdTrKxiWl/Go5h+5wBHeA6wSnACBB4sezDs X-Received: by 2002:a17:906:aac2:b0:a37:4a04:fd12 with SMTP id kt2-20020a170906aac200b00a374a04fd12mr1335726ejb.9.1707204642406; Mon, 05 Feb 2024 23:30:42 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXfSGnAFSAX8yXaDdr5fz4MRUVlwnoNW59RpCqS9pQyrVnM2zu2VN1cQNrwPSuv7dKFxAxrlGGeyorWDHMvsJSsjsliRg== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id gl15-20020a170906e0cf00b00a3774495a64si780202ejb.182.2024.02.05.23.30.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 23:30:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54416-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-54416-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54416-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D5B291F23B30 for ; Tue, 6 Feb 2024 07:30:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C99851292CF; Tue, 6 Feb 2024 07:30:23 +0000 (UTC) Received: from CHN02-BJS-obe.outbound.protection.partner.outlook.cn (mail-bjschn02on2091.outbound.protection.partner.outlook.cn [139.219.17.91]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 03F571D68A; Tue, 6 Feb 2024 07:30:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=139.219.17.91 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707204621; cv=fail; b=inYnjP4hYPfjADCLLNnq+Ih7hzL5ZjCOL4/zlmTafbNchvpIbB/I3sIhNPPJd2GgzrDw9cHY/42WDpK4bjfcvzmW2cxZC1mXwGB5vFS0t+1Qos+nqsf/6UwdBgqqaTuSonYxtYZjiaqKSWnpjB0W619PZe/fOZVIvfkNQSPo59I= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707204621; c=relaxed/simple; bh=4In/F4Z3XHMORRh4YYgIoGKrAoWh57E+Qh8wS21b7WU=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=E1tZpAuvCmXuuNSBOCWQyCVhPr1mSdOmzKyFnN9Rpmc3Jm05+Djd6aXz8YgvwhJUtFziZ0gvG2xfVGs9gcXXVGcumFJqycLSL3WGwNs2dsQQOKoYXDnywWwdg3hjNFq9WMCWOdnjs7V6DFplYdaRWO5WN9AqE8Px0Hu4jxNZsDc= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com; spf=pass smtp.mailfrom=starfivetech.com; arc=fail smtp.client-ip=139.219.17.91 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=starfivetech.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j980TdmEM7JcsAB+aDcEmoaymXYiKtzZZkT9OXzm1EfkdycxJb2Zg5k/J8cZIVNlHQx20ZR6GHiEHr0Z+XqNiZpJOem8TUo3Wae0fXw73gtWXOuwmZPW+F6r7v6mBGjQ6SZT5AV4sYKgR6d+QkINoGV6MEPeQtapMWCoXV3YC1Wifd9Y1N0aIhkairho8dB81M/kMO8pIJWa0i4C0X7mO+iloUZNxIS+f7QnIlCTLW1uX+0TFnprnJ6NiWAKoLUHT5sFQ3w5AhcjqHIYohmYCZ+HmyIA2JDruGygXAtQ55qh3LCh/JSmD3vN/ZwFCp+7IzB+AhRTEpWqg6uJMcwNMw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=pi/0Q8/kpiYChiyc0vAH0QkOcBjl8DJjq9rbHKlytRU=; b=NMQ3zkGHEORAEzGDckIjRQE7ontWnNFxVA09bWHtNcPg4kMwjVNEwrqFLcCOg+rv/MVDSyjC3b57akULUXaGM6xxudwa74UF0GYAIPg2DqfucNRVOBupX8wtf9ZEgnTHV6DoUGWxIlq3VN5+B7AqHrDetifJjYcq4XxRXBWXf/lyf8EXPZ3cf+No4fgEp46drJ9yLLsmVVMoUbFsf1FRAoyU4TSSzAHLiL9v2vkYI/n5A/tiCObxmh9gXN4iQIbY6VtAoK+EaxH7dI7em6mVPix6qhVcZ+eKXfoV9o2ZIzpEtIoSu3TdAgBaEPaeQ640mrWjnyBStG5NVjf7ECjw8w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=starfivetech.com; dmarc=pass action=none header.from=starfivetech.com; dkim=pass header.d=starfivetech.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=starfivetech.com; Received: from NT0PR01MB1070.CHNPR01.prod.partner.outlook.cn (2406:e500:c510:3::6) by NT0PR01MB0974.CHNPR01.prod.partner.outlook.cn (2406:e500:c510:7::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.19; Tue, 6 Feb 2024 06:57:26 +0000 Received: from NT0PR01MB1070.CHNPR01.prod.partner.outlook.cn ([fe80::57c1:eb9d:c4e0:71af]) by NT0PR01MB1070.CHNPR01.prod.partner.outlook.cn ([fe80::57c1:eb9d:c4e0:71af%4]) with mapi id 15.20.7249.017; Tue, 6 Feb 2024 06:57:26 +0000 From: Shengyang Chen To: devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: andrzej.hajda@intel.com, neil.armstrong@linaro.org, rfoss@kernel.org, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, p.zabel@pengutronix.de, tomi.valkeinen@ideasonboard.com, r-ravikumar@ti.com, aford173@gmail.com, agx@sigxcpu.org, rdunlap@infradead.org, u.kleine-koenig@pengutronix.de, sam@ravnborg.org, bbrezillon@kernel.org, changhuang.liang@starfivetech.com, keith.zhao@starfivetech.com, shengyang.chen@starfivetech.com, jack.zhu@starfivetech.com, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/2] Add StarFive JH7110 SoC DSI support Date: Tue, 6 Feb 2024 14:57:07 +0800 Message-Id: <20240206065709.108684-1-shengyang.chen@starfivetech.com> X-Mailer: git-send-email 2.17.1 X-ClientProxiedBy: SHXPR01CA0014.CHNPR01.prod.partner.outlook.cn (2406:e500:c311:1b::23) To NT0PR01MB1070.CHNPR01.prod.partner.outlook.cn (2406:e500:c510:3::6) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: NT0PR01MB1070:EE_|NT0PR01MB0974:EE_ X-MS-Office365-Filtering-Correlation-Id: b1ba55f8-f6ac-420e-2b86-08dc26e0e0ca X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MUILdAxMK4gAuyBbdyiHt5Yowjji3Brv9ivGsSohf5uU9u9ZHPlQZrdNNvsy+q36uLWD376jWhl05rbAkboDnY2BLGiz3GWK8cZpHlROwD0NUNz6OG/aLL+tES3oooDxJP6n0R/8PLNUrntbtGKupv1ceG/BQx4AFUMpvd9R6XJJnEfTjg9Q2jIEuoz52kKd+q1JVvEgK63Npaemqjy1VQb2PDZrhP1AtnBG6UoQHDN2WBI8s8PrslpxO/1xPhUl0OH9i/NTEt0lLojoK6MnM0CC3br1ytl4/9FRU5Dfub97QPSQJyix81JxpdKDElE5X03dDfEvqtCBRlt3ewrD5JHK9mZlUukmlmoI0cgXL2MBVAZ4yp+jpz6fOJejf9PGeDqUdf5A92XQlxS0OQRRT7EfsHWwaWa86saapxkjywWFPpsRkcMIBc4CgPv2Fc7YZUCQfCJWEGgLmCi8bBpgEuoawMAl7rJiKStlxg5nVag+Ukhg4OEMZqXLSPQYyzXUenykOhCTDXlRLzDmE+vZHtwLH+JSriRJOEmc1X7B6dMWXe9xemrlSkXOzhezYXps X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:NT0PR01MB1070.CHNPR01.prod.partner.outlook.cn;PTR:;CAT:NONE;SFS:(13230031)(346002)(136003)(396003)(366004)(39830400003)(230922051799003)(186009)(64100799003)(451199024)(1800799012)(40160700002)(41300700001)(83380400001)(66946007)(6666004)(8676002)(7416002)(2906002)(8936002)(5660300002)(4326008)(44832011)(40180700001)(86362001)(38350700005)(66556008)(38100700002)(66476007)(36756003)(41320700001)(508600001)(966005)(52116002)(2616005)(1076003)(26005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /CHkyqGqg1pwCzDuQsDabxCH/LVY3SAhLrkjOazhqD3ZVer/0EYrv/K3N0Dw/iTLZ0G5/J/vyFyBFHVnXFBypsix63NRVi2T91btS4A6T9WzjX86HGb98L2amGMK3I31EAJtYYAmbIcI9Nvz7POWiWcfBp9Z1Qx4gddn23swZIn3k6DDvLHvT05tVBXCUNEsdwiPU6xTv/QBSwA+TXg3mfxa8ra6m80slbI1lK/Gi5qIJTOrS6yO1AhZra27N8vGkjY3k4xvaZ7bTpieXtkIYPR1XQ/pcFkwFMb870WLG8SiGlpgwa5h0ztefjiTthlzrUiHEkhuhuEZjH6MFH0kwvjOKyGW66w1U/aT9a1fB1wGTduefTpDQ1LVssqawMKWxyGlvTRzRFFyF/KridcoodIESZDFTb8wPMd8fuDbWG4QYNpad8EKUqM6jPz2QufKsV+q3/IctJa/xqEKtTjVHU3YiFHlH75ESVvg+ejnUCu/w2ED3qnP8MQRd7VUZSLYwykMLtOFaXbSdXxQt7wNLS7WN9pPjAmapXe4buiPFP9n+h6llsAO3sDkEPmnjhCTY3aUSCZOr7Mb6fBWACsDT2h6cuDi0RjCzwr7+lCBH+m/N8gEnnXVTg5qWjMTUHoAdmV6CRnwW1PPXwi46suoBIoXQsueJt+pILgs7dGUKwxz9SQhzFNMF+C24euJ+NUX6EQ/AlQDUaXDb8uWSRLRj9zC1xedfCkeijwyYrYFvbriqZdA0plwj+ADhqXIqr/dKAkNkm1yNx6Gx+Dk4dZTeA+ezwfl7kFq01EmKoa6b5oYP0U7kudelKtZ02BQwkuYNbbmzUp3TYoVdxPKJTvBdzlCCSdWRA5BU1KToW1JsizSTegh2dAXXxTI0+I1JZlwWzpFJZYSpmMbD0TFEacIk4vZh3K+ZX5o8Te0vURacvkfE5TPxLOgHP20VgddgJQ5+aVLe3HSU3yaK2bYHxEfI4Kwj7FmAm0uqoVKuNDjrYiAricBZ9Br7HewovDQjpNsDt+bxko+8gquWIURfER2PjENPy0OVcrb9HHfcEIq+yPL4jnS9asOanUJocHFpZu3UnxWjeslSQFPnr2xcrTCl/SdENKX+WXlrfL02ydz2x9GIfNXf/13JMlPe8tzWSLqBRKxieXhfVyEAqXC65D7/p7TOYcOfLSUtg+EkYdoMhCAvNlyDtycD/9Eqay3/ExlFyq25ay8bxZeDUElI5DgnwGfSHJI+WhpR4C3uzVlfobRvywm8LfsgJFwxsNBAf6fWyEGKklkQrRkU6kuk8D6NU6hSeMTUc3fZ2MuZBSPhjkQRARvPZgqIcqEDpNGH08rpv+2t0RIN77CCJqyJZPoNXZVnDylKUdU0Ct7BkO8KLmPxDGIlTfW+5BRYvK1zEVRnQwhijgtsdKQz6rWo4e6M++1ORgLBhFV+USwuAwwESsf0Q+26pkcTK2V6GPUcc2os64OqxcGx7aFaTtBvH06yoZNZ6HAF5BfLBmqpa+EpBaliqlmXZwsWkHtwXd51+WoO0bFFBFjnzLY6Wl8qjM+qHfxmpZeriM9fIcixeqaiH0iEfz62CBA6nnMG66Z/ckd8ZEmRylaifcqUiEwrde4QF5cCNrTodQUVO+FllSJO1k= X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: b1ba55f8-f6ac-420e-2b86-08dc26e0e0ca X-MS-Exchange-CrossTenant-AuthSource: NT0PR01MB1070.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Feb 2024 06:57:26.6869 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 06fe3fa3-1221-43d3-861b-5a4ee687a85c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: MmmiblDbE8iGqMvWNL2+YqjZzvpxXSjRl4hbDwOkQLB1FKwz5xSwJrmenwM1UtvV/6zQKQDz54SYjsRKmCqjO8jfcv59Q7RAkMA4LV2oSkQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: NT0PR01MB0974 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790133815118279955 X-GMAIL-MSGID: 1790133815118279955 This series is the series that attempts to support the CDNS DSI driver used to converts DPI to DSI. CDNS DSI is embedded in StarFive JH7110 SoC. The series has been tested on the VisionFive 2 board. change since v2: - Rebased on tag v6.8-rc3. patch 1: - Modify commit message and patch subject - Change 'starfve,jh7110-dsi' to 'starfive,jh7110-dsi' - Add constraints for reset-names and clock names - Add resets, reset-names attribute - Correct reset and clock names patch 2: - Modify commit message and patch subject - Drop useless MAINTAINERS modification - Change callback name from 'update' to 'mode_fixup' - Optimize the mode_fixup function. - Change devm_reset_control_get() to devm_reset_control_get_exclusive() - Correct reset and clock names v2: https://patchwork.kernel.org/project/dri-devel/cover/20240109072516.24328-1-shengyang.chen@starfivetech.com/ changes since v1: - Rebased on tag v6.7. patch 1: - Changed the 'starfive,cdns-dsi' to 'starfve,jh7110-dsi'. - Changed the compatible enum alphabetical order. - Restrict other variants. - Drop 'dsi_' prefix. patch 2: - Optimize the calculation process. - Drop useless definition. v1: https://patchwork.kernel.org/project/dri-devel/cover/20231127113436.57361-1-shengyang.chen@starfivetech.com/ Keith Zhao (2): dt-bindings: display: bridge: cdns: Add display bridge support for dsi on StarFive JH7110 SoC drm/bridge: cdns-dsi: Add support for StarFive JH7110 SoC .../bindings/display/bridge/cdns,dsi.yaml | 56 ++++- drivers/gpu/drm/bridge/cadence/Kconfig | 7 + drivers/gpu/drm/bridge/cadence/Makefile | 1 + .../gpu/drm/bridge/cadence/cdns-dsi-core.c | 29 ++- .../gpu/drm/bridge/cadence/cdns-dsi-core.h | 21 ++ .../gpu/drm/bridge/cadence/cdns-dsi-jh7110.c | 193 ++++++++++++++++++ .../gpu/drm/bridge/cadence/cdns-dsi-jh7110.h | 16 ++ 7 files changed, 320 insertions(+), 3 deletions(-) create mode 100644 drivers/gpu/drm/bridge/cadence/cdns-dsi-jh7110.c create mode 100644 drivers/gpu/drm/bridge/cadence/cdns-dsi-jh7110.h