* [PATCH v2] arm64: dts: ti: k3-am642-evm-pcie0-ep: Add boot phase tag to "pcie0_ep"
@ 2025-06-10 5:49 Hrushikesh Salunke
2025-06-10 5:51 ` Siddharth Vadapalli
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Hrushikesh Salunke @ 2025-06-10 5:49 UTC (permalink / raw)
To: nm, vigneshr, kristo, robh, krzk+dt, conor+dt
Cc: s-vadapalli, linux-arm-kernel, devicetree, linux-kernel,
h-salunke, danishanwar
AM64X SoC has one instance of PCIe which is PCIe0. To support PCIe boot
on AM64X SoC, PCIe0 needs to be in endpoint mode and it needs to be
functional at all stages of PCIe boot process. Thus add the
"bootph-all" boot phase tag to "pcie0_ep" device tree node.
Signed-off-by: Hrushikesh Salunke <h-salunke@ti.com>
---
This patch is based on commit
475c850a7fdd Add linux-next specific files for 20250606
Changes since v1
As per feedback from Nishanth, changed the position of "bootph-all"
tag, according to ordering rules for device tree properties.
v1 : https://lore.kernel.org/all/20250609115930.w2s6jzg7xii55dlu@speckled/
arch/arm64/boot/dts/ti/k3-am642-evm-pcie0-ep.dtso | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/boot/dts/ti/k3-am642-evm-pcie0-ep.dtso b/arch/arm64/boot/dts/ti/k3-am642-evm-pcie0-ep.dtso
index 432751774853..a7e8d4ea98ac 100644
--- a/arch/arm64/boot/dts/ti/k3-am642-evm-pcie0-ep.dtso
+++ b/arch/arm64/boot/dts/ti/k3-am642-evm-pcie0-ep.dtso
@@ -46,6 +46,7 @@ pcie0_ep: pcie-ep@f102000 {
max-functions = /bits/ 8 <1>;
phys = <&serdes0_pcie_link>;
phy-names = "pcie-phy";
+ bootph-all;
ti,syscon-pcie-ctrl = <&pcie0_ctrl 0x0>;
};
};
--
2.34.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH v2] arm64: dts: ti: k3-am642-evm-pcie0-ep: Add boot phase tag to "pcie0_ep"
2025-06-10 5:49 [PATCH v2] arm64: dts: ti: k3-am642-evm-pcie0-ep: Add boot phase tag to "pcie0_ep" Hrushikesh Salunke
@ 2025-06-10 5:51 ` Siddharth Vadapalli
2025-06-11 8:44 ` Vignesh Raghavendra
2025-06-26 4:03 ` Vignesh Raghavendra
2 siblings, 0 replies; 8+ messages in thread
From: Siddharth Vadapalli @ 2025-06-10 5:51 UTC (permalink / raw)
To: Hrushikesh Salunke
Cc: nm, vigneshr, kristo, robh, krzk+dt, conor+dt, s-vadapalli,
linux-arm-kernel, devicetree, linux-kernel, danishanwar
On Tue, Jun 10, 2025 at 11:19:20AM +0530, Hrushikesh Salunke wrote:
> AM64X SoC has one instance of PCIe which is PCIe0. To support PCIe boot
> on AM64X SoC, PCIe0 needs to be in endpoint mode and it needs to be
> functional at all stages of PCIe boot process. Thus add the
> "bootph-all" boot phase tag to "pcie0_ep" device tree node.
>
> Signed-off-by: Hrushikesh Salunke <h-salunke@ti.com>
Reviewed-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Regards,
Siddharth.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2] arm64: dts: ti: k3-am642-evm-pcie0-ep: Add boot phase tag to "pcie0_ep"
2025-06-10 5:49 [PATCH v2] arm64: dts: ti: k3-am642-evm-pcie0-ep: Add boot phase tag to "pcie0_ep" Hrushikesh Salunke
2025-06-10 5:51 ` Siddharth Vadapalli
@ 2025-06-11 8:44 ` Vignesh Raghavendra
2025-06-11 8:47 ` Hrushikesh Salunke
2025-06-26 4:03 ` Vignesh Raghavendra
2 siblings, 1 reply; 8+ messages in thread
From: Vignesh Raghavendra @ 2025-06-11 8:44 UTC (permalink / raw)
To: Hrushikesh Salunke, nm, kristo, robh, krzk+dt, conor+dt
Cc: s-vadapalli, linux-arm-kernel, devicetree, linux-kernel,
danishanwar
On 10/06/25 11:19, Hrushikesh Salunke wrote:
> AM64X SoC has one instance of PCIe which is PCIe0. To support PCIe boot
> on AM64X SoC, PCIe0 needs to be in endpoint mode and it needs to be
> functional at all stages of PCIe boot process. Thus add the
> "bootph-all" boot phase tag to "pcie0_ep" device tree node.
>
> Signed-off-by: Hrushikesh Salunke <h-salunke@ti.com>
> ---
> This patch is based on commit
> 475c850a7fdd Add linux-next specific files for 20250606
>
> Changes since v1
> As per feedback from Nishanth, changed the position of "bootph-all"
> tag, according to ordering rules for device tree properties.
>
> v1 : https://lore.kernel.org/all/20250609115930.w2s6jzg7xii55dlu@speckled/
>
> arch/arm64/boot/dts/ti/k3-am642-evm-pcie0-ep.dtso | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm64/boot/dts/ti/k3-am642-evm-pcie0-ep.dtso b/arch/arm64/boot/dts/ti/k3-am642-evm-pcie0-ep.dtso
> index 432751774853..a7e8d4ea98ac 100644
> --- a/arch/arm64/boot/dts/ti/k3-am642-evm-pcie0-ep.dtso
> +++ b/arch/arm64/boot/dts/ti/k3-am642-evm-pcie0-ep.dtso
> @@ -46,6 +46,7 @@ pcie0_ep: pcie-ep@f102000 {
> max-functions = /bits/ 8 <1>;
> phys = <&serdes0_pcie_link>;
> phy-names = "pcie-phy";
> + bootph-all;
> ti,syscon-pcie-ctrl = <&pcie0_ctrl 0x0>;
> };
> };
Are the patches for PCIe boot support merged to U-Boot or such other
bootloader repo?
--
Regards
Vignesh
https://ti.com/opensource
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2] arm64: dts: ti: k3-am642-evm-pcie0-ep: Add boot phase tag to "pcie0_ep"
2025-06-11 8:44 ` Vignesh Raghavendra
@ 2025-06-11 8:47 ` Hrushikesh Salunke
2025-06-12 10:16 ` Hrushikesh Salunke
0 siblings, 1 reply; 8+ messages in thread
From: Hrushikesh Salunke @ 2025-06-11 8:47 UTC (permalink / raw)
To: Vignesh Raghavendra, nm, kristo, robh, krzk+dt, conor+dt
Cc: s-vadapalli, linux-arm-kernel, devicetree, linux-kernel,
danishanwar, Hrushikesh Salunke
On 11/06/25 14:14, Vignesh Raghavendra wrote:
>
>
> On 10/06/25 11:19, Hrushikesh Salunke wrote:
>> AM64X SoC has one instance of PCIe which is PCIe0. To support PCIe boot
>> on AM64X SoC, PCIe0 needs to be in endpoint mode and it needs to be
>> functional at all stages of PCIe boot process. Thus add the
>> "bootph-all" boot phase tag to "pcie0_ep" device tree node.
>>
>> Signed-off-by: Hrushikesh Salunke <h-salunke@ti.com>
>> ---
>> This patch is based on commit
>> 475c850a7fdd Add linux-next specific files for 20250606
>>
>> Changes since v1
>> As per feedback from Nishanth, changed the position of "bootph-all"
>> tag, according to ordering rules for device tree properties.
>>
>> v1 : https://lore.kernel.org/all/20250609115930.w2s6jzg7xii55dlu@speckled/
>>
>> arch/arm64/boot/dts/ti/k3-am642-evm-pcie0-ep.dtso | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/arch/arm64/boot/dts/ti/k3-am642-evm-pcie0-ep.dtso b/arch/arm64/boot/dts/ti/k3-am642-evm-pcie0-ep.dtso
>> index 432751774853..a7e8d4ea98ac 100644
>> --- a/arch/arm64/boot/dts/ti/k3-am642-evm-pcie0-ep.dtso
>> +++ b/arch/arm64/boot/dts/ti/k3-am642-evm-pcie0-ep.dtso
>> @@ -46,6 +46,7 @@ pcie0_ep: pcie-ep@f102000 {
>> max-functions = /bits/ 8 <1>;
>> phys = <&serdes0_pcie_link>;
>> phy-names = "pcie-phy";
>> + bootph-all;
>> ti,syscon-pcie-ctrl = <&pcie0_ctrl 0x0>;
>> };
>> };
>
> Are the patches for PCIe boot support merged to U-Boot or such other
> bootloader repo?
> No, they are not in the U-Boot yet. I will be posting patches for PCIe
boot support for U-Boot this week.
Regards,
Hrushikesh
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2] arm64: dts: ti: k3-am642-evm-pcie0-ep: Add boot phase tag to "pcie0_ep"
2025-06-11 8:47 ` Hrushikesh Salunke
@ 2025-06-12 10:16 ` Hrushikesh Salunke
2025-06-19 7:55 ` Vignesh Raghavendra
0 siblings, 1 reply; 8+ messages in thread
From: Hrushikesh Salunke @ 2025-06-12 10:16 UTC (permalink / raw)
To: Vignesh Raghavendra, nm, kristo, robh, krzk+dt, conor+dt
Cc: s-vadapalli, linux-arm-kernel, devicetree, linux-kernel,
danishanwar, Hrushikesh Salunke
On 11/06/25 14:17, Hrushikesh Salunke wrote:
>
>
> On 11/06/25 14:14, Vignesh Raghavendra wrote:
>>
>>
>> On 10/06/25 11:19, Hrushikesh Salunke wrote:
>>> AM64X SoC has one instance of PCIe which is PCIe0. To support PCIe boot
>>> on AM64X SoC, PCIe0 needs to be in endpoint mode and it needs to be
>>> functional at all stages of PCIe boot process. Thus add the
>>> "bootph-all" boot phase tag to "pcie0_ep" device tree node.
>>>
>>> Signed-off-by: Hrushikesh Salunke <h-salunke@ti.com>
>>> ---
>>> This patch is based on commit
>>> 475c850a7fdd Add linux-next specific files for 20250606
>>>
>>> Changes since v1
>>> As per feedback from Nishanth, changed the position of "bootph-all"
>>> tag, according to ordering rules for device tree properties.
>>>
>>> v1 :
>>> https://lore.kernel.org/all/20250609115930.w2s6jzg7xii55dlu@speckled/
>>>
>>> arch/arm64/boot/dts/ti/k3-am642-evm-pcie0-ep.dtso | 1 +
>>> 1 file changed, 1 insertion(+)
>>>
>>> diff --git a/arch/arm64/boot/dts/ti/k3-am642-evm-pcie0-ep.dtso
>>> b/arch/arm64/boot/dts/ti/k3-am642-evm-pcie0-ep.dtso
>>> index 432751774853..a7e8d4ea98ac 100644
>>> --- a/arch/arm64/boot/dts/ti/k3-am642-evm-pcie0-ep.dtso
>>> +++ b/arch/arm64/boot/dts/ti/k3-am642-evm-pcie0-ep.dtso
>>> @@ -46,6 +46,7 @@ pcie0_ep: pcie-ep@f102000 {
>>> max-functions = /bits/ 8 <1>;
>>> phys = <&serdes0_pcie_link>;
>>> phy-names = "pcie-phy";
>>> + bootph-all;
>>> ti,syscon-pcie-ctrl = <&pcie0_ctrl 0x0>;
>>> };
>>> };
>>
>> Are the patches for PCIe boot support merged to U-Boot or such other
>> bootloader repo?
>> No, they are not in the U-Boot yet. I will be posting patches for PCIe
> boot support for U-Boot this week.
>
I have posted Patch series for the PCIe boot support in Uboot.
1.https://patchwork.ozlabs.org/project/uboot/patch/20250612084910.3457060-1-h-salunke@ti.com/
2.
https://patchwork.ozlabs.org/project/uboot/cover/20250612085023.3457117-1-h-salunke@ti.com/
3.
https://patchwork.ozlabs.org/project/uboot/cover/20250612085534.3457522-1-h-salunke@ti.com/
Regards,
Hrushikesh.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2] arm64: dts: ti: k3-am642-evm-pcie0-ep: Add boot phase tag to "pcie0_ep"
2025-06-12 10:16 ` Hrushikesh Salunke
@ 2025-06-19 7:55 ` Vignesh Raghavendra
2025-06-19 8:33 ` Hrushikesh Salunke
0 siblings, 1 reply; 8+ messages in thread
From: Vignesh Raghavendra @ 2025-06-19 7:55 UTC (permalink / raw)
To: Hrushikesh Salunke, nm, kristo, robh, krzk+dt, conor+dt
Cc: s-vadapalli, linux-arm-kernel, devicetree, linux-kernel,
danishanwar
On 12/06/25 15:46, Hrushikesh Salunke wrote:
>
>
> On 11/06/25 14:17, Hrushikesh Salunke wrote:
>>
>>
>> On 11/06/25 14:14, Vignesh Raghavendra wrote:
>>>
>>>
>>> On 10/06/25 11:19, Hrushikesh Salunke wrote:
>>>> AM64X SoC has one instance of PCIe which is PCIe0. To support PCIe boot
>>>> on AM64X SoC, PCIe0 needs to be in endpoint mode and it needs to be
>>>> functional at all stages of PCIe boot process. Thus add the
>>>> "bootph-all" boot phase tag to "pcie0_ep" device tree node.
>>>>
>>>> Signed-off-by: Hrushikesh Salunke <h-salunke@ti.com>
>>>> ---
>>>> This patch is based on commit
>>>> 475c850a7fdd Add linux-next specific files for 20250606
>>>>
>>>> Changes since v1
>>>> As per feedback from Nishanth, changed the position of "bootph-all"
>>>> tag, according to ordering rules for device tree properties.
>>>>
>>>> v1 : https://lore.kernel.org/
>>>> all/20250609115930.w2s6jzg7xii55dlu@speckled/
>>>>
>>>> arch/arm64/boot/dts/ti/k3-am642-evm-pcie0-ep.dtso | 1 +
>>>> 1 file changed, 1 insertion(+)
>>>>
>>>> diff --git a/arch/arm64/boot/dts/ti/k3-am642-evm-pcie0-ep.dtso b/
>>>> arch/arm64/boot/dts/ti/k3-am642-evm-pcie0-ep.dtso
>>>> index 432751774853..a7e8d4ea98ac 100644
>>>> --- a/arch/arm64/boot/dts/ti/k3-am642-evm-pcie0-ep.dtso
>>>> +++ b/arch/arm64/boot/dts/ti/k3-am642-evm-pcie0-ep.dtso
>>>> @@ -46,6 +46,7 @@ pcie0_ep: pcie-ep@f102000 {
>>>> max-functions = /bits/ 8 <1>;
>>>> phys = <&serdes0_pcie_link>;
>>>> phy-names = "pcie-phy";
>>>> + bootph-all;
>>>> ti,syscon-pcie-ctrl = <&pcie0_ctrl 0x0>;
>>>> };
>>>> };
>>>
>>> Are the patches for PCIe boot support merged to U-Boot or such other
>>> bootloader repo?
>>> No, they are not in the U-Boot yet. I will be posting patches for PCIe
>> boot support for U-Boot this week.
>>
>
> I have posted Patch series for the PCIe boot support in Uboot.
Great, but dont you need bootph-all in dependent nodes as well such as
serdes0_pcie_link pcie0_ctrl? how does this work otherwise?
>
> 1.https://patchwork.ozlabs.org/project/uboot/
> patch/20250612084910.3457060-1-h-salunke@ti.com/
> 2. https://patchwork.ozlabs.org/project/uboot/
> cover/20250612085023.3457117-1-h-salunke@ti.com/
> 3. https://patchwork.ozlabs.org/project/uboot/
> cover/20250612085534.3457522-1-h-salunke@ti.com/
>
>
> Regards,
> Hrushikesh.
--
Regards
Vignesh
https://ti.com/opensource
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2] arm64: dts: ti: k3-am642-evm-pcie0-ep: Add boot phase tag to "pcie0_ep"
2025-06-19 7:55 ` Vignesh Raghavendra
@ 2025-06-19 8:33 ` Hrushikesh Salunke
0 siblings, 0 replies; 8+ messages in thread
From: Hrushikesh Salunke @ 2025-06-19 8:33 UTC (permalink / raw)
To: Vignesh Raghavendra, nm, kristo, robh, krzk+dt, conor+dt
Cc: s-vadapalli, linux-arm-kernel, devicetree, linux-kernel,
danishanwar, Hrushikesh Salunke
On 19/06/25 13:25, Vignesh Raghavendra wrote:
>
>
> On 12/06/25 15:46, Hrushikesh Salunke wrote:
>>
>>
>> On 11/06/25 14:17, Hrushikesh Salunke wrote:
>>>
>>>
>>> On 11/06/25 14:14, Vignesh Raghavendra wrote:
>>>>
>>>>
>>>> On 10/06/25 11:19, Hrushikesh Salunke wrote:
>>>>> AM64X SoC has one instance of PCIe which is PCIe0. To support PCIe boot
>>>>> on AM64X SoC, PCIe0 needs to be in endpoint mode and it needs to be
>>>>> functional at all stages of PCIe boot process. Thus add the
>>>>> "bootph-all" boot phase tag to "pcie0_ep" device tree node.
>>>>>
>>>>> Signed-off-by: Hrushikesh Salunke <h-salunke@ti.com>
>>>>> ---
>>>>> This patch is based on commit
>>>>> 475c850a7fdd Add linux-next specific files for 20250606
>>>>>
>>>>> Changes since v1
>>>>> As per feedback from Nishanth, changed the position of "bootph-all"
>>>>> tag, according to ordering rules for device tree properties.
>>>>>
>>>>> v1 : https://lore.kernel.org/
>>>>> all/20250609115930.w2s6jzg7xii55dlu@speckled/
>>>>>
>>>>> arch/arm64/boot/dts/ti/k3-am642-evm-pcie0-ep.dtso | 1 +
>>>>> 1 file changed, 1 insertion(+)
>>>>>
>>>>> diff --git a/arch/arm64/boot/dts/ti/k3-am642-evm-pcie0-ep.dtso b/
>>>>> arch/arm64/boot/dts/ti/k3-am642-evm-pcie0-ep.dtso
>>>>> index 432751774853..a7e8d4ea98ac 100644
>>>>> --- a/arch/arm64/boot/dts/ti/k3-am642-evm-pcie0-ep.dtso
>>>>> +++ b/arch/arm64/boot/dts/ti/k3-am642-evm-pcie0-ep.dtso
>>>>> @@ -46,6 +46,7 @@ pcie0_ep: pcie-ep@f102000 {
>>>>> max-functions = /bits/ 8 <1>;
>>>>> phys = <&serdes0_pcie_link>;
>>>>> phy-names = "pcie-phy";
>>>>> + bootph-all;
>>>>> ti,syscon-pcie-ctrl = <&pcie0_ctrl 0x0>;
>>>>> };
>>>>> };
>>>>
>>>> Are the patches for PCIe boot support merged to U-Boot or such other
>>>> bootloader repo?
>>>> No, they are not in the U-Boot yet. I will be posting patches for PCIe
>>> boot support for U-Boot this week.
>>>
>>
>> I have posted Patch series for the PCIe boot support in Uboot.
>
>
> Great, but dont you need bootph-all in dependent nodes as well such as
> serdes0_pcie_link pcie0_ctrl? how does this work otherwise?
>
When booting through PCIe, ROM configures SERDES for PCIe. So we don't
need to reconfigure it again in subsequent bootstages, we can keep
using the same configuration. As for PCIe endpoint controller, BAR
registers and Address Translation registers needs to be re-configured
at each bootstage, as bootloaders at different stage are stored at
different memory location.
>>
>> 1.https://patchwork.ozlabs.org/project/uboot/
>> patch/20250612084910.3457060-1-h-salunke@ti.com/
>> 2. https://patchwork.ozlabs.org/project/uboot/
>> cover/20250612085023.3457117-1-h-salunke@ti.com/
>> 3. https://patchwork.ozlabs.org/project/uboot/
>> cover/20250612085534.3457522-1-h-salunke@ti.com/
>>
>>
>> Regards,
>> Hrushikesh.
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2] arm64: dts: ti: k3-am642-evm-pcie0-ep: Add boot phase tag to "pcie0_ep"
2025-06-10 5:49 [PATCH v2] arm64: dts: ti: k3-am642-evm-pcie0-ep: Add boot phase tag to "pcie0_ep" Hrushikesh Salunke
2025-06-10 5:51 ` Siddharth Vadapalli
2025-06-11 8:44 ` Vignesh Raghavendra
@ 2025-06-26 4:03 ` Vignesh Raghavendra
2 siblings, 0 replies; 8+ messages in thread
From: Vignesh Raghavendra @ 2025-06-26 4:03 UTC (permalink / raw)
To: nm, kristo, robh, krzk+dt, conor+dt, Hrushikesh Salunke
Cc: Vignesh Raghavendra, s-vadapalli, linux-arm-kernel, devicetree,
linux-kernel, danishanwar
Hi Hrushikesh Salunke,
On Tue, 10 Jun 2025 11:19:20 +0530, Hrushikesh Salunke wrote:
> AM64X SoC has one instance of PCIe which is PCIe0. To support PCIe boot
> on AM64X SoC, PCIe0 needs to be in endpoint mode and it needs to be
> functional at all stages of PCIe boot process. Thus add the
> "bootph-all" boot phase tag to "pcie0_ep" device tree node.
>
>
I have applied the following to branch ti-k3-dts-next on [1].
Thank you!
[1/1] arm64: dts: ti: k3-am642-evm-pcie0-ep: Add boot phase tag to "pcie0_ep"
commit: 26bc2019542fe262b799546c5211cc4b88b3f5ea
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent up the chain during
the next merge window (or sooner if it is a relevant bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/ti/linux.git
--
Vignesh
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2025-06-26 4:07 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-10 5:49 [PATCH v2] arm64: dts: ti: k3-am642-evm-pcie0-ep: Add boot phase tag to "pcie0_ep" Hrushikesh Salunke
2025-06-10 5:51 ` Siddharth Vadapalli
2025-06-11 8:44 ` Vignesh Raghavendra
2025-06-11 8:47 ` Hrushikesh Salunke
2025-06-12 10:16 ` Hrushikesh Salunke
2025-06-19 7:55 ` Vignesh Raghavendra
2025-06-19 8:33 ` Hrushikesh Salunke
2025-06-26 4:03 ` Vignesh Raghavendra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).