162306a36Sopenharmony_ciDevice tree binding for NVIDIA Tegra XUSB pad controller 262306a36Sopenharmony_ci======================================================== 362306a36Sopenharmony_ci 462306a36Sopenharmony_ciNOTE: It turns out that this binding isn't an accurate description of the XUSB 562306a36Sopenharmony_cipad controller. While the description is good enough for the functional subset 662306a36Sopenharmony_cirequired for PCIe and SATA, it lacks the flexibility to represent the features 762306a36Sopenharmony_cineeded for USB. For the new binding, see ../phy/nvidia,tegra-xusb-padctl.txt. 862306a36Sopenharmony_ciThe binding described in this file is deprecated and should not be used. 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ciThe Tegra XUSB pad controller manages a set of lanes, each of which can be 1162306a36Sopenharmony_ciassigned to one out of a set of different pads. Some of these pads have an 1262306a36Sopenharmony_ciassociated PHY that must be powered up before the pad can be used. 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_ciThis document defines the device-specific binding for the XUSB pad controller. 1562306a36Sopenharmony_ci 1662306a36Sopenharmony_ciRefer to pinctrl-bindings.txt in this directory for generic information about 1762306a36Sopenharmony_cipin controller device tree bindings and ../phy/phy-bindings.txt for details on 1862306a36Sopenharmony_cihow to describe and reference PHYs in device trees. 1962306a36Sopenharmony_ci 2062306a36Sopenharmony_ciRequired properties: 2162306a36Sopenharmony_ci-------------------- 2262306a36Sopenharmony_ci- compatible: For Tegra124, must contain "nvidia,tegra124-xusb-padctl". 2362306a36Sopenharmony_ci Otherwise, must contain '"nvidia,<chip>-xusb-padctl", 2462306a36Sopenharmony_ci "nvidia-tegra124-xusb-padctl"', where <chip> is tegra132 or tegra210. 2562306a36Sopenharmony_ci- reg: Physical base address and length of the controller's registers. 2662306a36Sopenharmony_ci- resets: Must contain an entry for each entry in reset-names. 2762306a36Sopenharmony_ci See ../reset/reset.txt for details. 2862306a36Sopenharmony_ci- reset-names: Must include the following entries: 2962306a36Sopenharmony_ci - padctl 3062306a36Sopenharmony_ci- #phy-cells: Should be 1. The specifier is the index of the PHY to reference. 3162306a36Sopenharmony_ci See <dt-bindings/pinctrl/pinctrl-tegra-xusb.h> for the list of valid values. 3262306a36Sopenharmony_ci 3362306a36Sopenharmony_ciLane muxing: 3462306a36Sopenharmony_ci------------ 3562306a36Sopenharmony_ci 3662306a36Sopenharmony_ciChild nodes contain the pinmux configurations following the conventions from 3762306a36Sopenharmony_cithe pinctrl-bindings.txt document. Typically a single, static configuration is 3862306a36Sopenharmony_cigiven and applied at boot time. 3962306a36Sopenharmony_ci 4062306a36Sopenharmony_ciEach subnode describes groups of lanes along with parameters and pads that 4162306a36Sopenharmony_cithey should be assigned to. The name of these subnodes is not important. All 4262306a36Sopenharmony_cisubnodes should be parsed solely based on their content. 4362306a36Sopenharmony_ci 4462306a36Sopenharmony_ciEach subnode only applies the parameters that are explicitly listed. In other 4562306a36Sopenharmony_ciwords, if a subnode that lists a function but no pin configuration parameters 4662306a36Sopenharmony_ciimplies no information about any pin configuration parameters. Similarly, a 4762306a36Sopenharmony_cisubnode that describes only an IDDQ parameter implies no information about 4862306a36Sopenharmony_ciwhat function the pins are assigned to. For this reason even seemingly boolean 4962306a36Sopenharmony_civalues are actually tristates in this binding: unspecified, off or on. 5062306a36Sopenharmony_ciUnspecified is represented as an absent property, and off/on are represented 5162306a36Sopenharmony_cias integer values 0 and 1. 5262306a36Sopenharmony_ci 5362306a36Sopenharmony_ciRequired properties: 5462306a36Sopenharmony_ci- nvidia,lanes: An array of strings. Each string is the name of a lane. 5562306a36Sopenharmony_ci 5662306a36Sopenharmony_ciOptional properties: 5762306a36Sopenharmony_ci- nvidia,function: A string that is the name of the function (pad) that the 5862306a36Sopenharmony_ci pin or group should be assigned to. Valid values for function names are 5962306a36Sopenharmony_ci listed below. 6062306a36Sopenharmony_ci- nvidia,iddq: Enables IDDQ mode of the lane. (0: no, 1: yes) 6162306a36Sopenharmony_ci 6262306a36Sopenharmony_ciNote that not all of these properties are valid for all lanes. Lanes can be 6362306a36Sopenharmony_cidivided into three groups: 6462306a36Sopenharmony_ci 6562306a36Sopenharmony_ci - otg-0, otg-1, otg-2: 6662306a36Sopenharmony_ci 6762306a36Sopenharmony_ci Valid functions for this group are: "snps", "xusb", "uart", "rsvd". 6862306a36Sopenharmony_ci 6962306a36Sopenharmony_ci The nvidia,iddq property does not apply to this group. 7062306a36Sopenharmony_ci 7162306a36Sopenharmony_ci - ulpi-0, hsic-0, hsic-1: 7262306a36Sopenharmony_ci 7362306a36Sopenharmony_ci Valid functions for this group are: "snps", "xusb". 7462306a36Sopenharmony_ci 7562306a36Sopenharmony_ci The nvidia,iddq property does not apply to this group. 7662306a36Sopenharmony_ci 7762306a36Sopenharmony_ci - pcie-0, pcie-1, pcie-2, pcie-3, pcie-4, sata-0: 7862306a36Sopenharmony_ci 7962306a36Sopenharmony_ci Valid functions for this group are: "pcie", "usb3", "sata", "rsvd". 8062306a36Sopenharmony_ci 8162306a36Sopenharmony_ci 8262306a36Sopenharmony_ciExample: 8362306a36Sopenharmony_ci======== 8462306a36Sopenharmony_ci 8562306a36Sopenharmony_ciSoC file extract: 8662306a36Sopenharmony_ci----------------- 8762306a36Sopenharmony_ci 8862306a36Sopenharmony_ci padctl@7009f000 { 8962306a36Sopenharmony_ci compatible = "nvidia,tegra124-xusb-padctl"; 9062306a36Sopenharmony_ci reg = <0x0 0x7009f000 0x0 0x1000>; 9162306a36Sopenharmony_ci resets = <&tegra_car 142>; 9262306a36Sopenharmony_ci reset-names = "padctl"; 9362306a36Sopenharmony_ci 9462306a36Sopenharmony_ci #phy-cells = <1>; 9562306a36Sopenharmony_ci }; 9662306a36Sopenharmony_ci 9762306a36Sopenharmony_ciBoard file extract: 9862306a36Sopenharmony_ci------------------- 9962306a36Sopenharmony_ci 10062306a36Sopenharmony_ci pcie-controller@1003000 { 10162306a36Sopenharmony_ci ... 10262306a36Sopenharmony_ci 10362306a36Sopenharmony_ci phys = <&padctl 0>; 10462306a36Sopenharmony_ci phy-names = "pcie"; 10562306a36Sopenharmony_ci 10662306a36Sopenharmony_ci ... 10762306a36Sopenharmony_ci }; 10862306a36Sopenharmony_ci 10962306a36Sopenharmony_ci ... 11062306a36Sopenharmony_ci 11162306a36Sopenharmony_ci padctl: padctl@7009f000 { 11262306a36Sopenharmony_ci pinctrl-0 = <&padctl_default>; 11362306a36Sopenharmony_ci pinctrl-names = "default"; 11462306a36Sopenharmony_ci 11562306a36Sopenharmony_ci padctl_default: pinmux { 11662306a36Sopenharmony_ci usb3 { 11762306a36Sopenharmony_ci nvidia,lanes = "pcie-0", "pcie-1"; 11862306a36Sopenharmony_ci nvidia,function = "usb3"; 11962306a36Sopenharmony_ci nvidia,iddq = <0>; 12062306a36Sopenharmony_ci }; 12162306a36Sopenharmony_ci 12262306a36Sopenharmony_ci pcie { 12362306a36Sopenharmony_ci nvidia,lanes = "pcie-2", "pcie-3", 12462306a36Sopenharmony_ci "pcie-4"; 12562306a36Sopenharmony_ci nvidia,function = "pcie"; 12662306a36Sopenharmony_ci nvidia,iddq = <0>; 12762306a36Sopenharmony_ci }; 12862306a36Sopenharmony_ci 12962306a36Sopenharmony_ci sata { 13062306a36Sopenharmony_ci nvidia,lanes = "sata-0"; 13162306a36Sopenharmony_ci nvidia,function = "sata"; 13262306a36Sopenharmony_ci nvidia,iddq = <0>; 13362306a36Sopenharmony_ci }; 13462306a36Sopenharmony_ci }; 13562306a36Sopenharmony_ci }; 136