* [PATCH 1/1] dt-bindings: pci: change reset to reset controller phandle
@ 2024-11-12 7:27 Jenishkumar Maheshbhai Patel
2024-11-12 14:35 ` Rob Herring
0 siblings, 1 reply; 2+ messages in thread
From: Jenishkumar Maheshbhai Patel @ 2024-11-12 7:27 UTC (permalink / raw)
To: thomas.petazzoni, lpieralisi, kw, manivannan.sadhasivam, robh,
bhelgaas, krzk+dt, conor+dt, linux-pci, linux-arm-kernel,
devicetree, linux-kernel
Cc: salee, dingwei, Jenishkumar Maheshbhai Patel
replace reset bit mask and system controller
with reset controller and reset bit phandle
Signed-off-by: Jenishkumar Maheshbhai Patel <jpatel2@marvell.com>
---
Documentation/devicetree/bindings/pci/pci-armada8k.txt | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/Documentation/devicetree/bindings/pci/pci-armada8k.txt b/Documentation/devicetree/bindings/pci/pci-armada8k.txt
index a177b971a9a0..a9a71d77b261 100644
--- a/Documentation/devicetree/bindings/pci/pci-armada8k.txt
+++ b/Documentation/devicetree/bindings/pci/pci-armada8k.txt
@@ -24,10 +24,9 @@ Optional properties:
- phy-names: names of the PHYs corresponding to the number of lanes.
Must be "cp0-pcie0-x4-lane0-phy", "cp0-pcie0-x4-lane1-phy" for
2 PHYs.
-- marvell,system-controller: address of system controller needed
- in order to reset MAC used by link-down handle
-- marvell,mac-reset-bit-mask: MAC reset bit of system controller
- needed in order to reset MAC used by link-down handle
+- resets: phandle reset controller with int reset controller bit.
+ needed in order to reset MAC used by link-down handle.
+
Example:
@@ -49,6 +48,5 @@ Example:
interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
num-lanes = <1>;
clocks = <&cpm_syscon0 1 13>;
- marvell,system-controller = <&CP11X_LABEL(syscon0)>;
- marvell,mac-reset-bit-mask = <CP11X_PCIEx_MAC_RESET_BIT_MASK(1)>;
+ resets = <&CP11X_LABEL(pcie_mac_reset) CP11X_PCIEx_MAC_RESET_BIT(0)>;
};
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] dt-bindings: pci: change reset to reset controller phandle
2024-11-12 7:27 [PATCH 1/1] dt-bindings: pci: change reset to reset controller phandle Jenishkumar Maheshbhai Patel
@ 2024-11-12 14:35 ` Rob Herring
0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2024-11-12 14:35 UTC (permalink / raw)
To: Jenishkumar Maheshbhai Patel
Cc: thomas.petazzoni, lpieralisi, kw, manivannan.sadhasivam, bhelgaas,
krzk+dt, conor+dt, linux-pci, linux-arm-kernel, devicetree,
linux-kernel, salee, dingwei
On Tue, Nov 12, 2024 at 1:27 AM Jenishkumar Maheshbhai Patel
<jpatel2@marvell.com> wrote:
>
> replace reset bit mask and system controller
> with reset controller and reset bit phandle
The diff tells us "what" already. The commit msg needs to answer "why".
The DT is an ABI. You can't just replace property(ies) with a new
property. There's exceptions if there are no platforms in use or
similar.
This binding needs to be converted to dtschema before adding to it.
>
> Signed-off-by: Jenishkumar Maheshbhai Patel <jpatel2@marvell.com>
> ---
> Documentation/devicetree/bindings/pci/pci-armada8k.txt | 10 ++++------
> 1 file changed, 4 insertions(+), 6 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/pci/pci-armada8k.txt b/Documentation/devicetree/bindings/pci/pci-armada8k.txt
> index a177b971a9a0..a9a71d77b261 100644
> --- a/Documentation/devicetree/bindings/pci/pci-armada8k.txt
> +++ b/Documentation/devicetree/bindings/pci/pci-armada8k.txt
> @@ -24,10 +24,9 @@ Optional properties:
> - phy-names: names of the PHYs corresponding to the number of lanes.
> Must be "cp0-pcie0-x4-lane0-phy", "cp0-pcie0-x4-lane1-phy" for
> 2 PHYs.
> -- marvell,system-controller: address of system controller needed
> - in order to reset MAC used by link-down handle
> -- marvell,mac-reset-bit-mask: MAC reset bit of system controller
> - needed in order to reset MAC used by link-down handle
> +- resets: phandle reset controller with int reset controller bit.
> + needed in order to reset MAC used by link-down handle.
> +
>
> Example:
>
> @@ -49,6 +48,5 @@ Example:
> interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
> num-lanes = <1>;
> clocks = <&cpm_syscon0 1 13>;
> - marvell,system-controller = <&CP11X_LABEL(syscon0)>;
> - marvell,mac-reset-bit-mask = <CP11X_PCIEx_MAC_RESET_BIT_MASK(1)>;
> + resets = <&CP11X_LABEL(pcie_mac_reset) CP11X_PCIEx_MAC_RESET_BIT(0)>;
> };
> --
> 2.25.1
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-11-12 14:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-12 7:27 [PATCH 1/1] dt-bindings: pci: change reset to reset controller phandle Jenishkumar Maheshbhai Patel
2024-11-12 14:35 ` Rob Herring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox