Alex Tsitsiura | 9b9ed65 | 2024-04-05 16:34:02 +0300 | [diff] [blame] | 1 | / { |
| 2 | /* |
| 3 | * There is no way to keep GPIOs |
| 4 | * during deep-sleep mode so output GPIOs |
| 5 | * and PWM's are useless. |
| 6 | */ |
| 7 | |
| 8 | /* Short TL_Key1 (J20 pin 15) to ground (J50 pin 15-23) */ |
| 9 | key_pool { |
| 10 | compatible = "gpio-keys"; |
| 11 | |
| 12 | inp { |
| 13 | gpios = <&gpioc 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>, |
| 14 | <&gpioc 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; |
| 15 | }; |
| 16 | }; |
| 17 | |
| 18 | key_matrix { |
| 19 | compatible = "gpio-keys"; |
| 20 | |
| 21 | col { |
| 22 | gpios = <&gpioc 2 GPIO_ACTIVE_HIGH>, |
| 23 | <&gpioc 0 GPIO_ACTIVE_HIGH>; |
| 24 | }; |
| 25 | |
| 26 | row { |
| 27 | gpios = <&gpioc 3 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>, |
| 28 | <&gpioc 1 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>; |
| 29 | }; |
| 30 | }; |
| 31 | }; |