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: 13334399 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 B94FAC001DC for ; Mon, 31 Jul 2023 11:01:58 +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=gu05dLEWbsNJhlXwSJ780hUkvQL7DUbG5KnjyWdWjZg=; b=v8yYzr9hAjjQKe /QyfZ4iUdQteo96zzEcCM6hravzKYwQu1G+UmSw67tKdqvb7QNatZ7Y8Q5JGZxsG2+IOZepeTnvSf 87TrqEJhtUy72zYIJSxACy4e0nM8L4+5AIfb1hQlfIMrDj8leLh9JE9knujgZaR/ikALSGjQfeGXk wt871CSUPSqclJPPoyc6XM0Q3tUY7vExwS/8jkM8TEjFjEjNZ2WzTedt6VYseP/ZMK5mkzx/PmVa7 bcGSauU/RK9L4rERzVAAxrXjrDuKspFnIaR2ZwhpexwqoxDN6UMRaFpXZq5pp3Fec5sME0wR1PlIL PaCZeUT2smSjUbTVkSHQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qQQea-00FF2A-28; Mon, 31 Jul 2023 11:01:32 +0000 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qQQe8-00FEal-2i for linux-arm-kernel@lists.infradead.org; Mon, 31 Jul 2023 11:01:08 +0000 Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-563f8e8a53dso2619714a12.3 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=TuEGlX4GUsUiypBbNh3u6sOtPFrrIMrKuVggQAZF4RXrsrL/CJGWhAQp3L+FFS4s+P IIEtaRTGoB78W8HI5e7+g72D21+NR5aYoNrVg+UldSUSwsBw5YJc0zoprvslE7Mxt/8H ooH+mro9Bkw3+9EnJsFJM5EB9ViK1p5xB7g0DlS/xkFmCnVOqmL0nWPGBghfvWgZkmNj FdZ662pvbikX4ITIriH1+T+XMh8YaRNnjyAgykPu8GQ2UIjUufEpQEUIL0nufHsc6q/1 bJcvhas3r8brNJmtUjJmGvHr0ddR6SX7bavoDGOHj1jB8zO6pXk2+eNrahYM0QMQO0Xh 9RZA== X-Gm-Message-State: ABy/qLb63gCJNqabuyCN7ZrGNKrIPZp3AfeV12JdnGQSJgfL+0cDiSwY 1313Ieq6daRQZv1/vMB9Gn5dMQ== 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_040104_889295_6D894F8F X-CRM114-Status: GOOD ( 12.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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>;