mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-21 11:53:01 +00:00
usb: dwc3: add vendor prefix against used dwc3 flags
Currently there is no prefix used with dwc3 flags like tx-fifo-size, host-only-mode, nominal-elastic-buffer and core_reset_after_phy_init (rename as core-reset-after-phy-init). This change adds snps as prefix to reflect that those are used usb core vendor's feature. This change also makes required changes with all devicetree files where it is applicable. Change-Id: I9fa5c697491a3cde4a53df4fe6d7d2a8448353a5 Signed-off-by: Mayank Rana <mrana@codeaurora.org>
This commit is contained in:
parent
38febb2cd5
commit
bceadca1b4
|
@ -13,10 +13,10 @@ Required properties:
|
|||
|
||||
Optional properties:
|
||||
- tx-fifo-resize: determines if the FIFO *has* to be reallocated.
|
||||
- host-only-mode: if present then dwc3 should be run in HOST only mode.
|
||||
- nominal-elastic-buffer: When set, the nominal elastic buffer setting
|
||||
- snps,host-only-mode: if present then dwc3 should be run in HOST only mode.
|
||||
- snps,nominal-elastic-buffer: When set, the nominal elastic buffer setting
|
||||
is used. By default, the half-full setting is used.
|
||||
- core_reset_after_phy_init: If present, PHY reset and initialization is
|
||||
- snps,core-reset-after-phy-init: If present, PHY reset and initialization is
|
||||
performed before core reset.
|
||||
- snps,hsphy-auto-suspend-disable: If present, auto suspend feature is not enabled with hsusb phy.
|
||||
|
||||
|
@ -29,4 +29,5 @@ dwc3@4a030000 {
|
|||
interrupt-names = "irq", "otg_irq";
|
||||
usb-phy = <&usb2_phy>, <&usb3,phy>;
|
||||
tx-fifo-resize;
|
||||
snps,hsphy-auto-suspend-disable;
|
||||
};
|
||||
|
|
|
@ -294,7 +294,7 @@
|
|||
qcom,charging-disabled;
|
||||
vbus_dwc3-supply = <0>;
|
||||
dwc3@f9200000 {
|
||||
host-only-mode;
|
||||
snps,host-only-mode;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -2726,7 +2726,7 @@
|
|||
interrupts = <0 258 4>, <0 262 4>;
|
||||
interrupt-names = "irq", "otg_irq";
|
||||
usb-phy = <&hsphy1>, <&ssphy1>;
|
||||
host-only-mode;
|
||||
snps,host-only-mode;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -496,8 +496,8 @@
|
|||
interrupts = <0 131 0>, <0 179 0>;
|
||||
interrupt-names = "irq", "otg_irq";
|
||||
usb-phy = <&hsphy0>, <&ssphy0>;
|
||||
nominal-elastic-buffer;
|
||||
core_reset_after_phy_init;
|
||||
snps,nominal-elastic-buffer;
|
||||
snps,core-reset-after-phy-init;
|
||||
snps,hsphy-auto-suspend-disable;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -823,7 +823,7 @@
|
|||
interrupt-names = "irq", "otg_irq";
|
||||
usb-phy = <&hsphy>, <&ssphy>;
|
||||
tx-fifo-resize;
|
||||
host-only-mode;
|
||||
snps,host-only-mode;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -592,10 +592,10 @@ static int dwc3_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
dwc->core_reset_after_phy_init =
|
||||
of_property_read_bool(node, "core_reset_after_phy_init");
|
||||
of_property_read_bool(node, "snps,core-reset-after-phy-init");
|
||||
|
||||
dwc->needs_fifo_resize = of_property_read_bool(node, "tx-fifo-resize");
|
||||
host_only_mode = of_property_read_bool(node, "host-only-mode");
|
||||
host_only_mode = of_property_read_bool(node, "snps,host-only-mode");
|
||||
dwc->hsphy_auto_suspend_disable = of_property_read_bool(node,
|
||||
"snps,hsphy-auto-suspend-disable");
|
||||
dwc->maximum_speed = of_usb_get_maximum_speed(node);
|
||||
|
@ -672,7 +672,7 @@ static int dwc3_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
dwc->nominal_elastic_buffer = of_property_read_bool(node,
|
||||
"nominal-elastic-buffer");
|
||||
"snps,nominal-elastic-buffer");
|
||||
|
||||
ret = dwc3_core_init(dwc);
|
||||
if (ret) {
|
||||
|
|
|
@ -2642,7 +2642,7 @@ static int dwc3_msm_probe(struct platform_device *pdev)
|
|||
goto put_psupply;
|
||||
}
|
||||
|
||||
host_mode = of_property_read_bool(dwc3_node, "host-only-mode");
|
||||
host_mode = of_property_read_bool(dwc3_node, "snps,host-only-mode");
|
||||
if (host_mode && of_get_property(pdev->dev.of_node, "vbus_dwc3-supply",
|
||||
NULL)) {
|
||||
mdwc->vbus_otg = devm_regulator_get(&pdev->dev, "vbus_dwc3");
|
||||
|
|
Loading…
Reference in a new issue