cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

bcm4906-netgear-r8000p.dts (2538B)


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