Compare
c5c95dbdc9011a56359df4dc00be829bbcc0b036..2fabd2f406d0cf787be47b3bbeea99b30004033d
ARM: dts: ti/omap: dra7: fix PCIe PHY clock divider definition
Commit d0bdd8bb7f35 ("ARM: dts: ti/omap: dra7: fix redundant
clock divider definition") removes the clock divider definition
from optfclk_pciephy_div, reasoning that the table is redundant,
as it contains the values 1 and 2, while also setting ti,max-div
to 2 while ti,min-div is implicitly initialized to 1.
What that commit missed was the fact that the values in the table
are in reverse order, i.e. first 2, then 1.
As is clearly described in the documentation, the ordering is
signifficant, the actual values for the register setting are
derived from the index. If no table is specified, the driver
assumes that the register value is divider - 1 (see also `_get_val`
in `drivers/clk/ti/divider.c`).
What is in fact redundant is the value of ti,max-div that is
derived from the table if none is specified. To satisfy device
tree semantic linters, it is removed instead.
Fixes: d0bdd8bb7f35 ("ARM: dts: ti/omap: dra7: fix redundant clock divider definition")
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Link: https://patch.msgid.link/20260716113947.92513-1-david.oberhollenzer@sigma-star.at
Signed-off-by: Kevin Hilman (TI) <khilman@baylibre.com>
David Oberhollenzer <david.oberhollenzer@sigma-star.at> · 2026-07-16 11:39 UTC · committed by Kevin Hilman (TI)
3 files changed,
+2
−3
- arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi
- drivers/soc/tegra/fuse/tegra-apbmisc.c
- drivers/soc/tegra/pmc.c
modified arch/arm/boot/dts/ti/omap/dra7xx-clocks.dtsi
| @@ -1376,8 +1376,8 @@ | |||
| 1376 | 1376 | clocks = <&apll_pcie_ck>; | |
| 1377 | 1377 | #clock-cells = <0>; | |
| 1378 | 1378 | reg = <0x021c>; | |
| 1379 | + | ti,dividers = <2>, <1>; | |
| 1379 | 1380 | ti,bit-shift = <8>; | |
| 1380 | - | ti,max-div = <2>; | |
| 1381 | 1381 | }; | |
| 1382 | 1382 | ||
| 1383 | 1383 | apll_pcie_clkvcoldo: clock-apll-pcie-clkvcoldo { | |
modified drivers/soc/tegra/fuse/tegra-apbmisc.c
| @@ -309,7 +309,7 @@ void tegra_acpi_init_apbmisc(void) | |||
| 309 | 309 | ||
| 310 | 310 | ret = acpi_dev_get_memory_resources(adev, &resource_list); | |
| 311 | 311 | if (ret < 0) { | |
| 312 | - | pr_err("failed to get APBMISC memory resources\n"); | |
| 312 | + | pr_err("failed to get APBMISC memory resources"); | |
| 313 | 313 | goto out_put_acpi_dev; | |
| 314 | 314 | } | |
| 315 | 315 | ||
modified drivers/soc/tegra/pmc.c
| @@ -3151,7 +3151,6 @@ static int tegra_pmc_probe(struct platform_device *pdev) | |||
| 3151 | 3151 | ||
| 3152 | 3152 | #if defined(CONFIG_ARM) | |
| 3153 | 3153 | mutex_lock(&early_pmc->powergates_lock); | |
| 3154 | - | early_pmc->rate = pmc->rate; | |
| 3155 | 3154 | iounmap(early_pmc->base); | |
| 3156 | 3155 | early_pmc->base = pmc->base; | |
| 3157 | 3156 | mutex_unlock(&early_pmc->powergates_lock); | |