From patchwork Tue Jan 9 07:25:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shengyang Chen X-Patchwork-Id: 18849 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp1503548dyq; Tue, 9 Jan 2024 00:02:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IFrIHlrNWgAlGKDs7QR1PtZK59zEAzeSg4gEM06ReMdebAMLW7ECEF9UBRGZ2JREc/OE+va X-Received: by 2002:aa7:d4d2:0:b0:556:ee31:c13e with SMTP id t18-20020aa7d4d2000000b00556ee31c13emr2669618edr.18.1704787343287; Tue, 09 Jan 2024 00:02:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704787343; cv=pass; d=google.com; s=arc-20160816; b=FOgvZNNZ7s/EPx62DkshDIjTPKBN0G+/M1a1HkvMOvjfD63W9ZEd8Od06Te1Dkahb1 QMr0ZzzBhr50M3o7YaoG6w6a1+KTG11ux8g0XC2YuK4Nt+cUVCToEmiHbdl5lRlZHIPZ bHpqMeH5/bPVsUEGeBeuCoUbINbkLAhun8gDPc6kRPtpFF60+KqM/culVbkKcJREMPF8 ySUWPHP18WFv2gRRa0erHCD31D5Fbcm35GEFZ03hWbYW72GwKigfis1VPA2GKUo0yqJ/ sqOosgRyUHa8P3E8TMHGvvthGJdL+/CS5sIRgQnu4JC3nxvzC/u6CgygzB32SaHcXzd+ hHvg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:subject:cc:to:from; bh=MTzShixjE7oUtM7mcd+b6ERhd0vS0ITc1Wt5L7srMuE=; fh=egwdS56070MuxlzfIHBYfgOvzDUWXHpIkzV3rCIAwmM=; b=vOY2qUNnULRrxpulAdOxV5jPeAmbUeKr7g7pkxO4iSXG4oZCXUG5o8stSw6NWMew8l IOKIIlyQmiBa2XRmNQxzKGU66WgAzFUmYIgSszLs9F8ezPBV4rpU1ac8zb80ThLe4e2H YNMojpI7+pqZvoxoORAc1BYat1XBKMzOGxiDq3J8+3qJOo12OJJoSbRKwee+S8SQBE1q IXM5M7SK2/9FwodARjjgfFCSVy3sdc50dy8p0XFZHxPF76yl2JOq0A5Sf1vdgoNTK+IO bfcn3kuXmewLQKK6I+MC4YwNiW+BX7cx0V9e3xqYbWzKFdmBEy1yXm5ypjkK12rFEgIj pwGQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=starfivetech.com dkim=pass dkdomain=starfivetech.com dmarc=pass fromdomain=starfivetech.com); spf=pass (google.com: domain of linux-kernel+bounces-20512-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20512-ouuuleilei=gmail.com@vger.kernel.org" Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id q23-20020a50cc97000000b00554031a5085si542977edi.684.2024.01.09.00.02.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 00:02:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20512-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=starfivetech.com dkim=pass dkdomain=starfivetech.com dmarc=pass fromdomain=starfivetech.com); spf=pass (google.com: domain of linux-kernel+bounces-20512-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20512-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 B79CB1F22128 for ; Tue, 9 Jan 2024 08:00:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 10B8D21374; Tue, 9 Jan 2024 08:00:31 +0000 (UTC) Received: from CHN02-BJS-obe.outbound.protection.partner.outlook.cn (mail-bjschn02on2085.outbound.protection.partner.outlook.cn [139.219.17.85]) (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 64F8613AE2; Tue, 9 Jan 2024 08:00:23 +0000 (UTC) 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=XySMMhkEb2SjcTg4jSHIQVRFn8biV/NBAKZYUmuq/tcQF81pDgCBuOtCSHho03caFU/FGl7ZFNRfzhYnwWHW1n2+FOYv3Z9jujnxTgQqf85sZ/H/yQNlfIvy9/TzaS3lGO4YsN9jmyCck2Ferc81EHqYoQ+8EbLZyLqmL0NR/mqTg1wmHNO0cXg/Nyn3MHYJT+SZ/axEiZ1wHHK9r5sfxAsFsaSQv24XUIYKsQ2vKfctUuYLlz9EhBSC5V3sRw9jOnxRzNqo3uGKJ+yBBH+C4dIdqaks/l9YbqaHVcd81SiGs2heSHWrfsCWy2ZfuR56cW8DKAA0428jqGMB0hOEsw== 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=MTzShixjE7oUtM7mcd+b6ERhd0vS0ITc1Wt5L7srMuE=; b=ZqtW95cPxUQDASdkOpYdlq2/nukIXXAmDazFtGiMBZoUD7gBtNcX5IljzGuE8fY6FhQ4W4RW1yUu229EiCFBqzU5ek8+e+SDIqBvHr38M08WqPf9SIwQqgUvPNW5Bc1uOpxD0uaO43apb+0ZxypLyHfK+nqq9AMbGyX8ixDBjNmJWX46Ov2jzzvz5ud4hUU3QVY0Rq1KGrnA47YWwBZAr2MLINtUwVYbdj208NmCD4ieKMAbf/P7gtbgKKs6eUQf1a2j1r7/bzzoE4vtCRdOZ1QW95pke5TvnkaqmZZKxxNlFOqf9vltUVjSoppRZ9Ncg2i5ZGKGUeELZM0DTQvC/A== 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 NT0PR01MB1231.CHNPR01.prod.partner.outlook.cn (2406:e500:c510:e::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.32; Tue, 9 Jan 2024 07:25:24 +0000 Received: from NT0PR01MB1070.CHNPR01.prod.partner.outlook.cn ([fe80::85fc:7fb9:8b00:dd88]) by NT0PR01MB1070.CHNPR01.prod.partner.outlook.cn ([fe80::85fc:7fb9:8b00:dd88%3]) with mapi id 15.20.7135.019; Tue, 9 Jan 2024 07:25:24 +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, rdunlap@infradead.org, u.kleine-koenig@pengutronix.de, 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 v2 0/2] Add StarFive JH7110 SoC DSI support Date: Tue, 9 Jan 2024 15:25:14 +0800 Message-Id: <20240109072516.24328-1-shengyang.chen@starfivetech.com> X-Mailer: git-send-email 2.17.1 X-ClientProxiedBy: NT0PR01CA0008.CHNPR01.prod.partner.outlook.cn (2406:e500:c510::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_|NT0PR01MB1231:EE_ X-MS-Office365-Filtering-Correlation-Id: db48c1bf-e533-438b-ca23-08dc10e42546 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Jz2tFfE3xGi17J0rgz+y+hYj130rrPknRkWqJfTn0RV7KD6h1qHFO4xRDWUj2ImEjG+JmrYNHf97I1ZJWlkLnvtQBMocyhWw3oznSxQlYsDdd+R/xuIPgcFeoI2Qvm2/2otI17EURREtg04x27fzopyzX3395bD0Sb9X0IeLsxcLycJzT0H1Aevo9fL0kruMo6r1NskmEhxvKYdBbILHMva//98AHsPuu754YcNIDym8SpKbmLvutIPgyBGY7c4lLY91HmjWohK79eQOUY5lBAbyl/3zyzDTknslL+oP99sD51V86VP7n1G9FgU/MAepuG/GZIDhQZvExupHzLc+A40qHZcJFEfINNiXW8UqW4Uf1rCNjv2B+CSysp381bmo4Bg3S1ZVd3jr/scBGGMt2hq7gammj1UU1gEzUHlUyvtAZxAAidZuSuPAmc6GVHvV5JkoCS4QwsESxyvGIS7uNRU+CQLa9ePEKcq+p8hsApnwzWe5Z+IZ4It/CH9kZ1JlfoHX2rcSW7h8ZNEcWNOn8oVsdfB7XX2+TY2Io7GlWSHsBxEEhEmNY+kiVg3eY1Gd 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)(396003)(136003)(366004)(39830400003)(346002)(230922051799003)(186009)(451199024)(1800799012)(64100799003)(86362001)(66946007)(40160700002)(36756003)(40180700001)(38100700002)(83380400001)(1076003)(38350700005)(508600001)(52116002)(966005)(6666004)(7416002)(8676002)(8936002)(2906002)(66556008)(4326008)(44832011)(5660300002)(66476007)(26005)(41300700001)(2616005)(41320700001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: pC2pKiZhwMH4+9Km0YqLBmE+jryGpPzid4rYkem3pTzHsb0dgPNSuPYL5/muSh+xL2XjK3mSvAm5M55x+rvNRnlfMjcrAC+tus9Hhed+yvvnGEdiYPlVVKYqHkpfl2LTqJp4nsCSZTT7tL7zRtz4evOP4H3Ss6zpiNVh11tqx2kpizBqd8Z0NgSotgMMu/mMmvY66DhhE1o1YgwJglo0+J73nzOCbaw7iOcm8LKXAhDePfqkiSJAm24ddYRmhAkQuUO9lH+mmM2WOtneSqRcLiUsQtHbSOBOcj/bAmQx3U2Toz1pEiTu6r0UJXMTT9f60+EYGK6Yk/GeKGzrYxP3Pa6ldfLbs9xXMlUzYa6KXcO7yjMREApr1/AaVVG1/3qvw/IKI/cVKEjEV9klmsY0/O7+Zi3GGqaXeD5PCuUGUy3GIZfS6B/GcK62cPOWK3WyMi5JPftn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/vD0m+OEvlVe/c7CQDwAAkovchF/I3luxpN0zvpZNNPdc0MtV6RsEWeP/JaC256mPsPiBcaLG1R7/xLcWKGm3JCODOjCegKxam0gUC2cHO6puqX08= X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: db48c1bf-e533-438b-ca23-08dc10e42546 X-MS-Exchange-CrossTenant-AuthSource: NT0PR01MB1070.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jan 2024 07:25:24.5306 (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: TJq775dZnJx2jggY7iEIAWjIjuG/tSj9/h/B/tBH7L4I3I9P9TLCJzN6HzhHYSUS4y+PYQsX4LvRsV8XAyqNaoqoZDANI9MITRZVbm6rMa4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: NT0PR01MB1231 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787599092918052704 X-GMAIL-MSGID: 1787599092918052704 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. 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 properties to support StarFive JH7110 SoC gpu: drm: bridge: cadence: Add a driver and platform ops for StarFive JH7110 SoC .../bindings/display/bridge/cdns,dsi.yaml | 44 +++- MAINTAINERS | 8 + 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 ++ 8 files changed, 316 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