Page 1 of 1
HAT auto configuration
Posted: Tue May 24, 2016 9:23 pm
by andrum99
Can Raspberry Pi's currently auto configure attached HATs?
Re: HAT auto configuration
Posted: Tue May 24, 2016 9:35 pm
by ShiftPlusOne
What do you mean by autoconfigure the hats?
Right now, the pi will automatically read the eeprom, which can contain a device tree fragment and default pin states. In the future, it may run scripts from the eeprom, display the HAT's documentation and so on. Right now it's mostly used for loading kernel modules and registering the specific hardware that's present on the HAT.
Re: HAT auto configuration
Posted: Tue May 24, 2016 10:01 pm
by andrum99
I mean the device tree stuff, as I hadn't heard that it was already working. My Pi's are running the previous release of Raspbian and have been upgraded using apt-get. Does this get me the device tree auto configuration stuff?
Re: HAT auto configuration
Posted: Tue May 24, 2016 10:03 pm
by ShiftPlusOne
andrum99 wrote:I mean the device tree stuff, as I hadn't heard that it was already working. My Pi's are running the previous release of Raspbian and have been upgraded using apt-get. Does this get me the device tree auto configuration stuff?
Yes, it has been supported for quite a while. I don't know what release, but it would've been well before the Sense HAT was release, since it's relies on it.
Re: HAT auto configuration
Posted: Tue May 24, 2016 10:04 pm
by andrum99
Good stuff - thanks for your speedy replies.
Re: HAT auto configuration
Posted: Tue May 24, 2016 10:08 pm
by ShiftPlusOne
No worries. Good luck.