Re: [RFC 0/4] Run barebox on sc6531e-based feature phone

2023-07-05 Thread Antony Pavlov
On Tue, 4 Jul 2023 14:03:56 +0200
Sascha Hauer  wrote:

> Hi Antony,
> 
> This has stayed unanswered for some time.
> 
> I am not sure what I should do with it. In the current form I think it's
> a bit too basic to be useful. Maybe we can add it once the LCD and
> Keypad driver is ready?

It's just RFC. With LCD and keypad support SC6531E barebox port will be a nice
demo for barebox presentation and can be added to mainline repo.

There are some ready-to-use SC6531E drivers in the 
https://github.com/strongtz/linux-sprd repo.
LCD display is connected via SPI so drivers/spi/spi-sprd.c can be used,
also we need backlight driver.
Keypad is supported by drivers/input/keyboard/sprd_keypad.c.


> Sascha
> 
> On Sat, Jun 10, 2023 at 01:32:16PM +0300, Antony Pavlov wrote:
> > This patch series adds initial support for SC6531E chip.
> > 
> > SC6431E chip is specially designed solution for creating
> > feature phones. It contains
> > 
> >   * ARM926EJ-S core (up to 208 MHz)
> >   * embedded PSRAM
> >   * peripherals: USB, SPI, UART, IIS, PCM, I2C, keypad, LCD
> >   * SIM card and GSM/GPRS/FM/BT stuff
> > 
> > This work is based on FPDoom, see [1], [2], [3] for details.
> > 
> > At the moment only timer and debug_ll output via USB
> > are supported.
> > 
> > After adding lcd and keypad driver running bareDOOM [4]
> > on SC6531E will be possible.
> > 
> >   [1] https://github.com/ilyakurdyukov/fpdoom
> >   [2] https://habr.com/ru/articles/706766/
> >   [3] https://www.youtube.com/watch?v=tln_Iace1O8
> >   [4] https://github.com/a3f/bareDOOM
> > 
> > Antony Pavlov (4):
> >   clocksource: add sc6531e driver
> >   ARM: add sc6531e and F+ Ezzy 4 phone support
> >   sc6531e: add debug_ll support
> >   Documentation: add sc6531e instructions
> > 
> >  Documentation/boards/sc6531e.rst  | 187 +
> >  arch/arm/Kconfig  |  10 +
> >  arch/arm/Makefile |   1 +
> >  arch/arm/boards/Makefile  |   1 +
> >  arch/arm/boards/ezzy-4/Makefile   |   6 +
> >  arch/arm/boards/ezzy-4/env/init/automount |  27 ++
> >  arch/arm/boards/ezzy-4/lowlevel.c |  19 +
> >  arch/arm/boards/ezzy-4/usbio.c| 449 ++
> >  arch/arm/configs/ezzy-4_defconfig |  49 +++
> >  arch/arm/cpu/uncompress.c |   7 +
> >  arch/arm/dts/Makefile |   1 +
> >  arch/arm/dts/ezzy-4.dts   |  22 ++
> >  arch/arm/include/asm/debug_ll.h   |   2 +
> >  arch/arm/mach-sc6531e/Kconfig |  17 +
> >  arch/arm/mach-sc6531e/Makefile|   3 +
> >  drivers/clocksource/Makefile  |   1 +
> >  drivers/clocksource/timer-sc6531e.c   |  70 
> >  include/mach/sc6531e/debug_ll.h   |  17 +
> >  18 files changed, 889 insertions(+)
> >  create mode 100644 Documentation/boards/sc6531e.rst
> >  create mode 100644 arch/arm/boards/ezzy-4/Makefile
> >  create mode 100644 arch/arm/boards/ezzy-4/env/init/automount
> >  create mode 100644 arch/arm/boards/ezzy-4/lowlevel.c
> >  create mode 100644 arch/arm/boards/ezzy-4/usbio.c
> >  create mode 100644 arch/arm/configs/ezzy-4_defconfig
> >  create mode 100644 arch/arm/dts/ezzy-4.dts
> >  create mode 100644 arch/arm/mach-sc6531e/Kconfig
> >  create mode 100644 arch/arm/mach-sc6531e/Makefile
> >  create mode 100644 drivers/clocksource/timer-sc6531e.c
> >  create mode 100644 include/mach/sc6531e/debug_ll.h
> > 
> > -- 
> > 2.39.0
> > 
> > 
> 
> -- 
> Pengutronix e.K.   | |
> Steuerwalder Str. 21   | http://www.pengutronix.de/  |
> 31137 Hildesheim, Germany  | Phone: +49-5121-206917-0|
> Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |


