ARM: dts: socfpga: enable a few hardware bits
cover ARM: dts: socfpga: enable a few hardware bits
This patch series adds a few DTS updates for SoCFPGA platforms, such as:
- Adds FPGA manager bits
- Enable I2C on Cyclone5 and Arria5 devkits
- Adds LED support on C5/A5 devkits
- Enables CAN on C5 devkit
- Enables watchdog
- Add NAND on Arria10
- Add the LTC2977 Power Monitor on Arria10 devkit
Thanks,
Dinh
Alan Tull (1):
ARM: dts: socfpga: add base fpga region and fpga bridges
Dinh Nguyen (10):
ARM: dts: socfpga: enable GPIO and LEDs for Cyclone5 and Arria5
devkits
ARM: dts: socfpga: set desired i2c clock on Cyclone5 and Arria5
devkits
ARM: dts: socfpga: Add Rohm DH2228FV DAC
ARM: dts: socfpga: enable CAN on Cyclone5 devkit
ARM: dts: socfpga: enable watchdog timer on Arria5 and Arria10
ARM: dts: socfpga: add the LTC2977 power monitor on Arria10 devkit
ARM: dts: socfpga: add fpga-manager node for Arria10
ARM: dts: socfpga: fpga manager data is 32 bits
ARM: dts: socfpga: add fpga region support on Arria10
ARM: dts: socfpga: add missing compatible string for SDRAM controller
Graham Moore (1):
ARM: dts: socfpga: Add NAND device tree for Arria10
arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/socfpga.dtsi | 35 +++++++++++++++- arch/arm/boot/dts/socfpga_arria10.dtsi | 19 ++++++++- arch/arm/boot/dts/socfpga_arria10_socdk.dtsi | 9 ++++ arch/arm/boot/dts/socfpga_arria10_socdk_nand.dts | 44 ++++++++++++++++++++ arch/arm/boot/dts/socfpga_arria5.dtsi | 4 ++ arch/arm/boot/dts/socfpga_arria5_socdk.dts | 43 +++++++++++++++++++ arch/arm/boot/dts/socfpga_cyclone5_socdk.dts | 53 ++++++++++++++++++++++++ 8 files changed, 205 insertions(+), 3 deletions(-) create mode 100644 arch/arm/boot/dts/socfpga_arria10_socdk_nand.dts
Signature · 1 line
2.7.4
PATCH 1/12 ARM: dts: socfpga: enable GPIO and LEDs for Cyclone5 and Arria5 devkits
Enable all the GPIO ports and define the GPIO-based leds on the Cyclone5 and Arria5 devkits.
--- arch/arm/boot/dts/socfpga_arria5_socdk.dts | 35 ++++++++++++++++++++++++++++ arch/arm/boot/dts/socfpga_cyclone5_socdk.dts | 31 ++++++++++++++++++++++++ 2 files changed, 66 insertions(+)
arch/arm/boot/dts/socfpga_arria5_socdk.dts +35 -0
@@ -39,6 +39,29 @@ ethernet0 = &gmac1; }; + leds { + compatible = "gpio-leds"; + hps0 { + label = "hps_led0"; + gpios = <&porta 0 1>; + }; + + hps1 { + label = "hps_led1"; + gpios = <&portb 11 1>; + }; + + hps2 { + label = "hps_led2"; + gpios = <&porta 17 1>; + }; + + hps3 { + label = "hps_led3"; + gpios = <&porta 18 1>; + }; + }; + regulator_3_3v: 3-3-v-regulator { compatible = "regulator-fixed"; regulator-name = "3.3V";
@@ -61,6 +84,18 @@ rxc-skew-ps = <2000>; }; +&gpio0 { + status = "okay"; +}; + +&gpio1 { + status = "okay"; +}; + +&gpio2 { + status = "okay"; +}; + &i2c0 { status = "okay";
arch/arm/boot/dts/socfpga_cyclone5_socdk.dts +31 -0
@@ -39,6 +39,29 @@ ethernet0 = &gmac1; }; + leds { + compatible = "gpio-leds"; + hps0 { + label = "hps_led0"; + gpios = <&portb 15 1>; + }; + + hps1 { + label = "hps_led1"; + gpios = <&portb 14 1>; + }; + + hps2 { + label = "hps_led2"; + gpios = <&portb 13 1>; + }; + + hps3 { + label = "hps_led3"; + gpios = <&portb 12 1>; + }; + }; + regulator_3_3v: 3-3-v-regulator { compatible = "regulator-fixed"; regulator-name = "3.3V";
@@ -61,10 +84,18 @@ rxc-skew-ps = <2000>; }; +&gpio0 { + status = "okay"; +}; + &gpio1 { status = "okay"; }; +&gpio2 { + status = "okay"; +}; + &i2c0 { status = "okay";
Signature · 1 line
2.7.4
PATCH 2/12 ARM: dts: socfpga: set desired i2c clock on Cyclone5 and Arria5 devkits
In reply to Dinh NguyenThe I2C LCD display on the Cyclone5 and Arria5 devkits is only capable of the standard 100 kHz clock. Set the "clock-frequency" of the I2C node to be 100000.
--- arch/arm/boot/dts/socfpga_arria5_socdk.dts | 8 ++++++++ arch/arm/boot/dts/socfpga_cyclone5_socdk.dts | 8 ++++++++ 2 files changed, 16 insertions(+)
arch/arm/boot/dts/socfpga_arria5_socdk.dts +8 -0
@@ -98,6 +98,14 @@ &i2c0 { status = "okay"; + clock-frequency = <100000>; + + /* + * adjust the falling times to decrease the i2c frequency to 50Khz + * because the LCD module does not work at the standard 100Khz + */ + i2c-sda-falling-time-ns = <5000>; + i2c-scl-falling-time-ns = <5000>; eeprom at 51 { compatible = "atmel,24c32";
arch/arm/boot/dts/socfpga_cyclone5_socdk.dts +8 -0
@@ -98,6 +98,14 @@ &i2c0 { status = "okay"; + clock-frequency = <100000>; + + /* + * adjust the falling times to decrease the i2c frequency to 50Khz + * because the LCD module does not work at the standard 100Khz + */ + i2c-sda-falling-time-ns = <5000>; + i2c-scl-falling-time-ns = <5000>; eeprom at 51 { compatible = "atmel,24c32";
Signature · 1 line
2.7.4
PATCH 3/12 ARM: dts: socfpga: Add Rohm DH2228FV DAC
In reply to Dinh NguyenEnable the SPI node and add the Rohm DH2228FV DAC.
--- arch/arm/boot/dts/socfpga_cyclone5_socdk.dts | 10 ++++++++++ 1 file changed, 10 insertions(+)
arch/arm/boot/dts/socfpga_cyclone5_socdk.dts +10 -0
@@ -159,6 +159,16 @@ }; }; +&spi0 { + status = "okay"; + + spidev at 0 { + compatible = "rohm,dh2228fv"; + reg = <0>; + spi-max-frequency = <1000000>; + }; +}; + &usb1 { status = "okay"; };
Signature · 1 line
2.7.4
PATCH 4/12 ARM: dts: socfpga: enable CAN on Cyclone5 devkit
In reply to Dinh NguyenEnable the CAN node on the Cyclone5 devkit.
--- arch/arm/boot/dts/socfpga_cyclone5_socdk.dts | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm/boot/dts/socfpga_cyclone5_socdk.dts +4 -0
@@ -70,6 +70,10 @@ }; }; +&can0 { + status = "okay"; +}; + &gmac1 { status = "okay"; phy-mode = "rgmii";
Signature · 1 line
2.7.4
PATCH 5/12 ARM: dts: socfpga: enable watchdog timer on Arria5 and Arria10
In reply to Dinh NguyenEnable the watchdog for Arria5 and Arria10.
--- arch/arm/boot/dts/socfpga_arria10_socdk.dtsi | 4 ++++ arch/arm/boot/dts/socfpga_arria5.dtsi | 4 ++++ 2 files changed, 8 insertions(+)
arch/arm/boot/dts/socfpga_arria10_socdk.dtsi +4 -0
@@ -154,3 +154,7 @@ &usb0 { status = "okay"; }; + +&watchdog0 { + status = "okay"; +};
arch/arm/boot/dts/socfpga_arria5.dtsi +4 -0
@@ -42,3 +42,7 @@ }; }; }; + +&watchdog0 { + status = "okay"; +};
Signature · 1 line
2.7.4
PATCH 6/12 ARM: dts: socfpga: add the LTC2977 power monitor on Arria10 devkit
In reply to Dinh NguyenAdd the I2C LTC 2977 power monitor that is on the Arria10 devkit.
--- arch/arm/boot/dts/socfpga_arria10_socdk.dtsi | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm/boot/dts/socfpga_arria10_socdk.dtsi +5 -0
@@ -145,6 +145,11 @@ compatible = "dallas,ds1339"; reg = <0x68>; }; + + ltc at 5c { + compatible = "ltc2977"; + reg = <0x5c>; + }; }; &uart1 {
Signature · 1 line
2.7.4
PATCH 7/12 ARM: dts: socfpga: add fpga-manager node for Arria10
In reply to Dinh NguyenAdd the FPGA manger DTS entry for Arria10.
--- arch/arm/boot/dts/socfpga_arria10.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+)
arch/arm/boot/dts/socfpga_arria10.dtsi +9 -0
@@ -512,6 +512,15 @@ }; }; + fpga_mgr: fpga-mgr at ffd03000 { + compatible = "altr,socfpga-a10-fpga-mgr"; + reg = <0xffd03000 0x100 + 0xffcfe400 0x20>; + clocks = <&l4_mp_clk>; + resets = <&rst FPGAMGR_RESET>; + reset-names = "fpgamgr"; + }; + i2c0: i2c at ffc02200 { #address-cells = <1>; #size-cells = <0>;
Signature · 1 line
2.7.4
PATCH 8/12 ARM: dts: socfpga: Add NAND device tree for Arria10
In reply to Dinh NguyenFrom: Graham Moore <[email protected]>
Add socfpga_arria10_socdk_nand.dts board file for supporting NAND.
--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/socfpga_arria10_socdk_nand.dts | 44 ++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 arch/arm/boot/dts/socfpga_arria10_socdk_nand.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -717,6 +717,7 @@ dtb-$(CONFIG_ARCH_SHMOBILE_MULTI) += \ sh73a0-kzm9g.dtb dtb-$(CONFIG_ARCH_SOCFPGA) += \ socfpga_arria5_socdk.dtb \ + socfpga_arria10_socdk_nand.dtb \ socfpga_arria10_socdk_qspi.dtb \ socfpga_arria10_socdk_sdmmc.dtb \ socfpga_cyclone5_mcvevk.dtb \
arch/arm/boot/dts/socfpga_arria10_socdk_nand.dts new file +44 -0
44 lines not on this page · raw message
Signature · 1 line
2.7.4
PATCH 9/12 ARM: dts: socfpga: fpga manager data is 32 bits
In reply to Dinh NguyenAdjust regs property for the FPGA manager data register to properly reflect that it is a single 32 bit register.
--- arch/arm/boot/dts/socfpga.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/socfpga.dtsi +1 -1
@@ -516,7 +516,7 @@ fpgamgr0: fpgamgr at ff706000 { compatible = "altr,socfpga-fpga-mgr"; reg = <0xff706000 0x1000 - 0xffb90000 0x1000>; + 0xffb90000 0x4>; interrupts = <0 175 4>; };
Signature · 1 line
2.7.4
PATCH 10/12 ARM: dts: socfpga: add base fpga region and fpga bridges
In reply to Dinh NguyenFrom: Alan Tull <[email protected]>
Add h2f and lwh2f bridges.
Add base FPGA Region to support DT overlays for FPGA programming. Add l3regs.
--- arch/arm/boot/dts/socfpga.dtsi | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+)
arch/arm/boot/dts/socfpga.dtsi +31 -0
@@ -93,6 +93,16 @@ }; }; + base_fpga_region { + compatible = "fpga-region"; + fpga-mgr = <&fpgamgr0>; + fpga-bridges = <&fpga_bridge0>, <&fpga_bridge1>; + + #address-cells = <0x1>; + #size-cells = <0x1>; + ranges = <0 0xff200000 0x100000>; + }; + can0: can at ffc00000 { compatible = "bosch,d_can"; reg = <0xffc00000 0x1000>;
@@ -513,6 +523,22 @@ }; }; + fpga_bridge0: fpga_bridge at ff400000 { + compatible = "altr,socfpga-lwhps2fpga-bridge"; + reg = <0xff400000 0x100000>; + resets = <&rst LWHPS2FPGA_RESET>; + reset-names = "lwhps2fpga"; + clocks = <&l4_main_clk>; + }; + + fpga_bridge1: fpga_bridge at ff500000 { + compatible = "altr,socfpga-hps2fpga-bridge"; + reg = <0xff500000 0x10000>; + resets = <&rst HPS2FPGA_RESET>; + reset-names = "hps2fpga"; + clocks = <&l4_main_clk>; + }; + fpgamgr0: fpgamgr at ff706000 { compatible = "altr,socfpga-fpga-mgr"; reg = <0xff706000 0x1000
@@ -694,6 +720,11 @@ arm,prefetch-offset = <7>; }; + l3regs at 0xff800000 { + compatible = "altr,l3regs", "syscon"; + reg = <0xff800000 0x1000>; + }; + mmc: dwmmc0 at ff704000 { compatible = "altr,socfpga-dw-mshc"; reg = <0xff704000 0x1000>;
Signature · 1 line
2.7.4
PATCH 11/12 ARM: dts: socfpga: add fpga region support on Arria10
In reply to Dinh NguyenAdd the base FPGA region for DT overlay support in FPGA programming.
--- arch/arm/boot/dts/socfpga_arria10.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+)
arch/arm/boot/dts/socfpga_arria10.dtsi +8 -0
@@ -83,6 +83,14 @@ }; }; + base_fpga_region { + #address-cells = <0x1>; + #size-cells = <0x1>; + + compatible = "fpga-region"; + fpga-mgr = <&fpga_mgr>; + }; + clkmgr at ffd04000 { compatible = "altr,clk-mgr"; reg = <0xffd04000 0x1000>;
Signature · 1 line
2.7.4
PATCH 12/12 ARM: dts: socfpga: add missing compatible string for SDRAM controller
In reply to Dinh NguyenAdd "altr,sdr-ctl" to the SDRAM controller node.
--- arch/arm/boot/dts/socfpga.dtsi | 2 +- arch/arm/boot/dts/socfpga_arria10.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/socfpga.dtsi +1 -1
@@ -782,7 +782,7 @@ }; sdr: sdr at ffc25000 { - compatible = "syscon"; + compatible = "altr,sdr-ctl", "syscon"; reg = <0xffc25000 0x1000>; };
arch/arm/boot/dts/socfpga_arria10.dtsi +1 -1
@@ -595,7 +595,7 @@ }; sdr: sdr at ffc25000 { - compatible = "syscon"; + compatible = "altr,sdr-ctl", "syscon"; reg = <0xffcfb100 0x80>; };
Signature · 1 line
2.7.4
PATCH 8/12 ARM: dts: socfpga: Add NAND device tree for Arria10
In reply to Dinh NguyenHi!
Quoted 12 lines · Dinh Nguyen
From: Graham Moore <[email protected]>
Add
socfpga_arria10_socdk_nand.dtsboard file for supporting NAND.Signed-off-by Graham Moore <[email protected]>Signed-off-by Dinh Nguyen <[email protected]>--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/socfpga_arria10_socdk_nand.dts | 44 ++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 arch/arm/boot/dts/socfpga_arria10_socdk_nand.dts
(...)
Quoted 5 lines
arch/arm/boot/dts/socfpga_arria10_socdk_nand.dts new file +5
-0+#include "socfpga_arria10_socdk.dtsi" + +/ { + soc { + nand: nand at ffb90000 {
arch/arm/boot/dts/socfpga_arria10_socdk_nand.dts line 32
Quoted 10 lines
arch/arm/boot/dts/socfpga_arria10_socdk_nand.dts new file +10
-0+ #address-cells = <1>; + #size-cells = <1>; + status = "okay"; + + compatible = "denali,denali-nand-dt", "altr,socfpga-denali-nand"; + reg = <0xffb90000 0x72000>, <0xffb80000 0x10000>; + reg-names = "nand_data", "denali_reg"; + interrupts = <0 99 4>; + dma-mask = <0xffffffff>; + clocks = <&nand_clk>;
This belongs into the socfpga_arria10.dtsi.
Regards,
Steffen
Signature · 4 lines
Pengutronix e.K. | Steffen Trumtrar | 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 |
PATCH 8/12 ARM: dts: socfpga: Add NAND device tree for Arria10
Quoted 9 lines · Steffen Trumtrar
Quoted 9 lines
arch/arm/boot/dts/socfpga_arria10_socdk_nand.dts new file +9
-0+#include "socfpga_arria10_socdk.dtsi" + +/ { + soc { + nand: nand at ffb90000 { + #address-cells = <1>; + #size-cells = <1>; + status = "okay"; +
Quoted 9 lines
arch/arm/boot/dts/socfpga_arria10_socdk_nand.dts line 32
Quoted 6 lines
arch/arm/boot/dts/socfpga_arria10_socdk_nand.dts new file +6
-0+ compatible = "denali,denali-nand-dt", "altr,socfpga-denali-nand"; + reg = <0xffb90000 0x72000>, <0xffb80000 0x10000>; + reg-names = "nand_data", "denali_reg"; + interrupts = <0 99 4>; + dma-mask = <0xffffffff>; + clocks = <&nand_clk>;This belongs into the
socfpga_arria10.dtsi.
Ah yes, you're right. Thanks for the review.
Dinh
PATCH 10/12 ARM: dts: socfpga: add base fpga region and fpga bridges
In reply to Dinh NguyenQuoted 17 lines · Dinh Nguyen
From: Alan Tull <[email protected]>
Add h2f and lwh2f bridges.
Add base FPGA Region to support DT overlays for FPGA programming. Add l3regs.Signed-off-by Alan Tull <[email protected]>Signed-off-by Dinh Nguyen <[email protected]>--- arch/arm/boot/dts/socfpga.dtsi | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+)arch/arm/boot/dts/socfpga.dtsi +0
-0
arch/arm/boot/dts/socfpga.dtsi line 99
Quoted 7 lines
arch/arm/boot/dts/socfpga.dtsi +4
-0@@ -93,6 +93,16 @@ }; }; + base_fpga_region { + compatible = "fpga-region"; + fpga-mgr = <&fpgamgr0>; + fpga-bridges = <&fpga_bridge0>, <&fpga_bridge1>;
Hi Dinh,
We want to get rid of the 'fpga-bridges' line.
arch/arm/boot/dts/socfpga.dtsi line 103
Quoted 4 lines
arch/arm/boot/dts/socfpga.dtsi +4
-0+ + #address-cells = <0x1>; + #size-cells = <0x1>; + ranges = <0 0xff200000 0x100000>;
Should get rid of the ranges line here too. The 'fpga-bridges' and 'ranges' line can be added in the overlay.
Alan
Quoted 47 lines
arch/arm/boot/dts/socfpga.dtsi +23
-1+ }; + can0: can at ffc00000 { compatible = "bosch,d_can"; reg = <0xffc00000 0x1000>;@@ -513,6 +523,22 @@ }; }; + fpga_bridge0: fpga_bridge at ff400000 { + compatible = "altr,socfpga-lwhps2fpga-bridge"; + reg = <0xff400000 0x100000>; + resets = <&rst LWHPS2FPGA_RESET>; + reset-names = "lwhps2fpga"; + clocks = <&l4_main_clk>; + }; + + fpga_bridge1: fpga_bridge at ff500000 { + compatible = "altr,socfpga-hps2fpga-bridge"; + reg = <0xff500000 0x10000>; + resets = <&rst HPS2FPGA_RESET>; + reset-names = "hps2fpga"; + clocks = <&l4_main_clk>; + }; + fpgamgr0: fpgamgr at ff706000 { compatible = "altr,socfpga-fpga-mgr"; reg = <0xff706000 0x1000@@ -694,6 +720,11 @@ arm,prefetch-offset = <7>; }; + l3regs at 0xff800000 { + compatible = "altr,l3regs", "syscon"; + reg = <0xff800000 0x1000>; + }; + mmc: dwmmc0 at ff704000 { compatible = "altr,socfpga-dw-mshc"; reg = <0xff704000 0x1000>; --2.7.4
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 10/12 ARM: dts: socfpga: add base fpga region and fpga bridges
Quoted 49 lines · Alan Tull
Quoted 17 lines · Dinh Nguyen
From: Alan Tull <[email protected]>
Add h2f and lwh2f bridges.
Add base FPGA Region to support DT overlays for FPGA programming. Add l3regs.Signed-off-by Alan Tull <[email protected]>Signed-off-by Dinh Nguyen <[email protected]>--- arch/arm/boot/dts/socfpga.dtsi | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+)arch/arm/boot/dts/socfpga.dtsi +0
-0arch/arm/boot/dts/socfpga.dtsi line 99
Quoted 7 lines
arch/arm/boot/dts/socfpga.dtsi +4
-0@@ -93,6 +93,16 @@ }; }; + base_fpga_region { + compatible = "fpga-region"; + fpga-mgr = <&fpgamgr0>; + fpga-bridges = <&fpga_bridge0>, <&fpga_bridge1>;Hi Dinh,
We want to get rid of the 'fpga-bridges' line.
arch/arm/boot/dts/socfpga.dtsi line 103
Quoted 4 lines
arch/arm/boot/dts/socfpga.dtsi +4
-0+ + #address-cells = <0x1>; + #size-cells = <0x1>; + ranges = <0 0xff200000 0x100000>;Should get rid of the ranges line here too. The 'fpga-bridges' and 'ranges' line can be added in the overlay.
Alan
Quoted 9 lines
arch/arm/boot/dts/socfpga.dtsi +2
-0+ }; + can0: can at ffc00000 { compatible = "bosch,d_can"; reg = <0xffc00000 0x1000>;@@ -513,6 +523,22 @@ }; };
Quoted 5 lines
arch/arm/boot/dts/socfpga.dtsi line 530
Quoted 5 lines
arch/arm/boot/dts/socfpga.dtsi +5
-0+ fpga_bridge0: fpga_bridge at ff400000 { + compatible = "altr,socfpga-lwhps2fpga-bridge"; + reg = <0xff400000 0x100000>; + resets = <&rst LWHPS2FPGA_RESET>; + reset-names = "lwhps2fpga";
The driver doesn't need 'reset-names' here or below for fpga_bridge1.
Quoted 33 lines
Quoted 33 lines
arch/arm/boot/dts/socfpga.dtsi +16
-1+ clocks = <&l4_main_clk>; + }; + + fpga_bridge1: fpga_bridge at ff500000 { + compatible = "altr,socfpga-hps2fpga-bridge"; + reg = <0xff500000 0x10000>; + resets = <&rst HPS2FPGA_RESET>; + reset-names = "hps2fpga"; + clocks = <&l4_main_clk>; + }; + fpgamgr0: fpgamgr at ff706000 { compatible = "altr,socfpga-fpga-mgr"; reg = <0xff706000 0x1000@@ -694,6 +720,11 @@ arm,prefetch-offset = <7>; }; + l3regs at 0xff800000 { + compatible = "altr,l3regs", "syscon"; + reg = <0xff800000 0x1000>; + }; + mmc: dwmmc0 at ff704000 { compatible = "altr,socfpga-dw-mshc"; reg = <0xff704000 0x1000>; --2.7.4
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 10/12 ARM: dts: socfpga: add base fpga region and fpga bridges
Quoted 50 lines · Alan Tull
Quoted 49 lines · Alan Tull
Quoted 17 lines · Dinh Nguyen
From: Alan Tull <[email protected]>
Add h2f and lwh2f bridges.
Add base FPGA Region to support DT overlays for FPGA programming. Add l3regs.Signed-off-by Alan Tull <[email protected]>Signed-off-by Dinh Nguyen <[email protected]>--- arch/arm/boot/dts/socfpga.dtsi | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+)arch/arm/boot/dts/socfpga.dtsi +0
-0arch/arm/boot/dts/socfpga.dtsi line 99
Quoted 7 lines
arch/arm/boot/dts/socfpga.dtsi +4
-0@@ -93,6 +93,16 @@ }; }; + base_fpga_region { + compatible = "fpga-region"; + fpga-mgr = <&fpgamgr0>; + fpga-bridges = <&fpga_bridge0>, <&fpga_bridge1>;Hi Dinh,
We want to get rid of the 'fpga-bridges' line.
arch/arm/boot/dts/socfpga.dtsi line 103
Quoted 4 lines
arch/arm/boot/dts/socfpga.dtsi +4
-0+ + #address-cells = <0x1>; + #size-cells = <0x1>; + ranges = <0 0xff200000 0x100000>;Should get rid of the ranges line here too. The 'fpga-bridges' and 'ranges' line can be added in the overlay.
Alan
Quoted 9 lines
arch/arm/boot/dts/socfpga.dtsi +2
-0+ }; + can0: can at ffc00000 { compatible = "bosch,d_can"; reg = <0xffc00000 0x1000>;@@ -513,6 +523,22 @@ }; };
Quoted 8 lines
Quoted 5 lines
arch/arm/boot/dts/socfpga.dtsi line 530
Quoted 5 lines
arch/arm/boot/dts/socfpga.dtsi +5
-0+ fpga_bridge0: fpga_bridge at ff400000 { + compatible = "altr,socfpga-lwhps2fpga-bridge"; + reg = <0xff400000 0x100000>; + resets = <&rst LWHPS2FPGA_RESET>; + reset-names = "lwhps2fpga";The driver doesn't need 'reset-names' here or below for
fpga_bridge1.
Ok, thanks for the review.
Dinh