Stephen Warren <swarren@xxxxxxxxxxxxx> hat am 26. September 2016 um 18:38
On 09/23/2016 12:39 PM, Stefan Wahren wrote:
Eric Anholt <eric@xxxxxxxxxx> hat am 19. September 2016 um 18:13
The RPi firmware exposes all of the board's GPIO lines through
property calls. Linux chooses to control most lines directly through
the pinctrl driver, but for the FXL6408 GPIO expander on the Pi3, we
need to access them through the firmware.
Signed-off-by: Eric Anholt <eric@xxxxxxxxxx>
.../bindings/gpio/gpio-raspberrypi-firmware.txt | 22
1 file changed, 22 insertions(+)
create mode 100644
new file mode 100644
@@ -0,0 +1,22 @@
+Raspberry Pi power domain driver
+- compatible: Should be "raspberrypi,firmware-gpio"
i think the compatible should be more specific like
and all information which aren't requestable from the firmware should be
in a info structure. This makes the driver easier to extend in the future by
adding new compatibles and their info structures.
Is this actually specific to the Pi3 at all?
AFAIK only the Raspberry Pi 3 has a GPIO expander which is accessible via the
common FW. My suggestion tries to follow the basic guideline "A precise
compatible string is better than a vague one" from Device Tree for Dummies .
So in case the next Raspberry Pi would have a different GPIO expander with
different parameters we could add a new compatible.
But you are right the word order in "rpi3-firmware-gpio" suggests that there are
different FW which is wrong. At the end it's only a compatible string. So no
strong opinion about the naming.
Isn't the FW the same
across all Pis; the part that's specific to the Pi3 is whether it's
useful to use that API?
As such, I'd suggest just raspberrypi,firmware-gpio as the compatible value.