Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp22506lqg; Thu, 29 Feb 2024 18:16:16 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUGD/s7mM3sUgo7OtzBsPPHZieGVbq0QWviag+V4L9CZJR78ji+mTXuezHuZoO+ISNyNfCzxm2Gju9pfk3WA2ZqtoGCBFogep8xplrOTA== X-Google-Smtp-Source: AGHT+IFstrFhV1JYTrSWhMTe0Esl+RpYVo1AyHDJnLEQ0i2DQ5Kp+OWJ77pt5kkv+leAOVb2JMl3 X-Received: by 2002:a05:6830:c7:b0:6e4:a6bd:d911 with SMTP id x7-20020a05683000c700b006e4a6bdd911mr471620oto.15.1709259376606; Thu, 29 Feb 2024 18:16:16 -0800 (PST) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k19-20020a63ff13000000b005c66b8a7329si2648948pgi.15.2024.02.29.18.16.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 18:16:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87818-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-87818-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87818-linux.lists.archive=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9904C2884C4 for ; Fri, 1 Mar 2024 02:08:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A1BEC3A1D8; Fri, 1 Mar 2024 02:08:51 +0000 (UTC) Received: from CHN02-SH0-obe.outbound.protection.partner.outlook.cn (mail-sh0chn02on2117.outbound.protection.partner.outlook.cn [139.219.146.117]) (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 610123224; Fri, 1 Mar 2024 02:08:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=139.219.146.117 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709258930; cv=fail; b=FM4b8DgZ4/+3PZ2ck154ITC3a+9WAKB8xfKPkM58rukVqx8FFfIwRX1C6vZpdoh8oKPbdfNXDtgOGharYi1DdUwiKb4zzXrfJFhYMwEGp9mRXkee8Zuc5kQpn6pMK/snUJljDsOlNc1MQMKBLfEYA2RVqjQOEsT/0jmdxsz2pRg= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709258930; c=relaxed/simple; bh=9uEL049ZfaPbWP0vQToNe1386aSUze0QgGVGlvzpIc4=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=g+t+MRFGJiwxAf034QEPFdVOCP4fvnmcjUZdzYJzZDR1JzneOj1xpzUbCjN8vqosdaX6YrtrP6sfHx4YXgoC1BHGNEVNVeBNdOnGio2ZRAMSHrWxF1ZqhSkjHX8tSHXtPR7BkCmqk6WBfu/UEDzEiu9QSeZ17dkPDMwOPAE1iwE= 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.146.117 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=bWZmQiVA6IDeMJPxHKDg2PIWI05np4VLBn2wMmtFoY1y/HH6RE4o5pclIbQNV0b2PQPZtQx3U0AA93RdWAifwvwEeZ/33jEmZlAbcnf9MYeOtmw3F97p5zPN6JXnkPcq7EGnPpIASiq9XbS7jok5dYGJd2bzV8pd8q2/v2ZR558RubbPanJZm16GUNu5kVZaYkw5zan0XpVX4c7UaS/Yk9VHeWB11pkJnY3vt8tjcfJEp51TTH7W8dgWf1x2wEldcvn8AABa/8badKzveneMg4x4ToiFfWEPsY6THCIWw6biSu6BvEjUoTUUEay7jaMrQY49cvRcitVtLFDL5bbzNQ== 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=uaNyDTvKdSI5ZXeAMRZ6b+VexMfA48M5hTi7Iepd86U=; b=Guckj1pzeDhjZHoEPRFHQRKvbTAzoHNZZLG8lXPEKZhEBqLS0yI7iA02Jv+/wLAkmbRprBvn5HmKz68i2vNu7dOw+sWTFOCXoy8l6fu32PUqZhywXT9p8DfGJ3esAH5mImQ/4tuLMqZF/e3xxG3eExGj7I4C/ekpYKOzrT/HSdDqH/LOF820u9WU9I99qSD9K/Rd+ly2A5sZA8r9hjCqI0IBGlk5ffBilDMSilCd4DcKboyT5xKMOtP4xiZMYTsVgtpFAwZk5fDFC3CGPhU2vRLjg1jUgT3GVZ3vDgmrPd4/FE9ehnsrOEO7jY9LfwsjahbUMmaczjea4CNCWNLWpw== 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 NT0PR01MB1102.CHNPR01.prod.partner.outlook.cn (2406:e500:c510:7::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.39; Fri, 1 Mar 2024 01:52:40 +0000 Received: from NT0PR01MB1070.CHNPR01.prod.partner.outlook.cn ([fe80::db9a:cc7:56ae:de5a]) by NT0PR01MB1070.CHNPR01.prod.partner.outlook.cn ([fe80::db9a:cc7:56ae:de5a%3]) with mapi id 15.20.7316.037; Fri, 1 Mar 2024 01:52:40 +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, aford173@gmail.com, agx@sigxcpu.org, rdunlap@infradead.org, u.kleine-koenig@pengutronix.de, sam@ravnborg.org, steven.price@arm.com, 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 v4 0/2] Add StarFive JH7110 SoC DSI support Date: Fri, 1 Mar 2024 09:52:20 +0800 Message-Id: <20240301015222.93114-1-shengyang.chen@starfivetech.com> X-Mailer: git-send-email 2.17.1 Content-Type: text/plain X-ClientProxiedBy: ZQ0PR01CA0026.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:2::13) 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_|NT0PR01MB1102:EE_ X-MS-Office365-Filtering-Correlation-Id: 9c0edc8f-06d2-4b5b-af2a-08dc3992472d X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uCEgX28s+FVR8uuHX0XyXswP9Fg8qvEHjlDCuWBBk/PFsls6agT6cMrShrWdwRrraRMeJU/XkaGutFZ1Xw4CnRobIxChJS190aHpE34zx2rTCuwb1gc0IznwjDRG3FQmy8nTmmeiUG+gZjt+5rffKc5Dc+seBP5nE2BxVicJF0Mh+4ck3fARIO8UDi420dbQGUN+LyfOmr7cLeCkyr0slY+BDZu2VyDJ1Ss10S37rQKThvdOPSKeN1dqTb2uZATFxAahlHCNbjbzf9HFB9OMNDK/74BswanpJoZJsrdmkMt74AB2LNoPO9zSnlW1JXbgACKHfTnqxRSnAbEoA5lKQEOUtc4wtCqe9sg6fTwURXniVW9oROPbF3IeskPrRrlB2nQiBZSfJ5d2iNeByZ/B4fjTzKOVkce+2/jRwhopN+1v+wUQLJwQV3dVHyPezz54Z7HW4lVew4zXT9XxFx03qb4bJ4SX1IAiehaGpB4X3ZJHHmB1EAqR0PRLohucYtaRBv+WjNCQ+Lds7ws9eNPgDtgvOzxOfuwRSzKvp/KBwwQwlmv1f4CV3J3p0ezhg2M/CecH6NwlhwaDHd9HsS+sLS0OwQeFqzlDDlj8qT0+pRpTiTy11PYxyGX8M5GS6k92 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)(41320700004)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-A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8xXVLaJM5TTPd+CBeuIVKqYz4yVgcFFsqji6MV3WyqAZdMgytKW?= =?us-ascii?Q?mS5TC56gwfTQ4K8bQr63fQqVlaWJbMjYxb1mpPy7ao+ZamGLiTju6WZcX7H6?= =?us-ascii?Q?b3t61qZjYFuZBwTYJFdpvJrV2NNkG4BpPEwLiSbdYjNWGjqRwgE01ZakhAQf?= =?us-ascii?Q?kHsdoUpNij27OqEO1ol8E+h1BQmx4cenvW8qye1HSNPQG80UYv+rHlMxrKwJ?= =?us-ascii?Q?e9uG417s6JZ/gwlc7UnXyw8fm9eY0Yq4g3i9nq/3bJtTMfOg/sSfJJ6Meljk?= =?us-ascii?Q?4d/PNSVQ3xbGoIyo9/Fs8/ppdApBI0aDu13RjA/AOl4FzhXWioMwBDI2QFvT?= =?us-ascii?Q?xGLqmjA3rODmkcG+by+OazJw9pAsrMSueHrfzDbiqUUulEs/xR2U8bjaPkmm?= =?us-ascii?Q?aXUW2MCnnQ+UWicJTbtwsU/4P7NU6s5bS0lII1viCGBfycWo1fh20oYEChM6?= =?us-ascii?Q?KiLc+kLyNjGuD4FHr1chgy3e0p51N5e3Jvawyq0zjs4aGPtBX4+hmyWecDpW?= =?us-ascii?Q?Yk7hIO//J4L22XF/yWhdOCqAbhF5ogIjbEvdeAwydGlY4vymLGxc6xArcGMu?= =?us-ascii?Q?UtfC5+IZOpS2EFGztOO0w5vImPs77TsYOxhnA5ECI+DT/ygsX2/qt46mvCzf?= =?us-ascii?Q?LnlfuBWEvkihi7Axlq/Jc8khUVneS7b3UgP8lmOB2hjHCwJtL+ey/Cq/bXBB?= =?us-ascii?Q?E2M+SxOg/Toc7WMuFU5l7LR63KaXqJmmDqkj/H0GH9aVg6JO9u9LRgtk1S2K?= =?us-ascii?Q?IASEnGQbx1WOucxs74/bYRg=3D?= X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9c0edc8f-06d2-4b5b-af2a-08dc3992472d X-MS-Exchange-CrossTenant-AuthSource: NT0PR01MB1070.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Mar 2024 01:52:40.3745 (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: 7ioorDlSOlRNlBS6vwqvnjpHNlr3/v1iqZr7LrnPoauftqt+6xJomiQt4zTQGkzPIULAyFNEWa5fvUPsRdynrWzSbt//oyuKGopkxhdgn4c= X-MS-Exchange-Transport-CrossTenantHeadersStamped: NT0PR01MB1102 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 v3: - Rebased on tag v6.8-rc6. patch 2: - Replace clk API with clk_bulk_ API. - Replace rst API with reset_control_bulk API. - Use roundup() in cdns_dsi_jh7110_mode_fixup(). - Add assert for txbytehs reset operation by reset_control_bulk API in suspend function. - Add clk_bulk_disable_unprepare() in cdns_dsi_jh7110_resume() for deassert failure situation. v3: https://patchwork.kernel.org/project/dri-devel/cover/20240206065709.108684-1-shengyang.chen@starfivetech.com/ 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 | 19 +++ .../gpu/drm/bridge/cadence/cdns-dsi-jh7110.c | 138 ++++++++++++++++++ .../gpu/drm/bridge/cadence/cdns-dsi-jh7110.h | 16 ++ 7 files changed, 263 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 -- 2.17.1