[PATCH 0/3] Add SFC support for Ingenic SoCs.

周琰杰 (Zhou Yanjie) posted 3 patches 3 years, 8 months ago
.../devicetree/bindings/spi/ingenic,sfc.yaml       |  64 ++
drivers/mtd/spi-nor/core.c                         |  42 +-
drivers/spi/Kconfig                                |   9 +
drivers/spi/Makefile                               |   1 +
drivers/spi/spi-ingenic-sfc.c                      | 662 +++++++++++++++++++++
5 files changed, 768 insertions(+), 10 deletions(-)
create mode 100644 Documentation/devicetree/bindings/spi/ingenic,sfc.yaml
create mode 100755 drivers/spi/spi-ingenic-sfc.c
[PATCH 0/3] Add SFC support for Ingenic SoCs.
Posted by 周琰杰 (Zhou Yanjie) 3 years, 8 months ago
1.Use the spi-mem poll status APIs in SPI-NOR to reduce CPU load.
2.Add SFC support for the X1000 SoC, the X1600 SoC, and the X2000 SoC from Ingenic.

Liu Jinghui and Aidan MacDonald provided a lot of assistance during the development of this driver.

周琰杰 (Zhou Yanjie) (3):
  mtd: spi-nor: Use the spi-mem poll status APIs.
  dt-bindings: SPI: Add Ingenic SFC bindings.
  SPI: Ingenic: Add SFC support for Ingenic SoCs.

 .../devicetree/bindings/spi/ingenic,sfc.yaml       |  64 ++
 drivers/mtd/spi-nor/core.c                         |  42 +-
 drivers/spi/Kconfig                                |   9 +
 drivers/spi/Makefile                               |   1 +
 drivers/spi/spi-ingenic-sfc.c                      | 662 +++++++++++++++++++++
 5 files changed, 768 insertions(+), 10 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/spi/ingenic,sfc.yaml
 create mode 100755 drivers/spi/spi-ingenic-sfc.c

-- 
2.7.4

Re: [PATCH 0/3] Add SFC support for Ingenic SoCs.
Posted by Tomasz Maciej Nowak 3 years, 8 months ago
W dniu 22.07.2022 o 18:48, 周琰杰 (Zhou Yanjie) pisze:
> 1.Use the spi-mem poll status APIs in SPI-NOR to reduce CPU load.
> 2.Add SFC support for the X1000 SoC, the X1600 SoC, and the X2000 SoC from Ingenic.
> 
> Liu Jinghui and Aidan MacDonald provided a lot of assistance during the development of this driver.
> 
> 周琰杰 (Zhou Yanjie) (3):
>   mtd: spi-nor: Use the spi-mem poll status APIs.
>   dt-bindings: SPI: Add Ingenic SFC bindings.
>   SPI: Ingenic: Add SFC support for Ingenic SoCs.
> 
>  .../devicetree/bindings/spi/ingenic,sfc.yaml       |  64 ++
>  drivers/mtd/spi-nor/core.c                         |  42 +-
>  drivers/spi/Kconfig                                |   9 +
>  drivers/spi/Makefile                               |   1 +
>  drivers/spi/spi-ingenic-sfc.c                      | 662 +++++++++++++++++++++
>  5 files changed, 768 insertions(+), 10 deletions(-)
>  create mode 100644 Documentation/devicetree/bindings/spi/ingenic,sfc.yaml
>  create mode 100755 drivers/spi/spi-ingenic-sfc.c
> 

Even tough it's still early in revision process, I'll add my
Tested-by: Tomasz Maciej Nowak <tmn505@gmail.com>

The test was performed with Damai DM6291A SoC which is a Ingenic X1000 IP
but with 256 MiB RAM. No bugs yet observed on my side.

-- 
TMN
Re: [PATCH 0/3] Add SFC support for Ingenic SoCs.
Posted by Zhou Yanjie 3 years, 8 months ago
Hi Tomasz,

