Params: <None>
+Name: goodix
+Info: Enables I2C connected Goodix gt9271 multiple touch controller using
+ GPIOs 4 and 17 (pins 7 and 11 on GPIO header) for interrupt and reset.
+Load: dtoverlay=goodix,<param>=<val>
+Params: interrupt GPIO used for interrupt (default 4)
+ reset GPIO used for reset (default 17)
+
+
Name: googlevoicehat-soundcard
Info: Configures the Google voiceHAT soundcard
Load: dtoverlay=googlevoicehat-soundcard
--- /dev/null
+// Device tree overlay for I2C connected Goodix gt9271 multiple touch controller
+/dts-v1/;
+/plugin/;
+
+/ {
+ compatible = "brcm,bcm2708";
+
+ fragment@0 {
+ target = <&gpio>;
+ __overlay__ {
+ goodix_pins: goodix_pins {
+ brcm,pins = <4 17>; // interrupt and reset
+ brcm,function = <0 0>; // in
+ brcm,pull = <2 2>; // pull-up
+ };
+ };
+ };
+
+ fragment@1 {
+ target = <&i2c1>;
+ __overlay__ {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "okay";
+
+ gt9271: gt9271@14 {
+ compatible = "goodix,gt9271";
+ reg = <0x14>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&goodix_pins>;
+ interrupt-parent = <&gpio>;
+ interrupts = <4 2>; // high-to-low edge triggered
+ irq-gpios = <&gpio 4 0>; // Pin7 on GPIO header
+ reset-gpios = <&gpio 17 0>; // Pin11 on GPIO header
+ };
+ };
+ };
+
+ __overrides__ {
+ interrupt = <&goodix_pins>,"brcm,pins:0",
+ <>9271>,"interrupts:0",
+ <>9271>,"irq-gpios:4";
+ reset = <&goodix_pins>,"brcm,pins:4",
+ <>9271>,"reset-gpios:4";
+ };
+};