|
20 | 20 | gpio_leds: gpio-leds { |
21 | 21 | compatible = "gpio-leds"; |
22 | 22 | led_work_heartbeat: work_heartbeat { |
23 | | - gpios = <&gpio4 RK_PA4 GPIO_ACTIVE_HIGH>; |
24 | 23 | linux,default-trigger = "heartbeat"; |
25 | | - }; |
26 | | - led_work_default_on: work_default_on { |
27 | 24 | gpios = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>; |
28 | | - linux,default-trigger = "default-on"; |
29 | 25 | }; |
30 | 26 | }; |
31 | 27 |
|
|
64 | 60 |
|
65 | 61 | uboot_key: key-uboot { |
66 | 62 | label = "uboot key"; |
67 | | - linux,code = <KEY_VOLUMEUP>; /* U-Boot 一般也用 VUP */ |
| 63 | + linux,code = <KEY_VOLUMEUP>; |
68 | 64 | press-threshold-microvolt = <0x30d40>; |
69 | 65 | }; |
70 | 66 | }; |
|
106 | 102 | vcc3v3_lcd: vcc3v3-lcd { |
107 | 103 | compatible = "regulator-fixed"; |
108 | 104 | regulator-name = "vcc3v3_lcd"; |
| 105 | + gpio = <&gpio1 RK_PB3 GPIO_ACTIVE_HIGH>; |
109 | 106 | vin-supply = <&vcc_3v3_s0>; |
110 | 107 | }; |
111 | 108 |
|
|
164 | 161 | regulator-max-microvolt = <0xb71b00>; |
165 | 162 | }; |
166 | 163 | }; |
| 164 | + |
167 | 165 | &pinctrl { |
168 | 166 | mcu { |
169 | | - mcum0_pins:mcum0-pins { |
170 | | - rockchip,pins = <0x04 0x1c 0x05 0x1a3 0x04 0x1d 0x05 0x1a3>; |
| 167 | + mcum0_pins: mcum0-pins { |
| 168 | + rockchip,pins = |
| 169 | + <4 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>, |
| 170 | + <4 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; |
171 | 171 | }; |
172 | 172 |
|
173 | | - mcum1_pins:mcum1-pins { |
174 | | - rockchip,pins = <0x03 0x1c 0x06 0x1a3 0x03 0x1d 0x06 0x1a3>; |
| 173 | + mcum1_pins: mcum1-pins { |
| 174 | + rockchip,pins = |
| 175 | + <3 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>, |
| 176 | + <3 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; |
175 | 177 | }; |
176 | 178 | }; |
177 | 179 |
|
178 | 180 | usb-typec { |
179 | | - usbc0_int:usbc0-int { |
180 | | - rockchip,pins = <0x00 0x1b 0x00 0x1a8>; |
| 181 | + usbc0_int: usbc0-int { |
| 182 | + rockchip,pins = <4 RK_PB3 RK_FUNC_GPIO &pcfg_pull_up>; |
181 | 183 | }; |
182 | 184 |
|
183 | | - typec5v_pwren:typec5v-pwren { |
184 | | - rockchip,pins = <0x04 0x01 0x00 0x1a3>; |
| 185 | + typec5v_pwren: typec5v-pwren { |
| 186 | + rockchip,pins = |
| 187 | + <4 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>; |
185 | 188 | }; |
186 | 189 | }; |
187 | 190 |
|
188 | 191 | usb { |
189 | | - vcc5v0_host_en:vcc5v0-host-en { |
190 | | - rockchip,pins = <0x04 0x08 0x00 0x1a3>; |
| 192 | + vcc5v0_peripherals_en: vcc5v0-peripherals-en { |
| 193 | + rockchip,pins = |
| 194 | + <3 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; |
191 | 195 | }; |
| 196 | + }; |
| 197 | +}; |
192 | 198 |
|
193 | | - vcc5v0_peripherals_en:vcc5v0-peripherals-en { |
194 | | - rockchip,pins = <0x03 0x1d 0x00 0x1a3>; |
195 | | - }; |
| 199 | +&i2c5 { |
| 200 | + status = "okay"; |
| 201 | + gt1x: gt1x@14 { |
| 202 | + compatible = "goodix,gt1x"; |
| 203 | + reg = <0x14>; |
| 204 | + pinctrl-names = "default"; |
| 205 | + pinctrl-0 = <&touch_gpio>; |
| 206 | + status = "disabled"; |
| 207 | + goodix,rst-gpio = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>; |
| 208 | + goodix,irq-gpio = <&gpio3 RK_PC0 IRQ_TYPE_LEVEL_LOW>; |
| 209 | + power-supply = <&vcc3v3_lcd_n>; |
196 | 210 | }; |
197 | 211 | }; |
198 | 212 |
|
| 213 | + |
199 | 214 | &i2c6 { |
200 | 215 | status = "okay"; |
201 | | - pinctrl-names = "default"; |
202 | | - pinctrl-0 = <&i2c6m0_xfer>; |
203 | 216 |
|
204 | 217 | nca9555: nca9555@20 { |
205 | 218 | reg = <0x20>; |
206 | | - compatible = "novosense,nca9555","nxp,pca9555"; |
| 219 | + compatible = "nxp,pca9555"; |
207 | 220 | status = "okay"; |
208 | 221 | gpio-controller; |
209 | 222 | #gpio-cells = <2>; |
210 | | - //可选:如果连接了 INT 引脚 |
211 | 223 | }; |
212 | 224 |
|
213 | 225 | mcuinf: mcuinf@62 { |
214 | 226 | compatible = "smdtmcu,STM8S00K3"; |
215 | | - status = "disabled"; |
| 227 | + status = "okay"; |
216 | 228 | reg = <0x62>; |
217 | 229 | #pwm-cells = <2>; |
218 | 230 | /* MCU interrupt pin: GPIO0_B0 */ |
219 | | - // int-gpio = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>; |
| 231 | + int-gpio = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>; |
220 | 232 | }; |
221 | 233 |
|
222 | 234 | usbc0: fusb302@22 { |
223 | 235 | compatible = "fcs,fusb302"; |
224 | 236 | reg = <0x22>; |
225 | 237 | interrupt-parent = <&gpio0>; |
226 | | - interrupts = <RK_PD3 IRQ_TYPE_LEVEL_LOW>; |
| 238 | + interrupts = <RK_PD3 IRQ_TYPE_EDGE_FALLING>; |
227 | 239 | int-n-gpios = <&gpio0 RK_PD3 GPIO_ACTIVE_LOW>; |
228 | 240 | pinctrl-names = "default"; |
229 | 241 | pinctrl-0 = <&usbc0_int>; |
|
288 | 300 |
|
289 | 301 | }; |
290 | 302 |
|
| 303 | + |
| 304 | + |
291 | 305 | &usbdrd_dwc3_0 { |
292 | 306 | dr_mode = "otg"; |
293 | 307 | usb-role-switch; |
|
334 | 348 | status = "okay"; |
335 | 349 | }; |
336 | 350 |
|
337 | | -&hym8563 { |
338 | | - status = "disabled"; |
339 | | -}; |
340 | 351 |
|
341 | 352 | &dp0 { |
342 | 353 | status = "disabled"; |
|
0 commit comments