[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240529-buzzer_support-v1-5-fd3eb0a24442@cherry.de>
Date: Wed, 29 May 2024 12:10:34 +0200
From: Farouk Bouabid <farouk.bouabid@...rry.de>
To: Uwe Kleine-König <ukleinek@...nel.org>,
Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Quentin Schulz <quentin.schulz@...rry.de>, Heiko Stuebner <heiko@...ech.de>
Cc: linux-pwm@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-rockchip@...ts.infradead.org,
Farouk Bouabid <farouk.bouabid@...rry.de>
Subject: [PATCH 5/6] arm64: dts: rockchip: add pwm-beeper to
rk3588-tiger-haikou
Add PWM-beeper that uses Mule PWM-over-I2C controller on i2c-mux (0x18).
Signed-off-by: Farouk Bouabid <farouk.bouabid@...rry.de>
---
arch/arm64/boot/dts/rockchip/rk3588-tiger-haikou.dts | 6 ++++++
arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi | 13 +++++++++++++
2 files changed, 19 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3588-tiger-haikou.dts b/arch/arm64/boot/dts/rockchip/rk3588-tiger-haikou.dts
index d672198c6b64..cd5f07ef70c5 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588-tiger-haikou.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588-tiger-haikou.dts
@@ -16,6 +16,12 @@ aliases {
mmc1 = &sdmmc;
};
+
+ beeper {
+ compatible = "pwm-beeper";
+ pwms = <&mule_pwm 0 250000>;
+ };
+
chosen {
stdout-path = "serial2:115200n8";
};
diff --git a/arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi
index 5ed7d51717bb..7b95bede4621 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi
@@ -13,6 +13,7 @@ / {
aliases {
i2c10 = &i2c10;
+ i2c11 = &i2c11;
mmc0 = &sdhci;
rtc0 = &rtc_twi;
};
@@ -228,6 +229,18 @@ fan: fan@18 {
#cooling-cells = <2>;
};
};
+
+ i2c11: i2c@1 {
+ reg = <0x1>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ mule_pwm: pwm@18 {
+ compatible = "tsd,pwm-mule";
+ reg = <0x18>;
+ #pwm-cells = <2>;
+ };
+ };
};
rtc_twi: rtc@6f {
--
2.34.1
Powered by blists - more mailing lists