2020-08-13 15:39:10 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
apm821xx: add support for the Netgear Centria N900 WNDR4700/WNDR4720
This patch adds support for Netgear Centria N900 WNDR4700/WNDR4720
hardware highlights:
CPU: AMCC PowerPC APM82181 Rev. E at 1000 MHz (PLB=166, OPB=83, EBC=83 MHz)
Security support, Boot ROM Location NAND wo/ECC 2k page (8 bits)
32 kB I-Cache 32 kB D-Cache, 256 kB L2-Cache, 32 kB OnChip Memory
Board: AMCC APM82181 Evaluation Board, PCIE0/SATA1, 1*USB OTG
DRAM: 256 MB (ECC not enabled, 500 Mb/s, 32-bit, CL3)
NAND: 128 MiB (SLC, erase size: 128 KiB, page size: 2048, OOB size: 64)
ETH: Atheros AR8327N Gigabit Switch (4 x LAN, 1 x WAN)
USB: 2 x 3.0 (Renesas uPD720202K8-711-BAA-A, firmware not included)
SATA: 1 x SATA-II 3.5" Hard Drive Bay for HDDs (DesignWare SATA).
WLAN1: Atheros AR9380 5GHz 802.11an 3:3x3
WLAN2: Atheros AR9581 2.4GHz 802.11bgn 3:3x3
SDCARD: GL827L SD/MMC/MS Flash Card Reader (on internal dwc2 USB 2.0 host)
I2C: GMT G781 (i2c-0 @ 0x4d - lm90 compatible temperature sensor)
TC654 (i2c-0 @ 0x1b - Dual PWM fan Speed controller)
WARNING: The serial port needs a TTL/RS-232 v3.3 level converter!
INFO: Since this device only has a NAND chip. I opted for going with
root.squashfs in a UBI volume. There's no squashfs/jffs2 image.
This target produces three images.
a. netgear factory image
This image can be used to flash the Netgear WNDR4700 via the
firmware recovery mechanism and the web admin site.
The bootloader can be instructed to do a firmware recovery via the
# fw_recovery
command. It will start a tftp server and listen on 192.168.1.1
(the ipaddr variable in u-boot) for incoming, binary tftp clients.
The firmware recovery mechanism is also started if any of the flash
content which contains the kernel, device-tree definitions or the
(fake)rootfs fails to verify or load.
b. sysupgrade.tar image for sysupgrade
An sysupgrade will replace the entire current LEDE installation
with a newer version. This does include the kernel and the ubi rootfs
partition. The configuration can be carried over automatically as well
if desired.
simply copy the sysupgrade.tar to a the WNDR4700 running LEDE and run:
root@lede:~# sysupgrade sysupgrade.tar
and let it reboot.
Note: The devicetree flash area is NOT updated. Until the devicetree
definition is stable, this can lead to all sorts of hardware
detection problems! So make sure, if you experience issues: try
the fw_recovery. If you are unsure whenever this affects you:
test if you can reproduce your issue with the initramfs method.
As it will always have up-to-date device-tree definitions.
c. initramfs image for TFTP (for development and testing)
To use the initramfs method, follow the following steps:
1) Move the "lede-apm821xx-netgear-WNDR4700-initramfs-kernel.bin"
file to to the root directory of your TFTP server.
2) rename it to wndr4700.bin
3) On the WNDR4700 - Hit Enter during u-boot and insert:
# tftp 400000 wndr4700.bin; run addtty; bootm 400000 -
This will boot the LEDE image.
Note: The default tftp server is 192.168.1.7, if you want to change it:
# setenv serverip 192.168.8.7;
Note2: The default address for the WNDR4700 is 192.168.1.1:
# setenv ipaddr 192.168.8.8;
Note: Connect you tftp server on the last LAN port (not the WAN)
Note: The firmware for the USB 3.0 Host chip is not included anymore.
Therefore the two USB 3.0 ports will not work without the
uPD7070x-firmware package installed.
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2016-07-20 13:44:57 +00:00
|
|
|
/*
|
|
|
|
* Device Tree Source for Netgear WNDR4700/WNDR4720 Series
|
|
|
|
*
|
|
|
|
* Copyright 2008 DENX Software Engineering, Stefan Roese <sr@denx.de>
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
|
|
|
|
#include <dt-bindings/thermal/thermal.h>
|
2020-08-13 16:26:19 +00:00
|
|
|
#include <dt-bindings/leds/common.h>
|
|
|
|
#include "apm82181.dtsi"
|
apm821xx: add support for the Netgear Centria N900 WNDR4700/WNDR4720
This patch adds support for Netgear Centria N900 WNDR4700/WNDR4720
hardware highlights:
CPU: AMCC PowerPC APM82181 Rev. E at 1000 MHz (PLB=166, OPB=83, EBC=83 MHz)
Security support, Boot ROM Location NAND wo/ECC 2k page (8 bits)
32 kB I-Cache 32 kB D-Cache, 256 kB L2-Cache, 32 kB OnChip Memory
Board: AMCC APM82181 Evaluation Board, PCIE0/SATA1, 1*USB OTG
DRAM: 256 MB (ECC not enabled, 500 Mb/s, 32-bit, CL3)
NAND: 128 MiB (SLC, erase size: 128 KiB, page size: 2048, OOB size: 64)
ETH: Atheros AR8327N Gigabit Switch (4 x LAN, 1 x WAN)
USB: 2 x 3.0 (Renesas uPD720202K8-711-BAA-A, firmware not included)
SATA: 1 x SATA-II 3.5" Hard Drive Bay for HDDs (DesignWare SATA).
WLAN1: Atheros AR9380 5GHz 802.11an 3:3x3
WLAN2: Atheros AR9581 2.4GHz 802.11bgn 3:3x3
SDCARD: GL827L SD/MMC/MS Flash Card Reader (on internal dwc2 USB 2.0 host)
I2C: GMT G781 (i2c-0 @ 0x4d - lm90 compatible temperature sensor)
TC654 (i2c-0 @ 0x1b - Dual PWM fan Speed controller)
WARNING: The serial port needs a TTL/RS-232 v3.3 level converter!
INFO: Since this device only has a NAND chip. I opted for going with
root.squashfs in a UBI volume. There's no squashfs/jffs2 image.
This target produces three images.
a. netgear factory image
This image can be used to flash the Netgear WNDR4700 via the
firmware recovery mechanism and the web admin site.
The bootloader can be instructed to do a firmware recovery via the
# fw_recovery
command. It will start a tftp server and listen on 192.168.1.1
(the ipaddr variable in u-boot) for incoming, binary tftp clients.
The firmware recovery mechanism is also started if any of the flash
content which contains the kernel, device-tree definitions or the
(fake)rootfs fails to verify or load.
b. sysupgrade.tar image for sysupgrade
An sysupgrade will replace the entire current LEDE installation
with a newer version. This does include the kernel and the ubi rootfs
partition. The configuration can be carried over automatically as well
if desired.
simply copy the sysupgrade.tar to a the WNDR4700 running LEDE and run:
root@lede:~# sysupgrade sysupgrade.tar
and let it reboot.
Note: The devicetree flash area is NOT updated. Until the devicetree
definition is stable, this can lead to all sorts of hardware
detection problems! So make sure, if you experience issues: try
the fw_recovery. If you are unsure whenever this affects you:
test if you can reproduce your issue with the initramfs method.
As it will always have up-to-date device-tree definitions.
c. initramfs image for TFTP (for development and testing)
To use the initramfs method, follow the following steps:
1) Move the "lede-apm821xx-netgear-WNDR4700-initramfs-kernel.bin"
file to to the root directory of your TFTP server.
2) rename it to wndr4700.bin
3) On the WNDR4700 - Hit Enter during u-boot and insert:
# tftp 400000 wndr4700.bin; run addtty; bootm 400000 -
This will boot the LEDE image.
Note: The default tftp server is 192.168.1.7, if you want to change it:
# setenv serverip 192.168.8.7;
Note2: The default address for the WNDR4700 is 192.168.1.1:
# setenv ipaddr 192.168.8.8;
Note: Connect you tftp server on the last LAN port (not the WAN)
Note: The firmware for the USB 3.0 Host chip is not included anymore.
Therefore the two USB 3.0 ports will not work without the
uPD7070x-firmware package installed.
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2016-07-20 13:44:57 +00:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Netgear WNDR4700/WNDR4720 Series";
|
2020-08-12 17:52:08 +00:00
|
|
|
compatible = "netgear,wndr4700", "apm,bluestone";
|
apm821xx: add support for the Netgear Centria N900 WNDR4700/WNDR4720
This patch adds support for Netgear Centria N900 WNDR4700/WNDR4720
hardware highlights:
CPU: AMCC PowerPC APM82181 Rev. E at 1000 MHz (PLB=166, OPB=83, EBC=83 MHz)
Security support, Boot ROM Location NAND wo/ECC 2k page (8 bits)
32 kB I-Cache 32 kB D-Cache, 256 kB L2-Cache, 32 kB OnChip Memory
Board: AMCC APM82181 Evaluation Board, PCIE0/SATA1, 1*USB OTG
DRAM: 256 MB (ECC not enabled, 500 Mb/s, 32-bit, CL3)
NAND: 128 MiB (SLC, erase size: 128 KiB, page size: 2048, OOB size: 64)
ETH: Atheros AR8327N Gigabit Switch (4 x LAN, 1 x WAN)
USB: 2 x 3.0 (Renesas uPD720202K8-711-BAA-A, firmware not included)
SATA: 1 x SATA-II 3.5" Hard Drive Bay for HDDs (DesignWare SATA).
WLAN1: Atheros AR9380 5GHz 802.11an 3:3x3
WLAN2: Atheros AR9581 2.4GHz 802.11bgn 3:3x3
SDCARD: GL827L SD/MMC/MS Flash Card Reader (on internal dwc2 USB 2.0 host)
I2C: GMT G781 (i2c-0 @ 0x4d - lm90 compatible temperature sensor)
TC654 (i2c-0 @ 0x1b - Dual PWM fan Speed controller)
WARNING: The serial port needs a TTL/RS-232 v3.3 level converter!
INFO: Since this device only has a NAND chip. I opted for going with
root.squashfs in a UBI volume. There's no squashfs/jffs2 image.
This target produces three images.
a. netgear factory image
This image can be used to flash the Netgear WNDR4700 via the
firmware recovery mechanism and the web admin site.
The bootloader can be instructed to do a firmware recovery via the
# fw_recovery
command. It will start a tftp server and listen on 192.168.1.1
(the ipaddr variable in u-boot) for incoming, binary tftp clients.
The firmware recovery mechanism is also started if any of the flash
content which contains the kernel, device-tree definitions or the
(fake)rootfs fails to verify or load.
b. sysupgrade.tar image for sysupgrade
An sysupgrade will replace the entire current LEDE installation
with a newer version. This does include the kernel and the ubi rootfs
partition. The configuration can be carried over automatically as well
if desired.
simply copy the sysupgrade.tar to a the WNDR4700 running LEDE and run:
root@lede:~# sysupgrade sysupgrade.tar
and let it reboot.
Note: The devicetree flash area is NOT updated. Until the devicetree
definition is stable, this can lead to all sorts of hardware
detection problems! So make sure, if you experience issues: try
the fw_recovery. If you are unsure whenever this affects you:
test if you can reproduce your issue with the initramfs method.
As it will always have up-to-date device-tree definitions.
c. initramfs image for TFTP (for development and testing)
To use the initramfs method, follow the following steps:
1) Move the "lede-apm821xx-netgear-WNDR4700-initramfs-kernel.bin"
file to to the root directory of your TFTP server.
2) rename it to wndr4700.bin
3) On the WNDR4700 - Hit Enter during u-boot and insert:
# tftp 400000 wndr4700.bin; run addtty; bootm 400000 -
This will boot the LEDE image.
Note: The default tftp server is 192.168.1.7, if you want to change it:
# setenv serverip 192.168.8.7;
Note2: The default address for the WNDR4700 is 192.168.1.1:
# setenv ipaddr 192.168.8.8;
Note: Connect you tftp server on the last LAN port (not the WAN)
Note: The firmware for the USB 3.0 Host chip is not included anymore.
Therefore the two USB 3.0 ports will not work without the
uPD7070x-firmware package installed.
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2016-07-20 13:44:57 +00:00
|
|
|
|
|
|
|
aliases {
|
|
|
|
serial0 = &UART0;
|
|
|
|
};
|
|
|
|
|
|
|
|
chosen {
|
2018-10-15 18:00:07 +00:00
|
|
|
stdout-path = "/plb/opb/serial@ef600300:115200n8";
|
apm821xx: add support for the Netgear Centria N900 WNDR4700/WNDR4720
This patch adds support for Netgear Centria N900 WNDR4700/WNDR4720
hardware highlights:
CPU: AMCC PowerPC APM82181 Rev. E at 1000 MHz (PLB=166, OPB=83, EBC=83 MHz)
Security support, Boot ROM Location NAND wo/ECC 2k page (8 bits)
32 kB I-Cache 32 kB D-Cache, 256 kB L2-Cache, 32 kB OnChip Memory
Board: AMCC APM82181 Evaluation Board, PCIE0/SATA1, 1*USB OTG
DRAM: 256 MB (ECC not enabled, 500 Mb/s, 32-bit, CL3)
NAND: 128 MiB (SLC, erase size: 128 KiB, page size: 2048, OOB size: 64)
ETH: Atheros AR8327N Gigabit Switch (4 x LAN, 1 x WAN)
USB: 2 x 3.0 (Renesas uPD720202K8-711-BAA-A, firmware not included)
SATA: 1 x SATA-II 3.5" Hard Drive Bay for HDDs (DesignWare SATA).
WLAN1: Atheros AR9380 5GHz 802.11an 3:3x3
WLAN2: Atheros AR9581 2.4GHz 802.11bgn 3:3x3
SDCARD: GL827L SD/MMC/MS Flash Card Reader (on internal dwc2 USB 2.0 host)
I2C: GMT G781 (i2c-0 @ 0x4d - lm90 compatible temperature sensor)
TC654 (i2c-0 @ 0x1b - Dual PWM fan Speed controller)
WARNING: The serial port needs a TTL/RS-232 v3.3 level converter!
INFO: Since this device only has a NAND chip. I opted for going with
root.squashfs in a UBI volume. There's no squashfs/jffs2 image.
This target produces three images.
a. netgear factory image
This image can be used to flash the Netgear WNDR4700 via the
firmware recovery mechanism and the web admin site.
The bootloader can be instructed to do a firmware recovery via the
# fw_recovery
command. It will start a tftp server and listen on 192.168.1.1
(the ipaddr variable in u-boot) for incoming, binary tftp clients.
The firmware recovery mechanism is also started if any of the flash
content which contains the kernel, device-tree definitions or the
(fake)rootfs fails to verify or load.
b. sysupgrade.tar image for sysupgrade
An sysupgrade will replace the entire current LEDE installation
with a newer version. This does include the kernel and the ubi rootfs
partition. The configuration can be carried over automatically as well
if desired.
simply copy the sysupgrade.tar to a the WNDR4700 running LEDE and run:
root@lede:~# sysupgrade sysupgrade.tar
and let it reboot.
Note: The devicetree flash area is NOT updated. Until the devicetree
definition is stable, this can lead to all sorts of hardware
detection problems! So make sure, if you experience issues: try
the fw_recovery. If you are unsure whenever this affects you:
test if you can reproduce your issue with the initramfs method.
As it will always have up-to-date device-tree definitions.
c. initramfs image for TFTP (for development and testing)
To use the initramfs method, follow the following steps:
1) Move the "lede-apm821xx-netgear-WNDR4700-initramfs-kernel.bin"
file to to the root directory of your TFTP server.
2) rename it to wndr4700.bin
3) On the WNDR4700 - Hit Enter during u-boot and insert:
# tftp 400000 wndr4700.bin; run addtty; bootm 400000 -
This will boot the LEDE image.
Note: The default tftp server is 192.168.1.7, if you want to change it:
# setenv serverip 192.168.8.7;
Note2: The default address for the WNDR4700 is 192.168.1.1:
# setenv ipaddr 192.168.8.8;
Note: Connect you tftp server on the last LAN port (not the WAN)
Note: The firmware for the USB 3.0 Host chip is not included anymore.
Therefore the two USB 3.0 ports will not work without the
uPD7070x-firmware package installed.
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2016-07-20 13:44:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
thermal-zones {
|
|
|
|
cpu_thermal: cpu-thermal {
|
|
|
|
polling-delay-passive = <10000>; /* milliseconds */
|
|
|
|
polling-delay = <20000>; /* milliseconds */
|
|
|
|
|
|
|
|
thermal-sensors = <&temp0 1>;
|
|
|
|
|
2020-03-21 20:40:15 +00:00
|
|
|
/*
|
|
|
|
* REVISIT:
|
|
|
|
*
|
|
|
|
* Add the <&drive_temp>; sensor there and wire up
|
|
|
|
* the coefficients = <1 1>; property.
|
|
|
|
*
|
|
|
|
* Note: The kernel does not yet support more than
|
|
|
|
* one sensor (see of_thermal.c's function:
|
|
|
|
* thermal_of_build_thermal_zon()). Once this is
|
|
|
|
* implemented.
|
|
|
|
*/
|
|
|
|
|
apm821xx: add support for the Netgear Centria N900 WNDR4700/WNDR4720
This patch adds support for Netgear Centria N900 WNDR4700/WNDR4720
hardware highlights:
CPU: AMCC PowerPC APM82181 Rev. E at 1000 MHz (PLB=166, OPB=83, EBC=83 MHz)
Security support, Boot ROM Location NAND wo/ECC 2k page (8 bits)
32 kB I-Cache 32 kB D-Cache, 256 kB L2-Cache, 32 kB OnChip Memory
Board: AMCC APM82181 Evaluation Board, PCIE0/SATA1, 1*USB OTG
DRAM: 256 MB (ECC not enabled, 500 Mb/s, 32-bit, CL3)
NAND: 128 MiB (SLC, erase size: 128 KiB, page size: 2048, OOB size: 64)
ETH: Atheros AR8327N Gigabit Switch (4 x LAN, 1 x WAN)
USB: 2 x 3.0 (Renesas uPD720202K8-711-BAA-A, firmware not included)
SATA: 1 x SATA-II 3.5" Hard Drive Bay for HDDs (DesignWare SATA).
WLAN1: Atheros AR9380 5GHz 802.11an 3:3x3
WLAN2: Atheros AR9581 2.4GHz 802.11bgn 3:3x3
SDCARD: GL827L SD/MMC/MS Flash Card Reader (on internal dwc2 USB 2.0 host)
I2C: GMT G781 (i2c-0 @ 0x4d - lm90 compatible temperature sensor)
TC654 (i2c-0 @ 0x1b - Dual PWM fan Speed controller)
WARNING: The serial port needs a TTL/RS-232 v3.3 level converter!
INFO: Since this device only has a NAND chip. I opted for going with
root.squashfs in a UBI volume. There's no squashfs/jffs2 image.
This target produces three images.
a. netgear factory image
This image can be used to flash the Netgear WNDR4700 via the
firmware recovery mechanism and the web admin site.
The bootloader can be instructed to do a firmware recovery via the
# fw_recovery
command. It will start a tftp server and listen on 192.168.1.1
(the ipaddr variable in u-boot) for incoming, binary tftp clients.
The firmware recovery mechanism is also started if any of the flash
content which contains the kernel, device-tree definitions or the
(fake)rootfs fails to verify or load.
b. sysupgrade.tar image for sysupgrade
An sysupgrade will replace the entire current LEDE installation
with a newer version. This does include the kernel and the ubi rootfs
partition. The configuration can be carried over automatically as well
if desired.
simply copy the sysupgrade.tar to a the WNDR4700 running LEDE and run:
root@lede:~# sysupgrade sysupgrade.tar
and let it reboot.
Note: The devicetree flash area is NOT updated. Until the devicetree
definition is stable, this can lead to all sorts of hardware
detection problems! So make sure, if you experience issues: try
the fw_recovery. If you are unsure whenever this affects you:
test if you can reproduce your issue with the initramfs method.
As it will always have up-to-date device-tree definitions.
c. initramfs image for TFTP (for development and testing)
To use the initramfs method, follow the following steps:
1) Move the "lede-apm821xx-netgear-WNDR4700-initramfs-kernel.bin"
file to to the root directory of your TFTP server.
2) rename it to wndr4700.bin
3) On the WNDR4700 - Hit Enter during u-boot and insert:
# tftp 400000 wndr4700.bin; run addtty; bootm 400000 -
This will boot the LEDE image.
Note: The default tftp server is 192.168.1.7, if you want to change it:
# setenv serverip 192.168.8.7;
Note2: The default address for the WNDR4700 is 192.168.1.1:
# setenv ipaddr 192.168.8.8;
Note: Connect you tftp server on the last LAN port (not the WAN)
Note: The firmware for the USB 3.0 Host chip is not included anymore.
Therefore the two USB 3.0 ports will not work without the
uPD7070x-firmware package installed.
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2016-07-20 13:44:57 +00:00
|
|
|
trips {
|
|
|
|
/*
|
|
|
|
* Once the thermal governers are a bit smarter
|
|
|
|
* and do hysteresis properly, we can disable
|
|
|
|
* the fan when the HDD and CPU has < 39 C.
|
|
|
|
*/
|
2020-03-21 20:40:15 +00:00
|
|
|
cpu_alert0: board-alert0 {
|
apm821xx: add support for the Netgear Centria N900 WNDR4700/WNDR4720
This patch adds support for Netgear Centria N900 WNDR4700/WNDR4720
hardware highlights:
CPU: AMCC PowerPC APM82181 Rev. E at 1000 MHz (PLB=166, OPB=83, EBC=83 MHz)
Security support, Boot ROM Location NAND wo/ECC 2k page (8 bits)
32 kB I-Cache 32 kB D-Cache, 256 kB L2-Cache, 32 kB OnChip Memory
Board: AMCC APM82181 Evaluation Board, PCIE0/SATA1, 1*USB OTG
DRAM: 256 MB (ECC not enabled, 500 Mb/s, 32-bit, CL3)
NAND: 128 MiB (SLC, erase size: 128 KiB, page size: 2048, OOB size: 64)
ETH: Atheros AR8327N Gigabit Switch (4 x LAN, 1 x WAN)
USB: 2 x 3.0 (Renesas uPD720202K8-711-BAA-A, firmware not included)
SATA: 1 x SATA-II 3.5" Hard Drive Bay for HDDs (DesignWare SATA).
WLAN1: Atheros AR9380 5GHz 802.11an 3:3x3
WLAN2: Atheros AR9581 2.4GHz 802.11bgn 3:3x3
SDCARD: GL827L SD/MMC/MS Flash Card Reader (on internal dwc2 USB 2.0 host)
I2C: GMT G781 (i2c-0 @ 0x4d - lm90 compatible temperature sensor)
TC654 (i2c-0 @ 0x1b - Dual PWM fan Speed controller)
WARNING: The serial port needs a TTL/RS-232 v3.3 level converter!
INFO: Since this device only has a NAND chip. I opted for going with
root.squashfs in a UBI volume. There's no squashfs/jffs2 image.
This target produces three images.
a. netgear factory image
This image can be used to flash the Netgear WNDR4700 via the
firmware recovery mechanism and the web admin site.
The bootloader can be instructed to do a firmware recovery via the
# fw_recovery
command. It will start a tftp server and listen on 192.168.1.1
(the ipaddr variable in u-boot) for incoming, binary tftp clients.
The firmware recovery mechanism is also started if any of the flash
content which contains the kernel, device-tree definitions or the
(fake)rootfs fails to verify or load.
b. sysupgrade.tar image for sysupgrade
An sysupgrade will replace the entire current LEDE installation
with a newer version. This does include the kernel and the ubi rootfs
partition. The configuration can be carried over automatically as well
if desired.
simply copy the sysupgrade.tar to a the WNDR4700 running LEDE and run:
root@lede:~# sysupgrade sysupgrade.tar
and let it reboot.
Note: The devicetree flash area is NOT updated. Until the devicetree
definition is stable, this can lead to all sorts of hardware
detection problems! So make sure, if you experience issues: try
the fw_recovery. If you are unsure whenever this affects you:
test if you can reproduce your issue with the initramfs method.
As it will always have up-to-date device-tree definitions.
c. initramfs image for TFTP (for development and testing)
To use the initramfs method, follow the following steps:
1) Move the "lede-apm821xx-netgear-WNDR4700-initramfs-kernel.bin"
file to to the root directory of your TFTP server.
2) rename it to wndr4700.bin
3) On the WNDR4700 - Hit Enter during u-boot and insert:
# tftp 400000 wndr4700.bin; run addtty; bootm 400000 -
This will boot the LEDE image.
Note: The default tftp server is 192.168.1.7, if you want to change it:
# setenv serverip 192.168.8.7;
Note2: The default address for the WNDR4700 is 192.168.1.1:
# setenv ipaddr 192.168.8.8;
Note: Connect you tftp server on the last LAN port (not the WAN)
Note: The firmware for the USB 3.0 Host chip is not included anymore.
Therefore the two USB 3.0 ports will not work without the
uPD7070x-firmware package installed.
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2016-07-20 13:44:57 +00:00
|
|
|
temperature = <25000>;
|
|
|
|
hysteresis = <2000>;
|
|
|
|
type = "active";
|
|
|
|
};
|
|
|
|
|
|
|
|
cpu_alert1: cpu-alert1 {
|
|
|
|
temperature = <27000>; /* millicelsius */
|
|
|
|
hysteresis = <2000>; /* millicelsius */
|
|
|
|
type = "active";
|
|
|
|
};
|
|
|
|
|
|
|
|
cpu_alert2: cpu-alert2 {
|
|
|
|
temperature = <65000>; /* millicelsius */
|
|
|
|
hysteresis = <2000>; /* millicelsius */
|
|
|
|
type = "active";
|
|
|
|
};
|
|
|
|
|
|
|
|
cpu_alert3: cpu-alert3 {
|
|
|
|
temperature = <70000>; /* millicelsius */
|
|
|
|
hysteresis = <2000>; /* millicelsius */
|
|
|
|
type = "active";
|
|
|
|
};
|
|
|
|
|
|
|
|
cpu_alert4: cpu-alert4 {
|
|
|
|
temperature = <75000>; /* millicelsius */
|
|
|
|
hysteresis = <2000>; /* millicelsius */
|
|
|
|
type = "active";
|
|
|
|
};
|
|
|
|
|
|
|
|
cpu_alert5: cpu-alert5 {
|
|
|
|
temperature = <80000>; /* millicelsius */
|
|
|
|
hysteresis = <2000>; /* millicelsius */
|
|
|
|
type = "active";
|
|
|
|
};
|
|
|
|
|
|
|
|
cpu_alert6: cpu-alert6 {
|
2019-09-28 12:31:16 +00:00
|
|
|
temperature = <85000>; /* millicelsius */
|
apm821xx: add support for the Netgear Centria N900 WNDR4700/WNDR4720
This patch adds support for Netgear Centria N900 WNDR4700/WNDR4720
hardware highlights:
CPU: AMCC PowerPC APM82181 Rev. E at 1000 MHz (PLB=166, OPB=83, EBC=83 MHz)
Security support, Boot ROM Location NAND wo/ECC 2k page (8 bits)
32 kB I-Cache 32 kB D-Cache, 256 kB L2-Cache, 32 kB OnChip Memory
Board: AMCC APM82181 Evaluation Board, PCIE0/SATA1, 1*USB OTG
DRAM: 256 MB (ECC not enabled, 500 Mb/s, 32-bit, CL3)
NAND: 128 MiB (SLC, erase size: 128 KiB, page size: 2048, OOB size: 64)
ETH: Atheros AR8327N Gigabit Switch (4 x LAN, 1 x WAN)
USB: 2 x 3.0 (Renesas uPD720202K8-711-BAA-A, firmware not included)
SATA: 1 x SATA-II 3.5" Hard Drive Bay for HDDs (DesignWare SATA).
WLAN1: Atheros AR9380 5GHz 802.11an 3:3x3
WLAN2: Atheros AR9581 2.4GHz 802.11bgn 3:3x3
SDCARD: GL827L SD/MMC/MS Flash Card Reader (on internal dwc2 USB 2.0 host)
I2C: GMT G781 (i2c-0 @ 0x4d - lm90 compatible temperature sensor)
TC654 (i2c-0 @ 0x1b - Dual PWM fan Speed controller)
WARNING: The serial port needs a TTL/RS-232 v3.3 level converter!
INFO: Since this device only has a NAND chip. I opted for going with
root.squashfs in a UBI volume. There's no squashfs/jffs2 image.
This target produces three images.
a. netgear factory image
This image can be used to flash the Netgear WNDR4700 via the
firmware recovery mechanism and the web admin site.
The bootloader can be instructed to do a firmware recovery via the
# fw_recovery
command. It will start a tftp server and listen on 192.168.1.1
(the ipaddr variable in u-boot) for incoming, binary tftp clients.
The firmware recovery mechanism is also started if any of the flash
content which contains the kernel, device-tree definitions or the
(fake)rootfs fails to verify or load.
b. sysupgrade.tar image for sysupgrade
An sysupgrade will replace the entire current LEDE installation
with a newer version. This does include the kernel and the ubi rootfs
partition. The configuration can be carried over automatically as well
if desired.
simply copy the sysupgrade.tar to a the WNDR4700 running LEDE and run:
root@lede:~# sysupgrade sysupgrade.tar
and let it reboot.
Note: The devicetree flash area is NOT updated. Until the devicetree
definition is stable, this can lead to all sorts of hardware
detection problems! So make sure, if you experience issues: try
the fw_recovery. If you are unsure whenever this affects you:
test if you can reproduce your issue with the initramfs method.
As it will always have up-to-date device-tree definitions.
c. initramfs image for TFTP (for development and testing)
To use the initramfs method, follow the following steps:
1) Move the "lede-apm821xx-netgear-WNDR4700-initramfs-kernel.bin"
file to to the root directory of your TFTP server.
2) rename it to wndr4700.bin
3) On the WNDR4700 - Hit Enter during u-boot and insert:
# tftp 400000 wndr4700.bin; run addtty; bootm 400000 -
This will boot the LEDE image.
Note: The default tftp server is 192.168.1.7, if you want to change it:
# setenv serverip 192.168.8.7;
Note2: The default address for the WNDR4700 is 192.168.1.1:
# setenv ipaddr 192.168.8.8;
Note: Connect you tftp server on the last LAN port (not the WAN)
Note: The firmware for the USB 3.0 Host chip is not included anymore.
Therefore the two USB 3.0 ports will not work without the
uPD7070x-firmware package installed.
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2016-07-20 13:44:57 +00:00
|
|
|
hysteresis = <2000>; /* millicelsius */
|
|
|
|
type = "active";
|
|
|
|
};
|
|
|
|
|
|
|
|
cpu_crit: cpu-crit {
|
|
|
|
temperature = <90000>; /* millicelsius */
|
|
|
|
hysteresis = <2000>; /* millicelsius */
|
|
|
|
type = "critical";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
cooling-maps {
|
|
|
|
map0 {
|
|
|
|
trip = <&cpu_alert0>;
|
|
|
|
cooling-device = <&fan0 THERMAL_NO_LIMIT 0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
map1 {
|
|
|
|
trip = <&cpu_alert1>;
|
2022-02-12 18:53:37 +00:00
|
|
|
cooling-device = <&fan0 1 1>;
|
apm821xx: add support for the Netgear Centria N900 WNDR4700/WNDR4720
This patch adds support for Netgear Centria N900 WNDR4700/WNDR4720
hardware highlights:
CPU: AMCC PowerPC APM82181 Rev. E at 1000 MHz (PLB=166, OPB=83, EBC=83 MHz)
Security support, Boot ROM Location NAND wo/ECC 2k page (8 bits)
32 kB I-Cache 32 kB D-Cache, 256 kB L2-Cache, 32 kB OnChip Memory
Board: AMCC APM82181 Evaluation Board, PCIE0/SATA1, 1*USB OTG
DRAM: 256 MB (ECC not enabled, 500 Mb/s, 32-bit, CL3)
NAND: 128 MiB (SLC, erase size: 128 KiB, page size: 2048, OOB size: 64)
ETH: Atheros AR8327N Gigabit Switch (4 x LAN, 1 x WAN)
USB: 2 x 3.0 (Renesas uPD720202K8-711-BAA-A, firmware not included)
SATA: 1 x SATA-II 3.5" Hard Drive Bay for HDDs (DesignWare SATA).
WLAN1: Atheros AR9380 5GHz 802.11an 3:3x3
WLAN2: Atheros AR9581 2.4GHz 802.11bgn 3:3x3
SDCARD: GL827L SD/MMC/MS Flash Card Reader (on internal dwc2 USB 2.0 host)
I2C: GMT G781 (i2c-0 @ 0x4d - lm90 compatible temperature sensor)
TC654 (i2c-0 @ 0x1b - Dual PWM fan Speed controller)
WARNING: The serial port needs a TTL/RS-232 v3.3 level converter!
INFO: Since this device only has a NAND chip. I opted for going with
root.squashfs in a UBI volume. There's no squashfs/jffs2 image.
This target produces three images.
a. netgear factory image
This image can be used to flash the Netgear WNDR4700 via the
firmware recovery mechanism and the web admin site.
The bootloader can be instructed to do a firmware recovery via the
# fw_recovery
command. It will start a tftp server and listen on 192.168.1.1
(the ipaddr variable in u-boot) for incoming, binary tftp clients.
The firmware recovery mechanism is also started if any of the flash
content which contains the kernel, device-tree definitions or the
(fake)rootfs fails to verify or load.
b. sysupgrade.tar image for sysupgrade
An sysupgrade will replace the entire current LEDE installation
with a newer version. This does include the kernel and the ubi rootfs
partition. The configuration can be carried over automatically as well
if desired.
simply copy the sysupgrade.tar to a the WNDR4700 running LEDE and run:
root@lede:~# sysupgrade sysupgrade.tar
and let it reboot.
Note: The devicetree flash area is NOT updated. Until the devicetree
definition is stable, this can lead to all sorts of hardware
detection problems! So make sure, if you experience issues: try
the fw_recovery. If you are unsure whenever this affects you:
test if you can reproduce your issue with the initramfs method.
As it will always have up-to-date device-tree definitions.
c. initramfs image for TFTP (for development and testing)
To use the initramfs method, follow the following steps:
1) Move the "lede-apm821xx-netgear-WNDR4700-initramfs-kernel.bin"
file to to the root directory of your TFTP server.
2) rename it to wndr4700.bin
3) On the WNDR4700 - Hit Enter during u-boot and insert:
# tftp 400000 wndr4700.bin; run addtty; bootm 400000 -
This will boot the LEDE image.
Note: The default tftp server is 192.168.1.7, if you want to change it:
# setenv serverip 192.168.8.7;
Note2: The default address for the WNDR4700 is 192.168.1.1:
# setenv ipaddr 192.168.8.8;
Note: Connect you tftp server on the last LAN port (not the WAN)
Note: The firmware for the USB 3.0 Host chip is not included anymore.
Therefore the two USB 3.0 ports will not work without the
uPD7070x-firmware package installed.
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2016-07-20 13:44:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
map2 {
|
|
|
|
trip = <&cpu_alert2>;
|
2022-02-12 18:53:37 +00:00
|
|
|
cooling-device = <&fan0 2 4>;
|
apm821xx: add support for the Netgear Centria N900 WNDR4700/WNDR4720
This patch adds support for Netgear Centria N900 WNDR4700/WNDR4720
hardware highlights:
CPU: AMCC PowerPC APM82181 Rev. E at 1000 MHz (PLB=166, OPB=83, EBC=83 MHz)
Security support, Boot ROM Location NAND wo/ECC 2k page (8 bits)
32 kB I-Cache 32 kB D-Cache, 256 kB L2-Cache, 32 kB OnChip Memory
Board: AMCC APM82181 Evaluation Board, PCIE0/SATA1, 1*USB OTG
DRAM: 256 MB (ECC not enabled, 500 Mb/s, 32-bit, CL3)
NAND: 128 MiB (SLC, erase size: 128 KiB, page size: 2048, OOB size: 64)
ETH: Atheros AR8327N Gigabit Switch (4 x LAN, 1 x WAN)
USB: 2 x 3.0 (Renesas uPD720202K8-711-BAA-A, firmware not included)
SATA: 1 x SATA-II 3.5" Hard Drive Bay for HDDs (DesignWare SATA).
WLAN1: Atheros AR9380 5GHz 802.11an 3:3x3
WLAN2: Atheros AR9581 2.4GHz 802.11bgn 3:3x3
SDCARD: GL827L SD/MMC/MS Flash Card Reader (on internal dwc2 USB 2.0 host)
I2C: GMT G781 (i2c-0 @ 0x4d - lm90 compatible temperature sensor)
TC654 (i2c-0 @ 0x1b - Dual PWM fan Speed controller)
WARNING: The serial port needs a TTL/RS-232 v3.3 level converter!
INFO: Since this device only has a NAND chip. I opted for going with
root.squashfs in a UBI volume. There's no squashfs/jffs2 image.
This target produces three images.
a. netgear factory image
This image can be used to flash the Netgear WNDR4700 via the
firmware recovery mechanism and the web admin site.
The bootloader can be instructed to do a firmware recovery via the
# fw_recovery
command. It will start a tftp server and listen on 192.168.1.1
(the ipaddr variable in u-boot) for incoming, binary tftp clients.
The firmware recovery mechanism is also started if any of the flash
content which contains the kernel, device-tree definitions or the
(fake)rootfs fails to verify or load.
b. sysupgrade.tar image for sysupgrade
An sysupgrade will replace the entire current LEDE installation
with a newer version. This does include the kernel and the ubi rootfs
partition. The configuration can be carried over automatically as well
if desired.
simply copy the sysupgrade.tar to a the WNDR4700 running LEDE and run:
root@lede:~# sysupgrade sysupgrade.tar
and let it reboot.
Note: The devicetree flash area is NOT updated. Until the devicetree
definition is stable, this can lead to all sorts of hardware
detection problems! So make sure, if you experience issues: try
the fw_recovery. If you are unsure whenever this affects you:
test if you can reproduce your issue with the initramfs method.
As it will always have up-to-date device-tree definitions.
c. initramfs image for TFTP (for development and testing)
To use the initramfs method, follow the following steps:
1) Move the "lede-apm821xx-netgear-WNDR4700-initramfs-kernel.bin"
file to to the root directory of your TFTP server.
2) rename it to wndr4700.bin
3) On the WNDR4700 - Hit Enter during u-boot and insert:
# tftp 400000 wndr4700.bin; run addtty; bootm 400000 -
This will boot the LEDE image.
Note: The default tftp server is 192.168.1.7, if you want to change it:
# setenv serverip 192.168.8.7;
Note2: The default address for the WNDR4700 is 192.168.1.1:
# setenv ipaddr 192.168.8.8;
Note: Connect you tftp server on the last LAN port (not the WAN)
Note: The firmware for the USB 3.0 Host chip is not included anymore.
Therefore the two USB 3.0 ports will not work without the
uPD7070x-firmware package installed.
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2016-07-20 13:44:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
map3 {
|
|
|
|
trip = <&cpu_alert3>;
|
2022-02-12 18:53:37 +00:00
|
|
|
cooling-device = <&fan0 4 8>;
|
apm821xx: add support for the Netgear Centria N900 WNDR4700/WNDR4720
This patch adds support for Netgear Centria N900 WNDR4700/WNDR4720
hardware highlights:
CPU: AMCC PowerPC APM82181 Rev. E at 1000 MHz (PLB=166, OPB=83, EBC=83 MHz)
Security support, Boot ROM Location NAND wo/ECC 2k page (8 bits)
32 kB I-Cache 32 kB D-Cache, 256 kB L2-Cache, 32 kB OnChip Memory
Board: AMCC APM82181 Evaluation Board, PCIE0/SATA1, 1*USB OTG
DRAM: 256 MB (ECC not enabled, 500 Mb/s, 32-bit, CL3)
NAND: 128 MiB (SLC, erase size: 128 KiB, page size: 2048, OOB size: 64)
ETH: Atheros AR8327N Gigabit Switch (4 x LAN, 1 x WAN)
USB: 2 x 3.0 (Renesas uPD720202K8-711-BAA-A, firmware not included)
SATA: 1 x SATA-II 3.5" Hard Drive Bay for HDDs (DesignWare SATA).
WLAN1: Atheros AR9380 5GHz 802.11an 3:3x3
WLAN2: Atheros AR9581 2.4GHz 802.11bgn 3:3x3
SDCARD: GL827L SD/MMC/MS Flash Card Reader (on internal dwc2 USB 2.0 host)
I2C: GMT G781 (i2c-0 @ 0x4d - lm90 compatible temperature sensor)
TC654 (i2c-0 @ 0x1b - Dual PWM fan Speed controller)
WARNING: The serial port needs a TTL/RS-232 v3.3 level converter!
INFO: Since this device only has a NAND chip. I opted for going with
root.squashfs in a UBI volume. There's no squashfs/jffs2 image.
This target produces three images.
a. netgear factory image
This image can be used to flash the Netgear WNDR4700 via the
firmware recovery mechanism and the web admin site.
The bootloader can be instructed to do a firmware recovery via the
# fw_recovery
command. It will start a tftp server and listen on 192.168.1.1
(the ipaddr variable in u-boot) for incoming, binary tftp clients.
The firmware recovery mechanism is also started if any of the flash
content which contains the kernel, device-tree definitions or the
(fake)rootfs fails to verify or load.
b. sysupgrade.tar image for sysupgrade
An sysupgrade will replace the entire current LEDE installation
with a newer version. This does include the kernel and the ubi rootfs
partition. The configuration can be carried over automatically as well
if desired.
simply copy the sysupgrade.tar to a the WNDR4700 running LEDE and run:
root@lede:~# sysupgrade sysupgrade.tar
and let it reboot.
Note: The devicetree flash area is NOT updated. Until the devicetree
definition is stable, this can lead to all sorts of hardware
detection problems! So make sure, if you experience issues: try
the fw_recovery. If you are unsure whenever this affects you:
test if you can reproduce your issue with the initramfs method.
As it will always have up-to-date device-tree definitions.
c. initramfs image for TFTP (for development and testing)
To use the initramfs method, follow the following steps:
1) Move the "lede-apm821xx-netgear-WNDR4700-initramfs-kernel.bin"
file to to the root directory of your TFTP server.
2) rename it to wndr4700.bin
3) On the WNDR4700 - Hit Enter during u-boot and insert:
# tftp 400000 wndr4700.bin; run addtty; bootm 400000 -
This will boot the LEDE image.
Note: The default tftp server is 192.168.1.7, if you want to change it:
# setenv serverip 192.168.8.7;
Note2: The default address for the WNDR4700 is 192.168.1.1:
# setenv ipaddr 192.168.8.8;
Note: Connect you tftp server on the last LAN port (not the WAN)
Note: The firmware for the USB 3.0 Host chip is not included anymore.
Therefore the two USB 3.0 ports will not work without the
uPD7070x-firmware package installed.
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2016-07-20 13:44:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
map4 {
|
|
|
|
trip = <&cpu_alert4>;
|
2022-02-12 18:53:37 +00:00
|
|
|
cooling-device = <&fan0 9 12>;
|
apm821xx: add support for the Netgear Centria N900 WNDR4700/WNDR4720
This patch adds support for Netgear Centria N900 WNDR4700/WNDR4720
hardware highlights:
CPU: AMCC PowerPC APM82181 Rev. E at 1000 MHz (PLB=166, OPB=83, EBC=83 MHz)
Security support, Boot ROM Location NAND wo/ECC 2k page (8 bits)
32 kB I-Cache 32 kB D-Cache, 256 kB L2-Cache, 32 kB OnChip Memory
Board: AMCC APM82181 Evaluation Board, PCIE0/SATA1, 1*USB OTG
DRAM: 256 MB (ECC not enabled, 500 Mb/s, 32-bit, CL3)
NAND: 128 MiB (SLC, erase size: 128 KiB, page size: 2048, OOB size: 64)
ETH: Atheros AR8327N Gigabit Switch (4 x LAN, 1 x WAN)
USB: 2 x 3.0 (Renesas uPD720202K8-711-BAA-A, firmware not included)
SATA: 1 x SATA-II 3.5" Hard Drive Bay for HDDs (DesignWare SATA).
WLAN1: Atheros AR9380 5GHz 802.11an 3:3x3
WLAN2: Atheros AR9581 2.4GHz 802.11bgn 3:3x3
SDCARD: GL827L SD/MMC/MS Flash Card Reader (on internal dwc2 USB 2.0 host)
I2C: GMT G781 (i2c-0 @ 0x4d - lm90 compatible temperature sensor)
TC654 (i2c-0 @ 0x1b - Dual PWM fan Speed controller)
WARNING: The serial port needs a TTL/RS-232 v3.3 level converter!
INFO: Since this device only has a NAND chip. I opted for going with
root.squashfs in a UBI volume. There's no squashfs/jffs2 image.
This target produces three images.
a. netgear factory image
This image can be used to flash the Netgear WNDR4700 via the
firmware recovery mechanism and the web admin site.
The bootloader can be instructed to do a firmware recovery via the
# fw_recovery
command. It will start a tftp server and listen on 192.168.1.1
(the ipaddr variable in u-boot) for incoming, binary tftp clients.
The firmware recovery mechanism is also started if any of the flash
content which contains the kernel, device-tree definitions or the
(fake)rootfs fails to verify or load.
b. sysupgrade.tar image for sysupgrade
An sysupgrade will replace the entire current LEDE installation
with a newer version. This does include the kernel and the ubi rootfs
partition. The configuration can be carried over automatically as well
if desired.
simply copy the sysupgrade.tar to a the WNDR4700 running LEDE and run:
root@lede:~# sysupgrade sysupgrade.tar
and let it reboot.
Note: The devicetree flash area is NOT updated. Until the devicetree
definition is stable, this can lead to all sorts of hardware
detection problems! So make sure, if you experience issues: try
the fw_recovery. If you are unsure whenever this affects you:
test if you can reproduce your issue with the initramfs method.
As it will always have up-to-date device-tree definitions.
c. initramfs image for TFTP (for development and testing)
To use the initramfs method, follow the following steps:
1) Move the "lede-apm821xx-netgear-WNDR4700-initramfs-kernel.bin"
file to to the root directory of your TFTP server.
2) rename it to wndr4700.bin
3) On the WNDR4700 - Hit Enter during u-boot and insert:
# tftp 400000 wndr4700.bin; run addtty; bootm 400000 -
This will boot the LEDE image.
Note: The default tftp server is 192.168.1.7, if you want to change it:
# setenv serverip 192.168.8.7;
Note2: The default address for the WNDR4700 is 192.168.1.1:
# setenv ipaddr 192.168.8.8;
Note: Connect you tftp server on the last LAN port (not the WAN)
Note: The firmware for the USB 3.0 Host chip is not included anymore.
Therefore the two USB 3.0 ports will not work without the
uPD7070x-firmware package installed.
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2016-07-20 13:44:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
map5 {
|
|
|
|
trip = <&cpu_alert5>;
|
2022-02-12 18:53:37 +00:00
|
|
|
cooling-device = <&fan0 13 15>;
|
apm821xx: add support for the Netgear Centria N900 WNDR4700/WNDR4720
This patch adds support for Netgear Centria N900 WNDR4700/WNDR4720
hardware highlights:
CPU: AMCC PowerPC APM82181 Rev. E at 1000 MHz (PLB=166, OPB=83, EBC=83 MHz)
Security support, Boot ROM Location NAND wo/ECC 2k page (8 bits)
32 kB I-Cache 32 kB D-Cache, 256 kB L2-Cache, 32 kB OnChip Memory
Board: AMCC APM82181 Evaluation Board, PCIE0/SATA1, 1*USB OTG
DRAM: 256 MB (ECC not enabled, 500 Mb/s, 32-bit, CL3)
NAND: 128 MiB (SLC, erase size: 128 KiB, page size: 2048, OOB size: 64)
ETH: Atheros AR8327N Gigabit Switch (4 x LAN, 1 x WAN)
USB: 2 x 3.0 (Renesas uPD720202K8-711-BAA-A, firmware not included)
SATA: 1 x SATA-II 3.5" Hard Drive Bay for HDDs (DesignWare SATA).
WLAN1: Atheros AR9380 5GHz 802.11an 3:3x3
WLAN2: Atheros AR9581 2.4GHz 802.11bgn 3:3x3
SDCARD: GL827L SD/MMC/MS Flash Card Reader (on internal dwc2 USB 2.0 host)
I2C: GMT G781 (i2c-0 @ 0x4d - lm90 compatible temperature sensor)
TC654 (i2c-0 @ 0x1b - Dual PWM fan Speed controller)
WARNING: The serial port needs a TTL/RS-232 v3.3 level converter!
INFO: Since this device only has a NAND chip. I opted for going with
root.squashfs in a UBI volume. There's no squashfs/jffs2 image.
This target produces three images.
a. netgear factory image
This image can be used to flash the Netgear WNDR4700 via the
firmware recovery mechanism and the web admin site.
The bootloader can be instructed to do a firmware recovery via the
# fw_recovery
command. It will start a tftp server and listen on 192.168.1.1
(the ipaddr variable in u-boot) for incoming, binary tftp clients.
The firmware recovery mechanism is also started if any of the flash
content which contains the kernel, device-tree definitions or the
(fake)rootfs fails to verify or load.
b. sysupgrade.tar image for sysupgrade
An sysupgrade will replace the entire current LEDE installation
with a newer version. This does include the kernel and the ubi rootfs
partition. The configuration can be carried over automatically as well
if desired.
simply copy the sysupgrade.tar to a the WNDR4700 running LEDE and run:
root@lede:~# sysupgrade sysupgrade.tar
and let it reboot.
Note: The devicetree flash area is NOT updated. Until the devicetree
definition is stable, this can lead to all sorts of hardware
detection problems! So make sure, if you experience issues: try
the fw_recovery. If you are unsure whenever this affects you:
test if you can reproduce your issue with the initramfs method.
As it will always have up-to-date device-tree definitions.
c. initramfs image for TFTP (for development and testing)
To use the initramfs method, follow the following steps:
1) Move the "lede-apm821xx-netgear-WNDR4700-initramfs-kernel.bin"
file to to the root directory of your TFTP server.
2) rename it to wndr4700.bin
3) On the WNDR4700 - Hit Enter during u-boot and insert:
# tftp 400000 wndr4700.bin; run addtty; bootm 400000 -
This will boot the LEDE image.
Note: The default tftp server is 192.168.1.7, if you want to change it:
# setenv serverip 192.168.8.7;
Note2: The default address for the WNDR4700 is 192.168.1.1:
# setenv ipaddr 192.168.8.8;
Note: Connect you tftp server on the last LAN port (not the WAN)
Note: The firmware for the USB 3.0 Host chip is not included anymore.
Therefore the two USB 3.0 ports will not work without the
uPD7070x-firmware package installed.
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2016-07-20 13:44:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
map6 {
|
|
|
|
trip = <&cpu_alert6>;
|
2022-02-12 18:53:37 +00:00
|
|
|
cooling-device =<&fan0 16 THERMAL_NO_LIMIT>;
|
apm821xx: add support for the Netgear Centria N900 WNDR4700/WNDR4720
This patch adds support for Netgear Centria N900 WNDR4700/WNDR4720
hardware highlights:
CPU: AMCC PowerPC APM82181 Rev. E at 1000 MHz (PLB=166, OPB=83, EBC=83 MHz)
Security support, Boot ROM Location NAND wo/ECC 2k page (8 bits)
32 kB I-Cache 32 kB D-Cache, 256 kB L2-Cache, 32 kB OnChip Memory
Board: AMCC APM82181 Evaluation Board, PCIE0/SATA1, 1*USB OTG
DRAM: 256 MB (ECC not enabled, 500 Mb/s, 32-bit, CL3)
NAND: 128 MiB (SLC, erase size: 128 KiB, page size: 2048, OOB size: 64)
ETH: Atheros AR8327N Gigabit Switch (4 x LAN, 1 x WAN)
USB: 2 x 3.0 (Renesas uPD720202K8-711-BAA-A, firmware not included)
SATA: 1 x SATA-II 3.5" Hard Drive Bay for HDDs (DesignWare SATA).
WLAN1: Atheros AR9380 5GHz 802.11an 3:3x3
WLAN2: Atheros AR9581 2.4GHz 802.11bgn 3:3x3
SDCARD: GL827L SD/MMC/MS Flash Card Reader (on internal dwc2 USB 2.0 host)
I2C: GMT G781 (i2c-0 @ 0x4d - lm90 compatible temperature sensor)
TC654 (i2c-0 @ 0x1b - Dual PWM fan Speed controller)
WARNING: The serial port needs a TTL/RS-232 v3.3 level converter!
INFO: Since this device only has a NAND chip. I opted for going with
root.squashfs in a UBI volume. There's no squashfs/jffs2 image.
This target produces three images.
a. netgear factory image
This image can be used to flash the Netgear WNDR4700 via the
firmware recovery mechanism and the web admin site.
The bootloader can be instructed to do a firmware recovery via the
# fw_recovery
command. It will start a tftp server and listen on 192.168.1.1
(the ipaddr variable in u-boot) for incoming, binary tftp clients.
The firmware recovery mechanism is also started if any of the flash
content which contains the kernel, device-tree definitions or the
(fake)rootfs fails to verify or load.
b. sysupgrade.tar image for sysupgrade
An sysupgrade will replace the entire current LEDE installation
with a newer version. This does include the kernel and the ubi rootfs
partition. The configuration can be carried over automatically as well
if desired.
simply copy the sysupgrade.tar to a the WNDR4700 running LEDE and run:
root@lede:~# sysupgrade sysupgrade.tar
and let it reboot.
Note: The devicetree flash area is NOT updated. Until the devicetree
definition is stable, this can lead to all sorts of hardware
detection problems! So make sure, if you experience issues: try
the fw_recovery. If you are unsure whenever this affects you:
test if you can reproduce your issue with the initramfs method.
As it will always have up-to-date device-tree definitions.
c. initramfs image for TFTP (for development and testing)
To use the initramfs method, follow the following steps:
1) Move the "lede-apm821xx-netgear-WNDR4700-initramfs-kernel.bin"
file to to the root directory of your TFTP server.
2) rename it to wndr4700.bin
3) On the WNDR4700 - Hit Enter during u-boot and insert:
# tftp 400000 wndr4700.bin; run addtty; bootm 400000 -
This will boot the LEDE image.
Note: The default tftp server is 192.168.1.7, if you want to change it:
# setenv serverip 192.168.8.7;
Note2: The default address for the WNDR4700 is 192.168.1.1:
# setenv ipaddr 192.168.8.8;
Note: Connect you tftp server on the last LAN port (not the WAN)
Note: The firmware for the USB 3.0 Host chip is not included anymore.
Therefore the two USB 3.0 ports will not work without the
uPD7070x-firmware package installed.
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2016-07-20 13:44:57 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2016-11-12 13:46:32 +00:00
|
|
|
|
|
|
|
&CRYPTO {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&PKA {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&TRNG {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&SATA1 {
|
|
|
|
status = "okay";
|
2020-03-21 20:40:15 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* This drive may have a temperature sensor with a
|
|
|
|
* thermal zone we can use for thermal control of the
|
|
|
|
* chassis temperature using the fan.
|
|
|
|
*/
|
|
|
|
|
|
|
|
drive_temp: sata-port@0 {
|
|
|
|
reg = <0>;
|
|
|
|
#thermal-sensor-cells = <0>;
|
|
|
|
};
|
2016-11-12 13:46:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&USBOTG0 {
|
|
|
|
status = "okay";
|
|
|
|
dr_mode = "host";
|
|
|
|
};
|
|
|
|
|
2022-01-16 19:13:24 +00:00
|
|
|
&ndfc {
|
|
|
|
status = "okay";
|
|
|
|
/* 128 MiB Nand Flash */
|
|
|
|
nand {
|
|
|
|
nand-is-boot-medium;
|
|
|
|
|
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
2021-02-20 16:44:12 +00:00
|
|
|
|
2021-12-23 20:45:19 +00:00
|
|
|
partition@0 {
|
2016-11-12 13:46:32 +00:00
|
|
|
label = "uboot";
|
|
|
|
reg = <0x00000000 0x00180000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
2021-12-23 20:45:19 +00:00
|
|
|
partition@180000 {
|
2022-05-14 08:44:58 +00:00
|
|
|
label = "firmware";
|
|
|
|
reg = <0x00180000 0x01860000>;
|
|
|
|
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
label = "kernel";
|
|
|
|
reg = <0x00000000 0x00380000>;
|
|
|
|
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* device-tree is @ 0x00180000 - 0x0019ffff
|
|
|
|
* kernel starts from 0x20000.
|
|
|
|
* this is coded into netgear's u-boot.
|
|
|
|
*/
|
|
|
|
partition@0 {
|
|
|
|
label = "dtb";
|
|
|
|
reg = <0x00000000 0x20000>;
|
|
|
|
};
|
2016-11-12 13:46:32 +00:00
|
|
|
/*
|
2018-03-26 15:25:32 +00:00
|
|
|
* this partition will also contain a
|
|
|
|
* fake/empty rootfs at the end to fool
|
|
|
|
* Netgear's uboot rootfs integrety checks.
|
2016-11-12 13:46:32 +00:00
|
|
|
*/
|
2022-05-14 08:44:58 +00:00
|
|
|
};
|
2016-11-12 13:46:32 +00:00
|
|
|
|
2022-05-14 08:44:58 +00:00
|
|
|
partition@380000 {
|
|
|
|
label = "ubi";
|
|
|
|
reg = <0x00380000 0x014e0000>;
|
|
|
|
};
|
2016-11-12 13:46:32 +00:00
|
|
|
};
|
|
|
|
|
2021-12-23 20:45:19 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Netgear's u-boot in the fw_recovery mode (can be
|
|
|
|
* triggered by holding the reset button, or if
|
|
|
|
* "bootm" fails) will not flash past this point
|
|
|
|
* (= 0x19E0000).
|
|
|
|
*/
|
|
|
|
|
|
|
|
partition@19e0000 {
|
2016-11-12 13:46:32 +00:00
|
|
|
label = "config";
|
|
|
|
reg = <0x019e0000 0x00080000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
2021-12-23 20:45:19 +00:00
|
|
|
partition@1a60000 {
|
2016-11-12 13:46:32 +00:00
|
|
|
label = "pot";
|
|
|
|
reg = <0x01a60000 0x00080000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
2021-12-23 20:45:19 +00:00
|
|
|
partition@1ae0000 {
|
2016-11-12 13:46:32 +00:00
|
|
|
label = "traffic_meter";
|
|
|
|
reg = <0x01ae0000 0x00300000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
2021-12-23 20:45:19 +00:00
|
|
|
partition@1de0000 {
|
2016-11-12 13:46:32 +00:00
|
|
|
label = "language";
|
|
|
|
reg = <0x01de0000 0x001c0000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
2021-12-23 20:45:19 +00:00
|
|
|
partition@1fa0000 {
|
2016-11-12 13:46:32 +00:00
|
|
|
label = "ecos";
|
|
|
|
reg = <0x01fa0000 0x06020000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
2021-12-23 20:45:19 +00:00
|
|
|
partition@7fc0000 {
|
2016-11-12 13:46:32 +00:00
|
|
|
label = "wifi_data";
|
|
|
|
reg = <0x07fc0000 0x00040000>;
|
|
|
|
read-only;
|
2022-01-16 17:42:18 +00:00
|
|
|
|
|
|
|
compatible = "nvmem-cells";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
macaddr_wifi_0: macaddr@0 {
|
|
|
|
reg = <0x0 0x6>;
|
|
|
|
};
|
|
|
|
macaddr_wifi_c: macaddr@c {
|
|
|
|
reg = <0xc 0x6>;
|
|
|
|
};
|
|
|
|
|
|
|
|
calibration_wifi_1000: calibration@1000 {
|
|
|
|
reg = <0x1000 0x440>;
|
|
|
|
};
|
|
|
|
|
|
|
|
calibration_wifi_5000: calibration@5000 {
|
|
|
|
reg = <0x5000 0x440>;
|
|
|
|
};
|
2016-11-12 13:46:32 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&UART0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&GPIO0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&IIC0 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
fan0: fan@1b {
|
|
|
|
compatible = "microchip,tc654";
|
|
|
|
reg = <0x1b>;
|
|
|
|
#cooling-cells = <2>; /* min followed by max */
|
|
|
|
|
|
|
|
gpios = <&GPIO0 16 GPIO_ACTIVE_LOW>; /* fan status */
|
|
|
|
alarm-gpios = <&GPIO0 5 GPIO_ACTIVE_LOW>; /* fault */
|
|
|
|
interrupt-parent = <&UIC3>;
|
|
|
|
interrupts = <0x16 IRQ_TYPE_EDGE_FALLING>; /* fault */
|
|
|
|
};
|
|
|
|
|
|
|
|
temp0: temp@4d {
|
|
|
|
compatible = "gmt,g781";
|
|
|
|
reg = <0x4d>;
|
|
|
|
#thermal-sensor-cells = <1>;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* The LM90 has two sensors:
|
|
|
|
* temp0 -> internal to LM90
|
|
|
|
* temp1 -> external NTC near CPU
|
|
|
|
*/
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
&EMAC0 {
|
|
|
|
status = "okay";
|
|
|
|
phy-handle = <&phy0>;
|
2018-10-20 14:41:53 +00:00
|
|
|
fifo-entry-size = <10>;
|
2016-11-12 13:46:32 +00:00
|
|
|
|
|
|
|
mdio {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
phy0: ethernet-phy@0 {
|
|
|
|
device_type = "ethernet-phy";
|
|
|
|
reg = <0>;
|
2019-04-14 15:23:38 +00:00
|
|
|
qca,mib-poll-interval = <500>;
|
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
qca,ar8327-initvals = <
|
|
|
|
0x0010 0x40000000
|
|
|
|
0x0624 0x007f7f7f
|
|
|
|
0x0004 0x07a00000 /* PAD0_MODE */
|
|
|
|
0x000c 0x01000000 /* PAD6_MODE */
|
|
|
|
0x007c 0x0000007e /* PORT0_STATUS */
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&POB0 {
|
2019-05-26 14:36:10 +00:00
|
|
|
|
2018-12-30 11:17:25 +00:00
|
|
|
keys {
|
2019-05-26 14:36:10 +00:00
|
|
|
compatible = "gpio-keys";
|
2016-11-12 13:46:32 +00:00
|
|
|
|
2022-06-17 14:10:16 +00:00
|
|
|
button-restart {
|
2016-11-12 13:46:32 +00:00
|
|
|
label = "Reset button";
|
2019-05-26 14:36:10 +00:00
|
|
|
gpios = <&GPIO0 15 GPIO_ACTIVE_LOW>;
|
2016-11-12 13:46:32 +00:00
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
interrupt-parent = <&UIC1>;
|
|
|
|
interrupts = <0x14 IRQ_TYPE_EDGE_FALLING>;
|
2019-06-15 17:13:30 +00:00
|
|
|
debounce-interval = <60>;
|
2016-11-12 13:46:32 +00:00
|
|
|
};
|
|
|
|
|
2022-06-17 14:10:16 +00:00
|
|
|
button-backup_hd {
|
2016-11-12 13:46:32 +00:00
|
|
|
label = "Backup HD button";
|
2019-05-26 14:36:10 +00:00
|
|
|
gpios = <&GPIO0 19 GPIO_ACTIVE_LOW>;
|
2016-11-12 13:46:32 +00:00
|
|
|
linux,code = <BTN_0>;
|
|
|
|
interrupt-parent = <&UIC1>;
|
|
|
|
interrupts = <0x1e IRQ_TYPE_EDGE_FALLING>;
|
2019-06-15 17:13:30 +00:00
|
|
|
debounce-interval = <60>;
|
2016-11-12 13:46:32 +00:00
|
|
|
};
|
|
|
|
|
2022-06-17 14:10:16 +00:00
|
|
|
button-rfkill {
|
2016-11-12 13:46:32 +00:00
|
|
|
label = "RFKILL button";
|
2019-05-26 14:36:10 +00:00
|
|
|
gpios = <&GPIO0 20 GPIO_ACTIVE_LOW>;
|
2016-11-12 13:46:32 +00:00
|
|
|
linux,code = <KEY_RFKILL>;
|
|
|
|
interrupt-parent = <&UIC1>;
|
|
|
|
interrupts = <0x1f IRQ_TYPE_EDGE_FALLING>;
|
2019-06-15 17:13:30 +00:00
|
|
|
debounce-interval = <60>;
|
2016-11-12 13:46:32 +00:00
|
|
|
};
|
|
|
|
|
2022-06-17 14:10:16 +00:00
|
|
|
button-wps {
|
2016-11-12 13:46:32 +00:00
|
|
|
label = "WPS button";
|
2019-05-26 14:36:10 +00:00
|
|
|
gpios = <&GPIO0 23 GPIO_ACTIVE_LOW>;
|
2016-11-12 13:46:32 +00:00
|
|
|
linux,code = <KEY_WPS_BUTTON>;
|
|
|
|
interrupt-parent = <&UIC2>;
|
|
|
|
interrupts = <0x19 IRQ_TYPE_EDGE_FALLING>;
|
2019-06-15 17:13:30 +00:00
|
|
|
debounce-interval = <60>;
|
2016-11-12 13:46:32 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-12-30 11:42:53 +00:00
|
|
|
leds {
|
2016-11-12 13:46:32 +00:00
|
|
|
compatible = "gpio-leds";
|
2020-08-13 16:26:19 +00:00
|
|
|
|
|
|
|
led-0 {
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
|
|
function = LED_FUNCTION_POWER;
|
2016-11-12 13:46:32 +00:00
|
|
|
gpios = <&GPIO0 8 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2020-08-13 16:26:19 +00:00
|
|
|
led-1 {
|
|
|
|
color = <LED_COLOR_ID_AMBER>;
|
|
|
|
function = LED_FUNCTION_FAULT;
|
2016-11-12 13:46:32 +00:00
|
|
|
gpios = <&GPIO0 9 GPIO_ACTIVE_LOW>;
|
2020-08-13 16:26:19 +00:00
|
|
|
panic-indicator;
|
2016-11-12 13:46:32 +00:00
|
|
|
};
|
|
|
|
|
2020-08-13 16:26:19 +00:00
|
|
|
led-2 {
|
|
|
|
color = <LED_COLOR_ID_BLUE>;
|
|
|
|
function = LED_FUNCTION_USB;
|
2016-11-12 13:46:32 +00:00
|
|
|
gpios = <&GPIO0 10 GPIO_ACTIVE_HIGH>;
|
2020-08-11 23:21:13 +00:00
|
|
|
trigger-sources = <&usb2_port 1>, <&usb2_port 2>,
|
|
|
|
<&usb3_port 1>, <&usb3_port 2>;
|
|
|
|
linux,default-trigger = "usbport";
|
2016-11-12 13:46:32 +00:00
|
|
|
};
|
|
|
|
|
2020-08-13 16:26:19 +00:00
|
|
|
led-3 {
|
|
|
|
color = <LED_COLOR_ID_WHITE>;
|
|
|
|
function = LED_FUNCTION_INDICATOR;
|
2016-11-12 13:46:32 +00:00
|
|
|
gpios = <&GPIO0 11 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2020-08-13 16:26:19 +00:00
|
|
|
led-4 {
|
|
|
|
color = <LED_COLOR_ID_YELLOW>;
|
|
|
|
function = LED_FUNCTION_WAN;
|
2016-11-12 13:46:32 +00:00
|
|
|
gpios = <&GPIO0 3 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2020-08-13 16:26:19 +00:00
|
|
|
led-5 {
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
|
|
function = LED_FUNCTION_WAN;
|
2016-11-12 13:46:32 +00:00
|
|
|
gpios = <&GPIO0 12 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2020-08-13 16:26:19 +00:00
|
|
|
led-6 {
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
|
|
function = LED_FUNCTION_DISK;
|
2016-11-12 13:46:32 +00:00
|
|
|
gpios = <&GPIO0 14 GPIO_ACTIVE_HIGH>;
|
2018-10-15 18:00:09 +00:00
|
|
|
linux,default-trigger = "disk-activity";
|
2016-11-12 13:46:32 +00:00
|
|
|
};
|
|
|
|
|
2020-08-13 16:26:19 +00:00
|
|
|
led-7 {
|
|
|
|
color = <LED_COLOR_ID_RED>;
|
|
|
|
function = LED_FUNCTION_DISK_ERR;
|
2016-11-12 13:46:32 +00:00
|
|
|
gpios = <&GPIO0 17 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2020-08-13 16:26:19 +00:00
|
|
|
led-8 {
|
|
|
|
color = <LED_COLOR_ID_BLUE>;
|
|
|
|
function = LED_FUNCTION_WLAN;
|
2016-11-12 13:46:32 +00:00
|
|
|
gpios = <&GPIO0 18 GPIO_ACTIVE_HIGH>;
|
2020-08-11 23:21:13 +00:00
|
|
|
linux,default-trigger = "phy0tpt";
|
2016-11-12 13:46:32 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&PCIE0 {
|
|
|
|
status = "okay";
|
2020-08-11 23:21:13 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* relevant lspci topology:
|
|
|
|
*
|
|
|
|
* -+-[0000:40]---00.0-[41-7f]----00.0-[42-45]--+-02.0-[43]----00.0
|
|
|
|
* +-03.0-[44]----00.0
|
|
|
|
* \-04.0-[45]----00.0
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
bridge@64,0 {
|
|
|
|
reg = <0x00400000 0 0 0 0>;
|
|
|
|
#address-cells = <3>;
|
|
|
|
#size-cells = <2>;
|
|
|
|
ranges;
|
|
|
|
|
|
|
|
bridge@65,0 {
|
|
|
|
/* IDT PES4T4 PCI Express Switch */
|
|
|
|
compatible = "pci111d,803a";
|
|
|
|
reg = <0x00410000 0 0 0 0>;
|
|
|
|
#address-cells = <3>;
|
|
|
|
#size-cells = <2>;
|
|
|
|
ranges;
|
|
|
|
|
|
|
|
bridge@66,2 {
|
|
|
|
compatible = "pci111d,803a";
|
|
|
|
reg = <0x00421000 0 0 0 0>;
|
|
|
|
#address-cells = <3>;
|
|
|
|
#size-cells = <2>;
|
|
|
|
ranges;
|
|
|
|
|
|
|
|
wifi0: wifi@67,0 {
|
|
|
|
/* Atheros AR9380 5GHz */
|
|
|
|
compatible = "pci168c,0030";
|
|
|
|
reg = <0x00430000 0 0 0 0>;
|
2020-09-03 19:24:16 +00:00
|
|
|
interrupts = <3>; /* INTC */
|
2022-01-16 17:42:18 +00:00
|
|
|
nvmem-cell-names = "mac-address", "calibration";
|
|
|
|
nvmem-cells = <&macaddr_wifi_0>, <&calibration_wifi_1000>;
|
2020-08-11 23:21:13 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Because this was such a pain.
|
|
|
|
* Here's the full device path:
|
|
|
|
* pci0000:40/0000:40:00.0/0000:41:00.0/0000:42:02.0/0000:43:00.0
|
|
|
|
*/
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
bridge@66,3 {
|
|
|
|
compatible = "pci111d,803a";
|
|
|
|
reg = <0x00421800 0 0 0 0>;
|
|
|
|
#address-cells = <3>;
|
|
|
|
#size-cells = <2>;
|
|
|
|
ranges;
|
|
|
|
|
|
|
|
wifi1: wifi@68,0 {
|
|
|
|
/* Atheros AR9381 2.4GHz */
|
|
|
|
compatible = "pci168c,0033";
|
|
|
|
reg = <0x00440000 0 0 0 0>;
|
2020-09-03 19:24:16 +00:00
|
|
|
interrupts = <4>; /* INTD */
|
2022-01-16 17:42:18 +00:00
|
|
|
nvmem-cell-names = "mac-address", "calibration";
|
|
|
|
nvmem-cells = <&macaddr_wifi_c>, <&calibration_wifi_5000>;
|
2020-08-11 23:21:13 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
bridge@66,4 {
|
|
|
|
compatible = "pci111d,803a";
|
|
|
|
reg = <0x00422000 0 0 0 0>;
|
|
|
|
#address-cells = <3>;
|
|
|
|
#size-cells = <2>;
|
|
|
|
ranges;
|
|
|
|
|
|
|
|
usb1: usb@69,0 {
|
|
|
|
/* Renesas uPD720202 */
|
|
|
|
compatible = "pci1912,0015";
|
|
|
|
reg = <0x00450000 0 0 0 0>;
|
2020-09-03 19:24:16 +00:00
|
|
|
interrupts = <1>; /* INTA */
|
2020-08-11 23:21:13 +00:00
|
|
|
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
usb2_port: port@1 {
|
|
|
|
reg = <1>;
|
|
|
|
#trigger-source-cells = <1>;
|
|
|
|
};
|
|
|
|
|
|
|
|
usb3_port: port@2 {
|
|
|
|
reg = <2>;
|
|
|
|
#trigger-source-cells = <1>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2016-11-12 13:46:32 +00:00
|
|
|
};
|