2 * vc4-kms-dpi-hyperpixel2r-overlay.dts
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/pinctrl/bcm2835.h>
12 compatible = "brcm,bcm2835";
18 compatible = "spi-gpio";
21 pinctrl-0 = <&spi_pins>;
22 pinctrl-names = "default";
24 sck-gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
25 mosi-gpios = <&gpio 10 GPIO_ACTIVE_HIGH>;
26 cs-gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
27 num-chipselects = <1>;
30 compatible = "pimoroni,hyperpixel2round";
33 spi-max-frequency = <100000>;
34 backlight = <&backlight>;
39 remote-endpoint = <&dpi_out>;
45 backlight: backlight {
46 compatible = "gpio-backlight";
57 pinctrl-names = "default";
58 pinctrl-0 = <&dpi_18bit_cpadhi_gpio0>;
62 remote-endpoint = <&panel_in>;
71 spi_pins: hyperpixel4_spi_pins {
72 brcm,pins = <27 18 26>;
73 brcm,pull = <BCM2835_PUD_UP BCM2835_PUD_UP BCM2835_PUD_OFF>;
83 compatible = "i2c-gpio";
86 gpios = <&gpio 10 GPIO_ACTIVE_HIGH /* sda */
87 &gpio 11 GPIO_ACTIVE_HIGH>; /* scl */
88 i2c-gpio,delay-us = <4>; /* ~100 kHz */
92 polytouch: edt-ft5x06@15 {
95 compatible = "edt,edt-ft5406";
97 interrupt-parent = <&gpio>;
98 interrupts = <27 0x02>;
99 touchscreen-size-x = <240>;
100 touchscreen-size-y = <240>;
107 disable-touch = <0>,"-3";
108 touchscreen-inverted-x = <&polytouch>,"touchscreen-inverted-x?";
109 touchscreen-inverted-y = <&polytouch>,"touchscreen-inverted-y!";
110 touchscreen-swapped-x-y = <&polytouch>,"touchscreen-swapped-x-y!";
111 rotate = <&panel>, "rotation:0";