|
14 | 14 | stdout-path = "serial0:115200n8"; |
15 | 15 | }; |
16 | 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 | + |
17 | 78 | soc { |
18 | 79 | gsbi@16300000 { |
19 | 80 | qcom,mode = <GSBI_PROT_I2C_UART>; |
|
64 | 125 | ports-implemented = <0x1>; |
65 | 126 | status = "okay"; |
66 | 127 | }; |
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-0 { |
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-1 { |
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-2 { |
109 | | - label = "status_led_fail"; |
110 | | - function = LED_FUNCTION_STATUS; |
111 | | - gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>; |
112 | | - default-state = "off"; |
113 | | - }; |
114 | | - |
115 | | - led-3 { |
116 | | - label = "sata_led"; |
117 | | - gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>; |
118 | | - default-state = "off"; |
119 | | - }; |
120 | | - |
121 | | - led-4 { |
122 | | - label = "status_led_pass"; |
123 | | - function = LED_FUNCTION_STATUS; |
124 | | - gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>; |
125 | | - default-state = "off"; |
126 | | - }; |
127 | | - }; |
128 | 128 | }; |
129 | 129 | }; |
0 commit comments