2 * Device Tree overlay for Media Center HAT by Pi Supply
10 compatible = "brcm,bcm2835";
29 rpi_display_pins: rpi_display_pins {
30 brcm,pins = <12 23 24 25>;
31 brcm,function = <1 1 1 0>; /* out out out in */
32 brcm,pull = <0 0 0 2>; /* - - - up */
40 /* needed to avoid dtc warning */
45 rpidisplay: rpi-display@0{
46 compatible = "ilitek,ili9341";
48 pinctrl-names = "default";
49 pinctrl-0 = <&rpi_display_pins>;
51 spi-max-frequency = <32000000>;
56 reset-gpios = <&gpio 23 1>;
57 dc-gpios = <&gpio 24 0>;
58 led-gpios = <&gpio 12 0>;
62 rpidisplay_ts: rpi-display-ts@1 {
63 compatible = "ti,ads7846";
66 spi-max-frequency = <2000000>;
67 interrupts = <25 2>; /* high-to-low edge triggered */
68 interrupt-parent = <&gpio>;
69 pendown-gpio = <&gpio 25 1>;
70 ti,x-plate-ohms = /bits/ 16 <60>;
71 ti,pressure-max = /bits/ 16 <255>;
80 compatible = "rpi,lirc-rpi";
81 pinctrl-names = "default";
82 pinctrl-0 = <&lirc_pins>;
85 // Override autodetection of IR receiver circuit
86 // (0 = active high, 1 = active low, -1 = no override )
87 rpi,sense = <0xffffffff>;
91 rpi,softcarrier = <1>;
97 // Enable debugging messages
107 lirc_pins: lirc_pins {
109 brcm,function = <1 0>; // out in
110 brcm,pull = <0 1>; // off down
116 speed = <&rpidisplay>,"spi-max-frequency:0";
117 rotate = <&rpidisplay>,"rotate:0";
118 fps = <&rpidisplay>,"fps:0";
119 debug = <&rpidisplay>,"debug:0",
120 <&lirc_rpi>,"rpi,debug:0";
121 xohms = <&rpidisplay_ts>,"ti,x-plate-ohms;0";
122 swapxy = <&rpidisplay_ts>,"ti,swap-xy?";
123 backlight = <&rpidisplay>,"led-gpios:4",
124 <&rpi_display_pins>,"brcm,pins:0";
126 gpio_out_pin = <&lirc_pins>,"brcm,pins:0";
127 gpio_in_pin = <&lirc_pins>,"brcm,pins:4";
128 gpio_in_pull = <&lirc_pins>,"brcm,pull:4";
130 sense = <&lirc_rpi>,"rpi,sense:0";
131 softcarrier = <&lirc_rpi>,"rpi,softcarrier:0";
132 invert = <&lirc_rpi>,"rpi,invert:0";