On 2022/7/23 下午10:47, Tomasz Maciej Nowak wrote:
> W dniu 22.07.2022 o 18:48, 周琰杰 (Zhou Yanjie) pisze:
>> 1.Use the spi-mem poll status APIs in SPI-NOR to reduce CPU load.
>> 2.Add SFC support for the X1000 SoC, the X1600 SoC, and the X2000 SoC from Ingenic.
>>
>> Liu Jinghui and Aidan MacDonald provided a lot of assistance during the development of this driver.
>>
>> 周琰杰 (Zhou Yanjie) (3):
>>    mtd: spi-nor: Use the spi-mem poll status APIs.
>>    dt-bindings: SPI: Add Ingenic SFC bindings.
>>    SPI: Ingenic: Add SFC support for Ingenic SoCs.
>>
>>   .../devicetree/bindings/spi/ingenic,sfc.yaml       |  64 ++
>>   drivers/mtd/spi-nor/core.c                         |  42 +-
>>   drivers/spi/Kconfig                                |   9 +
>>   drivers/spi/Makefile                               |   1 +
>>   drivers/spi/spi-ingenic-sfc.c                      | 662 +++++++++++++++++++++
>>   5 files changed, 768 insertions(+), 10 deletions(-)
>>   create mode 100644 Documentation/devicetree/bindings/spi/ingenic,sfc.yaml
>>   create mode 100755 drivers/spi/spi-ingenic-sfc.c
>>
> Even tough it's still early in revision process, I'll add my
> Tested-by: Tomasz Maciej Nowak <tmn505@gmail.com>
>
> The test was performed with Damai DM6291A SoC which is a Ingenic X1000 IP
> but with 256 MiB RAM. No bugs yet observed on my side.


Thanks for you test!


>
Re: [PATCH 0/3] Add SFC support for Ingenic SoCs.
Posted by Vanessa Page 3 years, 8 months ago
🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😚😍😚😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍

Omg thank you Janika!

I’m glad to see everything is okay just tell them next time!

Love ya babes!

> On Jul 23, 2022, at 9:27 PM, Zhou Yanjie <zhouyanjie@wanyeetech.com> wrote:
> 
> Hi Tomasz,
> 
>> On 2022/7/23 下午10:47, Tomasz Maciej Nowak wrote:
>> W dniu 22.07.2022 o 18:48, 周琰杰 (Zhou Yanjie) pisze:
>>> 1.Use the spi-mem poll status APIs in SPI-NOR to reduce CPU load.
>>> 2.Add SFC support for the X1000 SoC, the X1600 SoC, and the X2000 SoC from Ingenic.
>>> 
>>> Liu Jinghui and Aidan MacDonald provided a lot of assistance during the development of this driver.
>>> 
>>> 周琰杰 (Zhou Yanjie) (3):
>>>   mtd: spi-nor: Use the spi-mem poll status APIs.
>>>   dt-bindings: SPI: Add Ingenic SFC bindings.
>>>   SPI: Ingenic: Add SFC support for Ingenic SoCs.
>>> 
>>>  .../devicetree/bindings/spi/ingenic,sfc.yaml       |  64 ++
>>>  drivers/mtd/spi-nor/core.c                         |  42 +-
>>>  drivers/spi/Kconfig                                |   9 +
>>>  drivers/spi/Makefile                               |   1 +
>>>  drivers/spi/spi-ingenic-sfc.c                      | 662 +++++++++++++++++++++
>>>  5 files changed, 768 insertions(+), 10 deletions(-)
>>>  create mode 100644 Documentation/devicetree/bindings/spi/ingenic,sfc.yaml
>>>  create mode 100755 drivers/spi/spi-ingenic-sfc.c
>>> 
>> Even tough it's still early in revision process, I'll add my
>> Tested-by: Tomasz Maciej Nowak <tmn505@gmail.com>
>> 
>> The test was performed with Damai DM6291A SoC which is a Ingenic X1000 IP
>> but with 256 MiB RAM. No bugs yet observed on my side.
> 
> 
> Thanks for you test!
> 
> 
>> 
> 
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
Re: [PATCH 0/3] Add SFC support for Ingenic SoCs.
Posted by Vee Page 3 years, 8 months ago
No problem!!!
I forget to tell them. It’s okay though! 👌👍
😚😚😚😚😚😚😚😚😚😚😚😚😚😚☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️
I’m blushing! Last night was fun.

