|
17 | 17 | bootargs = "earlycon=uart8250,mmio32,0xfeb50000 console=ttyFIQ0 irqchip.gicv3_pseudo_nmi=0"; |
18 | 18 | }; |
19 | 19 |
|
20 | | - leds { |
| 20 | + gpio_leds: gpio-leds { |
21 | 21 | compatible = "gpio-leds"; |
22 | 22 | led_work_heartbeat: work_heartbeat { |
23 | | - gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_HIGH>; |
| 23 | + gpios = <&gpio4 RK_PA4 GPIO_ACTIVE_HIGH>; |
24 | 24 | linux,default-trigger = "heartbeat"; |
25 | 25 | }; |
26 | 26 | led_work_default_on: work_default_on { |
27 | 27 | gpios = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>; |
28 | 28 | linux,default-trigger = "default-on"; |
29 | 29 | }; |
30 | 30 | }; |
31 | | -/* |
32 | | - adc-keys { |
| 31 | + |
| 32 | + adc_keys: adc-keys { |
33 | 33 | compatible = "adc-keys"; |
34 | | - io-channels = <0x1d5 0x01>; |
35 | | - io-channel-names = "buttons"; |
36 | | - keyup-threshold-microvolt = <0x1b7740>; |
37 | | - poll-interval = <0x64>; |
38 | 34 | status = "okay"; |
| 35 | + io-channels = <&saradc 1>; |
| 36 | + io-channel-names = "buttons"; |
| 37 | + |
| 38 | + keyup-threshold-microvolt = <1800000>; /* 松手阈值 */ |
| 39 | + poll-interval = <100>; |
39 | 40 |
|
40 | | - vol-up-key { |
| 41 | + vol_up_key: key-volume-up { |
41 | 42 | label = "volume up"; |
42 | | - linux,code = <0x73>; |
| 43 | + linux,code = <KEY_VOLUMEUP>; |
43 | 44 | press-threshold-microvolt = <0x4268>; |
44 | 45 | }; |
45 | 46 |
|
46 | | - vol-down-key { |
| 47 | + vol_down_key: key-volume-down { |
47 | 48 | label = "volume down"; |
48 | | - linux,code = <0x72>; |
| 49 | + linux,code = <KEY_VOLUMEDOWN>; |
49 | 50 | press-threshold-microvolt = <0x65ce8>; |
50 | 51 | }; |
51 | 52 |
|
52 | | - menu-key { |
| 53 | + menu_key: key-menu { |
53 | 54 | label = "menu"; |
54 | | - linux,code = <0x8b>; |
| 55 | + linux,code = <KEY_MENU>; |
55 | 56 | press-threshold-microvolt = <0xd9490>; |
56 | 57 | }; |
57 | 58 |
|
58 | | - back-key { |
| 59 | + back_key: key-back { |
59 | 60 | label = "back"; |
60 | | - linux,code = <0x9e>; |
| 61 | + linux,code = <KEY_BACK>; |
61 | 62 | press-threshold-microvolt = <0x12d838>; |
62 | 63 | }; |
63 | 64 |
|
64 | | - uboot-key { |
| 65 | + uboot_key: key-uboot { |
65 | 66 | label = "uboot key"; |
66 | | - linux,code = <0x73>; |
| 67 | + linux,code = <KEY_VOLUMEUP>; /* U-Boot 一般也用 VUP */ |
67 | 68 | press-threshold-microvolt = <0x30d40>; |
68 | 69 | }; |
69 | | - };*/ |
| 70 | + }; |
70 | 71 |
|
71 | 72 | panel-edp0 { |
72 | 73 | compatible = "simple-panel"; |
|
163 | 164 | regulator-max-microvolt = <0xb71b00>; |
164 | 165 | }; |
165 | 166 | }; |
166 | | - |
167 | 167 | &pinctrl { |
168 | 168 | mcu { |
169 | 169 | mcum0_pins:mcum0-pins { |
|
194 | 194 | rockchip,pins = <0x03 0x1d 0x00 0x1a3>; |
195 | 195 | }; |
196 | 196 | }; |
197 | | - |
198 | 197 | }; |
199 | 198 |
|
200 | 199 | &i2c6 { |
|
204 | 203 |
|
205 | 204 | nca9555: nca9555@20 { |
206 | 205 | reg = <0x20>; |
207 | | - compatible = "novosense,nca9555"; |
| 206 | + compatible = "novosense,nca9555","nxp,pca9555"; |
208 | 207 | status = "okay"; |
209 | 208 | gpio-controller; |
210 | 209 | #gpio-cells = <2>; |
211 | | - ngpios = <16>; |
212 | 210 | //可选:如果连接了 INT 引脚 |
213 | | - //interrupt-parent = <&gpio1>; |
214 | | - //interrupts = <61 IRQ_TYPE_EDGE_FALLING>; |
215 | 211 | }; |
216 | 212 |
|
217 | 213 | mcuinf: mcuinf@62 { |
218 | 214 | compatible = "smdtmcu,STM8S00K3"; |
219 | | - status = "okay"; |
| 215 | + status = "disabled"; |
220 | 216 | reg = <0x62>; |
221 | 217 | #pwm-cells = <2>; |
222 | 218 | /* MCU interrupt pin: GPIO0_B0 */ |
223 | | - int-gpio = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>; |
| 219 | + // int-gpio = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>; |
224 | 220 | }; |
225 | 221 |
|
226 | 222 | usbc0: fusb302@22 { |
|
0 commit comments