.. | .. |
---|
7 | 7 | |
---|
8 | 8 | #include "rv1106.dtsi" |
---|
9 | 9 | #include "rv1106-u-boot.dtsi" |
---|
| 10 | +#include <dt-bindings/input/input.h> |
---|
10 | 11 | |
---|
11 | 12 | / { |
---|
12 | 13 | model = "Rockchip RV1106 EVB2 Board"; |
---|
.. | .. |
---|
15 | 16 | chosen { |
---|
16 | 17 | stdout-path = &uart2; |
---|
17 | 18 | u-boot,spl-boot-order = &spi_nor, &emmc; |
---|
| 19 | + }; |
---|
| 20 | + |
---|
| 21 | + adc-keys { |
---|
| 22 | + compatible = "adc-keys"; |
---|
| 23 | + io-channels = <&saradc 0>; |
---|
| 24 | + io-channel-names = "buttons"; |
---|
| 25 | + keyup-threshold-microvolt = <1800000>; |
---|
| 26 | + u-boot,dm-spl; |
---|
| 27 | + status = "okay"; |
---|
| 28 | + |
---|
| 29 | + volumeup-key { |
---|
| 30 | + u-boot,dm-spl; |
---|
| 31 | + linux,code = <KEY_VOLUMEUP>; |
---|
| 32 | + label = "volume up"; |
---|
| 33 | + press-threshold-microvolt = <17578>; |
---|
| 34 | + }; |
---|
18 | 35 | }; |
---|
19 | 36 | }; |
---|
20 | 37 | |
---|
.. | .. |
---|
63 | 80 | status = "disabled"; |
---|
64 | 81 | }; |
---|
65 | 82 | |
---|
| 83 | +&saradc { |
---|
| 84 | + u-boot,dm-spl; |
---|
| 85 | + status = "okay"; |
---|
| 86 | +}; |
---|
| 87 | + |
---|
66 | 88 | &sdmmc { |
---|
67 | 89 | /delete-property/ u-boot,dm-spl; |
---|
68 | 90 | status = "disabled"; |
---|