Home
last modified time | relevance | path

Searched refs:padctl (Results 1 – 25 of 56) sorted by relevance

123

/openbmc/linux/drivers/pinctrl/tegra/
H A Dpinctrl-tegra-xusb.c96 static inline void padctl_writel(struct tegra_xusb_padctl *padctl, u32 value, in padctl_writel() argument
99 writel(value, padctl->regs + offset); in padctl_writel()
102 static inline u32 padctl_readl(struct tegra_xusb_padctl *padctl, in padctl_readl() argument
105 return readl(padctl->regs + offset); in padctl_readl()
110 struct tegra_xusb_padctl *padctl = pinctrl_dev_get_drvdata(pinctrl); in tegra_xusb_padctl_get_groups_count() local
112 return padctl->soc->num_pins; in tegra_xusb_padctl_get_groups_count()
118 struct tegra_xusb_padctl *padctl = pinctrl_dev_get_drvdata(pinctrl); in tegra_xusb_padctl_get_group_name() local
120 return padctl->soc->pins[group].name; in tegra_xusb_padctl_get_group_name()
153 static int tegra_xusb_padctl_parse_subnode(struct tegra_xusb_padctl *padctl, in tegra_xusb_padctl_parse_subnode() argument
185 err = pinctrl_utils_add_config(padctl->pinctrl, &configs, in tegra_xusb_padctl_parse_subnode()
[all …]
/openbmc/linux/drivers/phy/tegra/
H A Dxusb-tegra210.c432 to_tegra210_xusb_padctl(struct tegra_xusb_padctl *padctl) in to_tegra210_xusb_padctl() argument
434 return container_of(padctl, struct tegra210_xusb_padctl, base); in to_tegra210_xusb_padctl()
454 dev_dbg(lane->pad->padctl->dev, "lane = %s map to port = usb3-%d\n", in tegra210_usb3_lane_map()
464 static int tegra210_pex_uphy_enable(struct tegra_xusb_padctl *padctl) in tegra210_pex_uphy_enable() argument
466 struct tegra_xusb_pcie_pad *pcie = to_pcie_pad(padctl->pcie); in tegra210_pex_uphy_enable()
486 value = padctl_readl(padctl, XUSB_PADCTL_UPHY_PLL_P0_CTL2); in tegra210_pex_uphy_enable()
491 padctl_writel(padctl, value, XUSB_PADCTL_UPHY_PLL_P0_CTL2); in tegra210_pex_uphy_enable()
493 value = padctl_readl(padctl, XUSB_PADCTL_UPHY_PLL_P0_CTL5); in tegra210_pex_uphy_enable()
498 padctl_writel(padctl, value, XUSB_PADCTL_UPHY_PLL_P0_CTL5); in tegra210_pex_uphy_enable()
500 value = padctl_readl(padctl, XUSB_PADCTL_UPHY_PLL_P0_CTL1); in tegra210_pex_uphy_enable()
[all …]
H A Dxusb.c86 tegra_xusb_find_pad_node(struct tegra_xusb_padctl *padctl, const char *name) in tegra_xusb_find_pad_node() argument
90 pads = of_get_child_by_name(padctl->dev->of_node, "pads"); in tegra_xusb_find_pad_node()
160 struct tegra_xusb_padctl *padctl, in tegra_xusb_pad_init() argument
167 pad->dev.parent = padctl->dev; in tegra_xusb_pad_init()
170 pad->padctl = padctl; in tegra_xusb_pad_init()
230 list_add_tail(&lane->list, &pad->padctl->lanes); in tegra_xusb_pad_register()
265 tegra_xusb_pad_create(struct tegra_xusb_padctl *padctl, in tegra_xusb_pad_create() argument
272 np = tegra_xusb_find_pad_node(padctl, soc->name); in tegra_xusb_pad_create()
276 pad = soc->ops->probe(padctl, soc, np); in tegra_xusb_pad_create()
279 dev_err(padctl->dev, "failed to create pad %s: %d\n", in tegra_xusb_pad_create()
[all …]
H A Dxusb-tegra186.c289 to_tegra186_xusb_padctl(struct tegra_xusb_padctl *padctl) in to_tegra186_xusb_padctl() argument
291 return container_of(padctl, struct tegra186_xusb_padctl, base); in to_tegra186_xusb_padctl()
331 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra186_utmi_enable_phy_sleepwalk() local
332 struct tegra186_xusb_padctl *priv = to_tegra186_xusb_padctl(padctl); in tegra186_utmi_enable_phy_sleepwalk()
336 mutex_lock(&padctl->lock); in tegra186_utmi_enable_phy_sleepwalk()
428 if (padctl->soc->supports_lp_cfg_en) in tegra186_utmi_enable_phy_sleepwalk()
437 if (padctl->soc->supports_lp_cfg_en) in tegra186_utmi_enable_phy_sleepwalk()
472 mutex_unlock(&padctl->lock); in tegra186_utmi_enable_phy_sleepwalk()
479 struct tegra_xusb_padctl *padctl = lane->pad->padctl; in tegra186_utmi_disable_phy_sleepwalk() local
480 struct tegra186_xusb_padctl *priv = to_tegra186_xusb_padctl(padctl); in tegra186_utmi_disable_phy_sleepwalk()
[all …]
H A Dxusb-tegra124.c220 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 …]
H A Dxusb.h153 struct tegra_xusb_pad *(*probe)(struct tegra_xusb_padctl *padctl,
170 struct tegra_xusb_padctl *padctl; member
186 struct tegra_xusb_padctl *padctl,
278 struct tegra_xusb_padctl *padctl; member
310 tegra_xusb_find_port(struct tegra_xusb_padctl *padctl, const char *type,
329 tegra_xusb_find_usb2_port(struct tegra_xusb_padctl *padctl,
381 tegra_xusb_find_usb3_port(struct tegra_xusb_padctl *padctl,
402 void (*remove)(struct tegra_xusb_padctl *padctl);
404 int (*suspend_noirq)(struct tegra_xusb_padctl *padctl);
405 int (*resume_noirq)(struct tegra_xusb_padctl *padctl);
[all …]
/openbmc/u-boot/arch/arm/mach-tegra/tegra124/
H A Dxusb-padctl.c108 static int tegra_xusb_padctl_enable(struct tegra_xusb_padctl *padctl) in tegra_xusb_padctl_enable() argument
112 if (padctl->enable++ > 0) in tegra_xusb_padctl_enable()
115 value = padctl_readl(padctl, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_enable()
117 padctl_writel(padctl, value, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_enable()
121 value = padctl_readl(padctl, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_enable()
123 padctl_writel(padctl, value, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_enable()
127 value = padctl_readl(padctl, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_enable()
129 padctl_writel(padctl, value, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_enable()
134 static int tegra_xusb_padctl_disable(struct tegra_xusb_padctl *padctl) in tegra_xusb_padctl_disable() argument
138 if (padctl->enable == 0) { in tegra_xusb_padctl_disable()
[all …]
H A DMakefile14 obj-y += xusb-padctl.o
15 obj-y += ../xusb-padctl-common.o
/openbmc/u-boot/arch/arm/mach-tegra/tegra210/
H A Dxusb-padctl.c96 static int tegra_xusb_padctl_enable(struct tegra_xusb_padctl *padctl) in tegra_xusb_padctl_enable() argument
100 if (padctl->enable++ > 0) in tegra_xusb_padctl_enable()
103 value = padctl_readl(padctl, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_enable()
105 padctl_writel(padctl, value, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_enable()
109 value = padctl_readl(padctl, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_enable()
111 padctl_writel(padctl, value, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_enable()
115 value = padctl_readl(padctl, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_enable()
117 padctl_writel(padctl, value, XUSB_PADCTL_ELPG_PROGRAM); in tegra_xusb_padctl_enable()
122 static int tegra_xusb_padctl_disable(struct tegra_xusb_padctl *padctl) in tegra_xusb_padctl_disable() argument
126 if (padctl->enable == 0) { in tegra_xusb_padctl_disable()
[all …]
H A DMakefile11 obj-y += xusb-padctl.o
12 obj-y += ../xusb-padctl-common.o
/openbmc/u-boot/arch/arm/mach-tegra/
H A Dxusb-padctl-common.c52 for (i = 0; i < padctl.socdata->num_phys; i++) { in tegra_xusb_phy_get()
53 phy = &padctl.socdata->phys[i]; in tegra_xusb_phy_get()
63 tegra_xusb_padctl_find_lane(struct tegra_xusb_padctl *padctl, const char *name) in tegra_xusb_padctl_find_lane() argument
67 for (i = 0; i < padctl->socdata->num_lanes; i++) in tegra_xusb_padctl_find_lane()
68 if (strcmp(name, padctl->socdata->lanes[i].name) == 0) in tegra_xusb_padctl_find_lane()
69 return &padctl->socdata->lanes[i]; in tegra_xusb_padctl_find_lane()
75 tegra_xusb_padctl_group_parse_dt(struct tegra_xusb_padctl *padctl, in tegra_xusb_padctl_group_parse_dt() argument
115 static int tegra_xusb_padctl_find_function(struct tegra_xusb_padctl *padctl, in tegra_xusb_padctl_find_function() argument
120 for (i = 0; i < padctl->socdata->num_functions; i++) in tegra_xusb_padctl_find_function()
121 if (strcmp(name, padctl->socdata->functions[i]) == 0) in tegra_xusb_padctl_find_function()
[all …]
H A Dxusb-padctl-common.h39 struct tegra_xusb_padctl *padctl; member
85 extern struct tegra_xusb_padctl padctl;
87 static inline u32 padctl_readl(struct tegra_xusb_padctl *padctl, in padctl_readl() argument
90 return readl(padctl->regs.start + offset); in padctl_readl()
93 static inline void padctl_writel(struct tegra_xusb_padctl *padctl, in padctl_writel() argument
96 writel(value, padctl->regs.start + offset); in padctl_writel()
H A DMakefile22 obj-y += xusb-padctl-dummy.o
/openbmc/linux/include/linux/phy/tegra/
H A Dxusb.h14 void tegra_xusb_padctl_put(struct tegra_xusb_padctl *padctl);
16 int tegra_xusb_padctl_usb3_save_context(struct tegra_xusb_padctl *padctl,
18 int tegra_xusb_padctl_hsic_set_idle(struct tegra_xusb_padctl *padctl,
20 int tegra_xusb_padctl_usb3_set_lfps_detect(struct tegra_xusb_padctl *padctl,
22 int tegra_xusb_padctl_set_vbus_override(struct tegra_xusb_padctl *padctl,
27 int tegra_xusb_padctl_get_usb3_companion(struct tegra_xusb_padctl *padctl,
30 int tegra_xusb_padctl_enable_phy_sleepwalk(struct tegra_xusb_padctl *padctl, struct phy *phy,
32 int tegra_xusb_padctl_disable_phy_sleepwalk(struct tegra_xusb_padctl *padctl, struct phy *phy);
33 int tegra_xusb_padctl_enable_phy_wake(struct tegra_xusb_padctl *padctl, struct phy *phy);
34 int tegra_xusb_padctl_disable_phy_wake(struct tegra_xusb_padctl *padctl, struct phy *phy);
[all …]
/openbmc/linux/arch/arm64/boot/dts/nvidia/
H A Dtegra234-p3740-0002.dtsi72 padctl@3520000 {
168 phys = <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-0}>,
169 <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-1}>;
176 phys = <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-0}>,
177 <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-1}>,
178 <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-2}>,
179 <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-3}>,
180 <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-0}>,
181 <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-1}>,
182 <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-2}>;
H A Dtegra234-p3768-0000.dtsi41 padctl@3520000 {
119 phys = <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-0}>,
120 <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-1}>;
127 phys = <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-0}>,
128 <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-1}>,
129 <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-2}>,
130 <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-0}>,
131 <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-1}>;
H A Dtegra234-p3737-0000+p3701-0000.dts47 padctl@3520000 {
154 phys = <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-0}>,
155 <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-1}>;
162 phys = <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-0}>,
163 <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-1}>,
164 <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-2}>,
165 <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-3}>,
166 <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-0}>,
167 <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-1}>,
168 <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-2}>;
H A Dtegra210-p3450-0000.dts38 phys = <&{/padctl@7009f000/pads/pcie/lanes/pcie-1}>,
39 <&{/padctl@7009f000/pads/pcie/lanes/pcie-2}>,
40 <&{/padctl@7009f000/pads/pcie/lanes/pcie-3}>,
41 <&{/padctl@7009f000/pads/pcie/lanes/pcie-4}>;
48 phys = <&{/padctl@7009f000/pads/pcie/lanes/pcie-0}>;
439 phys = <&{/padctl@7009f000/pads/usb2/lanes/usb2-0}>,
440 <&{/padctl@7009f000/pads/usb2/lanes/usb2-1}>,
441 <&{/padctl@7009f000/pads/usb2/lanes/usb2-2}>,
442 <&{/padctl@7009f000/pads/pcie/lanes/pcie-6}>;
452 padctl@7009f000 {
H A Dtegra210-p2371-2180.dts19 phys = <&{/padctl@7009f000/pads/pcie/lanes/pcie-0}>,
20 <&{/padctl@7009f000/pads/pcie/lanes/pcie-1}>,
21 <&{/padctl@7009f000/pads/pcie/lanes/pcie-2}>,
22 <&{/padctl@7009f000/pads/pcie/lanes/pcie-3}>;
28 phys = <&{/padctl@7009f000/pads/pcie/lanes/pcie-4}>;
/openbmc/linux/Documentation/devicetree/bindings/pinctrl/
H A Dnvidia,tegra124-xusb-padctl.txt7 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 {
/openbmc/linux/drivers/usb/host/
H A Dxhci-tegra.c275 struct tegra_xusb_padctl *padctl; member
611 struct tegra_xusb_padctl *padctl = tegra->padctl; in tegra_xusb_mbox_handle() local
659 err = tegra_xusb_padctl_usb3_save_context(padctl, msg->data); in tegra_xusb_mbox_handle()
682 err = tegra_xusb_padctl_hsic_set_idle(padctl, port, in tegra_xusb_mbox_handle()
710 err = tegra_xusb_padctl_usb3_set_lfps_detect(padctl, in tegra_xusb_mbox_handle()
1363 tegra->otg_usb3_port = tegra_xusb_padctl_get_usb3_companion(tegra->padctl, in tegra_xhci_id_work()
1412 struct tegra_xusb_padctl *padctl = tegra->padctl; in is_usb3_otg_phy() local
1418 port = tegra_xusb_padctl_get_usb3_companion(padctl, i); in is_usb3_otg_phy()
1586 tegra->padctl = tegra_xusb_padctl_get(&pdev->dev); in tegra_xusb_probe()
1587 if (IS_ERR(tegra->padctl)) in tegra_xusb_probe()
[all …]
/openbmc/linux/drivers/pinctrl/starfive/
H A Dpinctrl-starfive-jh7100.c211 void __iomem *padctl; member
700 void __iomem *reg = sfp->padctl + 4 * (pin / 2); in starfive_padctl_get()
710 void __iomem *reg = sfp->padctl + 4 * (pin / 2); in starfive_padctl_rmw()
1245 sfp->padctl = devm_platform_ioremap_resource_byname(pdev, "padctl"); in starfive_probe()
1246 if (IS_ERR(sfp->padctl)) in starfive_probe()
1247 return PTR_ERR(sfp->padctl); in starfive_probe()
1286 writel(value, sfp->padctl + IO_PADSHARE_SEL); in starfive_probe()
1289 value = readl(sfp->padctl + IO_PADSHARE_SEL); in starfive_probe()
/openbmc/linux/arch/arm/boot/dts/nvidia/
H A Dtegra124-nyan.dtsi405 phys = <&{/padctl@7009f000/pads/usb2/lanes/usb2-0}>, /* 1st USB A */
406 <&{/padctl@7009f000/pads/usb2/lanes/usb2-1}>, /* Internal USB */
407 <&{/padctl@7009f000/pads/usb2/lanes/usb2-2}>, /* 2nd USB A */
408 <&{/padctl@7009f000/pads/pcie/lanes/pcie-0}>, /* 1st USB A */
409 <&{/padctl@7009f000/pads/pcie/lanes/pcie-1}>; /* 2nd USB A */
424 padctl@7009f000 {
/openbmc/u-boot/arch/arm/dts/
H A Dtegra124.dtsi53 phys = <&padctl TEGRA_XUSB_PADCTL_PCIE>;
624 phys = <&padctl TEGRA_XUSB_PADCTL_SATA>;
674 nvidia,xusb-padctl = <&padctl>;
679 padctl: padctl@7009f000 { label
680 compatible = "nvidia,tegra124-xusb-padctl";
683 reset-names = "padctl";
/openbmc/linux/Documentation/devicetree/bindings/pci/
H A Dnvidia,tegra20-pcie.txt452 phys = <&{/padctl@7009f000/pads/pcie/lanes/pcie-4}>;
459 phys = <&{/padctl@7009f000/pads/pcie/lanes/pcie-2}>;
546 phys = <&{/padctl@7009f000/pads/pcie/lanes/pcie-0}>,
547 <&{/padctl@7009f000/pads/pcie/lanes/pcie-1}>,
548 <&{/padctl@7009f000/pads/pcie/lanes/pcie-2}>,
549 <&{/padctl@7009f000/pads/pcie/lanes/pcie-3}>;
555 phys = <&{/padctl@7009f000/pads/pcie/lanes/pcie-4}>;

123