From patchwork Fri May 19 10:43:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 1783711 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=Xt7uZuUO; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=ORcaCFVN; 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 4QN3Pc6gC3z20PV for ; Fri, 19 May 2023 20:44:35 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 08BBD86249; Fri, 19 May 2023 12:44:29 +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=1684493069; bh=cX+ouEcJIvjjkYSRMArdy+5Lb+aCg4s1YpX4/338yvw=; h=From:To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=Xt7uZuUODMzvF8kqiGG/TDuTYdnlnRQTXfDzpqaLt3cbLwpp1bJYK/Hkv4lYjrosy 9OosgDHu0VWfFeDXNdiROU9F3kPAUz/fask3PUtE1kOf/zSePyDXJhIMsED3sok6ZG R8Ub0tevT/p/mYrAIj20sJ572z8Aj+BlYqxv3Bxg0euxJqaU8l3BfbjF2L1zvpd3Xu 3ET8rr7+gCOtJmxGBmS/QI2ajXBgsU2NpphE4823uYNbR0Ao/5PxVzlPo4tHWXkjK5 PqmqXEGaWEImwPWCRdnlbd682+lrfu1d4NL44zzsCz5xp/26FZOX8SbpHnSjE/n6M2 5ou92mPDxf4cQ== 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 77F2F84726; Fri, 19 May 2023 12:44:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684493066; bh=cX+ouEcJIvjjkYSRMArdy+5Lb+aCg4s1YpX4/338yvw=; h=From:To:Cc:Subject:Date:From; b=ORcaCFVNWHIAjNQ0lwAQ+g4ZcP8NPmzSjlW6mzts9Fz11FS7US6qjT390BJzBeI7L /v5aUvUf8u6ozM2jyXZrMoWGwkLyhoz6E8ze0qw22oeqPiInZ+GCx8XvOUnRlCjaoY GIK/ED5qlMUfNnNOpEOJQjT9L0/Nu+CbC5qcZUI8dPOaDnGW10Uq/Q+c/nIXyYtwsm 9A13IeC4FGYXjbhxwJOBRgBsBf4riG5/NxjgY0GFD6CRI/Q1I6gh/5bFrl8O3sRT5E fkTyNxrnsBhvOZDCZFjTH904M4af8KMt7VfEGd1snQtuwByFoSkj+PJCfpN0AxEzTP kkYCAh2Af1ung== 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 , =?utf-8?q?Pali_Roh=C3=A1r?= , Rayagonda Kokatanur , Simon Glass , Stefan Roese Subject: [PATCH v1 00/16] arm: xea: Update i.MX28 XEA board to use DM_SERIAL Date: Fri, 19 May 2023 12:43:42 +0200 Message-Id: <20230519104359.2048821-1-lukma@denx.de> X-Mailer: git-send-email 2.30.2 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 patch series fixes i.MX28 based XEA board to utilize DM_SERIAL Changes: - Patches 1-3 - fix DTS (after Linux update) to debrick XEA - Patches 4-8 - prepare XEA's DTS to support DM_SERIAL - Patches 9-11 - fixes serial_pl01x.c driver (as this driver is used by XEA, I would prefer to have this in a single patchset - otherwise board may be bricked - Patches 12-14 - XEA and imx28 generic code fixes to support DM_SERIAL with OF_PLATDATA - Patches 15-16 - config modification to support DM_SERIAL CI: https://dev.azure.com/lukma633/U-Boot/_build/results?buildId=44&view=results Applied on top of u-boot/master branch SHA1: 6e1852ca2c418e2536ead4b51c4d84a59926b3f1 Lukasz Majewski (16): dts: xea: Delete not used in u-boot DTS nodes dts: xea: Provide missing FEC required properties (mac0 and reg_fec_3v3) defconfig: xea: Change default spi-nor memory bus to 2 spl: xea: Provide stub DM driver for imx28 clocks dts: xea: Enable debug UART support in XEA's SPL (DM_SERIAL) dts: xea: Add u-boot specific 'type' property to duart dts: xea: Remove clocks property from debug UART on XEA dts: xea: Disable 'clks' node for xea (imx287) serial: pl01x: Change OF_CONTROL to OF_REAL serial: pl01x: Prepare the driver to support SPL_OF_PLATDATA serial: pl01x: Modify pending callback to test if transmit FIFO is empty arm: mxs: Prevent serial console init when in very early SPL boot code arm: xea: Call spl_early_init() before DM serial console is enabled in SPL arm: Kconfig: Switch XEA (imx287 based) board to use CONFIG_PL01X_SERIAL config: xea: Enable DM_SERIAL for the XEA (imx287 based) board config: xea: Enable DM_SERIAL for the XEA - single binary (SB) u-boot arch/arm/Kconfig | 2 +- arch/arm/cpu/arm926ejs/mxs/spl_boot.c | 6 ++-- arch/arm/dts/imx28-xea-u-boot.dtsi | 45 +++++++++++++++++++++++++ arch/arm/mach-imx/mxs/Kconfig | 1 + board/liebherr/xea/xea.c | 20 ++++++++++- configs/imx28_xea_defconfig | 5 +-- configs/imx28_xea_sb_defconfig | 2 ++ drivers/serial/serial_pl01x.c | 16 +++++++-- include/dm/platform_data/serial_pl01x.h | 4 +++ 9 files changed, 93 insertions(+), 8 deletions(-)