From mboxrd@z Thu Jan 1 00:00:00 1970 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 7877EC77B60 for ; Sun, 23 Apr 2023 21:28:05 +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: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:In-Reply-To:References: List-Owner; bh=wMzsEdJBMzqrE7g2fbp0V3NKbiIYBU/glPOnCg6WKfw=; b=WLd+mFAc4liY8w GdCJD80LKrT84ILbxN5Tx3aW3FdJDgZVobTw6tYJPhqE/2UN276Lg/0VF481mIUZLT8NUO0xr5FPV 8WuZ5eBBufBw2Un8gaxsSY3Ba/4SrcrcLiEOpsklxCFjiIkMOg2RgTTC5a7cXmDIoGTMwROdl82jD LbojVSM0rBEGVH/hy7KpdlK1LGzDQKcEX9r8UfG/1imCyXziPUHnEWyx2hNhID5gOIR/04XauZ9N8 SNhY4ElT5jShOWRxYlhNSVcVqKhriAthcppOoC6NVKgJYHws3uIfvJZgTHg9LrlXD9JiSCHebziQh DjwrLXbT5AF8HfY03HTA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pqhEl-00Elkq-0P; Sun, 23 Apr 2023 21:27:11 +0000 Received: from mail-io1-xd2e.google.com ([2607:f8b0:4864:20::d2e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pqhEi-00ElkE-0j for linux-arm-kernel@lists.infradead.org; Sun, 23 Apr 2023 21:27:09 +0000 Received: by mail-io1-xd2e.google.com with SMTP id ca18e2360f4ac-76089de42e6so339719339f.0 for ; Sun, 23 Apr 2023 14:27:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682285226; x=1684877226; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=SOjlnvDsvb6bgAKebVUE0qApMvQz1jb06beyFrnv+hI=; b=JdKY7LVOvz6pfW6YMi1FWh663LWft33E69+aZxmpCZS0DF+Xa67kHnd7hfrX0uLKDV 9doXrAmkjqdGXxo/lP9WxQhF/c6ynqECrbQg1thddHgKGN21BLOp6yBk/Q0T9ecs5fiw obEBzOyDc6v7Y2BoJWBcQY8plOgV/o7fvtEWyfFgKhc0+2DTtdBQbV+SmvWUct4J7SdP XgAo0mPGX8UA4Zdi8PAD0EYiBNUOWqrRkttEXaNFKb5/S5GGdqPgzkLreuktxVffoOjd d+z9YeEXeQ9Fx7e1ebpJmJoXdl2gj5Kpt+u3nLSFtbiwP7HhR9vQsloVbJ0NQgWOQVXh rtCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682285226; x=1684877226; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=SOjlnvDsvb6bgAKebVUE0qApMvQz1jb06beyFrnv+hI=; b=Hlz8eQc1rHW4FdJlXH7SKJc9KEVvIiL98HRjVktkn+0fSZ0cXftm4G6UUuOJZtB4w3 ZwxAsMjcjgZ/6F0VitYrCA1BWTQ+IfoiVI4gGn/UmUVoQwnGKvlbyXmPnzLEn+iOeMnX nqxoZuiCO6KhaBCf7l1JX1G07Ohd6GZHRB0qLRIxialXvAsozC4CNSrGHQNHpTBvD2Dv VOE9OFPD8OeP4n6zgVF+JoqkhaJvx30v8ykVW5jABq3fkSCp8hCAba159H8Ogpw8yxVN mCo199xfnnMUHxhDkwEfVzMi1jyZY+x/LKJR3X8kOgY8U0EovijpiRKNddITnmG0VgV/ /eSQ== X-Gm-Message-State: AAQBX9d0R3Ydi9zBwVG5UHbPXPb0FWbhQFgEpz98uYeq25w7GNGmQAGp 06BCfFFur5KBR4SNuhQol87HgitmaNdfgA== X-Google-Smtp-Source: AKy350Zxk1soynFZ/2qIEkzJVAsJqEoziH6TbN5V+g3lXWbh9c9y9NTnfo7xiVs1PUgj8cKo2wH9vA== X-Received: by 2002:a5e:9202:0:b0:760:b45d:7d54 with SMTP id y2-20020a5e9202000000b00760b45d7d54mr4569336iop.13.1682285226325; Sun, 23 Apr 2023 14:27:06 -0700 (PDT) Received: from aford-B741.lan ([2601:447:d001:897f:83d3:c200:cd2e:6159]) by smtp.gmail.com with ESMTPSA id d1-20020a028581000000b004050767f779sm2897403jai.164.2023.04.23.14.27.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Apr 2023 14:27:05 -0700 (PDT) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: laurent.pinchart@ideasonboard.com, Adam Ford , Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Catalin Marinas , Will Deacon , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] arm64: dts: imx8mn: Enable CSI and ISI Nodes Date: Sun, 23 Apr 2023 16:26:55 -0500 Message-Id: <20230423212656.1381002-1-aford173@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230423_142708_288262_53378D77 X-CRM114-Status: GOOD ( 11.07 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The CSI in the imx8mn is the same as what is used in the imx8mm, but it's routed to the ISI on the Nano. Add both the ISI and CSI nodes, and pointing them to each other. Since the CSI capture is dependent on an attached camera, mark both ISI and CSI as disabled by default. Signed-off-by: Adam Ford diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi index 8be8f090e8b8..102550b41f22 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi @@ -1104,6 +1104,24 @@ dsim_from_lcdif: endpoint { }; }; + isi: isi@32e20000 { + compatible = "fsl,imx8mn-isi"; + reg = <0x32e20000 0x100>; + interrupts = ; + clocks = <&clk IMX8MN_CLK_DISP_AXI_ROOT>, + <&clk IMX8MN_CLK_DISP_APB_ROOT>; + clock-names = "axi", "apb"; + fsl,blk-ctrl = <&disp_blk_ctrl>; + power-domains = <&disp_blk_ctrl IMX8MN_DISPBLK_PD_ISI>; + status = "disabled"; + + port { + isi_in: endpoint { + remote-endpoint = <&mipi_csi_out>; + }; + }; + }; + disp_blk_ctrl: blk-ctrl@32e28000 { compatible = "fsl,imx8mn-disp-blk-ctrl", "syscon"; reg = <0x32e28000 0x100>; @@ -1147,6 +1165,42 @@ disp_blk_ctrl: blk-ctrl@32e28000 { #power-domain-cells = <1>; }; + mipi_csi: mipi-csi@32e30000 { + compatible = "fsl,imx8mm-mipi-csi2"; + reg = <0x32e30000 0x1000>; + interrupts = ; + assigned-clocks = <&clk IMX8MN_CLK_CAMERA_PIXEL>, + <&clk IMX8MN_CLK_CSI1_PHY_REF>; + assigned-clock-parents = <&clk IMX8MN_SYS_PLL2_1000M>, + <&clk IMX8MN_SYS_PLL2_1000M>; + assigned-clock-rates = <333000000>; + clock-frequency = <333000000>; + clocks = <&clk IMX8MN_CLK_DISP_APB_ROOT>, + <&clk IMX8MN_CLK_CAMERA_PIXEL>, + <&clk IMX8MN_CLK_CSI1_PHY_REF>, + <&clk IMX8MN_CLK_DISP_AXI_ROOT>; + clock-names = "pclk", "wrap", "phy", "axi"; + power-domains = <&disp_blk_ctrl IMX8MN_DISPBLK_PD_MIPI_CSI>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + }; + + port@1 { + reg = <1>; + + mipi_csi_out: endpoint { + remote-endpoint = <&isi_in>; + }; + }; + }; + }; + usbotg1: usb@32e40000 { compatible = "fsl,imx8mn-usb", "fsl,imx7d-usb", "fsl,imx27-usb"; reg = <0x32e40000 0x200>; -- 2.39.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E319EC6FD18 for ; Sun, 23 Apr 2023 21:27:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229968AbjDWV1K (ORCPT ); Sun, 23 Apr 2023 17:27:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbjDWV1K (ORCPT ); Sun, 23 Apr 2023 17:27:10 -0400 Received: from mail-io1-xd31.google.com (mail-io1-xd31.google.com [IPv6:2607:f8b0:4864:20::d31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 377D31BD; Sun, 23 Apr 2023 14:27:07 -0700 (PDT) Received: by mail-io1-xd31.google.com with SMTP id ca18e2360f4ac-763c3429abaso50882739f.1; Sun, 23 Apr 2023 14:27:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682285226; x=1684877226; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=SOjlnvDsvb6bgAKebVUE0qApMvQz1jb06beyFrnv+hI=; b=JdKY7LVOvz6pfW6YMi1FWh663LWft33E69+aZxmpCZS0DF+Xa67kHnd7hfrX0uLKDV 9doXrAmkjqdGXxo/lP9WxQhF/c6ynqECrbQg1thddHgKGN21BLOp6yBk/Q0T9ecs5fiw obEBzOyDc6v7Y2BoJWBcQY8plOgV/o7fvtEWyfFgKhc0+2DTtdBQbV+SmvWUct4J7SdP XgAo0mPGX8UA4Zdi8PAD0EYiBNUOWqrRkttEXaNFKb5/S5GGdqPgzkLreuktxVffoOjd d+z9YeEXeQ9Fx7e1ebpJmJoXdl2gj5Kpt+u3nLSFtbiwP7HhR9vQsloVbJ0NQgWOQVXh rtCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682285226; x=1684877226; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=SOjlnvDsvb6bgAKebVUE0qApMvQz1jb06beyFrnv+hI=; b=l+eAstTasw3E5nmcTcWDb5cLOXqvRmWbzgHf8qbVm/HggARRACB/cT3mpJHZS/reoL VAagxqggiqG/4+oRQMM40VSvRxWzYj1tSM6h+S+o751ZdTIbM1uek24l7UJGAmXFPJ3H /NbjR0KcC2kPlK9SDgqugc2cLh/wfzI7N3H0E3i8i8KYQBdZn5nwKh0EWjHjDW1Dfw95 QmfNdMdN3JGAYi2Ldw8hFO82fhzeAT9ka4uRhy7rfXFh58wdpjQ+RO0sh2LwyxFwuJ8C oIjaJUmpWeHmbvOR2EqGJFIQnleMPch4aRuGUYwO+roX+8WYRiB2cSMQ50+XzuvK1FrB CXcg== X-Gm-Message-State: AAQBX9eTiHuiLopRjhQy3ACl6kAe9RGz+JqrbwZQohtnxVg7Dd8WZg2j H1EvoFhphr7MCBh88M96Beo= X-Google-Smtp-Source: AKy350Zxk1soynFZ/2qIEkzJVAsJqEoziH6TbN5V+g3lXWbh9c9y9NTnfo7xiVs1PUgj8cKo2wH9vA== X-Received: by 2002:a5e:9202:0:b0:760:b45d:7d54 with SMTP id y2-20020a5e9202000000b00760b45d7d54mr4569336iop.13.1682285226325; Sun, 23 Apr 2023 14:27:06 -0700 (PDT) Received: from aford-B741.lan ([2601:447:d001:897f:83d3:c200:cd2e:6159]) by smtp.gmail.com with ESMTPSA id d1-20020a028581000000b004050767f779sm2897403jai.164.2023.04.23.14.27.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Apr 2023 14:27:05 -0700 (PDT) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: laurent.pinchart@ideasonboard.com, Adam Ford , Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Catalin Marinas , Will Deacon , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] arm64: dts: imx8mn: Enable CSI and ISI Nodes Date: Sun, 23 Apr 2023 16:26:55 -0500 Message-Id: <20230423212656.1381002-1-aford173@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The CSI in the imx8mn is the same as what is used in the imx8mm, but it's routed to the ISI on the Nano. Add both the ISI and CSI nodes, and pointing them to each other. Since the CSI capture is dependent on an attached camera, mark both ISI and CSI as disabled by default. Signed-off-by: Adam Ford diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi index 8be8f090e8b8..102550b41f22 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi @@ -1104,6 +1104,24 @@ dsim_from_lcdif: endpoint { }; }; + isi: isi@32e20000 { + compatible = "fsl,imx8mn-isi"; + reg = <0x32e20000 0x100>; + interrupts = ; + clocks = <&clk IMX8MN_CLK_DISP_AXI_ROOT>, + <&clk IMX8MN_CLK_DISP_APB_ROOT>; + clock-names = "axi", "apb"; + fsl,blk-ctrl = <&disp_blk_ctrl>; + power-domains = <&disp_blk_ctrl IMX8MN_DISPBLK_PD_ISI>; + status = "disabled"; + + port { + isi_in: endpoint { + remote-endpoint = <&mipi_csi_out>; + }; + }; + }; + disp_blk_ctrl: blk-ctrl@32e28000 { compatible = "fsl,imx8mn-disp-blk-ctrl", "syscon"; reg = <0x32e28000 0x100>; @@ -1147,6 +1165,42 @@ disp_blk_ctrl: blk-ctrl@32e28000 { #power-domain-cells = <1>; }; + mipi_csi: mipi-csi@32e30000 { + compatible = "fsl,imx8mm-mipi-csi2"; + reg = <0x32e30000 0x1000>; + interrupts = ; + assigned-clocks = <&clk IMX8MN_CLK_CAMERA_PIXEL>, + <&clk IMX8MN_CLK_CSI1_PHY_REF>; + assigned-clock-parents = <&clk IMX8MN_SYS_PLL2_1000M>, + <&clk IMX8MN_SYS_PLL2_1000M>; + assigned-clock-rates = <333000000>; + clock-frequency = <333000000>; + clocks = <&clk IMX8MN_CLK_DISP_APB_ROOT>, + <&clk IMX8MN_CLK_CAMERA_PIXEL>, + <&clk IMX8MN_CLK_CSI1_PHY_REF>, + <&clk IMX8MN_CLK_DISP_AXI_ROOT>; + clock-names = "pclk", "wrap", "phy", "axi"; + power-domains = <&disp_blk_ctrl IMX8MN_DISPBLK_PD_MIPI_CSI>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + }; + + port@1 { + reg = <1>; + + mipi_csi_out: endpoint { + remote-endpoint = <&isi_in>; + }; + }; + }; + }; + usbotg1: usb@32e40000 { compatible = "fsl,imx8mn-usb", "fsl,imx7d-usb", "fsl,imx27-usb"; reg = <0x32e40000 0x200>; -- 2.39.2