bcm270x_dt: Add dwc2 and dwc-otg overlays

This commit is contained in:
Noralf Trønnes
2015-12-31 16:44:58 +01:00
committed by popcornmix
parent 8948cdb7e6
commit c3878d984c
4 changed files with 72 additions and 0 deletions

View File

@@ -15,6 +15,8 @@ endif
dtb-$(RPI_DT_OVERLAYS) += ads7846-overlay.dtb dtb-$(RPI_DT_OVERLAYS) += ads7846-overlay.dtb
dtb-$(RPI_DT_OVERLAYS) += at86rf233-overlay.dtb dtb-$(RPI_DT_OVERLAYS) += at86rf233-overlay.dtb
dtb-$(RPI_DT_OVERLAYS) += bmp085_i2c-sensor-overlay.dtb dtb-$(RPI_DT_OVERLAYS) += bmp085_i2c-sensor-overlay.dtb
dtb-$(RPI_DT_OVERLAYS) += dwc2-overlay.dtb
dtb-$(RPI_DT_OVERLAYS) += dwc-otg-overlay.dtb
dtb-$(RPI_DT_OVERLAYS) += dht11-overlay.dtb dtb-$(RPI_DT_OVERLAYS) += dht11-overlay.dtb
dtb-$(RPI_DT_OVERLAYS) += enc28j60-overlay.dtb dtb-$(RPI_DT_OVERLAYS) += enc28j60-overlay.dtb
dtb-$(RPI_DT_OVERLAYS) += gpio-ir-overlay.dtb dtb-$(RPI_DT_OVERLAYS) += gpio-ir-overlay.dtb

View File

@@ -198,6 +198,27 @@ Params: gpiopin GPIO connected to the sensor's DATA output.
(default 4) (default 4)
Name: dwc-otg
Info: Selects the dwc_otg USB controller driver which has fiq support. This
is the default on all except the Pi Zero which defaults to dwc2.
Load: dtoverlay=dwc-otg
Params: <None>
Name: dwc2
Info: Selects the dwc2 USB controller driver
Load: dtoverlay=dwc2,<param>=<val>
Params: dr_mode Dual role mode: "host", "peripheral" or "otg"
g-rx-fifo-size Size of rx fifo size in gadget mode
g-np-tx-fifo-size Size of non-periodic tx fifo size in gadget
mode
g-tx-fifo-size Size of periodic tx fifo per endpoint
(except ep0) in gadget mode
[ The ds1307-rtc overlay has been deleted. See i2c-rtc. ] [ The ds1307-rtc overlay has been deleted. See i2c-rtc. ]

View File

@@ -0,0 +1,20 @@
/dts-v1/;
/plugin/;
/{
compatible = "brcm,bcm2708";
fragment@0 {
target = <&usb>;
#address-cells = <1>;
#size-cells = <1>;
__overlay__ {
compatible = "brcm,bcm2708-usb";
reg = <0x7e980000 0x10000>,
<0x7e006000 0x1000>;
interrupts = <2 0>,
<1 9>;
status = "okay";
};
};
};

View File

@@ -0,0 +1,29 @@
/dts-v1/;
/plugin/;
/{
compatible = "brcm,bcm2708";
fragment@0 {
target = <&usb>;
#address-cells = <1>;
#size-cells = <1>;
__overlay__ {
compatible = "brcm,bcm2835-usb";
reg = <0x7e980000 0x10000>;
interrupts = <1 9>;
dr_mode = "otg";
g-np-tx-fifo-size = <32>;
g-rx-fifo-size = <256>;
g-tx-fifo-size = <256 128 128 64 64 64 32>;
status = "okay";
};
};
__overrides__ {
dr_mode = <&usb>, "dr_mode";
g-np-tx-fifo-size = <&usb>,"g-np-tx-fifo-size:0";
g-rx-fifo-size = <&usb>,"g-rx-fifo-size:0";
g-tx-fifo-size = <&usb>,"g-tx-fifo-size:0";
};
};