aports/device: add support for the sony xperia z2 (sirius)

This commit is contained in:
Craig Tatlor 2018-05-01 19:16:51 +01:00 committed by Martijn Braam
parent 9db916caa0
commit 58f51f009a
6 changed files with 214 additions and 0 deletions

View file

@ -0,0 +1 @@
SUBSYSTEM=="input", ATTRS{name}=="max1187x_touchscreen_0", ENV{ID_INPUT}="1", ENV{ID_INPUT_TOUCHSCREEN}="1"

View file

@ -0,0 +1,58 @@
pkgname=device-sony-sirius
pkgver=1
pkgrel=0
pkgdesc="Sony Xperia Z2 device package"
url="https://github.com/postmarketOS"
arch="noarch"
license="MIT"
depends="postmarketos-base linux-postmarketos-qcom mkbootimg mesa-dri-freedreno"
makedepends=""
install=""
subpackages="$pkgname-weston $pkgname-x11 $pkgname-nonfree-firmware:nonfree_firmware"
source="
deviceinfo
weston.ini
99-touch.rules
modules-load.conf
brcmfmac4339-sdio.txt
"
options="!check"
package() {
install -D -m644 "$srcdir"/modules-load.conf \
"$pkgdir"/etc/modules-load.d/00-${pkgname}.conf
install -Dm644 "$srcdir"/deviceinfo \
"$pkgdir"/etc/deviceinfo
install -Dm644 "$srcdir"/99-touch.rules \
"$pkgdir"/etc/udev/rules.d/99-touch.rules
install -D -m644 "$srcdir"/brcmfmac4339-sdio.txt \
"$pkgdir"/lib/firmware/brcm/brcmfmac4339-sdio.txt
}
x11() {
install_if="$pkgname xorg-server"
depends="
libinput
xf86-input-libinput
xf86-video-modesetting"
mkdir "$subpkgdir"
}
weston() {
install_if="$pkgname weston"
install -Dm644 "$srcdir"/weston.ini \
"$subpkgdir"/etc/xdg/weston/weston.ini
}
nonfree_firmware() {
pkgdesc="Wifi/GPU firmware"
depends="linux-firmware-qcom linux-firmware-brcm firmware-adreno"
mkdir "$subpkgdir"
}
sha512sums="4726e395dd2002f0d83ddde351c68c99d10ba0f3d8bea87a438c22f02c812b948f0c55486a5ddb6ae3545f740086f25807834240688b8a818b319ec44d86b010 deviceinfo
df0fe900693e5f176076c59f5379e56aaa96c3df16a4120448f15b71f530170730b43e5fe32733c40c118a00ca3581043231a062a8a1eb0a930bfbfbb6c52a47 weston.ini
ec5e26e60a77e74befabf5cc3f85a2636ce07261e725c0a051999d321ddec056f307001ba659c91e403770ac99d38b3160fd46e235c467fefc03d0901452314d 99-touch.rules
35a5dbd90eef6c567822f1a805c6adf620bb9c6c9c2e1755407409c2fab044baa40dda9e526c45108b4a2bbf43e0ad67e3dd90c35f6a6c6e29ec5930f2d1c4a7 modules-load.conf
b99a1bc0d430a261b6ab0b5ea12f2e996ab24ece6fe40ff57357697f4db976394c655a7c7a63e7c985f6356126a6b1d920eb0077817cb65ae18250f404282a68 brcmfmac4339-sdio.txt"

View file

