[PATCH 3/6] arm64: dts: rockchip: add pwm-beeper to rk3399-puma-haikou
Farouk Bouabid
farouk.bouabid at cherry.de
Wed May 29 03:10:32 PDT 2024
Add PWM-beeper that uses Mule PWM-over-I2C controller on i2c-mux (0x18).
Signed-off-by: Farouk Bouabid <farouk.bouabid at cherry.de>
---
arch/arm64/boot/dts/rockchip/rk3399-puma-haikou.dts | 5 +++++
arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi | 13 +++++++++++++
2 files changed, 18 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-puma-haikou.dts b/arch/arm64/boot/dts/rockchip/rk3399-puma-haikou.dts
index f6f15946579e..3d57c606707b 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-puma-haikou.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-puma-haikou.dts
@@ -15,6 +15,11 @@ aliases {
mmc1 = &sdmmc;
};
+ beeper {
+ compatible = "pwm-beeper";
+ pwms = <&mule_pwm 0 250000>;
+ };
+
chosen {
stdout-path = "serial0:115200n8";
};
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi
index 69b57cde7d78..e3d2d27d4ca3 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi
@@ -11,6 +11,7 @@ / {
aliases {
ethernet0 = &gmac;
i2c10 = &i2c10;
+ i2c11 = &i2c11;
mmc0 = &sdhci;
};
@@ -395,6 +396,18 @@ fan: fan at 18 {
#cooling-cells = <2>;
};
};
+
+ i2c11: i2c at 1 {
+ reg = <0x1>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ mule_pwm: pwm at 18 {
+ compatible = "tsd,pwm-mule";
+ reg = <0x18>;
+ #pwm-cells = <2>;
+ };
+ };
};
rtc_twi: rtc at 6f {
--
2.34.1
More information about the Linux-rockchip
mailing list