devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sarah Newman <sarah.newman-bdq14YP6qtRg9hUCZPvPmw@public.gmane.org>
To: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: [RFC] PCI express slot bindings
Date: Mon, 09 Jun 2014 16:38:07 -0700	[thread overview]
Message-ID: <5396455F.30303@computer.org> (raw)

Greetings,

I have a client whose board has two mini pci express slots.  Having reviewed the pinouts at
http://www.allpinouts.org/index.php/PCI_Express_Card_and_PCI_Express_Mini_Card and some of the PCI
express documentation I believe the below may be sufficient to adequately describe the interface.

Feedback on style and/or correctness would be deeply appreciated. I have not written any drivers yet
and I'm not sure it would make sense to submit this as a patch until a minimal driver is present.

Thanks, Sarah

--
pcieslot-gpio.txt

Defines a pci express or mini pci express card slot.

This binding makes the assumption that pcie bridges are not dynamically
added and removed such that pci addressing should remain constant.

Required properties:
- compatible: should contain "pcieslot-gpio"
- #address-cells: set to <2>
- #size-cells: set to <0>
- reg: A cell where the first number is the pci bus and the second number is the slot.

Optional properties:
- wake-up-gpio: GPIO for WAKE#.
	Will be a falling edge interrupt enabled while the slot is enabled.
	No special handling will occur for this interrupt at this time.
- wdisable-gpio: GPIO for W_DISABLE# or W_DISABLE1#.  Active low.
- wdisable2-gpio: GPIO for W_DISABLE2#. Active low.
- reset-gpio: GPIO for PERST#.
- vdd-supplies: List of regulator phandles required to power on/off the slot.
- hot-pluggable: If present, the slot may be powered on and off at after boot.
- cd-gpio: GPIO for card detection on hot-swappable slots.
   Implies hot-pluggable. Typically active low.
- cd-inverted: If present, polarity on the CD line is active high.
- usb: usb controller associated with this slot.
- smb: system management bus associated with this slot.

Example:

	pcislots {
   		#address-cells = <2>;
		#size-cells = <0>;

		slot@3,0 {
			compatible = "pcieslot-gpio";
			reg = <3 0>;
			wake-up-gpio = <&gpio1 5 0>;
			disable1-gpio = <&gpio4 14 0>;
			vdd-supplies = <&pcie1_fixed_3v3>;
			usb = <&usbotg>;
			smb = <&i2c3>;
		};
	};
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

             reply	other threads:[~2014-06-09 23:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-09 23:38 Sarah Newman [this message]
     [not found] ` <5396455F.30303-bdq14YP6qtRg9hUCZPvPmw@public.gmane.org>
2014-06-10  7:47   ` [RFC] PCI express slot bindings Arnd Bergmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5396455F.30303@computer.org \
    --to=sarah.newman-bdq14yp6qtrg9huczpvpmw@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).