Commit ec5306f0 authored by Mis012's avatar Mis012

bt541-ts: initial work on touchscreen driver

parent 84ebcdfc
......@@ -318,6 +318,31 @@
};
};
i2c5_default: i2c5_default {
pinmux {
function = "blsp_i2c5";
pins = "gpio18", "gpio19";
};
pinconf {
pins = "gpio18", "gpio19";
// TODO: Is <16> safe here?
drive-strength = <2>;
bias-disable;
};
};
i2c5_sleep: i2c5_sleep {
pinmux {
function = "gpio";
pins = "gpio18", "gpio19";
};
pinconf {
pins = "gpio18", "gpio19";
drive-strength = <2>;
bias-disable;
};
};
i2c6_default: i2c6_default {
pinmux {
function = "blsp_i2c6";
......
......@@ -118,6 +118,30 @@
};
};
pmx_ts_int_active {
pinmux {
function = "gpio";
pins = "gpio13";
};
pinconf {
drive-strength = <2>;
bias-disable;
//input-enable; not in downstream dts, but commented out in downstream driver tlmm_*
};
};
tsp_en_gpio_default {
pinmux {
function = "gpio";
pins = "gpio73";
};
pinconf {
drive-strength = <2>;
bias-disable;
//output-enable; not in downstream dts, but commented out in downstream driver tlmm_*
};
};
gpio_keys_default: gpio_keys_default {
pinmux {
function = "gpio";
......
......@@ -147,6 +147,32 @@
status = "okay";
};
blsp_i2c5: [email protected] {
status="okay";
[email protected] {
status="okay";
compatible = "zinitix,bt541";
reg = <0x20>;
interrupt-parent = <&msmgpio>;
interrupts = <13 0>;
//pinctrl-names = "tsp_en_gpio_active", "tsp_en_gpio_suspend";
//pinctrl-0 = <&tsp_en_active &ts_int_active>;
//pinctrl-1 = <&tsp_en_suspend &ts_int_suspend>;
//vddo-supply = <&pm8916_l6>; //TODO actually implement this
vdd_enable-gpio = <&msmgpio 73 0x01>;//TODO LOW?
irq-gpio = <&msmgpio 13 0x00>; //TODO HIGH?
//zinitix,x_resolution = <540>;
//zinitix,y_resolution = <960>;
//zinitix,page_size = <128>;
//zinitix,orientation = <0>;
//zinitix,tsp_vdd_supply_type = <0>;
//zinitix,pname = "SM-A3000";
};
};
i2c_nfc: i2c_nfc {
status="okay";
compatible = "i2c-gpio";
......
......@@ -597,6 +597,21 @@
status = "disabled";
};
blsp_i2c5: [email protected] {
compatible = "qcom,i2c-qup-v2.2.1";
reg = <0x078b9000 0x500>;
interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&gcc GCC_BLSP1_AHB_CLK>,
<&gcc GCC_BLSP1_QUP5_I2C_APPS_CLK>;
clock-names = "iface", "core";
pinctrl-names = "default", "sleep";
pinctrl-0 = <&i2c5_default>;
pinctrl-1 = <&i2c5_sleep>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
blsp_i2c6: [email protected] {
compatible = "qcom,i2c-qup-v2.2.1";
reg = <0x078ba000 0x500>;
......
......@@ -1312,4 +1312,15 @@ config TOUCHSCREEN_ROHM_BU21023
To compile this driver as a module, choose M here: the
module will be called bu21023_ts.
config TOUCHSCREEN_ZINITIX
tristate "Zinitix touchscreen support"
depends on I2C
help
Say Y here if you have a touchscreen using zinitix bt541 or something similar enough.
If unsure, say N.
To compile this driver as a module, choose M here: the
module will be called ???.
endif
......@@ -110,3 +110,4 @@ obj-$(CONFIG_TOUCHSCREEN_ZFORCE) += zforce_ts.o
obj-$(CONFIG_TOUCHSCREEN_COLIBRI_VF50) += colibri-vf50-ts.o
obj-$(CONFIG_TOUCHSCREEN_ROHM_BU21023) += rohm_bu21023.o
obj-$(CONFIG_TOUCHSCREEN_RASPBERRYPI_FW) += raspberrypi-ts.o
obj-$(CONFIG_TOUCHSCREEN_ZINITIX) += zinitix.o
This diff is collapsed.
shopt -s expand_aliases
source ../../pmbootstrap/helpers/envkernel64.sh
source ../../pmbootstrap/helpers/envkernel.sh
if make -j2; then
if make -j8; then
echo "MAKE finished successfully"
else
echo "MAKE failed :("
exit
fi
sudo cp -v .output64/arch/arm64/boot/Image.gz ~/.local/var/pmbootstrap/chroot_native/tmp/mainline/
sudo mkdir -p ~/.local/var/pmbootstrap/chroot_native/tmp/mainline/
sudo ~/.local/var/pmbootstrap/chroot_native/usr/bin/dtbTool -v -s 2048 -p scripts/dtc/ -o "/home/Mis012/.local/var/pmbootstrap/chroot_native/tmp/mainline/dt.img" .output64/arch/arm64/boot/dts/
sudo cp -v .output/arch/arm64/boot/Image.gz ~/.local/var/pmbootstrap/chroot_native/tmp/mainline/
pmbootstrap chroot -- apk add dtbtool
sudo ~/.local/var/pmbootstrap/chroot_native/usr/bin/dtbTool -v -s 2048 -p scripts/dtc/ -o "/home/Mis012/.local/var/pmbootstrap/chroot_native/tmp/mainline/dt.img" .output/arch/arm64/boot/dts/
pmbootstrap chroot -- apk add mkbootimg-osm0sis
pmbootstrap chroot -- mkbootimg-osm0sis \
--kernel "/tmp/mainline/Image.gz" \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment