Skip to content

Commit 0282338

Browse files

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

config.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,11 @@ dtoverlay=ramoops
6363
# Enable the UART (/dev/ttyS0)
6464
enable_uart=1
6565

66+
# Comment this in or modify to enable PWM
67+
# dtoverlay=pwm
68+
6669
[cm4]
6770
# Raspberry Pi CM4-only settings
6871

6972
# For the CM4 I/O board, USB is disabled by default. This enables it.
7073
dtoverlay=dwc2,dr_mode=host
71-

fwup.conf

+18
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,15 @@ file-resource ov5647.dtbo {
8282
file-resource i2c-mux.dtbo {
8383
host-path = "${NERVES_SYSTEM}/images/rpi-firmware/overlays/i2c-mux.dtbo"
8484
}
85+
file-resource pwm-2chan.dtbo {
86+
host-path = "${NERVES_SYSTEM}/images/rpi-firmware/overlays/pwm-2chan.dtbo"
87+
}
88+
file-resource pwm.dtbo {
89+
host-path = "${NERVES_SYSTEM}/images/rpi-firmware/overlays/pwm.dtbo"
90+
}
91+
file-resource pwm1.dtbo {
92+
host-path = "${NERVES_SYSTEM}/images/rpi-firmware/overlays/pwm1.dtbo"
93+
}
8594

8695
file-resource rootfs.img {
8796
host-path = ${ROOTFS}
@@ -197,6 +206,9 @@ task complete {
197206
on-resource imx708.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/imx708.dtbo") }
198207
on-resource ov5647.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/ov5647.dtbo") }
199208
on-resource i2c-mux.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/i2c-mux.dtbo") }
209+
on-resource pwm-2chan.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/pwm-2chan.dtbo") }
210+
on-resource pwm.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/pwm.dtbo") }
211+
on-resource pwm1.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/pwm1.dtbo") }
200212

201213
on-resource rootfs.img {
202214
# write to the first rootfs partition
@@ -274,6 +286,9 @@ task upgrade.a {
274286
on-resource imx708.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/imx708.dtbo") }
275287
on-resource ov5647.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/ov5647.dtbo") }
276288
on-resource i2c-mux.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/i2c-mux.dtbo") }
289+
on-resource pwm-2chan.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/pwm-2chan.dtbo") }
290+
on-resource pwm.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/pwm.dtbo") }
291+
on-resource pwm1.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/pwm1.dtbo") }
277292

278293
on-resource rootfs.img {
279294
delta-source-raw-offset=${ROOTFS_B_PART_OFFSET}
@@ -359,6 +374,9 @@ task upgrade.b {
359374
on-resource imx708.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/imx708.dtbo") }
360375
on-resource ov5647.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/ov5647.dtbo") }
361376
on-resource i2c-mux.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/i2c-mux.dtbo") }
377+
on-resource pwm-2chan.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/pwm-2chan.dtbo") }
378+
on-resource pwm.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/pwm.dtbo") }
379+
on-resource pwm1.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/pwm1.dtbo") }
362380

363381
on-resource rootfs.img {
364382
delta-source-raw-offset=${ROOTFS_A_PART_OFFSET}

linux-6.6.defconfig

+3
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,9 @@ CONFIG_MAILBOX=y
387387
CONFIG_BCM2835_MBOX=y
388388
# CONFIG_IOMMU_SUPPORT is not set
389389
CONFIG_RASPBERRYPI_POWER=y
390+
CONFIG_PWM=y
391+
CONFIG_PWM_BCM2835=m
392+
CONFIG_PWM_RASPBERRYPI_POE=m
390393
CONFIG_GENERIC_PHY=y
391394
CONFIG_NVMEM_RMEM=y
392395
CONFIG_F2FS_FS=y

0 commit comments

Comments
 (0)