From: Yasunari Takiguchi Date: Thu, 22 Dec 2016 06:34:12 +0000 (+0900) Subject: BCM2708: Add Raspberry Pi TV HAT Device Tree Support X-Git-Tag: archive/raspbian/4.9.51-1+rpi1~5^2~308 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=73b20d636373729a9cb4b3bdee5ce51204d57637;p=linux-4.9.git BCM2708: Add Raspberry Pi TV HAT Device Tree Support This is an EXAMPLE CODE of Raspberry Pi TV HAT device tree overlay. Although this is not a part of our release code, it has been used to verify CXD2880 device driver with TV HAT. Add the following line to /boot/config.txt to enable TV HAT: dtoverlay=rpi-tv Reboot Raspberry Pi and check the existance of /proc/device-tree/soc/spi@7e204000/cxd2880@0. If exists, the installation is successful. you should be able to find the following three files. /dev/dvb/adapter0/frontend0 /dev/dvb/adapter0/demux0 /dev/dvb/adapter0/dvr0 Signed-off-by: Yasunari Takiguchi Signed-off-by: Masayuki Yamamoto Signed-off-by: Hideki Nozawa Signed-off-by: Kota Yonezawa Signed-off-by: Toshihiko Matsumoto Signed-off-by: Satoshi Watanabe --- diff --git a/arch/arm/boot/dts/overlays/Makefile b/arch/arm/boot/dts/overlays/Makefile index b64dd7ac0630..e2f66a55dc5a 100644 --- a/arch/arm/boot/dts/overlays/Makefile +++ b/arch/arm/boot/dts/overlays/Makefile @@ -81,6 +81,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \ rpi-ft5406.dtbo \ rpi-proto.dtbo \ rpi-sense.dtbo \ + rpi-tv.dtbo \ rra-digidac1-wm8741-audio.dtbo \ sc16is750-i2c.dtbo \ sc16is752-spi1.dtbo \ diff --git a/arch/arm/boot/dts/overlays/README b/arch/arm/boot/dts/overlays/README index 1377e5b8e836..e2a803e5180c 100644 --- a/arch/arm/boot/dts/overlays/README +++ b/arch/arm/boot/dts/overlays/README @@ -1142,6 +1142,12 @@ Load: dtoverlay=rpi-sense Params: +Name: rpi-tv +Info: Raspberry Pi TV HAT +Load: dtoverlay=rpi-tv +Params: + + Name: rra-digidac1-wm8741-audio Info: Configures the Red Rocks Audio DigiDAC1 soundcard Load: dtoverlay=rra-digidac1-wm8741-audio diff --git a/arch/arm/boot/dts/overlays/rpi-tv-overlay.dts b/arch/arm/boot/dts/overlays/rpi-tv-overlay.dts new file mode 100644 index 000000000000..a68f6f793d8e --- /dev/null +++ b/arch/arm/boot/dts/overlays/rpi-tv-overlay.dts @@ -0,0 +1,31 @@ +// rpi-tv HAT + +/dts-v1/; +/plugin/; + +/ { + compatible = "brcm,bcm2708", "brcm,bcm2709"; + + fragment@0 { + target = <&spi0>; + __overlay__ { + /* needed to avoid dtc warning */ + #address-cells = <1>; + #size-cells = <0>; + + status = "okay"; + + spidev@0 { + status = "disabled"; + }; + + cxd2880@0 { + compatible = "sony,cxd2880"; + reg = <0>; /* CE0 */ + spi-max-frequency = <50000000>; + status = "okay"; + }; + }; + }; + +};