Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4873

HATs and other add-ons • Re: Raspberry Pi DAC + does not work with Rasbperry Pi 5

$
0
0
Doh, I've just noticed that they are just reusing the mcp251xfd overlay from our tree. I thought they were pulling in their own.

The one configuration I think can work is:
Resistors want to be all in the B position on the back so that both chips use SPI0.
CE_1" doesn't matter.
INT_1 wants to be D16
CE_0 wants to be CE0
INT_0 wants to be D13.

Code:

dtoverlay=spi0-2cs,cs0_pin=8,cs1_pin=7dtoverlay=mcp251xfd,spi0-0,interrupt=13dtoverlay=mcp251xfd,spi0-1,interrupt=16
I got all done as per your instructions in mode B, and the following error message appears... one thing that I am not sure whether I did well was the soldering of pad D16; the solder almost did not want to stick because I already did testing forth and back several times.

Code:

[    3.991506] CAN device driver interface[    3.995072] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6[    3.995573] usbcore: registered new interface driver brcmfmac[    4.196338] spi_master spi0: will run message pump with realtime priority[    4.233662] mcp251xfd spi0.1 (unnamed net_device) (uninitialized): Failed to read Oscillator Configuration Register (osc=0x00000000).[    4.233672] mcp251xfd spi0.1: error -ENODEV: Failed to detect MCP251xFD.[    4.287417] Bluetooth: hci0: BCM: chip id 107[    4.287613] Bluetooth: hci0: BCM: features 0x2f[    4.288674] Bluetooth: hci0: BCM4345C0[    4.288675] Bluetooth: hci0: BCM4345C0 (003.001.025) build 0000[    4.294191] mcp251xfd spi0.0 (unnamed net_device) (uninitialized): Failed to read Oscillator Configuration Register (osc=0x00000000).[    4.294443] Bluetooth: hci0: BCM4345C0 'brcm/BCM4345C0.raspberrypi,5-model-b.hcd' Patch[    4.294692] mcp251xfd spi0.0: error -ENODEV: Failed to detect MCP251xFD.[    4.300724] brcmfmac: brcmf_c_process_txcap_blob: no txcap_blob available (err=-2)[    4.300949] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Aug 29 2023 01:47:08 version 7.45.265 (28bca26 CY) FWID 01-b677b91b


===========================================================
Below is my config.txt...
===========================================================

Code:

# For more options and information see# http://rptl.io/configtxt# Some settings may impact device functionality. See link above for details# Uncomment some or all of these to enable the optional hardware interfacesdtparam=i2c_arm=ondtparam=i2s=ondtparam=spi=ondtoverlay=i2c-gpio# Enable audio (loads snd_bcm2835)dtparam=audio=ondtoverlay=rpi-dacpro# [CAN FD | Control Bus - SPI]dtoverlay=waveshare-can-fd-hat-mode-bdtoverlay=spi0-2cs,cs0_pin=8,cs1_pin=7dtoverlay=mcp251xfd,spi0-0,interrupt=13dtoverlay=mcp251xfd,spi0-1,interrupt=16# Additional overlays and parameters are documented# /boot/firmware/overlays/README# [RTC] This charges the battery at a set voltagedtparam=rtc_bbat_vchg=3000000# Automatically load overlays for detected camerascamera_auto_detect=1# Automatically load overlays for detected DSI displaysdisplay_auto_detect=1# Automatically load initramfs files, if foundauto_initramfs=1# Enable DRM VC4 V3D driverdtoverlay=vc4-kms-v3dmax_framebuffers=2# Don't have the firmware create an initial video= setting in cmdline.txt.# Use the kernel's default instead.disable_fw_kms_setup=1# Run in 64-bit modearm_64bit=1# Disable compensation for displays with overscandisable_overscan=1# Run as fast as firmware / board allowsarm_boost=1[cm4]# Enable host mode on the 2711 built-in XHCI USB controller.# This line should be removed if the legacy DWC2 controller is required# (e.g. for USB device mode) or if USB support is not required.otg_mode=1[cm5]dtoverlay=dwc2,dr_mode=host[all]dtoverlay=w1-gpiodtparam=uart0=on# [Fan: Active Cooler = GPIO | Waveshare Fan HAT = i2C | Both controlled by GPIO dtoverlay]dtoverlay=gpio-fan# [Fan_Active Cooler]dtparam=fan_temp0=35000dtparam=fan_temp0_hyst=10000dtparam=fan_temp0_speed=75

Statistics: Posted by unicopi5 — Wed Jan 22, 2025 4:33 am



Viewing all articles
Browse latest Browse all 4873

Trending Articles