* [PATCH v3 1/2] ARM: dts: socfgpa: set bridges status to disabled
@ 2020-03-26 9:53 Steffen Trumtrar
2020-03-26 9:53 ` [PATCH v3 2/2] ARM: dts: socfpga: Add fpga2hps and fpga2sdram bridges Steffen Trumtrar
0 siblings, 1 reply; 5+ messages in thread
From: Steffen Trumtrar @ 2020-03-26 9:53 UTC (permalink / raw)
To: Dinh Nguyen, linux-arm-kernel
The hps-to-fpga bridges can't be used, when the FPGA is not programmed.
Set the default state to disabled and leave enabling them to the board-specific
dts files.
Although this changes behavior, there are no in-tree users of the bridges, so
this won't break anything.
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
---
arch/arm/boot/dts/socfpga.dtsi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/boot/dts/socfpga.dtsi b/arch/arm/boot/dts/socfpga.dtsi
index 4f3993cc0227..7f0480354ee6 100644
--- a/arch/arm/boot/dts/socfpga.dtsi
+++ b/arch/arm/boot/dts/socfpga.dtsi
@@ -531,6 +531,7 @@ fpga_bridge0: fpga_bridge@ff400000 {
reg = <0xff400000 0x100000>;
resets = <&rst LWHPS2FPGA_RESET>;
clocks = <&l4_main_clk>;
+ status = "disabled";
};
fpga_bridge1: fpga_bridge@ff500000 {
@@ -538,6 +539,7 @@ fpga_bridge1: fpga_bridge@ff500000 {
reg = <0xff500000 0x10000>;
resets = <&rst HPS2FPGA_RESET>;
clocks = <&l4_main_clk>;
+ status = "disabled";
};
fpgamgr0: fpgamgr@ff706000 {
--
2.26.0.rc2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v3 2/2] ARM: dts: socfpga: Add fpga2hps and fpga2sdram bridges
2020-03-26 9:53 [PATCH v3 1/2] ARM: dts: socfgpa: set bridges status to disabled Steffen Trumtrar
@ 2020-03-26 9:53 ` Steffen Trumtrar
2020-05-04 8:43 ` Steffen Trumtrar
0 siblings, 1 reply; 5+ messages in thread
From: Steffen Trumtrar @ 2020-03-26 9:53 UTC (permalink / raw)
To: Dinh Nguyen, linux-arm-kernel
Add the remaining two bridges on the Cyclone-V SoCFPGA SoCs.
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
---
arch/arm/boot/dts/socfpga.dtsi | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm/boot/dts/socfpga.dtsi b/arch/arm/boot/dts/socfpga.dtsi
index 7f0480354ee6..c2b54af417a2 100644
--- a/arch/arm/boot/dts/socfpga.dtsi
+++ b/arch/arm/boot/dts/socfpga.dtsi
@@ -542,6 +542,20 @@ fpga_bridge1: fpga_bridge@ff500000 {
status = "disabled";
};
+ fpga_bridge2: fpga-bridge@ff600000 {
+ compatible = "altr,socfpga-fpga2hps-bridge";
+ reg = <0xff600000 0x100000>;
+ resets = <&rst FPGA2HPS_RESET>;
+ clocks = <&l4_main_clk>;
+ status = "disabled";
+ };
+
+ fpga_bridge3: fpga-bridge@ffc25080 {
+ compatible = "altr,socfpga-fpga2sdram-bridge";
+ reg = <0xffc25080 0x4>;
+ status = "disabled";
+ };
+
fpgamgr0: fpgamgr@ff706000 {
compatible = "altr,socfpga-fpga-mgr";
reg = <0xff706000 0x1000
--
2.26.0.rc2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v3 2/2] ARM: dts: socfpga: Add fpga2hps and fpga2sdram bridges
2020-03-26 9:53 ` [PATCH v3 2/2] ARM: dts: socfpga: Add fpga2hps and fpga2sdram bridges Steffen Trumtrar
@ 2020-05-04 8:43 ` Steffen Trumtrar
2020-05-04 20:31 ` Dinh Nguyen
0 siblings, 1 reply; 5+ messages in thread
From: Steffen Trumtrar @ 2020-05-04 8:43 UTC (permalink / raw)
To: Steffen Trumtrar; +Cc: Dinh Nguyen, linux-arm-kernel
Hi,
Steffen Trumtrar <s.trumtrar@pengutronix.de> writes:
> Add the remaining two bridges on the Cyclone-V SoCFPGA SoCs.
>
> Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
> ---
> arch/arm/boot/dts/socfpga.dtsi | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> diff --git a/arch/arm/boot/dts/socfpga.dtsi
> b/arch/arm/boot/dts/socfpga.dtsi
> index 7f0480354ee6..c2b54af417a2 100644
> --- a/arch/arm/boot/dts/socfpga.dtsi
> +++ b/arch/arm/boot/dts/socfpga.dtsi
> @@ -542,6 +542,20 @@ fpga_bridge1: fpga_bridge@ff500000 {
> status = "disabled";
> };
>
> + fpga_bridge2: fpga-bridge@ff600000 {
> + compatible =
> "altr,socfpga-fpga2hps-bridge";
> + reg = <0xff600000 0x100000>;
> + resets = <&rst FPGA2HPS_RESET>;
> + clocks = <&l4_main_clk>;
> + status = "disabled";
> + };
> +
> + fpga_bridge3: fpga-bridge@ffc25080 {
> + compatible =
> "altr,socfpga-fpga2sdram-bridge";
> + reg = <0xffc25080 0x4>;
> + status = "disabled";
> + };
> +
> fpgamgr0: fpgamgr@ff706000 {
> compatible = "altr,socfpga-fpga-mgr";
> reg = <0xff706000 0x1000
friendly reminder.
Last time (on version 2) the discussion ended with "leave it to
the board files, because accessing the bridges without FPGA
firmware is bad". Which is correct of course. I still don't see
why the bridges nodes shouldn't be in the socfpga.dtsi and will
then be just enabled in the board files without having to define
the resets and all.
Best regards,
Steffen Trumtrar
--
Pengutronix e.K. | Dipl.-Inform. Steffen Trumtrar |
Steuerwalder Str. 21 | https://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686| Fax: +49-5121-206917-5555 |
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v3 2/2] ARM: dts: socfpga: Add fpga2hps and fpga2sdram bridges
2020-05-04 8:43 ` Steffen Trumtrar
@ 2020-05-04 20:31 ` Dinh Nguyen
2020-05-05 5:21 ` Steffen Trumtrar
0 siblings, 1 reply; 5+ messages in thread
From: Dinh Nguyen @ 2020-05-04 20:31 UTC (permalink / raw)
To: Steffen Trumtrar; +Cc: linux-arm-kernel
Hi Steffen,
On 5/4/20 3:43 AM, Steffen Trumtrar wrote:
>
> Hi,
>
> Steffen Trumtrar <s.trumtrar@pengutronix.de> writes:
>
>> Add the remaining two bridges on the Cyclone-V SoCFPGA SoCs.
>>
>> Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
>> ---
>> arch/arm/boot/dts/socfpga.dtsi | 14 ++++++++++++++
>> 1 file changed, 14 insertions(+)
>>
>> diff --git a/arch/arm/boot/dts/socfpga.dtsi
>> b/arch/arm/boot/dts/socfpga.dtsi
>> index 7f0480354ee6..c2b54af417a2 100644
>> --- a/arch/arm/boot/dts/socfpga.dtsi
>> +++ b/arch/arm/boot/dts/socfpga.dtsi
>> @@ -542,6 +542,20 @@ fpga_bridge1: fpga_bridge@ff500000 {
>> status = "disabled";
>> };
>>
>> + fpga_bridge2: fpga-bridge@ff600000 {
>> + compatible = "altr,socfpga-fpga2hps-bridge";
>> + reg = <0xff600000 0x100000>;
>> + resets = <&rst FPGA2HPS_RESET>;
>> + clocks = <&l4_main_clk>;
>> + status = "disabled";
>> + };
>> +
>> + fpga_bridge3: fpga-bridge@ffc25080 {
>> + compatible = "altr,socfpga-fpga2sdram-bridge";
>> + reg = <0xffc25080 0x4>;
>> + status = "disabled";
>> + };
>> +
>> fpgamgr0: fpgamgr@ff706000 {
>> compatible = "altr,socfpga-fpga-mgr";
>> reg = <0xff706000 0x1000
>
> friendly reminder.
>
> Last time (on version 2) the discussion ended with "leave it to the
> board files, because accessing the bridges without FPGA firmware is
> bad". Which is correct of course. I still don't see why the bridges
> nodes shouldn't be in the socfpga.dtsi and will then be just enabled in
> the board files without having to define the resets and all.
>
>
I've applied both patches.
Thanks,
Dinh
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v3 2/2] ARM: dts: socfpga: Add fpga2hps and fpga2sdram bridges
2020-05-04 20:31 ` Dinh Nguyen
@ 2020-05-05 5:21 ` Steffen Trumtrar
0 siblings, 0 replies; 5+ messages in thread
From: Steffen Trumtrar @ 2020-05-05 5:21 UTC (permalink / raw)
To: Dinh Nguyen; +Cc: linux-arm-kernel
Dinh Nguyen <dinguyen@kernel.org> writes:
> Hi Steffen,
>
> On 5/4/20 3:43 AM, Steffen Trumtrar wrote:
>>
>> Hi,
>>
>> Steffen Trumtrar <s.trumtrar@pengutronix.de> writes:
>>
>>> Add the remaining two bridges on the Cyclone-V SoCFPGA SoCs.
>>>
>>> Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
>>> ---
>>> arch/arm/boot/dts/socfpga.dtsi | 14 ++++++++++++++
>>> 1 file changed, 14 insertions(+)
>>>
>>> diff --git a/arch/arm/boot/dts/socfpga.dtsi
>>> b/arch/arm/boot/dts/socfpga.dtsi
>>> index 7f0480354ee6..c2b54af417a2 100644
>>> --- a/arch/arm/boot/dts/socfpga.dtsi
>>> +++ b/arch/arm/boot/dts/socfpga.dtsi
>>> @@ -542,6 +542,20 @@ fpga_bridge1: fpga_bridge@ff500000 {
>>> status = "disabled";
>>> };
>>>
>>> + fpga_bridge2: fpga-bridge@ff600000 {
>>> + compatible = "altr,socfpga-fpga2hps-bridge";
>>> + reg = <0xff600000 0x100000>;
>>> + resets = <&rst FPGA2HPS_RESET>;
>>> + clocks = <&l4_main_clk>;
>>> + status = "disabled";
>>> + };
>>> +
>>> + fpga_bridge3: fpga-bridge@ffc25080 {
>>> + compatible = "altr,socfpga-fpga2sdram-bridge";
>>> + reg = <0xffc25080 0x4>;
>>> + status = "disabled";
>>> + };
>>> +
>>> fpgamgr0: fpgamgr@ff706000 {
>>> compatible = "altr,socfpga-fpga-mgr";
>>> reg = <0xff706000 0x1000
>>
>> friendly reminder.
>>
>> Last time (on version 2) the discussion ended with "leave it to
>> the
>> board files, because accessing the bridges without FPGA
>> firmware is
>> bad". Which is correct of course. I still don't see why the
>> bridges
>> nodes shouldn't be in the socfpga.dtsi and will then be just
>> enabled in
>> the board files without having to define the resets and all.
>>
>>
>
> I've applied both patches.
>
\o/
Thanks,
Steffen
--
Pengutronix e.K. | Dipl.-Inform. Steffen Trumtrar |
Steuerwalder Str. 21 | https://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686| Fax: +49-5121-206917-5555 |
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-05-05 5:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-26 9:53 [PATCH v3 1/2] ARM: dts: socfgpa: set bridges status to disabled Steffen Trumtrar
2020-03-26 9:53 ` [PATCH v3 2/2] ARM: dts: socfpga: Add fpga2hps and fpga2sdram bridges Steffen Trumtrar
2020-05-04 8:43 ` Steffen Trumtrar
2020-05-04 20:31 ` Dinh Nguyen
2020-05-05 5:21 ` Steffen Trumtrar
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).