diff --git a/OAT.xml b/OAT.xml new file mode 100644 index 0000000000000000000000000000000000000000..cae7ccd479f8faf4c292f29481ccfb4089aa0c3d --- /dev/null +++ b/OAT.xml @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/README.OpenSource b/README.OpenSource new file mode 100644 index 0000000000000000000000000000000000000000..388f61e884888603d1f24675f025ff5b2b9cf2ad --- /dev/null +++ b/README.OpenSource @@ -0,0 +1,11 @@ +[ + { + "Name": "vendor_hardmony", + "License": "Apache 2.0 License", + "License File": "LICENSE", + "Version Number": "", + "Owner": "", + "Upstream URL": "", + "Description": "" + } +] \ No newline at end of file diff --git a/oriole/hdf_config/khdf/device_info/device_info.hcs b/oriole/hdf_config/khdf/device_info/device_info.hcs index a700719ff53ccef532aeece22e31ef15b9ecefdf..7908cdaf4046d275ac833dcb19a704b25704c828 100644 --- a/oriole/hdf_config/khdf/device_info/device_info.hcs +++ b/oriole/hdf_config/khdf/device_info/device_info.hcs @@ -316,9 +316,9 @@ priority = 130; preload = 0; permission = 0660; - moduleName = "HDF_TOUCH_ICNL9916"; - serviceName = "hdf_touch_icnl9916_service"; - deviceMatchAttr = "chipone_tddi_icnl9916"; + moduleName = "HDF_TOUCH_NT36XXX"; + serviceName = "hdf_touch_nt36xxx_service"; + deviceMatchAttr = "novatek_nt36xxx_nvt"; } } device_hdf_hid :: device { diff --git a/oriole/hdf_config/khdf/input/input_config.hcs b/oriole/hdf_config/khdf/input/input_config.hcs index 7d12d48ce5af77ef72d15926e0bba96a6df5a2c1..4954bfee31a8c37b78531c9625cc5b2d4a017538 100644 --- a/oriole/hdf_config/khdf/input/input_config.hcs +++ b/oriole/hdf_config/khdf/input/input_config.hcs @@ -8,33 +8,11 @@ root { /* 0:touch 1:key 2:keyboard 3:mouse 4:button 5:crown 6:encoder */ inputType = 0; solutionX = 1080; - solutionY = 2400; + solutionY = 2408; devName = "main_touch"; } -// CHIPONE_TDDI_ICNL9916 - busConfig { - busType = 1; // 0:i2c 1:spi - busNum = 1; // spi 1 - csNum = 0; // cs 0 - clkGpio = 0; - csGpio = 0; - misoGpio = 1; - mosiGpio = 1; - regWidth = 2; // 2 bytes - spiClkReg = [0, 0]; - spiCsReg = [0, 0]; - spiMisoReg = [0, 0]; - spiMosiReg = [0, 0]; - } - - pinConfig { - rstGpio = 78; - intGpio = 77; - rstRegCfg = [0x112f0094, 0x400]; - intRegCfg = [0x112f0098, 0x400]; - } //NVT_NT36XXX - /*busConfig { + busConfig { busType = 1; // 0:i2c 1:spi busNum = 1; // spi1 clkGpio = 0; @@ -54,7 +32,7 @@ root { intGpio = 61; rstRegCfg = [0x112f0094, 0x400]; intRegCfg = [0x112f0098, 0x400]; - }*/ + } // Hi3516DV300-Runhe gt911--5p5 & 4p0 /* busConfig { @@ -239,40 +217,6 @@ root { 1, 0, 2, 20]; } } - - chip5 :: touchChip { - match_attr = "chipone_tddi_icnl9916"; - chipName = "icnl9916"; - vendorName = "chipone"; - chipInfo = "ICNL9916"; - busType = 1; // 0:i2c 1:spi - irqFlag = 1; // Rising - wordMode = 8; - commMode = 0; // 0 SPI_CLK_PHASE - transferMode = 0; // 0 Interrupt transfer mode 1 Polling transfer mode 2 Direct Memory Access (DMA) transfer mode - maxSpeed = 9600000; - csSetupTime = 25; - csHoldTime = 25; - csRecoveryTime = 2; - - powerSequence { - /* [type, status, dir , delay] - 0:none 1:vcc-1.8v 2:vci-3.3v 3:reset 4:int - 0:off or low 1:on or high 2:no ops - 0:input 1:output 2:no ops - meanings delay xms, 20: delay 20ms - */ - powerOnSeq = [3, 1, 1, 10, - 3, 0, 1, 10, - 3, 1, 1, 40]; - suspendSeq = [3, 0, 2, 10]; - resumeSeq = [3, 1, 1, 10, - 3, 0, 1, 10, - 3, 1, 1, 40]; - powerOffSeq = [3, 0, 2, 10, - 1, 0, 2, 20]; - } - } } } } diff --git a/oriole/patch.yml b/oriole/patch.yml index 4a5d0f90091272df30b19e60a182d0d45456fc18..e15d8abe479281258d11f3295378ecbd3c991f68 100644 --- a/oriole/patch.yml +++ b/oriole/patch.yml @@ -10,7 +10,6 @@ drivers/hdf_core: - device/soc/spreadtrum/patches/drivers/hdf_core/0002-hdf_core.patch - device/soc/spreadtrum/patches/drivers/hdf_core/0003-del-DevHostServiceFreeInstance.patch - device/soc/spreadtrum/patches/drivers/hdf_core/0004-add-sensor-sc7a20e.patch - - device/soc/spreadtrum/patches/drivers/hdf_core/0005-add-tp-chipone-icnl9916.patch drivers/peripheral: - device/soc/spreadtrum/patches/drivers/peripheral/0001-update-location-vintf.patch