realtek: backport gpio-realtek-otto driver from 5.13 to 5.10
authorINAGAKI Hiroshi <musashino.open@gmail.com>
Wed, 5 May 2021 13:05:39 +0000 (22:05 +0900)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sat, 25 Sep 2021 22:32:17 +0000 (00:32 +0200)
commit9bac1c20b8f39f2e0e342b087add5093b94feaed
tree3a957513ffe851ecfc1ec6549b8432608c36679d
parentfbd675c668e1e6be4e5a8a8107902282e668a3a0
realtek: backport gpio-realtek-otto driver from 5.13 to 5.10

This patch backports "gpio-realtek-otto" driver to Kernel 5.10.
"MACH_REALTEK_RTL" is used as a platform name in upstream, but "RTL838X"
is used in OpenWrt, so update the dependency by the additional patch.

Note: GPIO mapping is changed in the upstreamed driver.

  old - new

   24 -  0
   25 -  1
   26 -  2
   27 -  3
   28 -  4
   29 -  5
   30 -  6
   31 -  7
   16 -  8
   17 -  9
   18 - 10
   19 - 11
   20 - 12
   21 - 13
   22 - 14
   23 - 15
    8 - 16
    9 - 17
   10 - 18
   11 - 19
   12 - 20
   13 - 21
   14 - 22
   15 - 23

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
target/linux/realtek/config-5.10
target/linux/realtek/patches-5.10/001-5.13-dt-bindings-gpio-binding-for-realtek-otto-gpio.patch [new file with mode: 0644]
target/linux/realtek/patches-5.10/002-5.13-gpio-add-realtek-otto-gpio-support.patch [new file with mode: 0644]
target/linux/realtek/patches-5.10/303-gpio-update-dependencies-for-gpio-realtek-otto.patch [new file with mode: 0644]