-- 
Best regards,
  Antony Pavlov



Re: [RFC 0/4] Run barebox on sc6531e-based feature phone

2023-07-04 Thread Sascha Hauer
Hi Antony,

This has stayed unanswered for some time.

I am not sure what I should do with it. In the current form I think it's
a bit too basic to be useful. Maybe we can add it once the LCD and
Keypad driver is ready?

Sascha

On Sat, Jun 10, 2023 at 01:32:16PM +0300, Antony Pavlov wrote:
> This patch series adds initial support for SC6531E chip.
> 
> SC6431E chip is specially designed solution for creating
> feature phones. It contains
> 
>   * ARM926EJ-S core (up to 208 MHz)
>   * embedded PSRAM
>   * peripherals: USB, SPI, UART, IIS, PCM, I2C, keypad, LCD
>   * SIM card and GSM/GPRS/FM/BT stuff
> 
> This work is based on FPDoom, see [1], [2], [3] for details.
> 
> At the moment only timer and debug_ll output via USB
> are supported.
> 
> After adding lcd and keypad driver running bareDOOM [4]
> on SC6531E will be possible.
> 
>   [1] https://github.com/ilyakurdyukov/fpdoom
>   [2] https://habr.com/ru/articles/706766/
>   [3] https://www.youtube.com/watch?v=tln_Iace1O8
>   [4] https://github.com/a3f/bareDOOM
> 
> Antony Pavlov (4):
>   clocksource: add sc6531e driver
>   ARM: add sc6531e and F+ Ezzy 4 phone support
>   sc6531e: add debug_ll support
>   Documentation: add sc6531e instructions
> 
>  Documentation/boards/sc6531e.rst  | 187 +
>  arch/arm/Kconfig  |  10 +
>  arch/arm/Makefile |   1 +
>  arch/arm/boards/Makefile  |   1 +
>  arch/arm/boards/ezzy-4/Makefile   |   6 +
>  arch/arm/boards/ezzy-4/env/init/automount |  27 ++
>  arch/arm/boards/ezzy-4/lowlevel.c |  19 +
>  arch/arm/boards/ezzy-4/usbio.c| 449 ++
>  arch/arm/configs/ezzy-4_defconfig |  49 +++
>  arch/arm/cpu/uncompress.c |   7 +
>  arch/arm/dts/Makefile |   1 +
>  arch/arm/dts/ezzy-4.dts   |  22 ++
>  arch/arm/include/asm/debug_ll.h   |   2 +
>  arch/arm/mach-sc6531e/Kconfig |  17 +
>  arch/arm/mach-sc6531e/Makefile|   3 +
>  drivers/clocksource/Makefile  |   1 +
>  drivers/clocksource/timer-sc6531e.c   |  70 
>  include/mach/sc6531e/debug_ll.h   |  17 +
>  18 files changed, 889 insertions(+)
>  create mode 100644 Documentation/boards/sc6531e.rst
>  create mode 100644 arch/arm/boards/ezzy-4/Makefile
>  create mode 100644 arch/arm/boards/ezzy-4/env/init/automount
>  create mode 100644 arch/arm/boards/ezzy-4/lowlevel.c
>  create mode 100644 arch/arm/boards/ezzy-4/usbio.c
>  create mode 100644 arch/arm/configs/ezzy-4_defconfig
>  create mode 100644 arch/arm/dts/ezzy-4.dts
>  create mode 100644 arch/arm/mach-sc6531e/Kconfig
>  create mode 100644 arch/arm/mach-sc6531e/Makefile
>  create mode 100644 drivers/clocksource/timer-sc6531e.c
>  create mode 100644 include/mach/sc6531e/debug_ll.h
> 
> -- 
> 2.39.0
> 
> 

