From patchwork Mon Nov 7 05:35:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 1254 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1850178wru; Sun, 6 Nov 2022 21:36:22 -0800 (PST) X-Google-Smtp-Source: AMsMyM7OLEXPmSFUy8r5iwJIUgqELrgxhaTmSKDTGfjIDMSvb+aKtyLFisXz6X9SpNXiof3giMWd X-Received: by 2002:a17:902:aa42:b0:17e:b779:dadb with SMTP id c2-20020a170902aa4200b0017eb779dadbmr49786452plr.11.1667799382254; Sun, 06 Nov 2022 21:36:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667799382; cv=none; d=google.com; s=arc-20160816; b=E1nq4/xuX7ye39++CfpdRvvq56owic3R4UpVlUOYYupbMLpkT9tDIWfoGmtai1HlBT UWDQc4sNOLBgJvGy+bPGzyzY2AYzwdzHYZpNKnk67r79mAE1cHDpQvHinyOdD26FJaJj HUA5DM+QeBeVpUrNYlTxrzkCNra9rOImGlyq9clBwsri0deZNTnDjBwo7sXFuyxTB3xU VGW07QCHlsFjjBV/XqGwD01W8JQf8X+NRq2lnSxOcg9vzyrE5491EpYg29YG/8z0l5OV 7gAgjZV1sBKTnCIZoTnl/8EQzbvVbVtyNmqVD1YDds2z22xERqPGamVHOi8vDFaqT0rP 1+oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:feedback-id:dkim-signature :dkim-signature; bh=1vDdZwoBU9jOrZMlmbLFu38K/K9c8EjRaLm7B4fO58A=; b=rGgkoKCD8RT0BnO1TzxgjVv3xRu8vW4auSo7dViV69pG7HBViz2Y05E7Ss/Cr30X1E Yk4TKH1q5Xq/zu0RNqtpCMgyL4A+ql0a2t3TXDu1RJvoB1yHuQxZe41auxfk4ar7GeGT xUqfABJqjJJUaaLLqLd4DyFbDXGci0MGHDVSSFeS9cT1UO1J1pqgK+otoOE3oRTWaLO1 rMLAfL3df2bENH8KleResVQip6nFHrvtZQBN5jE4/uyjLqd/qd5RkAaPiRPCQ6/UIbSL cxwQkV2aFOAfcfCT81d878rQPeasJnb2nKGhDyFsGTxUdGatBA9XYGHUlEHDOO9eOhMv qZlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm1 header.b=mbICbAYT; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="pWraLX/N"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sholland.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cm24-20020a17090afa1800b00213587b200esi8071245pjb.189.2022.11.06.21.36.09; Sun, 06 Nov 2022 21:36:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sholland.org header.s=fm1 header.b=mbICbAYT; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="pWraLX/N"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sholland.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230365AbiKGFf6 (ORCPT + 99 others); Mon, 7 Nov 2022 00:35:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229769AbiKGFf4 (ORCPT ); Mon, 7 Nov 2022 00:35:56 -0500 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E0F01E2; Sun, 6 Nov 2022 21:35:55 -0800 (PST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 10C895C0075; Mon, 7 Nov 2022 00:35:55 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 07 Nov 2022 00:35:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm1; t=1667799355; x=1667885755; bh=1vDdZwoBU9jOrZMlmbLFu38K/ K9c8EjRaLm7B4fO58A=; b=mbICbAYT0faftU4XpO+/xRLp6RoT9PyELnDveOSLw jinx+9/QsGsMkILzBxmAZAgsm06ZeqXMnZc4cdzEPR96f2I+JzJQ1LII0mLJ1pKQ MDDx0sF6fgeDr4NWW+FTt13PGgt+rEASCmc+jSBqq8gN2dk6dV0oXdb/iHG1UHjs 6pLqxMo3YclXaYHp1tnid+gwvgglBKGwsfRIAbbu4l9Fdw9jvRyjEJP5OqxvhLAr MdyZiA1FQ/t7Sv9MGrK8zBA8BbmnYpRPwGRQ8YGv0BZJLbh7d9kLfhdCmGit9B8P 7CmjUAXWm+jwKaUF3wWsnqJ7bKOdRLydxU8YU1z5KfCAw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1667799355; x=1667885755; bh=1vDdZwoBU9jOrZMlmbLFu38K/K9c8EjRaLm 7B4fO58A=; b=pWraLX/NSNcQoIQmKBwY1pWvenBQNoaSA/EuKgfeEtSx9/Coay9 FDSHsOxNLIQzwInIyCZQYb6j9CU1o4ZYzNmfPVTJWYqU4kyUl8vBjVEej4yelL7a EjtX3Otk8i4+UYYqEBQtcR8jC0uMsaSKiPmeP0enYXwWelpJnI7N/cI57wKI0kUk aTU7TOWXdjnHNpjFqdwjfEU8OrD7EvpTB/8boeQh0lnHK8RpHrtKlroeFvGNPCXb B4IdYxWxUDQzEwbStIb+tsYua3kLLRuEvKRwl5w2NaccuqPEdHjoOBG88PlK6nup klCQ09n4+/uYjxUC3k5IrL6Y5I+D4mB0/mA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrvdejgdekhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgvlhcu jfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtffrrg htthgvrhhnpeekveelhfejueelleetvdejvdeffeetgeelheeujeffhefgffefkeehhffh keekgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 7 Nov 2022 00:35:53 -0500 (EST) From: Samuel Holland To: Chen-Yu Tsai , Jernej Skrabec , Maxime Ripard Cc: Samuel Holland , Daniel Vetter , David Airlie , Jagan Teki , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev Subject: [PATCH v2 0/4] drm/sun4i: dsi: Support the A100/D1 controller variant Date: Sun, 6 Nov 2022 23:35:48 -0600 Message-Id: <20221107053552.2330-1-samuel@sholland.org> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748814404967562919?= X-GMAIL-MSGID: =?utf-8?q?1748814404967562919?= This series adds support for the digital part of the DSI controller found in the A100 and D1 SoCs (plus T7, which is not supported by mainline Linux). There are two changes to the hardware integration: 1) the module clock routes through the TCON TOP, and 2) the separate I/O domain is removed. The actual register interface appears to be the same as before. The register definitions in the D1 BSP exactly match the A64 BSP. The BSP describes this as the "40nm" DSI controller variant. There is also a "28nm" variant with a different register interface; that one is found in a different subset of SoCs (V5 and A50). A100/D1 also come with an updated DPHY, described by the BSP as a "combo" PHY, which is now also used for LVDS channel 0. (LVDS and DSI share the same pins on Port D.) Since that is a different subsystem, I am sending that as a separate series. Changes in v2: - Add the variant check to the probe error path Samuel Holland (4): dt-bindings: display: sun6i-dsi: Fix clock conditional dt-bindings: display: sun6i-dsi: Add the A100 variant drm/sun4i: dsi: Add a variant structure drm/sun4i: dsi: Add the A100 variant .../display/allwinner,sun6i-a31-mipi-dsi.yaml | 30 ++++++--- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 61 +++++++++++++------ drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h | 7 +++ 3 files changed, 71 insertions(+), 27 deletions(-)