From patchwork Fri May 19 10:43:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 1783712 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=azDYWGJi; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=r+6n7toD; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QN3Ps2Q0Rz20PV for ; Fri, 19 May 2023 20:44:49 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 007C58627E; Fri, 19 May 2023 12:44:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493072; bh=UQB8//5IK+se4iprJxDtnK6bG83LZBp26SM1NyWyLb8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=azDYWGJiFT532JTT5Qt6jKwR3sZh+pqrw/H92tLbPAMMatnKAxnltVyB2LX1ZAuiU lIAVtsE33ULESpQe45Pb/lQ380nrVgK/vii4E4+v6xCrYC+PVO+3cUDjH7OKjyJW82 cjuKa8dZxcaZsH6Uj58h4pc3RF93e+QAiskW8kXFxTrLoEu8/UkrxwSpDObdmkS8qf KMMgGznoZhqLXG0U/qlwfEgwAT1LV+/tvmygVWCqs3tKpmycnBcGF8pkhSE4deMw25 uqC6tkTzWqMEvc1iqxP5+nOovcme1H0n1C46yKaRqZCXtttncSSHwzOFdBtXK+NCzN 7M9a8Adnsa5+g== Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 2EB40856B2; Fri, 19 May 2023 12:44:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493067; bh=UQB8//5IK+se4iprJxDtnK6bG83LZBp26SM1NyWyLb8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r+6n7toDjMdu93ouohlSW/2uORX4+bV8VNfUXoPmtPo6k7ah/RBBhnL1lRDnDnWWu rI2Ey0unNi/eve09UzV2BpiDKetV9xBk+n8JKrlS6YLTaQxl1Kilu62AWJ9hEqW8Sr FAW0CwaOG27xXQFmDGFFbuBgDccp4GiykouxobHw8nXIZcvd7DP/0KvKpT8lnHcjKX F6/ydYnS+21nW+Iu6H/2z40wxhcvXezywseD1c5C0noyt0cT+ie5yB6UmTjg/CXucA xuFJqCJdWWNb1hpN3bttuS05gAOIFdSJMdIPDLZGXz1mgCvdoeZJiXgDCwgp/kOf+o kcHnUantQ941A== From: Lukasz Majewski To: Stefano Babic , Fabio Estevam , Tom Rini , u-boot@lists.denx.de, Marek Vasut , NXP u-boot Cc: Lukasz Majewski Subject: [PATCH v1 01/16] dts: xea: Delete not used in u-boot DTS nodes Date: Fri, 19 May 2023 12:43:43 +0200 Message-Id: <20230519104359.2048821-2-lukma@denx.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230519104359.2048821-1-lukma@denx.de> References: <20230519104359.2048821-1-lukma@denx.de> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean After the re-sync with Linux Kernel's DTS (SHA1: 7d08ddd09b75e7a3c103cc0d0d3ed700287f268e), the XEA's descripion has nodes and properties, which are NOT utilized in the u-boot. To avoid confusion - those are deleted. Signed-off-by: Lukasz Majewski --- arch/arm/dts/imx28-xea-u-boot.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm/dts/imx28-xea-u-boot.dtsi b/arch/arm/dts/imx28-xea-u-boot.dtsi index f6488154d8..22dd7bc8a8 100644 --- a/arch/arm/dts/imx28-xea-u-boot.dtsi +++ b/arch/arm/dts/imx28-xea-u-boot.dtsi @@ -12,6 +12,11 @@ */ #include "imx28-u-boot.dtsi" / { + aliases { + /delete-property/ spi1; + /delete-property/ usbphy0; + /delete-property/ usbphy1; + }; apb@80000000 { bootph-pre-ram; @@ -34,6 +39,8 @@ }; &pinctrl { + /delete-property/ pinctrl-names; + /delete-property/ pinctrl-0; bootph-pre-ram; }; @@ -46,3 +53,12 @@ spi-max-frequency = <40000000>; bootph-pre-ram; }; + +/delete-node/ &ssp2; +/delete-node/ &usb0; +/delete-node/ &usbphy0; +/delete-node/ &usb1; +/delete-node/ &usbphy1; +/delete-node/ &hog_pins_a; +/delete-node/ &hog_pins_tiva; +/delete-node/ &hog_pins_coding; From patchwork Fri May 19 10:43:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 1783713 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=lJYNXWND; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=Sye8OFG3; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QN3Q574dQz20PV for ; Fri, 19 May 2023 20:45:01 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B072386292; Fri, 19 May 2023 12:44:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493076; bh=GUqRwlgCkSf3evm/TLxzSkORL+NN1exDmKqS6bvgthI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=lJYNXWNDpIQFEXM7gLURseDbVcE2MdNnAy+h8aGOY7keu+FimGxoWkYKKFTmyplbl ayfHc5xcRou23Qy5825n0EcJzP0iKf0B58fqaqXyZGUWl4PuwPWygOMvR/NAg+ZKbS kcvw5BMdrh438XkAVL8qIcytY7Q2qOdRqy3jfVZf7GUgUt4SCD4YyEgCW1jTA4LvkU sRNA52oTvbGn8O3RMrOAzegfR+yzX+OTfjS/NeR73U6fM88OUxfuhgCaMvWgRXqn1J 6O2DzWh2+uzIg5biyLRmUNVE6UFDl/KNiAJf2J7Z7n6c2SlGbpoWYENMqKTNO6ORIb AZ1M40XOFe07A== Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id AE88785EAD; Fri, 19 May 2023 12:44:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493067; bh=GUqRwlgCkSf3evm/TLxzSkORL+NN1exDmKqS6bvgthI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Sye8OFG3hzrfbGeuFzQNwONQtO7IDarBaV7hG64z2tR6fsWl9y3rHiN85pRS7lO4/ DExbXELnYRw4uSyaDKn+ZrVVuhMuhJ+uoBTNC+vA1LhO4DAqp4QwHxtyIvYB5ZA1+N 59TyCcB54vVwrHuXZjzXrM0nHfjeTE0JW66pJUWPKx29MrhWRY2JMOkyKTUev8c41b oeSXPhlSFstwtvuQHaPNr2bWo9au6VQAl3dybuHwN72kcCL2rTL/QXZTwijVt2dXct Kma7GqXFPZJw/wuzq0MC27uYOYD2+duNnDKecHnxTFAVWnjT2wSQ6prmUls9e+2PPv IxL11oxKLvVag== From: Lukasz Majewski To: Stefano Babic , Fabio Estevam , Tom Rini , u-boot@lists.denx.de, Marek Vasut , NXP u-boot Cc: Lukasz Majewski Subject: [PATCH v1 02/16] dts: xea: Provide missing FEC required properties (mac0 and reg_fec_3v3) Date: Fri, 19 May 2023 12:43:44 +0200 Message-Id: <20230519104359.2048821-3-lukma@denx.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230519104359.2048821-1-lukma@denx.de> References: <20230519104359.2048821-1-lukma@denx.de> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean After the commit (SHA1: 7d08ddd09b75e7a3c103cc0d0d3ed700287f268e) some u-boot specific XEA FEC related properties have been replaced by ones from the Linux kernel. To be more specific - XEA board (and imx287 in general) has built L2 switch connected to FEC, which needs some special treatment. In u-boot it is handled with 'mac0' node, whereas Linux uses dedicated switch DTS node. Signed-off-by: Lukasz Majewski --- arch/arm/dts/imx28-xea-u-boot.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/dts/imx28-xea-u-boot.dtsi b/arch/arm/dts/imx28-xea-u-boot.dtsi index 22dd7bc8a8..9f1e261b2f 100644 --- a/arch/arm/dts/imx28-xea-u-boot.dtsi +++ b/arch/arm/dts/imx28-xea-u-boot.dtsi @@ -38,12 +38,34 @@ bootph-pre-ram; }; +&mac0 { + phy-mode = "rmii"; + pinctrl-names = "default"; + pinctrl-0 = <&mac0_pins_a>; + phy-supply = <®_fec_3v3>; + phy-reset-gpios = <&gpio2 13 GPIO_ACTIVE_LOW>; + phy-reset-duration = <1>; + phy-reset-post-delay = <1>; + status = "okay"; + + fixed-link { + speed = <100>; + full-duplex; + }; +}; + &pinctrl { /delete-property/ pinctrl-names; /delete-property/ pinctrl-0; bootph-pre-ram; }; +®_fec_3v3 { + gpio = <&gpio0 0 GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-boot-on; +}; + &ssp0 { bootph-pre-ram; }; From patchwork Fri May 19 10:43:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 1783714 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=yD7eaDYD; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=KO6IGrpx; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QN3QN1NNMz20dX for ; Fri, 19 May 2023 20:45:16 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2527186308; Fri, 19 May 2023 12:44:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493078; bh=b0GGuuUy+dckhyDSngMk/VVWv5bFdk9TOrQMykBWTZw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=yD7eaDYDyS8ezJX3KMfUJ45u8iHtsuGadQ3DfANVYN3ttm4itY4pV3WkapJEzTHhS +UT4SubQEp6UpFwKfNMMuTqi0OkQaCdoqfOUE23tugEN8RlWuStOEsoHpoWo26uBHW PzG85cqQ4LKhwKagjxhixhElgJx7qn1rOVMWiKWC1LnHDikXM/Vf8ZsCqP+u+EPBYt g78wa+LJMTPV/acD54JZMub8XEV2bZo0pEJpLLyhVYvXqNbaQhCGUVuk89Y5VenWYf Zp+f6dP3U1/3b/Ht6nhepGJbzp/vm7WyTo+ah6Bd39FN8AjjQdOWmqmshVh9KK2ycj N2NALx8cwyB8w== Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 3430885EDD; Fri, 19 May 2023 12:44:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493068; bh=b0GGuuUy+dckhyDSngMk/VVWv5bFdk9TOrQMykBWTZw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KO6IGrpx0kxrkA0yRKgugwjTJd3muR8FI6rxkj3++Wjw7M9DTuI+/jLSYk0dUvD1R 2EYO4hYFRibqi4RKJEM4aDxDiJlk+ABBtgJ3M2FWo0ZSL1sXT0Pd4d2WmOKc11yrUU VpJfdCzF2LX3huymiv0NZA3au8Yfnq6Drf6E7SNFUTVFrb00xhBIlFn+q+GY3brxrI rCuf6kgvUu9oRiLHjk1Dto2K+FOhfag4QSz56PCyWODX6C9STzQspKk4QatdQna/Gr B4Mj/n/9a/y9yhoW3ZZvO+TcoYHjSglYCF7kuC/0DmhiYBLIiZZ6it6ZI9jrAjpYLz UC3Z4Vh3R/yhg== From: Lukasz Majewski To: Stefano Babic , Fabio Estevam , Tom Rini , u-boot@lists.denx.de, Marek Vasut , NXP u-boot Cc: Lukasz Majewski Subject: [PATCH v1 03/16] defconfig: xea: Change default spi-nor memory bus to 2 Date: Fri, 19 May 2023 12:43:45 +0200 Message-Id: <20230519104359.2048821-4-lukma@denx.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230519104359.2048821-1-lukma@denx.de> References: <20230519104359.2048821-1-lukma@denx.de> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean After the re-sync with Linux kernel (v6.0) of the XEA DTS (SHA1: 7d08ddd09b75e7a3c103cc0d0d3ed700287f268e) the alias for SPI bus, to which SPI-NOR memory is connected, has changed from 'spi3' to 'spi2'. To be in sync with current u-boot's xea dts, the default bus number (which allows running 'sf probe' without any extra parameters given) has been adjusted. Signed-off-by: Lukasz Majewski --- configs/imx28_xea_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/imx28_xea_defconfig b/configs/imx28_xea_defconfig index 06dd6b1f0e..4a217b1f91 100644 --- a/configs/imx28_xea_defconfig +++ b/configs/imx28_xea_defconfig @@ -95,7 +95,7 @@ CONFIG_MMC_MXS=y CONFIG_MTD=y CONFIG_DM_MTD=y CONFIG_DM_SPI_FLASH=y -CONFIG_SF_DEFAULT_BUS=3 +CONFIG_SF_DEFAULT_BUS=2 CONFIG_SPI_FLASH_SFDP_SUPPORT=y CONFIG_SPI_FLASH_ISSI=y CONFIG_SPI_FLASH_SPANSION=y From patchwork Fri May 19 10:43:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 1783715 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=lf+TZJws; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=GJPoj/+J; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QN3Qc1R8Kz20dX for ; Fri, 19 May 2023 20:45:28 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 41CFC862B5; Fri, 19 May 2023 12:44:40 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493080; bh=MkRsfgLA8newUQ/FpTNKgA++EzZiG1VEEj6YUPm+zs8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=lf+TZJwsce9av7CGkugwyEUN5XFj0Qw3HsJOxTnOJNV6VAuNOzDPGftvdzI9jcqF0 XM8ngMaIkuQ+ft1j/EzzISFv3g/pR492RCpIJiMwwGk9H84UTbUpuFRzf7yTAfMoFQ o9D1fDgOhaieltKsJa41uNVIVKGhMo7MYU74RA18wXcw7brK2Hatx+ItsJ8FDIuL1x SRCOO8bpZ0bh72HJ9VsKyCID1gwWkkO8ZwpCDZAUZphAN5h1UjIrhlKOqJdSpqv7T7 B/K9CVrokMt4YaYgjjb9Y8xm6IX3NYA0v68WnPbY/s+K1kKokBu7lYfL+ZcCHyJaHj PuetClFuz5nJA== Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id AA7CA85EE7; Fri, 19 May 2023 12:44:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493069; bh=MkRsfgLA8newUQ/FpTNKgA++EzZiG1VEEj6YUPm+zs8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GJPoj/+Jh+UcbdrEX5pMftsh7LI/lJrvgg3y8b0/o/lPpc82aCGVw/w5nhg+U2CBE FeQDwUQmqU8PyVVl3zRcgqkVjxFvm+/Kl5qQMwM/03rcfIr4ivgNwZxPQGoL2pFNy7 JfAlqyYX16HdIutD7wTmxhEL6lYVXgmPDqoZG7HVYJ7b3ywekaJeJiiSRc6piFZ+4Q ciXdUHIkEw7BWjH+dytAeN57cVm62VPmG7tabX9qAqeu2o+sVLhezrUffj90NmJ/XQ +7cvb3wAChM6ir7OluPYXDezMlsChQZg1Jai0leBS6+ozeXj5U26xswrJPAtJAKREn YB0jkfuYd9RTw== From: Lukasz Majewski To: Stefano Babic , Fabio Estevam , Tom Rini , u-boot@lists.denx.de, Marek Vasut , NXP u-boot Cc: Lukasz Majewski Subject: [PATCH v1 04/16] spl: xea: Provide stub DM driver for imx28 clocks Date: Fri, 19 May 2023 12:43:46 +0200 Message-Id: <20230519104359.2048821-5-lukma@denx.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230519104359.2048821-1-lukma@denx.de> References: <20230519104359.2048821-1-lukma@denx.de> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean This code fixes following WARNING: DTOC spl/dts/dt-plat.c fsl_imx28_clkctrl: WARNING: the driver fsl_imx28_clkctrl was not found in the driver list As imx28 doesn't yet support common clock framework, this prevents from DTOC warnings during SPL build. Signed-off-by: Lukasz Majewski --- board/liebherr/xea/xea.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/board/liebherr/xea/xea.c b/board/liebherr/xea/xea.c index 38e841c5f6..ed2b39f70e 100644 --- a/board/liebherr/xea/xea.c +++ b/board/liebherr/xea/xea.c @@ -203,5 +203,22 @@ int ft_board_setup(void *blob, struct bd_info *bd) return 0; } #endif - +/* + * NOTE: + * + * IMX28 clock "stub" DM driver! + * + * Only used for SPL stage, which is NOT using DM; serial and + * eMMC configuration. + */ +static const struct udevice_id imx28_clk_ids[] = { + { .compatible = "fsl,imx28-clkctrl", }, + { } +}; + +U_BOOT_DRIVER(fsl_imx28_clkctrl) = { + .name = "fsl_imx28_clkctrl", + .id = UCLASS_CLK, + .of_match = imx28_clk_ids, +}; #endif /* CONFIG_SPL_BUILD */ From patchwork Fri May 19 10:43:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 1783716 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=t703TpSS; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=h84OICuT; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QN3Qr68MHz20dX for ; Fri, 19 May 2023 20:45:40 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4350586317; Fri, 19 May 2023 12:44:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493082; bh=GZV1cYymH/+m0GeTY+XLxDl9vZr+T0T3ESdmX7hrgXk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=t703TpSSgrvALiEMVlepVO30EZNV817PkqJsN2EXlPj3rUnLkitCUWUp+K5aJ0/+0 mQk4r0xoLj0TRKYRXJLKl6WVjvLZxReKp/26+6vUVTnLHMCMO0U3DlY6iwEdj51lqE r2AXsHJdh1G6fJC912/Dp5dtM7iSDVfpYoArmL1qkFySU62L6eXeA0LhEZRiTsgZqo 8D0c/WH3tsnjl8ybDxNZdLBqPvm7q54FlXmE5khX0lnWKQaKoznWvV0xNoD/9UVNId P9diUb7FrFk/z0nFIPkaPxO54dMvz5uSNEnm1mPFgZgNNSoZ7P0hxxToFZf6z10iCP ntP3uqp1S2vAQ== Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 413B086277; Fri, 19 May 2023 12:44:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493069; bh=GZV1cYymH/+m0GeTY+XLxDl9vZr+T0T3ESdmX7hrgXk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h84OICuTaSDTqzzQRU+7dLcHeZXosM3Waz65SqsgrR/viDJFoQii58nW/OXDHGy7m udtBp83mtNNC+G563vpYtSgWMzy6JsawMwjbYxHmJ+MXrtB770bGiMVbFfvqQxD1EY iM+VTFAoAHFQGY7Ke9RYY4lj6iI1q4Y++ZUBrioy6h4ZN0MF4SUGNzBPErJpJ8hFkc uVrSvoTDhTw23ZGbg2uHriOhAOZlAIOG+ozipAZJmDiH0vQdYuWhpzefk/TUaXudya 3M/ps+KAxGIhyOYA78y/xQ3m264DL8Y9JlJt5WKVm794s0UQe3O2887QrYHIxCN4PY ZgqeTblLxPAfQ== From: Lukasz Majewski To: Stefano Babic , Fabio Estevam , Tom Rini , u-boot@lists.denx.de, Marek Vasut , NXP u-boot Cc: Lukasz Majewski Subject: [PATCH v1 05/16] dts: xea: Enable debug UART support in XEA's SPL (DM_SERIAL) Date: Fri, 19 May 2023 12:43:47 +0200 Message-Id: <20230519104359.2048821-6-lukma@denx.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230519104359.2048821-1-lukma@denx.de> References: <20230519104359.2048821-1-lukma@denx.de> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean After enabling DM_SERIAL for XEA board, the same serial shall be used in the SPL (with SPL_OF_PLATDATA support). Signed-off-by: Lukasz Majewski --- arch/arm/dts/imx28-xea-u-boot.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/imx28-xea-u-boot.dtsi b/arch/arm/dts/imx28-xea-u-boot.dtsi index 9f1e261b2f..e40a6d240c 100644 --- a/arch/arm/dts/imx28-xea-u-boot.dtsi +++ b/arch/arm/dts/imx28-xea-u-boot.dtsi @@ -34,6 +34,10 @@ bootph-pre-ram; }; +&duart { + bootph-pre-ram; +}; + &gpio0 { bootph-pre-ram; }; From patchwork Fri May 19 10:43:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 1783717 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=rmgK0WM+; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=kNmghZ+b; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QN3R60Yh6z20dX for ; Fri, 19 May 2023 20:45:54 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BDBD286314; Fri, 19 May 2023 12:44:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493084; bh=P/G7x2UNi/We7GLrwt/S7E5r759y5TjEhmXsAtV7Cdo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=rmgK0WM+sQe5RgOZrjSJuX8pMB9KXpy8w6XRkOY8BgznX1hEzT0UwuiH25gkIHFqC U4ICOv4qkPvI3WrHaiXXmEFbvzEFvEA6tQ1kMHy5xy8C3yt2awjU6wJBsvMUyZmTKI JSuvG822tWqNPQgU+0ePv0993jLlc1LIHmLi7VYgCc7K4LnHJItqk+pJrCOdHgdktS c5ochoyHVXz70GAx/4tVRFy5uZ6WuaKmO2J7djLDg1epFVxe/mlmnbULXS3HdSCWfg zZt1WY6xDsXNknIIr1hmthrKTiNQpitwSVHm93WUqIuHbarV6LUjq7GmHLpSbmSOTd gEf9UAlJfQlKQ== Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id CCA0386292; Fri, 19 May 2023 12:44:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493070; bh=P/G7x2UNi/We7GLrwt/S7E5r759y5TjEhmXsAtV7Cdo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kNmghZ+bzKrGWd3JBrZSkdQalmm0QEZ4pUt9/0xx+IcnrG3zEOU04jfMLcev+qzpv RGmI/lHI3uMeM0oCHLxGeV5vkA1mBiJVDfbe57W6IfR7qSlBgH0g3J+s/0BGL5HWk0 bQRn3er5NUeuV2wnKbMQy3o+jZ2nRuKYyEgYd83mtOL2Vn2Pt+6I8dDt++03rVXTKI O+ABaGYjdEYVaE1AnDxFYssVhXxJBLE5IcmeQYNMzYOnnkLOhuE3WUGHN86PNzD4+O EiwROJN9omRh2/k4SjM/j4P0+GJThQOYyP3GM6ssZ+RlAXUiXOt/Qp56zkHedliPjc mWH5LBVwZ+zKA== From: Lukasz Majewski To: Stefano Babic , Fabio Estevam , Tom Rini , u-boot@lists.denx.de, Marek Vasut , NXP u-boot Cc: Lukasz Majewski Subject: [PATCH v1 06/16] dts: xea: Add u-boot specific 'type' property to duart Date: Fri, 19 May 2023 12:43:48 +0200 Message-Id: <20230519104359.2048821-7-lukma@denx.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230519104359.2048821-1-lukma@denx.de> References: <20230519104359.2048821-1-lukma@denx.de> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean The DM_SERIAL implicitly requires CONFIG_PL01X_SERIAL, which allows support for both serial IP block versions (i.e. PL011 and PL010). The decision about used IP block is based on the compatible string, when DM is used. In the XEA, the OF_PLATDATA is used to allow usage of serial driver in the SPL (as the size of SPL is crucial). In this case one cannot extract the type of IP block from .data field (corresponding to compatible) and it must be explicitly read at probe from dtoc generated, u-boot specific property. Signed-off-by: Lukasz Majewski --- arch/arm/dts/imx28-xea-u-boot.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/imx28-xea-u-boot.dtsi b/arch/arm/dts/imx28-xea-u-boot.dtsi index e40a6d240c..50289cf6d7 100644 --- a/arch/arm/dts/imx28-xea-u-boot.dtsi +++ b/arch/arm/dts/imx28-xea-u-boot.dtsi @@ -36,6 +36,7 @@ &duart { bootph-pre-ram; + type = <1>; /* TYPE_PL011 */ }; &gpio0 { From patchwork Fri May 19 10:43:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 1783718 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=JD5INNIw; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=XPeq0DNk; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QN3RM3kgsz20dX for ; Fri, 19 May 2023 20:46:07 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 438D986266; Fri, 19 May 2023 12:44:47 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493087; bh=ZNYDQYrNyODZVQviwcyJk9LRmYzFKiUGQn/8IAatpIw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=JD5INNIw6yrVyWRAvj/CBJCu96onAAY4y8gfj4t7mf7HV+r/ft9Gj+AzUPV+TSA/0 K5eOB1TeHF7uRO8teYJfFOZ7BW31qRP4Gkgnw9GI7iBWf/bpiZh53W6XBxEaNVvTn/ JdYnS9x3iQCNCIyJCpyPrWmKSTze6meHwVgwR/zSBBGyaWKLw8APPAyUQMWwarsViV z3EqzBisgz7l78NcITcEsD+OCTUlfURjbbr2OxZdnzF0kFZK2zPXZaL6xGV85F5MqW 2FKtJ+ca2ieh3nrYZ8mUYPjS//dazcCXIaUoJlEU3xnU12wAjBrkQaHoGo6f+Todha MkqyN3MGvv6Xg== Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 60E12862CB; Fri, 19 May 2023 12:44:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493070; bh=ZNYDQYrNyODZVQviwcyJk9LRmYzFKiUGQn/8IAatpIw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XPeq0DNkf54IyzNcf7nxbTB1SOMfl8EH8LZ8p+Npd2kPX0PjdU59LEfJYxkLMX3kX NodeImtDCX2qDpE9pJ/ReWJKycuh2KvXNyVTVmz41ggYT375gcbZ/vrKNQiujyCNbQ 8HaGTk1bIzQzm2wQdmVSEkB9oli2bclBjdp3SbiFZ8nRvFlgb1gGsUCVQAYsZ2Au58 IEU5IG0MHmdEXIWom4hVk/0yDep3E0DnVcYfZih6IDnS6M+RP2Ht4qLFU5EChcZ0qY d/a7T7Qg35ocmvJB/gck4ryJyqoOelxz6cKa6GUDWN8Qi2apdZ2FuXqLei3zTGuRZn vfXxM3nDN1j2g== From: Lukasz Majewski To: Stefano Babic , Fabio Estevam , Tom Rini , u-boot@lists.denx.de, Marek Vasut , NXP u-boot Cc: Lukasz Majewski Subject: [PATCH v1 07/16] dts: xea: Remove clocks property from debug UART on XEA Date: Fri, 19 May 2023 12:43:49 +0200 Message-Id: <20230519104359.2048821-8-lukma@denx.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230519104359.2048821-1-lukma@denx.de> References: <20230519104359.2048821-1-lukma@denx.de> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean The imx287 SoC doesn't support common clock framework (CCF), so the 'clocks' property is removed to avoid early (i.e. in SPL) errors when SPL_OF_PLATDATA is used. Signed-off-by: Lukasz Majewski --- arch/arm/dts/imx28-xea-u-boot.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/imx28-xea-u-boot.dtsi b/arch/arm/dts/imx28-xea-u-boot.dtsi index 50289cf6d7..52fec31fbb 100644 --- a/arch/arm/dts/imx28-xea-u-boot.dtsi +++ b/arch/arm/dts/imx28-xea-u-boot.dtsi @@ -35,6 +35,7 @@ }; &duart { + /delete-property/ clocks; bootph-pre-ram; type = <1>; /* TYPE_PL011 */ }; From patchwork Fri May 19 10:43:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 1783719 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=Z7qDyLTg; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=m/WsviZU; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QN3Rc0fyBz20dX for ; Fri, 19 May 2023 20:46:20 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 30203862F7; Fri, 19 May 2023 12:44:50 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493090; bh=To4cQAVLKxa/ZUcoktbz/U8UTYKkHEEuIYYhkY4bY3g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Z7qDyLTg20feKlRBvI1mg1GkBdhI7GytZ8MX3g2y1b/Eg13MbC4TssC9ldhbBBOig yehFwD5ZRE9Rv8ABNX/E56GYrra/Lz7WyXFB9MNOJwO+KzQ7AAgN4IAoW5ZcYruYU/ LcbtId0McR6C/4zYBOpZLciL/RLgSlulBarW1gmM31NKWAKikWsR9t3Lha3Hikh+lu SUFX25FdyxMOvDrUj4yaPF5YReX8Daz/qaVtMWnm/Nu7cN8ASv793RimTFHTmQukaR 9WIhKem0ErZPXHl/wS0Wah/DkxoPsdtIXm6PgBSh90MAh5BEjbtA7vCv+/tNoQzj+/ 4GdfDb61nvwGg== Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id E5DAC862DA; Fri, 19 May 2023 12:44:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493071; bh=To4cQAVLKxa/ZUcoktbz/U8UTYKkHEEuIYYhkY4bY3g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m/WsviZUW/LqxG5PCSBBiazWaUvWjcu/3wd1u9p2XbNdd7TcobEfTET0uupM6R95X whRwMatxKWy0tPJkl77dtGFXMW8g1Vesc056yZ4GaZ2jagVmWop1OAYUVcbrB31CTm YXHepj64hpYlwVfw4ddjfSiTEGBPfFQBTbWVnzECm0qDYp3Ils0nMg9FZtrwqGfvj7 pLsjfl+KIx2vY+bcshbvrKL7g9jBgED1EvWGwBO/iWtlW+5NzW/Dr0AQoj2TpHhV77 xvalQ6fHs15O0rDarbTkzWj+Kuaw6tJsgfP8YoX9pQHRefMHaBdKeRynW6cfc6U57Q uzmB9a+P+1YyQ== From: Lukasz Majewski To: Stefano Babic , Fabio Estevam , Tom Rini , u-boot@lists.denx.de, Marek Vasut , NXP u-boot Cc: Lukasz Majewski Subject: [PATCH v1 08/16] dts: xea: Disable 'clks' node for xea (imx287) Date: Fri, 19 May 2023 12:43:50 +0200 Message-Id: <20230519104359.2048821-9-lukma@denx.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230519104359.2048821-1-lukma@denx.de> References: <20230519104359.2048821-1-lukma@denx.de> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean As imx28 family of SoCs is NOT supporting the Common Clock Framework (CCF) the 'clks' property shall NOT be enabled by default. Without this change u-boot proper before relocation tries to bind driver (which doesn't exists) for this device. As a result, pre-relocation DTB parsing is finished with error and the board hangs in a very early stage of u-boot proper boot process. Signed-off-by: Lukasz Majewski --- arch/arm/dts/imx28-xea-u-boot.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/imx28-xea-u-boot.dtsi b/arch/arm/dts/imx28-xea-u-boot.dtsi index 52fec31fbb..bdbeca528c 100644 --- a/arch/arm/dts/imx28-xea-u-boot.dtsi +++ b/arch/arm/dts/imx28-xea-u-boot.dtsi @@ -32,6 +32,7 @@ &clks { bootph-pre-ram; + status = "disable"; }; &duart { From patchwork Fri May 19 10:43:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 1783721 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=bfoML65L; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=bZOkiO9n; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QN3S4541yz20dX for ; Fri, 19 May 2023 20:46:44 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 204F486334; Fri, 19 May 2023 12:44:54 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493094; bh=YAU9m42ZzxCdCHs9xGMjexz2tmMToYYmCJajZhjMh+M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=bfoML65Lp9gbyc3dQk+x3e/AOcKDt+xCB3oI4ACYvOpy40uxu1wNkbgqEV8pFi9D0 7W3Jdy7AjdBhI6L71axu55wqR6f+mqQ0p2l/TtfZb/MDpHEXirWvKN6+9Lk0cRsUsR v0y1p1+3gcSfGvpbiEszg5p+9dzsBfV5r028cvYW5qMdpG8PTaBHDeSBcbko/SVkJ4 KAW4DSJdF43yXQGOjS9VMsK7JOOGsin+EbM/pYsx3x0gG9IRUZCv8vH9c3WH+jFbBp K9jaOZYvHHKDWptGw6tZWo8glLJzccEF0zWUqmq9fbaZnw0pngTL8X4d15RxriyAAF U7jFNlshqXEfw== Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 6D700862EC; Fri, 19 May 2023 12:44:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493071; bh=YAU9m42ZzxCdCHs9xGMjexz2tmMToYYmCJajZhjMh+M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bZOkiO9n9xXB7nJWh2xOaTDQV21Ofq2fEjQQRc3lPzdCj0qtOc0RQp2+KzjMDMBkm iJenkJ6E7liBMmvm9aMdF/2Dj0QrFACsjZ1xRyy8FBE7SebTvGw2YeR32oCfQwV9CV yRJAeibyrvoxBfowtXbiM3g0/5/WaH+k11iCWUxNmUhEVWjh46Oi3P9fEJTnD+VZLc zs4lYPDjXdrvyVdGHDOAQ/mgWkEzVqKeBbSSFY/0gZehhGm8/LbZ/bYFT1KmO4uShn m4Xdr/hsC5mo4b/xFVNT5CF3QJ+BSYjTXu/vUFv9Vk3pIXISqVny/S1jezHu9ilctk xhmPrFXedfFkQ== From: Lukasz Majewski To: Stefano Babic , Fabio Estevam , Tom Rini , u-boot@lists.denx.de, Marek Vasut , NXP u-boot Cc: Lukasz Majewski , =?utf-8?q?Pali_Roh=C3=A1r?= , Simon Glass , Stefan Roese Subject: [PATCH v1 09/16] serial: pl01x: Change OF_CONTROL to OF_REAL Date: Fri, 19 May 2023 12:43:51 +0200 Message-Id: <20230519104359.2048821-10-lukma@denx.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230519104359.2048821-1-lukma@denx.de> References: <20230519104359.2048821-1-lukma@denx.de> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Before this change, building this driver for SPL with enabled SPL_DM_SERIAL was problematic, as '-Wunused-const-variable=' warning was visible. Now, the code is only considered when u-boot proper is build. Signed-off-by: Lukasz Majewski --- drivers/serial/serial_pl01x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/serial_pl01x.c b/drivers/serial/serial_pl01x.c index f5468353e1..18332c2192 100644 --- a/drivers/serial/serial_pl01x.c +++ b/drivers/serial/serial_pl01x.c @@ -331,7 +331,7 @@ static const struct dm_serial_ops pl01x_serial_ops = { .setbrg = pl01x_serial_setbrg, }; -#if CONFIG_IS_ENABLED(OF_CONTROL) +#if CONFIG_IS_ENABLED(OF_REAL) static const struct udevice_id pl01x_serial_id[] ={ {.compatible = "arm,pl011", .data = TYPE_PL011}, {.compatible = "arm,pl010", .data = TYPE_PL010}, From patchwork Fri May 19 10:43:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 1783720 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=GOESLO55; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=jBq+pzTt; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QN3Rr6w8cz20dX for ; Fri, 19 May 2023 20:46:32 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 51A218631E; Fri, 19 May 2023 12:44:52 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493092; bh=1+MHIzySg3SkL5Cv9x6Uid2u3Wa5wr76bb7EN/aoU+M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=GOESLO55csTF2lMs0ZcrO/75nioW6W7z6yagG8exjxIPujoj1rbq855kgxuBHzQwJ UP+qFGWpKVleAQq1jRiNgmI+0Bvy3zqK7vJrkdkYY68pxilZQOYlbqdI6XSQjig+LT QjwPbqE/XqSZxeJKHoiJhfIZiU25sE7vVH+iEjw16ubwqIgMv3Pz18t6UzbjfVLrE1 fyVGm2mLgx/7l/a/gu+HKWK+BEGsD4PzWZBFVqWNkekGCvQgyldiS9LNSGs+cxLZ6q hgB4SpCwtvtPt4Rfb64+sVp5er7Z13/sQ/A1QEukVJVmt2R5qeZCvv15ve5JsjGAYK 9Ffn+GxVXm0Sw== Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 096C0862F7; Fri, 19 May 2023 12:44:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493072; bh=1+MHIzySg3SkL5Cv9x6Uid2u3Wa5wr76bb7EN/aoU+M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jBq+pzTtWGL3OXmVxOWW98sin3RF+oRzht7ccVVHrvneimCVVMFYNnWt5r0quDp75 8zAP2dttCEOpKR+n+eZaceThD9SEWNQc+JOwGtJElxcj/GTgxeyBARWUeSxTsyPuW6 5L5qvK4lUOEHEHxMzYsYYhEX+i2J4vm7OJfFP7iHMvV1KFMUHuRlGBO00B2q3rKvBp TX2J1WnDkQuodr8M5GcEOTw93oWKPCYysSIe8HRCuBop807fH/Kspn+S6a6RhZKtAZ /r9lr+QC07V7HBYHdCiP1asDz9Xeozg7Y+UqylWHFIka3t7brdR5u0Mb0d5vYva3NN DkWJb09nkeXSA== From: Lukasz Majewski To: Stefano Babic , Fabio Estevam , Tom Rini , u-boot@lists.denx.de, Marek Vasut , NXP u-boot Cc: Lukasz Majewski , =?utf-8?q?Pali_Roh=C3=A1r?= , Simon Glass , Stefan Roese Subject: [PATCH v1 10/16] serial: pl01x: Prepare the driver to support SPL_OF_PLATDATA Date: Fri, 19 May 2023 12:43:52 +0200 Message-Id: <20230519104359.2048821-11-lukma@denx.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230519104359.2048821-1-lukma@denx.de> References: <20230519104359.2048821-1-lukma@denx.de> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean This commit prepares the pl01x serial driver to be used with SPL_OF_PLATDATA enabled. Signed-off-by: Lukasz Majewski --- drivers/serial/serial_pl01x.c | 12 ++++++++++++ include/dm/platform_data/serial_pl01x.h | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/drivers/serial/serial_pl01x.c b/drivers/serial/serial_pl01x.c index 18332c2192..dbf2b2df34 100644 --- a/drivers/serial/serial_pl01x.c +++ b/drivers/serial/serial_pl01x.c @@ -291,8 +291,16 @@ int pl01x_serial_probe(struct udevice *dev) struct pl01x_serial_plat *plat = dev_get_plat(dev); struct pl01x_priv *priv = dev_get_priv(dev); +#if CONFIG_IS_ENABLED(OF_PLATDATA) + struct dtd_serial_pl01x *dtplat = &plat->dtplat; + + priv->regs = (struct pl01x_regs *)dtplat->reg[0]; + plat->type = dtplat->type; +#else priv->regs = (struct pl01x_regs *)plat->base; +#endif priv->type = plat->type; + if (!plat->skip_init) return pl01x_generic_serial_init(priv->regs, priv->type); else @@ -380,8 +388,10 @@ int pl01x_serial_of_to_plat(struct udevice *dev) U_BOOT_DRIVER(serial_pl01x) = { .name = "serial_pl01x", .id = UCLASS_SERIAL, +#if CONFIG_IS_ENABLED(OF_REAL) .of_match = of_match_ptr(pl01x_serial_id), .of_to_plat = of_match_ptr(pl01x_serial_of_to_plat), +#endif .plat_auto = sizeof(struct pl01x_serial_plat), .probe = pl01x_serial_probe, .ops = &pl01x_serial_ops, @@ -389,6 +399,8 @@ U_BOOT_DRIVER(serial_pl01x) = { .priv_auto = sizeof(struct pl01x_priv), }; +DM_DRIVER_ALIAS(serial_pl01x, arm_pl011) +DM_DRIVER_ALIAS(serial_pl01x, arm_pl010) #endif #if defined(CONFIG_DEBUG_UART_PL010) || defined(CONFIG_DEBUG_UART_PL011) diff --git a/include/dm/platform_data/serial_pl01x.h b/include/dm/platform_data/serial_pl01x.h index e3d4e308a1..811697ce5c 100644 --- a/include/dm/platform_data/serial_pl01x.h +++ b/include/dm/platform_data/serial_pl01x.h @@ -20,7 +20,11 @@ enum pl01x_type { * @skip_init: Don't attempt to change port configuration (also means @clock * is ignored) */ +#include struct pl01x_serial_plat { +#if CONFIG_IS_ENABLED(OF_PLATDATA) + struct dtd_serial_pl01x dtplat; +#endif unsigned long base; enum pl01x_type type; unsigned int clock; From patchwork Fri May 19 10:43:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 1783722 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=u8fot4XU; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=hy5tyZnt; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QN3SJ4hT4z20dX for ; Fri, 19 May 2023 20:46:56 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E1FF4862EC; Fri, 19 May 2023 12:44:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493097; bh=Rfq1HzRY/ht+1dE6GXKzkRxeKSvPkNrg8l/dirSBb2I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=u8fot4XUm/ShPMOGSThpUjFfL54ktqhTdPMMg4abWfKeJt4tITwZnq1X35YFAWImr P7OhlFQeTtNIdF/Vp/WNhcJ5cOj8FeYM19O6YqUtP5ssbaQo6Igp8PFCOamNqhYkrX YiLQ6iDioeTdirLR8hqRGBjJLcHU2TmvNlDiTGSEmkc2pI7alYNtH+KYYuUCNLGe9Y eUNt/5GCM9azXTQp/dlUJfreSd5st6hXM9QCyNf7A7gHWfXZrfnDtYIie+HNHxdnew mq6QQ+1IU2wvkO3wrRl4kh6oGxY1CBwSt/Q6rRhezlan5RoW91XgZyBUNN4kW0bDzG LXj/0sxIztepA== Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id A126785EDD; Fri, 19 May 2023 12:44:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493073; bh=Rfq1HzRY/ht+1dE6GXKzkRxeKSvPkNrg8l/dirSBb2I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hy5tyZntZiDYlOKtecSl7JbaA4e9UDm91ApqZgx+k3rWr57k8CsAVbi8p4duMLsSE Mtc+RJHMuqSsh61OgPETXfzTMW98rkF1rbpmbepZEI8S/zj/JoLQCUBoCMmT8DhShR xKgwvdjKXfRq/Eh6VQaMR7R6BIoD89mleyGRwic0ceThzVtX9IK2U3lbamm2Hs2VIW e8m8lwOtVyryIrW7pzymxo5CYCGRMF4CH6EmZz3nNiHfggbAFx3lecNSGrXl50atD7 H+doGIX8+Sql3WWBS70mrC7W1TIUHBcl1qbM/jegK3GWPGNOxrRdj0SQ/Ifj9iZBmj DBgFZKNwQ2k8Q== From: Lukasz Majewski To: Stefano Babic , Fabio Estevam , Tom Rini , u-boot@lists.denx.de, Marek Vasut , NXP u-boot Cc: Lukasz Majewski , =?utf-8?q?Pali_Roh=C3=A1r?= , Simon Glass , Stefan Roese Subject: [PATCH v1 11/16] serial: pl01x: Modify pending callback to test if transmit FIFO is empty Date: Fri, 19 May 2023 12:43:53 +0200 Message-Id: <20230519104359.2048821-12-lukma@denx.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230519104359.2048821-1-lukma@denx.de> References: <20230519104359.2048821-1-lukma@denx.de> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Before this change the FR_TXFF (Transmit FIFO full) bit (5 in HW_UARTDBG_FR) has been used to assess if there is still data pending to be sent via UART. This approach is problematic, as it may happen that serial is in the middle of transmission (so the TX FIFO is NOT full anymore) and this test returns true infinitely. As a result, for example in _serial_flush() DM serial function we are locked in endless while(). The fix here is to test explicitly if the TX FIFO is empty. Signed-off-by: Lukasz Majewski --- drivers/serial/serial_pl01x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/serial_pl01x.c b/drivers/serial/serial_pl01x.c index dbf2b2df34..428a4d210d 100644 --- a/drivers/serial/serial_pl01x.c +++ b/drivers/serial/serial_pl01x.c @@ -329,7 +329,7 @@ int pl01x_serial_pending(struct udevice *dev, bool input) if (input) return pl01x_tstc(priv->regs); else - return fr & UART_PL01x_FR_TXFF ? 0 : 1; + return fr & UART_PL01x_FR_TXFE ? 0 : 1; } static const struct dm_serial_ops pl01x_serial_ops = { From patchwork Fri May 19 10:43:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 1783726 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=Hgff4FRN; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=s2ZXSA+0; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QN3TD2cPzz20dX for ; Fri, 19 May 2023 20:47:44 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1A5FA86342; Fri, 19 May 2023 12:45:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493118; bh=cdcXqEIkHewotUNcTir41WwYLxa4SBzM+y+v85Ju3OY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Hgff4FRNOiA7KE/oax36C+DIV5frfbdHfVDC+DZZWbRWKfevh7g5sRnxYm5Irgmju rxtW37B1Q7bJKCkVNdXd0eho7ZXtnJigEthe6BwBcPy0+6uRw6GWefAoCgFW5nSLx6 TR/EpEop3XkBIsQo+PWBW009UioF9URxFv3QzKND358tZjsJd5TOHTIQKWqsH6DL3o Wy5X+3MUVzgBMBaXf/vI/qxgm7XmGeydSPYFT//mBOVts5FnSh79gdmmI0z7Lmf96O EOflyNNsX26z1+2LsGNI0iEajkQP8qPPAgNsrFMOuMAqJTV6/Jm++MDO2f8s9BsyWl y9inpcJdbHA+w== Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 51A5285EE7; Fri, 19 May 2023 12:44:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493073; bh=cdcXqEIkHewotUNcTir41WwYLxa4SBzM+y+v85Ju3OY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s2ZXSA+0NvP5D+TYpwwKGzM2kDrtg6sAQy3gS9UMPnyLyQKfB66O+Nq770A+CnSdP vNy6QM2gEf2KOnfHf2b6/zoaE2t8JHAVAa39vfeDx1m+zZyxrs2jk7dvNCe62JAG4X KgelaF/WzSzGYYcZnkxfFA7tA/shmS3kHhM1Lp5bwNQJSXez7B32n90IPfv35Ftx7/ oVQtjae7pu4lyDSQCEiLg1A0sd3b3iMXnqMX3oJcUhMDmUwbM6PjZpVC/yGy+wfR3N T8AHkhZEgu3c36wzQlLfbODg88/dvFQF678CwScbPAFaFgDhafSHZ9z98Kx9q37Uwk 7M+LvKgRcKvAA== From: Lukasz Majewski To: Stefano Babic , Fabio Estevam , Tom Rini , u-boot@lists.denx.de, Marek Vasut , NXP u-boot Cc: Lukasz Majewski Subject: [PATCH v1 12/16] arm: mxs: Prevent serial console init when in very early SPL boot code Date: Fri, 19 May 2023 12:43:54 +0200 Message-Id: <20230519104359.2048821-13-lukma@denx.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230519104359.2048821-1-lukma@denx.de> References: <20230519104359.2048821-1-lukma@denx.de> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean When DM_SERIAL is enabled on mxs (i.e. imx28) platform, the console early initialization must be postponed until the driver model is correctly setup. Signed-off-by: Lukasz Majewski --- arch/arm/cpu/arm926ejs/mxs/spl_boot.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/cpu/arm926ejs/mxs/spl_boot.c b/arch/arm/cpu/arm926ejs/mxs/spl_boot.c index 763d79e803..5598c552ab 100644 --- a/arch/arm/cpu/arm926ejs/mxs/spl_boot.c +++ b/arch/arm/cpu/arm926ejs/mxs/spl_boot.c @@ -128,8 +128,10 @@ void mxs_common_spl_init(const uint32_t arg, const uint32_t *resptr, mxs_iomux_setup_multiple_pads(iomux_setup, iomux_size); - mxs_spl_console_init(); - debug("SPL: Serial Console Initialised\n"); + if (!CONFIG_IS_ENABLED(DM_SERIAL)) { + mxs_spl_console_init(); + debug("SPL: Serial Console Initialised\n"); + } mxs_power_init(); From patchwork Fri May 19 10:43:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 1783723 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=JSTgRZns; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=l6bcaE2o; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QN3SX3ZHvz20dX for ; Fri, 19 May 2023 20:47:08 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0E1AB86339; Fri, 19 May 2023 12:45:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493101; bh=pIF8ISploeZOR3MN8Lv1Csp5RCKidxNi5yfACWtv9Sg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=JSTgRZnsL451XxD2YvdQ3fGUJwcGNU80hk/xPAZa4W2bxiDrVtHr+Kj9X7Ujhhled nLHLtz+Dv56klGX+AlWgZVD3H41Ej5AFq6BPvL23f9/kaHEE9inKad7ccAoRveZ44w A4nVORI4xZg3JlsWJvJbyhPT95hVZoG8uu+DAVy5IPMP12lJdqQL7VFWmFG5yQwjkk dJBZKjfgdpMh4826bOhfybVzsupn1tyKriBZLAU1O6z7rJk2FX8QlkLPSJrZVD0SNl hL8WMX+ZmtcSXYh4OG5lh2NPWGv3/Sbt66DMVwgmlTw92waLW0LdVPdzbXy3jqXtXv E5XcvgByCQNcw== Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id D70FA85AFF; Fri, 19 May 2023 12:44:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493074; bh=pIF8ISploeZOR3MN8Lv1Csp5RCKidxNi5yfACWtv9Sg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l6bcaE2oOj3/330VrHqBMZU6x+HlCFDPNAr1/6/hDnnsUagtQzuIREc4tbiuOSAZ9 GDFFg49C91+ZmElwLMeXUYcvLBT6rkzqmSiSDWiE7N/uTB8yPxxmfQpL4KALlSRhu/ 2v842lCxgXjF3Fs4HSJhpS6q5luD+uf8EnevcB9q5Us/09KX3fkv2+M7mPaCUUgMWL hwxf6ETl/lolSBmynGkapk8RkAQs3lsxcJ+aW9v9Mzb/Ob9698Eiwq0/vhreLc+/Ln FPByOUs7A0aPilpGfSHnL7w+1DFnVy/gsRCUcCxQvN+wzzGods31LocFSlrc8TNoE9 oOsi51DmPWSoA== From: Lukasz Majewski To: Stefano Babic , Fabio Estevam , Tom Rini , u-boot@lists.denx.de, Marek Vasut , NXP u-boot Cc: Lukasz Majewski Subject: [PATCH v1 13/16] arm: xea: Call spl_early_init() before DM serial console is enabled in SPL Date: Fri, 19 May 2023 12:43:55 +0200 Message-Id: <20230519104359.2048821-14-lukma@denx.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230519104359.2048821-1-lukma@denx.de> References: <20230519104359.2048821-1-lukma@denx.de> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean The in-spl enabled DM serial console requires the board setup to be able to parse SPL_OF_PLATDATA based serial driver (pl01x) for the imx28 based XEA board. Signed-off-by: Lukasz Majewski --- board/liebherr/xea/xea.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board/liebherr/xea/xea.c b/board/liebherr/xea/xea.c index ed2b39f70e..e4d2eb65cc 100644 --- a/board/liebherr/xea/xea.c +++ b/board/liebherr/xea/xea.c @@ -62,6 +62,7 @@ static void init_clocks(void) void board_init_f(ulong arg) { init_clocks(); + spl_early_init(); preloader_console_init(); } From patchwork Fri May 19 10:43:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 1783724 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=y7z5GMwB; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=aobQ/zg0; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QN3Sl62kKz20dX for ; Fri, 19 May 2023 20:47:19 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 036B286249; Fri, 19 May 2023 12:45:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493109; bh=Dy4rqvJDBI2rRsLtsGieVOImlTJvld//SH8zcOM97eE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=y7z5GMwB6VOB40Ail2rc9dPwezsjUp0sV6H//OxVTsYTuO1YYiDLg8knRejaIO3Wu ic260GIxjXt62W+SKuHS9TrEeipIpG1ShMdd3K44z70RC26MW8PPOQTWGNsZrWFs+S GfDTXTmaVCCMqjnSRrvK1SBuCstlH+1zBRskFEXCBd9vODBaL3VkKPjb5UtXN8eC/Q vZs1bXZxQSMwbrbitHnEiutxJoZZj6Z2rjWdUR2hAEX8gU103Y9SBgLdv39LpsLG2/ xSLxOISWcsyZQr2aaJo/Kb4GEZMdO3TKqoJFlmt+18PC5dfDDHyyq1ur3GPsMEVIbv pNuS9jxhCcepQ== Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 680E586258; Fri, 19 May 2023 12:44:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493074; bh=Dy4rqvJDBI2rRsLtsGieVOImlTJvld//SH8zcOM97eE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aobQ/zg0wF2fMY5L4AVUzlsYOSghofypHQ+9sw1WPaRrz+QIwYUnlKDlM6eEKHfvA yQfji5GqKi8eANm79FaV2X1Z1QB/92FW86KZG1Iz/VMDxHlrS1ZIjX0QWThw8eveqv 43qlHuGgLDQOts7jYuO7szCfe3NFUwgHJTj7zAbScj0nVyanGKkfqdTr/02p++/TiR 956914fs+rNQRqB8oUe3UD3fIhB8HkT0JsJ8NudjWZYKi+wjuCO2lL57M/5hPr5Hj/ 2ctn+iUa2eVhUAT1nMuxn+qGYmBxKoWYHO1xOiDorBqJkXjS2CMlJ/Q+dym4u6H85l dr5x3b3leEJ0A== From: Lukasz Majewski To: Stefano Babic , Fabio Estevam , Tom Rini , u-boot@lists.denx.de, Marek Vasut , NXP u-boot Cc: Lukasz Majewski , Bharat Gooty , Masahiro Yamada , Rayagonda Kokatanur Subject: [PATCH v1 14/16] arm: Kconfig: Switch XEA (imx287 based) board to use CONFIG_PL01X_SERIAL Date: Fri, 19 May 2023 12:43:56 +0200 Message-Id: <20230519104359.2048821-15-lukma@denx.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230519104359.2048821-1-lukma@denx.de> References: <20230519104359.2048821-1-lukma@denx.de> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean The CONFIG_PL011 used by all other ARCH_MX28 based boards is not supporting DM_SERIAL. Instead, other define - namely CONFIG_PL01X_SERIAL shall be used by boards supporting DM_SERIAL. Signed-off-by: Lukasz Majewski --- arch/arm/Kconfig | 2 +- arch/arm/mach-imx/mxs/Kconfig | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 99264a6478..4604d41410 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -919,7 +919,7 @@ config ARCH_MX28 bool "NXP i.MX28 family" select CPU_ARM926EJS select GPIO_EXTRA_HEADER - select PL011_SERIAL + select PL011_SERIAL if !TARGET_XEA select MACH_IMX select SUPPORT_SPL diff --git a/arch/arm/mach-imx/mxs/Kconfig b/arch/arm/mach-imx/mxs/Kconfig index b2026a3758..ded16aac46 100644 --- a/arch/arm/mach-imx/mxs/Kconfig +++ b/arch/arm/mach-imx/mxs/Kconfig @@ -45,6 +45,7 @@ config TARGET_MX28EVK config TARGET_XEA bool "Support XEA" + select PL01X_SERIAL endchoice From patchwork Fri May 19 10:43:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 1783725 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=XXeSsGov; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=KPDltv5O; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QN3Sz3lr9z20dX for ; Fri, 19 May 2023 20:47:31 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1D81886368; Fri, 19 May 2023 12:45:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493112; bh=vgHSIZ/PojHM0JrtXNc8TQiq4G41o/fs8vtAEjKCIH8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=XXeSsGovYvP7jMxSQCmpxCMtsS9XM3WA8gfBvveGGXjAOypa0b1W0lQOYvOZ800+y jcp10xrkCPl74d8pGLvmD2qBzz64j9gyRhUfnKla0oVZOMWfianEYH0xRrwztyaA09 xgeKDMkcYitiyv3vsay02nhBCfXq1geqianX2UobnhL5wx6hqPChp5xeoAUr4c76mh vEXcgO9BDwUm9FLj/uZEiFrg/bdE5iDtReQJCAREqX68XbQ5XR44LkQCNMjeTiVP/U JtBFtOpzYDQ9b3QXCIX48h0iI71maunlIbUVl1ceu9rwWaP4DZEvT7YABnVBBoYQQI LjkzYH+eDKm4A== Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 0D065862D6; Fri, 19 May 2023 12:44:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493075; bh=vgHSIZ/PojHM0JrtXNc8TQiq4G41o/fs8vtAEjKCIH8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KPDltv5OxS7uxRmwGGdsIYciktSDIUytYIxYaOjLff5Ng3mo/K/iipcA9XOmHQpnj jriUpo/Rr2FyqTmdh3DMcJOVCdgDS7VVm+MR6zNs2HCQqwHGEVM8zDgiAIILaSGlnJ sB74OVNyCGe9DAjf0udXb5dBrp2vSsU2jEwn42e4I92+TmDRF+l3OEgXXWsp9YXuNI O4Ib1xjgh1+zZsddmFJQQ1wQ3Bp/3bPvZOcsl368Q9TBjmiJmDAVVtRimlDXdn9ER6 8KfnlK+aEhAEEfD3IEFn24CHFyH9UY4KAjjn0n7pNVVNSxRdw852+RAyrFK3LuEJma 1kgyAMRvfRMYw== From: Lukasz Majewski To: Stefano Babic , Fabio Estevam , Tom Rini , u-boot@lists.denx.de, Marek Vasut , NXP u-boot Cc: Lukasz Majewski Subject: [PATCH v1 15/16] config: xea: Enable DM_SERIAL for the XEA (imx287 based) board Date: Fri, 19 May 2023 12:43:57 +0200 Message-Id: <20230519104359.2048821-16-lukma@denx.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230519104359.2048821-1-lukma@denx.de> References: <20230519104359.2048821-1-lukma@denx.de> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean The XEA board now supports the DM_SERIAL feature in u-boot. The SPL is using the SPL_OF_PLATDATA - i.e. NOT SPL_DM_SERIAL to reduce the overall size of the SPL binary. Signed-off-by: Lukasz Majewski --- configs/imx28_xea_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/imx28_xea_defconfig b/configs/imx28_xea_defconfig index 4a217b1f91..b4a051a859 100644 --- a/configs/imx28_xea_defconfig +++ b/configs/imx28_xea_defconfig @@ -113,7 +113,8 @@ CONFIG_PINCTRL_MXS=y CONFIG_DM_REGULATOR=y CONFIG_DM_REGULATOR_FIXED=y CONFIG_DM_REGULATOR_GPIO=y -CONFIG_CONS_INDEX=0 +CONFIG_SPECIFY_CONSOLE_INDEX=y +CONFIG_DM_SERIAL=y CONFIG_SPI=y CONFIG_DM_SPI=y CONFIG_MXS_SPI=y From patchwork Fri May 19 10:43:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 1783727 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=DH2c8B1Q; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=dilk1W5H; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QN3TY6KDlz20dX for ; Fri, 19 May 2023 20:48:01 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A84AA86354; Fri, 19 May 2023 12:45:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493121; bh=/ch20/g0arG2odSqpYo+NQDCdL9DrKqpe3uj6aIMFb0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=DH2c8B1QzoPkbONOFRr8WTiuCY9ReVbtbWDcwRWIKKfPz8Dgt2qtnkrLS+TV8ribN hOR5apUj8HShUQf/8IoWsY+GYt0W0ydk9FPRqOW3XxUBhDiWGo7om3Z6UDRkWwHbLB 0SRolBBP4EPKnkR41F9Q9KPt15TNhaVXBl8zrX61vgzG+KwV0OkhkhxTrOUJ7qBQ7x K83HBzXt86UckcmSd4e/7HS0jo6HTchYP6WNGRhmfS+6/vHqDthGOMKXHkLR2panTI dPYRXJnzZtdFV9hYYbGc/4B1iVMpqHkVJl7u581T4KRMW5pDvz4AjO21kvTKIOy6am mN1X9eGKobtwA== Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 9901A8623E; Fri, 19 May 2023 12:44:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493075; bh=/ch20/g0arG2odSqpYo+NQDCdL9DrKqpe3uj6aIMFb0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dilk1W5HD7RJzJ0xMR1CeP4EcEoWxyY8WkJpbMvF5N62+gC+FtEqGAtUkgWHSl6KQ WJqTEza/DZIjQ167cb/zGxaBAYsVavA6Wfyfupl/G2f1zh08YBIEizZmqFYLyhF9GB fnS8tMjf7/egej5phGjMQSUCwzzEw50xVvzgm6V+H9AG6DP4Ztue78qu7vvNYxSqh6 JowL8pvPI4/bAnDM4zp154M86rbVwnCgoaAeRwOQ8ZS6GTu2XAfIs+F0ghqlALfO3r +cahVeO/VCXag9gpuzYB/2TfFj7ynfhDuKDiUApWn8/n88Gl3icn+SHjCCPuNVnjza 9p9rdXrbHzscA== From: Lukasz Majewski To: Stefano Babic , Fabio Estevam , Tom Rini , u-boot@lists.denx.de, Marek Vasut , NXP u-boot Cc: Lukasz Majewski Subject: [PATCH v1 16/16] config: xea: Enable DM_SERIAL for the XEA - single binary (SB) u-boot Date: Fri, 19 May 2023 12:43:58 +0200 Message-Id: <20230519104359.2048821-17-lukma@denx.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230519104359.2048821-1-lukma@denx.de> References: <20230519104359.2048821-1-lukma@denx.de> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean The single binary version of u-boot for XEA board is used to debrick and factory programming. The produced u-boot.sb is a single file, which allows having fully operational u-boot prompt loaded with imx287 ROM. Signed-off-by: Lukasz Majewski --- configs/imx28_xea_sb_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/imx28_xea_sb_defconfig b/configs/imx28_xea_sb_defconfig index bb7bf5d9da..a43183444d 100644 --- a/configs/imx28_xea_sb_defconfig +++ b/configs/imx28_xea_sb_defconfig @@ -94,7 +94,9 @@ CONFIG_PINCTRL_MXS=y CONFIG_DM_REGULATOR=y CONFIG_DM_REGULATOR_FIXED=y CONFIG_DM_REGULATOR_GPIO=y +CONFIG_SPECIFY_CONSOLE_INDEX=y CONFIG_CONS_INDEX=0 +CONFIG_DM_SERIAL=y CONFIG_SPI=y CONFIG_DM_SPI=y CONFIG_MXS_SPI=y