hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Copyright (c) 2023 Rockchip Electronics Co., Ltd
 */
 
#include <dt-bindings/input/input.h>
#include "rk3308-evb-v11.dtsi"
 
/ {
   /delete-node/ wireless-wlan;
   /delete-node/ wireless-bluetooth;
   /delete-node/ gpio-keys;
 
   wireless-wlan {
       compatible = "wlan-platdata";
       rockchip,grf = <&grf>;
       pinctrl-names = "default";
       pinctrl-0 = <&wifi_wake_host>, <&rtc_32k>;
       wifi_chip_type = "ap6256";
       WIFI,host_wake_irq = <&gpio4 RK_PB3 GPIO_ACTIVE_HIGH>;
       status = "okay";
   };
 
   wireless-bluetooth {
       compatible = "bluetooth-platdata";
       uart_rts_gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_LOW>;
       pinctrl-names = "default", "rts_gpio";
       pinctrl-0 = <&uart4_rts>;
       pinctrl-1 = <&uart4_rts_pin>;
       BT,power_gpio    = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>;
       BT,wake_host_irq = <&gpio4 RK_PB4 GPIO_ACTIVE_HIGH>;
       status = "okay";
   };
};
 
&acodec {
   pinctrl-names = "default";
   pinctrl-0 = <&hp_det>;
};
 
&emmc {
   status = "okay";
};
 
&pinctrl {
   acodec {
       hp_det: hp-det {
           rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_input_high>;
       };
   };
};
 
&sfc {
   status = "okay";
};
 
&vccio_sd {
   gpios = <&gpio2 RK_PA3 GPIO_ACTIVE_HIGH>;
};