Skip to content

Commit

Permalink
Merge pull request torvalds#168 from vamrs-feng/pr_headphone
Browse files Browse the repository at this point in the history
Changes:
  * Add Radxa CM3 IO Headphone

Signed-off-by: Stephen Chen <[email protected]>
  • Loading branch information
RadxaStephen authored Aug 4, 2023
2 parents c2d9b60 + 33842c2 commit d0dea07
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3-io.dts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,28 @@
regulator-always-on;
regulator-boot-on;
};

rk817_sound: rk817-sound {
status = "okay";
compatible = "rockchip,multicodecs-card";
rockchip,card-name = "rockchip-rk817";
rockchip,format = "i2s";
rockchip,mclk-fs = <256>;
rockchip,cpu = <&i2s1_8ch>;
rockchip,codec = <&rk817_codec>;
poll-interval = <100>;
io-channels = <&saradc 2>;
io-channel-names = "adc-detect";
keyup-threshold-microvolt = <1800000>;
pinctrl-0 = <&hp_det>;
pinctrl-names = "default";
hp-det-gpio = <&gpio4 RK_PC4 GPIO_ACTIVE_HIGH>;
play-pause-key {
label = "playpause";
linux,code = <164>;
press-threshold-microvolt = <2000>;
};
};
};

&gpio_leds {
Expand All @@ -83,6 +105,14 @@
status = "okay";
};

&i2s1_8ch {
pinctrl-0 = <&i2s1m0_sclktx
&i2s1m0_lrcktx
&i2s1m0_sdi0
&i2s1m0_sdo0>;
status = "okay";
};

&display_subsystem {
status = "okay";
};
Expand Down Expand Up @@ -152,6 +182,12 @@
};

&pinctrl {
headphone {
hp_det: hp-det {
rockchip,pins = <4 RK_PC4 RK_FUNC_GPIO &pcfg_pull_up>;
};
};

usb {
vcc5v0_usb30_en: vcc5v0-host-en {
rockchip,pins = <3 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
Expand Down

0 comments on commit d0dea07

Please sign in to comment.