From patchwork Sat Oct 19 20:39:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13842910 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 74FB2D3C92C for ; Sat, 19 Oct 2024 20:52:08 +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:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=0dEMPSv5xphvOh5Xq8FMvCt68pBBmIf3u2KGvjXht9A=; b=DcSewnOoKz88Vah4MbfRt/+Vdx bnIF0iUFOfevLWJRC7nIeP6leWefeNfJSxu9MbdLDjsqjueOGA3N7zLXeK6vouNq3kLiACMwd9Sdx OwSHH/gGMIwjBiyB88iXDSJOsyOjv1W5L+1wyHrLJj2PF8ck8aAvmjUQ7I3h0u0BppgYqNrY3mBHz JeSo7OHjwBXbyzViaZ7KldEg45Z8ftJ9LEKMFcCvM7vkdVyXiHTCYTELwQbKnrmIvCxWD2veHx4F5 fxeuao5mE0T2DLBMsnCiar8jDQfomvEy9B8l3cgcY1ZgbiRPiZeJWZIeJMJw8AhkoZQzY1U6QugxF PoViWC2Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2GQW-00000003uwM-03sG; Sat, 19 Oct 2024 20:51:56 +0000 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2GEn-00000003td9-16GR for linux-arm-kernel@lists.infradead.org; Sat, 19 Oct 2024 20:39:50 +0000 Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-539e13375d3so3548536e87.3 for ; Sat, 19 Oct 2024 13:39:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729370388; x=1729975188; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=0dEMPSv5xphvOh5Xq8FMvCt68pBBmIf3u2KGvjXht9A=; b=xjJNQGdPfnsu7fbAtDAYzKCz4e9AF0JS6r8QkpITcn1yAM1MxzkrMIVQSPxeULpZUc hlHX4YrkzY4aZDEnVVn1/Lv821y19IXJv8tht8yq09DiPBrRV6HNjG5lSKHMoR5s3LxP 6L2kR7mAQkLYUeK1LhBiieEur0bAiD6vBbb0FAcQ/D1Edo50s1pIJx3IlpywZuy4Jpch DYVPeo1rIcbs1DrVL59eKVQo1eLPVNoF9BBJXXLDn4weYbApcco+VgeYduArHAUeCAhA miZ5L2U2OaOYq4kjvSw8+3EmTAYVVWbiKItMfPrE64hrB9pQBhcGmKSDCe/FxoiHyQbi MoXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729370388; x=1729975188; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0dEMPSv5xphvOh5Xq8FMvCt68pBBmIf3u2KGvjXht9A=; b=DXc6qXZLFNjE8bhhjuPcCFKHCkE6Ux5RDek/MwViprvsaICIf+jZvHgD1ZqgXcf+oZ C2q00kuf8zlKS6/+OH6AAVekX60Ya/cKOW8D0qKqQ5naxIKAxpyWukgjQYzQejSBnLJa MjUkOMVOTvUDFoR6EdtJX208e59k2ZbqSNVWKSFW8TuPeretba8M9KWag4y9RNk8XiqA jCz9qK9pH3E5fNtQK/pOvdyFBVS76gio8WYrguEhfiNzRTUQotonL6FC9tDgc2KK9deB 5ioAazQUMtABY+A/ZQ4SA/RgdLrX4XOrtU1rpiYSp/Ih34vtSR8HFhSrm1/ktw9GsgXp NGHQ== X-Forwarded-Encrypted: i=1; AJvYcCW/QQaQkyqsGBVUh1OQEX457dH6SgE5lffW80V1fuvogaxSmrtbab2OZm3HjekHSR0GE/+RNNatpXmPkOwmHzQZ@lists.infradead.org X-Gm-Message-State: AOJu0Yxkw96JK8QFgEEGivSPVV0vDady8XaL8PfAprQ4jhOGEfpivEX7 dJN5hb4EESNxVmrkk2MBEl/maVrk3/DnQ0zIIjbLUtG/o8VodBMQWct0yzd+HtY= X-Google-Smtp-Source: AGHT+IEZ5zJhvLk21M0QMDvdH2lZRAvmpEkBETr07H5q2BeH89fBuOx4DzEhYrnRQo/8BoQwqOrliA== X-Received: by 2002:a05:6512:1055:b0:539:fbfa:4a9f with SMTP id 2adb3069b0e04-53a1550ca17mr3358576e87.58.1729370387600; Sat, 19 Oct 2024 13:39:47 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-53a224202d5sm37564e87.136.2024.10.19.13.39.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Oct 2024 13:39:46 -0700 (PDT) From: Linus Walleij Date: Sat, 19 Oct 2024 22:39:38 +0200 Subject: [PATCH v3 9/9] ARM: dts: broadcom: Add Genexis XG6846B DTS file MIME-Version: 1.0 Message-Id: <20241019-genexis-xg6846b-base-v3-9-8375a0e1f89f@linaro.org> References: <20241019-genexis-xg6846b-base-v3-0-8375a0e1f89f@linaro.org> In-Reply-To: <20241019-genexis-xg6846b-base-v3-0-8375a0e1f89f@linaro.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Zhang , Anand Gore , Kursad Oney , Florian Fainelli , =?utf-8?b?UmFmYcWCIE1p?= =?utf-8?b?xYJlY2tp?= , Benjamin Larsson , Broadcom internal kernel review list Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linus Walleij X-Mailer: b4 0.14.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241019_133949_363162_B741BCB9 X-CRM114-Status: GOOD ( 15.64 ) 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 This adds a device tree for the Genexis XG6846B router. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/broadcom/Makefile | 1 + .../boot/dts/broadcom/bcm6846-genexis-xg6846b.dts | 244 +++++++++++++++++++++ 2 files changed, 245 insertions(+) diff --git a/arch/arm/boot/dts/broadcom/Makefile b/arch/arm/boot/dts/broadcom/Makefile index 5881bcc95eba..d23cf466127b 100644 --- a/arch/arm/boot/dts/broadcom/Makefile +++ b/arch/arm/boot/dts/broadcom/Makefile @@ -36,6 +36,7 @@ dtb-$(CONFIG_ARCH_BCM2835) += \ bcm2835-rpi-zero.dtb \ bcm2835-rpi-zero-w.dtb dtb-$(CONFIG_ARCH_BCMBCA) += \ + bcm6846-genexis-xg6846b.dtb \ bcm947622.dtb \ bcm963138.dtb \ bcm963138dvt.dtb \ diff --git a/arch/arm/boot/dts/broadcom/bcm6846-genexis-xg6846b.dts b/arch/arm/boot/dts/broadcom/bcm6846-genexis-xg6846b.dts new file mode 100644 index 000000000000..a3616fb7b3a8 --- /dev/null +++ b/arch/arm/boot/dts/broadcom/bcm6846-genexis-xg6846b.dts @@ -0,0 +1,244 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2024 Linus Walleij + */ + +/dts-v1/; + +#include "bcm6846.dtsi" +#include +#include +#include + +/ { + model = "Genexis XG6846B Ethernet layer 2/3 router"; + compatible = "genexis,xg6846b", "brcm,bcm6846", "brcm,bcmbca"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + /* Micron D9PTK 256 MB RAM */ + memory@0 { + device_type = "memory"; + reg = <0x0 0x10000000>; + }; + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + secondary-boot@0 { + no-map; + reg = <0x00000000 0x00008000>; + }; + pmc3-firmware@8000 { + no-map; + reg = <0x00008000 0x00100000>; + }; + }; + + gpio-keys { + compatible = "gpio-keys-polled"; + poll-interval = <20000>; + + /* Called "canyon rescue button" in the vendor DTB */ + button-restart { + label = "Reset"; + linux,code = ; + gpios = <&gpio0 41 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&gpio0 { + status = "okay"; +}; + +&gpio1 { + status = "okay"; +}; + +&gpio2 { + status = "okay"; + /* Totally 79 GPIOs are available */ + ngpios = <15>; +}; + +&uart0 { + status = "okay"; +}; + +&leds { + status = "okay"; + brcm,serial-shift-bits = <16>; + + led@0 { + reg = <0>; + active-low; + function = "ext"; + color = ; + }; + + led@1 { + reg = <1>; + active-low; + function = "ext"; + color = ; + }; + + led@3 { + reg = <3>; + active-low; + function = LED_FUNCTION_WAN; + color = ; + }; + + led@4 { + reg = <4>; + active-low; + function = LED_FUNCTION_WAN; + color = ; + }; + + led@5 { + reg = <5>; + active-low; + function = LED_FUNCTION_POWER; + color = ; + }; + + led@6 { + reg = <6>; + active-low; + function = LED_FUNCTION_POWER; + color = ; + }; + + led@15 { + reg = <15>; + active-low; + function = LED_FUNCTION_USB; + color = ; + }; + + led@7 { + /* Activity 03 */ + reg = <7>; + active-low; + function = "lan1"; + color = ; + }; + + led@8 { + /* Activity 04 */ + reg = <8>; + active-low; + function = "lan1"; + color = ; + }; + + led@9 { + /* Activity 03 */ + reg = <9>; + active-low; + function = "lan2"; + color = ; + }; + + led@10 { + /* Activity 04 */ + reg = <10>; + active-low; + function = "lan2"; + color = ; + }; + + led@11 { + /* Activity 03 */ + reg = <11>; + active-low; + function = "lan3"; + color = ; + }; + + led@12 { + /* Activity 04 */ + reg = <12>; + active-low; + function = "lan3"; + color = ; + }; + + led@13 { + /* Activity 03 */ + reg = <13>; + active-low; + function = "lan4"; + color = ; + }; + + led@14 { + /* Activity 04 */ + reg = <14>; + active-low; + function = "lan4"; + color = ; + }; +}; + +&hsspi { + status = "okay"; +}; + +&nand_controller { + brcm,wp-not-connected; + status = "okay"; +}; + +&nandcs { + nand-on-flash-bbt; + brcm,nand-ecc-use-strap; + + /* Winbond W29N02GV, 256MB with 128KB erase blocks */ + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + loader@0 { + label = "loader"; + reg = <0x00000000 0x00400000>; + }; + image@400000 { + label = "image"; + reg = <0x00400000 0x0fb00000>; + }; + /* 0x00ff0000-0x00ffffff: bad block list */ + }; +}; + +&mdio { + status = "okay"; + + phy1: ethernet-phy@1 { + reg = <1>; + }; + phy2: ethernet-phy@2 { + reg = <2>; + }; + phy3: ethernet-phy@3 { + reg = <3>; + }; + phy4: ethernet-phy@4 { + reg = <4>; + }; + phy21: ethernet-phy@21 { + reg = <21>; + }; +};