From patchwork Mon May 16 11:58:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Krummenacher X-Patchwork-Id: 12850687 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 D0998C433EF for ; Mon, 16 May 2022 12:03:14 +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=bD6D1+lpGt83JSj3PaR9OoOkRqCDQRC4FBtWUfau3cI=; b=QFiiMReRnC37P9 DuAsmYIPMizzigJuh0b2TORo/klV78xlfxjE0K4ifuDPsWeJDwSod5/LjBqN6qua4V9UW07vsl8zC i8JTT9KJzXrAYeq4sY3FjSxGD4Dieluf12cF5GJiqg0p1FUvipPqEpvlVKQZU5ugUVEVwg2RTMWaD Cp/lLt2GfC5MlSorCi+FTq5rOqDKrr1lVPWqnJFh2y3blfQlHjKeZcucnkyP9+OfY221PtDNe+LJp dPt5jKf132TZx8nT1Q5XrCrcHHPdXQlft1jxEykfA3Kwj0UK0GSpwMX7hpFWCEujrbMFo64xR7RAz JzR8QHYqRIQ1adqS5mwQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nqZQK-007Qtn-Ii; Mon, 16 May 2022 12:02:04 +0000 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nqZNw-007Pbz-MK for linux-arm-kernel@lists.infradead.org; Mon, 16 May 2022 11:59:38 +0000 Received: by mail-ej1-x62c.google.com with SMTP id gh6so28275933ejb.0 for ; Mon, 16 May 2022 04:59:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7EhdZnBGNhKoELha1acB7pKc8koKdRuYwtp3Avxy8oI=; b=i9EsMC2lv00nRAFVxDcRyY0hG5V121w+/Ew8fuvpkalFFHov7+KQLqJixu1dyt9ub5 CvhrkqszEq6MeCRmKh+W2EojH+PIczySWDRfQTh8Z98to/OUjTgM7c8urokFEdQnoMup YAoVjMa9HSdxLH4Ev77e/oRBGL4AdbnidwWUenTCaUo0CWqBNdF4yntuMDFu/qGnGRb8 epYgqvTIiSJ/B04hsK03uszCiIU0J8YFoBrwnoCltN9lqvcAYFRQ+ltQ3Epe7c03t12B vDmPGT7JLZYjr5ZXLrKYS/hOgUpKM5hn8Dcz+nKdCQejZJyk0uva+/u8qufqMCh7Qm3r 8OTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7EhdZnBGNhKoELha1acB7pKc8koKdRuYwtp3Avxy8oI=; b=JuHX3SIvDXskkPfZ8Q2U67eqltFUSFaivbIidXO04avpNlH61RPOfYMcxhxX8R7xAn KQg7oYapwhmGm2eryZY3AMbhDGeXOjDtp4+htvQg5kF5QlAri/QPWAB/hlaHU06c8J0i 8TxtXaucO15eZfeqDr+pYK9zywAFClN0kNbzkQE0tgTY3hCH9kED2hROehHjMFzQmeDf XlvSFFRgMMCr9zgI8Bf2Vo8xs7ftP10pt4Pio5FMdw48FxWXovxRbDimbSNUSRUPhLhA sQao4AgQhqUz2SrvMXq85TRCHrmMJ7lzBIK7HZ+aesXP7QZIhvVFolrJpkAaoosmL4Ye 0/sQ== X-Gm-Message-State: AOAM530jFj/0Sebx60BdCNrzH5Eobw2ACSeHdG8yM5/cnQecxNGGHegZ iG0pgBHS7POoTjLXg5tjOUQ= X-Google-Smtp-Source: ABdhPJwTw63vxQa3VD8DO5ZvJ99y9QxISsFfkeOmu1ogAKWEmcsFNlFpjXUGTibWIw+Ggb9a/Sti+Q== X-Received: by 2002:a17:907:6090:b0:6fa:14ca:fba2 with SMTP id ht16-20020a170907609000b006fa14cafba2mr15158725ejc.564.1652702376316; Mon, 16 May 2022 04:59:36 -0700 (PDT) Received: from linuxdev2.toradex.int (31-10-206-125.static.upc.ch. [31.10.206.125]) by smtp.gmail.com with ESMTPSA id s18-20020a170906779200b006f3ef214dacsm3711008ejm.18.2022.05.16.04.59.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 May 2022 04:59:35 -0700 (PDT) From: Max Krummenacher To: max.krummenacher@toradex.com Cc: Oleksandr Suvorov , Fabio Estevam , Krzysztof Kozlowski , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 12/17] ARM: dts: imx6q-apalis: Add adv7280 video input Date: Mon, 16 May 2022 13:58:40 +0200 Message-Id: <20220516115846.58328-13-max.oss.09@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220516115846.58328-1-max.oss.09@gmail.com> References: <20220516115846.58328-1-max.oss.09@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220516_045936_866580_B38DF5F1 X-CRM114-Status: GOOD ( 12.87 ) 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 From: Oleksandr Suvorov The Apalis iMX6 modules allow connecting a parallel video input. Add support for our ADV7280 video input module but have it disabled. This allows to enable it in an overlay per the current system configuration. Signed-off-by: Oleksandr Suvorov Signed-off-by: Max Krummenacher --- arch/arm/boot/dts/imx6qdl-apalis.dtsi | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-apalis.dtsi b/arch/arm/boot/dts/imx6qdl-apalis.dtsi index 0d1004eede62..f33dfaa907d7 100644 --- a/arch/arm/boot/dts/imx6qdl-apalis.dtsi +++ b/arch/arm/boot/dts/imx6qdl-apalis.dtsi @@ -418,6 +418,21 @@ "MXM3_215"; }; +&gpr { + ipu1_csi0_mux { + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + + port@1 { + reg = <1>; + ipu1_csi0_mux_from_parallel_sensor: endpoint { + remote-endpoint = <&adv7280_to_ipu1_csi0_mux>; + }; + }; + }; +}; + &fec { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_enet>; @@ -643,6 +658,21 @@ sda-gpios = <&gpio3 18 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; status = "disabled"; + adv_7280: adv7280@21 { + compatible = "adi,adv7280"; + reg = <0x21>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ipu1_csi0>; + status = "disabled"; + + port { + adv7280_to_ipu1_csi0_mux: endpoint { + bus-width = <8>; + remote-endpoint = <&ipu1_csi0_mux_from_parallel_sensor>; + }; + }; + }; + ov5640_csi_cam: ov5640_mipi@3c { compatible = "ovti,ov5640"; AVDD-supply = <®_ov5640_2v8_a_vdd>;