arm64: dts: rockchip: add headset detect for px30

Change-Id: I640389607f7ef7be4e966b78afefcb9052b83214
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
This commit is contained in:
Binyuan Lan
2018-02-03 11:48:54 +08:00
committed by Tao Huang
parent 31328fc2b3
commit cbac12bed5
2 changed files with 30 additions and 2 deletions

View File

@@ -115,6 +115,14 @@
};
};
rk_headset {
compatible = "rockchip_headset";
headset_gpio = <&gpio2 RK_PB0 GPIO_ACTIVE_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&hp_det>;
io-channels = <&saradc 1>;
};
sdio_pwrseq: sdio-pwrseq {
compatible = "mmc-pwrseq-simple";
/*clocks = <&rk809 1>;*/
@@ -590,10 +598,16 @@
};
&pinctrl {
headphone {
hp_det: hp-det {
rockchip,pins = <2 RK_PB0 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
pmic {
pmic_int: pmic_int {
rockchip,pins =
<0 7 RK_FUNC_GPIO &pcfg_pull_up>;
<0 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>;
};
};

View File

@@ -115,6 +115,14 @@
};
};
rk_headset {
compatible = "rockchip_headset";
headset_gpio = <&gpio2 RK_PB0 GPIO_ACTIVE_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&hp_det>;
io-channels = <&saradc 1>;
};
sdio_pwrseq: sdio-pwrseq {
compatible = "mmc-pwrseq-simple";
/*clocks = <&rk809 1>;*/
@@ -590,10 +598,16 @@
};
&pinctrl {
headphone {
hp_det: hp-det {
rockchip,pins = <2 RK_PB0 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
pmic {
pmic_int: pmic_int {
rockchip,pins =
<0 7 RK_FUNC_GPIO &pcfg_pull_up>;
<0 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>;
};
};