mirror of
https://github.com/torvalds/linux.git
synced 2026-04-27 11:02:31 -04:00
Pull DeviceTree updates from Rob Herring:
"There's a few orphans in the conversion to %pOF printf specifiers
included here that no one else picked up.
Summary:
- Convert more DT code to use of_property_read_* API.
- Improve DT overlay support when adding multiple overlays
- Convert printk's to %pOF format specifiers. Most went via subsystem
trees, but picked up the remaining orphans
- Correct unittests to use preferred "okay" for "status" property
value
- Add a KASLR seed property
- Vendor prefixes for Mellanox, Theobroma System, Adaptrum, Moxa
- Fix modalias buffer handling
- Clean-up of include paths for building dtbs
- Add bindings for amc6821, isl1208, tsl2x7x, srf02, and srf10
devices
- Add nvmem bindings for MediaTek MT7623 and MT7622 SoC
- Add compatible string for Allwinner H5 Mali-450 GPU
- Fix links to old OpenFirmware docs with new mirror on
devicetree.org
- Remove status property from binding doc examples"
* tag 'devicetree-for-4.14' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (45 commits)
devicetree: Adjust status "ok" -> "okay" under drivers/of/
dt-bindings: Remove "status" from examples
dt-bindings: pinctrl: sh-pfc: Use generic node name
dt-bindings: Add vendor Mellanox
dt-binding: net/phy: fix interrupts description
virt: Convert to using %pOF instead of full_name
macintosh: Convert to using %pOF instead of full_name
ide: pmac: Convert to using %pOF instead of full_name
microblaze: Convert to using %pOF instead of full_name
dt-bindings: usb: musb: Grammar s/the/to/, s/is/are/
of: Use PLATFORM_DEVID_NONE definition
of/device: Fix of_device_get_modalias() buffer handling
of/device: Prevent buffer overflow in of_device_modalias()
dt-bindings: add amc6821, isl1208 trivial bindings
dt-bindings: add vendor prefix for Theobroma Systems
of: search scripts/dtc/include-prefixes path for both CPP and DTC
of: remove arch/$(SRCARCH)/boot/dts from include search path for CPP
of: remove drivers/of/testcase-data from include search path for CPP
of: return of_get_cpu_node from of_cpu_device_node_get if CPUs are not registered
iio: srf08: add device tree binding for srf02 and srf10
...
90 lines
3.4 KiB
Plaintext
90 lines
3.4 KiB
Plaintext
The device node for Mediatek USB3.0 DRD controller
|
|
|
|
Required properties:
|
|
- compatible : should be "mediatek,<soc-model>-mtu3", "mediatek,mtu3",
|
|
soc-model is the name of SoC, such as mt8173, mt2712 etc,
|
|
when using "mediatek,mtu3" compatible string, you need SoC specific
|
|
ones in addition, one of:
|
|
- "mediatek,mt8173-mtu3"
|
|
- reg : specifies physical base address and size of the registers
|
|
- reg-names: should be "mac" for device IP and "ippc" for IP port control
|
|
- interrupts : interrupt used by the device IP
|
|
- power-domains : a phandle to USB power domain node to control USB's
|
|
mtcmos
|
|
- vusb33-supply : regulator of USB avdd3.3v
|
|
- clocks : a list of phandle + clock-specifier pairs, one for each
|
|
entry in clock-names
|
|
- clock-names : must contain "sys_ck" and "ref_ck" for clock of controller;
|
|
"wakeup_deb_p0" and "wakeup_deb_p1" are optional, they are
|
|
depends on "mediatek,enable-wakeup"
|
|
- phys : a list of phandle + phy specifier pairs
|
|
- dr_mode : should be one of "host", "peripheral" or "otg",
|
|
refer to usb/generic.txt
|
|
|
|
Optional properties:
|
|
- #address-cells, #size-cells : should be '2' if the device has sub-nodes
|
|
with 'reg' property
|
|
- ranges : allows valid 1:1 translation between child's address space and
|
|
parent's address space
|
|
- extcon : external connector for vbus and idpin changes detection, needed
|
|
when supports dual-role mode.
|
|
- vbus-supply : reference to the VBUS regulator, needed when supports
|
|
dual-role mode.
|
|
- pinctl-names : a pinctrl state named "default" must be defined,
|
|
"id_float" and "id_ground" are optinal which depends on
|
|
"mediatek,enable-manual-drd"
|
|
- pinctrl-0 : pin control group
|
|
See: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
|
|
|
|
- maximum-speed : valid arguments are "super-speed", "high-speed" and
|
|
"full-speed"; refer to usb/generic.txt
|
|
- enable-manual-drd : supports manual dual-role switch via debugfs; usually
|
|
used when receptacle is TYPE-A and also wants to support dual-role
|
|
mode.
|
|
- mediatek,enable-wakeup : supports ip sleep wakeup used by host mode
|
|
- mediatek,syscon-wakeup : phandle to syscon used to access USB wakeup
|
|
control register, it depends on "mediatek,enable-wakeup".
|
|
|
|
Sub-nodes:
|
|
The xhci should be added as subnode to mtu3 as shown in the following example
|
|
if host mode is enabled. The DT binding details of xhci can be found in:
|
|
Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.txt
|
|
|
|
Example:
|
|
ssusb: usb@11271000 {
|
|
compatible = "mediatek,mt8173-mtu3";
|
|
reg = <0 0x11271000 0 0x3000>,
|
|
<0 0x11280700 0 0x0100>;
|
|
reg-names = "mac", "ippc";
|
|
interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_LOW>;
|
|
phys = <&phy_port0 PHY_TYPE_USB3>,
|
|
<&phy_port1 PHY_TYPE_USB2>;
|
|
power-domains = <&scpsys MT8173_POWER_DOMAIN_USB>;
|
|
clocks = <&topckgen CLK_TOP_USB30_SEL>, <&clk26m>,
|
|
<&pericfg CLK_PERI_USB0>,
|
|
<&pericfg CLK_PERI_USB1>;
|
|
clock-names = "sys_ck", "ref_ck",
|
|
"wakeup_deb_p0",
|
|
"wakeup_deb_p1";
|
|
vusb33-supply = <&mt6397_vusb_reg>;
|
|
vbus-supply = <&usb_p0_vbus>;
|
|
extcon = <&extcon_usb>;
|
|
dr_mode = "otg";
|
|
mediatek,enable-wakeup;
|
|
mediatek,syscon-wakeup = <&pericfg>;
|
|
#address-cells = <2>;
|
|
#size-cells = <2>;
|
|
ranges;
|
|
|
|
usb_host: xhci@11270000 {
|
|
compatible = "mediatek,mt8173-xhci";
|
|
reg = <0 0x11270000 0 0x1000>;
|
|
reg-names = "mac";
|
|
interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_LOW>;
|
|
power-domains = <&scpsys MT8173_POWER_DOMAIN_USB>;
|
|
clocks = <&topckgen CLK_TOP_USB30_SEL>, <&clk26m>;
|
|
clock-names = "sys_ck", "ref_ck";
|
|
vusb33-supply = <&mt6397_vusb_reg>;
|
|
};
|
|
};
|