Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3464707ybi; Tue, 18 Jun 2019 00:59:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqyK6GHUk8TtfbrNygysaelulUdqlcgaGQhFzZzAjp0u5c5TcduWqMs3LlL7/UJITXsUKn8U X-Received: by 2002:a17:90a:1b0c:: with SMTP id q12mr3720253pjq.76.1560844740919; Tue, 18 Jun 2019 00:59:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560844740; cv=none; d=google.com; s=arc-20160816; b=ceWeuU92KwWloXtRWfzP7HWNJwlPkwkobKVNL4sXNdSjrn2t/OkZwaw85K8ljsPGEp ieRF2+WkGI7m7xKC5DIsVzzRPgVn9mL5zkqx7rHoppToXArm6ZcaRM5FjyrJFUn+ifM6 Cj8sQrUKimnB8JnDLpW7xFClYUtsFhLCRBOTWwED7kA9lmqpilF8iOvl7A2+qlKE5jPD wzJG2LX4BqUng01kYwn/iG+/6J0z1r5fRE0LO/VmiTPK8f3YnuFBXolN8nTGy7/UOAtJ BPg+S4Q8vaVsU6e5rFu51mHLjK8GKg972z1tB8oqlxL3s8XoOoBf4+X80iP4tkyjLpPE RcIQ== 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=bxoc5/YWGBSJZWeOJnUb4ABn8p6gJT0nStCBWSa2eA4=; b=nREeGb6xg3NddfJ6zu93vRcTqR5/97jY8zmEFwAMmAW1mOITuawF1BNvIRFpox/9OY NgLwyYqqg4EDYrCpGP7K7Gg3Y60AFnAkXbDmJsB4jbTljJ54S+cfN/A2s+JRpZQU//VR XxO5AT+4cSQ2CTxIZvEop/gQIOfBh8f52n0leT/mqY+dGq+twRHTPwUOPEA0hvMn/+nM SO4uG7n93sZtnNSmH3pRfSRVk0Y5lg+yJonN7MuGTExZkmlOCM7pLmcTHnmGRHpHekBu 4LXXg3mWgxU+N1+69YtLl6cLiL0/hVXFQJiFtrQKLsO2uV7PK7KSPeqeVpzUzBCINEUN RMXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=ngLBMMPw; 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 v16si2976902pfe.39.2019.06.18.00.58.45; Tue, 18 Jun 2019 00:59:00 -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=ngLBMMPw; 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 S1725913AbfFRH6i (ORCPT + 99 others); Tue, 18 Jun 2019 03:58:38 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:43617 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726007AbfFRH6i (ORCPT ); Tue, 18 Jun 2019 03:58:38 -0400 Received: by mail-pg1-f193.google.com with SMTP id f25so7218159pgv.10 for ; Tue, 18 Jun 2019 00:58:37 -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=bxoc5/YWGBSJZWeOJnUb4ABn8p6gJT0nStCBWSa2eA4=; b=ngLBMMPw8YFffR+8THORT8LivSqIKXuvMWgEh1bCZb5ASHThP8ifiVQ6GzM9xKwr5k gJKt8WKUo1+ReF+bXeawLiDxNZoizIU1MlzklfUyZexrj5DvjcyB5Gkt6SLITCqfq0w+ iYyrOFndZb3g2KH23GJOQZGa18+JsA9VHIuNdATXs3tvaU7IZPXAIe8fUQ6A0bJaEgFU 35LQbWYuNSZPjQ2RRXnbbkMypJ/63njJCnm2RhsAvKZroy1QRGs4E10wH8TnGiaQdh71 NO9mO/MrvrowbLlz4zm3GCQlI6qpZ662yWwA+iIljNm3AnMLpImXOzep1Sov08WO+Y7f HK2Q== 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=bxoc5/YWGBSJZWeOJnUb4ABn8p6gJT0nStCBWSa2eA4=; b=CBoaZe6NtRysKStUy+4izh4hYDeMZl16b5zBvmpWQ+CN73sSPJFZzUtD4cuK/u0IjX 2kgjeV3pyEEB24ERfnhahL47kK/txBvwFa9knkgbwyC3r+OsJvVYlSGAv7+gKwHgn6gj 3axObLdxxM1Mv/jLcxWKQVzfnE9x9Ky89KkU/z7Ck/ebL45xxvuD7OfnvTpucvau52BU fS8pyTJo9jfVVYv3cU8RBgg+NhAM+HWVmYPtGPb9vUYOAM9ALG6W6ADCnVCreVxOY8Ug Ti13erX6m5uKqZthUGZ4nynQRo4CKvPrUVrCmORLuPN7lWU6J1OGP2L+xM4QxeT4HLHi ifag== X-Gm-Message-State: APjAAAWcl51NoPs7+UuqEmS5AieSnD+wI2miNXGh9tehJC0AHg5CCF1b /BaP5Nm9lscJ1sjwIBqLNBJ79w== X-Received: by 2002:a63:a044:: with SMTP id u4mr1461003pgn.316.1560844717487; Tue, 18 Jun 2019 00:58:37 -0700 (PDT) Received: from buildserver-90.open-silicon.com ([114.143.65.226]) by smtp.googlemail.com with ESMTPSA id b23sm15780499pfi.6.2019.06.18.00.58.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Jun 2019 00:58:36 -0700 (PDT) From: Yash Shah To: davem@davemloft.net, devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Cc: robh+dt@kernel.org, mark.rutland@arm.com, nicolas.ferre@microchip.com, palmer@sifive.com, aou@eecs.berkeley.edu, paul.walmsley@sifive.com, ynezz@true.cz, sachin.ghadi@sifive.com, Yash Shah Subject: [PATCH v3 0/2] Add macb support for SiFive FU540-C000 Date: Tue, 18 Jun 2019 13:26:06 +0530 Message-Id: <1560844568-4746-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_v3 branch of: https://github.com/yashshah7/riscv-linux.git Change History: V3: - Revert "MACB_SIFIVE_FU540" config changes in Kconfig and driver code. The driver does not depend on SiFive GPIO driver. V2: - Change compatible string from "cdns,fu540-macb" to "sifive,fu540-macb" - Add "MACB_SIFIVE_FU540" in Kconfig to support SiFive FU540 in macb driver. This is needed because on FU540, the macb driver depends on SiFive GPIO driver. - Avoid writing the result of a comparison to a register. - Fix the issue of probe fail on reloading the module reported by: Andreas Schwab Yash Shah (2): macb: bindings doc: add sifive fu540-c000 binding macb: Add support for SiFive FU540-C000 Documentation/devicetree/bindings/net/macb.txt | 3 + drivers/net/ethernet/cadence/macb_main.c | 123 +++++++++++++++++++++++++ 2 files changed, 126 insertions(+) -- 1.9.1