@ -0,0 +1,119 @@
ppr_flags=1
NVRAMRev=$Rev: 410316 $
sromrev=11
boardrev=0x1203
boardtype=0x06c5
boardflags=0x00000c01
boardflags2=0x00002000
boardflags3=0x8101188
macaddr=00:90:4c:c5:12:38
ccode=XT
regrev=212
antswitch=0
pdgain2g=7
pdgain5g=7
tworangetssi2g=0
tworangetssi5g=0
femctrl=7
pcieingress_war=15
vendid=0x14e4
devid=0x43ae
manfid=0x2d0
nocrc=1
otpimagesize=502
xtalfreq=37400
extpagain2g=2
pdetrange2g=2
extpagain5g=2
pdetrange5g=2
rxgains2gelnagaina0=0
rxgains2gtrisoa0=7
rxgains2gtrelnabypa0=0
rxgains5gelnagaina0=0
rxgains5gtrisoa0=11
rxgains5gtrelnabypa0=0
rxchain=1
txchain=1
aa2g=1
aa5g=1
tssipos5g=0
tssipos2g=0
pa2ga0=0xff7e,0x1980,0xfd1d
pa2gccka0=0xff90,0x1d52,0xfcab
pa5ga0=0xff40,0x15b9,0xfd55,0xff45,0x161c,0xfd4c,0xff73,0x17c1,0xfd4b,0xff70,0x175e,0xfd4d
pa5gbw40a0=0xff55,0x179b,0xfd2f,0xff56,0x17b8,0xfd2b,0xff61,0x17fc,0xfd2f,0xff5b,0x178f,0xfd31
pa5gbw80a0=0xff3f,0x15e4,0xfd50,0xff54,0x1736,0xfd39,0xff60,0x177a,0xfd3d,0xff63,0x174b,0xfd42
pdoffset40ma0=0
pdoffset80ma0=0
pdoffsetcckma0=0
maxp2ga0=78
maxp5ga0=68,68,68,68
cckbw202gpo=0x4444
cckbw20ul2gpo=0x0
mcsbw202gpo=0xbbbbbbbb
mcsbw402gpo=0x00000000
dot11agofdmhrbw202gpo=0x9999
ofdmlrbw202gpo=0x0099
tssifloor2g=400
mcsbw205glpo=0x33333333
mcsbw405glpo=0x44444444
mcsbw805glpo=0xcccccccc
mcsbw1605glpo=0x00000000
mcsbw205gmpo=0x33333333
mcsbw405gmpo=0x44444444
mcsbw805gmpo=0xcccccccc
mcsbw1605gmpo=0x00000000
mcsbw205ghpo=0x33333333
mcsbw405ghpo=0x44444444
mcsbw805ghpo=0xcccccccc
mcsbw1605ghpo=0x00000000
mcslr5glpo=0x0000
mcslr5gmpo=0x0000
mcslr5ghpo=0x0000
sb20in40hrrpo=0x0
sb20in80and160hr5glpo=0x0
sb40and80hr5glpo=0x0
sb20in80and160hr5gmpo=0x0
sb40and80hr5gmpo=0x0
sb20in80and160hr5ghpo=0x0
sb40and80hr5ghpo=0x0
sb20in40lrpo=0x0
sb20in80and160lr5glpo=0x0
sb40and80lr5glpo=0x0
sb20in80and160lr5gmpo=0x0
sb40and80lr5gmpo=0x0
sb20in80and160lr5ghpo=0x0
sb40and80lr5ghpo=0x0
dot11agduphrpo=0x0
dot11agduplrpo=0x0
phycal_tempdelta=25
cckdigfilttype=2
swctrlmap_5g=0x00000008,0x00000010,0x00000008,0x000000,0x038
swctrlmap_2g=0x00000001,0x00000002,0x00000001,0x040002,0x0ff
swctrlmapext_5g=0x00000000,0x00000000,0x00000000,0x000000,0x000
swctrlmapext_2g=0x00000000,0x00000000,0x00000000,0x000000,0x000
rssi_delta_2g_c0=7,11,0,0
rssi_delta_5gl_c0=3,5,4,5,4,5
rssi_delta_5gml_c0=3,4,3,5,4,5
rssi_delta_5gmu_c0=3,2,3,3,4,3
rssi_delta_5gh_c0=3,0,3,0,4,1
rssicorrnorm_c0=-5,-5
rssicorrnorm5g_c0=-4,-4,-4,-4,-4,-4,-5,-5,-5,-5,-5,-5
agbg0=0x01
aga0=0x82
muxenab=0x10
r12t=0x00420002
#Band_Edge_Offset_param
rpcal2g=0x0000
rpcal5gb0=0x0000
rpcal5gb1=0x0000
rpcal5gb2=0x0000
powoffs5g20mtna0=0,0,0,0,0,0,0
powoffs5g40mtna0=0,0,0,0,0
powoffs5g80mtna0=0,0,0,0,0
#Factory_Cal_Offset_param
powoffs2gtna0=0,0,0,0,0,0,0,0,0,0,0,0,0,0
sbpowoffs5g20mtna0=0,0,0,0
sbpowoffs5g40mtna0=0,0,0,0
sbpowoffs5g80mtna0=0,0,0,0

View file

@ -0,0 +1,29 @@
# Reference: <https://postmarketos.org/deviceinfo>
# Please use double quotes only. You can source this file in shell scripts.
deviceinfo_format_version="0"
deviceinfo_name="Sony Xperia Z2"
deviceinfo_manufacturer="Sony"
deviceinfo_date=""
deviceinfo_keyboard="false"
deviceinfo_nonfree="????"
deviceinfo_dtb=""
deviceinfo_modules_initfs=""
deviceinfo_external_storage="false"
deviceinfo_flash_method="fastboot"
deviceinfo_arch="armhf"
# Splash screen
deviceinfo_screen_width="1080"
deviceinfo_screen_height="1920"
# Fastboot related
deviceinfo_generate_bootimg="true"
deviceinfo_bootimg_qcdt="true"
deviceinfo_flash_offset_base="0"
deviceinfo_flash_offset_kernel="0x00008000"
deviceinfo_flash_offset_ramdisk="0x2900000"
deviceinfo_flash_offset_second="0x00f00000"
deviceinfo_flash_offset_tags="0x02700000"
deviceinfo_kernel_cmdline="console=ttyMSM0,115200,n8 cma=1024m msm.vram=778m"
deviceinfo_flash_pagesize="2048"

View file

@ -0,0 +1,4 @@
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
brcmfmac

View file

@ -0,0 +1,3 @@
[core]
xwayland=true
backend=drm-backend.so