liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

mt7621_zyxel_nwa-ax-for-ab.dtsi (2426B)


      1 #include "mt7621.dtsi"
      2 
      3 #include <dt-bindings/gpio/gpio.h>
      4 #include <dt-bindings/input/input.h>
      5 
      6 / {
      7 	aliases {
      8 		label-mac-device = &gmac0;
      9 	};
     10 };
     11 
     12 &nand {
     13 	status = "okay";
     14 
     15 	mediatek,nmbm;
     16 	mediatek,bmt-max-ratio = <15>;
     17 	mediatek,bmt-max-reserved-blocks = <64>;
     18 	mediatek,bmt-remap-range =
     19 		<0x0 0x980000>,
     20 		<0x2980000 0x7800000>;
     21 
     22 	partitions {
     23 		compatible = "fixed-partitions";
     24 		#address-cells = <1>;
     25 		#size-cells = <1>;
     26 
     27 		partition@0 {
     28 			label = "u-boot";
     29 			reg = <0x0 0x80000>;
     30 			read-only;
     31 		};
     32 
     33 		partition@80000 {
     34 			label = "u-boot-env";
     35 			reg = <0x80000 0x80000>;
     36 			read-only;
     37 		};
     38 
     39 		factory: partition@100000 {
     40 			label = "factory";
     41 			reg = <0x100000 0x80000>;
     42 			read-only;
     43 		};
     44 
     45 		partition@2980000 {
     46 			label = "firmware_b";
     47 			reg = <0x2980000 0x2800000>;
     48 
     49 			compatible = "fixed-partitions";
     50 			#address-cells = <1>;
     51 			#size-cells = <1>;
     52 
     53 			partition@0 {
     54 				label = "kernel_b";
     55 				reg = <0x0 0x800000>;
     56 			};
     57 
     58 			partition@400000 {
     59 				label = "ubi";
     60 				reg = <0x800000 0x2000000>;
     61 			};
     62 		};
     63 
     64 		partition@180000 {
     65 			label = "firmware_a";
     66 			reg = <0x180000 0x2800000>;
     67 
     68 			compatible = "fixed-partitions";
     69 			#address-cells = <1>;
     70 			#size-cells = <1>;
     71 
     72 			partition@0 {
     73 				label = "kernel_a";
     74 				reg = <0x0 0x800000>;
     75 			};
     76 
     77 			partition@400000 {
     78 				label = "ubi_a";
     79 				reg = <0x800000 0x2000000>;
     80 			};
     81 		};
     82 
     83 		partition@5180000 {
     84 			label = "rootfs_data";
     85 			reg = <0x5180000 0x1400000>;
     86 		};
     87 
     88 		partition@6580000 {
     89 			label = "logs";
     90 			reg = <0x6580000 0xd00000>;
     91 		};
     92 
     93 		partition@7280000 {
     94 			label = "vendor-myzyxel";
     95 			reg = <0x7280000 0x480000>;
     96 			read-only;
     97 		};
     98 
     99 		partition@7700000 {
    100 			label = "bootconfig";
    101 			reg = <0x7700000 0x80000>;
    102 		};
    103 
    104 		mrd: partition@7780000 {
    105 			label = "mrd";
    106 			reg = <0x7780000 0x80000>;
    107 			read-only;
    108 
    109 			nvmem-layout {
    110 				compatible = "fixed-layout";
    111 				#address-cells = <1>;
    112 				#size-cells = <1>;
    113 
    114 				macaddr_mrd_1fff8: macaddr@1fff8 {
    115 					reg = <0x1fff8 0x6>;
    116 				};
    117 			};
    118 		};
    119 	};
    120 };
    121 
    122 &pcie {
    123 	status = "okay";
    124 };
    125 
    126 &pcie1 {
    127 	wlan_5g: wifi@0,0 {
    128 		reg = <0x0 0 0 0 0>;
    129 		compatible = "mediatek,mt76";
    130 
    131 		mediatek,mtd-eeprom = <&factory 0x0>;
    132 		/* MAC-Address set in userspace */
    133 	};
    134 };
    135 
    136 &gmac0 {
    137 	nvmem-cells = <&macaddr_mrd_1fff8>;
    138 	nvmem-cell-names = "mac-address";
    139 };
    140 
    141 &switch0 {
    142 	ports {
    143 		port@4 {
    144 			status = "okay";
    145 			label = "lan";
    146 		};
    147 	};
    148 };
    149 
    150 &state_default {
    151 	gpio {
    152 		groups = "uart3";
    153 		function = "gpio";
    154 	};
    155 };