Add SPI nodes to Altera SOCFPGA DT
Subsystems (2)
PATCH v3 1/1 Add SPI nodes to Altera SOCFPGA DT
From: Thor Thayer <[email protected]>
This patch adds the SPI nodes to the SOCFPGA device tree. Both nodes are left in the disabled state since no devices are present on the development boards.
Thor Thayer (1):
arm: dts: socfpga: Add SPI nodes to SOCFPGA DT.
arch/arm/boot/dts/socfpga.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)
Signature · 6 lines
1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 1413497251-21954-1-git-send-email-tthayer-yzvPICuk2ABMcg4IHK0kFoH6Mc4MB0Vx@public.gmane.org
PATCH v3 1/1 arm: dts: socfpga: Add SPI nodes to SOCFPGA DT.
From: Thor Thayer <[email protected]>
Add 2 SPI nodes to SOCFPGA device tree.
---
v2: Remove extra files. Move SPIDEV into board specific file.
v3: Remove dts file since SPIDEV is not allowed.
--- arch/arm/boot/dts/socfpga.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)
arch/arm/boot/dts/socfpga.dtsi +24 -0
@@ -628,6 +628,30 @@ clock-names = "biu", "ciu"; }; + spi0: spi@fff00000 { + compatible = "snps,dw-apb-ssi"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0xfff00000 0x1000>; + interrupts = <0 154 4>; + num-cs = <4>; + bus-num = <0>; + clocks = <&spi_m_clk>; + status = "disabled"; + }; + + spi1: spi@fff01000 { + compatible = "snps,dw-apb-ssi"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0xfff01000 0x1000>; + interrupts = <0 156 4>; + num-cs = <4>; + bus-num = <1>; + clocks = <&spi_m_clk>; + status = "disabled"; + }; + /* Local timer */ timer@fffec600 { compatible = "arm,cortex-a9-twd-timer";
Signature · 6 lines
1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 1413497251-21954-2-git-send-email-tthayer-yzvPICuk2ABMcg4IHK0kFoH6Mc4MB0Vx@public.gmane.org
Re: [PATCHv3] arm: dts: socfpga: Add SPI nodes to SOCFPGA DT.
Hi!
Quoted 19 lines · On Thu, Oct 16, 2014 at 05:07:31PM -0500…
From: Thor Thayer <[email protected]>
Add 2 SPI nodes to SOCFPGA device tree.
Signed-off-by Thor Thayer <[email protected]>---
v2: Remove extra files. Move SPIDEV into board specific file.v3: Remove dts file since SPIDEV is not allowed.
--- arch/arm/boot/dts/socfpga.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)arch/arm/boot/dts/socfpga.dtsi +0
-0@@ -628,6 +628,30 @@ clock-names = "biu", "ciu";
arch/arm/boot/dts/socfpga.dtsi line 638
Quoted 10 lines
arch/arm/boot/dts/socfpga.dtsi +8
-0}; + spi0: spi@fff00000 { + compatible = "snps,dw-apb-ssi"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0xfff00000 0x1000>; + interrupts = <0 154 4>; + num-cs = <4>; + bus-num = <0>;
^^^^^^^^^^^^^^
I think you can/should get rid of this property. It is only used/documented for fsl-dspi as far as I can see.
Quoted 9 lines
arch/arm/boot/dts/socfpga.dtsi +9
-0+ clocks = <&spi_m_clk>; + status = "disabled"; + }; + + spi1: spi@fff01000 { + compatible = "snps,dw-apb-ssi"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0xfff01000 0x1000>;
arch/arm/boot/dts/socfpga.dtsi line 657
Quoted 10 lines
arch/arm/boot/dts/socfpga.dtsi +7
-0+ interrupts = <0 156 4>; + num-cs = <4>; + bus-num = <1>; + clocks = <&spi_m_clk>; + status = "disabled"; + }; + /* Local timer */ timer@fffec600 { compatible = "arm,cortex-a9-twd-timer";
The rest looks good IMO.
Regards,
Steffen
Signature · 8 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [PATCHv3] arm: dts: socfpga: Add SPI nodes to SOCFPGA DT.
Quoted 7 lines · Steffen Trumtrar
arch/arm/boot/dts/socfpga.dtsi line 638
Quoted 1 line · On Thu, Oct 16, 2014 at 05:07:31PM -0500…
arch/arm/boot/dts/socfpga.dtsi +1
-0+ bus-num = <0>;^^^^^^^^^^^^^^I think you can/should get rid of this property. It is only used/documented for fsl-dspi as far as I can see.
Yes, and it shouldn't be there either.
Re: [PATCHv3] arm: dts: socfpga: Add SPI nodes to SOCFPGA DT.
In reply to a message not in the archiveQuoted 34 lines · Steffen Trumtrar
Hi!
Quoted 19 lines · On Thu, Oct 16, 2014 at 05:07:31PM -0500…
From: Thor Thayer <[email protected]>
Add 2 SPI nodes to SOCFPGA device tree.
Signed-off-by Thor Thayer <[email protected]>---
v2: Remove extra files. Move SPIDEV into board specific file.v3: Remove dts file since SPIDEV is not allowed.
--- arch/arm/boot/dts/socfpga.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)arch/arm/boot/dts/socfpga.dtsi +0
-0@@ -628,6 +628,30 @@ clock-names = "biu", "ciu";arch/arm/boot/dts/socfpga.dtsi line 638
Quoted 10 lines
arch/arm/boot/dts/socfpga.dtsi +8
-0}; + spi0: spi@fff00000 { + compatible = "snps,dw-apb-ssi"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0xfff00000 0x1000>; + interrupts = <0 154 4>; + num-cs = <4>; + bus-num = <0>;^^^^^^^^^^^^^^
Quoted 2 lines
I think you can/should get rid of this property. It is only used/documented for fsl-dspi as far as I can see.
Hi Steffen!
You are right, I will remove this.
I didn't see it documented in the dw-spi bindings but I did see a reference to .bus_num in the static structure (spi_board_info) shown in spi-summary.txt. If the bus-num isn't defined or used, the bus ends up as 32766 (0x7FE). However, the main point is that this isn't used in the code so I should remove it.
Thanks for your input and for reviewing!
Thor
Quoted 21 lines
Quoted 9 lines
arch/arm/boot/dts/socfpga.dtsi +9
-0+ clocks = <&spi_m_clk>; + status = "disabled"; + }; + + spi1: spi@fff01000 { + compatible = "snps,dw-apb-ssi"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0xfff01000 0x1000>;arch/arm/boot/dts/socfpga.dtsi line 657
Quoted 10 lines
arch/arm/boot/dts/socfpga.dtsi +7
-0+ interrupts = <0 156 4>; + num-cs = <4>; + bus-num = <1>; + clocks = <&spi_m_clk>; + status = "disabled"; + }; + /* Local timer */ timer@fffec600 { compatible = "arm,cortex-a9-twd-timer";The rest looks good IMO.
Quoted 3 lines
Regards,
Steffen
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 54411FC9.3050109-yzvPICuk2ABMcg4IHK0kFoH6Mc4MB0Vx@public.gmane.org
Re: [PATCHv3] arm: dts: socfpga: Add SPI nodes to SOCFPGA DT.
Quoted 5 lines · Thor Thayer
I didn't see it documented in the dw-spi bindings but I did see a reference to .bus_num in the static structure (
spi_board_info) shown in spi-summary.txt. If the bus-num isn't defined or used, the bus ends up as 32766 (0x7FE). However, the main point is that this isn't used in the code so I should remove it.
Defining the bus number is important for use in board files to allow devices to be referenced but should never have any practical effect for DT systems.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [PATCHv3] arm: dts: socfpga: Add SPI nodes to SOCFPGA DT.
Quoted 10 lines · Mark Brown
Quoted 5 lines · Thor Thayer
I didn't see it documented in the dw-spi bindings but I did see a reference to .bus_num in the static structure (
spi_board_info) shown in spi-summary.txt. If the bus-num isn't defined or used, the bus ends up as 32766 (0x7FE). However, the main point is that this isn't used in the code so I should remove it.Defining the bus number is important for use in board files to allow devices to be referenced but should never have any practical effect for DT systems.
Thank you for the explanation, Mark. I'll make the change and resubmit. --
To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html