-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New dtoverlays for max6675 and max31855 thermocouples #3763
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
Conversation
There are few small issues with this PR:
And there's a larger issue - although you've carefully given everything unique names, these overlays only differ functionally in their compatible strings. There are a few techniques you can use to shorten it (I won't say simplify): i. Parameters can now include literal assignments - whatever value you give the parameter, it can also assign fixed values to properties. These can include label references. The combination of those two means you can create a single payload node that can be steered around by patching the target of the fragment:
Or is that too much magic, or too dependent on newer firmware for your needs? |
And I forgot to add:
|
Hi Phil, You have a distinct head start, the DTS syntax stuff is terribly arcane & isn't well documented - that's why it's a lot of hacking from the anyspi overlay. The git pull request stuff has an ever worse level of documentation. The SPI speed is set to a fixed value in the kernel driver and can't be overridden. I don't understand point #6, if a "merge commit" bit me on the nose I wouldn't recognise it (I'm a git novice when it comes to this stuff and it took ten hours and two goes (on two different raspberries - my zero got into swapping hell) to clone the repo). How do I fix points 1 through 6? Or is that something you can do? Or do I scrap this PR, scrap my forked & cloned copy of the repo and try again. Rgds, Dougie |
I've got a new version of this PR that I hope to share tomorrow. |
I've pushed an update - can you take a look? The overlay name has changed to I've tested it to the extent that all the parameters decode and apply correctly, and the README follows the rules, but some confirmation that it still works in one or two combinations would be great. |
Add an overlay - maxtherm - to support the MAX6675 and MAX31855 family of thermocouples. Developed from an original set of overlays by Dougie Lawson. Signed-off-by: Phil Elwell <[email protected]>
Thanks Phil. I'll drag the stuff down to my Zero with the thermocouples and give it a test drive. |
Your overlay is working. I ran rpi-update to get #1330. Then updated my config.txt with
Rebooted, and ran
That gets
So a massive thank you for fixing my wonky attempt at a pull request. |
Add an overlay - maxtherm - to support the MAX6675 and MAX31855 family of thermocouples. Developed from an original set of overlays by Dougie Lawson. See: #3763 Signed-off-by: Phil Elwell <[email protected]>
Merged manually. |
See: raspberrypi/linux#3765 kernel: overlays: Delete spi0-hw-cs See: raspberrypi/linux#3355 kernel: backlight: gpio: Explicitly set the direction of the GPIO See: raspberrypi/linux#3767 kernel: overlays: Add maxtherm overlay for MAX6675/31855 See: raspberrypi/linux#3763 firmware: arm_loader: Knock 1.7 seconds off boot time See: #1375 firmware: Imx477 external sync signals
See: raspberrypi/linux#3765 kernel: overlays: Delete spi0-hw-cs See: raspberrypi/linux#3355 kernel: backlight: gpio: Explicitly set the direction of the GPIO See: raspberrypi/linux#3767 kernel: overlays: Add maxtherm overlay for MAX6675/31855 See: raspberrypi/linux#3763 firmware: arm_loader: Knock 1.7 seconds off boot time See: raspberrypi/firmware#1375 firmware: Imx477 external sync signals
This is in latest rpi-update kernel |
Add an overlay - maxtherm - to support the MAX6675 and MAX31855 family of thermocouples. Developed from an original set of overlays by Dougie Lawson. See: #3763 Signed-off-by: Phil Elwell <[email protected]>
Add an overlay - maxtherm - to support the MAX6675 and MAX31855 family of thermocouples. Developed from an original set of overlays by Dougie Lawson. See: #3763 Signed-off-by: Phil Elwell <[email protected]>
Add an overlay - maxtherm - to support the MAX6675 and MAX31855 family of thermocouples. Developed from an original set of overlays by Dougie Lawson. See: #3763 Signed-off-by: Phil Elwell <[email protected]>
Add an overlay - maxtherm - to support the MAX6675 and MAX31855 family of thermocouples. Developed from an original set of overlays by Dougie Lawson. See: #3763 Signed-off-by: Phil Elwell <[email protected]>
Add an overlay - maxtherm - to support the MAX6675 and MAX31855 family of thermocouples. Developed from an original set of overlays by Dougie Lawson. See: #3763 Signed-off-by: Phil Elwell <[email protected]>
Add an overlay - maxtherm - to support the MAX6675 and MAX31855 family of thermocouples. Developed from an original set of overlays by Dougie Lawson. See: #3763 Signed-off-by: Phil Elwell <[email protected]>
Add an overlay - maxtherm - to support the MAX6675 and MAX31855 family of thermocouples. Developed from an original set of overlays by Dougie Lawson. See: #3763 Signed-off-by: Phil Elwell <[email protected]>
Add an overlay - maxtherm - to support the MAX6675 and MAX31855 family of thermocouples. Developed from an original set of overlays by Dougie Lawson. See: #3763 Signed-off-by: Phil Elwell <[email protected]>
Add an overlay - maxtherm - to support the MAX6675 and MAX31855 family of thermocouples. Developed from an original set of overlays by Dougie Lawson. See: #3763 Signed-off-by: Phil Elwell <[email protected]>
Add an overlay - maxtherm - to support the MAX6675 and MAX31855 family of thermocouples. Developed from an original set of overlays by Dougie Lawson. See: #3763 Signed-off-by: Phil Elwell <[email protected]>
Add an overlay - maxtherm - to support the MAX6675 and MAX31855 family of thermocouples. Developed from an original set of overlays by Dougie Lawson. See: #3763 Signed-off-by: Phil Elwell <[email protected]>
Add an overlay - maxtherm - to support the MAX6675 and MAX31855 family of thermocouples. Developed from an original set of overlays by Dougie Lawson. See: #3763 Signed-off-by: Phil Elwell <[email protected]>
Add an overlay - maxtherm - to support the MAX6675 and MAX31855 family of thermocouples. Developed from an original set of overlays by Dougie Lawson. See: #3763 Signed-off-by: Phil Elwell <[email protected]>
Add an overlay - maxtherm - to support the MAX6675 and MAX31855 family of thermocouples. Developed from an original set of overlays by Dougie Lawson. See: #3763 Signed-off-by: Phil Elwell <[email protected]>
Add an overlay - maxtherm - to support the MAX6675 and MAX31855 family of thermocouples. Developed from an original set of overlays by Dougie Lawson. See: #3763 Signed-off-by: Phil Elwell <[email protected]>
See forum thread: https://www.raspberrypi.org/forums/viewtopic.php?f=107&t=280929