From: Marek Vasut Date: Tue, 21 Jul 2015 09:25:14 +0000 (+0200) Subject: arm: dts: socfpga: Fix SPI aliases X-Git-Tag: v2015.10-rc2~392 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b09b72d83b17f353bed47df9ddaba8380a06e9f5;p=u-boot arm: dts: socfpga: Fix SPI aliases The SPI aliases are completely wrong. First, they point to non-existing /spi@.* nodes instead of the correct /soc/spi@.* nodes. Second, the use ad-hoc string instead of a handle. Furthermore, they are copied multiple times in each board DTS. So fix it such that we move these into socfpga.dtsi and make them use the usual handles. Signed-off-by: Marek Vasut Cc: Dinh Nguyen --- diff --git a/arch/arm/dts/socfpga.dtsi b/arch/arm/dts/socfpga.dtsi index 9b1242025d..3a3fb4a9c9 100644 --- a/arch/arm/dts/socfpga.dtsi +++ b/arch/arm/dts/socfpga.dtsi @@ -20,6 +20,9 @@ timer1 = &timer1; timer2 = &timer2; timer3 = &timer3; + spi0 = &qspi; + spi1 = &spi0; + spi2 = &spi1; }; cpus { diff --git a/arch/arm/dts/socfpga_arria5_socdk.dts b/arch/arm/dts/socfpga_arria5_socdk.dts index 1b86897872..f2b5963f59 100644 --- a/arch/arm/dts/socfpga_arria5_socdk.dts +++ b/arch/arm/dts/socfpga_arria5_socdk.dts @@ -22,13 +22,9 @@ aliases { /* this allow the ethaddr uboot environmnet variable contents - * to be added to the gmac1 device tree blob. - */ + * to be added to the gmac1 device tree blob. + */ ethernet0 = &gmac1; - - spi0 = "/spi@ff705000"; /* QSPI */ - spi1 = "/spi@fff00000"; - spi2 = "/spi@fff01000"; }; regulator_3_3v: 3-3-v-regulator { diff --git a/arch/arm/dts/socfpga_cyclone5_socdk.dts b/arch/arm/dts/socfpga_cyclone5_socdk.dts index 0b300b92be..9650eb0877 100644 --- a/arch/arm/dts/socfpga_cyclone5_socdk.dts +++ b/arch/arm/dts/socfpga_cyclone5_socdk.dts @@ -25,10 +25,6 @@ * to be added to the gmac1 device tree blob. */ ethernet0 = &gmac1; - - spi0 = "/spi@ff705000"; /* QSPI */ - spi1 = "/spi@fff00000"; - spi2 = "/spi@fff01000"; }; regulator_3_3v: 3-3-v-regulator { diff --git a/arch/arm/dts/socfpga_cyclone5_socrates.dts b/arch/arm/dts/socfpga_cyclone5_socrates.dts index ea30483e52..00b1830485 100644 --- a/arch/arm/dts/socfpga_cyclone5_socrates.dts +++ b/arch/arm/dts/socfpga_cyclone5_socrates.dts @@ -14,12 +14,6 @@ bootargs = "console=ttyS0,115200"; }; - aliases { - spi0 = "/spi@ff705000"; /* QSPI */ - spi1 = "/spi@fff00000"; - spi2 = "/spi@fff01000"; - }; - memory { name = "memory"; device_type = "memory";