18c2ecf20Sopenharmony_ci* Rohm BU21013 Touch Screen 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciRequired properties: 48c2ecf20Sopenharmony_ci - compatible : "rohm,bu21013_tp" 58c2ecf20Sopenharmony_ci - reg : I2C device address 68c2ecf20Sopenharmony_ci - reset-gpios : GPIO pin enabling (selecting) chip (CS) 78c2ecf20Sopenharmony_ci - interrupt-parent : the phandle for the gpio controller 88c2ecf20Sopenharmony_ci - interrupts : (gpio) interrupt to which the chip is connected 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ciOptional properties: 118c2ecf20Sopenharmony_ci - touch-gpios : GPIO pin registering a touch event 128c2ecf20Sopenharmony_ci - <supply_name>-supply : Phandle to a regulator supply 138c2ecf20Sopenharmony_ci - touchscreen-size-x : General touchscreen binding, see [1]. 148c2ecf20Sopenharmony_ci - touchscreen-size-y : General touchscreen binding, see [1]. 158c2ecf20Sopenharmony_ci - touchscreen-inverted-x : General touchscreen binding, see [1]. 168c2ecf20Sopenharmony_ci - touchscreen-inverted-y : General touchscreen binding, see [1]. 178c2ecf20Sopenharmony_ci - touchscreen-swapped-x-y : General touchscreen binding, see [1]. 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci[1] All general touchscreen properties are described in 208c2ecf20Sopenharmony_ci Documentation/devicetree/bindings/input/touchscreen/touchscreen.txt. 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ciDeprecated properties: 238c2ecf20Sopenharmony_ci - rohm,touch-max-x : Maximum outward permitted limit in the X axis 248c2ecf20Sopenharmony_ci - rohm,touch-max-y : Maximum outward permitted limit in the Y axis 258c2ecf20Sopenharmony_ci - rohm,flip-x : Flip touch coordinates on the X axis 268c2ecf20Sopenharmony_ci - rohm,flip-y : Flip touch coordinates on the Y axis 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ciExample: 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci i2c@80110000 { 318c2ecf20Sopenharmony_ci bu21013_tp@5c { 328c2ecf20Sopenharmony_ci compatible = "rohm,bu21013_tp"; 338c2ecf20Sopenharmony_ci reg = <0x5c>; 348c2ecf20Sopenharmony_ci interrupt-parent = <&gpio2>; 358c2ecf20Sopenharmony_ci interrupts <&20 IRQ_TYPE_LEVEL_LOW>; 368c2ecf20Sopenharmony_ci touch-gpio = <&gpio2 20 GPIO_ACTIVE_LOW>; 378c2ecf20Sopenharmony_ci avdd-supply = <&ab8500_ldo_aux1_reg>; 388c2ecf20Sopenharmony_ci 398c2ecf20Sopenharmony_ci touchscreen-size-x = <384>; 408c2ecf20Sopenharmony_ci touchscreen-size-y = <704>; 418c2ecf20Sopenharmony_ci touchscreen-inverted-y; 428c2ecf20Sopenharmony_ci }; 438c2ecf20Sopenharmony_ci }; 44