From patchwork Fri Apr 20 19:34:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramon Fried X-Patchwork-Id: 133918 Delivered-To: patch@linaro.org Received: by 10.46.66.142 with SMTP id h14csp653587ljf; Fri, 20 Apr 2018 12:34:25 -0700 (PDT) X-Google-Smtp-Source: AIpwx49Vf601/VFqUPTSscf/RHDO6UKJN81RlZIoZ299vZIRJmfebrFXWe37ENFIrf2NG1inpDs9 X-Received: by 10.80.140.68 with SMTP id p62mr9195607edp.38.1524252865146; Fri, 20 Apr 2018 12:34:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524252865; cv=none; d=google.com; s=arc-20160816; b=qZjRV2QDATE9wVsBcjSiSXNtKperyA5Gd6OBr2BI9nhXktQfOd9hrZ1vX08Hka49kz Ss0EwOZ95fWnNaLIUdmiYDqx61AFHvlLXtV2J3gOrJ4Ku6zZcFicFHf5OCUe+NaguQJ7 y7fLWkV5TnUyr04KA+rURQeHmYNx3JpKr4E9vU+2wbWGItV452rlLTXAiq3cbVuC2tlk 75oMvlXg5PnPNrUPYGp/clzAdfN26neiehP2B4ts6TudOyobIKwRcZ1ddjIqB8/ejqn8 kFKWn2lyBRdK1Kzn5Tyc/XlO5i1LvJxpMZ+V3+SMZi50QhN1KjO85nDHrn7e29tXPs/P zSiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=+J1bkAWw23Jj8ysOzOCEEFkS6ytWw8npsPP+0tJY6Vw=; b=S0cCj2UaHdMRBoHZ3WFjXu4kaSym1O2QYGfNgCMLVyeuxgK7Yuj1mDh3fmFD9LGqwO ksnPWtCmQtrPj1B5uiczF+I8Asd5uovzqpuagIYzq3ZkCEmHrJ3M4eG7ztsW97oONjtE SOsyBhztN+JwFmSZojyv30FQgoX5UN1XkYL6chRYVlXZYNYM2PMD9o7sq479uXezc9Je gH9hltXChMk5H75U0nKdQ6JUgCRSmBwATrDAZRLhYVAXWhYfFrCYqfdtSKRl3ak1tmRG hLj39rTJv9SqfzFkYv0T+Q6UrAtGM8ctyGjD32kgy5jy5GHKluCr8mknJxDtjdnP3oYq ZZqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=FySn0ZuM; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id g17si545082edp.145.2018.04.20.12.34.24; Fri, 20 Apr 2018 12:34:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=FySn0ZuM; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 5F2B3C21DED; Fri, 20 Apr 2018 19:34:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 6C2C5C21C2F; Fri, 20 Apr 2018 19:34:15 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 1BC69C21C57; Fri, 20 Apr 2018 19:34:12 +0000 (UTC) Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by lists.denx.de (Postfix) with ESMTPS id 96A05C21C29 for ; Fri, 20 Apr 2018 19:34:12 +0000 (UTC) Received: by mail-wr0-f196.google.com with SMTP id d1-v6so25672762wrj.13 for ; Fri, 20 Apr 2018 12:34:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=KUu9eQtK76MusKG2ri/XCt353ufSngk6xCg2A72ju94=; b=FySn0ZuM70c0jXSQxXNtFZ314laM5kvLiug7ulHoKl5VgAyzOksuXTdlTWZ1sp0dti bV35WGa7xMDgIYUaDfHgxWxNj6fC9NomIgIfCUQhafKISS+tRGCwKZRWHiTEn0S7FjXV dEkBWZAsw+hqY1Op1SZBMqtdy8m6k6uVBWkoY= 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=KUu9eQtK76MusKG2ri/XCt353ufSngk6xCg2A72ju94=; b=L6N2HksyLLNdG+55NFslk0uElTHs9/UJlGkd+nuKWG0AazzcKunpYaa3FepdUwc5rF ItqXMDP2sPiqGxtFa5V0u/fpcORnH70CHKQq6Hrzvuj3X35l7qdncpT++Pu95++k5jam xv1A8D3v66ZNfxd2F4Cc1pj+OMEixADViJX5NWT0JE2baTp0KLTmYHymYZdgDenPXWn9 LT8IiA2Km0v/fV4+ofaBsoc0l/PMe8VdjLPH32vT4hlzyc9jReJ82YZQoJ9IrxI1cOFE fKoDnGSalj98bna7LZeaFrb07cvfbgXBZ1qoPIiUn44STakPRxeo1jxZALdS3Eaw+oeU sCNQ== X-Gm-Message-State: ALQs6tDPQz2AuqQIAYndwrhFOqWrwOsOSfCzR/icgCyNXhKLq0G8QUTL Q1vMEGug0uanafJt3HoOoqllgQ== X-Received: by 2002:adf:ad94:: with SMTP id w20-v6mr9411905wrc.83.1524252852193; Fri, 20 Apr 2018 12:34:12 -0700 (PDT) Received: from localhost.localdomain ([141.226.166.38]) by smtp.gmail.com with ESMTPSA id 64sm2350318wmb.2.2018.04.20.12.34.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Apr 2018 12:34:11 -0700 (PDT) From: Ramon Fried To: albert.u.boot@aribaud.net, robdclark@gmail.com, pbrobinson@gmail.com, jramirez@baylibre.com Date: Fri, 20 Apr 2018 22:34:03 +0300 Message-Id: <20180420193403.20619-1-ramon.fried@linaro.org> X-Mailer: git-send-email 2.14.1 Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH v2] db410c: set clk node to be probed before relocation X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The clock node is used by the serial driver and it's needed before relocation. This patch ensures that the msm-serial driver can actually use the clock node. Signed-off-by: Ramon Fried --- v2: Moved the u-boot,dm-pre-reloc attribute to the -uboot.dtsi file arch/arm/dts/dragonboard410c-uboot.dtsi | 8 ++++++++ arch/arm/dts/dragonboard410c.dts | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/dragonboard410c-uboot.dtsi b/arch/arm/dts/dragonboard410c-uboot.dtsi index c3475c4227..adf6b62f13 100644 --- a/arch/arm/dts/dragonboard410c-uboot.dtsi +++ b/arch/arm/dts/dragonboard410c-uboot.dtsi @@ -10,6 +10,14 @@ config { u-boot,mmc-env-partition = "boot"; }; + + soc { + u-boot,dm-pre-reloc; + + serial@78b0000 { + u-boot,dm-pre-reloc; + }; + }; }; diff --git a/arch/arm/dts/dragonboard410c.dts b/arch/arm/dts/dragonboard410c.dts index 5ccfe7f8c8..d6a296ca37 100644 --- a/arch/arm/dts/dragonboard410c.dts +++ b/arch/arm/dts/dragonboard410c.dts @@ -44,12 +44,12 @@ reg = <0x1800000 0x80000>; #address-cells = <0x1>; #size-cells = <0x0>; + u-boot,dm-pre-reloc; }; serial@78b0000 { compatible = "qcom,msm-uartdm-v1.4"; reg = <0x78b0000 0x200>; - u-boot,dm-pre-reloc; clock = <&clkc 4>; };