Files
linux/include/asm-generic
David Wu 3b7424f332 pinctrl: rockchip: Make the gpio base started from 1000
If the gpio base is started from 1000, the "gpio = 0" will
be invalid, that can avoid something unforeseen. The real
pin number is "gpio number - 1000".

If you cat the gpio log, you will see the log like this:
rk3399:/ # cat d/gpio
GPIOs 1000-1031, platform/pinctrl, gpio0:
 gpio-1004 (                    |bt_default_wake_host) in  lo
 gpio-1005 (                    |power               ) in  hi
 gpio-1009 (                    |bt_default_reset    ) out lo
 gpio-1010 (                    |reset               ) out lo
 gpio-1011 (                    |?                   ) out hi

GPIOs 1032-1063, platform/pinctrl, gpio1:
 gpio-1034 (                    |int-n               ) in  hi
 gpio-1035 (                    |vbus-5v             ) out lo
 gpio-1036 (                    |vbus-5v             ) out lo
 gpio-1045 (                    |enable              ) out hi
 gpio-1046 (                    |vsel                ) out lo
 gpio-1049 (                    |vsel                ) out lo
 gpio-1056 (                    |int-n               ) in  hi

GPIOs 1064-1095, platform/pinctrl, gpio2:
 gpio-1083 (                    |bt_default_rts      ) in  hi
 gpio-1090 (                    |bt_default_wake     ) in  hi

GPIOs 1096-1127, platform/pinctrl, gpio3:
 gpio-1111 (                    |mdio-reset          ) out hi

GPIOs 1128-1159, platform/pinctrl, gpio4:
 gpio-1150 (                    |?                   ) out hi
 gpio-1153 (                    |vcc5v0_host         ) out hi
 gpio-1156 (                    |hp det              ) in  hi

Change-Id: I744ddc1df6075b0a044d65c65622e2a59f3a332e
Signed-off-by: David Wu <david.wu@rock-chips.com>
2017-09-20 14:45:39 +08:00
..
2015-07-27 14:06:24 +02:00
2015-11-11 15:57:28 +08:00
2014-04-07 16:36:10 -07:00
2008-05-01 08:03:58 -07:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2009-06-11 21:02:42 +02:00
2015-11-11 15:57:28 +08:00
2011-03-17 09:19:04 +08:00
2010-10-07 14:08:55 +01:00
2015-11-11 15:57:28 +08:00
2005-04-16 15:20:36 -07:00
2015-11-11 15:54:30 +08:00
2010-10-07 14:08:55 +01:00
2012-10-02 18:01:56 +01:00
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:47 -07:00
2012-12-09 23:14:14 +01:00
2014-11-23 13:01:47 +01:00
2013-01-03 15:57:16 -08:00
2015-08-25 09:59:45 +02:00
2015-11-10 16:32:11 -08:00
2014-06-17 19:12:40 -04:00
2015-11-11 15:57:28 +08:00
2014-01-13 10:43:41 +08:00
2014-05-15 00:32:09 +01:00
2015-09-05 13:19:09 +02:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2012-11-29 00:01:23 -05:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2013-02-14 09:21:15 -05:00
2015-11-23 09:44:58 +01:00
2009-06-11 21:02:42 +02:00
2015-11-11 15:57:28 +08:00