device-lenovo-manning: new device

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6898
This commit is contained in:
Maanush Putcha 2025-08-08 21:51:02 +05:30 committed by Pablo Correa Gómez
parent c65e2961c6
commit 8dc5cb9d7b
No known key found for this signature in database
GPG key ID: 7A342565FF635F79
9 changed files with 4699 additions and 0 deletions

View file

@ -0,0 +1,28 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-lenovo-manning
pkgdesc="Lenovo K8 Note"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
linux-lenovo-manning
mkbootimg
postmarketos-base
"
makedepends="devicepkg-dev"
source="deviceinfo"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
sha512sums="
2529d26f9901421d36f6cf4ca4cde4c0fce6151237a023b26f7441b97f6d054ba6bcfda35d59d322cafdbd16e5d1a3f97e15339f9dd29102c9edc78cdf0c9559 deviceinfo
"

View file

@ -0,0 +1,27 @@
# Reference: <https://postmarketos.org/deviceinfo>
# Please use double quotes only. You can source this file in shell
# scripts.
deviceinfo_format_version="0"
deviceinfo_name="Lenovo K8 Note"
deviceinfo_manufacturer="Lenovo"
deviceinfo_codename="lenovo-manning"
deviceinfo_year="2017"
deviceinfo_arch="aarch64"
# Device related
deviceinfo_chassis="handset"
deviceinfo_external_storage="true"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="bootopt=64S3,32N2,64N2 buildvariant=user"
deviceinfo_generate_bootimg="true"
deviceinfo_flash_pagesize="2048"
deviceinfo_header_version="0"
deviceinfo_flash_offset_base="0x40078000"
deviceinfo_flash_offset_kernel="0x00008000"
deviceinfo_flash_offset_ramdisk="0x04f88000"
deviceinfo_flash_offset_second="0x00e88000"
deviceinfo_flash_offset_tags="0x03f88000"
deviceinfo_create_initfs_extra="true"

View file

@ -0,0 +1,74 @@
# Reference: <https://postmarketos.org/vendorkernel>
# Kernel config based on: arch/arm64/configs/manning_defconfig
pkgname=linux-lenovo-manning
pkgver=3.18.60
pkgrel=0
pkgdesc="Lenovo K8 Note kernel fork"
arch="aarch64"
_carch="arm64"
_flavor="lenovo-manning"
url="https://kernel.org"
license="GPL-2.0-only"
options="!strip !check !tracedeps pmb:cross-native"
makedepends="
bash
bc
bison
devicepkg-dev
dtc
findutils
flex
gcc6
openssl-dev
perl
"
# Compiler: GCC 6 (doesn't boot when compiled with newer versions)
if [ "${CC:0:5}" != "gcc6-" ]; then
CC="gcc6-$CC"
HOSTCC="gcc6-gcc"
CROSS_COMPILE="gcc6-$CROSS_COMPILE"
fi
# Source
_repository="android_kernel_lenovo_manning"
_commit="7b5c7a78b165f3e75e50204c27466520fa3e72ea"
_config="config-$_flavor.$arch"
source="
$pkgname-$_commit.tar.gz::https://github.com/Maanush2004/$_repository/archive/$_commit.tar.gz
$_config
fix-check-lxdialog.patch
gcc10-extern_YYLOC_global_declaration.patch
Include-cust.dtsi-created-by-DrvGen-instead-of-runni.patch
linux3.7to4.5-ARM64-remove-Sun-Solaris-style-flag-on-section.patch
use_system_dtc.patch
"
builddir="$srcdir/$_repository-$_commit"
_outdir="out"
prepare() {
default_prepare
. downstreamkernel_prepare
}
build() {
unset LDFLAGS
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
}
package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" \
"$_flavor" "$_outdir"
}
sha512sums="
92c87f218a1a8f0f15edeeb2a52ca0a761cbe580a023ba90e6b962ab669694882348dbb7209e83c8badc202b493a0676742b585bd4b593906a4d5ef3a6de4f6d linux-lenovo-manning-7b5c7a78b165f3e75e50204c27466520fa3e72ea.tar.gz
1eb38f407ded44885cabb3748040667a2d3f98f4a45f2964ea9d2412b4f8df4d60c534dfc5cbdfff881f243bf31ba586720c7881996d743d045dcdee71c12f7d config-lenovo-manning.aarch64
182be3c596b9cc267ac108d7cf03fc8c328ccc6b36770800e4dcedea8d1bb65e3f5eacf590c2948f58b1418cc60a1670ba77dde8c259e428d158c31b6e1dbaf5 fix-check-lxdialog.patch
2b48f1bf0e3f70703d2cdafc47d5e615cc7c56c70bec56b2e3297d3fa4a7a1321d649a8679614553dde8fe52ff1051dae38d5990e3744c9ca986d92187dcdbeb gcc10-extern_YYLOC_global_declaration.patch
840375b72d4e93e6c56c776e8beb26e54b75aa9d6297e2c80389d497c060e8113e5d14adcef6907cfe3caebd0e1a3e61b3742e09d2d770a8f274871c398ac01f Include-cust.dtsi-created-by-DrvGen-instead-of-runni.patch
75545ccd0082a119b9ad95fcef3523c939a5c946f8f3a5c3dde15cee1502f6c1011050a0ad5359426f018bb7ceea1c97a28c7665941bc89f365c8d11065ce0f6 linux3.7to4.5-ARM64-remove-Sun-Solaris-style-flag-on-section.patch
6c49bd6cbd7dc5f7b5eda451dc8ea52bb5c62a662eb8997e5b00dfe0ac77a7eca3e310e1134f121d5db7bcff7cc608b349180b30f1a1eccb55a7d69a0b2fc4fb use_system_dtc.patch
"

