Finalize verified 2720 Flip release source and untrack image outputs
This commit is contained in:
1 parent
2a3078e42c
commit
1c011b360a
121 files changed
+8467
-686
No files matched your search
@@ -1,2 +1 @@
|
||||
earlycon
|
||||
console=ttyMSM0,115200
|
||||
@@ -0,0 +1,124 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
//
|
||||
// Nokia 2720 Flip (nokia-beatles) external 240x240 GC9305 panel.
|
||||
//
|
||||
// Both the internal 240x320 panel and the external cover panel hang off the
|
||||
// same BLSP1 QUP5 SPI lines; gpio13 selects which one the bus reaches. The
|
||||
// spi-mux driver selects the mux state from the child chip-select number,
|
||||
// so display@0 keeps the internal panel on state 0 and display@1 selects the
|
||||
// external panel on state 1. panel-mipi-dbi-spi creates a second DRM device
|
||||
// and DRM fbdev emulation exposes it as /dev/fb1 for bananarchy-cover-idle.
|
||||
//
|
||||
// The external child is named display@1, not cover@1: dtc keeps SPI children
|
||||
// in lexical node-name order, so display@0 is registered before display@1.
|
||||
// That keeps the 240x320 internal panel on /dev/fb0 for Xorg's fbdev config
|
||||
// while the external panel gets /dev/fb1 for the idle cover renderer.
|
||||
// The external panel has no dc-gpios property: mipi_dbi_spi_init() then uses
|
||||
// MIPI DBI Type C Option 1 (9-bit SPI with the D/C bit as the ninth bit), so
|
||||
// it does not fight panel-mipi-dbi-spi for the internal panel's gpio110/DC.
|
||||
// Requires CONFIG_MULTIPLEXER, CONFIG_MUX_GPIO and CONFIG_SPI_MUX (all =m in
|
||||
// patches/kernel/config-bananarchy-msm8909.armv7) plus
|
||||
// /lib/firmware/nokia,beatles-gc9305-ext-panel.bin.
|
||||
//
|
||||
// This overlay is compile-checked but NOT applied to the shipping DTB.
|
||||
// Live testing broke the main panel/keypad path, so the shipping DTS keeps
|
||||
// the single internal panel and spidev@1 fallback until gpio13/reset/DC
|
||||
// routing is validated on hardware.
|
||||
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
fragment@0 {
|
||||
target-path = "/";
|
||||
__overlay__ {
|
||||
spi_panel_mux: spi-panel-mux {
|
||||
compatible = "gpio-mux";
|
||||
#mux-control-cells = <0>;
|
||||
mux-gpios = <0x27 13 0>;
|
||||
idle-state = <0>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target-path = "/soc@0/spi@78b9000";
|
||||
__overlay__ {
|
||||
spi-mux@0 {
|
||||
compatible = "spi-mux";
|
||||
reg = <0>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
spi-max-frequency = <50000000>;
|
||||
mux-controls = <&spi_panel_mux>;
|
||||
|
||||
display@0 {
|
||||
compatible = "nokia,beatles-gc9305-panel", "panel-mipi-dbi-spi";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <50000000>;
|
||||
reset-gpios = <0x27 25 0>;
|
||||
dc-gpios = <0x27 110 0>;
|
||||
backlight = <0x6b>;
|
||||
power-supply = <0x6c>;
|
||||
io-supply = <0x6d>;
|
||||
width-mm = <36>;
|
||||
height-mm = <48>;
|
||||
pinctrl-0 = <0x6e>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
panel-timing {
|
||||
hactive = <240>;
|
||||
vactive = <320>;
|
||||
hback-porch = <0>;
|
||||
vback-porch = <0>;
|
||||
hfront-porch = <0>;
|
||||
vfront-porch = <0>;
|
||||
hsync-len = <0>;
|
||||
vsync-len = <0>;
|
||||
clock-frequency = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
display@1 {
|
||||
compatible = "nokia,beatles-gc9305-ext-panel", "panel-mipi-dbi-spi";
|
||||
reg = <1>;
|
||||
spi-max-frequency = <50000000>;
|
||||
reset-gpios = <0x27 23 0>;
|
||||
power-supply = <0x6c>;
|
||||
io-supply = <0x6d>;
|
||||
width-mm = <30>;
|
||||
height-mm = <30>;
|
||||
pinctrl-0 = <0x92>;
|
||||
pinctrl-names = "default";
|
||||
write-only;
|
||||
|
||||
panel-timing {
|
||||
hactive = <240>;
|
||||
vactive = <240>;
|
||||
hback-porch = <0>;
|
||||
vback-porch = <0>;
|
||||
hfront-porch = <0>;
|
||||
vfront-porch = <0>;
|
||||
hsync-len = <0>;
|
||||
vsync-len = <0>;
|
||||
clock-frequency = <0>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target-path = "/soc@0/spi@78b9000/display@0";
|
||||
__overlay__ {
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@3 {
|
||||
target-path = "/soc@0/spi@78b9000/spidev@1";
|
||||
__overlay__ {
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -27,8 +27,12 @@ deviceinfo_flash_pagesize="2048"
|
||||
deviceinfo_header_version="0"
|
||||
deviceinfo_flash_offset_base="0x80000000"
|
||||
deviceinfo_flash_offset_kernel="0x00008000"
|
||||
deviceinfo_flash_offset_ramdisk="0x02700000"
|
||||
# Stock 2720 Flip aboot load addresses (archived pmOS device-nokia-beatles
|
||||
# deviceinfo), not the 8110 4G addresses. These only affect boot.img, used by
|
||||
# the rooted-KaiOS "dd boot.img to recovery" fallback; lk2nd/extlinux EDL
|
||||
# flashing loads vmlinuz + initramfs directly.
|
||||
deviceinfo_flash_offset_ramdisk="0x01000000"
|
||||
deviceinfo_flash_offset_second="0x00f00000"
|
||||
deviceinfo_flash_offset_tags="0x02500000"
|
||||
deviceinfo_flash_offset_tags="0x00000100"
|
||||
deviceinfo_flash_sparse="true"
|
||||
deviceinfo_partition_type="msdos"
|
||||
@@ -1,2 +1 @@
|
||||
earlycon
|
||||
console=ttyMSM0,115200
|
||||
Binary file not shown.
@@ -0,0 +1,41 @@
|
||||
# Nokia 2720 Flip (nokia-beatles) 1.3-inch 240x240 external GC9305 panel.
|
||||
#
|
||||
# Derived from the KaiOS 3.10 downstream DTS in the archived postmarketOS
|
||||
# linux-nokia-beatles package (0004-dts-adaptations.patch):
|
||||
# spi_gc9305_v2_qvga_ext_cmd, qcom,mdss-spi-on-command:
|
||||
# fe, ef, 3a 05, 35 00, 2a 00 00 00 ef, 2b 00 00 00 ef, 2c,
|
||||
# delay 120, 11, 29, 2c
|
||||
# qcom,mdss-spi-panel-width = 240, height = 240, bpp = 16.
|
||||
#
|
||||
# The register/gamma block below is the one already proven on this device's
|
||||
# internal GC9305 panel (nokia,beatles-gc9305-panel.txt); the two column/page
|
||||
# windows are set to 0..239 for the square cover panel. The blob is consumed
|
||||
# by panel-mipi-dbi-spi (kernel) or by bananarchy-coverd's spidev backend.
|
||||
#
|
||||
# This init sequence is derived from vendor sources but has NOT yet been
|
||||
# verified on 2720 Flip hardware; see NOKIA-2720-FLIP.md.
|
||||
|
||||
command 0xfe
|
||||
command 0xef
|
||||
command 0x36 0x00 # MADCTL
|
||||
command 0x3a 0x55 # 65K 16-bit RGB565
|
||||
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
|
||||
command 0xc0 0x2c # LCM control
|
||||
command 0xc2 0x01 # VDV/VRH enable
|
||||
command 0xc3 0x0d # VRH set
|
||||
command 0xc4 0x20 # VDV set
|
||||
command 0xc6 0xef # frame rate
|
||||
command 0x44 0x00 0x00 # tearing scan line
|
||||
command 0xd0 0xa4 0xa1 # power control 1
|
||||
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 0x2a 0x00 0x00 0x00 0xef # column address 0..239
|
||||
command 0x2b 0x00 0x00 0x00 0xef # page address 0..239
|
||||
command 0x2c # memory write
|
||||
command 0x11 # sleep out
|
||||
delay 120
|
||||
command 0x29 # display on
|
||||
command 0x2c
|
||||
Binary file not shown.
@@ -7,6 +7,9 @@
|
||||
model = "Nokia 2720 Flip";
|
||||
compatible = "nokia,beatles", "nokia,argon", "qcom,msm8905", "qcom,msm8909";
|
||||
chassis-type = "handset";
|
||||
qcom,msm-id = <0x14b 0x00>;
|
||||
qcom,board-id = <0x1000b 0x100>;
|
||||
qcom,pmic-id = <0x1000d 0x00 0x00 0x00>;
|
||||
|
||||
aliases {
|
||||
mmc0 = "/soc@0/sdhci@7824000";
|
||||
@@ -129,9 +132,7 @@
|
||||
|
||||
cpu-opp-table {
|
||||
compatible = "operating-points-v2-kryo-cpu", "operating-points-v2";
|
||||
/* Real DVFS latency: without this cpufreq-dt reports CPUFREQ_ETERNAL
|
||||
* (UINT_MAX) and schedutil derives a ~6.44 s rate limit. */
|
||||
clock-latency-ns = <100000>;
|
||||
clock-latency-ns = <0x186a0>;
|
||||
nvmem-cells = <0x0f>;
|
||||
opp-shared;
|
||||
phandle = <0x05>;
|
||||
@@ -197,7 +198,7 @@
|
||||
|
||||
memory@80000000 {
|
||||
device_type = "memory";
|
||||
reg = <0x80000000 0x00>;
|
||||
reg = <0x80000000 0x20000000>;
|
||||
};
|
||||
|
||||
pmu {
|
||||
@@ -1016,7 +1017,7 @@
|
||||
};
|
||||
|
||||
matrix-keypad-col-default-state {
|
||||
pins = "gpio52", "gpio56", "gpio7", "gpio99", "gpio6";
|
||||
pins = "gpio52", "gpio56", "gpio7", "gpio99", "gpio6", "gpio1";
|
||||
function = "gpio";
|
||||
drive-strength = <0x02>;
|
||||
bias-disable;
|
||||
@@ -1030,6 +1031,14 @@
|
||||
bias-pull-down;
|
||||
phandle = <0x6e>;
|
||||
};
|
||||
|
||||
cover-panel-gpios-default-state {
|
||||
pins = "gpio21", "gpio23", "gpio13";
|
||||
function = "gpio";
|
||||
drive-strength = <0x02>;
|
||||
bias-pull-down;
|
||||
phandle = <0x92>;
|
||||
};
|
||||
};
|
||||
|
||||
clock-controller@1800000 {
|
||||
@@ -1056,57 +1065,62 @@
|
||||
phandle = <0x15>;
|
||||
};
|
||||
|
||||
gpu: gpu@1c00000 {
|
||||
gpu@1c00000 {
|
||||
compatible = "qcom,adreno-304.0", "qcom,adreno";
|
||||
reg = <0x01c00000 0x20000>;
|
||||
reg = <0x1c00000 0x20000>;
|
||||
reg-names = "kgsl_3d0_reg_memory";
|
||||
interrupts = <0x00 33 0x04>;
|
||||
interrupts = <0x00 0x21 0x04>;
|
||||
interrupt-names = "kgsl_3d0_irq";
|
||||
clock-names = "core", "iface", "mem_iface", "alt_mem_iface", "gtcu_iface", "gfx3d";
|
||||
clocks = <0x14 124>, <0x14 123>, <0x14 72>, <0x14 73>, <0x14 66>, <0x14 35>;
|
||||
power-domains = <0x14 1>;
|
||||
operating-points-v2 = <&gpu_opp_table>;
|
||||
iommus = <&gpu_iommu 1>, <&gpu_iommu 2>;
|
||||
#cooling-cells = <2>;
|
||||
clocks = <0x14 0x7c 0x14 0x7b 0x14 0x48 0x14 0x49 0x14 0x42 0x14 0x23>;
|
||||
power-domains = <0x14 0x01>;
|
||||
operating-points-v2 = <0x8b>;
|
||||
iommus = <0x8c 0x01 0x8c 0x02>;
|
||||
#cooling-cells = <0x02>;
|
||||
|
||||
gpu_opp_table: opp-table {
|
||||
opp-table {
|
||||
compatible = "operating-points-v2";
|
||||
phandle = <0x8b>;
|
||||
|
||||
opp-409600000 {
|
||||
opp-hz = /bits/ 64 <409600000>;
|
||||
opp-hz = <0x00 0x186a0000>;
|
||||
};
|
||||
|
||||
opp-307200000 {
|
||||
opp-hz = /bits/ 64 <307200000>;
|
||||
opp-hz = <0x00 0x124f8000>;
|
||||
};
|
||||
|
||||
opp-200000000 {
|
||||
opp-hz = /bits/ 64 <200000000>;
|
||||
opp-hz = <0x00 0xbebc200>;
|
||||
};
|
||||
|
||||
opp-19200000 {
|
||||
opp-hz = /bits/ 64 <19200000>;
|
||||
opp-hz = <0x00 0x124f800>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
gpu_iommu: iommu@1f08000 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
#iommu-cells = <1>;
|
||||
iommu@1f08000 {
|
||||
#address-cells = <0x01>;
|
||||
#size-cells = <0x01>;
|
||||
#iommu-cells = <0x01>;
|
||||
compatible = "qcom,msm8909-iommu", "qcom,msm8916-iommu", "qcom,msm-iommu-v1";
|
||||
ranges = <0 0x01f08000 0x10000>;
|
||||
clocks = <0x14 69>, <0x14 65>, <0x14 64>;
|
||||
ranges = <0x00 0x1f08000 0x10000>;
|
||||
clocks = <0x14 0x45 0x14 0x41 0x14 0x40>;
|
||||
clock-names = "iface", "bus", "tbu";
|
||||
qcom,iommu-secure-id = <18>;
|
||||
qcom,iommu-secure-id = <0x12>;
|
||||
phandle = <0x8c>;
|
||||
|
||||
iommu-ctx@1000 {
|
||||
compatible = "qcom,msm-iommu-v1-ns";
|
||||
reg = <0x1000 0x1000>;
|
||||
interrupts = <0x00 241 0x04>;
|
||||
interrupts = <0x00 0xf1 0x04>;
|
||||
};
|
||||
|
||||
iommu-ctx@2000 {
|
||||
compatible = "qcom,msm-iommu-v1-ns";
|
||||
reg = <0x2000 0x1000>;
|
||||
interrupts = <0x00 242 0x04>;
|
||||
interrupts = <0x00 0xf2 0x04>;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1150,7 +1164,7 @@
|
||||
debounce = <0x3d09>;
|
||||
bias-pull-up;
|
||||
status = "okay";
|
||||
linux,code = <0x6c>;
|
||||
linux,code = <0x72>;
|
||||
};
|
||||
|
||||
watchdog {
|
||||
@@ -1863,6 +1877,13 @@
|
||||
clock-frequency = "", "#(";
|
||||
};
|
||||
};
|
||||
|
||||
spidev@1 {
|
||||
compatible = "rohm,dh2228fv";
|
||||
reg = <0x01>;
|
||||
spi-max-frequency = <0x2faf080>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
i2c@78ba000 {
|
||||
@@ -2287,30 +2308,31 @@
|
||||
pinctrl-0 = <0x86 0x87>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
key-up {
|
||||
key-volup {
|
||||
wakeup-source;
|
||||
gpios = <0x27 0x5a 0x01>;
|
||||
linux,code = <0x67>;
|
||||
linux,code = <0x73>;
|
||||
debounce-interval = <0x0f>;
|
||||
linux,can-disable;
|
||||
};
|
||||
|
||||
key-back {
|
||||
key-end {
|
||||
wakeup-source;
|
||||
gpios = <0x27 0x62 0x01>;
|
||||
linux,code = <0x0e>;
|
||||
linux,code = <0x74>;
|
||||
debounce-interval = <0x0f>;
|
||||
linux,can-disable;
|
||||
};
|
||||
|
||||
switch-lid-close {
|
||||
hall-lid-closed {
|
||||
wakeup-source;
|
||||
gpios = <0x27 0x5c 0x01>;
|
||||
linux,input-type = <0x05>;
|
||||
linux,code = <0x00>;
|
||||
};
|
||||
|
||||
switch-lid-open {
|
||||
hall-lid-open {
|
||||
wakeup-source;
|
||||
gpios = <0x27 0x24 0x01>;
|
||||
linux,input-type = <0x05>;
|
||||
linux,code = <0x0a>;
|
||||
@@ -2325,8 +2347,8 @@
|
||||
pinctrl-0 = <0x88 0x89>;
|
||||
pinctrl-names = "default";
|
||||
row-gpios = <0x27 0x61 0x01 0x27 0x60 0x01 0x27 0x5f 0x01 0x27 0x5e 0x01>;
|
||||
col-gpios = <0x27 0x34 0x01 0x27 0x38 0x01 0x27 0x07 0x01 0x27 0x63 0x01 0x27 0x06 0x01>;
|
||||
linux,keymap = <0x1bd 0x10002 0x20005 0x30008 0x4020a 0x1000069 0x1010003 0x1020006 0x1030009 0x104000b 0x20002b8 0x2010004 0x2020007 0x203000a 0x204020b 0x300001c 0x301006a 0x30202b9>;
|
||||
col-gpios = <0x27 0x34 0x01 0x27 0x38 0x01 0x27 0x07 0x01 0x27 0x63 0x01 0x27 0x06 0x01 0x27 0x01 0x01>;
|
||||
linux,keymap = <0x1bd 0x10002 0x20005 0x30008 0x4020a 0x500d4 0x1000069 0x1010003 0x1020006 0x1030009 0x104000b 0x105000e 0x200007f 0x2010004 0x2020007 0x203000a 0x204020b 0x300001c 0x301006a 0x302009e 0x3030067 0x304006c>;
|
||||
};
|
||||
|
||||
leds {
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
earlycon
|
||||
console=ttyMSM0,115200
|
||||
@@ -1,2 +1 @@
|
||||
earlycon
|
||||
console=ttyMSM0,115200
|
||||
Reference in new issue
Block a user