usb: xhci: Load Raspberry Pi 4 VL805's firmware
Subsystems (6)
v3 cover usb: xhci: Load Raspberry Pi 4 VL805's firmware
Newer revisions of the RPi4 need their xHCI chip, VL805, firmware to be loaded explicitly. Earlier versions didn't need that as they where using an EEPROM for that purpose. This series takes care of setting up the relevant infrastructure and run the firmware loading routine at the right moment.
Note that this builds on top of Sylwester Nawrocki's "USB host support for Raspberry Pi 4 board" series.
---
Note: this was tested on both rpi_arm64_defconfig on both rpi3 & rpi4.
Changes since v2:
- Correct comment on patch #1
- Address Matthias' comments
Changes since v1:
- Rename function
- Use callback in xhci-pci.c
Nicolas Saenz Julienne (2):
arm: rpi: Add function to trigger VL805's firmware load
usb: xhci: Load Raspberry Pi 4 VL805's firmware
arch/arm/mach-bcm283x/include/mach/mbox.h | 13 +++++++ arch/arm/mach-bcm283x/include/mach/msg.h | 7 ++++ arch/arm/mach-bcm283x/msg.c | 45 +++++++++++++++++++++++ board/raspberrypi/rpi/rpi.c | 6 +++ drivers/usb/host/xhci-pci.c | 6 +++ include/usb/xhci.h | 3 ++ 6 files changed, 80 insertions(+)
Signature · 1 line
2.26.2
PATCH v3 1/2 arm: rpi: Add function to trigger VL805's firmware load
On the Raspberry Pi 4, after a PCI reset, VL805's (a xHCI chip) firmware may either be loaded directly from an EEPROM or, if not present, by the SoC's VideCore (the SoC's co-processor). Introduce the function that informs VideCore that VL805 may need its firmware loaded.
---
Changes since v2:
- Correct wrong function name in comment
- Add better comment on rpi_firmware_init_vl805()
Changes since v1:
- Rename function so it's not mistaken with regular firmware loading
arch/arm/mach-bcm283x/include/mach/mbox.h | 13 +++++++ arch/arm/mach-bcm283x/include/mach/msg.h | 7 ++++ arch/arm/mach-bcm283x/msg.c | 45 +++++++++++++++++++++++ 3 files changed, 65 insertions(+)
arch/arm/mach-bcm283x/include/mach/mbox.h +13 -0
@@ -491,6 +491,19 @@ struct bcm2835_mbox_tag_set_palette { } body; }; +#define BCM2835_MBOX_TAG_NOTIFY_XHCI_RESET 0x00030058 + +struct bcm2835_mbox_tag_pci_dev_addr { +struct bcm2835_mbox_tag_hdr tag_hdr; +union { +struct { +u32 dev_addr; + } req; +struct { + } resp; + } body; +}; +/* * Pass a raw u32 message to the VC, and receive a raw u32 back. *
arch/arm/mach-bcm283x/include/mach/msg.h +7 -0
@@ -48,4 +48,11 @@ int bcm2835_set_video_params(int *widthp, int *heightp, int depth_bpp, int pixel_order, int alpha_mode, ulong *fb_basep, ulong *fb_sizep, int *pitchp); +/** +* bcm2711_notify_vl805_reset() - get vl805's firmware loaded +* +* @return 0 if OK, -EIO on error +*/ +int bcm2711_notify_vl805_reset (void ); +#endif
arch/arm/mach-bcm283x/msg.c +45 -0
54 lines not on this page · raw message
Signature · 1 line
2.26.2
Re: [PATCH v3 1/2] arm: rpi: Add function to trigger VL805's firmware load
Hi Nicolas,
Quoted 6 lines · Nicolas Saenz Julienne
On the Raspberry Pi 4, after a PCI reset, VL805's (a xHCI chip) firmware may either be loaded directly from an EEPROM or, if not present, by the SoC's VideCore (the SoC's co-processor). Introduce the function that informs VideCore that VL805 may need its firmware loaded.
I still did not get it. Without the firmware being loaded, does xHCI on RPi 4 still work? What exact functionality does the firmware provide?
Quoted 7 lines
Signed-off-by Nicolas Saenz Julienne <[email protected]>---
Changes since v2:
- Correct wrong function name in comment
- Add better comment onrpi_firmware_init_vl805()
Quoted 8 lines
Changes since v1:
- Rename function so it's not mistaken with regular firmware loadingarch/arm/mach-bcm283x/include/mach/mbox.h | 13 +++++++ arch/arm/mach-bcm283x/include/mach/msg.h | 7 ++++ arch/arm/mach-bcm283x/msg.c | 45 +++++++++++++++++++++++ 3 files changed, 65 insertions(+)
Regards,
Bin
Re: [PATCH v3 1/2] arm: rpi: Add function to trigger VL805's firmware load
Hi Bin,
Quoted 4 lines · Bin Meng
Hi Nicolas,
On Wed, May 6, 2020 at 12:26 AM Nicolas Saenz Julienne <[email protected]> wrote:
Quoted 8 lines
Quoted 5 lines
On the Raspberry Pi 4, after a PCI reset, VL805's (a xHCI chip) firmware may either be loaded directly from an EEPROM or, if not present, by the SoC's VideCore (the SoC's co-processor). Introduce the function that informs VideCore that VL805 may need its firmware loaded.
I still did not get it. Without the firmware being loaded, does xHCI on RPi 4 still work?
On newer revisions of RPi4, no, it will not work.
Quoted 1 line
What exact functionality does the firmware provide?
It provides xHCI functionality.
The old RPi4 design loaded this vl805 firmware trough a dedicated EEPROM memory. But they removed it, probably in order to save costs. They then created this new interface to trigger a firmware load from RPi4's co-processor.
Regards,
Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200506/0ed982eb/attachment.sig>
PATCH v3 2/2 usb: xhci: Load Raspberry Pi 4 VL805's firmware
In reply to Nicolas Saenz JulienneWhen needed, RPi4's co-processor (called VideoCore) has to be instructed to load VL805's firmware (the chip providing xHCI support). VideCore's firmware expects the board's PCIe bus to be already configured in order for it to load the xHCI chip firmware. So we have to make sure this happens in between the PCIe configuration and xHCI startup.
Introduce a callback in xhci_pci_probe() to run this platform specific routine.
---
Changes since v2:
- Get rid of #ifdef CONFIG_BCM2711
- Get rid of redundant error message
Changes since v1:
- Create callback
board/raspberrypi/rpi/rpi.c | 6 ++++++ drivers/usb/host/xhci-pci.c | 6 ++++++ include/usb/xhci.h | 3 +++ 3 files changed, 15 insertions(+)
board/raspberrypi/rpi/rpi.c +6 -0
@@ -14,6 +14,7 @@#include <lcd.h> #include <memalign.h> #include <mmc.h> +#include <usb/xhci.h> #include <asm/gpio.h> #include <asm/arch/mbox.h> #include <asm/arch/msg.h>
@@ -494,3 +495,8 @@ int ft_board_setup(void *blob, bd_t *bd)return 0 ; } + +void xhci_pci_fixup (struct udevice *dev) +{ +bcm2711_notify_vl805_reset (); +}
drivers/usb/host/xhci-pci.c +6 -0
@@ -11,6 +11,10 @@#include <usb.h> #include <usb/xhci.h> +__weak void xhci_pci_fixup (struct udevice *dev) +{ +} +static void xhci_pci_init (struct udevice *dev,struct xhci_hccr **ret_hccr,struct xhci_hcor **ret_hcor) {
@@ -40,6 +44,8 @@ static int xhci_pci_probe(struct udevice *dev)struct xhci_hccr *hccr;struct xhci_hcor *hcor; +xhci_pci_fixup (dev); +xhci_pci_init (dev, &hccr, &hcor);return xhci_register (dev, hccr, hcor);
include/usb/xhci.h +3 -0
@@ -16,6 +16,7 @@#ifndef HOST_XHCI_H_ #define HOST_XHCI_H_ +#include <usb.h> #include <asm/types.h> #include <asm/cache.h> #include <asm/io.h>
@@ -1281,4 +1282,6 @@ extern struct dm_usb_ops xhci_usb_ops;struct xhci_ctrl *xhci_get_ctrl (struct usb_device *udev); +extern void xhci_pci_fixup (struct udevice *dev); +#endif /* HOST_XHCI_H_ */
Signature · 1 line
2.26.2
Quoted 10 lines · Nicolas Saenz Julienne
Newer revisions of the RPi4 need their xHCI chip, VL805, firmware to be loaded explicitly. Earlier versions didn't need that as they where using an EEPROM for that purpose. This series takes care of setting up the relevant infrastructure and run the firmware loading routine at the right moment.
Note that this builds on top of Sylwester Nawrocki's "USB host support for Raspberry Pi 4 board" series.
---
Just for the record, here's the version of this in the Linux Kernel:
https://patchwork.kernel.org/cover/11529585/
Regards,
Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200513/f0da21e1/attachment.sig>
Quoted 10 lines · Nicolas Saenz Julienne
Newer revisions of the RPi4 need their xHCI chip, VL805, firmware to be loaded explicitly. Earlier versions didn't need that as they where using an EEPROM for that purpose. This series takes care of setting up the relevant infrastructure and run the firmware loading routine at the right moment.
Note that this builds on top of Sylwester Nawrocki's "USB host support for Raspberry Pi 4 board" series.
---
Please don't forget about this series. The new 8GB RPi4 contains this HW design change and USB will not work without it. See this discussion on the downstream kernel github, where other OS/bootloaders are hitting the issue:
https://github.com/raspberrypi/firmware/issues/1402
Otherwise, the Linux version of this is already in linux-next:
Regards,
Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200601/5451df40/attachment.sig>
Quoted 16 lines · Nicolas Saenz Julienne
Quoted 10 lines · Nicolas Saenz Julienne
Newer revisions of the RPi4 need their xHCI chip, VL805, firmware to be loaded explicitly. Earlier versions didn't need that as they where using an EEPROM for that purpose. This series takes care of setting up the relevant infrastructure and run the firmware loading routine at the right moment.
Note that this builds on top of Sylwester Nawrocki's "USB host support for Raspberry Pi 4 board" series.
---
Please don't forget about this series. The new 8GB RPi4 contains this HW design change and USB will not work without it. See this discussion on the downstream kernel github, where other OS/bootloaders are hitting the issue:
Quoted 5 lines
https://github.com/raspberrypi/firmware/issues/1402
Otherwise, the Linux version of this is already in linux-next:
We're already at 2020.07-rc3 , so unless this is a bugfix (does not look that way), this will have to wait for next release cycle. Also, it seems there was a lengthy ongoing discussion, is that already sorted out ?
Quoted 19 lines · Marek Vasut
Quoted 18 lines · Nicolas Saenz Julienne
Quoted 10 lines · Nicolas Saenz Julienne
Newer revisions of the RPi4 need their xHCI chip, VL805, firmware to be loaded explicitly. Earlier versions didn't need that as they where using an EEPROM for that purpose. This series takes care of setting up the relevant infrastructure and run the firmware loading routine at the right moment.
Note that this builds on top of Sylwester Nawrocki's "USB host support for Raspberry Pi 4 board" series.
---
Please don't forget about this series. The new 8GB RPi4 contains this HW design
change and USB will not work without it. See this discussion on the downstream
kernel github, where other OS/bootloaders are hitting the issue:
Quoted 5 lines
Quoted 5 lines
https://github.com/raspberrypi/firmware/issues/1402
Otherwise, the Linux version of this is already in linux-next:
Quoted 3 lines
We're already at 2020.07-rc3 , so unless this is a bugfix (does not look that way), this will have to wait for next release cycle.
Of course. As long as it eventually gets in I'm happy (not implying this specific series is flawless, but the overall mechanism). I'm just worried this gets lost.
Quoted 2 lines
Also, it seems
there was a lengthy ongoing discussion, is that already sorted out ?
Well, there was some discussion on how to incorporate the platform specific callback into XCHI's code. Which this revision of the series addresses. But, IIRC, that's pretty much it as far as discussion is concerned.
Regards,
Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200601/30f03800/attachment.sig>
Quoted 34 lines · Nicolas Saenz Julienne
Quoted 19 lines · Marek Vasut
Quoted 18 lines · Nicolas Saenz Julienne
Quoted 10 lines · Nicolas Saenz Julienne
Newer revisions of the RPi4 need their xHCI chip, VL805, firmware to be loaded explicitly. Earlier versions didn't need that as they where using an EEPROM for that purpose. This series takes care of setting up the relevant infrastructure and run the firmware loading routine at the right moment.
Note that this builds on top of Sylwester Nawrocki's "USB host support for Raspberry Pi 4 board" series.
---
Please don't forget about this series. The new 8GB RPi4 contains this HW design
change and USB will not work without it. See this discussion on the downstream
kernel github, where other OS/bootloaders are hitting the issue:Quoted 5 lines
Quoted 5 lines
https://github.com/raspberrypi/firmware/issues/1402
Otherwise, the Linux version of this is already in linux-next:
Quoted 3 lines
We're already at 2020.07-rc3 , so unless this is a bugfix (does not look that way), this will have to wait for next release cycle.
Of course. As long as it eventually gets in I'm happy (not implying this specific series is flawless, but the overall mechanism). I'm just worried this gets lost.
Quoted 6 lines
Quoted 2 lines
Also, it seems
there was a lengthy ongoing discussion, is that already sorted out ?Well, there was some discussion on how to incorporate the platform specific callback into XCHI's code. Which this revision of the series addresses. But, IIRC, that's pretty much it as far as discussion is concerned.
Oh, right, since the firmware loading hook looks like a reset hook, why isn't that implemented via reset controller API instead ?
Quoted 23 lines · Marek Vasut
Quoted 22 lines · Nicolas Saenz Julienne
Quoted 21 lines · Marek Vasut
Quoted 20 lines · Nicolas Saenz Julienne
Quoted 8 lines · Nicolas Saenz Julienne
Newer revisions of the RPi4 need their xHCI chip, VL805, firmware to be
loaded explicitly. Earlier versions didn't need that as they where using
an EEPROM for that purpose. This series takes care of setting up the relevant infrastructure and run the firmware loading routine at the right moment.Quoted 4 lines
Note that this builds on top of Sylwester Nawrocki's "USB host support for Raspberry Pi 4 board" series.
---
Please don't forget about this series. The new 8GB RPi4 contains this HW design
change and USB will not work without it. See this discussion on the downstream
kernel github, where other OS/bootloaders are hitting the issue:
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
Quoted 5 lines
https://github.com/raspberrypi/firmware/issues/1402
Otherwise, the Linux version of this is already in linux-next:
Quoted 11 lines
Quoted 11 lines
Quoted 2 lines
We're already at 2020.07-rc3 , so unless this is a bugfix (does not look that way), this will have to wait for next release cycle.
Of course. As long as it eventually gets in I'm happy (not implying this specific series is flawless, but the overall mechanism). I'm just worried this
gets lost.Quoted 2 lines
Also, it seems
there was a lengthy ongoing discussion, is that already sorted out ?
Quoted 6 lines
Quoted 3 lines
Well, there was some discussion on how to incorporate the platform specific callback into XCHI's code. Which this revision of the series addresses. But, IIRC, that's pretty much it as far as discussion is concerned.
Oh, right, since the firmware loading hook looks like a reset hook, why isn't that implemented via reset controller API instead ?
That could be pretty clean, I hadn't though about it that way. Some questions:
- Being a PCIe device the XHCI controller doesn't show up in the device-tree. I guess it could be added as a child node of pcie-brcmstb, but is that even acceptable?
- Same goes for xhci-pci being a consumer of the reset controller. Given the reset scheme is board specific (the chip can be found all over the place, but the firmware loading scheme is 100% RPi specific), to what extent we can introduce that as a binding?
Regards,
Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200601/5ce45519/attachment.sig>
Quoted 46 lines · Nicolas Saenz Julienne
Quoted 23 lines · Marek Vasut
Quoted 22 lines · Nicolas Saenz Julienne
Quoted 21 lines · Marek Vasut
Quoted 20 lines · Nicolas Saenz Julienne
Quoted 8 lines · Nicolas Saenz Julienne
Newer revisions of the RPi4 need their xHCI chip, VL805, firmware to be
loaded explicitly. Earlier versions didn't need that as they where using
an EEPROM for that purpose. This series takes care of setting up the relevant infrastructure and run the firmware loading routine at the right moment.Quoted 4 lines
Note that this builds on top of Sylwester Nawrocki's "USB host support for Raspberry Pi 4 board" series.
---
Please don't forget about this series. The new 8GB RPi4 contains this HW design
change and USB will not work without it. See this discussion on the downstream
kernel github, where other OS/bootloaders are hitting the issue:Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
Quoted 5 lines
https://github.com/raspberrypi/firmware/issues/1402
Otherwise, the Linux version of this is already in linux-next:
Quoted 15 lines
Quoted 14 lines
Quoted 2 lines
We're already at 2020.07-rc3 , so unless this is a bugfix (does not look that way), this will have to wait for next release cycle.
Of course. As long as it eventually gets in I'm happy (not implying this specific series is flawless, but the overall mechanism). I'm just worried this
gets lost.Quoted 2 lines
Also, it seems
there was a lengthy ongoing discussion, is that already sorted out ?Well, there was some discussion on how to incorporate the platform specific callback into XCHI's code. Which this revision of the series addresses. But, IIRC, that's pretty much it as far as discussion is concerned.
Quoted 8 lines
Quoted 2 lines
Oh, right, since the firmware loading hook looks like a reset hook, why isn't that implemented via reset controller API instead ?
That could be pretty clean, I hadn't though about it that way. Some questions:
- Being a PCIe device the XHCI controller doesn't show up in the device-tree. I guess it could be added as a child node of pcie-brcmstb, but is that even acceptable?
Yes, there are other such DTs .
Quoted 4 lines
- Same goes for xhci-pci being a consumer of the reset controller. Given the reset scheme is board specific (the chip can be found all over the place, but the firmware loading scheme is 100% RPi specific), to what extent we can introduce that as a binding?
I'm not sure what you're asking me here, you'll just have some reset controller in a DT and a phandle from the xhci-controller to this reset controller.
Quoted 30 lines · Marek Vasut
Quoted 29 lines · Nicolas Saenz Julienne
Quoted 28 lines · Marek Vasut
Quoted 27 lines · Nicolas Saenz Julienne
Quoted 26 lines · Marek Vasut
Quoted 25 lines · Nicolas Saenz Julienne
Quoted 11 lines · Nicolas Saenz Julienne
Newer revisions of the RPi4 need their xHCI chip, VL805, firmware to
be
loaded explicitly. Earlier versions didn't need that as they where using
an EEPROM for that purpose. This series takes care of setting up the
relevant infrastructure and run the firmware loading routine at the
right moment.Quoted 5 lines
Note that this builds on top of Sylwester Nawrocki's "USB host support
for Raspberry Pi 4 board" series.---
Please don't forget about this series. The new 8GB RPi4 contains this HW
design
change and USB will not work without it. See this discussion on the downstream
kernel github, where other OS/bootloaders are hitting the issue:
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
https://github.com/raspberrypi/firmware/issues/1402
Otherwise, the Linux version of this is already in linux-next:
Quoted 38 lines
Quoted 22 lines
Quoted 13 lines
Quoted 13 lines
Quoted 3 lines
We're already at 2020.07-rc3 , so unless this is a bugfix (does not look
that way), this will have to wait for next release cycle.Of course. As long as it eventually gets in I'm happy (not implying this specific series is flawless, but the overall mechanism). I'm just worried
this
gets lost.Quoted 2 lines
Also, it seems
there was a lengthy ongoing discussion, is that already sorted out ?Quoted 8 lines
Quoted 5 lines
Well, there was some discussion on how to incorporate the platform specific
callback into XCHI's code. Which this revision of the series addresses. But,
IIRC, that's pretty much it as far as discussion is concerned.Oh, right, since the firmware loading hook looks like a reset hook, why isn't that implemented via reset controller API instead ?
Quoted 7 lines
That could be pretty clean, I hadn't though about it that way. Some questions:
- Being a PCIe device the XHCI controller doesn't show up in the device- tree. I
guess it could be added as a child node of pcie-brcmstb, but is that even acceptable?Yes, there are other such DTs .
Quoted 5 lines
- Same goes for xhci-pci being a consumer of the reset controller. Given the reset scheme is board specific (the chip can be found all over the place,
but
the firmware loading scheme is 100% RPi specific), to what extent we can introduce that as a binding?
Quoted 3 lines
I'm not sure what you're asking me here, you'll just have some reset controller in a DT and a phandle from the xhci-controller to this reset controller.
Sorry I wasn't clear, overall my concern here is that xhic-pci maintainers, both in u-boot y linux (as I'd like to have the same solution on both sides, since it involves changes in dt), might see it as too platform specific to add it into an otherwise generic xhci-pci implmentation.
But nevermind, I'll just post the series and see what happens :).
Regards,
Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200604/6a3f9c47/attachment.sig>
Quoted 80 lines · Nicolas Saenz Julienne
Quoted 30 lines · Marek Vasut
Quoted 29 lines · Nicolas Saenz Julienne
Quoted 28 lines · Marek Vasut
Quoted 27 lines · Nicolas Saenz Julienne
Quoted 26 lines · Marek Vasut
Quoted 25 lines · Nicolas Saenz Julienne
Quoted 11 lines · Nicolas Saenz Julienne
Newer revisions of the RPi4 need their xHCI chip, VL805, firmware to
be
loaded explicitly. Earlier versions didn't need that as they where using
an EEPROM for that purpose. This series takes care of setting up the
relevant infrastructure and run the firmware loading routine at the
right moment.Quoted 5 lines
Note that this builds on top of Sylwester Nawrocki's "USB host support
for Raspberry Pi 4 board" series.---
Please don't forget about this series. The new 8GB RPi4 contains this HW
design
change and USB will not work without it. See this discussion on the downstream
kernel github, where other OS/bootloaders are hitting the issue:Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
https://github.com/raspberrypi/firmware/issues/1402
Otherwise, the Linux version of this is already in linux-next:
Quoted 38 lines
Quoted 22 lines
Quoted 13 lines
Quoted 13 lines
Quoted 3 lines
We're already at 2020.07-rc3 , so unless this is a bugfix (does not look
that way), this will have to wait for next release cycle.Of course. As long as it eventually gets in I'm happy (not implying this specific series is flawless, but the overall mechanism). I'm just worried
this
gets lost.Quoted 2 lines
Also, it seems
there was a lengthy ongoing discussion, is that already sorted out ?Quoted 8 lines
Quoted 5 lines
Well, there was some discussion on how to incorporate the platform specific
callback into XCHI's code. Which this revision of the series addresses. But,
IIRC, that's pretty much it as far as discussion is concerned.Oh, right, since the firmware loading hook looks like a reset hook, why isn't that implemented via reset controller API instead ?
Quoted 7 lines
That could be pretty clean, I hadn't though about it that way. Some questions:
- Being a PCIe device the XHCI controller doesn't show up in the device- tree. I
guess it could be added as a child node of pcie-brcmstb, but is that even acceptable?Yes, there are other such DTs .
Quoted 5 lines
- Same goes for xhci-pci being a consumer of the reset controller. Given the reset scheme is board specific (the chip can be found all over the place,
but
the firmware loading scheme is 100% RPi specific), to what extent we can introduce that as a binding?Quoted 3 lines
I'm not sure what you're asking me here, you'll just have some reset controller in a DT and a phandle from the xhci-controller to this reset controller.
Quoted 6 lines
Sorry I wasn't clear, overall my concern here is that xhic-pci maintainers, both in u-boot y linux (as I'd like to have the same solution on both sides, since it involves changes in dt), might see it as too platform specific to add it into an otherwise generic xhci-pci implmentation.
But nevermind, I'll just post the series and see what happens :).
I think it should be OK, thanks.