mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 02:21:52 +09:00
ODROID-M1S: dts/dtbo: Add headset dtbo.
Signed-off-by: xiane <sangch.go@gmail.com> Change-Id: I01782424e99868ab9d9cf05d7748f13edcc97234
This commit is contained in:
@@ -17,6 +17,7 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP_ODROIDM1) += \
|
||||
display_waveshare_1inch69.dtbo \
|
||||
fiq0_to_uart2.dtbo \
|
||||
gpio_shortcut.dtbo \
|
||||
headset.dtbo \
|
||||
hktft32.dtbo \
|
||||
i2c0.dtbo \
|
||||
i2c1.dtbo \
|
||||
|
||||
12
arch/arm64/boot/dts/rockchip/overlays/odroidm1s/headset.dts
Normal file
12
arch/arm64/boot/dts/rockchip/overlays/odroidm1s/headset.dts
Normal file
@@ -0,0 +1,12 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
fragment@0 {
|
||||
target = <&rk_headset>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -167,10 +167,7 @@
|
||||
|
||||
rk_headset: rk-headset {
|
||||
compatible = "rockchip_headset";
|
||||
headset_gpio = <&gpio4 RK_PC4 GPIO_ACTIVE_HIGH>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&hp_det>;
|
||||
io-channels = <&saradc 3>; //HP_HOOK
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
rk3566-gpiomem {
|
||||
@@ -1149,12 +1146,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
headphone {
|
||||
hp_det: hp-det {
|
||||
rockchip,pins = <4 RK_PC4 RK_FUNC_GPIO &pcfg_pull_up>;
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
led_ctl: led-ctl {
|
||||
rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
|
||||
|
||||
Reference in New Issue
Block a user