View file

@ -0,0 +1,726 @@
From d4552d400908415d5a43ba6af0db1cc35314de6f Mon Sep 17 00:00:00 2001
From: Otto Urpelainen <oturpe@iki.fi>
Date: Sat, 26 Sep 2020 11:57:28 +0300
Subject: [PATCH] Include cust.dtsi created by DrvGen instead of running DrvGen
during build
DrvGen is a MediaTek proprietary tool that automatically generates device
tree files. Getting the tool to run in postmarketOS build environment is quite
challenging, as the tool has been built using glibc, but postmarketOS uses
musl. Disabling the tool execution here, instead the generated file is directly
in the source tree.
Signed-off-by: Maanush Putcha <p.maanush@gmail.com>
---
arch/arm64/Makefile | 2 +-
arch/arm64/boot/dts/manning/cust.dtsi | 685 ++++++++++++++++++++++++++++++++++++
2 files changed, 686 insertions(+), 1 deletion(-)
create mode 100644 arch/arm64/boot/dts/manning
diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile
index 374c832bc22..413a162c78d 100755
--- a/arch/arm64/Makefile
+++ b/arch/arm64/Makefile
@@ -76,7 +76,7 @@ all: $(KBUILD_IMAGE) $(KBUILD_DTBS)
MTK_PLATFORM := $(CONFIG_MTK_PLATFORM:"%"=%)
MTK_PROJECT := $(CONFIG_ARCH_MTK_PROJECT:"%"=%)
export MTK_PLATFORM MTK_PROJECT MTK_TARGET_PROJECT
--include $(srctree)/scripts/drvgen/drvgen.mk
+#-include $(srctree)/scripts/drvgen/drvgen.mk
archprepare: $(DRVGEN_FILE_LIST)
dtbs: $(DRVGEN_FILE_LIST)
diff --git a/arch/arm64/boot/dts/manning/cust.dtsi b/arch/arm64/boot/dts/manning/cust.dtsi
new file mode 100644
index 00000000000..d143df90a93
--- /dev/null
+++ b/arch/arm64/boot/dts/manning/cust.dtsi
@@ -0,0 +1,685 @@
+/*
+ * Generated by MTK SP DrvGen Version: 3.5.160809 for MT6797.
+ * 2025-08-06 14:39:10
+ * Do Not Modify The File.
+ * Copyright Mediatek Inc. (c) 2016.
+*/
+
+/*************************
+ * ADC DTSI File
+*************************/
+
+&auxadc {
+ adc_channel@ {
+ compatible = "mediatek,adc_channel";
+ mediatek,temperature0 = <0>;
+ mediatek,temperature1 = <1>;
+ mediatek,adc_fdd_rf_params_dynamic_custom_ch = <2>;
+ status = "okay";
+ };
+};
+
+
+/*************************
+ * CLK_BUF DTSI File
+*************************/
+
+&pmic_clock_buffer_ctrl {
+ mediatek,clkbuf-quantity = <4>;
+ mediatek,clkbuf-config = <0 0 0 0>;
+ mediatek,clkbuf-driving-current = <2 2 2 2>;
+ status = "okay";
+};
+
+&rf_clock_buffer_ctrl {
+ mediatek,clkbuf-quantity = <4>;
+ mediatek,clkbuf-config = <2 0 1 1>;
+ mediatek,clkbuf-driving-current = <2 2 2 2 >;
+ status = "okay";
+};
+
+
+/*************************
+ * I2C DTSI File
+*************************/
+
+&i2c0 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ clock-frequency = <400000>;
+ mediatek,use-open-drain;
+ sw_charger_mtk:sw_charger@6a {
+ compatible = "mediatek,sw_charger";
+ reg = <0x6a>;
+ status = "okay";
+ };
+
+ i2c_lcd_bias_mtk:i2c_lcd_bias@3e {
+ compatible = "mediatek,i2c_lcd_bias";
+ reg = <0x3e>;
+ status = "okay";
+ };
+
+ buck_boost_mtk:buck_boost@70 {
+ compatible = "mediatek,buck_boost";
+ reg = <0x70>;
+ status = "okay";
+ };
+
+ strobe_main_mtk:strobe_main@63 {
+ compatible = "mediatek,strobe_main";
+ reg = <0x63>;
+ status = "okay";
+ };
+
+ smart_pa_mtk:smart_pa@58 {
+ compatible = "mediatek,smart_pa";
+ reg = <0x58>;
+ status = "okay";
+ };
+
+ usb_type_c_mtk:usb_type_c@22 {
+ compatible = "mediatek,usb_type_c";
+ reg = <0x22>;
+ status = "okay";
+ };
+
+};
+
+&i2c1 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ clock-frequency = <400000>;
+ mediatek,use-open-drain;
+ msensor_mtk:msensor@0c {
+ compatible = "mediatek,msensor";
+ reg = <0x0c>;
+ status = "okay";
+ };
+
+ gyro_mtk:gyro@69 {
+ compatible = "mediatek,gyro";
+ reg = <0x69>;
+ status = "okay";
+ };
+
+ gsensor_mtk:gsensor@68 {
+ compatible = "mediatek,gsensor";
+ reg = <0x68>;
+ status = "okay";
+ };
+
+ barometer_mtk:barometer@77 {
+ compatible = "mediatek,barometer";
+ reg = <0x77>;
+ status = "okay";
+ };
+
+ alsps_mtk:alsps@53 {
+ compatible = "mediatek,alsps";
+ reg = <0x53>;
+ status = "okay";
+ };
+
+ humidity_mtk:humidity@5f {
+ compatible = "mediatek,humidity";
+ reg = <0x5f>;
+ status = "okay";
+ };
+
+};
+
+&i2c2 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ clock-frequency = <300000>;
+ mediatek,use-open-drain;
+ camera_main_mtk:camera_main@36 {
+ compatible = "mediatek,camera_main";
+ reg = <0x36>;
+ status = "okay";
+ };
+
+ camera_main_af_mtk:camera_main_af@72 {
+ compatible = "mediatek,camera_main_af";
+ reg = <0x72>;
+ status = "okay";
+ };
+
+ camera_main_eeprom_mtk:camera_main_eeprom@37 {
+ compatible = "mediatek,camera_main_eeprom";
+ reg = <0x37>;
+ status = "okay";
+ };
+
+};
+
+&i2c3 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ clock-frequency = <400000>;
+ mediatek,use-open-drain;
+ camera_sub_mtk:camera_sub@2d {
+ compatible = "mediatek,camera_sub";
+ reg = <0x2d>;
+ status = "okay";
+ };
+
+ camera_sub_af_mtk:camera_sub_af@0c {
+ compatible = "mediatek,camera_sub_af";
+ reg = <0x0c>;
+ status = "okay";
+ };
+
+ camera_sub_eeprom_mtk:camera_sub_eeprom@2e {
+ compatible = "mediatek,camera_sub_eeprom";
+ reg = <0x2e>;
+ status = "okay";
+ };
+
+};
+
+&i2c4 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ clock-frequency = <400000>;
+ mediatek,use-open-drain;
+ cap_touch_mtk:cap_touch@38 {
+ compatible = "mediatek,cap_touch";
+ reg = <0x38>;
+ status = "okay";
+ };
+
+};
+
+&i2c5 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ clock-frequency = <400000>;
+ mediatek,use-open-drain;
+ nfc_mtk:nfc@28 {
+ compatible = "mediatek,nfc";
+ reg = <0x28>;
+ status = "okay";
+ };
+
+};
+
+&i2c6 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ clock-frequency = <3400000>;
+ mediatek,use-push-pull;
+ vproc_buck_mtk:vproc_buck@68 {
+ compatible = "mediatek,vproc_buck";
+ reg = <0x68>;
+ status = "okay";
+ };
+
+};
+
+&i2c7 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ clock-frequency = <3400000>;
+ mediatek,use-push-pull;
+ vgpu_buck_mtk:vgpu_buck@60 {
+ compatible = "mediatek,vgpu_buck";
+ reg = <0x60>;
+ status = "okay";
+ };
+
+};
+
+&i2c8 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ clock-frequency = <400000>;
+ mediatek,use-open-drain;
+ camera_main_hw_mtk:camera_main_hw@36 {
+ compatible = "mediatek,camera_main_hw";
+ reg = <0x36>;
+ status = "okay";
+ };
+
+};
+
+&i2c9 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ clock-frequency = <400000>;
+ mediatek,use-open-drain;
+};
+
+
+
+/*************************
+ * GPIO DTSI File
+*************************/
+
+&gpio_usage_mapping {
+ GPIO_SIM1_HOT_PLUG = <112>;
+ GPIO_SIM1_SCLK = <126>;
+ GPIO_SIM1_SRST = <127>;
+ GPIO_SIM1_SIO = <128>;
+ GPIO_SIM2_SCLK = <155>;
+ GPIO_SIM2_SRST = <156>;
+ GPIO_SIM2_SIO = <157>;
+};
+
+
+/*************************
+ * EINT DTSI File
+*************************/
+
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/interrupt-controller/arm-gic.h>
+
+&eintc {
+ mediatek,mapping_table_entry = <172>;
+ /* <gpio_pin, eint_pin> */
+ mediatek,mapping_table = <28 17>,
+ <29 18>,
+ <31 19>,
+ <32 20>,
+ <33 21>,
+ <34 22>,
+ <35 23>,
+ <36 24>,
+ <37 25>,
+ <38 26>,
+ <39 27>,
+ <40 28>,
+ <41 29>,
+ <42 30>,
+ <43 31>,
+ <44 32>,
+ <45 33>,
+ <46 34>,
+ <47 35>,
+ <48 36>,
+ <49 37>,
+ <50 38>,
+ <51 39>,
+ <52 40>,
+ <53 41>,
+ <54 42>,
+ <55 43>,
+ <56 44>,
+ <57 45>,
+ <58 46>,
+ <59 47>,
+ <60 48>,
+ <61 0>,
+ <62 1>,
+ <63 2>,
+ <64 3>,
+ <65 4>,
+ <66 5>,
+ <67 6>,
+ <68 7>,
+ <69 49>,
+ <70 50>,
+ <71 51>,
+ <72 52>,
+ <73 53>,
+ <74 54>,
+ <75 55>,
+ <76 56>,
+ <77 57>,
+ <78 58>,
+ <79 59>,
+ <80 60>,
+ <81 61>,
+ <82 62>,
+ <83 63>,
+ <84 64>,
+ <85 8>,
+ <86 9>,
+ <87 10>,
+ <88 11>,
+ <89 12>,
+ <90 13>,
+ <91 14>,
+ <92 15>,
+ <93 16>,
+ <94 65>,
+ <95 66>,
+ <96 67>,
+ <97 68>,
+ <98 69>,
+ <106 73>,
+ <107 74>,
+ <108 75>,
+ <109 76>,
+ <110 77>,
+ <111 78>,
+ <112 79>,
+ <113 80>,
+ <126 81>,
+ <127 82>,
+ <128 83>,
+ <129 84>,
+ <130 85>,
+ <131 86>,
+ <132 87>,
+ <133 88>,
+ <134 89>,
+ <135 90>,
+ <136 91>,
+ <137 92>,
+ <138 93>,
+ <139 94>,
+ <140 95>,
+ <141 96>,
+ <151 97>,
+ <152 98>,
+ <153 99>,
+ <154 100>,
+ <155 101>,
+ <156 102>,
+ <157 103>,
+ <179 104>,
+ <180 105>,
+ <181 106>,
+ <183 107>,
+ <184 108>,
+ <185 109>,
+ <186 110>,
+ <187 111>,
+ <188 112>,
+ <189 113>,
+ <190 114>,
+ <191 115>,
+ <192 116>,
+ <193 117>,
+ <194 118>,
+ <195 119>,
+ <196 120>,
+ <197 121>,
+ <198 122>,
+ <199 123>,
+ <200 124>,
+ <201 125>,
+ <202 126>,
+ <203 127>,
+ <204 128>,
+ <205 129>,
+ <206 130>,
+ <207 131>,
+ <208 132>,
+ <209 133>,
+ <210 134>,
+ <211 135>,
+ <212 136>,
+ <213 137>,
+ <214 138>,
+ <215 139>,
+ <216 140>,
+ <217 141>,
+ <218 142>,
+ <219 143>,
+ <232 144>,
+ <233 145>,
+ <234 146>,
+ <235 147>,
+ <236 148>,
+ <237 149>,
+ <238 150>,
+ <239 151>,
+ <240 152>,
+ <241 153>,
+ <242 154>,
+ <243 155>,
+ <244 156>,
+ <245 157>,
+ <246 158>,
+ <247 159>,
+ <248 160>,
+ <249 161>,
+ <250 162>,
+ <251 163>,
+ <252 164>,
+ <253 165>,
+ <254 166>,
+ <255 167>,
+ <256 168>,
+ <257 169>,
+ <258 170>,
+ <259 171>,
+ <260 172>,
+ <261 173>,
+ <262 176>;
+ mediatek,builtin_entry = <4>;
+ /* gpio, built-in func mode, built-in eint */
+ mediatek,builtin_mapping = <61 2 186>, /* 2:IDDIG */
+ <93 2 186>, /* 2:IDDIG */
+ <181 1 186>, /* 1:IDDIG */
+ <107 2 186>;};
+
+&ext_buck_oc {
+ interrupt-parent = <&eintc>;
+ interrupts = <61 IRQ_TYPE_LEVEL_LOW>;
+ debounce = <61 0>;
+ status = "okay";
+};
+
+&gyro {
+ interrupt-parent = <&eintc>;
+ interrupts = <63 IRQ_TYPE_LEVEL_HIGH>;
+ debounce = <63 0>;
+ status = "okay";
+};
+
+&mse {
+ interrupt-parent = <&eintc>;
+ interrupts = <64 IRQ_TYPE_LEVEL_HIGH>;
+ debounce = <64 0>;
+ status = "okay";
+};
+
+&chr_stat {
+ interrupt-parent = <&eintc>;
+ interrupts = <66 IRQ_TYPE_LEVEL_LOW>;
+ debounce = <66 0>;
+ status = "okay";
+};
+
+&touch {
+ interrupt-parent = <&eintc>;
+ interrupts = <68 IRQ_TYPE_LEVEL_LOW>;
+ debounce = <68 0>;
+ status = "okay";
+};
+
+&goodix_fp {
+ interrupt-parent = <&eintc>;
+ interrupts = <86 IRQ_TYPE_LEVEL_HIGH>;
+ debounce = <86 0>;
+ status = "okay";
+};
+
+&eint_fusb300_det_in {
+ interrupt-parent = <&eintc>;
+ interrupts = <87 IRQ_TYPE_LEVEL_LOW>;
+ debounce = <87 0>;
+ status = "okay";
+};
+
+&alsps_mtk {
+ interrupt-parent = <&eintc>;
+ interrupts = <88 IRQ_TYPE_LEVEL_LOW>;
+ debounce = <88 0>;
+ status = "okay";
+};
+
+&accdet {
+ interrupt-parent = <&eintc>;
+ interrupts = <92 IRQ_TYPE_LEVEL_LOW>;
+ debounce = <92 256000>;
+ status = "okay";
+};
+
+&mrdump_ext_rst {
+ interrupt-parent = <&eintc>;
+ interrupts = <93 IRQ_TYPE_LEVEL_LOW>;
+ debounce = <93 512000>;
+ status = "okay";
+};
+
+&irq_nfc {
+ interrupt-parent = <&eintc>;
+ interrupts = <58 IRQ_TYPE_LEVEL_HIGH>;
+ debounce = <58 0>;
+ status = "okay";
+};
+
+&dsi_te {
+ interrupt-parent = <&eintc>;
+ interrupts = <179 IRQ_TYPE_EDGE_RISING>;
+ debounce = <179 0>;
+ status = "okay";
+};
+
+&otg_iddig {
+ interrupt-parent = <&eintc>;
+ interrupts = <181 IRQ_TYPE_LEVEL_LOW>;
+ debounce = <181 0>;
+ status = "okay";
+};
+
+&swtp {
+ interrupt-parent = <&eintc>;
+ interrupts = <215 IRQ_TYPE_LEVEL_LOW>;
+ debounce = <215 256000>;
+ status = "okay";
+};
+
+
+
+/*************************
+ * MD1_EINT DTSI File
+*************************/
+
+&eintc {
+ MD1_SIM1_HOT_PLUG_EINT@0 {
+ compatible = "mediatek,MD1_SIM1_HOT_PLUG_EINT-eint";
+ interrupts = <0 8>;
+ debounce = <0 100000>;
+ dedicated = <0 0>;
+ src_pin = <0 1>;
+ sockettype = <0 0>;
+ status = "okay";
+ };
+
+ MD1_SIM2_HOT_PLUG_EINT@1 {
+ compatible = "mediatek,MD1_SIM2_HOT_PLUG_EINT-eint";
+ interrupts = <1 8>;
+ debounce = <1 100000>;
+ dedicated = <1 0>;
+ src_pin = <1 0>;
+ sockettype = <1 0>;
+ status = "okay";
+ };
+
+};
+
+
+/*************************
+ * PMIC DTSI File
+*************************/
+
+&mt_pmic_vcama_ldo_reg {
+ regulator-name = "vcama";
+ regulator-default-on = <1>; /* 0:skip, 1: off, 2:on */
+ status = "okay";
+};
+&mt_pmic_vsim1_ldo_reg {
+ regulator-name = "vsim1";
+ regulator-default-on = <1>; /* 0:skip, 1: off, 2:on */
+ status = "okay";
+};
+&mt_pmic_vsim2_ldo_reg {
+ regulator-name = "vsim2";
+ regulator-default-on = <1>; /* 0:skip, 1: off, 2:on */
+ status = "okay";
+};
+&mt_pmic_vldo28_ldo_reg {
+ regulator-name = "vldo28";
+ regulator-default-on = <2>; /* 0:skip, 1: off, 2:on */
+ status = "okay";
+};
+&mt_pmic_vgp3_ldo_reg {
+ regulator-name = "vgp3";
+ regulator-default-on = <0>; /* 0:skip, 1: off, 2:on */
+ status = "okay";
+};
+&mt_pmic_vibr_ldo_reg {
+ regulator-name = "vibr";
+ regulator-default-on = <1>; /* 0:skip, 1: off, 2:on */
+ status = "okay";
+};
+&mt_pmic_vcamd_ldo_reg {
+ regulator-name = "vcamd";
+ regulator-default-on = <1>; /* 0:skip, 1: off, 2:on */
+ status = "okay";
+};
+&mt_pmic_vcamio_ldo_reg {
+ regulator-name = "vcamio";
+ regulator-default-on = <1>; /* 0:skip, 1: off, 2:on */
+ status = "okay";
+};
+
+&kd_camera_hw1 {
+ vcama-supply = <&mt_pmic_vcama_ldo_reg>;
+ vcama_main2-supply = <&mt_pmic_vcama_ldo_reg>;
+ vcama_sub-supply = <&mt_pmic_vcama_ldo_reg>;
+ vcamaf-supply = <&mt_pmic_vldo28_ldo_reg>;
+ vcamaf_main2-supply = <&mt_pmic_vldo28_ldo_reg>;
+ vcamaf_sub-supply = <&mt_pmic_vldo28_ldo_reg>;
+ vcamd-supply = <&mt_pmic_vcamd_ldo_reg>;
+ vcamd_main2-supply = <&mt_pmic_vcamd_ldo_reg>;
+ vcamd_sub-supply = <&mt_pmic_vcamd_ldo_reg>;
+ vcamio-supply = <&mt_pmic_vcamio_ldo_reg>;
+ vcamio_main2-supply = <&mt_pmic_vcamio_ldo_reg>;
+ vcamio_sub-supply = <&mt_pmic_vcamio_ldo_reg>;
+ status = "okay";
+};
+
+&touch {
+ vtouch-supply = <&mt_pmic_vldo28_ldo_reg>;
+ status = "okay";
+};
+
+
+/*************************
+ * POWER DTSI File
+*************************/
+
+
+
+/*************************
+ * KPD DTSI File
+*************************/
+
+&keypad {
+ mediatek,kpd-key-debounce = <1024>;
+ mediatek,kpd-sw-pwrkey = <116>;
+ mediatek,kpd-hw-pwrkey = <8>;
+ mediatek,kpd-sw-rstkey = <114>;
+ mediatek,kpd-hw-rstkey = <17>;
+ mediatek,kpd-use-extend-type = <0>;
+ /*HW Keycode [0~71] -> Linux Keycode*/
+ mediatek,kpd-hw-map-num = <72>;
+ mediatek,kpd-hw-init-map = <115 485 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 >;
+ mediatek,kpd-pwrkey-eint-gpio = <0>;
+ mediatek,kpd-pwkey-gpio-din = <0>;
+ mediatek,kpd-hw-dl-key0 = <0>;
+ mediatek,kpd-hw-dl-key1 = <17>;
+ mediatek,kpd-hw-dl-key2 = <8>;
+ mediatek,kpd-hw-recovery-key = <0>;
+ mediatek,kpd-hw-factory-key = <17>;
+ status = "okay";
+};
+
+
--
2.50.1

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1 @@
../../.shared-patches/linux/fix-check-lxdialog.patch

View file

@ -0,0 +1 @@
../../.shared-patches/linux/gcc10-extern_YYLOC_global_declaration.patch

View file

@ -0,0 +1 @@
../../.shared-patches/linux/linux3.7to4.5-ARM64-remove-Sun-Solaris-style-flag-on-section.patch

View file

@ -0,0 +1,13 @@
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index b40e5154feb..c0932ed56b4 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -284,7 +284,7 @@ quiet_cmd_dtc = DTC $@
cmd_dtc = mkdir -p $(dir ${dtc-tmp}) ; \
$(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \
- $(srctree)/scripts/dtc/dtc_overlay -@ -O dtb -o $@ -b 0 \
+ dtc -@ -O dtb -o $@ -b 0 \
-i $(dir $<) $(DTC_FLAGS) \
-d $(depfile).dtc.tmp $(dtc-tmp) ; \
cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile)