0001 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
0002
0003 #include <dt-bindings/gpio/gpio.h>
0004 #include <dt-bindings/input/input.h>
0005 #include <dt-bindings/leds/common.h>
0006
0007 #include "bcm4906.dtsi"
0008
0009 / {
0010 compatible = "netgear,r8000p", "brcm,bcm4906", "brcm,bcm4908";
0011 model = "Netgear R8000P";
0012
0013 memory@0 {
0014 device_type = "memory";
0015 reg = <0x00 0x00 0x00 0x20000000>;
0016 };
0017
0018 leds {
0019 compatible = "gpio-leds";
0020
0021 led-power-white {
0022 function = LED_FUNCTION_POWER;
0023 color = <LED_COLOR_ID_WHITE>;
0024 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
0025 };
0026
0027 led-power-amber {
0028 function = LED_FUNCTION_POWER;
0029 color = <LED_COLOR_ID_AMBER>;
0030 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
0031 };
0032
0033 led-wps {
0034 function = LED_FUNCTION_WPS;
0035 color = <LED_COLOR_ID_WHITE>;
0036 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
0037 };
0038
0039 led-2ghz {
0040 function = "2ghz";
0041 color = <LED_COLOR_ID_WHITE>;
0042 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
0043 };
0044
0045 led-5ghz-1 {
0046 function = "5ghz-1";
0047 color = <LED_COLOR_ID_WHITE>;
0048 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
0049 };
0050
0051 led-5ghz-2 {
0052 function = "5ghz-2";
0053 color = <LED_COLOR_ID_WHITE>;
0054 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
0055 };
0056
0057 led-usb2 {
0058 function = "usb2";
0059 color = <LED_COLOR_ID_WHITE>;
0060 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
0061 };
0062
0063 led-usb3 {
0064 function = "usb3";
0065 color = <LED_COLOR_ID_WHITE>;
0066 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
0067 };
0068
0069 led-wifi {
0070 function = "wifi";
0071 color = <LED_COLOR_ID_WHITE>;
0072 gpios = <&gpio0 56 GPIO_ACTIVE_LOW>;
0073 };
0074 };
0075 };
0076
0077 &enet {
0078 nvmem-cells = <&base_mac_addr>;
0079 nvmem-cell-names = "mac-address";
0080 };
0081
0082 &usb_phy {
0083 brcm,ioc = <1>;
0084 status = "okay";
0085 };
0086
0087 &ehci {
0088 status = "okay";
0089 };
0090
0091 &ohci {
0092 status = "okay";
0093 };
0094
0095 &xhci {
0096 status = "okay";
0097 };
0098
0099 &ports {
0100 port@0 {
0101 label = "lan4";
0102 };
0103
0104 port@1 {
0105 label = "lan3";
0106 };
0107
0108 port@2 {
0109 label = "lan2";
0110 };
0111
0112 port@3 {
0113 label = "lan1";
0114 };
0115
0116 port@7 {
0117 reg = <7>;
0118 phy-mode = "internal";
0119 phy-handle = <&phy12>;
0120 label = "wan";
0121 };
0122 };
0123
0124 &nandcs {
0125 nand-ecc-strength = <4>;
0126 nand-ecc-step-size = <512>;
0127 nand-on-flash-bbt;
0128
0129 #address-cells = <1>;
0130 #size-cells = <0>;
0131
0132 partitions {
0133 compatible = "fixed-partitions";
0134 #address-cells = <1>;
0135 #size-cells = <1>;
0136
0137 partition@0 {
0138 compatible = "nvmem-cells";
0139 label = "cferom";
0140 reg = <0x0 0x100000>;
0141
0142 #address-cells = <1>;
0143 #size-cells = <1>;
0144 ranges = <0 0x0 0x100000>;
0145
0146 base_mac_addr: mac@106a0 {
0147 reg = <0x106a0 0x6>;
0148 };
0149 };
0150
0151 partition@100000 {
0152 compatible = "brcm,bcm4908-firmware";
0153 label = "firmware";
0154 reg = <0x100000 0x4400000>;
0155 };
0156 };
0157 };