From: Farouk Bouabid <farouk.bouabid@cherry.de>
To: "Uwe Kleine-König" <ukleinek@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Quentin Schulz" <quentin.schulz@cherry.de>,
"Heiko Stuebner" <heiko@sntech.de>
Cc: linux-pwm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org,
Farouk Bouabid <farouk.bouabid@cherry.de>
Subject: [PATCH 5/6] arm64: dts: rockchip: add pwm-beeper to rk3588-tiger-haikou
Date: Wed, 29 May 2024 12:10:34 +0200 [thread overview]
Message-ID: <20240529-buzzer_support-v1-5-fd3eb0a24442@cherry.de> (raw)
In-Reply-To: <20240529-buzzer_support-v1-0-fd3eb0a24442@cherry.de>
Add PWM-beeper that uses Mule PWM-over-I2C controller on i2c-mux (0x18).
Signed-off-by: Farouk Bouabid <farouk.bouabid@cherry.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
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2024-05-29 10:12 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-29 10:10 [PATCH 0/6] Add Mule PWM-over-I2C support Farouk Bouabid
2024-05-29 10:10 ` [PATCH 1/6] dt-bindings: pwm: add dt-bindings for mule pwm-over-i2c controller Farouk Bouabid
2024-05-29 20:29 ` Conor Dooley
2024-05-31 16:19 ` Farouk Bouabid
2024-05-29 10:10 ` [PATCH 2/6] pwm: add mule pwm-over-i2c driver Farouk Bouabid
2024-07-12 8:54 ` Uwe Kleine-König
2024-07-15 12:16 ` Quentin Schulz
2024-07-15 15:09 ` Uwe Kleine-König
2024-07-17 8:48 ` Quentin Schulz
2024-07-18 11:50 ` Uwe Kleine-König
2024-05-29 10:10 ` [PATCH 3/6] arm64: dts: rockchip: add pwm-beeper to rk3399-puma-haikou Farouk Bouabid
2024-05-29 10:10 ` [PATCH 4/6] arm64: dts: rockchip: add pwm-beeper to px30-ringneck-haikou Farouk Bouabid
2024-05-29 10:10 ` Farouk Bouabid [this message]
2024-05-29 10:10 ` [PATCH 6/6] arm64: dts: rockchip: add pwm-beeper to rk3588-jaguar Farouk Bouabid
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240529-buzzer_support-v1-5-fd3eb0a24442@cherry.de \
--to=farouk.bouabid@cherry.de \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=heiko@sntech.de \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=quentin.schulz@cherry.de \
--cc=robh@kernel.org \
--cc=ukleinek@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox