Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1652129ybm; Thu, 23 May 2019 04:47:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzWqEAGqG/lEXOks2rL+GYG9rWvr7LvMpxbvuMY4wE8KrR5Oj3omXqZKKI+gjvdldOgQBm0 X-Received: by 2002:a63:d252:: with SMTP id t18mr97997002pgi.131.1558612062407; Thu, 23 May 2019 04:47:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558612062; cv=none; d=google.com; s=arc-20160816; b=FlnRjYgMAwYCRbqTjPfFhnI3/1WqHPnmLoFAtVC14rmfMvD+vmGSJCoCRs1FOuBkIq z6eCsuaZGBvaaGH6lP4QMushXFtm8CFqv93klsmY5A1+fDOT469yjDj9FWJbU1X/6kMk l1TLOKTllgmHDeXDm5F2HM6yTcO3DDr0rbH2SO6pu+XEYZiCMMDQT5Syd2SnxarRvt+T +67YeUFLVqdhkYImsoLujhKmmTPKewMJniQFA3AvIMNKq/zJstK+DlsQEBkWkpC7wnKq jNJ/+uDWFCLo9yoh0T3YbjzENk4dvZ3QBqRo3+Q6p5Kvt7KSM5WXYtJyAf5jdUtoPl4O HC/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=wCUem1x/ylV1bJblqN5DyUuj9iRlSTgirM+Nihz6Yc0=; b=mMbwIbCANy3bq4IiAtsbuOE22I8ATMY2ByYG3jmNxAduWsmvpuaNwO7F+zt/LtQali agcXFnbN6Y0gDT++9NEeEbMfeaUAfHqBnhOJY+D+BlYN0yAUlrCQRtXtvsC6D0j11htn tBly6f3G9HAfpGym0Yqm+zoxG8v1YGXmD1jmgfmx/Eea2r7d2Ayf6IQoQC5S5jvWVV8L ahPfo625VNEaAwBHsS7w9D0KbbBGRqstvzdCfg9lMfXBBZa+/05eHqfR7RLXG4IfAOUd 1oMKxP+9WuqAogwusLQBG6VbDqujJEjy2I9uULEbOgmiufPEPxlXLiBLYavACHHTbrF5 lelQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=kBRcan3e; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 92si30213829plf.299.2019.05.23.04.47.27; Thu, 23 May 2019 04:47:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=kBRcan3e; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730328AbfEWLqX (ORCPT + 99 others); Thu, 23 May 2019 07:46:23 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:37537 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729361AbfEWLqX (ORCPT ); Thu, 23 May 2019 07:46:23 -0400 Received: by mail-pl1-f193.google.com with SMTP id p15so2666978pll.4 for ; Thu, 23 May 2019 04:46:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id; bh=wCUem1x/ylV1bJblqN5DyUuj9iRlSTgirM+Nihz6Yc0=; b=kBRcan3ex7if0+/zQ6bxlRiznWrjYUd+Ho3MCpSpAJ3oI1kOro4TWWVqTr4YjeoAKQ m6ousfyZQWk4f6F4ysIa/GCw5se1GTJWlIALfspm0wUD1QUCHZXLy40cP8cfZ3DsG8VX hYFTF+SAT4gQfiK+oF7F+JIEHF0DEotkzap6a2rIfoVmGpS4dyltZJ6/WP67CY1GJjTu WxOBsrcRA1jE5vQMuCZnAFTY5P3MKkGvN3AiL+YK++gwzVpeaaY0fo7RzBQJoQWi2RJh dts2N4sCqCe/yvCxlveHNdRP/FsbOaqNx5W1AOp2mJ3BEZBZVXFTOkxn8AP5WETImJ8b VmkA== 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=wCUem1x/ylV1bJblqN5DyUuj9iRlSTgirM+Nihz6Yc0=; b=PgjA5T2NVM/GZQ/Qzk7E3RBzC+n8CrHjQr1143rATdQ1e0IQFASHkooSIFrGi5kXN8 +r+OyAhM0DR3vsbazbnqQDaeH7H8CAD5jCYND6Z3xF1GhWIWuusrsGt7MGIXzQZStGWT r+HdZXSdwqlUS0gSiR/6Hk6Rv+Hr0JFrQu2t50+17GBZKC7Unj6ePMm/210afmm184Re hOlfGcfi/kg3D2MPycvwKAWNxh9BTYXouegApbweeENFRkvUziy4V08Aiysw0kIRj6Oq efcQFCQDXQDaa4KY8aFes/I5e3lBoLrOstXD0bY8EF09K05Mwa1Cnamx8d1CR2A85z5s Vmfg== X-Gm-Message-State: APjAAAUUWFUMjrPfI4qntdFyUY7rUJjIITmfU6JSCzbU7w0Y+ftSjv6v sIaoaCFZFXDCxKHh471wlMmsWxXwgcU= X-Received: by 2002:a17:902:ab98:: with SMTP id f24mr95930813plr.223.1558611982802; Thu, 23 May 2019 04:46:22 -0700 (PDT) Received: from buildserver-90.open-silicon.com ([114.143.65.226]) by smtp.googlemail.com with ESMTPSA id l43sm565045pjb.7.2019.05.23.04.46.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 23 May 2019 04:46:21 -0700 (PDT) From: Yash Shah To: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org Cc: robh+dt@kernel.org, mark.rutland@arm.com, nicolas.ferre@microchip.com, palmer@sifive.com, aou@eecs.berkeley.edu, ynezz@true.cz, paul.walmsley@sifive.com, sachin.ghadi@sifive.com, Yash Shah Subject: [PATCH 0/2] net: macb: Add support for SiFive FU540-C000 Date: Thu, 23 May 2019 17:15:50 +0530 Message-Id: <1558611952-13295-1-git-send-email-yash.shah@sifive.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On FU540, the management IP block is tightly coupled with the Cadence MACB IP block. It manages many of the boundary signals from the MACB IP This patchset controls the tx_clk input signal to the MACB IP. It switches between the local TX clock (125MHz) and PHY TX clocks. This is necessary to toggle between 1Gb and 100/10Mb speeds. Future patches may add support for monitoring or controlling other IP boundary signals. This patchset is mostly based on work done by Wesley Terpstra This patchset is based on Linux v5.2-rc1 and tested on HiFive Unleashed board with additional board related patches needed for testing can be found at dev/yashs/ethernet branch of: https://github.com/yashshah7/riscv-linux.git Yash Shah (2): net/macb: bindings doc: add sifive fu540-c000 binding net: macb: Add support for SiFive FU540-C000 Documentation/devicetree/bindings/net/macb.txt | 3 + drivers/net/ethernet/cadence/macb_main.c | 118 +++++++++++++++++++++++++ 2 files changed, 121 insertions(+) -- 1.9.1