From patchwork Fri May 14 11:38:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Schramm X-Patchwork-Id: 12257535 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0E53AC433ED for ; Fri, 14 May 2021 11:39:06 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 C1CD361451 for ; Fri, 14 May 2021 11:39:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C1CD361451 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=manjaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=ipwZIl7m7BZawT+PueCycaFAnPXjbFLX7yKoAbLOtAg=; b=choktb8O0yIN1+DZR5XwpopaCA lxftLeO5uT/VXkKUXZmdJyZ7IktGvEaDstXRK0qVer2KzbyqGVOo1A80PXiz3HB+sz1XzHStXBcQa GCMaPbH08yNQ7n0zBmwGDvQGWssN1sb/ltMErFtZhEjxLZLD3X51TBxhHUv1tsLvItUJ8uXqV3PTz +KRROukb8hW++Z4ieiec7QCZ3X4Cm9LOS+FK5++3BSpV7Zqr6r4EkjqDPp8W0lGSMTPzEoFdpc7R5 Q+8HkpxCmQkbT5NOouMEyixUNB8Z8PJj4AOw6LxyTjFXzwS5BYID1wTrLzhTLtyYiloHI6awtno9A KYzdPEyQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lhW7p-007vAq-LO; Fri, 14 May 2021 11:37:01 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lhW7n-007vAP-At; Fri, 14 May 2021 11:36:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=fGm26DeDwWAu8cdVutZ9oJpAUlePwPOF0PnmGP8R/sE=; b=X7rfdMiotqgXpE/3muZn9EYctT kAFHzULh67eiXYmE+yHrdhvUzDatChRvs2IHhY2RMy8cnNozc9KFUjMam/KCMsmFewS4zMD08EdyR s0SwDDc5I/7g0j6M1D2+rO0C5sjoQL7iCJFS96IEteL0iciSDusTr5jF9omtYp1Ohc+O3WFyRi9As AOQR+eCrHlOMheZvJD5gBy/+7oxygGo50Az+dsHNd2xNCuOJgYTfT5X3UAxM/esqXdT1n2lsuaXoF Lj48uGikPfmZ8Yq6mNo1RmgpE2OykM1+woIMf9tNKobHFnpa8hjTVFTSl2xi5kO7omM5SDTondeS0 IFfbdVUg==; Received: from mail.manjaro.org ([176.9.38.148]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lhW7k-00BwPm-Rw; Fri, 14 May 2021 11:36:58 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.manjaro.org (Postfix) with ESMTP id E778422259F; Fri, 14 May 2021 13:36:54 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at manjaro.org Received: from mail.manjaro.org ([127.0.0.1]) by localhost (manjaro.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id huFPOxgVzXK9; Fri, 14 May 2021 13:36:52 +0200 (CEST) From: Tobias Schramm To: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, Heiko Stuebner Cc: "David S . Miller" , Jakub Kicinski , Rob Herring , Giuseppe Cavallaro , David Wu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Tobias Schramm Subject: [PATCH 0/3] Add support for RK3308 gmac Date: Fri, 14 May 2021 13:38:10 +0200 Message-Id: <20210514113813.2093534-1-t.schramm@manjaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210514_043657_068652_58EDDFB8 X-CRM114-Status: UNSURE ( 7.08 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Rockchip RK3308 SoC features an internal gmac. Only the signals required for RMII are exposed so it is limited to 10/100 Mbit/s operation. This patchset adds support for it. I've tested the patchset on a Rock Pi S, works fine. Cheers, Tobias Tobias Schramm (3): dt-bindings: net: rockchip-dwmac: add rk3308 gmac compatible net: stmmac: dwmac-rk: add support for rk3308 gmac arm64: dts: rockchip: add gmac to rk3308 dts .../bindings/net/rockchip-dwmac.yaml | 2 + arch/arm64/boot/dts/rockchip/rk3308.dtsi | 22 +++++++++ .../net/ethernet/stmicro/stmmac/dwmac-rk.c | 49 +++++++++++++++++++ 3 files changed, 73 insertions(+)