diff options
author | David Bauer <mail@david-bauer.net> | 2023-03-18 02:28:23 +0100 |
---|---|---|
committer | David Bauer <mail@david-bauer.net> | 2023-04-08 14:41:01 +0200 |
commit | 765f66810a3324cc35fa6471ee8eeee335ba8c2b (patch) | |
tree | 215305e9bb0ce4571394c6eac6260aa44fa6c0fa /target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3715i.dts | |
parent | f058dad1b62d0d6c25ffd8365a8fbf0efb7f6f84 (diff) | |
download | upstream-765f66810a3324cc35fa6471ee8eeee335ba8c2b.tar.gz upstream-765f66810a3324cc35fa6471ee8eeee335ba8c2b.tar.bz2 upstream-765f66810a3324cc35fa6471ee8eeee335ba8c2b.zip |
mpc85xx: add support for Enterasys WS-AP3715i
Hardware
--------
SoC: NXP P1010 (1x e500 @ 800MHz)
RAM: 256M DDR3 (2x Samsung K4B1G1646G-BCH9)
FLASH: 32M NOR (Spansion S25FL256S)
BTN: 1x Reset
WiFi: 1x Atheros AR9590 2.4 bgn 3x3
2x Atheros AR9590 5.0 an 3x3
ETH: 2x Gigabit Ethernet (Atheros AR8033 / AR8035)
UART: 115200 8N1 (RJ-45 Cisco)
Installation
------------
1. Grab the OpenWrt initramfs, rename it to ap3715.bin. Place it in
the root directory of a TFTP server and serve it at
192.168.1.66/24.
2. Connect to the serial port and boot the AP. Stop autoboot in U-Boot
by pressing Enter when prompted. Credentials are identical to the one
in the APs interface. By default it is admin / new2day.
3. Alter the bootcmd in U-Boot:
$ setenv ramboot_openwrt "setenv ipaddr 192.168.1.1;
setenv serverip 192.168.1.66; tftpboot 0x2000000 ap3715.bin; bootm"
$ setenv boot_openwrt "sf probe 0; sf read 0x2000000 0x140000 0x1000000;
bootm 0x2000000"
$ setenv bootcmd "run boot_openwrt"
$ saveenv
4. Boot the initramfs image
$ run ramboot_openwrt
5. Transfer the OpenWrt sysupgrade image to the AP using SCP. Install
using sysupgrade.
$ sysupgrade -n <path-to-sysupgrade.bin>
Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3715i.dts')
-rw-r--r-- | target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3715i.dts | 293 |
1 files changed, 293 insertions, 0 deletions
diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3715i.dts b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3715i.dts new file mode 100644 index 0000000000..d13952acae --- /dev/null +++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3715i.dts @@ -0,0 +1,293 @@ +// SPDX-License-Identifier: GPL-2.0-or-later or MIT + +#include <dt-bindings/gpio/gpio.h> + +/include/ "fsl/p1010si-pre.dtsi" + +/ { + model = "Enterasys WS-AP3715i"; + compatible = "enterasys,ws-ap3715i"; + + aliases { + led-boot = &led_power_green; + led-failsafe = &led_power_red; + led-running = &led_power_green; + led-upgrade = &led_power_red; + label-mac-device = &enet0; + }; + + chosen { + bootargs = "console=ttyS0,115200"; + }; + + memory { + device_type = "memory"; + reg = <0x0 0x0 0x0 0x10000000>; + }; + + leds { + compatible = "gpio-leds"; + + wifi1 { + gpios = <&spi_gpio 3 GPIO_ACTIVE_HIGH>; + label = "green:radio1"; + linux,default-trigger = "phy1tpt"; + }; + + wifi2 { + gpios = <&spi_gpio 2 GPIO_ACTIVE_HIGH>; + label = "green:radio2"; + linux,default-trigger = "phy0tpt"; + }; + + led_power_green: power_green { + gpios = <&spi_gpio 0 GPIO_ACTIVE_HIGH>; + label = "green:power"; + }; + + led_power_red: power_red { + gpios = <&spi_gpio 1 GPIO_ACTIVE_HIGH>; + label = "red:power"; + }; + + lan1_red { + gpios = <&spi_gpio 6 GPIO_ACTIVE_HIGH>; + label = "red:lan1"; + }; + + lan1_green { + gpios = <&spi_gpio 4 GPIO_ACTIVE_HIGH>; + label = "green:lan1"; + }; + + lan2_red { + gpios = <&spi_gpio 7 GPIO_ACTIVE_HIGH>; + label = "red:lan2"; + }; + + lan2_green { + gpios = <&spi_gpio 5 GPIO_ACTIVE_HIGH>; + label = "green:lan2"; + }; + }; + + soc: soc@ffe00000 { + ranges = <0x0 0x0 0xffe00000 0x100000>; + + gpio0: gpio-controller@fc00 { + }; + + usb@22000 { + status = "disabled"; + }; + + mdio@24000 { + phy0: ethernet-phy@0 { + reg = <0x1>; + }; + + phy2: ethernet-phy@2 { + reg = <0x2>; + }; + }; + + mdio@25000 { + tbi_phy: tbi-phy@11 { + reg = <0x11>; + }; + }; + + mdio@26000 { + status = "disabled"; + }; + + enet0: ethernet@b0000 { + phy-handle = <&phy0>; + phy-connection-type = "rgmii-id"; + + label = "lan1"; + }; + + enet1: ethernet@b1000 { + phy-handle = <&phy2>; + phy-connection-type = "sgmii"; + + tbi-handle = <&tbi_phy>; + + label = "lan2"; + }; + + enet2: ethernet@b2000 { + status = "disabled"; + }; + + sdhc@2e000 { + status = "disabled"; + }; + }; + + ifc: ifc@ffe1e000 { + }; + + pci0: pcie@ffe09000 { + reg = <0 0xffe09000 0 0x1000>; + ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000 + 0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>; + pcie@0 { + ranges = <0x2000000 0x0 0xa0000000 + 0x2000000 0x0 0xa0000000 + 0x0 0x20000000 + + 0x1000000 0x0 0x0 + 0x1000000 0x0 0x0 + 0x0 0x100000>; + + wifi@0,0,0 { + compatible = "pci168c,0033"; + reg = <0x0 0 0 0 0>; + ieee80211-freq-limit = <2400000 2500000>; + }; + }; + }; + + 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>; + + wifi@0,0,0 { + compatible = "pci168c,0033"; + reg = <0x0 0 0 0 0>; + ieee80211-freq-limit = <5000000 6000000>; + }; + }; + }; +}; + +&soc { + led_spi { + compatible = "spi-gpio"; + #address-cells = <1>; + #size-cells = <0>; + + sck-gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>; + mosi-gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; + num-chipselects = <0>; + + spi_gpio: led_gpio@0 { + compatible = "fairchild,74hc595"; + reg = <0>; + gpio-controller; + #gpio-cells = <2>; + registers-number = <1>; + spi-max-frequency = <100000>; + }; + }; + + spi0: spi@7000 { + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <25000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + reg = <0x0 0xa0000>; + label = "boot-bak"; + read-only; + }; + + partition@a0000 { + reg = <0xa0000 0xa0000>; + label = "boot-pri"; + read-only; + }; + + partition@120000 { + reg = <0x120000 0x10000>; + label = "cfg1"; + read-only; + }; + + partition@130000 { + reg = <0x130000 0x10000>; + label = "cfg2"; + read-only; + }; + + partition@140000 { + compatible = "denx,uimage"; + reg = <0x140000 0x1d80000>; + label = "firmware"; + }; + + partition@1ec0000 { + reg = <0x1ec0000 0x100000>; + label = "nvram"; + read-only; + }; + }; + }; + }; +}; + +/include/ "fsl/p1010si-post.dtsi" + +/ { + cpus { + PowerPC,P1010@0 { + bus-frequency = <399999996>; + timebase-frequency = <50000000>; + clock-frequency = <799999992>; + d-cache-block-size = <0x20>; + d-cache-size = <0x8000>; + d-cache-sets = <0x80>; + i-cache-block-size = <0x20>; + i-cache-size = <0x8000>; + i-cache-sets = <0x80>; + }; + }; + + soc@ffe00000 { + bus-frequency = <399999996>; + + serial@4600 { + clock-frequency = <399999996>; + status = "disabled"; + }; + + serial@4500 { + clock-frequency = <399999996>; + }; + + pic@40000 { + clock-frequency = <399999996>; + }; + }; +}; + +/* + * For the OpenWrt 22.03 release, since Linux 5.10.138 now uses + * aliases to determine PCI domain numbers, drop aliases so as not to + * change the sysfs path of our wireless netdevs. + */ + +/ { + aliases { + /delete-property/ pci0; + /delete-property/ pci1; + }; +}; + |