In the first vertion of these patches I've added a MFD driver that provides API for manipulating shared gpio lines to gpio-latch and nand drivers. Now I just port gpio-latch and rb91x_nand drivers from ar71xx to ath79 by adding DTS support and new gpio API (gpiod_*). This way turned to be more clear and compact. All is working on my RB912UAG-2HPnD. Except a button and a beeper. The beeper seems is not important thing, but the button is. The button shares gpio 15 with NAND ALE and NAND IO7, but this is not easily supported by the current drivers. May be we need ad hoc driver for button. Or may be there is a more general solution for this problem. Nevertheless all other seems to be working.
Denis Kalashnikov (3): ath79: add gpio-latch driver for Mikrotik RouterBoards ath79: add NAND driver for Mikrotik RB91xG series ath79: add support for Mikrotik RouterBoard 912G .../dts/ar9342_mikrotik_routerboard-912g.dts | 233 ++++++++++ .../ath79/files/drivers/gpio/gpio-latch.c | 225 ++++++++++ .../files/drivers/mtd/nand/raw/rb91x_nand.c | 414 ++++++++++++++++++ target/linux/ath79/image/mikrotik.mk | 9 + .../base-files/etc/board.d/02_network | 2 + .../etc/hotplug.d/firmware/10-ath9k-eeprom | 1 + .../base-files/lib/upgrade/platform.sh | 1 + target/linux/ath79/mikrotik/config-default | 1 + .../patches-5.10/939-mikrotik-rb91x.patch | 49 +++ .../patches-5.4/939-mikrotik-rb91x.patch | 44 ++ 10 files changed, 979 insertions(+) create mode 100644 target/linux/ath79/dts/ar9342_mikrotik_routerboard-912g.dts create mode 100644 target/linux/ath79/files/drivers/gpio/gpio-latch.c create mode 100644 target/linux/ath79/files/drivers/mtd/nand/raw/rb91x_nand.c create mode 100644 target/linux/ath79/patches-5.10/939-mikrotik-rb91x.patch create mode 100644 target/linux/ath79/patches-5.4/939-mikrotik-rb91x.patch -- 2.26.3 _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
