Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2083224ybi; Sun, 16 Jun 2019 21:20:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqyoc5/4ue/srAUdbp75AWqPfe9TUUQUbHw7XaI/ClsCw+ibMQjuNTTIK5YfTwFszIG0h7B6 X-Received: by 2002:a17:902:106:: with SMTP id 6mr43099620plb.64.1560745221631; Sun, 16 Jun 2019 21:20:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560745221; cv=none; d=google.com; s=arc-20160816; b=AENT/MIreEw4kPkVS+GwZGD1GokcRUYiP0UlSiCKeglpyhKVOusuuTnVbmYLBApD5g iV9hKcgsrBDLvN9dOnAAU1UoGUMltrqGoX3od4HiV2CxaRCNZHRTfmLxWYsFHflIX5d0 brbSjthvCxlI0+09S2yFGLPsw+qU1CvAm8wQmKxAiN2pL4wkSTRLoad55xfyPXbGmDnD dIQkXgSVSaxVIW2ijn5HdfAU4FpCns7ltnp+UCD41kFgD9vWwE1NhfyGKT9kt0Lj2YUh lgeTuNFUjaf/BDxt85H1pSeb0Ux5GyxAw74xjD4VEVfSR5tDSKqY5sU6sd1Y3IocGcWS lJpA== 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=PzMic+UPAsRVZkkITfxZ+ge6idfcXfDdmr2qhDqY6n4=; b=BdqTEd3lvIJCuPtXtdZpHc8ibCoVCJhUDf/dYY1PCAdoZ0wjUndegCtpCuhS6t5y3w WTx4UquAvfRGhDliXBNSTiGesC0629+v8mN/LXVcOXIZGJ54gpZMplQTPn3lGQjG5x0r an0eUZW6wAMeYUt/a2ncAbcpExUaVMZShisNdcja/zZru6ksb1F/4of5G7Cju26Jfr63 9qAP/uqrY95lQS1mtspJVc0CVf545TJDdUHOvmiKOo60RosbPVPTAqUhwlOGyyxcS3KB qz9nwakwwuxV5Vd46kHIoZEX787sL847Q5biEwLBgVY7Jy4bpo+/6NC5UppJH08WdrOb Nlog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=WV5CpTWu; 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 n1si5734146pfn.32.2019.06.16.21.20.07; Sun, 16 Jun 2019 21:20:21 -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=WV5CpTWu; 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 S1725919AbfFQET4 (ORCPT + 99 others); Mon, 17 Jun 2019 00:19:56 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:45330 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726127AbfFQETz (ORCPT ); Mon, 17 Jun 2019 00:19:55 -0400 Received: by mail-pg1-f195.google.com with SMTP id s21so4997391pga.12 for ; Sun, 16 Jun 2019 21:19:55 -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=PzMic+UPAsRVZkkITfxZ+ge6idfcXfDdmr2qhDqY6n4=; b=WV5CpTWuXXki19nzu6N9H4WFS+1qFX4Zn9NZINa28o8wbNhwpfTRfiK1GElM4cY1Tr OXwKzfSGQ693mK5rBKum59OYO2Y/KE/N3/CBYGMGAj2tEkmmhL2LEVCNVp/ToqEwDUpt uIvKHLfQOxOAuR7Aym33NV5f0w8cK331vvlJ4Ixgw8MGbYMfFxzaBdERtR2DZ/VfG7ge BnpyGAvqcm9fWzqaXzH0aPqEWuOuWJNrwKmsTg/IPnitfm8/ic0u/w7uhRaak9ZVuScn H9pzpxSllmqXDtktC9e9QljAfuQV1BovQlbSOoJ4vnQCVmVOuOEp+6Ee3qRwTEoj1ylE gyDA== 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=PzMic+UPAsRVZkkITfxZ+ge6idfcXfDdmr2qhDqY6n4=; b=mn17ZQO6X68Tdl8/6hXNUC5AzodLNFes5S+ODBRnIR9adPtEmAfuwCzAagWL9/Df/w 1H4e62wRGrT8RtV9QqpkCc3IA+OVBoZ94PgkVgt7w+SCzSQI6QdCcTjCd+mQcJWJNWbg mDl86O+Wauh2MSAQE39i5yCbCjXQSyq1BZxDxVJcT+RSF3Khi8jKuYemum53XrCEa+q/ 0dOOMCBZM3vPOh6AlKDd7b9FycQ7UI7dtFn87kebBMGlVsVJxd+be6xisbcc8ouoYbTK bXwVx/Tul+yMKPUdQfKLLpIVlp/J3heQbzh1BpjIO4JTHGGJudKyZDt2XE1ZE7jAzy5K FEUg== X-Gm-Message-State: APjAAAUd8CVpGlGUSTJ9K8P9a8XxxgQiLGk/4lr0omdigxxBJ2HA8C9X kZg+zHfdOJr4Jio+JnY6LKMIkQ== X-Received: by 2002:a63:5c16:: with SMTP id q22mr15119353pgb.200.1560745194961; Sun, 16 Jun 2019 21:19:54 -0700 (PDT) Received: from buildserver-90.open-silicon.com ([114.143.65.226]) by smtp.googlemail.com with ESMTPSA id e184sm14485615pfa.169.2019.06.16.21.19.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 16 Jun 2019 21:19:54 -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 v2 0/2] Add macb support for SiFive FU540-C000 Date: Mon, 17 Jun 2019 09:49:25 +0530 Message-Id: <1560745167-9866-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 Change History: 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/Kconfig | 6 ++ drivers/net/ethernet/cadence/macb_main.c | 129 +++++++++++++++++++++++++ 3 files changed, 138 insertions(+) -- 1.9.1