Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions arch/arm/boot/dts/overlays/README
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,8 @@ Params: cs SPI bus Chip Select (default 1)
pmax Maximum reported pressure value (default 65535)
xohms Touchpanel sensitivity (X-plate resistance)
(default 400)
invx Invert x axis
invy Invert y axis

penirq is required and usually xohms (60-100) has to be set as well.
Apart from that, pmax (255) and swapxy are also common.
Expand Down
4 changes: 3 additions & 1 deletion arch/arm/boot/dts/overlays/ads7846-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,15 @@
<&ads7846>,"interrupts:0",
<&ads7846>,"pendown-gpio:4";
penirq_pull = <&ads7846_pins>,"brcm,pull:0";
swapxy = <&ads7846>,"ti,swap-xy?";
swapxy = <&ads7846>,"touchscreen-swapped-x-y?";
xmin = <&ads7846>,"ti,x-min;0";
ymin = <&ads7846>,"ti,y-min;0";
xmax = <&ads7846>,"ti,x-max;0";
ymax = <&ads7846>,"ti,y-max;0";
pmin = <&ads7846>,"ti,pressure-min;0";
pmax = <&ads7846>,"ti,pressure-max;0";
xohms = <&ads7846>,"ti,x-plate-ohms;0";
invx = <&ads7846>,"touchscreen-inverted-x?";
invy = <&ads7846>,"touchscreen-inverted-y?";
};
};
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/overlays/piscreen-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
interrupts = <17 2>; /* high-to-low edge triggered */
interrupt-parent = <&gpio>;
pendown-gpio = <&gpio 17 GPIO_ACTIVE_LOW>;
ti,swap-xy;
touchscreen-swapped-x-y;
ti,x-plate-ohms = /bits/ 16 <100>;
ti,pressure-max = /bits/ 16 <255>;
};
Expand Down