From patchwork Wed Oct 16 06:41:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13837796 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 55F09D206A2 for ; Wed, 16 Oct 2024 06:56:35 +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=ofAnIYuMiTWr9m3/twMbbJ/4jY I+UCEj9vh3eZjpOXRygKYXGUNsmojfR4jrD0+wUEeSm/uiVaFspUqbkAimK54GlEpPfE1p1aPIq+B x1gm6a9GLN4RRufhoNyAMK/1FKh/zer0CyJJEItXP2cK/14NM3K+rVCX2gKzlOy/w1bmm/1Sq5jsU m9fKCg3B9f7EZg3S/Aho+1a7DJhUkxZA0XyMceJsCGk7To5jLVFAU9Mx1VdnOp91AfjN+JBeZ+bAI lu+c/hP7zw6XiWADQ4ccdi36tPsAjsVQQDu+8SCE9ZYUOZ4kudAi1k7Zhls8ZU6LLg6eL+Psaj32/ ZjPHPL1w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0xxI-0000000AkTJ-3YqR; Wed, 16 Oct 2024 06:56:24 +0000 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0xik-0000000Ai8L-3nWN for linux-arm-kernel@lists.infradead.org; Wed, 16 Oct 2024 06:41:24 +0000 Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-539e59dadebso4996727e87.0 for ; Tue, 15 Oct 2024 23:41:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729060881; x=1729665681; 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=H3TX838CscDTPwUWacyt0AgwvNxjqWz3fWAqFee+ulFCpMfxTvGsOuM1tbVBhF6+E9 7fmvJa7h7qZ15ZJcleqrn5lUfS/hcou/94efwpI9jKmcSWDhXamch2Xi4zoPpEJx6+Es Myoc+fie5kTZxX8UQm3h17xf5ywlVJ8gjLhf+pYNN585PE6DLd9VIR4Dfg4rwN1K/6+F OIGIZPp4rGhneNA7sq1pLMhIFx0m6ODYRaDJXY/xKWJ7RNk/0e4pdlyZ7c7Ss9dR5SlP afNEylHVnoOp9gRxL6FWR6hb3uSy4Fbf8MTnvGtzH9i4MTKIN82j+8/CFfMgDBuDDpbO NleA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729060881; x=1729665681; 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=NXh6B+/Bnws/U4n+XBpsGXCK1xMvDevIUDpuXqVglwZLqrsM36f0+7YWgaytGOMxwC R9utc4bVtdXC5IqpoPMf3BVNGBUdgLIaYlC/xs1KcR88+DwIEZI1/f2mTmg9LxobO3DA dKXVzvmQBveRshkl35hfpTUD7SH9kiqc5kQU2lnbe3WF4AYW2zqySrij6LnwOS38zlv8 /rAr5Kb/9mt+NQCRK8jh9bhF9txw64AX8ccTD5TGA4UdtAb/Fp/zeyO8MpwLXxfkkxa8 XIdPK/IatW0grRBliwYS6By4Pil788JnP5xz3IDryTb29mrVu7XSjw28XeCs+loZX+9M dk9g== X-Forwarded-Encrypted: i=1; AJvYcCXLLaG5X3lKvBZq61xqjp8oW5INTvJkSAxmq9aGKECTZpqcUWgGV72gyKz3UESjzsGHr7ujRq3FWaBHKj8i39yb@lists.infradead.org X-Gm-Message-State: AOJu0YylwYCkkRptq8qIfODKUcBesSxbyQWODCTFD8I2vHX2579NG0Ix l5iDgWLedLRs/xa30enRa4iOjtjlojDPOsT4FHPOsR759M8uhMDW4k1ShUnuGII= X-Google-Smtp-Source: AGHT+IE1uwJsu4omVJZUuXDa+VUU3bsy1rWYXx0Mw4z24bvaSwhAuZkLlEhhmePOw0bz5A8igadJAQ== X-Received: by 2002:a05:6512:281c:b0:539:edd1:e56a with SMTP id 2adb3069b0e04-53a03f8dc08mr1737804e87.59.1729060881261; Tue, 15 Oct 2024 23:41:21 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-539ffff3a50sm357455e87.144.2024.10.15.23.41.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2024 23:41:19 -0700 (PDT) From: Linus Walleij Date: Wed, 16 Oct 2024 08:41:09 +0200 Subject: [PATCH v2 9/9] ARM: dts: broadcom: Add Genexis XG6846B DTS file MIME-Version: 1.0 Message-Id: <20241016-genexis-xg6846b-base-v2-9-6a7cc2ee57eb@linaro.org> References: <20241016-genexis-xg6846b-base-v2-0-6a7cc2ee57eb@linaro.org> In-Reply-To: <20241016-genexis-xg6846b-base-v2-0-6a7cc2ee57eb@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-20241015_234123_297680_F277CB16 X-CRM114-Status: GOOD ( 15.62 ) 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>; + }; +};