andrum99
Posts: 1239
Joined: Fri Jul 20, 2012 2:41 pm

HAT auto configuration

Tue May 24, 2016 9:23 pm

Can Raspberry Pi's currently auto configure attached HATs?

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6229
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: HAT auto configuration

Tue May 24, 2016 9:35 pm

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.

andrum99
Posts: 1239
Joined: Fri Jul 20, 2012 2:41 pm

Re: HAT auto configuration

Tue May 24, 2016 10:01 pm

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?

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6229
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: HAT auto configuration

Tue May 24, 2016 10:03 pm

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.

andrum99
Posts: 1239
Joined: Fri Jul 20, 2012 2:41 pm

Re: HAT auto configuration

Tue May 24, 2016 10:04 pm

Good stuff - thanks for your speedy replies.

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6229
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: HAT auto configuration

Tue May 24, 2016 10:08 pm

No worries. Good luck.

Return to “General discussion”