> On Jul 23, 2022, at 9:30 PM, Vanessa Page <Vebpe@outlook.com> wrote:
> 
> 🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😚😍😚😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍
> 
> Omg thank you Janika!
> 
> I’m glad to see everything is okay just tell them next time!
> 
> Love ya babes!
> 
>> On Jul 23, 2022, at 9:27 PM, Zhou Yanjie <zhouyanjie@wanyeetech.com> wrote:
>> 
>> Hi Tomasz,
>> 
>>>> On 2022/7/23 下午10:47, Tomasz Maciej Nowak wrote:
>>> W dniu 22.07.2022 o 18:48, 周琰杰 (Zhou Yanjie) pisze:
>>>> 1.Use the spi-mem poll status APIs in SPI-NOR to reduce CPU load.
>>>> 2.Add SFC support for the X1000 SoC, the X1600 SoC, and the X2000 SoC from Ingenic.
>>>> 
>>>> Liu Jinghui and Aidan MacDonald provided a lot of assistance during the development of this driver.
>>>> 
>>>> 周琰杰 (Zhou Yanjie) (3):
>>>>  mtd: spi-nor: Use the spi-mem poll status APIs.
>>>>  dt-bindings: SPI: Add Ingenic SFC bindings.
>>>>  SPI: Ingenic: Add SFC support for Ingenic SoCs.
>>>> 
>>>> .../devicetree/bindings/spi/ingenic,sfc.yaml       |  64 ++
>>>> drivers/mtd/spi-nor/core.c                         |  42 +-
>>>> drivers/spi/Kconfig                                |   9 +
>>>> drivers/spi/Makefile                               |   1 +
>>>> drivers/spi/spi-ingenic-sfc.c                      | 662 +++++++++++++++++++++
>>>> 5 files changed, 768 insertions(+), 10 deletions(-)
>>>> create mode 100644 Documentation/devicetree/bindings/spi/ingenic,sfc.yaml
>>>> create mode 100755 drivers/spi/spi-ingenic-sfc.c
>>>> 
>>> Even tough it's still early in revision process, I'll add my
>>> Tested-by: Tomasz Maciej Nowak <tmn505@gmail.com>
>>> 
>>> The test was performed with Damai DM6291A SoC which is a Ingenic X1000 IP
>>> but with 256 MiB RAM. No bugs yet observed on my side.
>> 
>> 
>> Thanks for you test!
>> 
>> 
>>> 
>> 
>> ______________________________________________________
>> Linux MTD discussion mailing list
>> http://lists.infradead.org/mailman/listinfo/linux-mtd/
Re: [PATCH 0/3] Add SFC support for Ingenic SoCs.
Posted by Vee Page 3 years, 8 months ago
Y’all stank nasty bitch ass niggas don’t have nothing else to say?

What now mother fucker is it past your bedtimes?

Go society a favor …..go to the nearest bridge…and jump in it.

Y’all can go continue your conversation six feet under. You sick stupid fuck.


