Skip to content

Added HiFiBerry Digi+ Pro driver #1583

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 9, 2016
Merged

Added HiFiBerry Digi+ Pro driver #1583

merged 1 commit into from
Aug 9, 2016

Conversation

hifiberry
Copy link

This adds support for the HiFiBerry Digi+ Pro. It is similar to the Digi+, but uses a different clock configuration. Therefore it won't work with the existing driver and the driver has been updated now to support both the standard and the Pro version.

Signed-off-by: Daniel Matuschek [email protected]

@hifiberry
Copy link
Author

Just forgot to note: The driver is fully backwards compatible.

@pelwell
Copy link
Contributor

pelwell commented Jul 31, 2016

I'm out of the office until the end of the week, but from a brief look:

  • The clk_pins node isn't referenced anywhere, so it is probably doing nothing.
  • The overlay comment mentions DigiG - is that correct?
  • Hard-coding the pin numbers in the driver is a bit ugly when their are convenience functions to read them from DT.
  • Kernel coding standards say that one line if bodies should not use braces.
  • There is no README entry for the overlay.

@hifiberry
Copy link
Author

Thanks for the feedback. I will look into these and update the patch.

@hifiberry
Copy link
Author

hifiberry commented Aug 7, 2016

GPIO configuration has moved to the device tree now
cleaned up unused parts in device tree file
added documentation
fixed braces

@clivem
Copy link

clivem commented Aug 7, 2016

@hifiberry Just a heads-up, @pelwell , told me to use gpiod (#include <linux/gpio/consumer.h>) not the old gpio mechanism, when I wanted to get at GPIO22 from the driver, for mute on the IQAudIO AMP board. You appear to be using the "deprecated" old way.

@hifiberry
Copy link
Author

@pelwell : should the GPIO interface be changed?

Load: dtoverlay=hifiberry-digi
Params: <None>


Name: hifiberry-digi-pro
Info: Configures the HifiBerry Digi+ Pro audio card
Load: dtoverlay=hifiberry-digipro
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The example is missing a hyphen.

@pelwell
Copy link
Contributor

pelwell commented Aug 7, 2016

Yes, I think you should - devm_gpiod_get is a better way to read the GPIOs from DT, the only issue being that the overlay will have to call the property "clock-gpios" (the function parameter would be "clock") instead of "clock-pins", a name I prefer because pins makes people think of the 40-way header. Look for mute_gpio in iqaudio-dac.c as an example of the preferred method.

Signed-off-by: Daniel Matuschek <[email protected]>
@ghost
Copy link

ghost commented Aug 9, 2016

@pelwell The code has been changed now to use the GPIO consumer interface.

@pelwell
Copy link
Contributor

pelwell commented Aug 9, 2016

Much better - I hope you also feel it is an improvement, and not just jumping through hoops.

@pelwell pelwell merged commit db84877 into raspberrypi:rpi-4.4.y Aug 9, 2016
@hifiberry
Copy link
Author

Thanks, I'm always interested in feedback to improve the code.

popcornmix added a commit to raspberrypi/firmware that referenced this pull request Aug 10, 2016
See: raspberrypi/linux#1581

kernel: enable gembird joypad support
See: raspberrypi/linux#1589

kernel: Added HiFiBerry Digi+ Pro driver
See: raspberrypi/linux#1583

kernel: overlays: Add assert_falling_edge to pps-gpio overlay
See: raspberrypi/linux#1590

kernel: Experimental graphics driver DSI support
See: raspberrypi/linux#1556

firmware: Add customisation project board type
firmware: platform: Enable Bluetooth on custom

firmware: gencmd: Add support for hdmi_cvt and hdmi_timings
See: #637

firmware: arm_display: Allow source aspect ratio to be configured
See: #638

firmware: mmal: Allow /dev/vchiq to be opened initialised prior to mmal_vc_init
popcornmix added a commit to Hexxeh/rpi-firmware that referenced this pull request Aug 10, 2016
See: raspberrypi/linux#1581

kernel: enable gembird joypad support
See: raspberrypi/linux#1589

kernel: Added HiFiBerry Digi+ Pro driver
See: raspberrypi/linux#1583

kernel: overlays: Add assert_falling_edge to pps-gpio overlay
See: raspberrypi/linux#1590

kernel: Experimental graphics driver DSI support
See: raspberrypi/linux#1556

firmware: Add customisation project board type
firmware: platform: Enable Bluetooth on custom

firmware: gencmd: Add support for hdmi_cvt and hdmi_timings
See: raspberrypi/firmware#637

firmware: arm_display: Allow source aspect ratio to be configured
See: raspberrypi/firmware#638

firmware: mmal: Allow /dev/vchiq to be opened initialised prior to mmal_vc_init
mkreisl added a commit to xbianonpi/xbian-package-firmware that referenced this pull request Aug 12, 2016
- kernel: fix auto-sense in lirc_rpi driver

  See: raspberrypi/linux#1581

- kernel: enable gembird joypad support
  See: raspberrypi/linux#1589

- kernel: Added HiFiBerry Digi+ Pro driver
  See: raspberrypi/linux#1583

- kernel: overlays: Add assert_falling_edge to pps-gpio overlay
  See: raspberrypi/linux#1590

- kernel: Experimental graphics driver DSI support
  See: raspberrypi/linux#1556

- firmware: Add customisation project board type
- firmware: platform: Enable Bluetooth on custom

- firmware: gencmd: Add support for hdmi_cvt and hdmi_timings
  See: #637

- firmware: arm_display: Allow source aspect ratio to be configured
  See: #638

- firmware: mmal: Allow /dev/vchiq to be opened initialised prior to mmal_vc_init
neuschaefer pushed a commit to neuschaefer/raspi-binary-firmware that referenced this pull request Feb 27, 2017
See: raspberrypi/linux#1581

kernel: enable gembird joypad support
See: raspberrypi/linux#1589

kernel: Added HiFiBerry Digi+ Pro driver
See: raspberrypi/linux#1583

kernel: overlays: Add assert_falling_edge to pps-gpio overlay
See: raspberrypi/linux#1590

kernel: Experimental graphics driver DSI support
See: raspberrypi/linux#1556

firmware: Add customisation project board type
firmware: platform: Enable Bluetooth on custom

firmware: gencmd: Add support for hdmi_cvt and hdmi_timings
See: raspberrypi#637

firmware: arm_display: Allow source aspect ratio to be configured
See: raspberrypi#638

firmware: mmal: Allow /dev/vchiq to be opened initialised prior to mmal_vc_init
@hifiberry hifiberry deleted the digi-pro branch October 17, 2017 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants