> Date: Mon, 24 Oct 2022 16:19:44 +0200 > From: Marcus Glocker <mar...@nazgul.ch> > > Currently the PiJuice HAT EEPROM doesn't ship with the Device Tree node > for the I2C MCU which delivers us the battery information. The reason > for that is most likely that Linux is offering a /dev/i2c device node > for userland programs, and the PiJuice team has developed an utility > which utilizes that. Therefore, the requirement to expose the device > to the kernel on Linux doesn't exist. > > To make the device attach on OpenBSD, we require to load a Device Tree > Overlay for now. If you have a PiJuice HAT, and would like to test it > with the new pijuice(4) device driver on current, you can install a DTO > based on those instructions: > > https://nazgul.ch/pijuice.html > > We'll reach out to the PiJuice team, and hopefully can convince them > to flash the DTO to their EEPROM in the future, which would make this > workaround obsolete over time.
So what we probably need to do is subbmit a device tree binding for this to the Linux folks. These days that means a .yaml file that allows automatic checking of .dts file. See the stuff under Documentation/devictree/bindings in the Linux source tree.