From c9c96c6f2444af920e5f060254ef9a1455a6b646 Mon Sep 17 00:00:00 2001 From: Marijan Limov Date: Mon, 23 Aug 2021 01:49:13 +0200 Subject: [PATCH] Beryllium - Brightness adjustment works for tianma, still no ebbg I2C should be working too --- beryllium/DSDT.aml | Bin 244174 -> 244414 bytes beryllium/DSDT.dsl | 223 ++--------------------------- beryllium/cust_touch_resources.asl | 187 ++++++++++++++++++++++++ beryllium/displayXML.asl | 12 ++ 4 files changed, 211 insertions(+), 211 deletions(-) create mode 100644 beryllium/cust_touch_resources.asl diff --git a/beryllium/DSDT.aml b/beryllium/DSDT.aml index 24db902e40ec957f27eb0a0d9e3c8d2259336e91..fa6a4ca3231df32c4f38e6f3bcbe37d6ea9e9dea 100644 GIT binary patch delta 956 zcmZvZPiWIn9LL{#S+_1-r;Xjl9MZ9)TKm`OpoTT+AF4?kn&_rXO4_~6(l(v_WA#*q zc<|ssL~`;rDB{J71O#`QH{D60H?O-X6v5q0+ResnIVAA?em=kV<7K}$x%+#PjEOO6 z_agz&%uDhse6!ts)`cIs=-Z6C)`J(-Lkc<7S3P)1eLsyRpiP^bMdf#kx7#ofZreSSu)Z@34DrWWThnHGA=aez*Q4%>8zTt!Y69@VG}Eb zC-kDcHwS{YR*i8OQbyVN7PY9J_p`C74@;V%d z_{{N9YJvIcIxf>e3p+?nXrZcX6gSNy*+HT+(RF#NQGA4%nsMU_ZrAGxEH|1pZ1C20 zSn4VpWw^K^=gXLuYE2yRnF75wCMvjI=Zgy0tP~YlDPTI-|Cy&XN5zejk{*(ru&1!&JQw-c@r2Y}l5`^29y2(*1nypGzXxG04}A-`Jc5I106 UecK@xphx{;eCD;E9pZ=UFY8t!2mk;8 delta 658 zcmZvXL1+^}6o%i-gmp7Zf*BLn2tq8LgvKFRU993?3}Y~hpnJ^)Yx>^M#}E!(d1MF&_?qFwQQ3(tz;H*}P% z|GrU)st8a#lg5#?Rk;o7(ZqjL=B941dT0_F?jf+H9RjT}l-D)qayuhYGVh+5 zTw9)68-?NJ;88pi#VQAX3LXi^%zN@Tch#x2*KR8#(&=^R2s-21@A(Rhz`yTP;s-Pl zd7N$pbUyw}K(BDqa08#4EiLG9)6xQnUBc~~ +// DESCRIPTION +// This file contains the resources needed by touch driver. +// +// +//=========================================================================== +Scope(\_SB_.PEP0) +{ + + Method(LPMX) + { + Return(LPXC) + } + + Name(LPXC, + Package(){ + // Touch LVS1 + Package() + { + "DEVICE", + "\\_SB.TSC1", + Package() + { + "DSTATE", + 0x0, // D0 state + + // TS_INT configuration + Package() + { + "TLMMGPIO", // TLMMGPIO resource TS_INT + Package() + { + 31, // PIN number = 31 + 0, // State: NOT active = 0x0 + 0, // Function select = 0 + 0, // direction = Input. + 3, // Pull Up + 0, // Drive Strength: 0x0 = 2mA + }, + }, + Package() + { + "TLMMGPIO", // TLMMGPIO resource RESET + Package() + { + 32, // PIN number = 32 + 0, // State: NOT active = 0x0 + 0, // Function select = 0 + 1, // direction = Output. + 0, // NO Pull + 0, // Drive Strength: 0x0 = 2mA + }, + }, + + // Synaptics Power source - VDD + Package() + { + "PMICVREGVOTE", // PMICVREGVOTE resource + Package() + { + "PPP_RESOURCE_ID_LDO14_A", // VREG ID + 1, // Voltage Regulator type = LDO + 1800000, // 3.3V + 1, // force enable from software + 7, // power mode - Normal Power Mode + 0, // head room voltage + }, + }, + + // I2C Pull Up source + // Package() + // { + // "TLMMGPIO", + // Package() + // { + // 23, // PIN number = 23 + // 1, // State: active = 0x1 + // 0, // Function select = 0 + // 1, // direction = Output. + // 3, // Pull Up + // 0, // Drive Strength: 0x0 = 2mA + // }, + // }, + + Package() + { + "DELAY", // Hold the RESET line LOW after power up for 2ms + Package() + { + 1000, // 2 Milsec delay + } + }, + + // Drive RESET Line High + Package() + { + "TLMMGPIO", // TLMMGPIO resource TS_RESET + Package() + { + 32, // PIN number = 32 + 1, // State: active = 0x1 + 0, // Function select = 0 + 1, // direction = O/P + 0, // Pull Up + 0, // Drive Strength: 0x0 = 2mA + }, + }, + + // Synaptics may need needs ~200 ms to be ready for comm + Package() + { + "DELAY", + Package() + { + 20000, // 200 Milsec delay + } + }, + }, + Package() + { + "DSTATE", + 0x3, // D3 state + + // Synaptics Power source - VDD + Package() + { + "PMICVREGVOTE", // PMICVREGVOTE resource + Package() + { + "PPP_RESOURCE_ID_LDO14_A", // VREG ID + 1, // Voltage Regulator type = LDO + 0, // Voltage is in micro volts + 0, // Force disable from s/w + 5, // power mode - Low Power Mode + 0, // head room voltage + }, + }, + + // I2C Pull Up source + // Package() + // { + // "TLMMGPIO", + // Package() + // { + // 23, // PIN number = 23 + // 0, // State: IN active = 0x0 + // 0, // Function select = 0 + // 1, // direction = Output. + // 1, // Pull Down + // 0, // Drive Strength: 0x0 = 2mA + // }, + // }, + + // RESET pin - power save mode + Package() + { + "TLMMGPIO", // TLMMGPIO resource RESET + Package() + { + 32, // PIN number = 32 + 0, // State: IN active = 0x0 + 0, // Function select = 0 + 0, // direction = Output. + 1, // Pull Down + 0, // Drive Strength: 0x0 = 2mA + }, + }, + + // TS_INT configuration - power save mode + Package() + { + "TLMMGPIO", // TLMMGPIO resource TS_INT + Package() + { + 31, // PIN number = 31 + 0, // State: IN active = 0x0 + 0, // Function select = 0 + 0, // direction = Input. + 1, // Pull Down + 0, // Drive Strength: 0x0 = 2mA + }, + }, + }, + }, + }) +} diff --git a/beryllium/displayXML.asl b/beryllium/displayXML.asl index 127c765..a0fce02 100644 --- a/beryllium/displayXML.asl +++ b/beryllium/displayXML.asl @@ -338,5 +338,17 @@ Name (PCFG, Buffer(){" 1 2 + 100 + 15 + 600000 + 80 + 40 + 1 + 21 + 1 + 1 + True + 200 + 319970 "}) \ No newline at end of file -- 2.45.2