Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp317880pxj; Thu, 3 Jun 2021 07:28:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9RRVOnIBXzmKKHXQk71IkqE2Jv/FBLjQA6Rm/7SFzB4jj7YuGNmScRJNTCQqDVHASnoW3 X-Received: by 2002:a17:906:edb3:: with SMTP id sa19mr9445439ejb.75.1622730502018; Thu, 03 Jun 2021 07:28:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622730502; cv=none; d=google.com; s=arc-20160816; b=Uo38VPYJijV5nofPM9GMsz0H+2c3pEaorDDxMY8o8wSDNa8tEL+NlncGPEMierLvvt uWbG04+COxIH9/JcP0+N7/gsamOKUvzNpTpik6g2kO/jPdXd6OuH5xsugAKAW6oxgMPR pW0KN4pUjJ1kRUB9W9Nl1rVXINLDvWoE1/75X8iydyE30rMmZMB3Uu5UwjruaeOSKru0 KtL/3Hi8h3CiOeLWHCHvK/sVoqw7D74h7kT4qaujBscn3GUyFlJ9j3b3Op8aVEZLXKZI T45Iio5akZLg4ItRALvFmkf8rTd7z92hpYPcRYnUy452HWI3UNkPTLwgpBEoAiCKxcOw GuMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version :mail-followup-to:message-id:subject:cc:to:from:date; bh=aF5SeVm/ZOs4pzSnZRXZckmK0y8Ezs30iwIIsPYpkg8=; b=GrCm9kUxGR9wJY9FNyCPWutlbofNq9CRfZu/p06HO7AELI0O3in8NW0hIr3Da+/vjE tYUai6eT5tyFdMaJbGLXremkwK6lgQLc5aI0Mq/4PcAjpr8AKmPaqQ4/lLWtWHe8vFRw c9/gVLg1ueiY5waAeooUw65S42JX6OTmxUW2203p4637xMhOdGCc+9cctuLYsQkFYRdV aAqcY+uNtGjYjPIPNZeyI7X6ix7TQLBSeGOn3lplAmkjQWbONXfvgvL5H6x7YxWGTP7h vN4Hk2zCXGvPldYLDQFauLG9+ST03N4kvBQwThzrRCgsYSAXKPmKY7y8/1v7xLLEbuy7 bW4A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h12si2244267ejc.216.2021.06.03.07.27.58; Thu, 03 Jun 2021 07:28:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231691AbhFCOZj (ORCPT + 99 others); Thu, 3 Jun 2021 10:25:39 -0400 Received: from mx01.ayax.eu ([188.137.98.110]:40856 "EHLO mx01.ayax.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229744AbhFCOZj (ORCPT ); Thu, 3 Jun 2021 10:25:39 -0400 Received: from [192.168.192.146] (port=48224 helo=nx64de-df6d00) by mx01.ayax.eu with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1looG4-0005O6-8n; Thu, 03 Jun 2021 16:23:40 +0200 Date: Thu, 3 Jun 2021 16:23:38 +0200 From: Grzegorz Szymaszek To: Alexandre Torgue , Maxime Coquelin Cc: Grzegorz Szymaszek , Ahmad Fatoum , Marcin Sloniewski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH] ARM: dts: stm32: set stm32mp157c-odyssey DCMI pins Message-ID: Mail-Followup-To: Grzegorz Szymaszek , Alexandre Torgue , Maxime Coquelin , Ahmad Fatoum , Marcin Sloniewski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Seeed Odyssey-STM32MP157C board has a 20-pin DVP camera output. stm32mp15-pinctrl.dtsi contains one pin state definition for the DCMI interface, dcmi-0, AKA phandle dcmi_pins_a. This definition is incompatible with the pins used on the Odyssey board, where: - there are 8 data pins instead of 12, - DCMI_HSYNC is available at PA4 instead of PH8, - DCMI_D0 is at PC6 instead of PH9, - DCMI_D3 is at PE1 instead of PH12, - DCMI_D4 is at PE11 instead of PH14, - DCMI_D5 is at PD3 instead of PI4, - DCMI_D6 is at PE13 instead of PB8, - DCMI_D7 is at PB9 instead of PE6. Override the dcmi_pins_a definition (as well as dcmi_sleep_pins_a) in the Odyssey device tree. Signed-off-by: Grzegorz Szymaszek --- arch/arm/boot/dts/stm32mp157c-odyssey.dts | 32 +++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157c-odyssey.dts b/arch/arm/boot/dts/stm32mp157c-odyssey.dts index be1dd5e9e744..2d6cf70ca623 100644 --- a/arch/arm/boot/dts/stm32mp157c-odyssey.dts +++ b/arch/arm/boot/dts/stm32mp157c-odyssey.dts @@ -22,6 +22,38 @@ chosen { }; }; +&dcmi_pins_a { + pins { + pinmux = ,/* DCMI_HSYNC */ + ,/* DCMI_VSYNC */ + ,/* DCMI_PIXCLK */ + ,/* DCMI_D0 */ + ,/* DCMI_D1 */ + ,/* DCMI_D2 */ + ,/* DCMI_D3 */ + ,/* DCMI_D4 */ + ,/* DCMI_D5 */ + ,/* DCMI_D6 */ + ;/* DCMI_D7 */ + }; +}; + +&dcmi_sleep_pins_a { + pins { + pinmux = ,/* DCMI_HSYNC */ + ,/* DCMI_VSYNC */ + ,/* DCMI_PIXCLK */ + ,/* DCMI_D0 */ + ,/* DCMI_D1 */ + ,/* DCMI_D2 */ + ,/* DCMI_D3 */ + ,/* DCMI_D4 */ + ,/* DCMI_D5 */ + ,/* DCMI_D6 */ + ;/* DCMI_D7 */ + }; +}; + ðernet0 { status = "okay"; pinctrl-0 = <ðernet0_rgmii_pins_a>; -- 2.30.2