diff options
author | Kevin Hilman <khilman@baylibre.com> | 2017-05-31 03:21:25 +0200 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2017-06-06 12:21:02 +0200 |
commit | 65878b126c8f2d761273241cf778b1c6aa50c500 (patch) | |
tree | dee8cd4952d0c4cf5472284f57e66b64c361a84d /arch/arm/boot/dts/da850-evm.dts | |
parent | ARM: dts: da850: Add interrupt-controller property to gpio node (diff) | |
download | linux-65878b126c8f2d761273241cf778b1c6aa50c500.tar.xz linux-65878b126c8f2d761273241cf778b1c6aa50c500.zip |
ARM: dts: da850-evm: fix tca6416 for use with GPIO hogs
In order GPIOS from this controller to be used with the "gpio-hogs"
property, the tca6416 node has to properly labeled as a gpio-controller,
and use #gpio-cells.
With that, the SEL_A, SEL_B, SEL_C lines that are used to select VPIF
input can be configured using GPIO hogs.
As an example, example, the configuration below selects the analog video
input on the da850-evm UI board:
&tca6416 {
status = "okay";
sel_a {
gpio-hog;
gpios = <7 GPIO_ACTIVE_HIGH>;
output-high;
line-name = "ADC_ENn";
};
sel_b {
gpio-hog;
gpios = <6 GPIO_ACTIVE_HIGH>;
output-high;
line-name = "CAMERA_ENn";
};
sel_c {
gpio-hog;
gpios = <5 GPIO_ACTIVE_HIGH>;
output-low;
line-name = "VIDEO_IN_ENn";
};
};
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'arch/arm/boot/dts/da850-evm.dts')
-rw-r--r-- | arch/arm/boot/dts/da850-evm.dts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-evm.dts index 8d244cd76c36..a423e8ebfb37 100644 --- a/arch/arm/boot/dts/da850-evm.dts +++ b/arch/arm/boot/dts/da850-evm.dts @@ -82,6 +82,8 @@ tca6416: gpio@20 { compatible = "ti,tca6416"; reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; }; }; wdt: wdt@21000 { |