sunxi: Add SPI Flash support for Orange PI R1

diff --git a/arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts b/arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts index 3356f4210d..675d38738d 100644 --- a/arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts +++ b/arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts @@ -65,6 +65,7 @@
aliases { ethernet1 = &rtl8189etv; + spi0 = &spi0; }; };
@@ -72,6 +73,7 @@ status = "okay";
flash@0 { + u-boot,dm-pre-reloc; compatible = "mxicy,mx25l12805d", "jedec,spi-nor"; }; }; diff --git a/configs/orangepi_r1_defconfig b/configs/orangepi_r1_defconfig index 6f770fa018..a66c41aa3d 100644 --- a/configs/orangepi_r1_defconfig +++ b/configs/orangepi_r1_defconfig @@ -11,3 +11,10 @@ CONFIG_DEFAULT_DEVICE_TREE="sun8i-h2-plus-orangepi-r1" CONFIG_SUN8I_EMAC=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_OHCI_HCD=y +CONFIG_CMD_SF=y +CONFIG_CMD_SPI=y +CONFIG_DM_SPI_FLASH=y +CONFIG_SPI_FLASH_MACRONIX=y +CONFIG_DM_SPI=y +CONFIG_SPI=y +CONFIG_SPL_SPI_SUNXI=y \ No newline at end of file

On Fri, Jul 10, 2020 at 12:15 PM Yaroslav Petrov info@lank.me wrote:
diff --git a/arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts b/arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts index 3356f4210d..675d38738d 100644 --- a/arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts +++ b/arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts
These changes should be added to a sun8i-h2-plus-orangepi-r1-u-boot.dtsi file so that any sync from Linux doesn't lose the change.
@@ -65,6 +65,7 @@
aliases { ethernet1 = &rtl8189etv;
};spi0 = &spi0; };
@@ -72,6 +73,7 @@ status = "okay";
flash@0 {
};u-boot,dm-pre-reloc; compatible = "mxicy,mx25l12805d", "jedec,spi-nor"; };
diff --git a/configs/orangepi_r1_defconfig b/configs/orangepi_r1_defconfig index 6f770fa018..a66c41aa3d 100644 --- a/configs/orangepi_r1_defconfig +++ b/configs/orangepi_r1_defconfig @@ -11,3 +11,10 @@ CONFIG_DEFAULT_DEVICE_TREE="sun8i-h2-plus-orangepi-r1" CONFIG_SUN8I_EMAC=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_OHCI_HCD=y +CONFIG_CMD_SF=y +CONFIG_CMD_SPI=y +CONFIG_DM_SPI_FLASH=y +CONFIG_SPI_FLASH_MACRONIX=y +CONFIG_DM_SPI=y +CONFIG_SPI=y +CONFIG_SPL_SPI_SUNXI=y \ No newline at end of file

Hi,
Thank you very much for your feedback. I try to send it to kernel.org
Mit freundlichen Grüßen, Yaroslav Petrov
On 10.07.20 13:31, Peter Robinson wrote:
On Fri, Jul 10, 2020 at 12:15 PM Yaroslav Petrov info@lank.me wrote:
diff --git a/arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts b/arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts index 3356f4210d..675d38738d 100644 --- a/arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts +++ b/arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts
These changes should be added to a sun8i-h2-plus-orangepi-r1-u-boot.dtsi file so that any sync from Linux doesn't lose the change.
@@ -65,6 +65,7 @@
aliases { ethernet1 = &rtl8189etv;
};spi0 = &spi0; };
@@ -72,6 +73,7 @@ status = "okay";
flash@0 {
};u-boot,dm-pre-reloc; compatible = "mxicy,mx25l12805d", "jedec,spi-nor"; };
diff --git a/configs/orangepi_r1_defconfig b/configs/orangepi_r1_defconfig index 6f770fa018..a66c41aa3d 100644 --- a/configs/orangepi_r1_defconfig +++ b/configs/orangepi_r1_defconfig @@ -11,3 +11,10 @@ CONFIG_DEFAULT_DEVICE_TREE="sun8i-h2-plus-orangepi-r1" CONFIG_SUN8I_EMAC=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_OHCI_HCD=y +CONFIG_CMD_SF=y +CONFIG_CMD_SPI=y +CONFIG_DM_SPI_FLASH=y +CONFIG_SPI_FLASH_MACRONIX=y +CONFIG_DM_SPI=y +CONFIG_SPI=y +CONFIG_SPL_SPI_SUNXI=y \ No newline at end of file

On Fri, Jul 10, 2020 at 3:59 PM Yaroslav Petrov info@lank.me wrote:
Hi,
Thank you very much for your feedback. I try to send it to kernel.org
The u-boot,dm-pre-reloc; doesn't go upstream to kernel.org as it's U-Boot specific, look at other examples of *-u-boot.dtsi and the associated commits for those files for examples of how they're dealt with.
Mit freundlichen Grüßen, Yaroslav Petrov
On 10.07.20 13:31, Peter Robinson wrote:
On Fri, Jul 10, 2020 at 12:15 PM Yaroslav Petrov info@lank.me wrote:
diff --git a/arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts b/arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts index 3356f4210d..675d38738d 100644 --- a/arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts +++ b/arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts
These changes should be added to a sun8i-h2-plus-orangepi-r1-u-boot.dtsi file so that any sync from Linux doesn't lose the change.
@@ -65,6 +65,7 @@
aliases { ethernet1 = &rtl8189etv;
};spi0 = &spi0; };
@@ -72,6 +73,7 @@ status = "okay";
flash@0 {
};u-boot,dm-pre-reloc; compatible = "mxicy,mx25l12805d", "jedec,spi-nor"; };
diff --git a/configs/orangepi_r1_defconfig b/configs/orangepi_r1_defconfig index 6f770fa018..a66c41aa3d 100644 --- a/configs/orangepi_r1_defconfig +++ b/configs/orangepi_r1_defconfig @@ -11,3 +11,10 @@ CONFIG_DEFAULT_DEVICE_TREE="sun8i-h2-plus-orangepi-r1" CONFIG_SUN8I_EMAC=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_OHCI_HCD=y +CONFIG_CMD_SF=y +CONFIG_CMD_SPI=y +CONFIG_DM_SPI_FLASH=y +CONFIG_SPI_FLASH_MACRONIX=y +CONFIG_DM_SPI=y +CONFIG_SPI=y +CONFIG_SPL_SPI_SUNXI=y \ No newline at end of file
participants (2)
-
Peter Robinson
-
Yaroslav Petrov