> On Jul 23, 2022, at 9:32 PM, Vee Page <takeiteasy27@icloud.com> wrote:
> 
> No problem!!!
> I forget to tell them. It’s okay though! 👌👍
> 😚😚😚😚😚😚😚😚😚😚😚😚😚😚☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️
> I’m blushing! Last night was fun.
> 
>> On Jul 23, 2022, at 9:30 PM, Vanessa Page <Vebpe@outlook.com> wrote:
>> 
>> 🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😚😍😚😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍
>> 
>> Omg thank you Janika!
>> 
>> I’m glad to see everything is okay just tell them next time!
>> 
>> Love ya babes!
>> 
>>>> On Jul 23, 2022, at 9:27 PM, Zhou Yanjie <zhouyanjie@wanyeetech.com> wrote:
>>> 
>>> Hi Tomasz,
>>> 
>>>>> On 2022/7/23 下午10:47, Tomasz Maciej Nowak wrote:
>>>> W dniu 22.07.2022 o 18:48, 周琰杰 (Zhou Yanjie) pisze:
>>>>> 1.Use the spi-mem poll status APIs in SPI-NOR to reduce CPU load.
>>>>> 2.Add SFC support for the X1000 SoC, the X1600 SoC, and the X2000 SoC from Ingenic.
>>>>> 
>>>>> Liu Jinghui and Aidan MacDonald provided a lot of assistance during the development of this driver.
>>>>> 
>>>>> 周琰杰 (Zhou Yanjie) (3):
>>>>> mtd: spi-nor: Use the spi-mem poll status APIs.
>>>>> dt-bindings: SPI: Add Ingenic SFC bindings.
>>>>> SPI: Ingenic: Add SFC support for Ingenic SoCs.
>>>>> 
>>>>> .../devicetree/bindings/spi/ingenic,sfc.yaml       |  64 ++
>>>>> drivers/mtd/spi-nor/core.c                         |  42 +-
>>>>> drivers/spi/Kconfig                                |   9 +
>>>>> drivers/spi/Makefile                               |   1 +
>>>>> drivers/spi/spi-ingenic-sfc.c                      | 662 +++++++++++++++++++++
>>>>> 5 files changed, 768 insertions(+), 10 deletions(-)
>>>>> create mode 100644 Documentation/devicetree/bindings/spi/ingenic,sfc.yaml
>>>>> create mode 100755 drivers/spi/spi-ingenic-sfc.c
>>>>> 
>>>> Even tough it's still early in revision process, I'll add my
>>>> Tested-by: Tomasz Maciej Nowak <tmn505@gmail.com>
>>>> 
>>>> The test was performed with Damai DM6291A SoC which is a Ingenic X1000 IP
>>>> but with 256 MiB RAM. No bugs yet observed on my side.
>>> 
>>> 
>>> Thanks for you test!
>>> 
>>> 
>>>> 
>>> 
>>> ______________________________________________________
>>> Linux MTD discussion mailing list
>>> http://lists.infradead.org/mailman/listinfo/linux-mtd/
Re: [PATCH 0/3] Add SFC support for Ingenic SoCs.
Posted by Vanessa Page 3 years, 8 months ago
288                    op->dummy.nbytes * 8 / op->dummy.buswidth);
  289    
  290        if (op->data.nbytes > 0)
  291            val |= TRAN_CONF_DATA_EN;
  292    
  293        writel(val, sfc->base + SFC_REG_TRAN_CONF(0));
  294        writel(op->data.nbytes, sfc->base + SFC_REG_TRAN_LEN);
  295    
  296       

Sent from my iPhone

