/linux-6.3-rc2/drivers/firmware/tegra/ |
A D | bpmp.c | 37 struct tegra_bpmp *bpmp = channel->bpmp; in channel_to_ops() local 59 if (!bpmp) { in tegra_bpmp_get() 73 if (bpmp) in tegra_bpmp_put() 81 struct tegra_bpmp *bpmp = channel->bpmp; in tegra_bpmp_channel_get_thread_index() local 195 return bpmp->soc->ops->ring_doorbell(bpmp); in tegra_bpmp_ring_doorbell() 218 struct tegra_bpmp *bpmp = channel->bpmp; in tegra_bpmp_channel_read() local 404 struct tegra_bpmp *bpmp = channel->bpmp; in tegra_bpmp_mrq_return() local 738 err = bpmp->soc->ops->init(bpmp); in tegra_bpmp_probe() 792 tegra_bpmp_free_mrq(bpmp, MRQ_PING, bpmp); in tegra_bpmp_probe() 795 bpmp->soc->ops->deinit(bpmp); in tegra_bpmp_probe() [all …]
|
A D | bpmp-tegra186.c | 93 struct tegra_bpmp *bpmp = data; in tegra186_bpmp_ivc_notify() local 103 struct tegra_bpmp *bpmp, in tegra186_bpmp_channel_init() argument 126 bpmp); in tegra186_bpmp_channel_init() 134 channel->bpmp = bpmp; in tegra186_bpmp_channel_init() 158 tegra_bpmp_handle_rx(bpmp); in mbox_handle_rx() 171 bpmp->priv = priv; in tegra186_bpmp_init() 172 priv->parent = bpmp; in tegra186_bpmp_init() 200 err = tegra186_bpmp_channel_init(bpmp->tx_channel, bpmp, in tegra186_bpmp_init() 205 err = tegra186_bpmp_channel_init(bpmp->rx_channel, bpmp, in tegra186_bpmp_init() 214 bpmp, index); in tegra186_bpmp_init() [all …]
|
A D | bpmp-tegra210.c | 39 struct tegra210_bpmp *priv = bpmp->priv; in bpmp_channel_status() 113 struct tegra210_bpmp *priv = bpmp->priv; in tegra210_bpmp_ring_doorbell() 128 struct tegra_bpmp *bpmp = data; in rx_irq() local 130 tegra_bpmp_handle_rx(bpmp); in rx_irq() 136 struct tegra_bpmp *bpmp, in tegra210_bpmp_channel_init() argument 139 struct tegra210_bpmp *priv = bpmp->priv; in tegra210_bpmp_channel_init() 157 channel->bpmp = bpmp; in tegra210_bpmp_channel_init() 173 bpmp->priv = priv; in tegra210_bpmp_init() 183 err = tegra210_bpmp_channel_init(bpmp->tx_channel, bpmp, in tegra210_bpmp_init() 188 err = tegra210_bpmp_channel_init(bpmp->rx_channel, bpmp, in tegra210_bpmp_init() [all …]
|
A D | Makefile | 2 tegra-bpmp-y = bpmp.o 3 tegra-bpmp-$(CONFIG_ARCH_TEGRA_210_SOC) += bpmp-tegra210.o 4 tegra-bpmp-$(CONFIG_ARCH_TEGRA_186_SOC) += bpmp-tegra186.o 5 tegra-bpmp-$(CONFIG_ARCH_TEGRA_194_SOC) += bpmp-tegra186.o 6 tegra-bpmp-$(CONFIG_ARCH_TEGRA_234_SOC) += bpmp-tegra186.o 7 tegra-bpmp-$(CONFIG_DEBUG_FS) += bpmp-debugfs.o 8 obj-$(CONFIG_TEGRA_BPMP) += tegra-bpmp.o
|
A D | bpmp-debugfs.c | 134 err = tegra_bpmp_transfer(bpmp, &msg); in mrq_debug_open() 168 err = tegra_bpmp_transfer(bpmp, &msg); in mrq_debug_close() 212 err = tegra_bpmp_transfer(bpmp, &msg); in mrq_debug_read() 234 err = mrq_debug_close(bpmp, fd); in mrq_debug_read() 293 err = mrq_debug_close(bpmp, fd); in mrq_debug_write() 356 err = mrq_debug_close(bpmp, fd); in bpmp_debug_show() 412 if (!bpmp || !parent || !ppath) in bpmp_populate_debugfs_inband() 728 parent, bpmp, in bpmp_populate_dir() 761 err = bpmp_populate_dir(bpmp, &seqbuf, bpmp->debugfs_mirror, 0); in bpmp_populate_debugfs_shmem() 784 if (IS_ERR(bpmp->debugfs_mirror)) { in tegra_bpmp_init_debugfs() [all …]
|
A D | bpmp-private.h | 12 int (*init)(struct tegra_bpmp *bpmp); 13 void (*deinit)(struct tegra_bpmp *bpmp); 22 int (*ring_doorbell)(struct tegra_bpmp *bpmp); 23 int (*resume)(struct tegra_bpmp *bpmp);
|
/linux-6.3-rc2/drivers/soc/tegra/ |
A D | powergate-bpmp.c | 21 struct tegra_bpmp *bpmp; member 48 err = tegra_bpmp_transfer(bpmp, &msg); in tegra_bpmp_powergate_set_state() 78 err = tegra_bpmp_transfer(bpmp, &msg); in tegra_bpmp_powergate_get_state() 106 err = tegra_bpmp_transfer(bpmp, &msg); in tegra_bpmp_powergate_get_max_id() 136 err = tegra_bpmp_transfer(bpmp, &msg); in tegra_bpmp_powergate_get_name() 152 struct tegra_bpmp *bpmp = powergate->bpmp; in tegra_powergate_power_on() local 161 struct tegra_bpmp *bpmp = powergate->bpmp; in tegra_powergate_power_off() local 182 powergate->bpmp = bpmp; in tegra_powergate_add() 200 struct tegra_bpmp *bpmp = powergate->bpmp; in tegra_powergate_remove() local 331 struct device *dev = bpmp->dev; in tegra_bpmp_init_powergates() [all …]
|
/linux-6.3-rc2/arch/arm64/boot/dts/nvidia/ |
A D | tegra186.dtsi | 56 <&bpmp TEGRA186_CLK_EQOS_AXI>, 57 <&bpmp TEGRA186_CLK_EQOS_RX>, 58 <&bpmp TEGRA186_CLK_EQOS_TX>, 587 nvidia,bpmp = <&bpmp>; 1336 nvidia,bpmp = <&bpmp>; 1368 <&bpmp TEGRA186_CLK_AFI>, 1874 <&bpmp TEGRA186_CLK_GPU>; 1898 label = "cpu-bpmp-tx"; 1904 label = "cpu-bpmp-rx"; 1909 bpmp: bpmp { label [all …]
|
A D | tegra194.dtsi | 722 nvidia,bpmp = <&bpmp>; 2392 nvidia,bpmp = <&bpmp 1>; 2444 nvidia,bpmp = <&bpmp 2>; 2496 nvidia,bpmp = <&bpmp 3>; 2548 nvidia,bpmp = <&bpmp 4>; 2593 nvidia,bpmp = <&bpmp 4>; 2639 nvidia,bpmp = <&bpmp 0>; 2684 nvidia,bpmp = <&bpmp 0>; 2729 nvidia,bpmp = <&bpmp 5>; 2853 bpmp: bpmp { label [all …]
|
A D | tegra234.dtsi | 670 nvidia,bpmp = <&bpmp>; 1806 nvidia,bpmp = <&bpmp>; 2244 nvidia,bpmp = <&bpmp 8>; 2298 nvidia,bpmp = <&bpmp 9>; 2444 nvidia,bpmp = <&bpmp 1>; 2498 nvidia,bpmp = <&bpmp 2>; 2552 nvidia,bpmp = <&bpmp 3>; 2606 nvidia,bpmp = <&bpmp 4>; 2660 nvidia,bpmp = <&bpmp 0>; 2714 nvidia,bpmp = <&bpmp 5>; [all …]
|
/linux-6.3-rc2/include/soc/tegra/ |
A D | bpmp.h | 53 struct tegra_bpmp *bpmp; member 124 void tegra_bpmp_put(struct tegra_bpmp *bpmp); 125 int tegra_bpmp_transfer_atomic(struct tegra_bpmp *bpmp, 127 int tegra_bpmp_transfer(struct tegra_bpmp *bpmp, 142 static inline void tegra_bpmp_put(struct tegra_bpmp *bpmp) in tegra_bpmp_put() argument 150 static inline int tegra_bpmp_transfer(struct tegra_bpmp *bpmp, in tegra_bpmp_transfer() argument 180 void tegra_bpmp_handle_rx(struct tegra_bpmp *bpmp); 183 int tegra_bpmp_init_clocks(struct tegra_bpmp *bpmp); 192 int tegra_bpmp_init_resets(struct tegra_bpmp *bpmp); 201 int tegra_bpmp_init_powergates(struct tegra_bpmp *bpmp); [all …]
|
/linux-6.3-rc2/drivers/clk/tegra/ |
A D | clk-bpmp.c | 31 struct tegra_bpmp *bpmp; member 448 dev_err(bpmp->dev, in tegra_bpmp_probe_clocks() 517 clk->bpmp = bpmp; in tegra_bpmp_clk_register() 532 dev_WARN(bpmp->dev, in tegra_bpmp_clk_register() 601 if (bpmp->clocks[i]) { in tegra_bpmp_register_clocks_one() 617 dev_err(bpmp->dev, in tegra_bpmp_register_clocks_one() 626 bpmp->clocks[i] = clk; in tegra_bpmp_register_clocks_one() 635 bpmp->num_clocks = count; in tegra_bpmp_register_clocks() 637 bpmp->clocks = devm_kcalloc(bpmp->dev, count, sizeof(struct tegra_bpmp_clk), GFP_KERNEL); in tegra_bpmp_register_clocks() 638 if (!bpmp->clocks) in tegra_bpmp_register_clocks() [all …]
|
/linux-6.3-rc2/Documentation/devicetree/bindings/display/tegra/ |
A D | nvidia,tegra186-display.yaml | 128 resets = <&bpmp TEGRA186_RESET_NVDISPLAY0_MISC>, 129 <&bpmp TEGRA186_RESET_NVDISPLAY0_WGRP0>, 130 <&bpmp TEGRA186_RESET_NVDISPLAY0_WGRP1>, 137 clocks = <&bpmp TEGRA186_CLK_NVDISPLAY_DISP>, 138 <&bpmp TEGRA186_CLK_NVDISPLAY_DSC>, 139 <&bpmp TEGRA186_CLK_NVDISPLAYHUB>; 153 clocks = <&bpmp TEGRA186_CLK_NVDISPLAY_P0>; 172 clocks = <&bpmp TEGRA186_CLK_NVDISPLAY_P1>; 191 clocks = <&bpmp TEGRA186_CLK_NVDISPLAY_P2>; 226 clocks = <&bpmp TEGRA194_CLK_NVDISPLAY_DISP>, [all …]
|
/linux-6.3-rc2/drivers/reset/tegra/ |
A D | reset-bpmp.c | 20 struct tegra_bpmp *bpmp = to_tegra_bpmp(rstc); in tegra_bpmp_reset_common() local 34 err = tegra_bpmp_transfer(bpmp, &msg); in tegra_bpmp_reset_common() 67 int tegra_bpmp_init_resets(struct tegra_bpmp *bpmp) in tegra_bpmp_init_resets() argument 69 bpmp->rstc.ops = &tegra_bpmp_reset_ops; in tegra_bpmp_init_resets() 70 bpmp->rstc.owner = THIS_MODULE; in tegra_bpmp_init_resets() 71 bpmp->rstc.of_node = bpmp->dev->of_node; in tegra_bpmp_init_resets() 72 bpmp->rstc.nr_resets = bpmp->soc->num_resets; in tegra_bpmp_init_resets() 74 return devm_reset_controller_register(bpmp->dev, &bpmp->rstc); in tegra_bpmp_init_resets()
|
/linux-6.3-rc2/Documentation/devicetree/bindings/net/ |
A D | nvidia,tegra234-mgbe.yaml | 124 clocks = <&bpmp TEGRA234_CLK_MGBE0_APP>, 125 <&bpmp TEGRA234_CLK_MGBE0_MAC>, 127 <&bpmp TEGRA234_CLK_MGBE0_PTP_REF>, 129 <&bpmp TEGRA234_CLK_MGBE0_RX_INPUT>, 130 <&bpmp TEGRA234_CLK_MGBE0_TX>, 131 <&bpmp TEGRA234_CLK_MGBE0_EEE_PCS>, 133 <&bpmp TEGRA234_CLK_MGBE0_RX_PCS_M>, 134 <&bpmp TEGRA234_CLK_MGBE0_RX_PCS>, 135 <&bpmp TEGRA234_CLK_MGBE0_TX_PCS>; 139 resets = <&bpmp TEGRA234_RESET_MGBE0_MAC>, [all …]
|
/linux-6.3-rc2/Documentation/devicetree/bindings/usb/ |
A D | nvidia,tegra234-xusb.yaml | 133 clocks = <&bpmp TEGRA234_CLK_XUSB_CORE_HOST>, 134 <&bpmp TEGRA234_CLK_XUSB_FALCON>, 135 <&bpmp TEGRA234_CLK_XUSB_CORE_SS>, 136 <&bpmp TEGRA234_CLK_XUSB_SS>, 137 <&bpmp TEGRA234_CLK_CLK_M>, 138 <&bpmp TEGRA234_CLK_XUSB_FS>, 139 <&bpmp TEGRA234_CLK_UTMIP_PLL>, 140 <&bpmp TEGRA234_CLK_CLK_M>, 141 <&bpmp TEGRA234_CLK_PLLE>; 151 power-domains = <&bpmp TEGRA234_POWER_DOMAIN_XUSBC>, [all …]
|
A D | nvidia,tegra186-xusb.yaml | 145 clocks = <&bpmp TEGRA186_CLK_XUSB_HOST>, 146 <&bpmp TEGRA186_CLK_XUSB_FALCON>, 147 <&bpmp TEGRA186_CLK_XUSB_SS>, 148 <&bpmp TEGRA186_CLK_XUSB_CORE_SS>, 149 <&bpmp TEGRA186_CLK_CLK_M>, 150 <&bpmp TEGRA186_CLK_XUSB_FS>, 151 <&bpmp TEGRA186_CLK_PLLU>, 152 <&bpmp TEGRA186_CLK_CLK_M>, 153 <&bpmp TEGRA186_CLK_PLLE>; 157 power-domains = <&bpmp TEGRA186_POWER_DOMAIN_XUSBC>, [all …]
|
A D | nvidia,tegra194-xusb.yaml | 148 clocks = <&bpmp TEGRA194_CLK_XUSB_CORE_HOST>, 149 <&bpmp TEGRA194_CLK_XUSB_FALCON>, 150 <&bpmp TEGRA194_CLK_XUSB_CORE_SS>, 151 <&bpmp TEGRA194_CLK_XUSB_SS>, 152 <&bpmp TEGRA194_CLK_CLK_M>, 153 <&bpmp TEGRA194_CLK_XUSB_FS>, 154 <&bpmp TEGRA194_CLK_UTMIPLL>, 155 <&bpmp TEGRA194_CLK_CLK_M>, 156 <&bpmp TEGRA194_CLK_PLLE>; 166 power-domains = <&bpmp TEGRA194_POWER_DOMAIN_XUSBC>, [all …]
|
/linux-6.3-rc2/drivers/thermal/tegra/ |
A D | tegra-bpmp-thermal.c | 28 struct tegra_bpmp *bpmp; member 52 err = tegra_bpmp_transfer(zone->tegra->bpmp, &msg); in __tegra_bpmp_thermal_get_temp() 87 err = tegra_bpmp_transfer(zone->tegra->bpmp, &msg); in tegra_bpmp_thermal_set_trips() 137 static int tegra_bpmp_thermal_get_num_zones(struct tegra_bpmp *bpmp, in tegra_bpmp_thermal_get_num_zones() argument 155 err = tegra_bpmp_transfer(bpmp, &msg); in tegra_bpmp_thermal_get_num_zones() 173 struct tegra_bpmp *bpmp = dev_get_drvdata(pdev->dev.parent); in tegra_bpmp_thermal_probe() local 184 tegra->bpmp = bpmp; in tegra_bpmp_thermal_probe() 186 err = tegra_bpmp_thermal_get_num_zones(bpmp, &max_num_zones); in tegra_bpmp_thermal_probe() 231 err = tegra_bpmp_request_mrq(bpmp, MRQ_THERMAL, bpmp_mrq_thermal, in tegra_bpmp_thermal_probe() 248 tegra_bpmp_free_mrq(tegra->bpmp, MRQ_THERMAL, tegra); in tegra_bpmp_thermal_remove()
|
/linux-6.3-rc2/drivers/cpufreq/ |
A D | tegra186-cpufreq.c | 130 struct platform_device *pdev, struct tegra_bpmp *bpmp, in init_vhint_table() argument 141 virt = dma_alloc_coherent(bpmp->dev, sizeof(*data), &phys, in init_vhint_table() 157 err = tegra_bpmp_transfer(bpmp, &msg); in init_vhint_table() 213 dma_free_coherent(bpmp->dev, sizeof(*data), virt, phys); in init_vhint_table() 221 struct tegra_bpmp *bpmp; in tegra186_cpufreq_probe() local 232 bpmp = tegra_bpmp_get(&pdev->dev); in tegra186_cpufreq_probe() 233 if (IS_ERR(bpmp)) in tegra186_cpufreq_probe() 234 return PTR_ERR(bpmp); in tegra186_cpufreq_probe() 245 cluster->table = init_vhint_table(pdev, bpmp, cluster, i); in tegra186_cpufreq_probe() 257 tegra_bpmp_put(bpmp); in tegra186_cpufreq_probe()
|
/linux-6.3-rc2/Documentation/devicetree/bindings/gpu/ |
A D | nvidia,gk20a.txt | 87 clocks = <&bpmp TEGRA186_CLK_GPCCLK>, 88 <&bpmp TEGRA186_CLK_GPU>; 90 resets = <&bpmp TEGRA186_RESET_GPU>; 92 power-domains = <&bpmp TEGRA186_POWER_DOMAIN_GPU>; 105 clocks = <&bpmp TEGRA194_CLK_GPCCLK>, 106 <&bpmp TEGRA194_CLK_GPU_PWR>, 107 <&bpmp TEGRA194_CLK_FUSE>; 109 resets = <&bpmp TEGRA194_RESET_GPU>; 113 power-domains = <&bpmp TEGRA194_POWER_DOMAIN_GPU>;
|
/linux-6.3-rc2/Documentation/devicetree/bindings/firmware/ |
A D | nvidia,tegra186-bpmp.yaml | 68 - nvidia,tegra194-bpmp 69 - nvidia,tegra234-bpmp 70 - const: nvidia,tegra186-bpmp 71 - const: nvidia,tegra186-bpmp 149 label = "cpu-bpmp-tx"; 155 label = "cpu-bpmp-rx"; 160 bpmp { 161 compatible = "nvidia,tegra186-bpmp"; 176 compatible = "nvidia,tegra186-bpmp-i2c"; 177 nvidia,bpmp-bus-id = <5>; [all …]
|
/linux-6.3-rc2/Documentation/devicetree/bindings/i2c/ |
A D | nvidia,tegra186-bpmp-i2c.yaml | 4 $id: http://devicetree.org/schemas/i2c/nvidia,tegra186-bpmp-i2c.yaml# 21 See ../firmware/nvidia,tegra186-bpmp.yaml for details of the BPMP 29 const: nvidia,tegra186-bpmp-i2c 31 nvidia,bpmp-bus-id: 45 - nvidia,bpmp-bus-id
|
/linux-6.3-rc2/Documentation/devicetree/bindings/pci/ |
A D | nvidia,tegra194-pcie-ep.yaml | 116 nvidia,bpmp: 204 - nvidia,bpmp 229 clocks = <&bpmp TEGRA194_CLK_PEX1_CORE_5>; 232 resets = <&bpmp TEGRA194_RESET_PEX1_CORE_5_APB>, 233 <&bpmp TEGRA194_RESET_PEX1_CORE_5>; 236 power-domains = <&bpmp TEGRA194_POWER_DOMAIN_PCIEX8A>; 240 nvidia,bpmp = <&bpmp 5>; 288 clocks = <&bpmp TEGRA234_CLK_PEX1_C5_CORE>; 291 resets = <&bpmp TEGRA234_RESET_PEX1_CORE_5_APB>, 292 <&bpmp TEGRA234_RESET_PEX1_CORE_5>; [all …]
|
/linux-6.3-rc2/Documentation/devicetree/bindings/arm/tegra/ |
A D | nvidia,tegra-ccplex-cluster.yaml | 31 nvidia,bpmp: 42 - nvidia,bpmp 49 nvidia,bpmp = <&bpmp>;
|