I will add gpio-beeper by modifying the device tree.
Because now CM5 starts to use RP1 controller gpio40 (Standard 40-pin GPIO header via RP1 Southbridge).
I used to have it working fine on cm4.I guess bcm2712-rpi-cm5.dtsi should be modified.But I don't know the corresponding pin number. Should I still write 19?
Because now CM5 starts to use RP1 controller gpio40 (Standard 40-pin GPIO header via RP1 Southbridge).
I used to have it working fine on cm4.
Code:
// SPDX-License-Identifier: GPL-2.0/dts-v1/;#define BCM2711#define i2c0 i2c0if#include "bcm2711.dtsi"#include "bcm283x-rpi-wifi-bt.dtsi"#undef i2c0#include "bcm270x.dtsi"#define i2c0 i2c0mux#include "bcm2711-rpi.dtsi"#undef i2c0#include "bcm283x-rpi-led-deprecated.dtsi"//#include "bcm283x-rpi-usb-peripheral.dtsi"beeper: beeper {compatible = "gpio-beeper";gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;};
Code:
beeper: beeper {compatible = "gpio-beeper";gpios = <&rp1_gpio 19 GPIO_ACTIVE_HIGH>;};
Statistics: Posted by TopgunHaha — Thu Jan 09, 2025 3:35 am