-- 
Pengutronix e.K.   | |
Steuerwalder Str. 21   | http://www.pengutronix.de/  |
31137 Hildesheim, Germany  | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |



[RFC 0/4] Run barebox on sc6531e-based feature phone

2023-06-10 Thread Antony Pavlov
This patch series adds initial support for SC6531E chip.

SC6431E chip is specially designed solution for creating
feature phones. It contains

  * ARM926EJ-S core (up to 208 MHz)
  * embedded PSRAM
  * peripherals: USB, SPI, UART, IIS, PCM, I2C, keypad, LCD
  * SIM card and GSM/GPRS/FM/BT stuff

This work is based on FPDoom, see [1], [2], [3] for details.

At the moment only timer and debug_ll output via USB
are supported.

After adding lcd and keypad driver running bareDOOM [4]
on SC6531E will be possible.

  [1] https://github.com/ilyakurdyukov/fpdoom
  [2] https://habr.com/ru/articles/706766/
  [3] https://www.youtube.com/watch?v=tln_Iace1O8
  [4] https://github.com/a3f/bareDOOM

Antony Pavlov (4):
  clocksource: add sc6531e driver
  ARM: add sc6531e and F+ Ezzy 4 phone support
  sc6531e: add debug_ll support
  Documentation: add sc6531e instructions

 Documentation/boards/sc6531e.rst  | 187 +
 arch/arm/Kconfig  |  10 +
 arch/arm/Makefile |   1 +
 arch/arm/boards/Makefile  |   1 +
 arch/arm/boards/ezzy-4/Makefile   |   6 +
 arch/arm/boards/ezzy-4/env/init/automount |  27 ++
 arch/arm/boards/ezzy-4/lowlevel.c |  19 +
 arch/arm/boards/ezzy-4/usbio.c| 449 ++
 arch/arm/configs/ezzy-4_defconfig |  49 +++
 arch/arm/cpu/uncompress.c |   7 +
 arch/arm/dts/Makefile |   1 +
 arch/arm/dts/ezzy-4.dts   |  22 ++
 arch/arm/include/asm/debug_ll.h   |   2 +
 arch/arm/mach-sc6531e/Kconfig |  17 +
 arch/arm/mach-sc6531e/Makefile|   3 +
 drivers/clocksource/Makefile  |   1 +
 drivers/clocksource/timer-sc6531e.c   |  70 
 include/mach/sc6531e/debug_ll.h   |  17 +
 18 files changed, 889 insertions(+)
 create mode 100644 Documentation/boards/sc6531e.rst
 create mode 100644 arch/arm/boards/ezzy-4/Makefile
 create mode 100644 arch/arm/boards/ezzy-4/env/init/automount
 create mode 100644 arch/arm/boards/ezzy-4/lowlevel.c
 create mode 100644 arch/arm/boards/ezzy-4/usbio.c
 create mode 100644 arch/arm/configs/ezzy-4_defconfig
 create mode 100644 arch/arm/dts/ezzy-4.dts
 create mode 100644 arch/arm/mach-sc6531e/Kconfig
 create mode 100644 arch/arm/mach-sc6531e/Makefile
 create mode 100644 drivers/clocksource/timer-sc6531e.c
 create mode 100644 include/mach/sc6531e/debug_ll.h

-- 
2.39.0