From patchwork Sun Aug 11 08:06:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 11088785 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EBFCF746 for ; Sun, 11 Aug 2019 08:11:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E11DF26E69 for ; Sun, 11 Aug 2019 08:11:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D2EE427CF9; Sun, 11 Aug 2019 08:11:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 83BCA26E69 for ; Sun, 11 Aug 2019 08:11:54 +0000 (UTC) Received: from localhost ([::1]:39326 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hwixF-0001IB-TI for patchwork-qemu-devel@patchwork.kernel.org; Sun, 11 Aug 2019 04:11:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60344) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hwisx-0006DA-Bg for qemu-devel@nongnu.org; Sun, 11 Aug 2019 04:07:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hwisw-00041m-Ag for qemu-devel@nongnu.org; Sun, 11 Aug 2019 04:07:27 -0400 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]:33703) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hwisw-00041Y-4Z; Sun, 11 Aug 2019 04:07:26 -0400 Received: by mail-pf1-x444.google.com with SMTP id g2so48249299pfq.0; Sun, 11 Aug 2019 01:07:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=Soss+R8mVg08tv6kS8YP+YW69YI+O20Op04QZAq7bD0=; b=UK+S3cC6PjbuZUPEtEn0+Z+R4lFjV/uyCC5suKsdc4kWh1j3NpbyLbjyLEIpIoSaLZ iivoYHykQkqU9Px1x9C18h9OmjKzQPiWerdxeo8Vi2XLq/IfLIOQLgwsoqPLJTKE3Xe3 TJVCOA28Ktti5OxvcyL5WGvd5HxtAtgzfEKwmLyIK44jma0ceRV7+BQX7sPSCDDW7osT gpQVcd7GJA6CJvCtirENEv6zjC18Ozhps8wAVyfi7AznB67KPQTrWngN/H2ZzuvDDqE4 e1BV7Pm4KDqN4siHl42zijesYbZkz7CLYITEFxPCl+ljwKd0g1kS9HDqbYZM8/EFPKiN PziQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=Soss+R8mVg08tv6kS8YP+YW69YI+O20Op04QZAq7bD0=; b=ly43Q7ntpVuYmdn9NSM2WzAbuBa6Ra+cqVZRmzo6Xp3ykonj5BG/RcYOYQqp4eZv+Y 5qQshwHrapXUGtjqknAJt1IGlAoplfo3T7RgXatRhfD+4ogvLEE+seXesfKSl5xwxL5G eC+Y6VzrfDsSxzzPQPKA7Y+HbW/IMAvUpIzFPO4OOMzJ69Or0VXNegvpfWEl4A8lDZZO T8lvIHhwY7gvyD8ETi9Du4m4osHvKHqb+fWkCjqkoq8vaV7fSJsTGqsXLnupxCZpyjxM +VM2073sEP319BeMcSn2gWzSMWLMskuwFI6lRyI+wF78356CrQWmCGSkwqETEvnJymP7 4+ag== X-Gm-Message-State: APjAAAU7fi+Z3aKbgAHIy9uJ6FVVAknvz1qoDSE6IQrke7+bLDkn+SM5 OOf4YWKl4Qi+kHOdeIgsUt4e4xwd X-Google-Smtp-Source: APXvYqwzATpLu1Z+K1Xn2MWRg4OKMEZIyyvAQdkMxrcFGTu+45E/RTdPYD2BfKuAAaIXDl0ffhO9WQ== X-Received: by 2002:aa7:8102:: with SMTP id b2mr30667127pfi.105.1565510845443; Sun, 11 Aug 2019 01:07:25 -0700 (PDT) Received: from localhost.localdomain (unknown-224-80.windriver.com. [147.11.224.80]) by smtp.gmail.com with ESMTPSA id v8sm87339107pgs.82.2019.08.11.01.07.24 (version=TLS1 cipher=AES128-SHA bits=128/128); Sun, 11 Aug 2019 01:07:24 -0700 (PDT) From: Bin Meng To: Alistair Francis , Palmer Dabbelt , qemu-devel@nongnu.org, qemu-riscv@nongnu.org Date: Sun, 11 Aug 2019 01:06:50 -0700 Message-Id: <1565510821-3927-18-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1565510821-3927-1-git-send-email-bmeng.cn@gmail.com> References: <1565510821-3927-1-git-send-email-bmeng.cn@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::444 Subject: [Qemu-devel] [PATCH v3 17/28] riscv: sifive_u: Change UART node name in device tree X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP OpenSBI for fu540 does DT fix up (see fu540_modify_dt()) by updating chosen "stdout-path" to point to "/soc/serial@...", and U-Boot will use this information to locate the serial node and probe its driver. However currently we generate the UART node name as "/soc/uart@...", causing U-Boot fail to find the serial node in DT. Signed-off-by: Bin Meng Reviewed-by: Alistair Francis --- Changes in v3: None Changes in v2: None hw/riscv/sifive_u.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/riscv/sifive_u.c b/hw/riscv/sifive_u.c index c0b7498..5022b8f 100644 --- a/hw/riscv/sifive_u.c +++ b/hw/riscv/sifive_u.c @@ -274,7 +274,7 @@ static void create_fdt(SiFiveUState *s, const struct MemmapEntry *memmap, qemu_fdt_setprop_cell(fdt, nodename, "reg", 0x0); g_free(nodename); - nodename = g_strdup_printf("/soc/uart@%lx", + nodename = g_strdup_printf("/soc/serial@%lx", (long)memmap[SIFIVE_U_UART0].base); qemu_fdt_add_subnode(fdt, nodename); qemu_fdt_setprop_string(fdt, nodename, "compatible", "sifive,uart0");