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