| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | // SPDX-License-Identifier: GPL-2.0-or-later OR MIT | 
 | 2 |  | 
 | 3 | #include "qca953x.dtsi" | 
 | 4 |  | 
 | 5 | #include <dt-bindings/gpio/gpio.h> | 
 | 6 | #include <dt-bindings/input/input.h> | 
 | 7 |  | 
 | 8 | / { | 
 | 9 | 	compatible = "glinet,gl-e750", "qca,qca9531"; | 
 | 10 | 	model = "GL.iNet GL-E750"; | 
 | 11 |  | 
 | 12 | 	aliases { | 
 | 13 | 		label-mac-device = ð0; | 
 | 14 | 	}; | 
 | 15 |  | 
 | 16 | 	keys { | 
 | 17 | 		compatible = "gpio-keys"; | 
 | 18 |  | 
 | 19 | 		pinctrl-names = "default"; | 
 | 20 | 		pinctrl-0 = <&jtag_disable_pins>; | 
 | 21 |  | 
 | 22 | 		reset { | 
 | 23 | 			label = "reset"; | 
 | 24 | 			linux,code = <KEY_RESTART>; | 
 | 25 | 			gpios = <&gpio 3 GPIO_ACTIVE_LOW>; | 
 | 26 | 		}; | 
 | 27 |  | 
 | 28 | 		switch { | 
 | 29 | 			label = "switch"; | 
 | 30 | 			linux,code = <BTN_0>; | 
 | 31 | 			gpios = <&gpio 1 GPIO_ACTIVE_LOW>; | 
 | 32 | 		}; | 
 | 33 | 	}; | 
 | 34 |  | 
 | 35 | 	gpio-export { | 
 | 36 | 		compatible = "gpio-export"; | 
 | 37 |  | 
 | 38 | 		gpio_lte_power { | 
 | 39 | 			gpio-export,name = "lte_power"; | 
 | 40 | 			gpio-export,output = <1>; | 
 | 41 | 			gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; | 
 | 42 | 		}; | 
 | 43 | 	 }; | 
 | 44 | }; | 
 | 45 |  | 
 | 46 | &pcie0 { | 
 | 47 | 	status = "okay"; | 
 | 48 | }; | 
 | 49 |  | 
 | 50 | &usb0 { | 
 | 51 | 	status = "okay"; | 
 | 52 | }; | 
 | 53 |  | 
 | 54 | &usb_phy { | 
 | 55 | 	status = "okay"; | 
 | 56 | }; | 
 | 57 |  | 
 | 58 | &spi { | 
 | 59 | 	status = "okay"; | 
 | 60 |  | 
 | 61 | 	flash@0 { | 
 | 62 | 		compatible = "jedec,spi-nor"; | 
 | 63 | 		reg = <0>; | 
 | 64 | 		spi-max-frequency = <25000000>; | 
 | 65 |  | 
 | 66 | 		partitions { | 
 | 67 | 			compatible = "fixed-partitions"; | 
 | 68 | 			#address-cells = <1>; | 
 | 69 | 			#size-cells = <1>; | 
 | 70 |  | 
 | 71 | 			partition@0 { | 
 | 72 | 				label = "u-boot"; | 
 | 73 | 				reg = <0x0 0x40000>; | 
 | 74 | 				read-only; | 
 | 75 | 			}; | 
 | 76 |  | 
 | 77 | 			partition@40000 { | 
 | 78 | 				label = "u-boot-env"; | 
 | 79 | 				reg = <0x40000 0x10000>; | 
 | 80 | 			}; | 
 | 81 |  | 
 | 82 | 			art: partition@50000 { | 
 | 83 | 				label = "art"; | 
 | 84 | 				reg = <0x50000 0x10000>; | 
 | 85 | 				read-only; | 
 | 86 | 			}; | 
 | 87 |  | 
 | 88 | 			partition@60000 { | 
 | 89 | 				label = "kernel"; | 
 | 90 | 				reg = <0x60000 0x400000>; | 
 | 91 | 			}; | 
 | 92 |  | 
 | 93 | 			partition@460000 { | 
 | 94 | 				label = "reserved"; | 
 | 95 | 				reg = <0x460000 0xba0000>; | 
 | 96 | 			}; | 
 | 97 | 		}; | 
 | 98 | 	}; | 
 | 99 |  | 
 | 100 | 	flash@1 { | 
 | 101 | 		compatible = "spi-nand"; | 
 | 102 | 		reg = <1>; | 
 | 103 | 		spi-max-frequency = <25000000>; | 
 | 104 |  | 
 | 105 | 		partitions { | 
 | 106 | 			compatible = "fixed-partitions"; | 
 | 107 | 			#address-cells = <1>; | 
 | 108 | 			#size-cells = <1>; | 
 | 109 |  | 
 | 110 | 			partition@0 { | 
 | 111 | 				label = "ubi"; | 
 | 112 | 				reg = <0x0 0x8000000>; | 
 | 113 | 			}; | 
 | 114 | 		}; | 
 | 115 | 	}; | 
 | 116 | }; | 
 | 117 |  | 
 | 118 | ð0 { | 
 | 119 | 	status = "okay"; | 
 | 120 |  | 
 | 121 | 	phy-handle = <&swphy4>; | 
 | 122 |  | 
 | 123 | 	mtd-mac-address = <&art 0x0>; | 
 | 124 | }; | 
 | 125 |  | 
 | 126 | ð1 { | 
 | 127 | 	compatible = "syscon", "simple-mfd"; | 
 | 128 | }; | 
 | 129 |  | 
 | 130 | &wmac { | 
 | 131 | 	status = "okay"; | 
 | 132 |  | 
 | 133 | 	mtd-cal-data = <&art 0x1000>; | 
 | 134 | }; |