Messages in this thread | | | Date | Mon, 2 May 2022 21:15:57 +0900 | Subject | Re: [PATCH 3/3] PCI: apple: Add support for optional PWREN GPIO | From | Hector Martin <> |
| |
On 02/05/2022 19.31, Marc Zyngier wrote: > On Mon, 02 May 2022 10:38:32 +0100, > Hector Martin <marcan@marcan.st> wrote: >> >> WiFi and SD card devices on M1 Macs have a separate power enable GPIO. >> Add support for this to the PCIe controller. This is modeled after how >> pcie-fu740 does it. > > Please update the DT binding to reflect this as an optional property.
That's a bit more involved than you might think, considering we aren't checking *any* properties in the root port child nodes right now :-)
How's this?
patternProperties: "^pci@": $ref: /schemas/pci/pci-bus.yaml# type: object description: A single PCI root port
properties: reg: maxItems: 1
pwren-gpios: description: Optional GPIO to power on the device maxItems: 1
required: - reset-gpios - interrupt-controller - "#interrupt-cells" - interrupt-map-mask - interrupt-map
-- Hector Martin (marcan@marcan.st) Public Key: https://mrcn.st/pub
| |