From patchwork Wed Sep 9 16:15:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 11765759 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 49A99138E for ; Wed, 9 Sep 2020 16:23:25 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0B47A206B8 for ; Wed, 9 Sep 2020 16:23:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JAlHZAsj" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0B47A206B8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:34594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kG2sW-0003fl-4r for patchwork-qemu-devel@patchwork.kernel.org; Wed, 09 Sep 2020 12:23:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54866) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kG2ki-0000ib-Te; Wed, 09 Sep 2020 12:15:20 -0400 Received: from mail-lj1-x243.google.com ([2a00:1450:4864:20::243]:38427) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kG2kg-0006YY-Pg; Wed, 09 Sep 2020 12:15:20 -0400 Received: by mail-lj1-x243.google.com with SMTP id w3so4314542ljo.5; Wed, 09 Sep 2020 09:15:18 -0700 (PDT) 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 :mime-version:content-transfer-encoding; bh=dIh6NerjiH44LwAXPnjVVHbLhSVLBK5aoH6ORepxJpQ=; b=JAlHZAsjTSLsjU9QXb7HDnZmYC2f3ERI/+Q+8MDJQ/1rICT8dB1/UuQFLDZnKA/8iV cbVQc41ySLGBzv69Z2MHj4vKzoo5Ssx7YjPWl9VqQXvX3S69Y7dgUUvuG57w5XJ4hJnP AS/z/sUVSsqePBP76Wr6JXpsc3aTEX20ztdVYQiSFdDzoEiht6KrN4uQ7xzzaV7mHdIO AzULheaoCgjbnVVGtbbZdStf/vuUA/tvYuvD4DFexc64rqNTO4dzqpJLfYOR2qcIGx8h O5B6GkPzEf+cOaLKwWTvcRRj4rTeTXceAIZO0IW6xqo5b3htLT2fXUwPcSlwDe9QGEST KCCQ== 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:mime-version:content-transfer-encoding; bh=dIh6NerjiH44LwAXPnjVVHbLhSVLBK5aoH6ORepxJpQ=; b=rE6omSaa9KRtMGRhIpHyoLdP/FeLfH0s9+4W8nbtnQLNN8i8+7DihuZYhOmC5wUGM9 znUd2DFQlJ9M4gNppN7hm62u+wp/3JUR6URDN9VvpvtFc560tVRCHGMsM3A3PNs+axi+ dmX2RGFj8FE0TQ07RGMYygSes1nQFz3HKR8tfhWAoZOcUSz0gzxauAHEHw59B5r5dSxN XV2Mp/qR5YCAwDeGYdie4Xq0FnPZzHuXQe8GCUOBqr4WfHEG0vffTsxgWFKcHZEXLCfy fERwlr161lHgLr5dWqhc4TZt0YwI1oXTxlL/amI/5heQXej7nh4l3cGHkEAGTESf2T8O /bOQ== X-Gm-Message-State: AOAM532A2MpWIrEJWrlLGobDD9wKxh4YaKb36nj+H9pmukWWBJ0daJCL W/WdRd+5a5u0rdPVMNxmsctzg5uRXhg= X-Google-Smtp-Source: ABdhPJzewtq3LmSXFG3VH/BZJKnRvUkznoT+jeSoQwprPehQN2n8El2bkKOhs+/adm1h/DuU1JZs6w== X-Received: by 2002:a2e:814b:: with SMTP id t11mr2467712ljg.367.1599668116736; Wed, 09 Sep 2020 09:15:16 -0700 (PDT) Received: from gmail.com (81-231-232-130-no39.tbcn.telia.com. [81.231.232.130]) by smtp.gmail.com with ESMTPSA id w17sm670391lfr.31.2020.09.09.09.15.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 09:15:16 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Subject: [PATCH v1 1/1] hw/arm: versal-virt: Correct the tx/rx GEM clocks Date: Wed, 9 Sep 2020 18:15:14 +0200 Message-Id: <20200909161514.622998-2-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200909161514.622998-1-edgar.iglesias@gmail.com> References: <20200909161514.622998-1-edgar.iglesias@gmail.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::243; envelope-from=edgar.iglesias@gmail.com; helo=mail-lj1-x243.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -2 X-Spam_score: -0.3 X-Spam_bar: / X-Spam_report: (-0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FSL_HELO_FAKE=1.8, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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: , Cc: figlesia@xilinx.com, peter.maydell@linaro.org, sstabellini@kernel.org, edgar.iglesias@xilinx.com, sai.pavan.boddu@xilinx.com, frasse.iglesias@gmail.com, alistair@alistair23.me, frederic.konrad@adacore.com, qemu-arm@nongnu.org, philmd@redhat.com, luc.michel@greensocs.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" From: "Edgar E. Iglesias" Correct the GEMs tx/rx clocks to use the 125Mhz fixed-clock. This matches the setup with the fixed-link 100Mbit PHY. I also avoids the following warnings from the Linux kernel driver: eth0: unable to generate target frequency: 125000000 Hz Signed-off-by: Edgar E. Iglesias Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Luc Michel --- hw/arm/xlnx-versal-virt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/arm/xlnx-versal-virt.c b/hw/arm/xlnx-versal-virt.c index 4b3152ee77..43d74b850f 100644 --- a/hw/arm/xlnx-versal-virt.c +++ b/hw/arm/xlnx-versal-virt.c @@ -212,7 +212,7 @@ static void fdt_add_gem_nodes(VersalVirt *s) s->phandle.ethernet_phy[i]); qemu_fdt_setprop_cells(s->fdt, name, "clocks", s->phandle.clk_25Mhz, s->phandle.clk_25Mhz, - s->phandle.clk_25Mhz, s->phandle.clk_25Mhz); + s->phandle.clk_125Mhz, s->phandle.clk_125Mhz); qemu_fdt_setprop(s->fdt, name, "clock-names", clocknames, sizeof(clocknames)); qemu_fdt_setprop_cells(s->fdt, name, "interrupts",