新建 #158 » gpio (2).patch
| kernel/arch/arm64/boot/dts/rockchip/rp-box-rk3568.dts | ||
|---|---|---|
|
rp_gpio{
|
||
|
status = "okay";
|
||
|
compatible = "rp_gpio";
|
||
|
|
||
|
/**
|
||
|
|
||
|
pinctrl-names = "default";
|
||
|
pinctrl-0 = <&gpio1dd>;
|
||
|
gpio1_d5 {
|
||
|
gpio_num = <&gpio1 RK_PD5 GPIO_ACTIVE_LOW>;
|
||
|
gpio_function = <0>;
|
||
|
};
|
||
|
gpio1_d6 {
|
||
|
gpio_num = <&gpio1 RK_PD6 GPIO_ACTIVE_HIGH>;
|
||
|
gpio_function = <4>;
|
||
|
};
|
||
|
/**
|
||
|
* gpioxxx { // the node name will display on /proc/rp_gpio, you can define any character string
|
||
|
* gpio_num = <>; // gpio you want ot control
|
||
|
* gpio_function = <>; // function of current gpio?? 0 output, 1 input, 3 blink
|
||
| ... | ... | |
|
<0 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
|
||
|
};
|
||
|
};
|
||
|
gpio1text {
|
||
|
gpio1dd: gpio1dd {
|
||
|
rockchip,pins =
|
||
|
/* gpio pull none */
|
||
|
<1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>,
|
||
|
<1 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
|
||
|
};
|
||
|
|
||
|
};
|
||
|
&sdmmc0
|
||
|
status = "disabled";
|
||
|
};
|
||
|
&sdmmc0 {
|
||
|
status = "disabled";
|
||
|
};
|
||
|
&rk809_sound {
|
||
|
/delete-property/ simple-audio-card,hp-det-gpio;
|
||
|
/delete-property/ simple-audio-card,widgets;
|
||