| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 | 
 | 2 | #include "qcom-ipq8064.dtsi" | 
 | 3 | #include <dt-bindings/input/input.h> | 
 | 4 |  | 
 | 5 | / { | 
 | 6 | 	model = "Qualcomm Technologies, Inc. IPQ8064-v1.0"; | 
 | 7 |  | 
 | 8 | 	aliases { | 
 | 9 | 		serial0 = &gsbi4_serial; | 
 | 10 | 	}; | 
 | 11 |  | 
 | 12 | 	chosen { | 
 | 13 | 		stdout-path = "serial0:115200n8"; | 
 | 14 | 	}; | 
 | 15 |  | 
 | 16 | 	soc { | 
 | 17 | 		gsbi@16300000 { | 
 | 18 | 			qcom,mode = <GSBI_PROT_I2C_UART>; | 
 | 19 | 			status = "ok"; | 
 | 20 |  | 
 | 21 | 			serial@16340000 { | 
 | 22 | 				status = "ok"; | 
 | 23 | 			}; | 
 | 24 | 		}; | 
 | 25 |  | 
 | 26 | 		gsbi5: gsbi@1a200000 { | 
 | 27 | 			qcom,mode = <GSBI_PROT_SPI>; | 
 | 28 | 			status = "ok"; | 
 | 29 |  | 
 | 30 | 			spi4: spi@1a280000 { | 
 | 31 | 				status = "ok"; | 
 | 32 | 				spi-max-frequency = <50000000>; | 
 | 33 |  | 
 | 34 | 				pinctrl-0 = <&spi_pins>; | 
 | 35 | 				pinctrl-names = "default"; | 
 | 36 |  | 
 | 37 | 				cs-gpios = <&qcom_pinmux 20 0>; | 
 | 38 |  | 
 | 39 | 				flash: m25p80@0 { | 
 | 40 | 					compatible = "s25fl256s1"; | 
 | 41 | 					#address-cells = <1>; | 
 | 42 | 					#size-cells = <1>; | 
 | 43 | 					spi-max-frequency = <50000000>; | 
 | 44 | 					reg = <0>; | 
 | 45 |  | 
 | 46 | 					partition@0 { | 
 | 47 | 						label = "rootfs"; | 
 | 48 | 						reg = <0x0 0x1000000>; | 
 | 49 | 					}; | 
 | 50 |  | 
 | 51 | 					partition@1 { | 
 | 52 | 						label = "scratch"; | 
 | 53 | 						reg = <0x1000000 0x1000000>; | 
 | 54 | 					}; | 
 | 55 | 				}; | 
 | 56 | 			}; | 
 | 57 | 		}; | 
 | 58 |  | 
 | 59 | 		sata-phy@1b400000 { | 
 | 60 | 			status = "ok"; | 
 | 61 | 		}; | 
 | 62 |  | 
 | 63 | 		sata@29000000 { | 
 | 64 | 			ports-implemented = <0x1>; | 
 | 65 | 			status = "ok"; | 
 | 66 | 		}; | 
 | 67 |  | 
 | 68 | 		gpio_keys { | 
 | 69 | 			compatible = "gpio-keys"; | 
 | 70 | 			pinctrl-0 = <&buttons_pins>; | 
 | 71 | 			pinctrl-names = "default"; | 
 | 72 |  | 
 | 73 | 			button@1 { | 
 | 74 | 				label = "reset"; | 
 | 75 | 				linux,code = <KEY_RESTART>; | 
 | 76 | 				gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>; | 
 | 77 | 				linux,input-type = <1>; | 
 | 78 | 				debounce-interval = <60>; | 
 | 79 | 			}; | 
 | 80 | 			button@2 { | 
 | 81 | 				label = "wps"; | 
 | 82 | 				linux,code = <KEY_WPS_BUTTON>; | 
 | 83 | 				gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>; | 
 | 84 | 				linux,input-type = <1>; | 
 | 85 | 				debounce-interval = <60>; | 
 | 86 | 			}; | 
 | 87 | 		}; | 
 | 88 |  | 
 | 89 | 		leds { | 
 | 90 | 			compatible = "gpio-leds"; | 
 | 91 | 			pinctrl-0 = <&leds_pins>; | 
 | 92 | 			pinctrl-names = "default"; | 
 | 93 |  | 
 | 94 | 			led@7 { | 
 | 95 | 				label = "led_usb1"; | 
 | 96 | 				gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>; | 
 | 97 | 				linux,default-trigger = "usbdev"; | 
 | 98 | 				default-state = "off"; | 
 | 99 | 			}; | 
 | 100 |  | 
 | 101 | 			led@8 { | 
 | 102 | 				label = "led_usb3"; | 
 | 103 | 				gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>; | 
 | 104 | 				linux,default-trigger = "usbdev"; | 
 | 105 | 				default-state = "off"; | 
 | 106 | 			}; | 
 | 107 |  | 
 | 108 | 			led@9 { | 
 | 109 | 				label = "status_led_fail"; | 
 | 110 | 				gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>; | 
 | 111 | 				default-state = "off"; | 
 | 112 | 			}; | 
 | 113 |  | 
 | 114 | 			led@26 { | 
 | 115 | 				label = "sata_led"; | 
 | 116 | 				gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>; | 
 | 117 | 				default-state = "off"; | 
 | 118 | 			}; | 
 | 119 |  | 
 | 120 | 			led@53 { | 
 | 121 | 				label = "status_led_pass"; | 
 | 122 | 				gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>; | 
 | 123 | 				default-state = "off"; | 
 | 124 | 			}; | 
 | 125 | 		}; | 
 | 126 | 	}; | 
 | 127 | }; |