init commit
This commit is contained in:
@@ -0,0 +1 @@
|
||||
/lib/firmware/nokia,argon-gc9305-v2-panel.bin
|
||||
@@ -0,0 +1,62 @@
|
||||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
maintainer=""
|
||||
pkgname=device-nokia-argon
|
||||
pkgdesc="Nokia 8110 4G"
|
||||
pkgver=10
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="GPL-2.0-only"
|
||||
arch="armv7"
|
||||
options="!check !archcheck"
|
||||
depends="
|
||||
linux-postmarketos-qcom-msm8916
|
||||
mkbootimg
|
||||
postmarketos-base
|
||||
soc-qcom-msm8909
|
||||
soc-qcom-msm8916-rproc
|
||||
"
|
||||
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
||||
makedepends="devicepkg-dev mipi-dbi-cmd"
|
||||
_panel="nokia,argon-gc9305-v2-panel"
|
||||
source="
|
||||
00-nokia-argon-display.files
|
||||
deviceinfo
|
||||
kernel-cmdline.conf
|
||||
modules-initfs
|
||||
$_panel.txt
|
||||
"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
mkdir -p "$builddir"
|
||||
mipi-dbi-cmd "$builddir"/"$_panel".bin \
|
||||
"$srcdir"/"$_panel".txt
|
||||
}
|
||||
|
||||
package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
# Package display init sequence
|
||||
install -Dm644 "$builddir"/"$_panel".bin -t \
|
||||
"$pkgdir"/lib/firmware/
|
||||
install -Dm644 "$srcdir"/00-nokia-argon-display.files -t \
|
||||
"$pkgdir"/usr/share/mkinitfs/files/
|
||||
}
|
||||
|
||||
nonfree_firmware() {
|
||||
pkgdesc="GPU/WiFi/BT/Modem/Video firmware"
|
||||
depends="
|
||||
firmware-qcom-adreno-a300
|
||||
msm-firmware-loader
|
||||
firmware-nokia-argon-venus
|
||||
firmware-nokia-argon-wcnss-nv
|
||||
"
|
||||
mkdir "$subpkgdir"
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
66302bb5d83c4ba155ff62405fb9a374ab76e1912411310b1ad75e00c216b6868da4e2b6f3987c97146389aa44b2b2c26f0ca0819566be45c9d0d2dd1d3b72f1 00-nokia-argon-display.files
|
||||
ef4587f749b941761cb7838d9e21e0bd9436693a4a8bd38ac5d7cae6e9ceb2c1e7358d5fe9a34b23d6ff484c81079533eaee6c3e609d8bc685902ff150e1e79d deviceinfo
|
||||
37e1e5f8839b624ab3eb850a24ed4daeb61a651257a1fb593f49cb869323e5d1b339c831a18eb26a9d7bd0a618ea9eb2bb9bf3882133af5f2606a878e6d39c67 kernel-cmdline.conf
|
||||
749fa5911f53f65c1a18a8768d374d1ea39ef47ed61146a5f79d669250788501434a059cfff65b83cb54eb7273841686b4a3a04f20aaec6ec7f742e14623c8bc modules-initfs
|
||||
dd82fd4732694a24c91339b5c5fbb0bf485b3b2da3c17c11b72a02e90e9827c367504c99894556dd8273f927408cdb187325e5f3b9ea9e4a82e3cb3798cb2816 nokia,argon-gc9305-v2-panel.txt
|
||||
"
|
||||
@@ -0,0 +1,36 @@
|
||||
# Reference: <https://postmarketos.org/deviceinfo>
|
||||
# Please use double quotes only. You can source this file in shell
|
||||
# scripts.
|
||||
|
||||
deviceinfo_format_version="0"
|
||||
deviceinfo_name="Nokia 8110 4G"
|
||||
deviceinfo_manufacturer="Nokia"
|
||||
deviceinfo_codename="nokia-argon"
|
||||
deviceinfo_year="2018"
|
||||
deviceinfo_dtb="qcom-msm8905-nokia-argon"
|
||||
deviceinfo_append_dtb="true"
|
||||
deviceinfo_arch="armv7"
|
||||
deviceinfo_swap_size_recommended="512"
|
||||
|
||||
# Device related
|
||||
deviceinfo_chassis="handset"
|
||||
deviceinfo_external_storage="true"
|
||||
deviceinfo_screen_width="240"
|
||||
deviceinfo_screen_height="320"
|
||||
deviceinfo_drm="true"
|
||||
|
||||
# Bootloader related
|
||||
deviceinfo_flash_method="fastboot"
|
||||
deviceinfo_generate_bootimg="true"
|
||||
deviceinfo_generate_extlinux_config="true"
|
||||
deviceinfo_flash_pagesize="2048"
|
||||
deviceinfo_header_version="0"
|
||||
deviceinfo_flash_offset_base="0x80000000"
|
||||
deviceinfo_flash_offset_kernel="0x00008000"
|
||||
deviceinfo_flash_offset_ramdisk="0x02700000"
|
||||
deviceinfo_flash_offset_second="0x00f00000"
|
||||
deviceinfo_flash_offset_tags="0x02500000"
|
||||
deviceinfo_flash_sparse="true"
|
||||
|
||||
# lk2nd does not support GPT for subpartitions/SD cards yet
|
||||
deviceinfo_partition_type="msdos"
|
||||
@@ -0,0 +1,2 @@
|
||||
earlycon
|
||||
console=ttyMSM0,115200
|
||||
@@ -0,0 +1,5 @@
|
||||
pm8916-lbc
|
||||
pm8916-bms-vm
|
||||
panel-mipi-dbi
|
||||
matrix_keypad
|
||||
matrix_keymap
|
||||
Binary file not shown.
@@ -0,0 +1,34 @@
|
||||
# Based on arch/arm/boot/dts/argon/spi-panel-gc9305-v2-qvga-cmd from
|
||||
# the downstream kernel, which is:
|
||||
# Copyright (c) 2017, The Linux Foundation. All rights reserved.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License version 2 and
|
||||
# only version 2 as published by the Free Software Foundation.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
command 0x36 0x00
|
||||
command 0x3a 0x55 # format: 65K 16bit
|
||||
command 0x35 0x00 # TE v-blanking
|
||||
command 0xb2 0x0c 0x0c 0x00 0x33 0x33 # porch setting
|
||||
command 0xb7 0x75 # gate control VGH VGL
|
||||
command 0xbb 0x34 # Vcoms setting 1.4v
|
||||
command 0xc0 0x2c # LCM control
|
||||
command 0xc2 0x01 # VDV VRH COMMAND ENABLE
|
||||
command 0xc3 0x0d # VRH SET
|
||||
command 0xc4 0x20 # VDV SET
|
||||
command 0xc6 0xef # frame rate
|
||||
command 0x44 0x00 0x00 # SET TEARING SCAN LINE
|
||||
command 0xd0 0xa4 0xa1 # power control 1
|
||||
|
||||
# gamma
|
||||
command 0xe0 0xd0 0x02 0x09 0x0d 0x0e 0x19 0x30 0x51 0x43 0x09 0x14 0x13 0x18 0x21
|
||||
command 0xe1 0xd0 0x02 0x09 0x0d 0x0d 0x18 0x32 0x46 0x42 0x09 0x13 0x13 0x17 0x21
|
||||
|
||||
command 0x11 # sleep out
|
||||
delay 120
|
||||
command 0x29 # display on
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user