From patchwork Wed Feb 19 13:04:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Opaniuk X-Patchwork-Id: 1240710 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: 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: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=hEvSgX4v; 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 RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48Mycn5ZQnz9sSL for ; Thu, 20 Feb 2020 00:05:13 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CC69980E9E; Wed, 19 Feb 2020 14:05:04 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="hEvSgX4v"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A079A80E91; Wed, 19 Feb 2020 14:05:00 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 37AD380592 for ; Wed, 19 Feb 2020 14:04:57 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=igor.opaniuk@gmail.com Received: by mail-wr1-x442.google.com with SMTP id g3so388409wrs.12 for ; Wed, 19 Feb 2020 05:04:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=/RgSxJKUbBqPnIkFJYhrwgxC4va2mquEiRU0s42Tblg=; b=hEvSgX4vXVuXAQY7cIDQFB9toAufjrYnlnzCikPSZgfhJ9KxI2WcJtS9zG56B9VvhJ 6knyqfx6DjCyra9IIo1o2WrTp8J8f+cL4uUi7MvQuYkA9l5c2N+wN0vI+9Hqdgq0o2Ga O2DKQrxUStW7EA3lUgnp2TYifFt6+woMFSvC1FTOq+YC+L7h+cFuk8hGmZV4i3OZN2/K e9th8ATgQFjSGHAxPQKwmtLyQU6Rxup+cBS4K4eNNsvfCTvlA9VnkO9kIcHgmG2W0xsD QUbgDabn72o3+k597Z9Zv++xlDm3pSkepWT+N4mylHsGVMQuCwPvqX8HUCCbhFQnPT1s UcIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=/RgSxJKUbBqPnIkFJYhrwgxC4va2mquEiRU0s42Tblg=; b=FAZsKjUWTvkz+9VMvpunmaQoKWX8g1IN6bpDO2oD6FgEqLKelQdqvtnCOjwRTTO0mC uFY/dVrf02KlxcQuJyTUR2qgFRoN0yjw/xZziPjx7dZ9DeXg8QcDxSPxjr5fGuo44rj6 2zmanyAs0F+W9blW9VARLczszZPoCIqccGTfBZx0cJf2IkbBZKlBsgy4L4/EZH/vtw7d iVFLtd079njGkT5xIn1tAIJi3+enzBD66FyjKqOXkHkM9e5Ysx88NPZk2MwGrRnQ+/SG 2jPbSq7FVIOHUA4tD+eBpx/O+4dINQVlPdDs+1YF64x0m+yr97dSiY5HT0dGJ98MU9Ln 9Ntw== X-Gm-Message-State: APjAAAXJalZ4oMPBrOi3SjsA2922gz992+BnUiFoiWCAl+ydvoTU3sQw qmYlTCZkIFUa6w7y+MzxMRXeySJdPv4= X-Google-Smtp-Source: APXvYqwhoyH5LW7G+CeIwUnOpJ/ZxU0KiMx7seZwbjIlkZtO3o7XpshaMxTKikxFtsq/ncwm634LzA== X-Received: by 2002:a05:6000:12c7:: with SMTP id l7mr34196286wrx.136.1582117496264; Wed, 19 Feb 2020 05:04:56 -0800 (PST) Received: from localhost ([194.105.145.90]) by smtp.gmail.com with ESMTPSA id d13sm2964282wrc.64.2020.02.19.05.04.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 19 Feb 2020 05:04:54 -0800 (PST) From: Igor Opaniuk To: u-boot@lists.denx.de Cc: Peng Fan , Fabio Estevam , Philippe Schenker , Oleksandr Suvorov , Marcel Ziswiler , Max Krummenacher , Igor Opaniuk , "NXP i.MX U-Boot Team" , Stefano Babic Subject: [PATCH v1 1/4] ARM: dts: imx8qm-apalis: replace dm-spl with dm-pre-proper Date: Wed, 19 Feb 2020 15:04:49 +0200 Message-Id: <20200219130452.8895-1-igor.opaniuk@gmail.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 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.102.2 at phobos.denx.de X-Virus-Status: Clean From: Igor Opaniuk For non-SPL/TPL setups dm-spl, dm-tpl, dm-pre-proper, dm-pre-reloc are handled equally, forcing the nodes with these properties to be accessible and device being probed before pre-relocation of U-Boot proper (drivers/core/util.c): bool ofnode_pre_reloc(ofnode node) { /* for SPL and TPL the remaining nodes after the fdtgrep 1st pass * had property dm-pre-reloc or u-boot,dm-spl/tpl. * They are removed in final dtb (fdtgrep 2nd pass) */ return true; if (ofnode_read_bool(node, "u-boot,dm-pre-reloc")) return true; if (ofnode_read_bool(node, "u-boot,dm-pre-proper")) return true; /* * In regular builds individual spl and tpl handling both * count as handled pre-relocation for later second init. */ if (ofnode_read_bool(node, "u-boot,dm-spl") || ofnode_read_bool(node, "u-boot,dm-tpl")) return true; return false; } Howewer, to avoid confusion in future, replace dm-spl `%s/dm-spl/dm-pre-proper/g` properties to dm-pre-proper to explicitly state that they are handled during pre-relocation stage of U-Boot proper. Signed-off-by: Igor Opaniuk Reviewed-by: Oleksandr Suvorov --- arch/arm/dts/fsl-imx8qm-apalis-u-boot.dtsi | 62 +++++++++++----------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/arch/arm/dts/fsl-imx8qm-apalis-u-boot.dtsi b/arch/arm/dts/fsl-imx8qm-apalis-u-boot.dtsi index 7b1a9550e4..6cdf58c8ad 100644 --- a/arch/arm/dts/fsl-imx8qm-apalis-u-boot.dtsi +++ b/arch/arm/dts/fsl-imx8qm-apalis-u-boot.dtsi @@ -4,125 +4,125 @@ */ &mu { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &clk { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &iomuxc { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &pd_lsio { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &pd_lsio_gpio0 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &pd_lsio_gpio1 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &pd_lsio_gpio2 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &pd_lsio_gpio3 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &pd_lsio_gpio4 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &pd_lsio_gpio5 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &pd_lsio_gpio6 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &pd_lsio_gpio7 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &pd_conn { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &pd_conn_sdch0 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &pd_conn_sdch1 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &pd_conn_sdch2 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &gpio0 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &gpio1 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &gpio2 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &gpio3 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &gpio4 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &gpio5 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &gpio6 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &gpio7 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &lpuart0 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &lpuart1 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &lpuart2 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &lpuart3 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &usdhc1 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &usdhc2 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &usdhc3 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; From patchwork Wed Feb 19 13:04:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Opaniuk X-Patchwork-Id: 1240711 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: 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: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=Z6XZGonv; 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 RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48Myd15kd7z9sSM for ; Thu, 20 Feb 2020 00:05:25 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A66288104A; Wed, 19 Feb 2020 14:05:20 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Z6XZGonv"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CBE4380E91; Wed, 19 Feb 2020 14:05:03 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id ADB3180722 for ; Wed, 19 Feb 2020 14:04:58 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=igor.opaniuk@gmail.com Received: by mail-wm1-x343.google.com with SMTP id a6so584945wme.2 for ; Wed, 19 Feb 2020 05:04:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mpTKE8rrQzdnFsVsl0DU7uIjyppNldnaGJP9zhJHaRs=; b=Z6XZGonv4Q8SvJDk7vrevuaWlxULcLUn3R3NHQdtk4D5ESwQd3ozEg7XhPgdXzARZY QuNGxyF6gNG8YWL2yZzS8O33ejaNBo63ClanVSb8yt4TlPtgB1Hw891/Wbci6jMA7D2F MJkfcotBbqa2SFqpOUqsfKGW8ohAl7ae4rlQ/3OsYL11EnmXensETRFzhcSHGJfox1BT LR1SgKR8wA6YMt09UVz6Mt5wPjHkJjXoaa3B+46qj59zZmU1yPzTC7F8J3WO+YspRZAc 6ZfJHI6S1sDnk0SIsU2CGj7vwVwiVNH5vH/Q4m5C+VmWL7QmKlSrf5+G1+XGvEv2n4L3 43+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=mpTKE8rrQzdnFsVsl0DU7uIjyppNldnaGJP9zhJHaRs=; b=Ywu5nDpLbjAx3TRfLDqF2xINLB1pFL5qiZBWAPvsfZLG9jZLPXg/JeSMybr9ORrxKx Y9N6F4SYzLg+sBhUKXzFYI2MgejiWYwHF9gua2yxPGZysj0wuJLXILHqrBdflZsg5f+6 QHRtg0xAqBuTpby6Vg3uvVppvBLouDOIA9mA2ixgBE4QIih/I8rPq+sLaXXgqrceZYzk LGHEWeYJBzFB8R6ZYAJkS8MB30ekA2QYuLvTyLCOTcJN8TJkPZ8xbk3ua9Ojs0kzdUmx zacaBVSxaf7AXKSBhY7tyetsz7fElvunbquDwxqt2KP7jvh5ctkFzrNTqciHHiXFl6eu TgIA== X-Gm-Message-State: APjAAAVe1CHsoi/Vd7sa2wtIcBcklJXQa6JiTEINF/9ac2ObXtL6CHvS 6Ysgij9jOd/940A//CdQHQXnlqhBbqI= X-Google-Smtp-Source: APXvYqwfsijlKWXEA1bCPOdK/74mbJVawhsJ1Jegd+SJp5Gjr+5Wm0D+VHtMoe9p40LXER6xI0+ZFw== X-Received: by 2002:a05:600c:21c4:: with SMTP id x4mr7863781wmj.147.1582117497876; Wed, 19 Feb 2020 05:04:57 -0800 (PST) Received: from localhost ([194.105.145.90]) by smtp.gmail.com with ESMTPSA id c15sm2958955wrt.1.2020.02.19.05.04.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 19 Feb 2020 05:04:57 -0800 (PST) From: Igor Opaniuk To: u-boot@lists.denx.de Cc: Peng Fan , Fabio Estevam , Philippe Schenker , Oleksandr Suvorov , Marcel Ziswiler , Max Krummenacher , Igor Opaniuk , "NXP i.MX U-Boot Team" , Stefano Babic Subject: [PATCH v1 2/4] ARM: dts: imx8qxp-colibri: replace dm-spl with dm-pre-proper Date: Wed, 19 Feb 2020 15:04:50 +0200 Message-Id: <20200219130452.8895-2-igor.opaniuk@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200219130452.8895-1-igor.opaniuk@gmail.com> References: <20200219130452.8895-1-igor.opaniuk@gmail.com> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 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.102.2 at phobos.denx.de X-Virus-Status: Clean From: Igor Opaniuk For non-SPL/TPL setups dm-spl, dm-tpl, dm-pre-proper, dm-pre-reloc are handled equally, forcing the nodes with these properties to be accessible and device being probed before pre-relocation of U-Boot proper (drivers/core/util.c): bool ofnode_pre_reloc(ofnode node) { /* for SPL and TPL the remaining nodes after the fdtgrep 1st pass * had property dm-pre-reloc or u-boot,dm-spl/tpl. * They are removed in final dtb (fdtgrep 2nd pass) */ return true; if (ofnode_read_bool(node, "u-boot,dm-pre-reloc")) return true; if (ofnode_read_bool(node, "u-boot,dm-pre-proper")) return true; /* * In regular builds individual spl and tpl handling both * count as handled pre-relocation for later second init. */ if (ofnode_read_bool(node, "u-boot,dm-spl") || ofnode_read_bool(node, "u-boot,dm-tpl")) return true; return false; } Howewer, to avoid confusion in future, replace dm-spl `%s/dm-spl/dm-pre-proper/g` properties to dm-pre-proper to explicitly state that they are handled during pre-relocation stage of U-Boot proper. Signed-off-by: Igor Opaniuk Reviewed-by: Oleksandr Suvorov --- arch/arm/dts/fsl-imx8qxp-colibri-u-boot.dtsi | 56 ++++++++++---------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/arch/arm/dts/fsl-imx8qxp-colibri-u-boot.dtsi b/arch/arm/dts/fsl-imx8qxp-colibri-u-boot.dtsi index 5b061f94ba..87de9b5653 100644 --- a/arch/arm/dts/fsl-imx8qxp-colibri-u-boot.dtsi +++ b/arch/arm/dts/fsl-imx8qxp-colibri-u-boot.dtsi @@ -5,113 +5,113 @@ &{/imx8qx-pm} { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &mu { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &clk { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &iomuxc { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &pd_lsio { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &pd_lsio_gpio0 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &pd_lsio_gpio1 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &pd_lsio_gpio2 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &pd_lsio_gpio3 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &pd_lsio_gpio4 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &pd_lsio_gpio5 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &pd_lsio_gpio6 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &pd_lsio_gpio7 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &pd_conn { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &pd_conn_sdch0 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &pd_conn_sdch1 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &pd_conn_sdch2 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &gpio0 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &gpio1 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &gpio2 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &gpio3 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &gpio4 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &gpio5 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &gpio6 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &gpio7 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &lpuart3 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &usdhc1 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; &usdhc2 { - u-boot,dm-spl; + u-boot,dm-pre-proper; }; From patchwork Wed Feb 19 13:04:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Opaniuk X-Patchwork-Id: 1240713 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: 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: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=uvXtZ/Sx; 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 RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48MydT121hz9sPk for ; Thu, 20 Feb 2020 00:05:48 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3948E810E0; Wed, 19 Feb 2020 14:05:39 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="uvXtZ/Sx"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DF9118101B; Wed, 19 Feb 2020 14:05:07 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4C86E80E8F for ; Wed, 19 Feb 2020 14:05:00 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=igor.opaniuk@gmail.com Received: by mail-wr1-x441.google.com with SMTP id t3so428502wru.7 for ; Wed, 19 Feb 2020 05:05:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ACal5oHMmAMGmaZtCw2/QgTUzC6Yr171jXVO1JjGhw0=; b=uvXtZ/SxTuWpKVYicScAew7RrGt3rW8f3N/ijtvWXJ3yWJomTLxnEEhckFa/hgv8SL yAIiYSatjMDqEI1pzS2c9novLlICxaygTT7wa99qm/M874BLG9wdWzSm5E5RUiXWfTnp nZhLC+2bzCUmWTye966s2TZWduXL17I6Xs7GHnii9wJllIbV1T9nM0xay8ySvso2NxE7 UI46Dueu/spX9Hf7sRWO6/nmDe/DpSqpWDBC9KnqSOhVOj5WlMEd8Xhvd3V7NzqdAch9 XiEdG9hxLuOJqau9MwaPW1D+OS7ubacvqPaEh9xBT4+StKSjCeH1veF7ZiUJ8oweqHie X+3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ACal5oHMmAMGmaZtCw2/QgTUzC6Yr171jXVO1JjGhw0=; b=ci6wf19A610D227Bv0Rl+sjep+7XZbdFWZVxn+gYTp0Lvc10cQCAdEa/GteGV0VlNZ D9g5hVPO7e9EEkRjhkm+vcnleCjE+m6HTCU7Z9SOzhfipW38zdD3MfQH5IBX4emVOz7/ Pkwd9bssBnRPDHpY/FyFVv5gsbV0HVAdjmCkvQIx838r4nk0gs/yqsox9/XYV/dvDZ0M 04aLyu1S9SwFqsu99/3NCfRYHmCnAgvCIocBjxU83+5crv5ctk8CdKPeBJaC3SxbzFhZ dZYZqeQy83FkcHMjkUYk14HAGW1tiNnBitUtFTuc3+ChY2EnsPyjpda8ueuFR7ZNsljR bH+g== X-Gm-Message-State: APjAAAWiVBuZchprqxWS8ShZ0OpT7pKk9LgV7EWFIPajFLz67noZTwLM D+od3kLu4Jsj2WTNmWWfIRCrLh/+io0= X-Google-Smtp-Source: APXvYqwn3KNccDnarSdgCJpxwHYAMVTL78oxf4IFF/ikJfK9JyYZmpA+Y4o7i//LnbGA7CpxJLelSw== X-Received: by 2002:adf:a381:: with SMTP id l1mr35919556wrb.102.1582117499513; Wed, 19 Feb 2020 05:04:59 -0800 (PST) Received: from localhost ([194.105.145.90]) by smtp.gmail.com with ESMTPSA id r3sm3029480wrn.34.2020.02.19.05.04.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 19 Feb 2020 05:04:58 -0800 (PST) From: Igor Opaniuk To: u-boot@lists.denx.de Cc: Peng Fan , Fabio Estevam , Philippe Schenker , Oleksandr Suvorov , Marcel Ziswiler , Max Krummenacher , Igor Opaniuk , "NXP i.MX U-Boot Team" , Stefano Babic Subject: [PATCH v1 3/4] ARM: dts: imx8qm-apalis: dm-pre-proper for pd_dma nodes Date: Wed, 19 Feb 2020 15:04:51 +0200 Message-Id: <20200219130452.8895-3-igor.opaniuk@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200219130452.8895-1-igor.opaniuk@gmail.com> References: <20200219130452.8895-1-igor.opaniuk@gmail.com> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 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.102.2 at phobos.denx.de X-Virus-Status: Clean From: Igor Opaniuk pd_dma_* nodes should be accessible during pre-relocation stage of U-Boot proper for properly handling power domains. This fixes the issue with permanent failing of invocation of power_domain_get_by_index() in the common code of DM power domain uclass (drivers/power/domain/power-domain-uclass.c). Fixes: f0cc4eae9a ("core: device: use dev_power_domain_on") Signed-off-by: Igor Opaniuk Reviewed-by: Oleksandr Suvorov --- arch/arm/dts/fsl-imx8qm-apalis-u-boot.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/dts/fsl-imx8qm-apalis-u-boot.dtsi b/arch/arm/dts/fsl-imx8qm-apalis-u-boot.dtsi index 6cdf58c8ad..956d724979 100644 --- a/arch/arm/dts/fsl-imx8qm-apalis-u-boot.dtsi +++ b/arch/arm/dts/fsl-imx8qm-apalis-u-boot.dtsi @@ -51,6 +51,14 @@ u-boot,dm-pre-proper; }; +&pd_dma { + u-boot,dm-pre-proper; +}; + +&pd_dma_lpuart1 { + u-boot,dm-pre-proper; +}; + &pd_conn { u-boot,dm-pre-proper; }; From patchwork Wed Feb 19 13:04:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Opaniuk X-Patchwork-Id: 1240712 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: 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: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=fMhN3Rpk; 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 RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48MydG3pPzz9sPk for ; Thu, 20 Feb 2020 00:05:37 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DCBF281022; Wed, 19 Feb 2020 14:05:34 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="fMhN3Rpk"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C4F528100F; Wed, 19 Feb 2020 14:05:09 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BB9C180592 for ; Wed, 19 Feb 2020 14:05:01 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=igor.opaniuk@gmail.com Received: by mail-wm1-x343.google.com with SMTP id a9so576355wmj.3 for ; Wed, 19 Feb 2020 05:05:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=MPEMRmrHeiIOuE2PzNWaG2LIJmcx5nICfcmD7IrIm0o=; b=fMhN3RpksbvPmIDP/evTG8/qltJ7Py/XwtHpl2ucgwqVEUF4PDtVuBPwt3kh6FiKc/ qLP/7v3fzRy/tz7izaIF5DixKflilImevlNlcDBtNe3l27tVUvtSBE0by2fouDwjMOoD dvOZj50hxNd3x9xTev9/PNG7pDURdDgBCIk8ZxxOHq6r1CJpqg/Fxn5e//Wad1/rjgld brciRYSnp04xFJIRO4YwX05/V7u8QbEWE1J6fGexFV3V8/k8sSY2aTb/Gp2QMfVDXGm6 QZKsNNmEhj+iSZN/vb+RhCQXODTsKE9fTvHdnD6WyZBgwSnjpG0Q0sE5N43bPJzgXszV 9uQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=MPEMRmrHeiIOuE2PzNWaG2LIJmcx5nICfcmD7IrIm0o=; b=cC5ynbZla5H+0OW1dPUiMN8Z2iibz1NmPoWky7nXBCZKiw1JAPKL6ADp2RrHJaVvXx qUlUxlRMlaVZN1RppAyrwHrs9j0PFRFyxjHbQLvRPYJ4wddRrbE7y9sE8zKsT/wvObmk bsUgITYLR/UU7T+itE7kA8witYG4EqGFRXW6wEQW9EW0eB6BBW/hYuSpBtIoPLuNInzk +nnhx7/AvhK01pz0dlsmr1WmM+Kcu7GqSjgAg4LPpQstjhSg8I++zd8iWBNC4ZMRVU/R vScPVu0YNV5BsR8eerkwR5rLZk3Ru8zINcTkXtv1rgdfCk17G3AWfcLYhf+BbMTtVElY wvNQ== X-Gm-Message-State: APjAAAW0+XBK+0qllVKVsGphfwn2lsKdkXBM/xwG7bdl7KNVGKc0QikF jRHnJzJ6zQ/Syc0E9OJxaV5a4l6YavM= X-Google-Smtp-Source: APXvYqwIKq51IYjCq5+qcHg27c2hZH8MK8q7GeOwYPdPuEq0awiAyl/pcPHrmBGYc/mbAN4c47jDkA== X-Received: by 2002:a1c:f003:: with SMTP id a3mr10330284wmb.41.1582117501029; Wed, 19 Feb 2020 05:05:01 -0800 (PST) Received: from localhost ([194.105.145.90]) by smtp.gmail.com with ESMTPSA id z8sm2817415wrq.22.2020.02.19.05.05.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 19 Feb 2020 05:05:00 -0800 (PST) From: Igor Opaniuk To: u-boot@lists.denx.de Cc: Peng Fan , Fabio Estevam , Philippe Schenker , Oleksandr Suvorov , Marcel Ziswiler , Max Krummenacher , Igor Opaniuk , "NXP i.MX U-Boot Team" , Stefano Babic Subject: [PATCH v1 4/4] ARM: dts: imx8qxp-colibri: dm-pre-proper for pd_dma nodes Date: Wed, 19 Feb 2020 15:04:52 +0200 Message-Id: <20200219130452.8895-4-igor.opaniuk@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200219130452.8895-1-igor.opaniuk@gmail.com> References: <20200219130452.8895-1-igor.opaniuk@gmail.com> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 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.102.2 at phobos.denx.de X-Virus-Status: Clean From: Igor Opaniuk pd_dma_* nodes should be accessible during pre-relocation stage of U-Boot proper for properly handling power domains. This fixes the issue with permanent failing of invocation of power_domain_get_by_index() in the common code of DM power domain uclass (drivers/power/domain/power-domain-uclass.c). Fixes: f0cc4eae9a ("core: device: use dev_power_domain_on") Signed-off-by: Igor Opaniuk Reviewed-by: Oleksandr Suvorov --- arch/arm/dts/fsl-imx8qxp-colibri-u-boot.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/dts/fsl-imx8qxp-colibri-u-boot.dtsi b/arch/arm/dts/fsl-imx8qxp-colibri-u-boot.dtsi index 87de9b5653..322429a98a 100644 --- a/arch/arm/dts/fsl-imx8qxp-colibri-u-boot.dtsi +++ b/arch/arm/dts/fsl-imx8qxp-colibri-u-boot.dtsi @@ -56,6 +56,18 @@ u-boot,dm-pre-proper; }; +&pd_dma { + u-boot,dm-pre-proper; +}; + +&pd_dma_lpuart0 { + u-boot,dm-pre-proper; +}; + +&pd_dma_lpuart3 { + u-boot,dm-pre-proper; +}; + &pd_conn { u-boot,dm-pre-proper; };