openwrt/target/linux/bmips/dts/bcm6328-inteno-xg6846.dts

439 lines
7.7 KiB
Plaintext
Raw Normal View History

bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
// SPDX-License-Identifier: GPL-2.0
/*
* Devicetree for the Inteno XG6846 router, mostly used as a
* media converter from fiber to twisted pair ethernet
* "fiber modem" in many households in Sweden. The Marvell
* switch has one of its ports connected to an SFP (Small Form
* Factor pluggable) optical fiber receiver, which is bridged
* to the twisted pair connector LAN1.
*
* This device tree is inspired by research from the OpenWrt
* and Sweclockers forums, including contributions from
* NPeca75, mrhaav and csom.
*
* Some devices have a USB type A host receptacle mounted,
* some do not.
*/
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
#include "bcm6328.dtsi"
/ {
model = "Inteno XG6846";
compatible = "inteno,xg6846", "brcm,bcm6328";
aliases {
led-boot = &led_power_red;
led-failsafe = &led_power_red;
led-running = &led_power_green;
led-upgrade = &led_power_red;
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
};
/*
* This I2C port is connected to the SFP and reflects the EEPROM etc
* inside the SFP module. If the module is not plugged in, consequently
* nothing will be found on the bus.
*/
i2c0: i2c-sfp {
compatible = "i2c-gpio";
sda-gpios = <&gpio 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
scl-gpios = <&gpio 19 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
#address-cells = <1>;
#size-cells = <0>;
sfp_eeprom: eeprom@50 {
compatible = "atmel,24c02";
reg = <0x50>;
read-only;
};
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
};
/* This I2C bus is used for the external CATV connector (usually unused) */
i2c1: i2c-catv {
compatible = "i2c-gpio";
sda-gpios = <&gpio 23 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
scl-gpios = <&gpio 7 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
#address-cells = <1>;
#size-cells = <0>;
};
keys {
compatible = "gpio-keys-polled";
poll-interval = <100>;
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
reset {
label = "reset";
gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
debounce-interval = <60>;
};
};
sfp0: sfp0 {
compatible = "sff,sfp";
i2c-bus = <&i2c0>;
los-gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
};
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
};
&hsspi {
status = "okay";
flash@0 {
compatible = "jedec,spi-nor";
/*
* HW 1.0-1.1: Spansion S25FL128S1
* HW 1.3: Winbond W25Q128
*
* Fast Read Data max speed is 50MHz, see the Winbond W25Q128
* datasheet table 9.5 "AC Electrical Characteristics", we can
* use this speed because the chip supports fast reads. Older
* HW has different NOR chips, I assume they can all do fast
* reads.
*/
spi-max-frequency = <104000000>;
spi-tx-bus-width = <2>;
spi-rx-bus-width = <2>;
m25p,fast-read;
reg = <0>;
#address-cells = <1>;
#size-cells = <1>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
label = "cfe";
reg = <0x0000000 0x0010000>;
read-only;
nvmem-layout {
compatible = "fixed-layout";
#address-cells = <1>;
#size-cells = <1>;
macaddr_cfe_6a0: macaddr@6a0 {
reg = <0x6a0 0x6>;
};
};
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
};
partition@10000 {
compatible = "openwrt,uimage", "denx,uimage";
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
reg = <0x010000 0xfe0000>;
label = "firmware";
openwrt,offset = <0x30000>;
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
};
partition@ff0000 {
reg = <0xff0000 0x010000>;
label = "nvram";
};
};
};
};
&ehci {
status = "okay";
};
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
&ethernet {
status = "okay";
nvmem-cells = <&macaddr_cfe_6a0>;
nvmem-cell-names = "mac-address";
};
&leds {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_leds>,
<&pinctrl_ephy1_spd_led>,
<&pinctrl_ephy3_spd_led>;
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
led@16 {
reg = <16>;
active-low;
function = LED_FUNCTION_USB;
color = <LED_COLOR_ID_GREEN>;
};
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
led_power_red: led@18 {
reg = <18>;
active-low;
function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_RED>;
panic-indicator;
};
led_power_green: led@20 {
reg = <20>;
active-low;
function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
};
};
&mdio_ext {
switch1: switch@0 {
/* The switch is not using any external IRQ, sadly */
compatible = "marvell,mv88e6085";
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
interrupt-controller;
#interrupt-cells = <2>;
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
dsa,member = <1 0>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
label = "lan1";
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
phy-handle = <&lan1phy>;
leds {
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_LAN;
default-state = "keep";
};
led@1 {
reg = <1>;
color = <LED_COLOR_ID_AMBER>;
function = LED_FUNCTION_LAN;
};
};
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
};
port@1 {
reg = <1>;
label = "lan2";
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
phy-handle = <&lan2phy>;
leds {
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_LAN;
default-state = "keep";
};
led@1 {
reg = <1>;
color = <LED_COLOR_ID_AMBER>;
function = LED_FUNCTION_LAN;
};
};
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
};
port@2 {
reg = <2>;
label = "lan3";
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
phy-handle = <&lan3phy>;
leds {
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_LAN;
default-state = "keep";
};
led@1 {
reg = <1>;
color = <LED_COLOR_ID_AMBER>;
function = LED_FUNCTION_LAN;
};
};
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
};
port@3 {
reg = <3>;
label = "lan4";
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
phy-handle = <&lan4phy>;
leds {
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_LAN;
default-state = "keep";
};
led@1 {
reg = <1>;
color = <LED_COLOR_ID_AMBER>;
function = LED_FUNCTION_LAN;
};
};
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
};
port@4 {
reg = <4>;
label = "ext1";
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
phy-handle = <&ext1phy>;
leds {
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_WAN;
default-state = "keep";
};
led@1 {
reg = <1>;
color = <LED_COLOR_ID_AMBER>;
function = LED_FUNCTION_WAN;
};
};
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
};
port@5 {
reg = <5>;
label = "wan";
phy-mode = "rgmii-id";
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
sfp = <&sfp0>;
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
fixed-link {
speed = <1000>;
full-duplex;
};
leds {
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_WAN;
default-state = "keep";
};
led@1 {
reg = <1>;
color = <LED_COLOR_ID_AMBER>;
function = LED_FUNCTION_WAN;
};
};
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
};
port@6 {
reg = <6>;
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
phy-mode = "rgmii-id";
ethernet = <&switch0port4>;
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
fixed-link {
speed = <1000>;
full-duplex;
};
};
};
mdio {
#address-cells = <1>;
#size-cells = <0>;
lan1phy: ethernet-phy@0 {
reg = <0>;
interrupt-parent = <&switch1>;
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
};
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
lan2phy: ethernet-phy@1 {
reg = <1>;
interrupt-parent = <&switch1>;
interrupts = <1 IRQ_TYPE_LEVEL_HIGH>;
};
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
lan3phy: ethernet-phy@2 {
reg = <2>;
interrupt-parent = <&switch1>;
interrupts = <2 IRQ_TYPE_LEVEL_HIGH>;
};
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
lan4phy: ethernet-phy@3 {
reg = <3>;
interrupt-parent = <&switch1>;
interrupts = <3 IRQ_TYPE_LEVEL_HIGH>;
};
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
ext1phy: ethernet-phy@4 {
reg = <4>;
interrupt-parent = <&switch1>;
interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
};
};
};
};
&ohci {
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
status = "okay";
};
&pinctrl {
pinctrl_leds: leds {
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
function = "led";
pins = "gpio16", "gpio18", "gpio20";
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
};
};
&switch0 {
dsa,member = <0 0>;
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
ports {
switch0port4: port@4 {
reg = <4>;
label = "extsw";
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
phy-mode = "rgmii";
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
fixed-link {
speed = <1000>;
full-duplex;
};
};
bmips: Add Inteno XG6846 target This adds a device tree and build options for the XG6846 switch/router to the BMIPS target. Hardware: - SoC: Broadcom BCM6328 - CPU: BMIPS4350 V7.5 - RAM: 64 MB DDR - NOR Flash: 16 MB parallel (CFE and OS) - Ethernet LAN: 4x 1Gbit - Ethernet WAN: 2x 1Gbit, fiber and TP - Buttons: reset - LEDs: 7 or 8, power and USB LEDs are GPIO-based, the LAN LEDs are controlled by the Marvell DSA Switch. - USB: on some versions - UART: yes The device ODM (original device manufacturer) is XAVi http://www.xavi.com.tw/ It is possible to boot the initramfs version openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf from CFE by interrupting the boot on the UART console and downloading it from a TFTP server e.g.: CFE> r 192.168.1.2:openwrt-bmips-bcm6328-inteno_xg6846-initramfs.elf Installation to target flash is not possible using CFE because the image becomes too big for the CFE version found in these devices. A separate U-Boot two-stage solution exists for actually booting the device. This device is called a "managed ethernet switch" by the vendor and "media converter" or "fiber modem" by some of the ISPs using it: the main purpose is to convert fiber connections to ethernet, most devices just act as switches bridging the fiber SFP to ethernet TP. The device has a Marvell MV88E6352 DSA switch managed by a BCM6328 BMIPS SoC. This port makes it possible to use the XG6846 to grab an IP number from the fiber connection and use all four LAN connections out, turning it into a proper router. This support is based mostly on the observations by the people on the forum thread "Help with Inteno XG6846" where users NPeca75, mrhaav, systemcrash and csom helped out to reverse engineer the device. Then I made it work on the BMIPS target, figured out the two-level switch hierarchy and settings. Link: https://forum.openwrt.org/t/help-with-inteno-xg6846/68276/14 Signed-off-by: Paul Donald <newtwen+github@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2023-06-30 20:22:17 +00:00
};
};
&uart0 {
status = "okay";
};
&usbh {
status = "okay";
};