diff options
author | Álvaro Fernández Rojas <noltari@gmail.com> | 2019-12-23 13:42:55 +0100 |
---|---|---|
committer | Álvaro Fernández Rojas <noltari@gmail.com> | 2019-12-24 18:49:44 +0100 |
commit | 67dcc43f3a22dc3a7ac07a7065971b426feeb043 (patch) | |
tree | 0b647356dce45d2c79fd46cf201daa5089cc0934 /target/linux/brcm2708/patches-4.19/950-0420-BCM2708-Add-core-Device-Tree-support-ilitek251x.patch | |
parent | 47a93a810f78adce5a130d287f82b28e9b54313c (diff) | |
download | upstream-67dcc43f3a22dc3a7ac07a7065971b426feeb043.tar.gz upstream-67dcc43f3a22dc3a7ac07a7065971b426feeb043.tar.bz2 upstream-67dcc43f3a22dc3a7ac07a7065971b426feeb043.zip |
brcm2708: organize kernel patches
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target/linux/brcm2708/patches-4.19/950-0420-BCM2708-Add-core-Device-Tree-support-ilitek251x.patch')
-rw-r--r-- | target/linux/brcm2708/patches-4.19/950-0420-BCM2708-Add-core-Device-Tree-support-ilitek251x.patch | 91 |
1 files changed, 0 insertions, 91 deletions
diff --git a/target/linux/brcm2708/patches-4.19/950-0420-BCM2708-Add-core-Device-Tree-support-ilitek251x.patch b/target/linux/brcm2708/patches-4.19/950-0420-BCM2708-Add-core-Device-Tree-support-ilitek251x.patch deleted file mode 100644 index b1c0b6ff4e..0000000000 --- a/target/linux/brcm2708/patches-4.19/950-0420-BCM2708-Add-core-Device-Tree-support-ilitek251x.patch +++ /dev/null @@ -1,91 +0,0 @@ -From c0dfc87e355a7c6e434122e1a4fcc69729970610 Mon Sep 17 00:00:00 2001 -From: Samuel Hsu <hsu@distec.de> -Date: Mon, 8 Apr 2019 17:06:44 +0200 -Subject: [PATCH 420/806] BCM2708: Add core Device Tree support, ilitek251x - -Signed-off-by: Samuel Hsu <hsu@distec.de> ---- - arch/arm/boot/dts/overlays/Makefile | 1 + - arch/arm/boot/dts/overlays/README | 11 +++++ - .../boot/dts/overlays/ilitek251x-overlay.dts | 45 +++++++++++++++++++ - 3 files changed, 57 insertions(+) - create mode 100644 arch/arm/boot/dts/overlays/ilitek251x-overlay.dts - ---- a/arch/arm/boot/dts/overlays/Makefile -+++ b/arch/arm/boot/dts/overlays/Makefile -@@ -67,6 +67,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \ - i2c0-bcm2708.dtbo \ - i2c1-bcm2708.dtbo \ - i2s-gpio28-31.dtbo \ -+ ilitek251x.dtbo \ - iqaudio-dac.dtbo \ - iqaudio-dacplus.dtbo \ - iqaudio-digi-wm8804-audio.dtbo \ ---- a/arch/arm/boot/dts/overlays/README -+++ b/arch/arm/boot/dts/overlays/README -@@ -1146,6 +1146,17 @@ Load: dtoverlay=i2s-gpio28-31 - Params: <None> - - -+Name: ilitek251x -+Info: Enables I2C connected Ilitek 251x multiple touch controller using -+ GPIO 4 (pin 7 on GPIO header) for interrupt. -+Load: dtoverlay=ilitek251x,<param>=<val> -+Params: interrupt GPIO used for interrupt (default 4) -+ sizex Touchscreen size x, horizontal resolution of -+ touchscreen (in pixels) -+ sizey Touchscreen size y, vertical resolution of -+ touchscreen (in pixels) -+ -+ - Name: iqaudio-dac - Info: Configures the IQaudio DAC audio card - Load: dtoverlay=iqaudio-dac,<param> ---- /dev/null -+++ b/arch/arm/boot/dts/overlays/ilitek251x-overlay.dts -@@ -0,0 +1,45 @@ -+// Device tree overlay for I2C connected Ilitek multiple touch controller -+/dts-v1/; -+/plugin/; -+ -+ / { -+ compatible = "brcm,bcm2708"; -+ -+ fragment@0 { -+ target = <&gpio>; -+ __overlay__ { -+ ili251x_pins: ili251x_pins { -+ brcm,pins = <4>; // interrupt -+ brcm,function = <0>; // in -+ brcm,pull = <2>; // pull-up // -+ }; -+ }; -+ }; -+ -+ fragment@1 { -+ target = <&i2c1>; -+ __overlay__ { -+ #address-cells = <1>; -+ #size-cells = <0>; -+ status = "okay"; -+ -+ ili251x: ili251x@41 { -+ compatible = "ilitek,ili251x"; -+ reg = <0x41>; -+ pinctrl-names = "default"; -+ pinctrl-0 = <&ili251x_pins>; -+ interrupt-parent = <&gpio>; -+ interrupts = <4 8>; // high-to-low edge triggered -+ touchscreen-size-x = <16384>; -+ touchscreen-size-y = <9600>; -+ }; -+ }; -+ }; -+ -+ __overrides__ { -+ interrupt = <&ili251x_pins>,"brcm,pins:0", -+ <&ili251x>,"interrupts:0"; -+ sizex = <&ili251x>,"touchscreen-size-x:0"; -+ sizey = <&ili251x>,"touchscreen-size-y:0"; -+ }; -+}; |