From patchwork Thu Oct 10 22:07:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13831240 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 EA37AD2444F for ; Thu, 10 Oct 2024 22:19:52 +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=nDJtmSLMLtubtN/9GtGWOqOKuN WoEM/hzglV1KfdeV55VzM7zvKzrjDYk91x3LGJ/7zpAD0UAy9i0MNnWI590GJIL4QmEoqBD6IXbih j+iU7xn6xaE8S3hjofS/Hks2N1NspH9b0HrUNGAEjoVv3ctkLIky4XCXbGs+b4EqGIsZxoHnzaTTN mffYA5Rt/tsqI+r4+uCz//IzhXpPuZOgv6jzky3EDabtHiXwUgpD+GeCLr/ZGjves2B4nEZzIZNlm 8+CcXoQletQQ3kdsd9uI/Zq5Ht0O51FLnwBMj0zootJyhItlceInVWSVYEiyr2EM+SJiPivkDNLDE UcOP+Bcg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sz1VX-0000000EWmd-1XUn; Thu, 10 Oct 2024 22:19:43 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sz1Jk-0000000EVCV-0ZaB for linux-arm-kernel@bombadil.infradead.org; Thu, 10 Oct 2024 22:07:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Cc:To:In-Reply-To:References: Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Sender:Reply-To:Content-ID:Content-Description; bh=0dEMPSv5xphvOh5Xq8FMvCt68pBBmIf3u2KGvjXht9A=; b=g8utyj2Zi1uYxZMY7XGmn59vle LWuJESM9AzOsIe4fIwyCPIFL1ltR8oEeSRDtjj4bSvQoabv25AniAF8PdxUidSge+aLJUNsiOiLu0 cq+826SuL0gRjNhgUZ6rpd7VWeOJi/AmRiQ+fTp6LszgMYxlrddoYvXlZJhNUHZbkoK9EBp3Sjj3A 2qpzn4M7Nk2hC5JbLRC2gnVW3z7tDPaJ59VwVKKWH22yFH1m5BGKZwK+gv0xi4HqcWcajYR1vfGq7 JOyKgOEznr0AIW+6BBAIPsf0WrqwfzHYGFJ+DSv+hQSnHCWBiD7lg0z/Wwe3iAe3YOTtWFIltidaU P3xTGHwg==; Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by desiato.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sz1JS-00000005gv4-3grm for linux-arm-kernel@lists.infradead.org; Thu, 10 Oct 2024 22:07:17 +0000 Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-a99422c796eso228516766b.3 for ; Thu, 10 Oct 2024 15:07:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728598034; x=1729202834; 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=MygFBvPahMltF1Q5nAdKP80TCOwpLx2/REI/DQJZMHTklFaiZHHFlgPfmhnwUwG8ed Qk/fZNFg4rslppGGrDGKWo+R4EcondXSrky2zYXbtz9EmuharjY0W4EB04YfietK0Dua aFD8rBB6puD371F2gzoUOxUU1EiF9vzrGeDBm9+CsqRGNU9fNHIe6OCrEp+BLoW82F3q Cm4a5J0wkl1wv96ta+GOikP/+RnOjsqfdAqlRb9AFWy+RzWEc2ikJ5KtxH1W74wzqX0m AJBxQf3c9FitQX2E83KXvSoBamJOt3MT1ZBf11ku5dBSZky5MxqOnjwlCxYYerkmpQvm KVVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728598034; x=1729202834; 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=iXEqkssykbVnxRsuQAqT9mINKQETzVOr8MRXoEEDAgPXfh+9qgL7/JlRoGQ7xyeIDI DhDrb5lrkz8TpYCUo6Hn+QuB4W6EvnU7fDBaIZD0k5u53is3OTKnACjuHmckxORgZqUU L6kTW3n1KFWC3gLc82WhTTJwPyyTJnhPoIFShp+kiGm7qMkxLcI/x4HSu7jAnaQXMY4b XqPXJ/W5QOik9ly+m8PhsgNIa5K+SRl5BEBxQskIsDxTfggYa5fUZwyskCPM/gWa4FZI 2QBWd7rkl0MFfu9Q7osl2tBu5I5reSTA2WFxT7p04OoOzgpN5W+3gGo/5ASbdt4RhJIw hKFQ== X-Forwarded-Encrypted: i=1; AJvYcCUn6EGMc7NiUT228fpVOveLnRyvSEFmOy3lfshrEMQET+9/leWTgr7k+4Ba+hEJly87HoJURm4+SpS3VlOeSWPs@lists.infradead.org X-Gm-Message-State: AOJu0YzfKxXzTp/YzFnk9i9Ehb9LrlVJxk8+oyD4aMYrS/C7Fg3pnj1I EurgngrmJe3HKfnnMF6WL67SNPQi0vdGmCAorR+wO/4IHxjs7fUXtFFuDQJvPIE= X-Google-Smtp-Source: AGHT+IHCwW+0Ol+Olvlp4g0cmVfxufmf4URAuvtSaWo6RW/KFztNmqL4E/D3vThFqKGZROATxf74Fw== X-Received: by 2002:a17:907:e90:b0:a99:5cb4:9ab4 with SMTP id a640c23a62f3a-a99b937b808mr34727166b.23.1728598033681; Thu, 10 Oct 2024 15:07:13 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a99a7f27e5esm140825466b.80.2024.10.10.15.07.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2024 15:07:12 -0700 (PDT) From: Linus Walleij Date: Fri, 11 Oct 2024 00:07:06 +0200 Subject: [PATCH 8/8] ARM: dts: broadcom: Add Genexis XG6846B DTS file MIME-Version: 1.0 Message-Id: <20241011-genexis-xg6846b-base-v1-8-f04d6f6f93ce@linaro.org> References: <20241011-genexis-xg6846b-base-v1-0-f04d6f6f93ce@linaro.org> In-Reply-To: <20241011-genexis-xg6846b-base-v1-0-f04d6f6f93ce@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?= , 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-20241010_230715_403576_C54FA4EA X-CRM114-Status: GOOD ( 15.19 ) 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>; + }; +};