From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.54 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796068814; b=J1/58hnpGqbnfp9iBNs7RX1yXx0+aC4bwDfz590aK2ecGhAqal+kANFADvlCf/NploD5 VmHOcqZ7tfpx718IkvjZLZlnn+SiP9pN7cQ31KqitbcmRudLuIneLzlYaAjzTQ1wBQqeF yq9++JTv6i+2qFY2gPpu28N/DjKni2VeN5skplWHhFnTawNaGTZcsBAs/0uZbSlr5i3LF Z4HZaQ1lieaCpmzUDNtxXwv9vTV/h04uL/a2/xyT1S12KURjd4N/c4jOKSuiVO3N9yg8T 1jiEzFzebRbfI7CsCjajWuCL0UGffFfQ5k67SFlkZz0oTGi6PVIrtypqCJVS9OcLhbg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796068814; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=rpfPVPbm0I5p22O+ZL9eiDjmcgXGQeEPK15z9VJeQu4=; b=dOddZDhw9C5Kmn4Ao5/PBaNMk3SPsR4oFJykJb3UW5rCql7PIcQ34gEFnfHqTYwD1U0+ D28G4vuH5hMmg6IErzigVj2xPT3Ijq+VAG5866BC/+YyNzyLdo6eRh5u8XmyLyj13CtA9 g/WclDIVv8HTNIfolvIxfDySBM600LQdUIODMBubiXQZxj/w0CRGVmY/vsEZ/0e4+sPmO 1RKe6u4TKN6u+dnAf7y4njPz4XplNC/XDaPvO9USnPoVMALUEhCYrfSGw0j9uX9SJaRL2 RIlomalsqHGRh15MZ7besQ/EaE818c4o9OejZ90GDVIKsNJI2VWyRjR+Ra/XSXmPwkw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=wb0h4U5k; arc=none smtp.remote-ip=209.85.221.54 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0A86C606A69A for ; Mon, 30 Nov 2026 20:00:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0A86C606A69A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com 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=wb0h4U5k Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-4c84abcb7bdso505529f8f.1 for ; Mon, 30 Nov 2026 12:00:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796068811; x=1796673611; darn=vger.kernel.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=rpfPVPbm0I5p22O+ZL9eiDjmcgXGQeEPK15z9VJeQu4=; b=wb0h4U5kqamo7eZ8aqXDT2DVgH9fwV8QzCAAMXWlEBaZ6JLD+9EpPJHB0g2xDiDpgX XZXqYr1aL2C+Cf+gpx9pUESVmvOTIm1BM+iFWHYtbglgLkPGqaOeVsJiCKpfHzyEN8Dj lrdCCSIkyIEUpVUnoYTWgdYbMR6OypqgLLwuAa8bRnMYGymNDkod8ywbR5fn7M+/i2vM +SvgQKlLRalEu/dDW646qu9+kg2HeZYaKuCurfZO6HOhatEq4j/ugO2KpkTt1WO7NvNZ fvwJeKn+0xNlpGUgxdqW4jpivbwWvRkxV8AOmxr4BMVdhudTsjcHGb9iwTtwxZ7ad4qy /Jow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796068811; x=1796673611; 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=rpfPVPbm0I5p22O+ZL9eiDjmcgXGQeEPK15z9VJeQu4=; b=N5o7EsfbKNsEzIBKKSoRJM0YyuSyNu2Rd5jXYLE7/mR3iyhYVIckxnjPDwhi/OJdVZ 4+OVDCuE1TnfGFRQZIRb4GiOpCz7V1d+CCuxD1SG2LvrRytL4b7szPsje9at3mxAhnV/ ADHRDSV6OZBL0P3w+qfh7ECQ8keMhfNF2NSIVkUcc+cRQNTvRy9msIzXexV6LcmsY8kf LMfGfNTMN4d041ooFr1J6gK30zO3lhcxjd3Hme8JaVfZFvyLqICkWrP01i5IrIlJgCdO gCcZSPpOImiOxxicJAkhJxw0xK/+xjt5D6MDt0FzKSs/Fe43c1dYJWVcoZCFcm81gTU4 vdyQ== X-Forwarded-Encrypted: i=1; AL+hErFfy1vxmGL++YLMScJTCCtEt2d6Tf2z29bF3GPS8w7p7uikoOFpA87cQP6E8WJeBcJHzhHLeYU+fUp98Lg=@vger.kernel.org X-Gm-Message-State: APuU4Z+R49gStYYAvyDvzuPKb6l1xG+nDl+vsqDE0E4obuqoV3SW5LKx epCelgtz7yS/PtcWNaB0BCmRJ//n8IbLlmKxX+uzT/r7W5FrjxwvCZHo X-Gm-Gg: AZFdTZeHgd9MntVXZQv8MVYoHU5fs1xbWhuyd1W5F+lpKDJSB2uQkB1llQRhJaqdoR5 23paxE7e+036abk4VJ6d0bp56SsPZM6avJI1YNEZH1tnfB1dUVRZmyeZ9D0ybB1XcvLVEmAA1m7 6AtuAaeSx6eu4VOzXcxXRpxmuIMGDqdxl6ef4WDsKCit3HZUnOhP6ePpvZpzbTroO3tGXpRHOa2 /as3z6cLjUtAdWNOSdZCnu9s0dWPjhDT9GCyExhUZRIYgtAXdKRBm9Mbz/jbQIy1g/3dMwieSaC 3Ax52hbbqMcTFZcuxJ4s1bje/gRWlPj/VQTE07v8UB9jJYXu6Nnejis+nhmSdBEYNdL2GJfEcvC qRLKzDYkl4VXeWurAzUqEO0ZOgVf6pSe4SMFluICR4d1dNZ4I+yecFaw57QXb3XhMmgjXHEZ20/ qfLLJdwMVVPN2+2BpCr6Bl6iMvgMTmP5VWSQlMZiHXTEwJzjgxe+4Bq8slpVeCRlw0cwobcLbDr FbXNQNSRuA7Hzmo5zYeC8/bwknhy4SLw/LvLxDHXC8Y2ojgiiT4SRmnsX/3V1WEpHBvpi0Ymz48 pr0MSdvYtzU0c6n1e09ckz4zhstwBHVitLso72+Ab6yW/Tre8c8GjIQFLdyGmjEgrhKg2ePYP8k gdzDBhdvxYSWWZ1HDfUD0OB6YR4VaGXHfug5yxV7cQmzPXPeYHeGAuk1bxMW2BbeknXp5U3q7+X twfbxT X-Received: by 2002:a05:6000:2886:b0:4af:9172:3238 with SMTP id ffacd0b85a97d-4af917234abmr66056631f8f.43.1796068811105; Mon, 30 Nov 2026 12:00:11 -0800 (PST) Received: from kali (adsl-94.46.190.7.tellas.gr. [46.190.7.94]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6bb989b3sm66626491f8f.51.2026.11.30.12.00.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 12:00:10 -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+dt@kernel.org, conor+dt@kernel.org, maddy@linux.ibm.com, mpe@ellerman.id.au, npiggin@gmail.com, chleroy@kernel.org, ritesh.list@gmail.com, sshegde@linux.ibm.com, sashiko-bot@kernel.org, Lefteris Koutrakis Subject: [PATCH v12 2/2] powerpc: dts: fsl: Add support for WatchGuard Firebox T30 Date: Mon, 30 Nov 2026 14:59:57 -0500 Message-ID: <20261130195959.3425224-2-lefteris.koutrakis@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261130195959.3425224-1-lefteris.koutrakis@gmail.com> References: <20261130195959.3425224-1-lefteris.koutrakis@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- Changes in v12: - Drop m25p,fast-read from the MR25H256 node. This MRAM has no Fast Read opcode, and the spi-nor driver clears it for Everspin parts anyway. - Leave the gpio0 node empty, pq3-gpio-0.dtsi already sets all of its properties. - Disable usb@23000. Only the first USB controller is used on this board, and the stock U-Boot removes the usb@23000 node at boot. - Move the dtb line in the Makefile to the MPC85xx section. (the four changes above come from the Sashiko review of v11) - Drop the slic@1 node. The T30 and T30-W have no telephony port, and the zarlink,le88266 compatible is undocumented. - No changes to patch 1/2. v11: https://lore.kernel.org/all/20261129212153.2663628-1-lefteris.koutrakis@gmail.com/ 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 | 388 ++++++++++++++++++++++ 2 files changed, 389 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..049f56d612a7 100644 --- a/arch/powerpc/boot/dts/fsl/Makefile +++ b/arch/powerpc/boot/dts/fsl/Makefile @@ -19,6 +19,7 @@ dtb-$(CONFIG_MPC85xx_RDB) += p1020utm-pc_32b.dtb p1020utm-pc_36b.dtb dtb-$(CONFIG_MPC85xx_RDB) += p1021rdb-pc_32b.dtb p1021rdb-pc_36b.dtb dtb-$(CONFIG_MPC85xx_RDB) += p1024rdb_32b.dtb p1024rdb_36b.dtb p1025rdb_32b.dtb dtb-$(CONFIG_MPC85xx_RDB) += p1025rdb_36b.dtb +dtb-$(CONFIG_MPC85xx_RDB) += firebox-t30.dtb dtb-$(CONFIG_P1010_RDB) += p1010rdb-pa_36b.dtb p1010rdb-pa.dtb dtb-$(CONFIG_P1010_RDB) += p1010rdb-pb_36b.dtb p1010rdb-pb.dtb dtb-$(CONFIG_P1022_DS) += p1022ds_32b.dtb p1022ds_36b.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..bce554ce0a40 --- /dev/null +++ b/arch/powerpc/boot/dts/fsl/firebox-t30.dts @@ -0,0 +1,388 @@ +// 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 { + }; + + 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>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + reg = <0x0 0x8000>; + label = "spi_mtd_0"; + }; + }; + }; + }; + + usb@22000 { + phy_type = "ulpi"; + dr_mode = "host"; + }; + + usb@23000 { + status = "disabled"; + }; + + 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