1ded8f229SWilliam Zhang// SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2ded8f229SWilliam Zhang 3ded8f229SWilliam Zhang#include <dt-bindings/gpio/gpio.h> 4ded8f229SWilliam Zhang#include <dt-bindings/input/input.h> 5ded8f229SWilliam Zhang#include <dt-bindings/leds/common.h> 6ded8f229SWilliam Zhang 7ded8f229SWilliam Zhang#include "bcm4906.dtsi" 8ded8f229SWilliam Zhang 9ded8f229SWilliam Zhang/ { 10ded8f229SWilliam Zhang compatible = "netgear,r8000p", "brcm,bcm4906", "brcm,bcm4908", "brcm,bcmbca"; 11ded8f229SWilliam Zhang model = "Netgear R8000P"; 12ded8f229SWilliam Zhang 13ded8f229SWilliam Zhang memory@0 { 14ded8f229SWilliam Zhang device_type = "memory"; 15ded8f229SWilliam Zhang reg = <0x00 0x00 0x00 0x20000000>; 16ded8f229SWilliam Zhang }; 17ded8f229SWilliam Zhang 18ded8f229SWilliam Zhang leds { 19ded8f229SWilliam Zhang compatible = "gpio-leds"; 20ded8f229SWilliam Zhang 21ded8f229SWilliam Zhang led-power-white { 22ded8f229SWilliam Zhang function = LED_FUNCTION_POWER; 23ded8f229SWilliam Zhang color = <LED_COLOR_ID_WHITE>; 24ded8f229SWilliam Zhang gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; 25ded8f229SWilliam Zhang }; 26ded8f229SWilliam Zhang 27ded8f229SWilliam Zhang led-power-amber { 28ded8f229SWilliam Zhang function = LED_FUNCTION_POWER; 29ded8f229SWilliam Zhang color = <LED_COLOR_ID_AMBER>; 30ded8f229SWilliam Zhang gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; 31ded8f229SWilliam Zhang }; 32ded8f229SWilliam Zhang 33ded8f229SWilliam Zhang led-wps { 34ded8f229SWilliam Zhang function = LED_FUNCTION_WPS; 35ded8f229SWilliam Zhang color = <LED_COLOR_ID_WHITE>; 36ded8f229SWilliam Zhang gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; 37ded8f229SWilliam Zhang }; 38ded8f229SWilliam Zhang 39ded8f229SWilliam Zhang led-2ghz { 40ded8f229SWilliam Zhang function = "2ghz"; 41ded8f229SWilliam Zhang color = <LED_COLOR_ID_WHITE>; 42ded8f229SWilliam Zhang gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; 43ded8f229SWilliam Zhang }; 44ded8f229SWilliam Zhang 45ded8f229SWilliam Zhang led-5ghz-1 { 46ded8f229SWilliam Zhang function = "5ghz-1"; 47ded8f229SWilliam Zhang color = <LED_COLOR_ID_WHITE>; 48ded8f229SWilliam Zhang gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; 49ded8f229SWilliam Zhang }; 50ded8f229SWilliam Zhang 51ded8f229SWilliam Zhang led-5ghz-2 { 52ded8f229SWilliam Zhang function = "5ghz-2"; 53ded8f229SWilliam Zhang color = <LED_COLOR_ID_WHITE>; 54ded8f229SWilliam Zhang gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; 55ded8f229SWilliam Zhang }; 56ded8f229SWilliam Zhang 57ded8f229SWilliam Zhang led-usb2 { 58ded8f229SWilliam Zhang function = "usb2"; 59ded8f229SWilliam Zhang color = <LED_COLOR_ID_WHITE>; 60ded8f229SWilliam Zhang gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; 61*889e53ccSRafał Miłecki trigger-sources = <&ohci_port1>, <&ehci_port1>; 62*889e53ccSRafał Miłecki linux,default-trigger = "usbport"; 63ded8f229SWilliam Zhang }; 64ded8f229SWilliam Zhang 65ded8f229SWilliam Zhang led-usb3 { 66ded8f229SWilliam Zhang function = "usb3"; 67ded8f229SWilliam Zhang color = <LED_COLOR_ID_WHITE>; 68ded8f229SWilliam Zhang gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; 69*889e53ccSRafał Miłecki trigger-sources = <&ohci_port2>, <&ehci_port2>, <&xhci_port2>; 70*889e53ccSRafał Miłecki linux,default-trigger = "usbport"; 71ded8f229SWilliam Zhang }; 72ded8f229SWilliam Zhang 73ded8f229SWilliam Zhang led-wifi { 74ded8f229SWilliam Zhang function = "wifi"; 75ded8f229SWilliam Zhang color = <LED_COLOR_ID_WHITE>; 76ded8f229SWilliam Zhang gpios = <&gpio0 56 GPIO_ACTIVE_LOW>; 77ded8f229SWilliam Zhang }; 78ded8f229SWilliam Zhang }; 79ded8f229SWilliam Zhang}; 80ded8f229SWilliam Zhang 81ded8f229SWilliam Zhang&enet { 82ded8f229SWilliam Zhang nvmem-cells = <&base_mac_addr>; 83ded8f229SWilliam Zhang nvmem-cell-names = "mac-address"; 84ded8f229SWilliam Zhang}; 85ded8f229SWilliam Zhang 86ded8f229SWilliam Zhang&usb_phy { 87ded8f229SWilliam Zhang brcm,ioc = <1>; 88ded8f229SWilliam Zhang status = "okay"; 89ded8f229SWilliam Zhang}; 90ded8f229SWilliam Zhang 91ded8f229SWilliam Zhang&ehci { 92ded8f229SWilliam Zhang status = "okay"; 93ded8f229SWilliam Zhang}; 94ded8f229SWilliam Zhang 95ded8f229SWilliam Zhang&ohci { 96ded8f229SWilliam Zhang status = "okay"; 97ded8f229SWilliam Zhang}; 98ded8f229SWilliam Zhang 99ded8f229SWilliam Zhang&xhci { 100ded8f229SWilliam Zhang status = "okay"; 101ded8f229SWilliam Zhang}; 102ded8f229SWilliam Zhang 103ded8f229SWilliam Zhang&ports { 104ded8f229SWilliam Zhang port@0 { 105ded8f229SWilliam Zhang label = "lan4"; 106ded8f229SWilliam Zhang }; 107ded8f229SWilliam Zhang 108ded8f229SWilliam Zhang port@1 { 109ded8f229SWilliam Zhang label = "lan3"; 110ded8f229SWilliam Zhang }; 111ded8f229SWilliam Zhang 112ded8f229SWilliam Zhang port@2 { 113ded8f229SWilliam Zhang label = "lan2"; 114ded8f229SWilliam Zhang }; 115ded8f229SWilliam Zhang 116ded8f229SWilliam Zhang port@3 { 117ded8f229SWilliam Zhang label = "lan1"; 118ded8f229SWilliam Zhang }; 119ded8f229SWilliam Zhang 120ded8f229SWilliam Zhang port@7 { 121ded8f229SWilliam Zhang reg = <7>; 122ded8f229SWilliam Zhang phy-mode = "internal"; 123ded8f229SWilliam Zhang phy-handle = <&phy12>; 124ded8f229SWilliam Zhang label = "wan"; 125ded8f229SWilliam Zhang }; 126ded8f229SWilliam Zhang}; 127ded8f229SWilliam Zhang 128ded8f229SWilliam Zhang&nandcs { 129ded8f229SWilliam Zhang nand-ecc-strength = <4>; 130ded8f229SWilliam Zhang nand-ecc-step-size = <512>; 131ded8f229SWilliam Zhang nand-on-flash-bbt; 132ded8f229SWilliam Zhang 133ded8f229SWilliam Zhang #address-cells = <1>; 134ded8f229SWilliam Zhang #size-cells = <0>; 135ded8f229SWilliam Zhang 136ded8f229SWilliam Zhang partitions { 137ded8f229SWilliam Zhang compatible = "fixed-partitions"; 138ded8f229SWilliam Zhang #address-cells = <1>; 139ded8f229SWilliam Zhang #size-cells = <1>; 140ded8f229SWilliam Zhang 141ded8f229SWilliam Zhang partition@0 { 142ded8f229SWilliam Zhang compatible = "nvmem-cells"; 143ded8f229SWilliam Zhang label = "cferom"; 144ded8f229SWilliam Zhang reg = <0x0 0x100000>; 145ded8f229SWilliam Zhang 146ded8f229SWilliam Zhang #address-cells = <1>; 147ded8f229SWilliam Zhang #size-cells = <1>; 148ded8f229SWilliam Zhang ranges = <0 0x0 0x100000>; 149ded8f229SWilliam Zhang 150ded8f229SWilliam Zhang base_mac_addr: mac@106a0 { 151ded8f229SWilliam Zhang reg = <0x106a0 0x6>; 152ded8f229SWilliam Zhang }; 153ded8f229SWilliam Zhang }; 154ded8f229SWilliam Zhang 155ded8f229SWilliam Zhang partition@100000 { 156ded8f229SWilliam Zhang compatible = "brcm,bcm4908-firmware"; 157ded8f229SWilliam Zhang label = "firmware"; 158ded8f229SWilliam Zhang reg = <0x100000 0x4400000>; 159ded8f229SWilliam Zhang }; 160ded8f229SWilliam Zhang }; 161ded8f229SWilliam Zhang}; 162