xref: /linux/Documentation/devicetree/bindings/input/touchscreen/bu21029.txt (revision aaccf3c97418f169afdbb5855e9cbcbda34e90fd)
1*3a658f23SZhu Yi* Rohm BU21029 Touch Screen Controller
2*3a658f23SZhu Yi
3*3a658f23SZhu YiRequired properties:
4*3a658f23SZhu Yi - compatible              : must be "rohm,bu21029"
5*3a658f23SZhu Yi - reg                     : i2c device address of the chip (0x40 or 0x41)
6*3a658f23SZhu Yi - interrupt-parent        : the phandle for the gpio controller
7*3a658f23SZhu Yi - interrupts              : (gpio) interrupt to which the chip is connected
8*3a658f23SZhu Yi - rohm,x-plate-ohms       : x-plate resistance in Ohm
9*3a658f23SZhu Yi
10*3a658f23SZhu YiOptional properties:
11*3a658f23SZhu Yi - reset-gpios             : gpio pin to reset the chip (active low)
12*3a658f23SZhu Yi - touchscreen-size-x      : horizontal resolution of touchscreen (in pixels)
13*3a658f23SZhu Yi - touchscreen-size-y      : vertical resolution of touchscreen (in pixels)
14*3a658f23SZhu Yi - touchscreen-max-pressure: maximum pressure value
15*3a658f23SZhu Yi - vdd-supply              : power supply for the controller
16*3a658f23SZhu Yi
17*3a658f23SZhu YiExample:
18*3a658f23SZhu Yi
19*3a658f23SZhu Yi	&i2c1 {
20*3a658f23SZhu Yi		/* ... */
21*3a658f23SZhu Yi
22*3a658f23SZhu Yi		bu21029: bu21029@40 {
23*3a658f23SZhu Yi			compatible = "rohm,bu21029";
24*3a658f23SZhu Yi			reg = <0x40>;
25*3a658f23SZhu Yi			interrupt-parent = <&gpio1>;
26*3a658f23SZhu Yi			interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
27*3a658f23SZhu Yi			reset-gpios = <&gpio6 16 GPIO_ACTIVE_LOW>;
28*3a658f23SZhu Yi			rohm,x-plate-ohms = <600>;
29*3a658f23SZhu Yi			touchscreen-size-x = <800>;
30*3a658f23SZhu Yi			touchscreen-size-y = <480>;
31*3a658f23SZhu Yi			touchscreen-max-pressure = <4095>;
32*3a658f23SZhu Yi		};
33*3a658f23SZhu Yi
34*3a658f23SZhu Yi		/* ... */
35*3a658f23SZhu Yi	};
36