android_kernel_motorola_sm6375/drivers/of
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Saravana Kannan 36f846bb22 UPSTREAM: of: property: Add device link support for pinctrl-0 through pinctrl-8
Add support for pinctrl-0 through pinctrl-8 explicitly instead of trying
to add support for pinctrl-%d properties.

Of all the pinctrl-* properties in dts files (20322), only 47% (9531)
are pinctrl-%d properties. Of all the pinctrl-%d properties, 99.5%
(9486) are made up of pinctrl-[0-2]. 'pinctrl-8' is the current maximum
found in dts files.

Trying to parse all pinctrl-* properties and checking for pinctrl-%d is
unnecessarily complicated. So, just add support for pinctrl-[0-8] for
now. In the unlikely event we ever exceed pinctrl-8, we can come back
and improve this.

Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20200724234415.1651639-2-saravanak@google.com
Signed-off-by: Rob Herring <robh@kernel.org>
(cherry picked from commit fb820b494acb70e3a20e50935118239c7e5c94dd)
Signed-off-by: Saravana Kannan <saravanak@google.com>
Bug: 163091301
Change-Id: I1ad8ba1b784a59a4230ac04331139c13da5d32ed
2020-08-06 19:53:54 -07:00
..
unittest-data
address.c UPSTREAM: of: Make of_dma_get_range() work on bus nodes 2020-02-24 22:03:28 +00:00
base.c UPSTREAM: of: Factor out #{addr,size}-cells parsing 2020-02-24 22:03:07 +00:00
device.c
dynamic.c
fdt.c Merge Linus's 5.4-rc1-prerelease branch into android-mainline 2019-09-20 16:07:54 -07:00
fdt_address.c
irq.c
Kconfig of: Add OF_DMA_DEFAULT_COHERENT & select it on powerpc 2020-02-11 04:35:25 -08:00
kobj.c of: Fix a refcounting bug in __of_attach_node_sysfs() 2020-06-24 17:50:35 +02:00
Makefile
of_mdio.c of: of_mdio: Correct loop scanning logic 2020-07-22 09:32:55 +02:00
of_net.c
of_numa.c
of_private.h UPSTREAM: of: Factor out #{addr,size}-cells parsing 2020-02-24 22:03:07 +00:00
of_reserved_mem.c FROMLIST: of: of_reserved_mem: Increase limit on number of reserved regions 2020-02-25 16:09:25 -08:00
overlay.c of: overlay: kmemleak in dup_and_fixup_symbol_prop() 2020-04-23 10:36:23 +02:00
pdt.c
platform.c UPSTREAM: of: platform: Batch fwnode parsing when adding all top level devices 2020-06-11 09:59:43 -07:00
property.c UPSTREAM: of: property: Add device link support for pinctrl-0 through pinctrl-8 2020-08-06 19:53:54 -07:00
resolver.c
unittest.c of: unittest: kmemleak in of_unittest_overlay_high_level() 2020-04-23 10:36:23 +02:00