arm64: dts: rockchip: add headset detect for rk3326

Change-Id: Ia816a8f8fdcdd2265841965a59654e3b5f13cc06
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
This commit is contained in:
Binyuan Lan
2018-02-03 11:47:26 +08:00
committed by Tao Huang
parent caf5f86288
commit f29923d120
2 changed files with 29 additions and 2 deletions

View File

@@ -98,6 +98,13 @@
};
};
rk_headset {
compatible = "rockchip_headset";
headset_gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&hp_det>;
};
sdio_pwrseq: sdio-pwrseq {
compatible = "mmc-pwrseq-simple";
clocks = <&cru SCLK_WIFI_PMU>;
@@ -541,10 +548,16 @@
};
&pinctrl {
headphone {
hp_det: hp-det {
rockchip,pins = <2 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
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

@@ -158,6 +158,14 @@
};
};
rk_headset {
compatible = "rockchip_headset";
headset_gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&hp_det>;
io-channels = <&saradc 1>;
};
sdio_pwrseq: sdio-pwrseq {
compatible = "mmc-pwrseq-simple";
/*clocks = <&rk817 1>;*/
@@ -655,10 +663,16 @@
};
&pinctrl {
headphone {
hp_det: hp-det {
rockchip,pins = <2 RK_PC6 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>;
};
};