From: Hans Verkuil <hans.verkuil@xxxxxxxxx> A simple example of the use of cec-gpio for Raspberry Pi 2B and 3. Signed-off-by: Hans Verkuil <hans.verkuil@xxxxxxxxx> --- arch/arm/boot/dts/bcm2836-rpi-2-b.dts | 5 +++++ arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/bcm2836-rpi-2-b.dts b/arch/arm/boot/dts/bcm2836-rpi-2-b.dts index bf19e8cfb9e6..8cb82a70f33d 100644 --- a/arch/arm/boot/dts/bcm2836-rpi-2-b.dts +++ b/arch/arm/boot/dts/bcm2836-rpi-2-b.dts @@ -24,6 +24,11 @@ linux,default-trigger = "default-on"; }; }; + + cec-gpio { + compatible = "cec-gpio"; + gpio = <&gpio 4 GPIO_ACTIVE_HIGH>; + }; }; &gpio { diff --git a/arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts b/arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts index c309633a1e87..ac753786444c 100644 --- a/arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts +++ b/arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts @@ -17,6 +17,11 @@ gpios = <&gpio 47 0>; }; }; + + cec-gpio { + compatible = "cec-gpio"; + gpio = <&gpio 4 GPIO_ACTIVE_HIGH>; + }; }; &uart1 { -- 2.11.0