From patchwork Mon Jul 31 11:00:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 13334352 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8BB80C001DC for ; Mon, 31 Jul 2023 11:01:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RIPyjdLbt1AyBNxBdkjTE7shUqTSGux6GtrhncWj+7g=; b=MBvq64WN5w+Me7 DLdBDa1MYuEVRRm6UbpqE0R25UmnpUMevN4vg4Yl2fbetPqmcTad11MyuVuzK0zXcVIeZzsApMbAW YUGPEwSF6gWpHhCees3vNQfb+Q9JahJWIRbSJKytM5965EZpgLm+3tMvqI4ombVH59WvroRwC6JWX Fd35shPmBN1zCOnSgyqG/qO8Zy8xF3/OTuGole3EZiA78oGi2AOezvW2avbcwfgyrmXTDTcrkO1ch HLf22aqV4Yulu1+QnbXt0xRoZ02mEGBFwiczlkREXVoQpr6SsSORtFw+7bcV5ERCntbPsb7DonpyM zn6o5eyF4HtvZ81qhabA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qQQeb-00FF33-2N; Mon, 31 Jul 2023 11:01:33 +0000 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qQQeA-00FEam-0s for linux-rockchip@lists.infradead.org; Mon, 31 Jul 2023 11:01:10 +0000 Received: by mail-pj1-x102f.google.com with SMTP id 98e67ed59e1d1-267f870e6ffso2492443a91.0 for ; Mon, 31 Jul 2023 04:01:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=edgeble-ai.20221208.gappssmtp.com; s=20221208; t=1690801264; x=1691406064; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+OGteNt5NDQh8X1+wYBc1iO3wWROEIikeZHDF62+z3E=; b=M91+x+uFD6KCXts/C4HyXuwml1tkv4f0eK6i9HsfOuCkgFzneYqzBxOUkYLv/W0sgX vIgLTaCYsbR+m01OAr9DQTIeU85hqCw/hg6ZZWtDa3GTYVd82Y/Ulnb8YFERF0f1Pfhl lOLL7Kx/CIdgMIo1CtldjOKFn3aE7KytMh8XNgSL+x8N+Z8d1riR7vmTJfR/ygIwSj3N 62MthbbkYL9QAQujZSkT4gVTULBWt/5nZyooKXq8ZJaaP+uMI+Fp+wdhQdNx2cCe5uE8 aCUqRHALjCXJwjMCtoLnHbGI4r9bZdsaFTSG4SgPDLF+Kn9y/sdgmryQzcP/pYCOuM3s MMxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690801264; x=1691406064; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+OGteNt5NDQh8X1+wYBc1iO3wWROEIikeZHDF62+z3E=; b=RbOHmm2mwr75k+7Ws/IZWBrmpyzkWCjYBQy8ZEtJI7ckAajBick+eBuLpAzvEFupUt 1iJnekOqqJZxN7ZkWOIS17YB6wwfcHDePaEKt5jzwHySGnEX7/nXYZc4AmmZBCUULBNL SJXrQFThZv7YjsA45dxp3fYPoZSght2d9AHikawAjRJKugGOlVWHBwJk7g9qDbatRcgw N3PLAAJxahFDPhxq7KPl3xL54x9H6o0avTphSrAaeFiQBmkUr90qydnLpIzC73bR41Zs MglCUYy2WFAmkKHnp+354fv4sofsuoahry0gmifCZHAs2KKam9dgGtT6cgUnNvMneusg fG4A== X-Gm-Message-State: ABy/qLZY/+NvYk+JKTta+IRxtlJ7JhdORHIho64G9XOGN5ue0PmyBtfc TyCSJE/mGAsyK9dIPC0cDtmboA== X-Google-Smtp-Source: APBJJlFs4UCRFy2aJkNr/zigzSG3poRWLEQANovbsuunR+0w0DxxDRSeTObukRAQ4atK1noRnsU2Xw== X-Received: by 2002:a17:90a:3e4e:b0:268:29cb:f93a with SMTP id t14-20020a17090a3e4e00b0026829cbf93amr9162517pjm.1.1690801264006; Mon, 31 Jul 2023 04:01:04 -0700 (PDT) Received: from localhost.localdomain ([49.205.243.15]) by smtp.gmail.com with ESMTPSA id t14-20020a1709028c8e00b001b1a2c14a4asm8281096plo.38.2023.07.31.04.01.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jul 2023 04:01:03 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Cc: Jagan Teki , devicetree@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley Subject: [PATCH 11/14] ARM: dts: rockchip: rv1126: Add MIPI DSI pipeline Date: Mon, 31 Jul 2023 16:30:09 +0530 Message-Id: <20230731110012.2913742-12-jagan@edgeble.ai> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230731110012.2913742-1-jagan@edgeble.ai> References: <20230731110012.2913742-1-jagan@edgeble.ai> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230731_040106_332737_180D5184 X-CRM114-Status: GOOD ( 10.95 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org MIPI DSI controller in RV1126 has integrated MIPI D-PHY V1.2 thatĀ supports up to 4 lanes with a 4Gbps transfer rate. Add MIPI DSI pipeline for Rockchip RV1126. Signed-off-by: Jagan Teki --- Cc: devicetree@vger.kernel.org Cc: Rob Herring Cc: Krzysztof Kozlowski Cc: Conor Dooley arch/arm/boot/dts/rockchip/rv1126.dtsi | 49 ++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/arch/arm/boot/dts/rockchip/rv1126.dtsi b/arch/arm/boot/dts/rockchip/rv1126.dtsi index 9ccd1bad6229..512cc18762b6 100644 --- a/arch/arm/boot/dts/rockchip/rv1126.dtsi +++ b/arch/arm/boot/dts/rockchip/rv1126.dtsi @@ -276,6 +276,20 @@ cru: clock-controller@ff490000 { #reset-cells = <1>; }; + dsi_dphy: mipi-dphy@ff4d0000 { + compatible = "rockchip,rv1126-dsi-dphy"; + reg = <0xff4d0000 0x500>; + assigned-clocks = <&pmucru CLK_MIPIDSIPHY_REF>; + assigned-clock-rates = <24000000>; + clock-names = "ref", "pclk"; + clocks = <&pmucru CLK_MIPIDSIPHY_REF>, <&cru PCLK_DSIPHY>; + #phy-cells = <0>; + power-domains = <&power RV1126_PD_VO>; + reset-names = "apb"; + resets = <&cru SRST_DSIPHY_P>; + status = "disabled"; + }; + dmac: dma-controller@ff4e0000 { compatible = "arm,pl330", "arm,primecell"; reg = <0xff4e0000 0x4000>; @@ -420,6 +434,7 @@ vop_out_rgb: endpoint@0 { vop_out_dsi: endpoint@1 { reg = <1>; + remote-endpoint = <&dsi_in_vop>; }; }; }; @@ -435,6 +450,40 @@ vop_mmu: iommu@ffb00f00 { status = "disabled"; }; + dsi: dsi@ffb30000 { + compatible = "rockchip,rv1126-mipi-dsi", "snps,dw-mipi-dsi"; + reg = <0xffb30000 0x500>; + interrupts = ; + clock-names = "pclk"; + clocks = <&cru PCLK_DSIHOST>; + phy-names = "dphy"; + phys = <&dsi_dphy>; + power-domains = <&power RV1126_PD_VO>; + reset-names = "apb"; + resets = <&cru SRST_DSIHOST_P>; + rockchip,grf = <&grf>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + dsi_in_vop: endpoint { + remote-endpoint = <&vop_out_dsi>; + }; + }; + + port@1 { + reg = <1>; + }; + }; + }; + gmac: ethernet@ffc40000 { compatible = "rockchip,rv1126-gmac", "snps,dwmac-4.20a"; reg = <0xffc40000 0x4000>;