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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 22AD5C77B7A for ; Fri, 19 May 2023 10:45:52 +0000 (UTC) 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 Content-Transfer-Encoding: 8bit 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 { -- 2.30.2