| /Linux-v5.4/drivers/pinctrl/tegra/ |
| D | pinctrl-tegra-xusb.c | 93 static inline void padctl_writel(struct tegra_xusb_padctl *padctl, u32 value, in padctl_writel() argument 96 writel(value, padctl->regs + offset); in padctl_writel() 99 static inline u32 padctl_readl(struct tegra_xusb_padctl *padctl, in padctl_readl() argument 102 return readl(padctl->regs + offset); in padctl_readl() 107 struct tegra_xusb_padctl *padctl = pinctrl_dev_get_drvdata(pinctrl); in tegra_xusb_padctl_get_groups_count() local 109 return padctl->soc->num_pins; in tegra_xusb_padctl_get_groups_count() 115 struct tegra_xusb_padctl *padctl = pinctrl_dev_get_drvdata(pinctrl); in tegra_xusb_padctl_get_group_name() local 117 return padctl->soc->pins[group].name; in tegra_xusb_padctl_get_group_name() 150 static int tegra_xusb_padctl_parse_subnode(struct tegra_xusb_padctl *padctl, in tegra_xusb_padctl_parse_subnode() argument 182 err = pinctrl_utils_add_config(padctl->pinctrl, &configs, in tegra_xusb_padctl_parse_subnode() [all …]
|
| /Linux-v5.4/drivers/phy/tegra/ |
| D | xusb.c | 74 tegra_xusb_find_pad_node(struct tegra_xusb_padctl *padctl, const char *name) in tegra_xusb_find_pad_node() argument 78 pads = of_get_child_by_name(padctl->dev->of_node, "pads"); in tegra_xusb_find_pad_node() 148 struct tegra_xusb_padctl *padctl, in tegra_xusb_pad_init() argument 155 pad->dev.parent = padctl->dev; in tegra_xusb_pad_init() 158 pad->padctl = padctl; in tegra_xusb_pad_init() 218 list_add_tail(&lane->list, &pad->padctl->lanes); in tegra_xusb_pad_register() 253 tegra_xusb_pad_create(struct tegra_xusb_padctl *padctl, in tegra_xusb_pad_create() argument 260 np = tegra_xusb_find_pad_node(padctl, soc->name); in tegra_xusb_pad_create() 264 pad = soc->ops->probe(padctl, soc, np); in tegra_xusb_pad_create() 267 dev_err(padctl->dev, "failed to create pad %s: %d\n", in tegra_xusb_pad_create() [all …]
|
| D | xusb-tegra210.c | 238 to_tegra210_xusb_padctl(struct tegra_xusb_padctl *padctl) in to_tegra210_xusb_padctl() argument 240 return container_of(padctl, struct tegra210_xusb_padctl, base); in to_tegra210_xusb_padctl() 244 static int tegra210_pex_uphy_enable(struct tegra_xusb_padctl *padctl) in tegra210_pex_uphy_enable() argument 246 struct tegra_xusb_pcie_pad *pcie = to_pcie_pad(padctl->pcie); in tegra210_pex_uphy_enable() 264 value = padctl_readl(padctl, XUSB_PADCTL_UPHY_PLL_P0_CTL2); in tegra210_pex_uphy_enable() 269 padctl_writel(padctl, value, XUSB_PADCTL_UPHY_PLL_P0_CTL2); in tegra210_pex_uphy_enable() 271 value = padctl_readl(padctl, XUSB_PADCTL_UPHY_PLL_P0_CTL5); in tegra210_pex_uphy_enable() 276 padctl_writel(padctl, value, XUSB_PADCTL_UPHY_PLL_P0_CTL5); in tegra210_pex_uphy_enable() 278 value = padctl_readl(padctl, XUSB_PADCTL_UPHY_PLL_P0_CTL1); in tegra210_pex_uphy_enable() 280 padctl_writel(padctl, value, XUSB_PADCTL_UPHY_PLL_P0_CTL1); in tegra210_pex_uphy_enable() [all …]
|
| D | xusb-tegra124.c | 220 to_tegra124_xusb_padctl(struct tegra_xusb_padctl *padctl) in to_tegra124_xusb_padctl() argument 222 return container_of(padctl, struct tegra124_xusb_padctl, base); in to_tegra124_xusb_padctl() 225 static int tegra124_xusb_padctl_enable(struct tegra_xusb_padctl *padctl) in tegra124_xusb_padctl_enable() argument 229 mutex_lock(&padctl->lock); in tegra124_xusb_padctl_enable() 231 if (padctl->enable++ > 0) in tegra124_xusb_padctl_enable() 234 value = padctl_readl(padctl, XUSB_PADCTL_ELPG_PROGRAM); in tegra124_xusb_padctl_enable() 236 padctl_writel(padctl, value, XUSB_PADCTL_ELPG_PROGRAM); in tegra124_xusb_padctl_enable() 240 value = padctl_readl(padctl, XUSB_PADCTL_ELPG_PROGRAM); in tegra124_xusb_padctl_enable() 242 padctl_writel(padctl, value, XUSB_PADCTL_ELPG_PROGRAM); in tegra124_xusb_padctl_enable() 246 value = padctl_readl(padctl, XUSB_PADCTL_ELPG_PROGRAM); in tegra124_xusb_padctl_enable() [all …]
|
| D | xusb-tegra186.c | 140 to_tegra186_xusb_padctl(struct tegra_xusb_padctl *padctl) in to_tegra186_xusb_padctl() argument 142 return container_of(padctl, struct tegra186_xusb_padctl, base); in to_tegra186_xusb_padctl() 184 static void tegra186_utmi_bias_pad_power_on(struct tegra_xusb_padctl *padctl) in tegra186_utmi_bias_pad_power_on() argument 186 struct tegra186_xusb_padctl *priv = to_tegra186_xusb_padctl(padctl); in tegra186_utmi_bias_pad_power_on() 187 struct device *dev = padctl->dev; in tegra186_utmi_bias_pad_power_on() 191 mutex_lock(&padctl->lock); in tegra186_utmi_bias_pad_power_on() 194 mutex_unlock(&padctl->lock); in tegra186_utmi_bias_pad_power_on() 202 value = padctl_readl(padctl, XUSB_PADCTL_USB2_BIAS_PAD_CTL1); in tegra186_utmi_bias_pad_power_on() 207 padctl_writel(padctl, value, XUSB_PADCTL_USB2_BIAS_PAD_CTL1); in tegra186_utmi_bias_pad_power_on() 209 value = padctl_readl(padctl, XUSB_PADCTL_USB2_BIAS_PAD_CTL0); in tegra186_utmi_bias_pad_power_on() [all …]
|
| D | xusb.h | 137 struct tegra_xusb_pad *(*probe)(struct tegra_xusb_padctl *padctl, 154 struct tegra_xusb_padctl *padctl; member 170 struct tegra_xusb_padctl *padctl, 262 struct tegra_xusb_padctl *padctl; member 285 tegra_xusb_find_port(struct tegra_xusb_padctl *padctl, const char *type, 303 tegra_xusb_find_usb2_port(struct tegra_xusb_padctl *padctl, 349 tegra_xusb_find_usb3_port(struct tegra_xusb_padctl *padctl, 367 void (*remove)(struct tegra_xusb_padctl *padctl); 369 int (*usb3_save_context)(struct tegra_xusb_padctl *padctl, 371 int (*hsic_set_idle)(struct tegra_xusb_padctl *padctl, [all …]
|
| /Linux-v5.4/include/linux/phy/tegra/ |
| D | xusb.h | 13 void tegra_xusb_padctl_put(struct tegra_xusb_padctl *padctl); 15 int tegra_xusb_padctl_usb3_save_context(struct tegra_xusb_padctl *padctl, 17 int tegra_xusb_padctl_hsic_set_idle(struct tegra_xusb_padctl *padctl, 19 int tegra_xusb_padctl_usb3_set_lfps_detect(struct tegra_xusb_padctl *padctl,
|
| /Linux-v5.4/Documentation/devicetree/bindings/pinctrl/ |
| D | nvidia,tegra124-xusb-padctl.txt | 7 needed for USB. For the new binding, see ../phy/nvidia,tegra-xusb-padctl.txt. 22 - compatible: For Tegra124, must contain "nvidia,tegra124-xusb-padctl". 23 Otherwise, must contain '"nvidia,<chip>-xusb-padctl", 24 "nvidia-tegra124-xusb-padctl"', where <chip> is tegra132 or tegra210. 29 - padctl 88 padctl@7009f000 { 89 compatible = "nvidia,tegra124-xusb-padctl"; 92 reset-names = "padctl"; 103 phys = <&padctl 0>; 111 padctl: padctl@7009f000 {
|
| /Linux-v5.4/arch/arm64/boot/dts/nvidia/ |
| D | tegra210-p2371-2180.dts | 22 phys = <&{/padctl@7009f000/pads/pcie/lanes/pcie-0}>, 23 <&{/padctl@7009f000/pads/pcie/lanes/pcie-1}>, 24 <&{/padctl@7009f000/pads/pcie/lanes/pcie-2}>, 25 <&{/padctl@7009f000/pads/pcie/lanes/pcie-3}>; 31 phys = <&{/padctl@7009f000/pads/pcie/lanes/pcie-4}>;
|
| D | tegra210-p3450-0000.dts | 41 phys = <&{/padctl@7009f000/pads/pcie/lanes/pcie-1}>, 42 <&{/padctl@7009f000/pads/pcie/lanes/pcie-2}>, 43 <&{/padctl@7009f000/pads/pcie/lanes/pcie-3}>, 44 <&{/padctl@7009f000/pads/pcie/lanes/pcie-4}>; 51 phys = <&{/padctl@7009f000/pads/pcie/lanes/pcie-0}>; 394 phys = <&{/padctl@7009f000/pads/usb2/lanes/usb2-0}>, 395 <&{/padctl@7009f000/pads/usb2/lanes/usb2-1}>, 396 <&{/padctl@7009f000/pads/usb2/lanes/usb2-2}>, 397 <&{/padctl@7009f000/pads/pcie/lanes/pcie-6}>; 412 padctl@7009f000 {
|
| D | tegra186-p2771-0000.dts | 117 padctl@3520000 { 198 phys = <&{/padctl@3520000/pads/usb2/lanes/usb2-0}>, 199 <&{/padctl@3520000/pads/usb2/lanes/usb2-1}>, 200 <&{/padctl@3520000/pads/usb3/lanes/usb3-0}>;
|
| D | tegra186.dtsi | 421 padctl: padctl@3520000 { label 422 compatible = "nvidia,tegra186-xusb-padctl"; 425 reg-names = "padctl", "ao"; 428 reset-names = "padctl"; 548 nvidia,xusb-padctl = <&padctl>; 1120 padctl@15880000 { 1121 compatible = "nvidia,tegra186-dsi-padctl";
|
| D | tegra132.dtsi | 52 phys = <&padctl TEGRA_XUSB_PADCTL_PCIE>; 628 phys = <&padctl TEGRA_XUSB_PADCTL_SATA>; 649 padctl: padctl@7009f000 { label 650 compatible = "nvidia,tegra132-xusb-padctl", 651 "nvidia,tegra124-xusb-padctl"; 654 reset-names = "padctl";
|
| D | tegra210-p2597.dtsi | 1322 phys = <&{/padctl@7009f000/pads/sata/lanes/sata-0}>; 1331 phys = <&{/padctl@7009f000/pads/usb2/lanes/usb2-0}>, 1332 <&{/padctl@7009f000/pads/usb2/lanes/usb2-1}>, 1333 <&{/padctl@7009f000/pads/usb2/lanes/usb2-2}>, 1334 <&{/padctl@7009f000/pads/usb2/lanes/usb2-3}>, 1335 <&{/padctl@7009f000/pads/pcie/lanes/pcie-6}>, 1336 <&{/padctl@7009f000/pads/pcie/lanes/pcie-5}>; 1352 padctl@7009f000 {
|
| D | tegra210.dtsi | 955 nvidia,xusb-padctl = <&padctl>; 960 padctl: padctl@7009f000 { label 961 compatible = "nvidia,tegra210-xusb-padctl"; 964 reset-names = "padctl";
|
| /Linux-v5.4/Documentation/devicetree/bindings/phy/ |
| D | nvidia,tegra124-xusb-padctl.txt | 36 - Tegra124: "nvidia,tegra124-xusb-padctl" 37 - Tegra132: "nvidia,tegra132-xusb-padctl", "nvidia,tegra124-xusb-padctl" 38 - Tegra210: "nvidia,tegra210-xusb-padctl" 39 - Tegra186: "nvidia,tegra186-xusb-padctl" 43 - "padctl" 245 padctl@7009f000 { 247 compatible = "nvidia,tegra124-xusb-padctl"; 249 compatible = "nvidia,tegra132-xusb-padctl", 250 "nvidia,tegra124-xusb-padctl"; 253 reset-names = "padctl"; [all …]
|
| /Linux-v5.4/Documentation/devicetree/bindings/usb/ |
| D | nvidia,tegra124-xusb.txt | 42 - nvidia,xusb-padctl: phandle to the XUSB pad controller that is used to 117 nvidia,xusb-padctl = <&padctl>; 119 phys = <&{/padctl@0,7009f000/pads/usb2/lanes/usb2-1}>, /* mini-PCIe USB */ 120 <&{/padctl@0,7009f000/pads/usb2/lanes/usb2-2}>, /* USB A */ 121 <&{/padctl@0,7009f000/pads/pcie/lanes/pcie-0}>; /* USB A */
|
| /Linux-v5.4/drivers/usb/host/ |
| D | xhci-tegra.c | 184 struct tegra_xusb_padctl *padctl; member 461 struct tegra_xusb_padctl *padctl = tegra->padctl; in tegra_xusb_mbox_handle() local 509 err = tegra_xusb_padctl_usb3_save_context(padctl, msg->data); in tegra_xusb_mbox_handle() 532 err = tegra_xusb_padctl_hsic_set_idle(padctl, port, in tegra_xusb_mbox_handle() 560 err = tegra_xusb_padctl_usb3_set_lfps_detect(padctl, in tegra_xusb_mbox_handle() 1015 tegra->padctl = tegra_xusb_padctl_get(&pdev->dev); in tegra_xusb_probe() 1016 if (IS_ERR(tegra->padctl)) in tegra_xusb_probe() 1017 return PTR_ERR(tegra->padctl); in tegra_xusb_probe() 1289 tegra_xusb_padctl_put(tegra->padctl); in tegra_xusb_probe() 1317 tegra_xusb_padctl_put(tegra->padctl); in tegra_xusb_remove()
|
| /Linux-v5.4/arch/arm/boot/dts/ |
| D | tegra124-nyan.dtsi | 395 phys = <&{/padctl@7009f000/pads/usb2/lanes/usb2-0}>, /* 1st USB A */ 396 <&{/padctl@7009f000/pads/usb2/lanes/usb2-1}>, /* Internal USB */ 397 <&{/padctl@7009f000/pads/usb2/lanes/usb2-2}>, /* 2nd USB A */ 398 <&{/padctl@7009f000/pads/pcie/lanes/pcie-0}>, /* 1st USB A */ 399 <&{/padctl@7009f000/pads/pcie/lanes/pcie-1}>; /* 2nd USB A */ 414 padctl@7009f000 {
|
| D | tegra124-venice2.dts | 904 phys = <&{/padctl@7009f000/pads/usb2/lanes/usb2-0}>, /* 1st USB A */ 905 <&{/padctl@7009f000/pads/usb2/lanes/usb2-1}>, /* Internal USB */ 906 <&{/padctl@7009f000/pads/usb2/lanes/usb2-2}>, /* 2nd USB A */ 907 <&{/padctl@7009f000/pads/pcie/lanes/pcie-0}>, /* 1st USB A */ 908 <&{/padctl@7009f000/pads/pcie/lanes/pcie-1}>; /* 2nd USB A */ 923 padctl@7009f000 {
|
| D | tegra124-apalis-v1.2.dtsi | 32 phys = <&{/padctl@7009f000/pads/pcie/lanes/pcie-4}>, 33 <&{/padctl@7009f000/pads/pcie/lanes/pcie-3}>; 39 phys = <&{/padctl@7009f000/pads/pcie/lanes/pcie-2}>; 1785 phys = <&{/padctl@7009f000/pads/sata/lanes/sata-0}>; 1794 phys = <&{/padctl@7009f000/pads/usb2/lanes/usb2-0}>, 1795 <&{/padctl@7009f000/pads/pcie/lanes/pcie-1}>, 1796 <&{/padctl@7009f000/pads/usb2/lanes/usb2-1}>, 1797 <&{/padctl@7009f000/pads/usb2/lanes/usb2-2}>, 1798 <&{/padctl@7009f000/pads/pcie/lanes/pcie-0}>; 1811 padctl@7009f000 {
|
| D | tegra124-apalis.dtsi | 31 phys = <&{/padctl@7009f000/pads/pcie/lanes/pcie-4}>, 32 <&{/padctl@7009f000/pads/pcie/lanes/pcie-3}>; 38 phys = <&{/padctl@7009f000/pads/pcie/lanes/pcie-2}>; 1778 phys = <&{/padctl@7009f000/pads/sata/lanes/sata-0}>; 1787 phys = <&{/padctl@7009f000/pads/usb2/lanes/usb2-0}>, 1788 <&{/padctl@7009f000/pads/pcie/lanes/pcie-1}>, 1789 <&{/padctl@7009f000/pads/usb2/lanes/usb2-1}>, 1790 <&{/padctl@7009f000/pads/usb2/lanes/usb2-2}>, 1791 <&{/padctl@7009f000/pads/pcie/lanes/pcie-0}>; 1803 padctl@7009f000 {
|
| D | tegra124.dtsi | 693 nvidia,xusb-padctl = <&padctl>; 698 padctl: padctl@7009f000 { label 699 compatible = "nvidia,tegra124-xusb-padctl"; 702 reset-names = "padctl";
|
| D | tegra124-jetson-tk1.dts | 44 phys = <&{/padctl@7009f000/pads/pcie/lanes/pcie-4}>; 51 phys = <&{/padctl@7009f000/pads/pcie/lanes/pcie-2}>; 1687 phys = <&{/padctl@7009f000/pads/sata/lanes/sata-0}>; 1703 phys = <&{/padctl@7009f000/pads/usb2/lanes/usb2-0}>, /* Micro A/B */ 1704 <&{/padctl@7009f000/pads/usb2/lanes/usb2-1}>, /* Mini PCIe */ 1705 <&{/padctl@7009f000/pads/usb2/lanes/usb2-2}>, /* USB3 */ 1706 <&{/padctl@7009f000/pads/pcie/lanes/pcie-0}>; /* USB3 */ 1721 padctl@7009f000 {
|
| /Linux-v5.4/Documentation/devicetree/bindings/pci/ |
| D | nvidia,tegra20-pcie.txt | 464 phys = <&{/padctl@7009f000/pads/pcie/lanes/pcie-4}>; 471 phys = <&{/padctl@7009f000/pads/pcie/lanes/pcie-2}>; 558 phys = <&{/padctl@7009f000/pads/pcie/lanes/pcie-0}>, 559 <&{/padctl@7009f000/pads/pcie/lanes/pcie-1}>, 560 <&{/padctl@7009f000/pads/pcie/lanes/pcie-2}>, 561 <&{/padctl@7009f000/pads/pcie/lanes/pcie-3}>; 567 phys = <&{/padctl@7009f000/pads/pcie/lanes/pcie-4}>;
|