From patchwork Wed Jun 15 11:50:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Krummenacher X-Patchwork-Id: 12882237 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 382F7C433EF for ; Wed, 15 Jun 2022 11:56:53 +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=biIfRWBQM+0piWG6u/ZCXhm2HbMTz7Vo7QNRZVDgo3g=; b=MLn87IwrjHspLe KXtyHlZKAHSduouc3Md5phoyIA025ElAiaHrZB7+ALRHRXfYU/CSjr44alnPlwCodaR7Smta6VRTR g0S7jOi7hAij0nrZiDn1sCPfyuT0T6xi5ewFAzJ4yLAjrerQotwat3iCE25+2O1RweoiLeKkRS1Od bw98oqM1kcSFIQmR2zxHoRz742hs4tRFvaeHGAwrmOHePlvdNbeO91Gj/jKPHuQshpwcy1YcXHxWK esmsax9D17IqP7h0Tw/DuRaSWBzQf4z3gMl6n62SptpOZA/QwqbahRFgwFWpiaQ2t4b4BnSDKaPu5 UdY9dUuOFOUeVqnkmKDg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o1RcZ-00EJAk-8H; Wed, 15 Jun 2022 11:55:39 +0000 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o1RY4-00EGiD-45 for linux-arm-kernel@lists.infradead.org; Wed, 15 Jun 2022 11:51:01 +0000 Received: by mail-ej1-x62e.google.com with SMTP id v1so22644905ejg.13 for ; Wed, 15 Jun 2022 04:50:59 -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=9f66p0kMBxY73E/g74soR57z54u2uiQJKAItmpu/tNI=; b=GSbiBARVuzeZzIQ5z37nKh8xLbVn6DtsFP8tGnr0Bssj8MHIPnvcL1QLB4Ld9Ox/Xa v4bEOJ9KAwgqHxCXpLdQs8GgkJAnn43O+qhpB7gbfJa/tU3fDY5o2nzqo6eyxykknhki UClmEgrnZ1003yRiH78VsiAroWIQ1j0Jd/NbWJI++9a/q12FbJ4q76ZOaHubmxOD6lGU 0jf8GhdjbN3jAGWimhGcb1hEA2YYZSG0a8WBHLFXL3jMLQczRe0AndhvFXWjhEhDFnrV yB3MX+d+6UemvLQvTeVu1P7oQa/4XInFw+rKOBlDGcD5TsEJhjByHzApjosuxE1yyuOV pP5g== 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=9f66p0kMBxY73E/g74soR57z54u2uiQJKAItmpu/tNI=; b=bG4tX7zieuY/sDaGo5HLeP8kx19FD888104KB16XFdjOekzRTwsq3tjRqcc1NZOmQS oSG54zDsvEFBSQ2q1M3yvqc8rAL0e4osSovO7ZOk+Mk6KyURZX0DnOsi5rpDAKFckBnH zorqOoJVQR7s0Iu9K3ewG7v5QmSLaWa8lqfewOQwuzVkl7kkiNLSz3diQKcJxVPgHAH+ E94/pKBRD8KfBsSqvUIIhYvvm1omD1MMm6dmkXq5iRYYHaAZo00daPiXj/BrolJvDRY7 Cj2UTZj6JGmbBcR4Wj8iKb8Q8Px69qib8wGwHga7J1rc7111VROpQf+tnS8FUc0M9S0x 5GbA== X-Gm-Message-State: AOAM531qWs+SsMtrtFwHXW1UaciZA6UaDIB0+DW0o/RdmQjdKo6Y2+Ef 61MZFAvehXhvcYGNzhhcoCk= X-Google-Smtp-Source: ABdhPJw3exQGUeLKVBnRIM/7t4HtLaPBNv5i593bexm9gnEmX098Wg1uqI9aXC/jZlj737x5fNriOg== X-Received: by 2002:a17:906:7007:b0:6ff:8028:42e with SMTP id n7-20020a170906700700b006ff8028042emr8206934ejj.278.1655293859642; Wed, 15 Jun 2022 04:50:59 -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 t6-20020a17090616c600b00715a02874acsm4561158ejd.35.2022.06.15.04.50.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jun 2022 04:50:59 -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 v2 13/18] ARM: dts: imx6q-apalis: Add adv7280 video input Date: Wed, 15 Jun 2022 13:50:01 +0200 Message-Id: <20220615115006.45672-14-max.oss.09@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220615115006.45672-1-max.oss.09@gmail.com> References: <20220615115006.45672-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-20220615_045100_207796_CC014F49 X-CRM114-Status: GOOD ( 13.76 ) 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 --- Changes in v2: - Added "adv,force-bt656-4" property as suggested by Fabio. Note: in my PAL setup I didn't see any noticable change. arch/arm/boot/dts/imx6qdl-apalis.dtsi | 31 +++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-apalis.dtsi b/arch/arm/boot/dts/imx6qdl-apalis.dtsi index bbd838acb8d6..6d072aa87952 100644 --- a/arch/arm/boot/dts/imx6qdl-apalis.dtsi +++ b/arch/arm/boot/dts/imx6qdl-apalis.dtsi @@ -432,6 +432,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>; @@ -657,6 +672,22 @@ sda-gpios = <&gpio3 18 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; status = "disabled"; + adv_7280: adv7280@21 { + compatible = "adi,adv7280"; + adv,force-bt656-4; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ipu1_csi0>; + reg = <0x21>; + 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>;