Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: usb: Add wake-up support for Tegra234 XUSB host controller

Populate USB wake events for Tegra234 XUSB host controller.
These wake-up events are optional to maintain backward compatibility and
because the USB controller does not require them for normal operation.

Signed-off-by: Haotien Hsu <haotienh@nvidia.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>

authored by

Haotien Hsu and committed by
Thierry Reding
905f0dcc 22c788ae

+29 -2
+29 -2
Documentation/devicetree/bindings/usb/nvidia,tegra234-xusb.yaml
··· 32 32 - const: bar2 33 33 34 34 interrupts: 35 + minItems: 2 35 36 items: 36 37 - description: xHCI host interrupt 37 38 - description: mailbox interrupt 39 + - description: USB wake event 0 40 + - description: USB wake event 1 41 + - description: USB wake event 2 42 + - description: USB wake event 3 43 + - description: USB wake event 4 44 + - description: USB wake event 5 45 + - description: USB wake event 6 46 + description: | 47 + The first two interrupts are required for the USB host controller. The 48 + remaining USB wake event interrupts are optional. Each USB wake event is 49 + independent; it is not necessary to use all of these events on a 50 + platform. The USB host controller can function even if no wake-up events 51 + are defined. The USB wake event interrupts are handled by the Tegra PMC; 52 + hence, the interrupt controller for these is the PMC and the interrupt 53 + IDs correspond to the PMC wake event IDs. A complete list of wake event 54 + IDs is provided below, and this information is also present in the Tegra 55 + TRM document. 56 + 57 + PMC wake-up 76 for USB3 port 0 wakeup 58 + PMC wake-up 77 for USB3 port 1 wakeup 59 + PMC wake-up 78 for USB3 port 2 and port 3 wakeup 60 + PMC wake-up 79 for USB2 port 0 wakeup 61 + PMC wake-up 80 for USB2 port 1 wakeup 62 + PMC wake-up 81 for USB2 port 2 wakeup 63 + PMC wake-up 82 for USB2 port 3 wakeup 38 64 39 65 clocks: 40 66 items: ··· 153 127 <0x03650000 0x10000>; 154 128 reg-names = "hcd", "fpci", "bar2"; 155 129 156 - interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>, 157 - <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>; 130 + interrupts-extended = <&gic GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>, 131 + <&gic GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>, 132 + <&pmc 76 IRQ_TYPE_LEVEL_HIGH>; 158 133 159 134 clocks = <&bpmp TEGRA234_CLK_XUSB_CORE_HOST>, 160 135 <&bpmp TEGRA234_CLK_XUSB_FALCON>,