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