diff options
author | Frank Rowand <frank.rowand@sony.com> | 2020-02-20 21:40:20 +0300 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2020-02-26 19:42:04 +0300 |
commit | f4056e705b2ef7f123a188f6aee23ade70e7d793 (patch) | |
tree | b8c873eb594157146d8f50b112d7d842d4892731 /drivers/of/unittest-data/overlay_gpio_04a.dts | |
parent | 2f7afc343d49eea0bf88ea5fc8cb3afc392356c3 (diff) | |
download | linux-f4056e705b2ef7f123a188f6aee23ade70e7d793.tar.xz |
of: unittest: add overlay gpio test to catch gpio hog problem
Geert reports that gpio hog nodes are not properly processed when
the gpio hog node is added via an overlay reply and provides an
RFC patch to fix the problem [1].
Add a unittest that shows the problem. Unittest will report "1 failed"
test before applying Geert's RFC patch and "0 failed" after applying
Geert's RFC patch.
[1] https://lore.kernel.org/linux-devicetree/20191230133852.5890-1-geert+renesas@glider.be/
Signed-off-by: Frank Rowand <frank.rowand@sony.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of/unittest-data/overlay_gpio_04a.dts')
-rw-r--r-- | drivers/of/unittest-data/overlay_gpio_04a.dts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/of/unittest-data/overlay_gpio_04a.dts b/drivers/of/unittest-data/overlay_gpio_04a.dts new file mode 100644 index 000000000000..7b1e04ebfa7a --- /dev/null +++ b/drivers/of/unittest-data/overlay_gpio_04a.dts @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0 +/dts-v1/; +/plugin/; + +&unittest_test_bus { + #address-cells = <1>; + #size-cells = <0>; + gpio@4 { + compatible = "unittest-gpio"; + reg = <4>; + gpio-controller; + #gpio-cells = <2>; + ngpios = <2>; + gpio-line-names = "line-A", "line-B", "line-C", "line-D"; + }; +}; |