From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4C2F1606A325 for ; Sun, 29 Nov 2026 21:22:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=v5zhnCdO Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4jd0Tt3tzfz2yPR; Mon, 30 Nov 2026 08:22:10 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip="2a00:1450:4864:20::330" ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1795987330; cv=none; b=fT7JP26Af4k+HqmC05RMtDGp30PBpyja2UL5+a2yQm9Rc9wfGI/iHwkgHxqH38sc/dg0uH/z1/5KGaBQcptsXSf3ylvQFKrK/A5zhuJhgY592vLOO5kgJGiE3VmI2jkG94mOdFq/ivyZAX4lPyWV/mS1w00GOqI67nTsSB7oS4P1iJnTnyqMcQewAeoU4lH0Zoct5g0p339qjOqPfuYQQD+xpbFoykkx4gAhJ9GYtCZr6ofiiripo+/M2K2fOw9j7QdWXTN9bFbbEHZkUDjZji1bdAwYfvVwtgbcOeodh0Cy06OzMM86l/Y+wAG0iQo7NB6sCEl8KUZEGNCuMjrFgg== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1795987330; c=relaxed/relaxed; bh=vruWj76fxPf3uixDH1kwQJfPQR+vTkwxOwPZcKLvAWQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Lg3j/pF1nlQQm74pbwPgTSXKt+4x903NCyv6oQzldUGUCr5t0KpEYZj86GoOXGhB9MB10Qslphs8WTWr+mHE0nvOYEB6WpsJGHb4wq8Pu58DkuqRcYoGeL2DrdV5QmNaDTNaDd01hq/M4+nDlID5W/x9XLfYjVTG1k7jay5ceQ+jbtJD2DWSPlMcsxFeOb0e6SsouG2y84/NF2UAtG4gbIuN5L9poDc+nQuwOsxc2akbqZfETZWejGfGGAiZvf8MGvk+nQHqdyKYiNIqowi0hcXHRWJAi6s+qTR/B4cXqjc1OCJdYtnJ3vsns/VM+oPms1AXnYEbv9ih+PYvrdo03g== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=v5zhnCdO; dkim-atps=neutral; spf=pass (client-ip=2a00:1450:4864:20::330; helo=mail-wm1-x330.google.com; envelope-from=lefteris.koutrakis@gmail.com; receiver=lists.ozlabs.org) smtp.mailfrom=gmail.com Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=v5zhnCdO; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2a00:1450:4864:20::330; helo=mail-wm1-x330.google.com; envelope-from=lefteris.koutrakis@gmail.com; receiver=lists.ozlabs.org) Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4jd0Ts1JVxz2xLq for ; Mon, 30 Nov 2026 08:22:09 +1100 (AEDT) Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-4a2000d5fb1so57102045e9.1 for ; Sun, 29 Nov 2026 13:22:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795987326; x=1796592126; darn=lists.ozlabs.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=vruWj76fxPf3uixDH1kwQJfPQR+vTkwxOwPZcKLvAWQ=; b=v5zhnCdOL6H3MwxaS3tlm+zkrEiapxgzhTk5aNnPshNVn3nqfw0B4YNHaIBtUImiH/ fWS4pZhLpQEU6oW1rPQP61ADjTU54bHLjHcjTc7MVfV0VvtTGxEPPZEP2rq4yl8pV7Oz +bLVi/lyhplP4lFuf/MergzOl6uGwig5thkWuu4ULqxzihtgew9MtFaLDBxeVdrPto59 hY3AY0ixtZUD45SCadyJwSBmYVc5r6qthCn27fUI6+a4qLTDYkhBUTI+OoA7ozDmv9t6 vvQO00zEwwrv2uJJDjkkU9GGJWZipQubekb4+8NnRz4WY+/v6tz+Q9D9ozptoF626Ru/ I5KA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795987326; x=1796592126; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=vruWj76fxPf3uixDH1kwQJfPQR+vTkwxOwPZcKLvAWQ=; b=MUIBI1EkgkaQZ33JCdnXWgdlzCjcpAYGwJxHZAX9FfXZgwptB7nMvi6CHCsS1E2yAt 2ES3YK9I4tz/SzFH7hCm/Fdmb6US9PRnNdol/knCFTXMg7wZmPWjYIXzjs6oPi1MzBZ0 Gq4sFXj1YHHhYq+F/ClYAVKzGEkfBZX3XDjdSnbgxsCLV8RZMCVV3RQ6buEoy9Vg2VJ9 jNMnnNWoIJJW4hJY/3d0y5vgn9Z17dZSNk++j5sfVAG0wMUmYNG6ENdomZ3EQYMIwJQw vV2J4jK4YPShx8KiP0NSRhW3kErWKCsNfirsKPJhZ+l7Cot2w7+0oWVt6oC92ibHciCI voiQ== X-Gm-Message-State: APuU4Z8lPWB8kzq8MDyutmw4zEHm/swkU6MtsaPErsPaS1aXjSg5RFs3 IXZHENze3cqXoPDqDErfjfeIMKrbxTTVhk6BIWpYdydMbK0L2QqacIbrUsU7ifMN X-Gm-Gg: AZFdTZdi/NyJ9KeCmUzR93K5Y98+eI2Gy+8l2UueYcZ1iadJTXPI0Ede5xCZWRNex+N qhmVLP3YJBlTrvMdMeXveu3XgTYsxPqGRISJ5GPHnzOwppAL/VNvR2Eth7YPGT+68c4Op3b2cKQ bkAYFicBSEySgATmlygUik98h4fWvqnKeoyl2oDqk8gy1OEV+CtMwj1kMP6XdqrtHEaRht2EsuK BlbvjUD3oPasj5oIc9G5/VY70HM30f7k09vl8ess/d4bmKJEcmQ/jZgpgh3/eABOouvtVGGRJuM nJyN+6rvPS/a7nmGOT6vxn1GH+R0deObugM5ZQ4k/Ypsn8Zwf3XySem1prbBFtvkGQH/9eVJquQ o98IhB+jZkBREXpL0ulgvHjqxR1ldOK8UXAuyemsNcAjSQtU3oiTKcqlGY1hynIkGFEr8LXCCk2 9FAviW4u8bkOj+UFZua3HvQ5Hrc7f9FVwrs93AD7ykLONJRM5+KE/AM8LTVW1IGB73K8j1ZAcVc samSo/DR5/zrbPtdwYe9JIwMZc5zooGJFFlgOwxyr/IxWX6Wknxb8WlOz7kPsrhMML/JlEBd2dq 2mQod7wKbADm4x+egw2+kQoklkye9SpokJWGvaj66Cop0a7dq1NgrT0mlyasO3g+NcPmT2VzOtG 3G1xEM+mC5HX6WM96+gbaPYanQyq1hz+OwTbdXQe0y6wVKAZIz9E3/Bca64vijFmHkqzalg5TLA D7r43JGg== X-Received: by 2002:a05:600c:3508:b0:4b2:3c81:d1 with SMTP id 5b1f17b1804b1-4bb88826921mr630172035e9.5.1795987325651; Sun, 29 Nov 2026 13:22:05 -0800 (PST) Received: from kali (adsl-94.46.190.7.tellas.gr. [46.190.7.94]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb906635c7sm580735205e9.2.2026.11.29.13.22.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 13:22:05 -0800 (PST) From: Lefteris Koutrakis To: linuxppc-dev@lists.ozlabs.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: robh@kernel.org, krzk@kernel.org, conor+dt@kernel.org, mpe@ellerman.id.au, npiggin@gmail.com, chleroy@kernel.org, ritesh.list@gmail.com, sshegde@linux.ibm.com, maddy@linux.ibm.com, sashiko-bot@kernel.org, Lefteris Koutrakis Subject: [PATCH v11 2/2] powerpc: dts: fsl: Add support for WatchGuard Firebox T30 Date: Sun, 29 Nov 2026 16:21:48 -0500 Message-ID: <20261129212153.2663628-2-lefteris.koutrakis@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261129212153.2663628-1-lefteris.koutrakis@gmail.com> References: <20261129212153.2663628-1-lefteris.koutrakis@gmail.com> X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , Precedence: list X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Add initial device tree support for the WatchGuard Firebox T30 board and enable building firebox-t30.dtb under CONFIG_MPC85xx_RDB in arch/powerpc/boot/dts/fsl/Makefile. Signed-off-by: Lefteris Koutrakis --- Sorry for sending v11 so soon after v10. While testing v10 on the board I noticed that the reset button was missing, and dtbs_check complained about the name of the NOR flash node. I preferred to fix both now rather than have v10 reviewed as is. Changes in v11: - Describe the reset button (GPIO 1, active low) with a gpio-keys node. Checked on the device by reading the GPIO while pressing it. - Rename the NOR flash node from nor@0 to flash@0, as required by the mtd-physmap binding (fixes the dtbs_check node name warning). - No changes to patch 1/2. Changes in v10: - The LED on GPIO 4 is the front-panel "Mode" LED, which shows the WAN connection state. There is no USB LED on this board, so use LED_FUNCTION_WAN_ONLINE instead of LED_FUNCTION_USB. - Collect Acked-by from Krzysztof on patch 1/2. arch/powerpc/boot/dts/fsl/Makefile | 1 + arch/powerpc/boot/dts/fsl/firebox-t30.dts | 396 ++++++++++++++++++++++ 2 files changed, 397 insertions(+) create mode 100644 arch/powerpc/boot/dts/fsl/firebox-t30.dts diff --git a/arch/powerpc/boot/dts/fsl/Makefile b/arch/powerpc/boot/dts/fsl/Makefile index d2cc8e1f007e..8b5d0ac0ebad 100644 --- a/arch/powerpc/boot/dts/fsl/Makefile +++ b/arch/powerpc/boot/dts/fsl/Makefile @@ -44,3 +44,4 @@ dtb-$(CONFIG_GEF_SBC310) += gef_sbc310.dtb dtb-$(CONFIG_GEF_SBC610) += gef_sbc610.dtb dtb-$(CONFIG_GEF_PPC9A) += gef_ppc9a.dtb dtb-$(CONFIG_MVME7100) += mvme7100.dtb +dtb-$(CONFIG_MPC85xx_RDB) += firebox-t30.dtb diff --git a/arch/powerpc/boot/dts/fsl/firebox-t30.dts b/arch/powerpc/boot/dts/fsl/firebox-t30.dts new file mode 100644 index 000000000000..f5d75e81819a --- /dev/null +++ b/arch/powerpc/boot/dts/fsl/firebox-t30.dts @@ -0,0 +1,396 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Device Tree for WatchGuard Firebox T30 + * Author: Lefteris Koutrakis + */ + +#include +#include +#include + +/include/ "p1020si-pre.dtsi" + +/ { + model = "Watchguard Firebox T30"; + compatible = "watchguard,firebox-t30", "fsl,P1020RDB"; + + memory { + device_type = "memory"; + }; + + cpus { + /delete-node/ PowerPC,P1020@1; + }; + + lbc: localbus@ffe05000 { + reg = <0 0xffe05000 0 0x1000>; + ranges = <0x0 0x0 0x0 0xefc00000 0x400000>; + + flash@0 { + compatible = "cfi-flash"; + reg = <0x0 0x0 0x400000>; + bank-width = <2>; + device-width = <1>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + reg = <0x0 0x20000>; + label = "nor-cfg0"; + + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_nor_cfg0_1830: mac-address@1830 { + compatible = "mac-base"; + reg = <0x1830 0x11>; + #nvmem-cell-cells = <1>; + }; + + macaddr_nor_cfg0_1844: mac-address@1844 { + compatible = "mac-base"; + reg = <0x1844 0x11>; + #nvmem-cell-cells = <1>; + }; + + macaddr_nor_cfg0_1858: mac-address@1858 { + compatible = "mac-base"; + reg = <0x1858 0x11>; + #nvmem-cell-cells = <1>; + }; + + macaddr_nor_cfg0_186c: mac-address@186c { + compatible = "mac-base"; + reg = <0x186c 0x11>; + #nvmem-cell-cells = <1>; + }; + + macaddr_nor_cfg0_1880: mac-address@1880 { + compatible = "mac-base"; + reg = <0x1880 0x11>; + #nvmem-cell-cells = <1>; + }; + + macaddr_nor_cfg0_1894: mac-address@1894 { + compatible = "mac-base"; + reg = <0x1894 0x11>; + #nvmem-cell-cells = <1>; + }; + }; + }; + + partition@20000 { + reg = <0x20000 0x10000>; + label = "nor-cfg1"; + }; + + partition@30000 { + reg = <0x30000 0x20000>; + label = "nor-mfg"; + }; + + partition@50000 { + reg = <0x50000 0xc0000>; + label = "nor-bootopt"; + }; + + partition@110000 { + reg = <0x110000 0xc0000>; + label = "nor-extra1"; + }; + + partition@1d0000 { + reg = <0x1d0000 0xc0000>; + label = "nor-extra2"; + }; + + partition@290000 { + reg = <0x290000 0xe0000>; + label = "nor-backup"; + }; + + partition@370000 { + reg = <0x370000 0x10000>; + label = "nor-ubootenv"; + }; + + partition@380000 { + reg = <0x380000 0x80000>; + label = "nor-uboot"; + }; + }; + }; + }; + + soc: soc@ffe00000 { + ranges = <0x0 0x0 0xffe00000 0x100000>; + + gpio0: gpio-controller@fc00 { + #gpio-cells = <2>; + compatible = "fsl,pq3-gpio"; + reg = <0xfc00 0x100>; + interrupts = <47 0x2 0 0>; + gpio-controller; + }; + + i2c@3000 { + rtc@30 { + compatible = "sii,s35390a"; + reg = <0x30>; + }; + }; + + i2c@3100 { + tpm@29 { + compatible = "atmel,at97sc3204t"; + reg = <0x29>; + }; + }; + + spi0: spi@7000 { + flash@0 { + compatible = "everspin,mr25h256", "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <40000000>; + m25p,fast-read; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + reg = <0x0 0x8000>; + label = "spi_mtd_0"; + }; + }; + }; + + slic@1 { + compatible = "zarlink,le88266"; + reg = <1>; + spi-max-frequency = <500000>; + }; + }; + + usb@22000 { + phy_type = "ulpi"; + dr_mode = "host"; + }; + + mdio@24000 { + switch0: switch@10 { + compatible = "marvell,mv88e6085"; + reg = <0x10>; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + switch0phy0: ethernet-phy@0 { + reg = <0>; + }; + + switch0phy1: ethernet-phy@1 { + reg = <1>; + }; + + switch0phy2: ethernet-phy@2 { + reg = <2>; + }; + + switch0phy3: ethernet-phy@3 { + reg = <3>; + }; + + switch0phy4: ethernet-phy@4 { + reg = <4>; + }; + }; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + label = "wan"; + phy-handle = <&switch0phy0>; + nvmem-cells = <&macaddr_nor_cfg0_1830 0>; + nvmem-cell-names = "mac-address"; + }; + + port@1 { + reg = <1>; + label = "lan1"; + phy-handle = <&switch0phy1>; + nvmem-cells = <&macaddr_nor_cfg0_1844 0>; + nvmem-cell-names = "mac-address"; + }; + + port@2 { + reg = <2>; + label = "lan2"; + phy-handle = <&switch0phy2>; + nvmem-cells = <&macaddr_nor_cfg0_1858 0>; + nvmem-cell-names = "mac-address"; + }; + + port@3 { + reg = <3>; + label = "lan3"; + phy-handle = <&switch0phy3>; + nvmem-cells = <&macaddr_nor_cfg0_186c 0>; + nvmem-cell-names = "mac-address"; + }; + + port@4 { + reg = <4>; + label = "lan4"; + phy-handle = <&switch0phy4>; + nvmem-cells = <&macaddr_nor_cfg0_1880 0>; + nvmem-cell-names = "mac-address"; + }; + + port@6 { + reg = <6>; + label = "cpu"; + ethernet = <&enet0>; + phy-mode = "rgmii-id"; + + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + }; + }; + }; + + mdio@25000 { + status = "disabled"; + }; + + mdio@26000 { + status = "disabled"; + }; + + enet0: ethernet@b0000 { + phy-connection-type = "rgmii-id"; + nvmem-cells = <&macaddr_nor_cfg0_1830 0>; + nvmem-cell-names = "mac-address"; + + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + + enet1: ethernet@b1000 { + status = "disabled"; + }; + + enet2: ethernet@b2000 { + status = "disabled"; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + + button-reset { + label = "Reset"; + gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + led0: led-0 { + gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; + color = ; + function = LED_FUNCTION_STATUS; + }; + + led1: led-1 { + gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; + color = ; + function = LED_FUNCTION_STATUS; + }; + + led2: led-2 { + gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; + color = ; + function = LED_FUNCTION_WAN_ONLINE; + }; + + led3: led-3 { + gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>; + color = ; + function = LED_FUNCTION_WLAN_5GHZ; + default-state = "keep"; + }; + + led4: led-4 { + gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>; + color = ; + function = LED_FUNCTION_WLAN_2GHZ; + default-state = "keep"; + }; + + led5: led-5 { + gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; + color = ; + function = LED_FUNCTION_POWER; + default-state = "on"; + }; + }; + + pci0: pcie@ffe09000 { + reg = <0 0xffe09000 0 0x1000>; + ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000 + 0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>; + status = "disabled"; + + pcie@0 { + ranges = <0x2000000 0x0 0xa0000000 + 0x2000000 0x0 0xa0000000 + 0x0 0x20000000 + + 0x1000000 0x0 0x0 + 0x1000000 0x0 0x0 + 0x0 0x100000>; + }; + }; + + pci1: pcie@ffe0a000 { + reg = <0 0xffe0a000 0 0x1000>; + ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000 + 0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x10000>; + + pcie@0 { + ranges = <0x2000000 0x0 0x80000000 + 0x2000000 0x0 0x80000000 + 0x0 0x20000000 + + 0x1000000 0x0 0x0 + 0x1000000 0x0 0x0 + 0x0 0x100000>; + + ath10k: wifi@0,0 { + reg = <0x0000 0 0 0 0>; + nvmem-cells = <&macaddr_nor_cfg0_1894 0>; + nvmem-cell-names = "mac-address"; + }; + }; + }; +}; + +/include/ "p1020si-post.dtsi" -- 2.53.0