From patchwork Tue Aug 20 14:36:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea della Porta X-Patchwork-Id: 13770288 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D3FD2C3DA4A for ; Tue, 20 Aug 2024 14:43:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:To:From:Reply-To: Cc:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=o2Xgg30vYhCxJ1eXmEmY/H80RrAwzg/J7u+AAMEQheA=; b=WGddtaOuT/JaIxACR/1+oODUcX 5VC29Sgb72Q9IeKAWOU7JWzsHjTRSqoPZnALj6L9O/TtY6kv+609OFaEc6jhbhUrR/4z/j3czuObt NwJz9Zn8FUaBy9WWRwKdK/xo0gPZPc+BsT0/+DouKmgsu0D3BAd/Z4cIJ/Usl20tgO/IXfQmcxPy5 /dZWAhgmSKQTldIbO7K2TI89ZqpsDJkPsUGkvZcA2qcLifcSZQgmhgIHIJfXUUUuPZ5MTgL0EsPYR bZobLkZLJyHrOF8st8vSkpAMucHeOsMI+8txTcPW7AtQYgv7ecrQ0ZfbMfy4jxfCS5BnztZcEmG/y SUa4VJzA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sgQ5C-00000005cEb-1upn; Tue, 20 Aug 2024 14:43:38 +0000 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sgPyE-00000005a28-3Pm9 for linux-arm-kernel@lists.infradead.org; Tue, 20 Aug 2024 14:36:31 +0000 Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-a7a843bef98so624123566b.2 for ; Tue, 20 Aug 2024 07:36:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1724164585; x=1724769385; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=o2Xgg30vYhCxJ1eXmEmY/H80RrAwzg/J7u+AAMEQheA=; b=ffswKgEWk424kVX8imXYqaUPgW5+Nz4E5Ljnpc30srAu/ghR45qcMzK+PHEaWqXUgF kYGnICLITcRczUEj7EES1iJ4FfctSBGrI/ZD6ujrOxs8jyby8X8A5l0BP8CtggpGxPBO Y2w3BfwucpK1SqAMHaDx9m5Z30yLTSrbGS7XouKjTmst/Dtuof+2SmraBLZ/l6vo1pgE GNOzYZRdpRXugfojk+5wbotFB2LKLtVlvisj8dkySfxVJQYfWrwX8cH9ysshMlwaUDua O/y3uiZZx2A12crmL6eBrFwOaCxV5lXpEt+HEMm5sYyuedubOtd1VHT6R3nyrP0jFkKq SS6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724164585; x=1724769385; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=o2Xgg30vYhCxJ1eXmEmY/H80RrAwzg/J7u+AAMEQheA=; b=Kmgj+tssAD4XxSC5BNSGOt7/TYMcyquXHtM5gttT6CjFePSZcL1CdApwo+6zAU9fk9 Hct7XFUoPiPbNb6wM9DuLP8NlBxxODldrYAG5fYyZHcyxQCNTwIFktUY2VEr8zCExl2E +BlT1rxifvxRnHHvhqk2IQwQJNrELw5KpV7mR6RzYWrrCjY+9r09pgq7OP6Dt812X0NB Bp5zqJxomzTe/gd+UlO+1ZtuC4Lzg8S0S8lmQfC77ng7Sd9LTPeeNIu/vfYrUReIEVdD lKtHuT2caaQvfXufUBS6pkMTjKHYp3yweOUFYCsxg901xZ98FQBRlJsiULGbxEiq4DGx Wr3g== X-Forwarded-Encrypted: i=1; AJvYcCXm+AG++K9Ea+er3inZdyaOkMWYTezmpzZJudHBsqtwAxgRO30mQeaie1cKjvCozUzbXx4zR13xvMSgcAbczrlz@lists.infradead.org X-Gm-Message-State: AOJu0YyGsm+nQVX82Azoe6bEuL0pxlUQObmtNGHSiZngYSfHMhE8rmCK 62b6hgUldvO6GK6U/rzg9EGAc6wJd+ynGW9ATrJoeAhEVaDx17aqUxwpCT28/3k= X-Google-Smtp-Source: AGHT+IHHwb3kDEyWmIFiefIJfKoeZp5N9YbDUkPf5M8lEPY+UbF5lCIpL7IY1EOzpJk/o4jN7+373w== X-Received: by 2002:a17:907:f164:b0:a77:dbf0:d22 with SMTP id a640c23a62f3a-a8392a4b5e8mr1083160066b.65.1724164584705; Tue, 20 Aug 2024 07:36:24 -0700 (PDT) Received: from localhost ([87.13.33.30]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a83838cfb18sm771023766b.60.2024.08.20.07.36.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Aug 2024 07:36:24 -0700 (PDT) From: Andrea della Porta To: Andrea della Porta , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Broadcom internal kernel review list , Linus Walleij , Catalin Marinas , Will Deacon , Derek Kiernan , Dragan Cvetic , Arnd Bergmann , Greg Kroah-Hartman , Nicolas Ferre , Claudiu Beznea , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Saravana Kannan , Bjorn Helgaas , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, netdev@vger.kernel.org, linux-pci@vger.kernel.org, linux-arch@vger.kernel.org, Lee Jones , Andrew Lunn , Stefan Wahren Subject: [PATCH 11/11] arm64: dts: rp1: Add support for MACB contained in RP1 Date: Tue, 20 Aug 2024 16:36:13 +0200 Message-ID: X-Mailer: git-send-email 2.44.0 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240820_073626_970003_3BF4FA84 X-CRM114-Status: GOOD ( 12.57 ) 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 RaspberryPi RP1 is multi function PCI endpoint device that exposes several subperipherals via PCI BAR. Add an ethernet node for Cadence MACB to the RP1 dtso Signed-off-by: Andrea della Porta --- arch/arm64/boot/dts/broadcom/rp1.dtso | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/broadcom/rp1.dtso b/arch/arm64/boot/dts/broadcom/rp1.dtso index d80178a278ee..b40e203c28d5 100644 --- a/arch/arm64/boot/dts/broadcom/rp1.dtso +++ b/arch/arm64/boot/dts/broadcom/rp1.dtso @@ -78,6 +78,29 @@ rp1_clocks: clocks@c040018000 { <50000000>; // RP1_CLK_ETH_TSU }; + rp1_eth: ethernet@c040100000 { + reg = <0xc0 0x40100000 0x0 0x4000>; + compatible = "cdns,macb"; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + clocks = <&macb_pclk &macb_hclk &rp1_clocks RP1_CLK_ETH_TSU>; + clock-names = "pclk", "hclk", "tsu_clk"; + phy-mode = "rgmii-id"; + cdns,aw2w-max-pipe = /bits/ 8 <8>; + cdns,ar2r-max-pipe = /bits/ 8 <8>; + cdns,use-aw2b-fill; + local-mac-address = [00 00 00 00 00 00]; + phy-handle = <&phy1>; + phy-reset-gpios = <&rp1_gpio 32 GPIO_ACTIVE_LOW>; + phy-reset-duration = <5>; + + phy1: ethernet-phy@1 { + reg = <0x1>; + brcm,powerdown-enable; + }; + }; + rp1_gpio: pinctrl@c0400d0000 { reg = <0xc0 0x400d0000 0x0 0xc000>, <0xc0 0x400e0000 0x0 0xc000>,