> On Jul 23, 2022, at 9:27 PM, Zhou Yanjie <zhouyanjie@wanyeetech.com> wrote:
> 
> Hi Tomasz,
> 
>> On 2022/7/23 下午10:47, Tomasz Maciej Nowak wrote:
>> W dniu 22.07.2022 o 18:48, 周琰杰 (Zhou Yanjie) pisze:
>>> 1.Use the spi-mem poll status APIs in SPI-NOR to reduce CPU load.
>>> 2.Add SFC support for the X1000 SoC, the X1600 SoC, and the X2000 SoC from Ingenic.
>>> 
>>> Liu Jinghui and Aidan MacDonald provided a lot of assistance during the development of this driver.
>>> 
>>> 周琰杰 (Zhou Yanjie) (3):
>>>   mtd: spi-nor: Use the spi-mem poll status APIs.
>>>   dt-bindings: SPI: Add Ingenic SFC bindings.
>>>   SPI: Ingenic: Add SFC support for Ingenic SoCs.
>>> 
>>>  .../devicetree/bindings/spi/ingenic,sfc.yaml       |  64 ++
>>>  drivers/mtd/spi-nor/core.c                         |  42 +-
>>>  drivers/spi/Kconfig                                |   9 +
>>>  drivers/spi/Makefile                               |   1 +
>>>  drivers/spi/spi-ingenic-sfc.c                      | 662 +++++++++++++++++++++
>>>  5 files changed, 768 insertions(+), 10 deletions(-)
>>>  create mode 100644 Documentation/devicetree/bindings/spi/ingenic,sfc.yaml
>>>  create mode 100755 drivers/spi/spi-ingenic-sfc.c
>>> 
>> Even tough it's still early in revision process, I'll add my
>> Tested-by: Tomasz Maciej Nowak <tmn505@gmail.com>
>> 
>> The test was performed with Damai DM6291A SoC which is a Ingenic X1000 IP
>> but with 256 MiB RAM. No bugs yet observed on my side.
> 
> 
> Thanks for you test!
> 
> 
>> 
> 
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
Re: [PATCH 0/3] Add SFC support for Ingenic SoCs.
Posted by Vanessa Page 3 years, 8 months ago
288                    op->dummy.nbytes * 8 / op->dummy.buswidth);
  289    
  290        if (op->data.nbytes > 0)
  291            val |= TRAN_CONF_DATA_EN;
  292    
  293        writel(val, sfc->base + SFC_REG_TRAN_CONF(0));
  294        writel(op->data.nbytes, sfc->base + SFC_REG_TRAN_LEN);
  295    
  296       

Sent from my iPhone

> On Jul 23, 2022, at 9:27 PM, Zhou Yanjie <zhouyanjie@wanyeetech.com> wrote:
> 
> Hi Tomasz,
> 
>> On 2022/7/23 下午10:47, Tomasz Maciej Nowak wrote:
>> W dniu 22.07.2022 o 18:48, 周琰杰 (Zhou Yanjie) pisze:
>>> 1.Use the spi-mem poll status APIs in SPI-NOR to reduce CPU load.
>>> 2.Add SFC support for the X1000 SoC, the X1600 SoC, and the X2000 SoC from Ingenic.
>>> 
>>> Liu Jinghui and Aidan MacDonald provided a lot of assistance during the development of this driver.
>>> 
>>> 周琰杰 (Zhou Yanjie) (3):
>>>   mtd: spi-nor: Use the spi-mem poll status APIs.
>>>   dt-bindings: SPI: Add Ingenic SFC bindings.
>>>   SPI: Ingenic: Add SFC support for Ingenic SoCs.
>>> 
>>>  .../devicetree/bindings/spi/ingenic,sfc.yaml       |  64 ++
>>>  drivers/mtd/spi-nor/core.c                         |  42 +-
>>>  drivers/spi/Kconfig                                |   9 +
>>>  drivers/spi/Makefile                               |   1 +
>>>  drivers/spi/spi-ingenic-sfc.c                      | 662 +++++++++++++++++++++
>>>  5 files changed, 768 insertions(+), 10 deletions(-)
>>>  create mode 100644 Documentation/devicetree/bindings/spi/ingenic,sfc.yaml
>>>  create mode 100755 drivers/spi/spi-ingenic-sfc.c
>>> 
>> Even tough it's still early in revision process, I'll add my
>> Tested-by: Tomasz Maciej Nowak <tmn505@gmail.com>
>> 
>> The test was performed with Damai DM6291A SoC which is a Ingenic X1000 IP
>> but with 256 MiB RAM. No bugs yet observed on my side.
> 
> 
> Thanks for you test!
> 
> 
>> 
> 
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/