From 53d13cb4c824f872401d22790d98322524b66cb0 Mon Sep 17 00:00:00 2001 From: Sergey Larin Date: Sun, 24 Feb 2019 22:33:39 +0300 Subject: [PATCH] samsung-i927: various improvements (!238) - Bluetooth is now working - Audio works too (speaker/headphones/earpiece/mic - internal and headset) - Keyboard layout for X11 - Xorg config for rotated screen - Suspend issues fixed (tested on MATE) - OTG bindings updated - not working yet --- .../device-samsung-i927/40-samsung-i927.conf | 23 +++ device/device-samsung-i927/APKBUILD | 51 ++++++- device/device-samsung-i927/HiFi.conf | 135 ++++++++++++++++++ device/device-samsung-i927/Voice.conf | 49 +++++++ device/device-samsung-i927/Xkbmap | 1 + device/device-samsung-i927/i927 | 78 ++++++++++ device/device-samsung-i927/i927-pm-conf | 4 + device/device-samsung-i927/i927_rules | 5 + device/device-samsung-i927/i927_rules.lst | 3 + device/device-samsung-i927/wm8994aif1.conf | 22 +++ ...panel-Add-Samsung-s6e63m0-panel-docu.patch | 2 +- ...Add-driver-for-Samsung-S6E63M0-panel.patch | 2 +- .../0003-drm-tegra-Hacks-for-S6E63M0.patch | 2 +- ...o-gyro-mpu3050-get-chip-ID-correctly.patch | 2 +- .../0005-soc-tegra-fix-build-for-Tegra.patch | 2 +- ...re-Add-a-quirk-for-NVIDIA-Tegra-EMMC.patch | 2 +- ...lass-support-isa1200-vibration-motor.patch | 2 +- ...-accel-kxcjk-Add-device-tree-support.patch | 2 +- ...gra20-glide-Samsung-SGH-I927-support.patch | 2 +- ...t-stmpe-keypad-add-STMPE1801-support.patch | 2 +- .../0011-Add-tegra_wm8994-driver.patch | 2 +- .../0012-HACK-Fix-wm8994-Kconfig.patch | 2 +- .../0013-ASoC-tegra_wm8994-cleanup.patch | 2 +- ...ts-tegra20-glide-Device-Tree-changes.patch | 2 +- ...egra20-glide-add-memory-node-address.patch | 2 +- ...RM-dts-tegra20-glide-comment-out-MHL.patch | 2 +- ...-glide-fix-duplicate-i2c-bus-address.patch | 2 +- ...ts-tegra20-glide-fix-USB-gadget-mode.patch | 2 +- ...tegra20-glide-change-display-timings.patch | 2 +- ...glide-add-intrrupt-binding-for-charg.patch | 3 +- ...1-drm-panel-s6e63m0-disable-rotation.patch | 2 +- ...glide-set-panel-reset-GPIO-pin-to-ac.patch | 4 +- ...upply-max17040-Fix-voltage-reporting.patch | 2 +- ...ply-max17040-Set-initial-RCOMP-value.patch | 2 +- ...rm-panel-s6e63m0-Increase-back-porch.patch | 2 +- ...026-ARM-dts-tegra20-glide-fix-AK8975.patch | 2 +- ...ey-Add-parse-DT-function-from-device.patch | 3 +- ...cs_touchkey-Convert-to-devm_-managed.patch | 2 +- ...cs_touchkey-add-sentinel-into-array-.patch | 4 +- ...nos4412-m0.dts-Add-mcs-touchkey-node.patch | 2 +- ...s-tegra20-glide-Add-touchkey-binding.patch | 2 +- ...a20-glide-Add-keyboard-backlight-LED.patch | 2 +- ...ut-keyboard-mcs_touchkey-LED-support.patch | 2 +- ...-tegra20-glide-Add-HALL-GPIO-binding.patch | 2 +- ...gra20-glide-Change-keyboard-keycodes.patch | 76 ++++++++++ ...-dts-tegra20-glide-Fix-UART-bindings.patch | 128 +++++++++++++++++ ...tegra20-glide-USB-OTG-mode-and-power.patch | 104 ++++++++++++++ ...a20-glide-Remove-WiFi-host-wake-GPIO.patch | 29 ++++ ...20-glide-Add-bindings-for-microphone.patch | 58 ++++++++ device/linux-samsung-i927/APKBUILD | 80 ++++++----- 50 files changed, 843 insertions(+), 77 deletions(-) create mode 100644 device/device-samsung-i927/40-samsung-i927.conf create mode 100644 device/device-samsung-i927/HiFi.conf create mode 100644 device/device-samsung-i927/Voice.conf create mode 100644 device/device-samsung-i927/Xkbmap create mode 100644 device/device-samsung-i927/i927 create mode 100644 device/device-samsung-i927/i927-pm-conf create mode 100644 device/device-samsung-i927/i927_rules create mode 100644 device/device-samsung-i927/i927_rules.lst create mode 100644 device/device-samsung-i927/wm8994aif1.conf create mode 100644 device/linux-samsung-i927/0035-ARM-dts-tegra20-glide-Change-keyboard-keycodes.patch create mode 100644 device/linux-samsung-i927/0036-ARM-dts-tegra20-glide-Fix-UART-bindings.patch create mode 100644 device/linux-samsung-i927/0037-ARM-dts-tegra20-glide-USB-OTG-mode-and-power.patch create mode 100644 device/linux-samsung-i927/0038-ARM-dts-tegra20-glide-Remove-WiFi-host-wake-GPIO.patch create mode 100644 device/linux-samsung-i927/0039-ARM-dts-tegra20-glide-Add-bindings-for-microphone.patch diff --git a/device/device-samsung-i927/40-samsung-i927.conf b/device/device-samsung-i927/40-samsung-i927.conf new file mode 100644 index 000000000..ae1c53ecc --- /dev/null +++ b/device/device-samsung-i927/40-samsung-i927.conf @@ -0,0 +1,23 @@ +# Configuration for Samsung SGH-I927 Captivate Glide + +Section "Device" + Identifier "Tegra Graphics" + Driver "opentegra" + Option "SWcursor" "false" + # This can cause rendering issues + # Option "AccelCompositing" "true" + Option "NoAccel" "false" +EndSection + +Section "InputClass" + Identifier "libinput touchscreen catchall" + MatchIsTouchscreen "on" + Option "CalibrationMatrix" "0 1 0 -1 0 1 0 0 1" + MatchDevicePath "/dev/input/event*" + Driver "libinput" +EndSection + +Section "Monitor" + Identifier "LVDS-0" + Option "Rotate" "right" +EndSection diff --git a/device/device-samsung-i927/APKBUILD b/device/device-samsung-i927/APKBUILD index 5718ac153..0e9ffeb58 100644 --- a/device/device-samsung-i927/APKBUILD +++ b/device/device-samsung-i927/APKBUILD @@ -1,8 +1,8 @@ # Reference: pkgname="device-samsung-i927" pkgdesc="Samsung Captivate Glide" -pkgver=0.1 -pkgrel=1 +pkgver=0.2 +pkgrel=2 url="https://postmarketos.org" license="MIT" arch="armhf" @@ -11,18 +11,33 @@ depends="postmarketos-base linux-samsung-i927 mkbootimg alsa-utils + setxkbmap + pm-utils libdrm-grate mesa-grate mesa-grate-gl + mesa-grate-gles mesa-grate-egl + mesa-grate-gbm + mesa-grate-glapi + mesa-grate-osmesa mesa-grate-dri-swrast mesa-grate-dri-tegra xf86-video-opentegra + mesa-demos libvdpau-tegra" makedepends="devicepkg-dev" subpackages="$pkgname-nonfree-firmware:nonfree_firmware" source="deviceinfo - modules-load.conf" + modules-load.conf + HiFi.conf + wm8994aif1.conf + 40-samsung-i927.conf + Xkbmap + i927 + i927_rules + i927_rules.lst + i927-pm-conf" build() { devicepkg_build $startdir $pkgname @@ -33,6 +48,26 @@ package() { install -D -m644 "$srcdir"/modules-load.conf \ "$pkgdir"/etc/modules-load.d/00-${pkgname}.conf + + install -D -m644 "$srcdir"/HiFi.conf \ + "$pkgdir"/usr/share/alsa/ucm/wm8994aif1/HiFi.conf + install -D -m644 "$srcdir"/wm8994aif1.conf \ + "$pkgdir"/usr/share/alsa/ucm/wm8994aif1/wm8994aif1.conf + + install -D -m644 "$srcdir"/Xkbmap \ + "$pkgdir"/etc/X11/Xkbmap + install -D -m644 "$srcdir"/i927_rules \ + "$pkgdir"/usr/share/X11/xkb/rules/i927_rules + install -D -m644 "$srcdir"/i927_rules.lst \ + "$pkgdir"/usr/share/X11/xkb/rules/i927_rules.lst + install -D -m644 "$srcdir"/i927 \ + "$pkgdir"/usr/share/X11/xkb/symbols/i927 + + install -D -m755 "$srcdir"/i927-pm-conf \ + "$pkgdir"/etc/pm/config.d/i927-pm-conf + + install -D -m644 "$srcdir"/40-samsung-i927.conf \ + "$pkgdir"/etc/X11/xorg.conf.d/40-samsung-i927.conf } nonfree_firmware() { @@ -42,4 +77,12 @@ nonfree_firmware() { } sha512sums="9a6677a65bb651bb009115d4cf001277a708d0ea3b65cabd5b453580d8f97101c51008c0c1d4a152f6157dcc2a7bdd24c115d84336b29128f56d2249a1e97c1f deviceinfo -d8ce60ea7acaabf627ddca2f0887a4cda46f313b7aaf7934bef2fef8a6e0798ccefab849e4571e4e3fcd06ae34c1a6efe3b58b401e2e443416f6200e6d4ea769 modules-load.conf" +d8ce60ea7acaabf627ddca2f0887a4cda46f313b7aaf7934bef2fef8a6e0798ccefab849e4571e4e3fcd06ae34c1a6efe3b58b401e2e443416f6200e6d4ea769 modules-load.conf +761a53c000fbca43d613d42f8f991e593828ae508b1ad1e0c157eebe42175da28adf468121af4974cdadea4a80af544c215284a05a5c65ee3a4fd5d924dc5ed9 HiFi.conf +6fa188b7756edc28f7cfa7dd6a6d2eacb828b55c4a989673321d82ef0802d8c1dd44d0aa40ba9bdb05843fd96c73325380c8bdcd41e35b269c4655196c888d99 wm8994aif1.conf +000e5400c552daa83b40d211cba78d034cd7430eb98d039190a71cf7df8a5921d78a0abfae824129284650748ab939e60cdbbe41841c43ae86d229c39f7fe1c0 40-samsung-i927.conf +607d8631a4ced6b727f93f8ffbcf906c0c216c71bbd026cb2538d1b25f94c9f09c06531da5a0bbbd40b064c5b15b8fa693deec9fe683ad009ca80f7afbb12c6b Xkbmap +5f6e51d51e0392fa25626554673a751d9bdee19c503eadf2f3a4e30b6cf8ff8d99b0ddf436dc2e496a3701c1969aca165eebc368fa6bbfb9cb3554dcf627f75d i927 +49aad2429c0fa7a0dcc99a57c6372d1223661ec0ecf5fcb1ede28992138dbc2a1b8e18ca265ad7e9bc2f389b8f2cd7ec57598c1dbb2d8de0ee4a277fb3d79957 i927_rules +22b470480d100b9e59a6d2fa69b742c53800a77cac872ac699e7d8bbce7578f15d78b862a8bcafb8b9c38f6db6abd50cbec19b88694f8a7ca9caf7b2b75f43f4 i927_rules.lst +56c068417135940db46de2bc8438cf858e58fbd84b8cac85a763304aaa61b4506cb8c15e236354c09182f4a797df72d3ec0178c1a6d85b007ab6d1c8926a4d89 i927-pm-conf" diff --git a/device/device-samsung-i927/HiFi.conf b/device/device-samsung-i927/HiFi.conf new file mode 100644 index 000000000..c1f75ba24 --- /dev/null +++ b/device/device-samsung-i927/HiFi.conf @@ -0,0 +1,135 @@ +SectionVerb { + EnableSequence [ + cdev "hw:wm8994aif1" + + # Speaker + cset "name='SPKR Output Switch' 1" + cset "name='SPKL Output Switch' 1" + cset "name='SPKL Boost SPKL Switch' 1" + cset "name='SPKL Boost SPKR Switch' 1" + cset "name='SPKR Boost SPKL Switch' 0" + cset "name='SPKR Boost SPKR Switch' 1" + cset "name='Speaker Mixer Volume' 100" + + # Headphones + cset "name='Left Headphone Mux' Mixer" + cset "name='Right Headphone Mux' Mixer" + cset "name='Left Output Mixer DAC Switch' 1" + cset "name='Right Output Mixer DAC Switch' 1" + + # Earpiece + cset "name='Earpiece Mixer Left Output Switch' 1" + cset "name='Earpiece Mixer Right Output Switch' 1" + ] + + DisableSequence [ + cdev "hw:wm8994aif1" + + # Speaker + cset "name='SPKR Output Switch' 0" + cset "name='SPKL Output Switch' 0" + cset "name='SPKL Boost SPKL Switch' 0" + cset "name='SPKL Boost SPKR Switch' 0" + cset "name='SPKR Boost SPKL Switch' 0" + cset "name='SPKR Boost SPKR Switch' 0" + cset "name='Speaker Mixer Volume' 0" + + # Headphones + cset "name='Left Headphone Mux' Mixer" + cset "name='Right Headphone Mux' Mixer" + cset "name='Left Output Mixer DAC Switch' 0" + cset "name='Right Output Mixer DAC Switch' 0" + + # Earpiece + cset "name='Earpiece Mixer Left Output Switch' 0" + cset "name='Earpiece Mixer Right Output Switch' 0" + ] + + Value { + PlaybackPCM "hw:wm8994aif1,0" + CapturePCM "hw:wm8994aif1,0" + } + +} + +SectionDevice."Speaker" { + EnableSequence [ + cdev "hw:wm8994aif1" + + cset "name='Speaker Switch' 1" + ] + + DisableSequence [ + cdev "hw:wm8994aif1" + + cset "name='Speaker Switch' 0" + ] + + Value { + PlaybackChannels "2" + } + +} + +SectionDevice."Headphones" { + EnableSequence [ + cdev "hw:wm8994aif1" + + cset "name='Headphone Switch' 1" + ] + + DisableSequence [ + cdev "hw:wm8994aif1" + + cset "name='Headphone Switch' 0" + ] + + Value { + PlaybackChannels "2" + } + +} + +SectionDevice."Voice" { + EnableSequence [ + cdev "hw:wm8994aif1" + + cset "name='IN1L Switch' 1" + cset "name='IN1L PGA IN1LN Switch' 1" + cset "name='IN1L PGA IN1LP Switch' 1" + ] + + DisableSequence [ + cdev "hw:wm8994aif1" + + cset "name='IN1L Switch' 0" + cset "name='IN1L PGA IN1LN Switch' 0" + cset "name='IN1L PGA IN1LP Switch' 0" + ] + + Value { + CaptureChannels "2" + } +} + +SectionDevice."Earpiece" { + EnableSequence [ + cdev "hw:wm8994aif1" + + cset "name='Earpiece Mixer Left Output Switch' 1" + cset "name='Earpiece Mixer Right Output Switch' 1" + cset "name='Earpiece Switch' 1" + ] + + DisableSequence [ + cdev "hw:wm8994aif1" + + cset "name='Earpiece Mixer Left Output Switch' 0" + cset "name='Earpiece Mixer Right Output Switch' 0" + cset "name='Earpiece Switch' 0" + ] + + Value { + PlaybackChannels "2" + } +} diff --git a/device/device-samsung-i927/Voice.conf b/device/device-samsung-i927/Voice.conf new file mode 100644 index 000000000..aeb79543a --- /dev/null +++ b/device/device-samsung-i927/Voice.conf @@ -0,0 +1,49 @@ +SectionVerb { + EnableSequence [ + cdev "hw:wm8994aif1" + + cset "name='AIF1ADCL Source' Left" + cset "name='AIF1ADCR Source' Left" + cset "name='AIF1ADC1 HPF Mode' 1" + cset "name='AIF1ADC1 HPF Switch' 1" + cset "name='AIF1ADC1L Mixer ADC/DMIC Switch' 1" + cset "name='MIXINL IN1L Switch' 1" + ] + + DisableSequence [ + cdev "hw:wm8994aif1" + + cset "name='AIF1ADCL Source' Left" + cset "name='AIF1ADCR Source' Right" + cset "name='AIF1ADC1 HPF Mode' 0" + cset "name='AIF1ADC1 HPF Switch' 0" + cset "name='AIF1ADC1L Mixer ADC/DMIC Switch' 0" + cset "name='MIXINL IN1L Switch' 0" + ] + + Value { + CapturePCM "hw:wm8994aif1,0" + } +} + +SectionDevice."Headset".0 { + EnableSequence [ + cdev "hw:wm8994aif1" + + cset "name='IN1L Switch' 1" + cset "name='IN1L PGA IN1LN Switch' 1" + cset "name='IN1L PGA IN1LP Switch' 1" + ] + + DisableSequence [ + cdev "hw:wm8994aif1" + + cset "name='IN1L Switch' 0" + cset "name='IN1L PGA IN1LN Switch' 0" + cset "name='IN1L PGA IN1LP Switch' 0" + ] + + Value { + CaptureChannels "2" + } +} diff --git a/device/device-samsung-i927/Xkbmap b/device/device-samsung-i927/Xkbmap new file mode 100644 index 000000000..308ad2dc2 --- /dev/null +++ b/device/device-samsung-i927/Xkbmap @@ -0,0 +1 @@ +-rules i927_rules -model i927 -symbols i927 diff --git a/device/device-samsung-i927/i927 b/device/device-samsung-i927/i927 new file mode 100644 index 000000000..55fe6c79e --- /dev/null +++ b/device/device-samsung-i927/i927 @@ -0,0 +1,78 @@ +default partial alphanumeric_keys modifier_keys +xkb_symbols "common" { + key { + type[Group1] = "ONE_LEVEL", + symbols[Group1] = [ Shift_L ] + }; + modifier_map Shift { Shift_L }; + key { type[Group1] = "ONE_LEVEL", symbols[Group1] = [ Control_L ] }; // Now defined as KEY_LEFTCTRL + modifier_map Control { Control_L }; + + // Currently defined as KEY_FN + include "level3(ralt_switch)" + + key.type = "THREE_LEVEL"; + + // 1. row + key { [ q, Q, 1 ] }; + key { [ w, W, 2 ] }; + key { [ e, E, 3 ] }; + key { [ r, R, 4 ] }; + key { [ t, T, 5 ] }; + key { [ y, Y, 6 ] }; + key { [ u, U, 7 ] }; + key { [ i, I, 8 ] }; + key { [ o, O, 9 ] }; + key { [ p, P, 0 ] }; + key { [ BackSpace, Delete, BackSpace ] }; + + // 2. row + key { [ a, A, exclam ] }; + key { [ s, S, at ] }; + key { [ d, D, numbersign ] }; + key { [ f, F, dollar ] }; + key { [ g, G, percent ] }; + key { [ h, H, ampersand ] }; + key { [ j, J, asterisk ] }; + key { [ k, K, parenleft ] }; + key { [ l, L, parenright ] }; + key { [ l, L, parenright ] }; + key { [ Up, Up, Prior ] }; + key { type[Group1] = "ONE_LEVEL", symbols[Group1] = [ KP_Enter ] }; + + // 3. row + // Shift is defined as modifier above + key { [ z, Z, plus ] }; + key { [ x, X, minus ] }; + key { [ c, C, underscore ] }; + key { [ v, V, semicolon ] }; + key { [ b, B, colon ] }; + key { [ n, N, apostrophe ] }; + key { [ m, M, quotedbl ] }; + key { [ Left, Left, Home ] }; + key { type[Group1] = "ONE_LEVEL", symbols[Group1] = [ Return ] }; // KEY_OK in kernel for now, unable to catch this here + key { [ Right, Right, End ] }; + + // 4. row + // Alt is defined as modifier above + // Ctrl is defined as modifier above + key { [ Tab, Tab, XF86ApplicationRight ] }; // Now defined as KEY_TAB + key { [ comma, less, equal ] }; + key { type[Group1] = "ONE_LEVEL", symbols[Group1] = [ space ] }; + key { [ period, greater, backslash ] }; + key { [ question, bar, slash ] }; + key { [ Down, Down, Next ] }; + key { type[Group1] = "ONE_LEVEL", symbols[Group1] = [ XF86WWW ] }; + key { type[Group1] = "ONE_LEVEL", symbols[Group1] = [ space ] }; + + // 4 keys that are placed on sides of the keyboard and at the bottom of the screen + key { type[Group1] = "ONE_LEVEL", symbols[Group1] = [ XF86MenuKB ] }; + key { type[Group1] = "ONE_LEVEL", symbols[Group1] = [ XF86HomePage ] }; // Now defined as KEY_HOME, needs to be KEY_HOMEPAGE + key { type[Group1] = "ONE_LEVEL", symbols[Group1] = [ XF86Search ] }; + key { [ XF86Back, XF86Back, Escape ] }; + + // Other 3 buttons on the sides of the phone + key { type[Group1] = "ONE_LEVEL", symbols[Group1] = [ XF86AudioLowerVolume ] }; + key { type[Group1] = "ONE_LEVEL", symbols[Group1] = [ XF86AudioRaiseVolume ] }; + key { type[Group1] = "ONE_LEVEL", symbols[Group1] = [ XF86PowerOff ] }; +}; diff --git a/device/device-samsung-i927/i927-pm-conf b/device/device-samsung-i927/i927-pm-conf new file mode 100644 index 000000000..3d43afd9b --- /dev/null +++ b/device/device-samsung-i927/i927-pm-conf @@ -0,0 +1,4 @@ +#!/bin/sh +ADD_PARAMETERS="--quirk-no-chvt" +SUSPEND_MODULES="brcmfmac" + diff --git a/device/device-samsung-i927/i927_rules b/device/device-samsung-i927/i927_rules new file mode 100644 index 000000000..90202535e --- /dev/null +++ b/device/device-samsung-i927/i927_rules @@ -0,0 +1,5 @@ +! model = symbols + i927 = i927(common) + +! model = keycodes + i927 = evdev diff --git a/device/device-samsung-i927/i927_rules.lst b/device/device-samsung-i927/i927_rules.lst new file mode 100644 index 000000000..5588087b0 --- /dev/null +++ b/device/device-samsung-i927/i927_rules.lst @@ -0,0 +1,3 @@ +! model +dummy dummy + diff --git a/device/device-samsung-i927/wm8994aif1.conf b/device/device-samsung-i927/wm8994aif1.conf new file mode 100644 index 000000000..6aa72a16d --- /dev/null +++ b/device/device-samsung-i927/wm8994aif1.conf @@ -0,0 +1,22 @@ +Comment "WM8994 internal card" + +SectionUseCase."HiFi" { + File "HiFi.conf" + Comment "Default" +} + +SectionUseCase."Voice" { + File "Voice.conf" + Comment "Recording" +} + +SectionDefaults [ + cdev "hw:wm8994aif1" + + # Output on DAC1/AIF1 + cset "name='DAC1R Mixer AIF1.1 Switch' 1" + cset "name='DAC1L Mixer AIF1.1 Switch' 1" + cset "name='DAC1 Switch' 1,1" + cset "name='Left Output Mixer DAC Switch' 1" + cset "name='Right Output Mixer DAC Switch' 1" +] diff --git a/device/linux-samsung-i927/0001-dt-bindings-drm-panel-Add-Samsung-s6e63m0-panel-docu.patch b/device/linux-samsung-i927/0001-dt-bindings-drm-panel-Add-Samsung-s6e63m0-panel-docu.patch index f2def815e..e7c426074 100644 --- a/device/linux-samsung-i927/0001-dt-bindings-drm-panel-Add-Samsung-s6e63m0-panel-docu.patch +++ b/device/linux-samsung-i927/0001-dt-bindings-drm-panel-Add-Samsung-s6e63m0-panel-docu.patch @@ -1,7 +1,7 @@ From 2b9e681359e72c3ee0387dfc9b10ec9a7f548c97 Mon Sep 17 00:00:00 2001 From: Jonathan Bakker Date: Tue, 12 Jun 2018 11:32:26 -0700 -Subject: [PATCH 01/34] dt-bindings: drm: panel: Add Samsung s6e63m0 panel +Subject: [PATCH] dt-bindings: drm: panel: Add Samsung s6e63m0 panel documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 diff --git a/device/linux-samsung-i927/0002-drm-panel-Add-driver-for-Samsung-S6E63M0-panel.patch b/device/linux-samsung-i927/0002-drm-panel-Add-driver-for-Samsung-S6E63M0-panel.patch index 6b95742c3..28e86ab0e 100644 --- a/device/linux-samsung-i927/0002-drm-panel-Add-driver-for-Samsung-S6E63M0-panel.patch +++ b/device/linux-samsung-i927/0002-drm-panel-Add-driver-for-Samsung-S6E63M0-panel.patch @@ -1,7 +1,7 @@ From 837ca6b151a2ffe19b622a22351ea4a19c1d2cfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmiel?= Date: Fri, 25 Jan 2019 16:32:08 +0100 -Subject: [PATCH 02/34] drm/panel: Add driver for Samsung S6E63M0 panel +Subject: [PATCH] drm/panel: Add driver for Samsung S6E63M0 panel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit diff --git a/device/linux-samsung-i927/0003-drm-tegra-Hacks-for-S6E63M0.patch b/device/linux-samsung-i927/0003-drm-tegra-Hacks-for-S6E63M0.patch index cc5b58f6b..de066bfcd 100644 --- a/device/linux-samsung-i927/0003-drm-tegra-Hacks-for-S6E63M0.patch +++ b/device/linux-samsung-i927/0003-drm-tegra-Hacks-for-S6E63M0.patch @@ -1,7 +1,7 @@ From 6dfb5189947dc913e9e643a82dd0f69efe7b16d7 Mon Sep 17 00:00:00 2001 From: Sergey Larin Date: Sat, 26 Jan 2019 10:41:50 +0300 -Subject: [PATCH 03/34] drm/tegra: Hacks for S6E63M0 +Subject: [PATCH] drm/tegra: Hacks for S6E63M0 Pins DATA_ENABLE, H_SYNC, V_SYNC, PIXEL_CLOCK are low polarity, set this in the registers to make the panel working. diff --git a/device/linux-samsung-i927/0004-iio-gyro-mpu3050-get-chip-ID-correctly.patch b/device/linux-samsung-i927/0004-iio-gyro-mpu3050-get-chip-ID-correctly.patch index 5eaf0c005..b6243f3e5 100644 --- a/device/linux-samsung-i927/0004-iio-gyro-mpu3050-get-chip-ID-correctly.patch +++ b/device/linux-samsung-i927/0004-iio-gyro-mpu3050-get-chip-ID-correctly.patch @@ -1,7 +1,7 @@ From 081df7f8582115c7b87f3516946acb829a1aa357 Mon Sep 17 00:00:00 2001 From: Sergey Larin Date: Sat, 26 Jan 2019 19:27:36 +0300 -Subject: [PATCH 04/34] iio: gyro: mpu3050: get chip ID correctly +Subject: [PATCH] iio: gyro: mpu3050: get chip ID correctly According to the datasheet, the first bit of CHIP_ID register specifies the I2C bus state, and the last one does not belong to ID. Handle this diff --git a/device/linux-samsung-i927/0005-soc-tegra-fix-build-for-Tegra.patch b/device/linux-samsung-i927/0005-soc-tegra-fix-build-for-Tegra.patch index e6d4c0b1f..30d24366e 100644 --- a/device/linux-samsung-i927/0005-soc-tegra-fix-build-for-Tegra.patch +++ b/device/linux-samsung-i927/0005-soc-tegra-fix-build-for-Tegra.patch @@ -1,7 +1,7 @@ From baee924a1eb54c7b4283948f7a141134a351a188 Mon Sep 17 00:00:00 2001 From: Sergey Larin Date: Sat, 26 Jan 2019 19:32:58 +0300 -Subject: [PATCH 05/34] soc/tegra: fix build for Tegra +Subject: [PATCH] soc/tegra: fix build for Tegra Last changes to Linux 4.20 kernel broke the build. Fix it by adding a config option. diff --git a/device/linux-samsung-i927/0006-mmc-core-Add-a-quirk-for-NVIDIA-Tegra-EMMC.patch b/device/linux-samsung-i927/0006-mmc-core-Add-a-quirk-for-NVIDIA-Tegra-EMMC.patch index 85af47552..9d914e41a 100644 --- a/device/linux-samsung-i927/0006-mmc-core-Add-a-quirk-for-NVIDIA-Tegra-EMMC.patch +++ b/device/linux-samsung-i927/0006-mmc-core-Add-a-quirk-for-NVIDIA-Tegra-EMMC.patch @@ -1,7 +1,7 @@ From 4cb4e6156fa5f942cf004b3e34677f1ee6f32cab Mon Sep 17 00:00:00 2001 From: Dmitry Osipenko Date: Tue, 6 Oct 2015 19:27:48 +0300 -Subject: [PATCH 06/34] mmc: core: Add a quirk for NVIDIA Tegra EMMC +Subject: [PATCH] mmc: core: Add a quirk for NVIDIA Tegra EMMC Signed-off-by: Dmitry Osipenko (cherry picked from commit ab6cd574c16380931529501c367ae50a3ee96b3e) diff --git a/device/linux-samsung-i927/0007-leds-Add-led-class-support-isa1200-vibration-motor.patch b/device/linux-samsung-i927/0007-leds-Add-led-class-support-isa1200-vibration-motor.patch index b9c1506af..5acea18ca 100644 --- a/device/linux-samsung-i927/0007-leds-Add-led-class-support-isa1200-vibration-motor.patch +++ b/device/linux-samsung-i927/0007-leds-Add-led-class-support-isa1200-vibration-motor.patch @@ -1,7 +1,7 @@ From facbfc379074eb38b85351e78f7a22ae638ebd24 Mon Sep 17 00:00:00 2001 From: ryang Date: Tue, 31 Oct 2017 12:08:54 -0400 -Subject: [PATCH 07/34] leds: Add led class support isa1200 vibration motor +Subject: [PATCH] leds: Add led class support isa1200 vibration motor (cherry picked from commit e510fd2c344d8f1967e186a3fa030ccee201a4d6) Signed-off-by: Sergey Larin diff --git a/device/linux-samsung-i927/0008-iio-accel-kxcjk-Add-device-tree-support.patch b/device/linux-samsung-i927/0008-iio-accel-kxcjk-Add-device-tree-support.patch index 77b951840..7d5492e25 100644 --- a/device/linux-samsung-i927/0008-iio-accel-kxcjk-Add-device-tree-support.patch +++ b/device/linux-samsung-i927/0008-iio-accel-kxcjk-Add-device-tree-support.patch @@ -1,7 +1,7 @@ From 0a1b842f3974f3ee69129e598747a17921810bfd Mon Sep 17 00:00:00 2001 From: ryang Date: Tue, 18 Sep 2018 12:38:03 -0400 -Subject: [PATCH 08/34] iio: accel: kxcjk: Add device tree support +Subject: [PATCH] iio: accel: kxcjk: Add device tree support (cherry picked from commit 3fb788f94dcb55414ba774211e21c80153fd21f5) Signed-off-by: Sergey Larin diff --git a/device/linux-samsung-i927/0009-ARM-dts-tegra20-glide-Samsung-SGH-I927-support.patch b/device/linux-samsung-i927/0009-ARM-dts-tegra20-glide-Samsung-SGH-I927-support.patch index a88d77b10..237922c63 100644 --- a/device/linux-samsung-i927/0009-ARM-dts-tegra20-glide-Samsung-SGH-I927-support.patch +++ b/device/linux-samsung-i927/0009-ARM-dts-tegra20-glide-Samsung-SGH-I927-support.patch @@ -1,7 +1,7 @@ From 9b7ba0a954eefd1b177fc351ce2f8c65ca39e7a3 Mon Sep 17 00:00:00 2001 From: Sergey Larin Date: Sat, 26 Jan 2019 20:50:51 +0300 -Subject: [PATCH 09/34] ARM: dts: tegra20-glide: Samsung SGH-I927 support +Subject: [PATCH] ARM: dts: tegra20-glide: Samsung SGH-I927 support Initial DTS for this Samsung device. For now, kernel with this Device Tree boots to FBCON successfully, probing drivers without failures. diff --git a/device/linux-samsung-i927/0010-Input-stmpe-keypad-add-STMPE1801-support.patch b/device/linux-samsung-i927/0010-Input-stmpe-keypad-add-STMPE1801-support.patch index cafcab0a8..0d77d8f52 100644 --- a/device/linux-samsung-i927/0010-Input-stmpe-keypad-add-STMPE1801-support.patch +++ b/device/linux-samsung-i927/0010-Input-stmpe-keypad-add-STMPE1801-support.patch @@ -1,7 +1,7 @@ From 2822f8beddd7daa36a8d6251c675646256f8dcee Mon Sep 17 00:00:00 2001 From: Sergey Larin Date: Sun, 27 Jan 2019 02:11:24 +0300 -Subject: [PATCH 10/34] Input: stmpe-keypad - add STMPE1801 support +Subject: [PATCH] Input: stmpe-keypad - add STMPE1801 support This chip variant differs from others - it has different register map and swapped rows/columns. diff --git a/device/linux-samsung-i927/0011-Add-tegra_wm8994-driver.patch b/device/linux-samsung-i927/0011-Add-tegra_wm8994-driver.patch index 5d69321ed..8a8e63c70 100644 --- a/device/linux-samsung-i927/0011-Add-tegra_wm8994-driver.patch +++ b/device/linux-samsung-i927/0011-Add-tegra_wm8994-driver.patch @@ -1,7 +1,7 @@ From 0dd90d3d51bed50ce9753c06659f72c94536eeb7 Mon Sep 17 00:00:00 2001 From: ryang Date: Sat, 21 Apr 2018 09:33:37 -0400 -Subject: [PATCH 11/34] Add tegra_wm8994 driver +Subject: [PATCH] Add tegra_wm8994 driver (cherry picked from commit d58c0084b16491251b3871bfacbc070105eb9356) Signed-off-by: Sergey Larin diff --git a/device/linux-samsung-i927/0012-HACK-Fix-wm8994-Kconfig.patch b/device/linux-samsung-i927/0012-HACK-Fix-wm8994-Kconfig.patch index 05fe9066a..8c326553d 100644 --- a/device/linux-samsung-i927/0012-HACK-Fix-wm8994-Kconfig.patch +++ b/device/linux-samsung-i927/0012-HACK-Fix-wm8994-Kconfig.patch @@ -1,7 +1,7 @@ From aa3924de19ea515a7aa3309da9e779303f73d43e Mon Sep 17 00:00:00 2001 From: ryang Date: Sat, 26 May 2018 13:14:21 -0400 -Subject: [PATCH 12/34] HACK: Fix wm8994 Kconfig +Subject: [PATCH] HACK: Fix wm8994 Kconfig (cherry picked from commit 2bca457e1d53d6312afd21c902f55f768ef75a2e) Signed-off-by: Sergey Larin diff --git a/device/linux-samsung-i927/0013-ASoC-tegra_wm8994-cleanup.patch b/device/linux-samsung-i927/0013-ASoC-tegra_wm8994-cleanup.patch index 0284b9d8e..2e9909e5d 100644 --- a/device/linux-samsung-i927/0013-ASoC-tegra_wm8994-cleanup.patch +++ b/device/linux-samsung-i927/0013-ASoC-tegra_wm8994-cleanup.patch @@ -1,7 +1,7 @@ From 392be1c5347b89a0c353e861a1222f925fe5b8a5 Mon Sep 17 00:00:00 2001 From: Sergey Larin Date: Mon, 28 Jan 2019 11:35:06 +0300 -Subject: [PATCH 13/34] ASoC: tegra_wm8994: cleanup +Subject: [PATCH] ASoC: tegra_wm8994: cleanup Remove unnecessary functions. Also, S/PDIF support is not needed. diff --git a/device/linux-samsung-i927/0014-ARM-dts-tegra20-glide-Device-Tree-changes.patch b/device/linux-samsung-i927/0014-ARM-dts-tegra20-glide-Device-Tree-changes.patch index 26971f664..8ae2599d1 100644 --- a/device/linux-samsung-i927/0014-ARM-dts-tegra20-glide-Device-Tree-changes.patch +++ b/device/linux-samsung-i927/0014-ARM-dts-tegra20-glide-Device-Tree-changes.patch @@ -1,7 +1,7 @@ From de104acc782c9bfd4a71f32f91e6a2a059873cdd Mon Sep 17 00:00:00 2001 From: Sergey Larin Date: Mon, 28 Jan 2019 11:38:19 +0300 -Subject: [PATCH 14/34] ARM: dts: tegra20-glide: Device Tree changes +Subject: [PATCH] ARM: dts: tegra20-glide: Device Tree changes - added wm8994 tegra binding - vmmc regulator diff --git a/device/linux-samsung-i927/0015-ARM-dts-tegra20-glide-add-memory-node-address.patch b/device/linux-samsung-i927/0015-ARM-dts-tegra20-glide-add-memory-node-address.patch index e9eeb3bcf..c2eae28d1 100644 --- a/device/linux-samsung-i927/0015-ARM-dts-tegra20-glide-add-memory-node-address.patch +++ b/device/linux-samsung-i927/0015-ARM-dts-tegra20-glide-add-memory-node-address.patch @@ -1,7 +1,7 @@ From 73e3de92fdc2804a98b13de917dc218b065d3619 Mon Sep 17 00:00:00 2001 From: Sergey Larin Date: Thu, 7 Feb 2019 13:21:15 +0300 -Subject: [PATCH 15/34] ARM: dts: tegra20-glide: add memory node address +Subject: [PATCH] ARM: dts: tegra20-glide: add memory node address This fixes dts warning and avoids conflict with 'memory' node in tegra20.dtsi diff --git a/device/linux-samsung-i927/0016-ARM-dts-tegra20-glide-comment-out-MHL.patch b/device/linux-samsung-i927/0016-ARM-dts-tegra20-glide-comment-out-MHL.patch index 2600385fc..635f94185 100644 --- a/device/linux-samsung-i927/0016-ARM-dts-tegra20-glide-comment-out-MHL.patch +++ b/device/linux-samsung-i927/0016-ARM-dts-tegra20-glide-comment-out-MHL.patch @@ -1,7 +1,7 @@ From 0e7b869a461dc005c786b97ab9d6a8b3718d8ae5 Mon Sep 17 00:00:00 2001 From: Sergey Larin Date: Thu, 7 Feb 2019 13:26:02 +0300 -Subject: [PATCH 16/34] ARM: dts: tegra20-glide: comment out MHL +Subject: [PATCH] ARM: dts: tegra20-glide: comment out MHL HDMI and MHL enabled makes screen size incorrectly set to 1024x800 instead of 480x800 diff --git a/device/linux-samsung-i927/0017-ARM-dts-tegra20-glide-fix-duplicate-i2c-bus-address.patch b/device/linux-samsung-i927/0017-ARM-dts-tegra20-glide-fix-duplicate-i2c-bus-address.patch index 631daa2ed..cfc7052bb 100644 --- a/device/linux-samsung-i927/0017-ARM-dts-tegra20-glide-fix-duplicate-i2c-bus-address.patch +++ b/device/linux-samsung-i927/0017-ARM-dts-tegra20-glide-fix-duplicate-i2c-bus-address.patch @@ -1,7 +1,7 @@ From 21dec175043642df78f0cba6322cdf714fafdd9d Mon Sep 17 00:00:00 2001 From: Sergey Larin Date: Thu, 7 Feb 2019 13:30:45 +0300 -Subject: [PATCH 17/34] ARM: dts: tegra20-glide: fix duplicate i2c bus address +Subject: [PATCH] ARM: dts: tegra20-glide: fix duplicate i2c bus address Camera and power i2c buses use separate addresses for operation. diff --git a/device/linux-samsung-i927/0018-ARM-dts-tegra20-glide-fix-USB-gadget-mode.patch b/device/linux-samsung-i927/0018-ARM-dts-tegra20-glide-fix-USB-gadget-mode.patch index a5239584b..ef70edbf2 100644 --- a/device/linux-samsung-i927/0018-ARM-dts-tegra20-glide-fix-USB-gadget-mode.patch +++ b/device/linux-samsung-i927/0018-ARM-dts-tegra20-glide-fix-USB-gadget-mode.patch @@ -1,7 +1,7 @@ From 1ae43bfcc1b331d1585714d7571539d609507638 Mon Sep 17 00:00:00 2001 From: Sergey Larin Date: Thu, 7 Feb 2019 13:33:31 +0300 -Subject: [PATCH 18/34] ARM: dts: tegra20-glide: fix USB gadget mode +Subject: [PATCH] ARM: dts: tegra20-glide: fix USB gadget mode This commit makes USB gadget mode working by changing mode from OTG to peripherial and specifying vbus regulator. diff --git a/device/linux-samsung-i927/0019-ARM-dts-tegra20-glide-change-display-timings.patch b/device/linux-samsung-i927/0019-ARM-dts-tegra20-glide-change-display-timings.patch index f83474659..f730929a5 100644 --- a/device/linux-samsung-i927/0019-ARM-dts-tegra20-glide-change-display-timings.patch +++ b/device/linux-samsung-i927/0019-ARM-dts-tegra20-glide-change-display-timings.patch @@ -1,7 +1,7 @@ From 17a78313603f9da233307ccaf178c1fa6689de99 Mon Sep 17 00:00:00 2001 From: Sergey Larin Date: Thu, 7 Feb 2019 13:37:04 +0300 -Subject: [PATCH 19/34] ARM: dts: tegra20-glide: change display timings +Subject: [PATCH] ARM: dts: tegra20-glide: change display timings Fix the image being shifted upwards and make refresh rate a bit faster diff --git a/device/linux-samsung-i927/0020-ARM-dts-tegra20-glide-add-intrrupt-binding-for-charg.patch b/device/linux-samsung-i927/0020-ARM-dts-tegra20-glide-add-intrrupt-binding-for-charg.patch index 8acb11678..3f0b628de 100644 --- a/device/linux-samsung-i927/0020-ARM-dts-tegra20-glide-add-intrrupt-binding-for-charg.patch +++ b/device/linux-samsung-i927/0020-ARM-dts-tegra20-glide-add-intrrupt-binding-for-charg.patch @@ -1,8 +1,7 @@ From faf3aeb5d29682133c26da878f33a340cda6b90d Mon Sep 17 00:00:00 2001 From: Sergey Larin Date: Sat, 9 Feb 2019 18:30:12 +0300 -Subject: [PATCH 20/34] ARM: dts: tegra20-glide: add intrrupt binding for - charger +Subject: [PATCH] ARM: dts: tegra20-glide: add intrrupt binding for charger Add missing interrupt for max17043 charger diff --git a/device/linux-samsung-i927/0021-drm-panel-s6e63m0-disable-rotation.patch b/device/linux-samsung-i927/0021-drm-panel-s6e63m0-disable-rotation.patch index ece2761f9..fdc16c9b1 100644 --- a/device/linux-samsung-i927/0021-drm-panel-s6e63m0-disable-rotation.patch +++ b/device/linux-samsung-i927/0021-drm-panel-s6e63m0-disable-rotation.patch @@ -1,7 +1,7 @@ From dc2429062dd7e527b96cd03e5d2ca310df64e5c5 Mon Sep 17 00:00:00 2001 From: Sergey Larin Date: Sat, 9 Feb 2019 18:35:00 +0300 -Subject: [PATCH 21/34] drm/panel: s6e63m0: disable rotation +Subject: [PATCH] drm/panel: s6e63m0: disable rotation Low part of GTCON register is responsible for flipping/rotation. This commit disables default rotation by 180 degrees. diff --git a/device/linux-samsung-i927/0022-ARM-dts-tegra20-glide-set-panel-reset-GPIO-pin-to-ac.patch b/device/linux-samsung-i927/0022-ARM-dts-tegra20-glide-set-panel-reset-GPIO-pin-to-ac.patch index ded0ddb48..b6f9404d8 100644 --- a/device/linux-samsung-i927/0022-ARM-dts-tegra20-glide-set-panel-reset-GPIO-pin-to-ac.patch +++ b/device/linux-samsung-i927/0022-ARM-dts-tegra20-glide-set-panel-reset-GPIO-pin-to-ac.patch @@ -1,8 +1,8 @@ From aa393adbba669ab25251d241672ef9f418a85e8c Mon Sep 17 00:00:00 2001 From: Sergey Larin Date: Sat, 9 Feb 2019 18:44:17 +0300 -Subject: [PATCH 22/34] ARM: dts: tegra20-glide: set panel reset GPIO pin to - active low +Subject: [PATCH] ARM: dts: tegra20-glide: set panel reset GPIO pin to active + low This fixes display not working with new S6E63M0 panel driver. diff --git a/device/linux-samsung-i927/0023-power-supply-max17040-Fix-voltage-reporting.patch b/device/linux-samsung-i927/0023-power-supply-max17040-Fix-voltage-reporting.patch index 6168b5e15..aa6ebee80 100644 --- a/device/linux-samsung-i927/0023-power-supply-max17040-Fix-voltage-reporting.patch +++ b/device/linux-samsung-i927/0023-power-supply-max17040-Fix-voltage-reporting.patch @@ -1,7 +1,7 @@ From bac8eb35a16b6a0bc0969dc7d3fa862159519672 Mon Sep 17 00:00:00 2001 From: Sergey Larin Date: Sat, 9 Feb 2019 18:47:19 +0300 -Subject: [PATCH 23/34] power: supply: max17040: Fix voltage reporting +Subject: [PATCH] power: supply: max17040: Fix voltage reporting VCELL register on max17040 reports voltage in 1.25mV steps in top-12 bits. Fix volate reporting by taking this diff --git a/device/linux-samsung-i927/0024-power-supply-max17040-Set-initial-RCOMP-value.patch b/device/linux-samsung-i927/0024-power-supply-max17040-Set-initial-RCOMP-value.patch index 787ad1f26..f48a4be96 100644 --- a/device/linux-samsung-i927/0024-power-supply-max17040-Set-initial-RCOMP-value.patch +++ b/device/linux-samsung-i927/0024-power-supply-max17040-Set-initial-RCOMP-value.patch @@ -1,7 +1,7 @@ From eab2e34a6db401c7477f3084fca8152155bebd8c Mon Sep 17 00:00:00 2001 From: Sergey Larin Date: Sat, 9 Feb 2019 19:00:23 +0300 -Subject: [PATCH 24/34] power: supply: max17040: Set initial RCOMP value +Subject: [PATCH] power: supply: max17040: Set initial RCOMP value This should fix incorrect capacity reporting. diff --git a/device/linux-samsung-i927/0025-drm-panel-s6e63m0-Increase-back-porch.patch b/device/linux-samsung-i927/0025-drm-panel-s6e63m0-Increase-back-porch.patch index 8e76a7250..5e4a11cc7 100644 --- a/device/linux-samsung-i927/0025-drm-panel-s6e63m0-Increase-back-porch.patch +++ b/device/linux-samsung-i927/0025-drm-panel-s6e63m0-Increase-back-porch.patch @@ -1,7 +1,7 @@ From 191217e9006ab051cd2f18accc02582737fe0a38 Mon Sep 17 00:00:00 2001 From: Sergey Larin Date: Sat, 9 Feb 2019 20:13:26 +0300 -Subject: [PATCH 25/34] drm/panel: s6e63m0: Increase back porch +Subject: [PATCH] drm/panel: s6e63m0: Increase back porch Original timings cause issues on Tegra hardware - image is shifted and colors are wrong. diff --git a/device/linux-samsung-i927/0026-ARM-dts-tegra20-glide-fix-AK8975.patch b/device/linux-samsung-i927/0026-ARM-dts-tegra20-glide-fix-AK8975.patch index 7f2c13ddb..a567c4028 100644 --- a/device/linux-samsung-i927/0026-ARM-dts-tegra20-glide-fix-AK8975.patch +++ b/device/linux-samsung-i927/0026-ARM-dts-tegra20-glide-fix-AK8975.patch @@ -1,7 +1,7 @@ From cc78d2d1c0b02ee1a94801c4a99924ed85808c41 Mon Sep 17 00:00:00 2001 From: Sergey Larin Date: Sun, 10 Feb 2019 00:43:16 +0300 -Subject: [PATCH 26/34] ARM: dts: tegra20-glide: fix AK8975 +Subject: [PATCH] ARM: dts: tegra20-glide: fix AK8975 Add GPIO definition instead of interrupt. diff --git a/device/linux-samsung-i927/0027-Input-mcs_touchkey-Add-parse-DT-function-from-device.patch b/device/linux-samsung-i927/0027-Input-mcs_touchkey-Add-parse-DT-function-from-device.patch index 91727d198..df9b9fd0d 100644 --- a/device/linux-samsung-i927/0027-Input-mcs_touchkey-Add-parse-DT-function-from-device.patch +++ b/device/linux-samsung-i927/0027-Input-mcs_touchkey-Add-parse-DT-function-from-device.patch @@ -1,8 +1,7 @@ From bc7a628192bb519681a3c93bc1e1ed3f79c358da Mon Sep 17 00:00:00 2001 From: Beomho Seo Date: Mon, 12 Aug 2013 22:04:13 +0900 -Subject: [PATCH 27/34] Input: mcs_touchkey: Add parse DT function from device - tree +Subject: [PATCH] Input: mcs_touchkey: Add parse DT function from device tree Add parse DT function for support mcs touchkey driver diff --git a/device/linux-samsung-i927/0028-input-keyboard-mcs_touchkey-Convert-to-devm_-managed.patch b/device/linux-samsung-i927/0028-input-keyboard-mcs_touchkey-Convert-to-devm_-managed.patch index a824c2a5d..0049b176e 100644 --- a/device/linux-samsung-i927/0028-input-keyboard-mcs_touchkey-Convert-to-devm_-managed.patch +++ b/device/linux-samsung-i927/0028-input-keyboard-mcs_touchkey-Convert-to-devm_-managed.patch @@ -1,7 +1,7 @@ From c4ff1dc8430861193f894aa5cb7d4a816dc95b0d Mon Sep 17 00:00:00 2001 From: Beomho Seo Date: Mon, 13 Oct 2014 11:46:26 +0900 -Subject: [PATCH 28/34] input: keyboard: mcs_touchkey:Convert to devm_* managed +Subject: [PATCH] input: keyboard: mcs_touchkey:Convert to devm_* managed functions Tis patch use the devm_* managed functions to allocate resources. diff --git a/device/linux-samsung-i927/0029-input-keyboard-mcs_touchkey-add-sentinel-into-array-.patch b/device/linux-samsung-i927/0029-input-keyboard-mcs_touchkey-add-sentinel-into-array-.patch index 947bde0e0..b142d9484 100644 --- a/device/linux-samsung-i927/0029-input-keyboard-mcs_touchkey-add-sentinel-into-array-.patch +++ b/device/linux-samsung-i927/0029-input-keyboard-mcs_touchkey-add-sentinel-into-array-.patch @@ -1,8 +1,8 @@ From 6497c54d598bd7b62c2a54a76d3246b155a1cc4b Mon Sep 17 00:00:00 2001 From: Seung-Woo Kim Date: Thu, 4 Dec 2014 20:19:30 +0900 -Subject: [PATCH 29/34] input: keyboard: mcs_touchkey: add sentinel into array - of of_device_id +Subject: [PATCH] input: keyboard: mcs_touchkey: add sentinel into array of + of_device_id Without sentinel, of_match_node() to array causes out-of-bound memory access. So this patch adds sentinel into array. diff --git a/device/linux-samsung-i927/0030-TRATS2-dts-exynos4412-m0.dts-Add-mcs-touchkey-node.patch b/device/linux-samsung-i927/0030-TRATS2-dts-exynos4412-m0.dts-Add-mcs-touchkey-node.patch index 245560b98..5bbd98a97 100644 --- a/device/linux-samsung-i927/0030-TRATS2-dts-exynos4412-m0.dts-Add-mcs-touchkey-node.patch +++ b/device/linux-samsung-i927/0030-TRATS2-dts-exynos4412-m0.dts-Add-mcs-touchkey-node.patch @@ -1,7 +1,7 @@ From ecda374fe948e278635b6146320e5a569097b6a6 Mon Sep 17 00:00:00 2001 From: Beomho Seo Date: Mon, 12 Aug 2013 21:51:45 +0900 -Subject: [PATCH 30/34] TRATS2: dts: exynos4412-m0.dts: Add mcs-touchkey node +Subject: [PATCH] TRATS2: dts: exynos4412-m0.dts: Add mcs-touchkey node Support melfas 2 touchkey device for TRATS2 board Adds also the binding documentation file diff --git a/device/linux-samsung-i927/0031-ARM-dts-tegra20-glide-Add-touchkey-binding.patch b/device/linux-samsung-i927/0031-ARM-dts-tegra20-glide-Add-touchkey-binding.patch index 2f5a8fd64..7bd31c1a3 100644 --- a/device/linux-samsung-i927/0031-ARM-dts-tegra20-glide-Add-touchkey-binding.patch +++ b/device/linux-samsung-i927/0031-ARM-dts-tegra20-glide-Add-touchkey-binding.patch @@ -1,7 +1,7 @@ From 5efe0ea2a8014795c7c5926f257336394ce2177e Mon Sep 17 00:00:00 2001 From: Sergey Larin Date: Sun, 10 Feb 2019 13:19:50 +0300 -Subject: [PATCH 31/34] ARM: dts: tegra20-glide: Add touchkey binding +Subject: [PATCH] ARM: dts: tegra20-glide: Add touchkey binding This commit adds touchkey binding for Melfas MCS5080 diff --git a/device/linux-samsung-i927/0032-ARM-dts-tegra20-glide-Add-keyboard-backlight-LED.patch b/device/linux-samsung-i927/0032-ARM-dts-tegra20-glide-Add-keyboard-backlight-LED.patch index b790873f5..e95bedea0 100644 --- a/device/linux-samsung-i927/0032-ARM-dts-tegra20-glide-Add-keyboard-backlight-LED.patch +++ b/device/linux-samsung-i927/0032-ARM-dts-tegra20-glide-Add-keyboard-backlight-LED.patch @@ -1,7 +1,7 @@ From dd1d90e46c9f1a5d0757330ee2d5801962e9ef60 Mon Sep 17 00:00:00 2001 From: Sergey Larin Date: Sun, 10 Feb 2019 13:21:07 +0300 -Subject: [PATCH 32/34] ARM: dts: tegra20-glide: Add keyboard backlight LED +Subject: [PATCH] ARM: dts: tegra20-glide: Add keyboard backlight LED Keyboard backlight on I927 is simple GPIO LED diff --git a/device/linux-samsung-i927/0033-input-keyboard-mcs_touchkey-LED-support.patch b/device/linux-samsung-i927/0033-input-keyboard-mcs_touchkey-LED-support.patch index 53ac2f862..42d1dc2c4 100644 --- a/device/linux-samsung-i927/0033-input-keyboard-mcs_touchkey-LED-support.patch +++ b/device/linux-samsung-i927/0033-input-keyboard-mcs_touchkey-LED-support.patch @@ -1,7 +1,7 @@ From e91d56736df792ebe7da24644ea551a14b68db7a Mon Sep 17 00:00:00 2001 From: "Kim, HeungJun" Date: Mon, 15 Nov 2010 13:33:30 +0900 -Subject: [PATCH 33/34] input: keyboard: mcs_touchkey: LED support +Subject: [PATCH] input: keyboard: mcs_touchkey: LED support This commit adds support for LED found on this touchkey controller. diff --git a/device/linux-samsung-i927/0034-ARM-dts-tegra20-glide-Add-HALL-GPIO-binding.patch b/device/linux-samsung-i927/0034-ARM-dts-tegra20-glide-Add-HALL-GPIO-binding.patch index 397c9ac4b..26dce16db 100644 --- a/device/linux-samsung-i927/0034-ARM-dts-tegra20-glide-Add-HALL-GPIO-binding.patch +++ b/device/linux-samsung-i927/0034-ARM-dts-tegra20-glide-Add-HALL-GPIO-binding.patch @@ -1,7 +1,7 @@ From ceeecef75e5faa16a3f435eb25bb66c3d983a345 Mon Sep 17 00:00:00 2001 From: Sergey Larin Date: Sun, 10 Feb 2019 16:55:18 +0300 -Subject: [PATCH 34/34] ARM: dts: tegra20-glide: Add HALL GPIO binding +Subject: [PATCH] ARM: dts: tegra20-glide: Add HALL GPIO binding This is used for keyboard slide detection. diff --git a/device/linux-samsung-i927/0035-ARM-dts-tegra20-glide-Change-keyboard-keycodes.patch b/device/linux-samsung-i927/0035-ARM-dts-tegra20-glide-Change-keyboard-keycodes.patch new file mode 100644 index 000000000..e57b2c59f --- /dev/null +++ b/device/linux-samsung-i927/0035-ARM-dts-tegra20-glide-Change-keyboard-keycodes.patch @@ -0,0 +1,76 @@ +From bb7a98455d6ea2ec660621ff047060a4a9816f3e Mon Sep 17 00:00:00 2001 +From: Sergey Larin +Date: Sun, 17 Feb 2019 17:05:40 +0300 +Subject: [PATCH] ARM: dts: tegra20-glide: Change keyboard keycodes + +This is required to make proper XKB keymap + +Signed-off-by: Sergey Larin +--- + arch/arm/boot/dts/tegra20-glide.dts | 16 ++++++++-------- + 1 file changed, 8 insertions(+), 8 deletions(-) + +diff --git a/arch/arm/boot/dts/tegra20-glide.dts b/arch/arm/boot/dts/tegra20-glide.dts +index ab30b1b8cc29..f2b1805fc8cf 100644 +--- a/arch/arm/boot/dts/tegra20-glide.dts ++++ b/arch/arm/boot/dts/tegra20-glide.dts +@@ -1009,7 +1009,7 @@ + interrupt-parent = <&gpio>; + interrupts = ; + key_maxval = <4>; +- linux,code = ; ++ linux,code = ; + }; + }; + +@@ -1040,16 +1040,16 @@ + MATRIX_KEY(0, 0, KEY_R) + MATRIX_KEY(0, 1, KEY_G) + MATRIX_KEY(0, 2, KEY_V) +- MATRIX_KEY(0, 3, KEY_LEFTCTRL /* KEY_LEFTMETA */) ++ MATRIX_KEY(0, 3, KEY_LEFTMETA) + MATRIX_KEY(0, 4, KEY_MENU) + MATRIX_KEY(0, 5, KEY_HOME) + + MATRIX_KEY(1, 0, KEY_T) + MATRIX_KEY(1, 1, KEY_H) + MATRIX_KEY(1, 2, KEY_B) +- MATRIX_KEY(1, 3, KEY_TAB /* KEY_RIGHTMETA */) ++ MATRIX_KEY(1, 3, KEY_RIGHTMETA) + MATRIX_KEY(1, 4, KEY_Q) +- MATRIX_KEY(1, 5, KEY_FN) ++ MATRIX_KEY(1, 5, KEY_RIGHTALT /* KEY_FN */) + + MATRIX_KEY(2, 0, KEY_Y) + MATRIX_KEY(2, 1, KEY_J) +@@ -1074,13 +1074,13 @@ + + MATRIX_KEY(5, 0, KEY_O) + MATRIX_KEY(5, 1, KEY_UP) +- MATRIX_KEY(5, 2, KEY_OK) ++ MATRIX_KEY(5, 2, KEY_ENTER /* KEY_OK */) + MATRIX_KEY(5, 3, KEY_QUESTION) + MATRIX_KEY(5, 4, KEY_E) + MATRIX_KEY(5, 5, KEY_C) + + MATRIX_KEY(6, 0, KEY_P) +- MATRIX_KEY(6, 1, KEY_ENTER) ++ MATRIX_KEY(6, 1, KEY_KPENTER /* KEY_ENTER */) + MATRIX_KEY(6, 2, KEY_RIGHT) + MATRIX_KEY(6, 3, KEY_DOWN) + MATRIX_KEY(6, 4, KEY_D) +@@ -1088,9 +1088,9 @@ + MATRIX_KEY(7, 0, KEY_BACKSPACE /* KEY_DELETE */) + MATRIX_KEY(7, 1, KEY_BACK) + MATRIX_KEY(7, 2, KEY_SEARCH) +- MATRIX_KEY(7, 3, KEY_SLASH /* KEY_WWW */) ++ MATRIX_KEY(7, 3, KEY_WWW) + MATRIX_KEY(7, 4, KEY_F) +- MATRIX_KEY(7, 5, KEY_FN) >; ++ MATRIX_KEY(7, 5, KEY_RIGHTALT /* KEY_FN */) >; + }; + + stmpegpio: stmpe_gpio { +-- +2.20.1 + diff --git a/device/linux-samsung-i927/0036-ARM-dts-tegra20-glide-Fix-UART-bindings.patch b/device/linux-samsung-i927/0036-ARM-dts-tegra20-glide-Fix-UART-bindings.patch new file mode 100644 index 000000000..f64116539 --- /dev/null +++ b/device/linux-samsung-i927/0036-ARM-dts-tegra20-glide-Fix-UART-bindings.patch @@ -0,0 +1,128 @@ +From f2965a337e9971f338d663fc5baa19d08865acad Mon Sep 17 00:00:00 2001 +From: Sergey Larin +Date: Sat, 23 Feb 2019 21:03:21 +0300 +Subject: [PATCH] ARM: dts: tegra20-glide: Fix UART bindings + +Old UART bindings were broken. This commit also fixes +Bluetooth and GPS (you will need a userspace tool to use it). + +Signed-off-by: Sergey Larin +--- + arch/arm/boot/dts/tegra20-glide.dts | 87 ++++++++++++++++------------- + 1 file changed, 49 insertions(+), 38 deletions(-) + +diff --git a/arch/arm/boot/dts/tegra20-glide.dts b/arch/arm/boot/dts/tegra20-glide.dts +index f2b1805fc8cf..751c67924310 100644 +--- a/arch/arm/boot/dts/tegra20-glide.dts ++++ b/arch/arm/boot/dts/tegra20-glide.dts +@@ -4,44 +4,6 @@ + #include + #include "tegra20.dtsi" + +-// GPS +-&uarta { +- status = "okay"; +- +- gnss { +- // Actual chip is unknown +- // (I don't want to teardown this thing) +- compatible = "wi2wi,w2sg0084i"; +- +- sirf,onoff-gpios = <&gpio TEGRA_GPIO(N, 6) GPIO_ACTIVE_HIGH>; +- // reset GPIO: B2 +- // Also depends on this, but no way to specify it +- clocks = <&tegra_car TEGRA20_CLK_BLINK>; +- }; +- +-}; +- +-// Debug console +-&uartb { +- status = "okay"; +-}; +- +-// Bluetooth +-&uartc { +- status = "okay"; +- +- bluetooth { +- // can be changed to 4330 in linux v5.0 +- compatible = "brcm,bcm43438-bt"; +- max-speed = <921600>; +- shutdown-gpios = <&gpio TEGRA_GPIO(J, 5) GPIO_ACTIVE_HIGH>; +- device-wakeup-gpios = <&gpio TEGRA_GPIO(S, 1) GPIO_ACTIVE_HIGH>; +- host-wakeup-gpios = <&gpio TEGRA_GPIO(S, 2) GPIO_ACTIVE_HIGH>; +- clock-names = "lpo"; +- clocks = <&tegra_car TEGRA20_CLK_BLINK>; +- }; +-}; +- + / { + model = "Samsung SGH-I927 Captivate Glide"; + compatible = "samsung,i927", "nvidia,tegra20"; +@@ -50,6 +12,8 @@ + rtc0 = "/i2c@7000d000/max8907@3c"; + rtc1 = "/rtc@7000e000"; + serial0 = &uartb; ++ serial1 = &uarta; ++ serial2 = &uartc; + }; + + chosen { +@@ -478,6 +442,53 @@ + status = "okay"; + }; + ++ // GPS ++ serial@70006000 { ++ compatible = "nvidia,tegra20-hsuart"; ++ status = "okay"; ++ ++ /* ++ * Wakeup GPIO is needed for kernel driver to work, ++ * but we don't have one... There's GPIO_GPS_CNTL in ++ * original kernel, but it's not used. ++ */ ++#if 0 ++ gnss { ++ // Actual chip is unknown ++ // (I don't want to teardown this thing) ++ compatible = "wi2wi,w2sg0084i"; ++ ++ sirf,onoff-gpios = <&gpio TEGRA_GPIO(N, 6) GPIO_ACTIVE_HIGH>; ++ // reset GPIO: B2 ++ // Also depends on this, but no way to specify it ++ clocks = <&tegra_car TEGRA20_CLK_BLINK>; ++ }; ++#endif ++ }; ++ ++ // Debug console ++ serial@70006040 { ++ status = "okay"; ++ }; ++ ++ // Bluetooth ++ serial@70006200 { ++ compatible = "nvidia,tegra20-hsuart"; ++ status = "okay"; ++ ++ bluetooth { ++ // can be changed to 4330 in linux v5.0 ++ compatible = "brcm,bcm43438-bt"; ++ max-speed = <921600>; ++ shutdown-gpios = <&gpio TEGRA_GPIO(W, 1) GPIO_ACTIVE_HIGH>; ++ device-wakeup-gpios = <&gpio TEGRA_GPIO(S, 1) GPIO_ACTIVE_HIGH>; ++ host-wakeup-gpios = <&gpio TEGRA_GPIO(S, 2) GPIO_ACTIVE_HIGH>; ++ clocks = <&tegra_car TEGRA20_CLK_UARTC>; ++ clock-names = "uartc"; ++ ++ }; ++ }; ++ + serial@70006040 { + status = "okay"; + }; +-- +2.20.1 + diff --git a/device/linux-samsung-i927/0037-ARM-dts-tegra20-glide-USB-OTG-mode-and-power.patch b/device/linux-samsung-i927/0037-ARM-dts-tegra20-glide-USB-OTG-mode-and-power.patch new file mode 100644 index 000000000..470438bdf --- /dev/null +++ b/device/linux-samsung-i927/0037-ARM-dts-tegra20-glide-USB-OTG-mode-and-power.patch @@ -0,0 +1,104 @@ +From 5edeb7774dc89c4ba385eb066e31fa1e8774630c Mon Sep 17 00:00:00 2001 +From: Sergey Larin +Date: Sat, 23 Feb 2019 21:14:49 +0300 +Subject: [PATCH] ARM: dts: tegra20-glide: USB OTG mode and power + +OTG mode is now configured for ChipIdea UDC driver, but +I don't have a cable to test it. + +Signed-off-by: Sergey Larin +--- + arch/arm/boot/dts/tegra20-glide.dts | 30 ++++++++++++++++++++--------- + 1 file changed, 21 insertions(+), 9 deletions(-) + +diff --git a/arch/arm/boot/dts/tegra20-glide.dts b/arch/arm/boot/dts/tegra20-glide.dts +index 751c67924310..aa6cb3a78b2d 100644 +--- a/arch/arm/boot/dts/tegra20-glide.dts ++++ b/arch/arm/boot/dts/tegra20-glide.dts +@@ -589,7 +589,7 @@ + + maxim,system-power-controller; + +- mbatt-supply = <&usb0_vbus_reg>; ++ mbatt-supply = <&pmic_reg>; + in-v1-supply = <&mbatt_reg>; + in-v2-supply = <&mbatt_reg>; + in-v3-supply = <&mbatt_reg>; +@@ -666,7 +666,7 @@ + regulator-max-microvolt = <1800000>; + }; + +- vbus1_reg: ldo4 { ++ usb_phy_reg: ldo4 { + regulator-name = "nvvdd_ldo4,vap_usb_3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; +@@ -1147,12 +1147,13 @@ + usb@c5000000 { + compatible = "nvidia,tegra20-udc"; + status = "okay"; +- dr_mode = "peripheral"; // otg ++ dr_mode = "otg"; ++ vbus-supply = <&vbus_reg>; + }; + + usb-phy@c5000000 { + status = "okay"; +- vbus-supply = <&vbus1_reg>; ++ vbus-supply = <&usb_phy_reg>; + }; + + #if 0 +@@ -1305,7 +1306,7 @@ + #address-cells = <1>; + #size-cells = <0>; + +- usb0_vbus_reg: regulator@0 { ++ pmic_reg: regulator@0 { + compatible = "regulator-fixed"; + reg = <0>; + regulator-name = "usb0_vbus"; +@@ -1315,25 +1316,36 @@ + regulator-boot-on; + }; + +- vdd_5v0_hdmi: regulator@4 { ++ vdd_5v0_hdmi: regulator@1 { + compatible = "regulator-fixed"; +- reg = <4>; ++ reg = <1>; + regulator-name = "+5V_HDMI_CON"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + }; + +- vdd_hdmi_ldo: regulator@5 { ++ vdd_hdmi_ldo: regulator@2 { + compatible = "regulator-fixed"; +- reg = <5>; ++ reg = <2>; + regulator-name = "vdd-hdmi-ldo"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + gpio = <&gpio TEGRA_GPIO(H, 2) GPIO_ACTIVE_HIGH>; + enable-active-high; + }; ++ ++ vbus_reg: regulator@3 { ++ compatible = "regulator-fixed"; ++ reg = <3>; ++ regulator-name = "otg-en"; ++ regulator-min-microvolt = <5000000>; ++ regulator-max-microvolt = <5000000>; ++ gpio = <&gpio TEGRA_GPIO(R, 7) GPIO_ACTIVE_HIGH>; ++ enable-active-high; ++ }; + }; + ++ + sound { + compatible = "nvidia,tegra-audio-wm8994"; + nvidia,model = "wm8994-aif1"; +-- +2.20.1 + diff --git a/device/linux-samsung-i927/0038-ARM-dts-tegra20-glide-Remove-WiFi-host-wake-GPIO.patch b/device/linux-samsung-i927/0038-ARM-dts-tegra20-glide-Remove-WiFi-host-wake-GPIO.patch new file mode 100644 index 000000000..acccf1c6b --- /dev/null +++ b/device/linux-samsung-i927/0038-ARM-dts-tegra20-glide-Remove-WiFi-host-wake-GPIO.patch @@ -0,0 +1,29 @@ +From c68a5b3ceb2a8997a87d9a0bb3370facb9d242b2 Mon Sep 17 00:00:00 2001 +From: Sergey Larin +Date: Sat, 23 Feb 2019 21:26:15 +0300 +Subject: [PATCH] ARM: dts: tegra20-glide: Remove WiFi host-wake GPIO + +This device does not have any GPIO for host-wake, +the driver will now use SDIO interrupts. + +Signed-off-by: Sergey Larin +--- + arch/arm/boot/dts/tegra20-glide.dts | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/arch/arm/boot/dts/tegra20-glide.dts b/arch/arm/boot/dts/tegra20-glide.dts +index aa6cb3a78b2d..d7dfa895cf56 100644 +--- a/arch/arm/boot/dts/tegra20-glide.dts ++++ b/arch/arm/boot/dts/tegra20-glide.dts +@@ -1190,8 +1190,6 @@ + reg = <1>; + comaptible = "brcm,bcm4329-fmac"; + interrupt-parent = <&gpio>; +- interrupts = ; +- interrupt-names = "host-wake"; + }; + + }; +-- +2.20.1 + diff --git a/device/linux-samsung-i927/0039-ARM-dts-tegra20-glide-Add-bindings-for-microphone.patch b/device/linux-samsung-i927/0039-ARM-dts-tegra20-glide-Add-bindings-for-microphone.patch new file mode 100644 index 000000000..4cac46bbe --- /dev/null +++ b/device/linux-samsung-i927/0039-ARM-dts-tegra20-glide-Add-bindings-for-microphone.patch @@ -0,0 +1,58 @@ +From baf8ef830ce0bd32708b131a592c9cc01467c83b Mon Sep 17 00:00:00 2001 +From: Sergey Larin +Date: Sun, 24 Feb 2019 18:20:08 +0300 +Subject: [PATCH] ARM: dts: tegra20-glide: Add bindings for microphone + +Mic requires additional GPIOs to work: +- MICBIAS1: internal MICBIAS +- MICBIAS2: external (headphone) MICBIAS +- EAR_SEL: to choose between internal and external mic + +Also GPIO 1 on Wolfson chip needs to be asserted. +Make it on by default. + +Signed-off-by: Sergey Larin +--- + arch/arm/boot/dts/tegra20-glide.dts | 19 +++++++++++++++++++ + 1 file changed, 19 insertions(+) + +diff --git a/arch/arm/boot/dts/tegra20-glide.dts b/arch/arm/boot/dts/tegra20-glide.dts +index d7dfa895cf56..195ccb0a1012 100644 +--- a/arch/arm/boot/dts/tegra20-glide.dts ++++ b/arch/arm/boot/dts/tegra20-glide.dts +@@ -868,6 +868,7 @@ + #gpio-cells = <2>; + + wlf,ldo1ena = <&gpio TEGRA_GPIO(X, 5) GPIO_ACTIVE_HIGH>; ++ wlf,gpio-cfg = <0xA101 0 0 0 0 0 0 0 0 0 0>; + + }; + }; +@@ -1129,6 +1130,24 @@ + linux,default-trigger = "gpio"; + default-state = "off"; + }; ++ ++ micbias1 { ++ label = "MICBIAS1"; ++ gpios = <&gpio TEGRA_GPIO(X, 6) GPIO_ACTIVE_HIGH>; ++ default-state = "on"; ++ }; ++ ++ micbias2 { ++ label = "MICBIAS2"; ++ gpios = <&gpio TEGRA_GPIO(H, 3) GPIO_ACTIVE_HIGH>; ++ default-state = "off"; ++ }; ++ ++ earsel { ++ label = "EAR_SEL"; ++ gpios = <&gpio TEGRA_GPIO(I, 4) GPIO_ACTIVE_HIGH>; ++ default-state = "off"; ++ }; + }; + + pmc@7000e400 { +-- +2.20.1 + diff --git a/device/linux-samsung-i927/APKBUILD b/device/linux-samsung-i927/APKBUILD index dbba69b61..dcdf5fa2d 100644 --- a/device/linux-samsung-i927/APKBUILD +++ b/device/linux-samsung-i927/APKBUILD @@ -3,7 +3,7 @@ pkgname="linux-samsung-i927" pkgver=4.20.4 -pkgrel=1 +pkgrel=2 pkgdesc="Samsung Captivate Glide kernel fork" arch="armhf" _carch="arm" @@ -57,6 +57,11 @@ source=" 0032-ARM-dts-tegra20-glide-Add-keyboard-backlight-LED.patch 0033-input-keyboard-mcs_touchkey-LED-support.patch 0034-ARM-dts-tegra20-glide-Add-HALL-GPIO-binding.patch + 0035-ARM-dts-tegra20-glide-Change-keyboard-keycodes.patch + 0036-ARM-dts-tegra20-glide-Fix-UART-bindings.patch + 0037-ARM-dts-tegra20-glide-USB-OTG-mode-and-power.patch + 0038-ARM-dts-tegra20-glide-Remove-WiFi-host-wake-GPIO.patch + 0039-ARM-dts-tegra20-glide-Add-bindings-for-microphone.patch " builddir="$srcdir/${_repository}-${pkgver}" @@ -105,37 +110,42 @@ package() { sha512sums="5f9eb065932e404091dd9e4afd5a92b6382ddbc81488684c42981cdfe227da9a423356c19ec236ca1a9a7f4bf042cf351aa8b3cd4f7488b0d8b1245d69221a5c linux-samsung-i927-4.20.4.tar.gz c676893a5062a0cc1e4cfe2ad4f73087ae787e301d2f17a20cecc9cbce76fdd564517068ea063b07c26065107ac6e27e7c2be51b018796a1a982ec47cc852fa5 config-samsung-i927.armhf -8791c158836bd8db5b8b557138dd4b5ca9ffd94d0bc441c1fde649733c18a6ee73dde47aef96582edc844e059acd501ff4f8a6aad5157833b41e6e15bbf12f81 0001-dt-bindings-drm-panel-Add-Samsung-s6e63m0-panel-docu.patch -f8f1bf6944898b06fdec922eb97a674d2edcf58f1dac02aff6761674ec5b615b5432553e98bbb39b2b9110534b5a9a57f8f1a107e39ced48edd61cd194ac4935 0002-drm-panel-Add-driver-for-Samsung-S6E63M0-panel.patch -75bf4aaf46de8d56de9348c7c772a1063637aae9dc77f8da397d7e1220d4b29d5ccde3242b38b31d483f07f1c2a2b4e075cf04bfedcf0cf2ded09114b18b1bdb 0003-drm-tegra-Hacks-for-S6E63M0.patch -498796860ca706cb2d6914f6677942567782434887cdeb5872a7a03fa5f08c45ea3180fa2ab4e9976327b1a8786092a12171143c32182d88a0aee327b43ef2b0 0004-iio-gyro-mpu3050-get-chip-ID-correctly.patch -547215e283c4b6b5c390f4e954ffcfffa89da9037eab7dd59cf339bbda8a0bc2136bc515a5b3518b6161bf81ba59df5675dacf7a48a811a2c1391037ba6a2a36 0005-soc-tegra-fix-build-for-Tegra.patch -c3e771e046f76f516cbefb5aeae4064279dfb6a0b76c2f05d577753ab1150ca2f3c6201e8903b8a174997028f935287fe2a5f6727d1fe07cba56331b18763f21 0006-mmc-core-Add-a-quirk-for-NVIDIA-Tegra-EMMC.patch -ff287c7938489f96e3a2a31f7fcd55bfb3945984dbd89796684c820ca19ceb7275307517925939fa5d9b03a42f9bea649d3baf4c9c26d835c9ff2f98bd898403 0007-leds-Add-led-class-support-isa1200-vibration-motor.patch -f9d1e22735cc8c3e8300f05a63527dcf78ce74da1ec9538155a66eb34d2421a4f449ca8c6bc7b62fa146e762b4ec997aa563da5c6f1586285aec5f79ee3cda2f 0008-iio-accel-kxcjk-Add-device-tree-support.patch -4c829deef770aab5c17314853af10c8acb913be3ed839a6b926680da54bc7e3f3d85c12862dd4b530ef57a569cceb55693fc269e9fd232636070cb6d8676891e 0009-ARM-dts-tegra20-glide-Samsung-SGH-I927-support.patch -4740867e900e05c3db66ec4069ba2b8a371a05ebb11b9e40349fe3f94466a7f80596bdf809d90a9a3389f861db4d272f4913069323c17144411fa831a4ec03ae 0010-Input-stmpe-keypad-add-STMPE1801-support.patch -af1cee099fe35eef22fb77889f9e9784f6bcc2606e16d837824e9fc0e0a6a33e2d58565cad8daa362de5a1fe9dd32e229ec4a7323aa61e823bb7f4a0c06fd9df 0011-Add-tegra_wm8994-driver.patch -cf0b473400968f7b8472a5657855df18a2240b3335cc21c2d1207e634ecfce9565b57407eab6dee432d60ddc6418e1638d67c156881f92acf382afe8542f1e02 0012-HACK-Fix-wm8994-Kconfig.patch -41ea8f9e714b6809d52ab0e3d7da655746f73715ae5ef1e1b108c2f569491056530f128b5acc5ece1800b578f558e014f1fc016a0116a76b039c665a440308a4 0013-ASoC-tegra_wm8994-cleanup.patch -dc36fa11439f24bff01f0f098d396bd7ec53e25bc9528e80227d197607f7def6383bb7780abb01c6bd544dc2718b587472f7367a02eb758ca28ee2de3285974a 0014-ARM-dts-tegra20-glide-Device-Tree-changes.patch -93caaa3cc90c45614aa4f1659933cd7dd81baaf473a9c13aa6ebc2092dd15f02121df4a2af6cb0d0b4d0db4c0e348a3e775834011378b0a693f0cf47cf25b722 0015-ARM-dts-tegra20-glide-add-memory-node-address.patch -392c7d65c94d7fd8d7c745b2cc9f4352683e5026d29e985c49ba8aaf381b0383ba6aaf85222715de0c8ee95f36b6f7609e7dc464bde47a6f919b808504080dc0 0016-ARM-dts-tegra20-glide-comment-out-MHL.patch -a47ff803d2c1df850bf5ad75ae0a8c1fe9275e6252ba679cd62f37abe7a4fe100aa48eb1f494104846facdb74d6fd77aed7658bcbc17501d05375cc2b04c31e8 0017-ARM-dts-tegra20-glide-fix-duplicate-i2c-bus-address.patch -3637e6b7231183cd0953c06c698ec54790615dc9dadaa91b7633adf41bf300c006be35665ff02bb5c1f7324329f859c9dd82876eeeeb8a3203290473904e4bfb 0018-ARM-dts-tegra20-glide-fix-USB-gadget-mode.patch -171563e46a6b1ca9be9cf105ea8f601a1d113ee8d007cee4abe54f4c025dc933497b0070b3e5e2401ce04206b7a477924d26f2615e17f8f2a7c6128e3172c93a 0019-ARM-dts-tegra20-glide-change-display-timings.patch -b3981b1f88b70ec59289171e75b462edfebf918f229cb3c549febdfecb0d0efc1842e4820b8c172a372ba136d5939cdf81f9dd24441168400688626288e29fbd 0020-ARM-dts-tegra20-glide-add-intrrupt-binding-for-charg.patch -222fedee563f19ba5e6fba7393099f061040065ea690f597743dab4f5851dc9d559c949f975025444720f320496195e5cd027f37a1bf4ce591537e9e64c45135 0021-drm-panel-s6e63m0-disable-rotation.patch -2014b13ab9ebb1ade4e3d882916922365fa663adecf4a1b8da4ca2f433bf26352b80eab69e79af72285a6a1bb1d0848e33fe032ff644d94496c98247ef775728 0022-ARM-dts-tegra20-glide-set-panel-reset-GPIO-pin-to-ac.patch -ccaa18e3d4b27d6f8c07e968abafc006067b1150993e167f725e06af3cd6884cfcf502ac4cc758638b170a212a28e66a670ba85429ca2c2143e0f607243bc9ad 0023-power-supply-max17040-Fix-voltage-reporting.patch -de6f1efea36f66d360e5ff542982ff47d696ac81ff4328f50fc96a37eb8c446d13d52035c4e097e19938c3e9e7b9fc423c4d9d4801de0937b5f6be0b125a4d64 0024-power-supply-max17040-Set-initial-RCOMP-value.patch -e48f47d145f6312cbed5fcd9a907c3037704634f027c85fe03e7a3e90402d2172f8734bbfc14858a9238e6ff84fb7f136a7187349a62786171feeb1b54ef87d7 0025-drm-panel-s6e63m0-Increase-back-porch.patch -3dd3fcc3d607b584bab5407346c65f2ba5650ae34e39e913809bd6eaf8b2fe3e6a79973efde0cca4024dab5e9c3f8e9c66293bb3d99a55c5bf81875ca1779f85 0026-ARM-dts-tegra20-glide-fix-AK8975.patch -4a448e378bdfcca1292bbc877581984d64205429ed7f61e80cb22422714b15fe1691e2234475c3ee84e744580f5e4e6ef5e8023d683332f4f2acce0779978469 0027-Input-mcs_touchkey-Add-parse-DT-function-from-device.patch -caf9e44d8b6f8efa414d21a0fa74cdbb0df0902651dc18e26969b91c411ec8826223b2bda5b96e2df669c4f1901e4bcfa7a5e6beb4f15e33f6aa016f15589b4f 0028-input-keyboard-mcs_touchkey-Convert-to-devm_-managed.patch -993192bd8675f942b0fd5f378a7653b94d190f05ee8f883888aa8d58b9a355b8ad3d85ad97b75a553fe415e1a394acd9c248cf734340609b767ded90b7f56343 0029-input-keyboard-mcs_touchkey-add-sentinel-into-array-.patch -43a5695a1fd999acb4f6dc5e0d0af17b8b2c74995db2ce0082a69876a285256c992ab4090cc09571897446a7fe85c706a7131ca951a83e033a6f8cba77013fdb 0030-TRATS2-dts-exynos4412-m0.dts-Add-mcs-touchkey-node.patch -a1ab752a0aab1b53108cc0ec7ead852d97ccab3c43fb682bed77e1e4d62098268214d06aa8e058ab96f8634de6233c5934743f5e7d8345ae158a7409ec4e9d24 0031-ARM-dts-tegra20-glide-Add-touchkey-binding.patch -7eebe202647b5d7308a67892d9fa981b2e87044786665f46133effde406c02f0a4c1f73158850ce4551f57f5fcefccbec51b342ece3c60bb4c7d7193435cd146 0032-ARM-dts-tegra20-glide-Add-keyboard-backlight-LED.patch -92c7416647fe780ef1b2a3dda5468e0c13b10c40937f0a620d666d4785a4354d88e2d4c12fdaa1e2399322caebd625c198c22ac74e646b097642e3d5ae241910 0033-input-keyboard-mcs_touchkey-LED-support.patch -679cbe5d74515fbdeb55c3a4aeb0571d6b0096483cbb93ef3fc645c5aa80ab3f3731f52001c08979f2742ad90c8dedf5231f40fecef55d7b5761004373cfeb58 0034-ARM-dts-tegra20-glide-Add-HALL-GPIO-binding.patch" +7dfb712823f783f9263622fe16a3e65b8ae11c3d0661f17e5f527c2e30ded0f89a38f0de998e4ba12ea89cbae5ddbe8a27c9ce87e8f54344d838f5a5dcff1c9f 0001-dt-bindings-drm-panel-Add-Samsung-s6e63m0-panel-docu.patch +fcf88346c9c7ace5918d7b87acdab346e8f2fd6a189a293db6b5aa879108e535b148827cf001df65742a4e0177fcd8c9cf7ba2ad1ab8e89bdab753ab536fe807 0002-drm-panel-Add-driver-for-Samsung-S6E63M0-panel.patch +29e9510202e0ccdb1be3b05de42c82c65fafaa52a78a252a92d5278293b6d136eef1b182ad58b5375248ceaf5b3513c1c0691902d1ace007576948bf2285748a 0003-drm-tegra-Hacks-for-S6E63M0.patch +3b05c9d840d1ace9769d4ac577ff363458f5fa70a2efd467c5ff140ff7e328a1bdbee988e450deb267c1747158a0c809f7418d9871d3470049ad42d7d800aa6f 0004-iio-gyro-mpu3050-get-chip-ID-correctly.patch +f76ea98539052453ec9937f92de4001c6b676262939fd1938723597d663da72f77f75371f4fa97b10dc9146336a4be315545142de4bfd6ed90af8c89799bd254 0005-soc-tegra-fix-build-for-Tegra.patch +f88ba68f43a53e5a73155bfd73eed060f8ce506eb8238aa73f60e9f03a14325278eea34a82e913992f5045def866003cd576106c06018970b77e67cbe07097d2 0006-mmc-core-Add-a-quirk-for-NVIDIA-Tegra-EMMC.patch +7329673a287a4e6b088b2a8accb20fca80939e1a6762993b38d7b8219c1787df1e72515afaed135957b3501f4dfb53f5d21dc718d4fa73e693ac6b880c203297 0007-leds-Add-led-class-support-isa1200-vibration-motor.patch +f071517e12b195ae8e95784cdd0dcf61766015f25b08b8d86fc928218e46457e706ff4cce6ca04e2b70763d2910f858d32167441df4d3f234ace25add550c897 0008-iio-accel-kxcjk-Add-device-tree-support.patch +2994910eeee9bc5a7049ebc4fd9a0607e233849411c03a71bc1bf83aa68c087293723b5ca9b8468a6865c9cd38a6a158b25176bfb9bed159ca0e2574e21c7fcc 0009-ARM-dts-tegra20-glide-Samsung-SGH-I927-support.patch +b1179f041735d9f3197e77f4cf7588bbe07b1dc11c73798abf9d6f06e4e13b284a9b347ff8d2512592374451e8c6cfabb8e5f36105f95ed913b8b647ef7823cb 0010-Input-stmpe-keypad-add-STMPE1801-support.patch +d5f7b94d14e0ab122d40b2ce6fe56c9fb617ea3060ba35892487c61de5032d068ad582ece0db5dff4d340bb440c0037a905b270841faef980242a72aa8438029 0011-Add-tegra_wm8994-driver.patch +926be3e6a37bfe37b17fc42022445c3354a178716bb460f445fa332b4aae8cfc2c6bf49b28799c01ae2ea3c010cd61c192f89987dd931aeca7708d88a82eaee7 0012-HACK-Fix-wm8994-Kconfig.patch +449da7e1adac68fbf31a01240f10a573ef65b739b1d8f1180bb72321095119a792210b98563e89d7c230f8aa577940261ffca1239f435a64bb1fabf7a7250e2b 0013-ASoC-tegra_wm8994-cleanup.patch +05bd5d1a21eb20c0fb373d3fea6829942f7f7591bb8dd3b37ebe8d544652e1134e69348be6a2c1728fc30abc5a68cb0188595861e2487712e7c49411abb03586 0014-ARM-dts-tegra20-glide-Device-Tree-changes.patch +42c70a41c5fbd989ee2a23f7abf9bc28cb65a6de6764db5ad5fd102b17b5ed69a696e7b3ffc0f24ddafb93985b1e0cbdc16cac42ec6b9aea1c9caa97ccbc225d 0015-ARM-dts-tegra20-glide-add-memory-node-address.patch +2fda20516869817dd13324d89d5ebf4347cb15aa5de5d44a87ddba4402ce4c9b4f913dd7a34911a0783cd221d7b75e3a2b0e50b76811c883f55bf06a047e4af9 0016-ARM-dts-tegra20-glide-comment-out-MHL.patch +9a0000f4b69dce55d542eb9efe3dd568403b1056cccaa0b91db9ebd007091eabd6675ceb59c17b900985776ea6747f421df36b34de52c311bb5bcc530d2eb236 0017-ARM-dts-tegra20-glide-fix-duplicate-i2c-bus-address.patch +898cfe0fb15702f40b236e8ae12ea07db960d61e58d1474abdbbe35bd2cfc87748228e78b6c2f2f3058e78982a64a0986a533eca412d2fc2ef344b806c9ecd41 0018-ARM-dts-tegra20-glide-fix-USB-gadget-mode.patch +dae4e3a9bfe17fb58e568ef4467f2344ebd8cff9614f03ee245bca1aec614c0fceaa1a693e8d3aba4cb29577760bf312b3c4c4fbf6223ef606c79b3c4fe7e702 0019-ARM-dts-tegra20-glide-change-display-timings.patch +3919c2f80a0cf6529f2b469c560c822113e703fa0ee40b35f9fc0a244b0060b6b535960c17ce0ba73f9623aeede809f736345cc4db6ff14f41ff2a11be75b4dd 0020-ARM-dts-tegra20-glide-add-intrrupt-binding-for-charg.patch +2e7a2341734c3164803ec589d81a63c85923482c30a51e3cfed8a11b672b75628b77965e554bffbc53e25ccb696f361b163c52b02d5ca52093be3464ef1510d2 0021-drm-panel-s6e63m0-disable-rotation.patch +898cc2e189a0032b7e87208a7d932e43504fded1642e012e6fb97ba34027e5645740c82ca0afd51e951ede548e6343e3bbd0ccd1defe4c7a9b30d4f90a577987 0022-ARM-dts-tegra20-glide-set-panel-reset-GPIO-pin-to-ac.patch +0db0a631fcbefa3df40de808cf4d9e5c09bff05456e99ccb1d728e29c57798a89dacc7fb3b9d294ece40ae188437f3d2e653a91273b7b056dd759bf9b177480d 0023-power-supply-max17040-Fix-voltage-reporting.patch +a9c2ea83254fdf682835f040a4f7803e189c62362834eafce97618b3e364a753cb91ac55b8eecb2341f01186d743dc544685475fa934244e9fb7bd6a575b092c 0024-power-supply-max17040-Set-initial-RCOMP-value.patch +5171517d32de9df58731bd01d5bcde646a9ea556c6b49840d09a66a95d4ad0c9785e507b314684bb8902d7e073406e3fc198f124baad0c02f21a506cc0298896 0025-drm-panel-s6e63m0-Increase-back-porch.patch +9ba9c82b0eca98d82fed651aac20e95299347bb42115e19d58d0d9af806cf95ff61e027986054aebee8c7e6cdb830453130281f38ae27c68e57fc6bcfcab35af 0026-ARM-dts-tegra20-glide-fix-AK8975.patch +f0822d4adc53b5ba9f1c1f1584785b65c6a830bebdd6f87015d33198764274153f69954ed3329e5300b48d7ddcdc90bce5a24e1cbb29169dcf7915f483d6b730 0027-Input-mcs_touchkey-Add-parse-DT-function-from-device.patch +032013b850cc2dadcb49d5184744fb9b9d8c7860e8cbc9b7250e6bc4a37a22e12bb3a1c871fff325ccd11163aa19073171d2fcce0355d7434ef66af435eb9053 0028-input-keyboard-mcs_touchkey-Convert-to-devm_-managed.patch +ff77927fb87dd283484feccf8c9ef073f42ccebd2192a87c1fe78a9423dd7b3bcc1e3dfdb0999a5500452a42135151c2ed9e77d3c34e0b9b84ca7f4a1dead8d4 0029-input-keyboard-mcs_touchkey-add-sentinel-into-array-.patch +f02cbe2baeb4784eebdc491aa4b12e97ae7fdaf2a5130231b3eb1f562c32e7257cc6eb416c4cd36c6d176741c5e9d98c9b194d255383f6a36ed5ae723896b3c7 0030-TRATS2-dts-exynos4412-m0.dts-Add-mcs-touchkey-node.patch +17841e65cf2e0a8cc2959055f854982bfa1060e5a50c54658a6023919c2c1591acb800c64b779ebb9f2647c5160e05066c82d0fe36345030cdb5074fc9a75541 0031-ARM-dts-tegra20-glide-Add-touchkey-binding.patch +ceae739b569fcc7ce1fb88903bd5a5d2640c5a843a1904beed761f6a26eb515baa5c3f8881b76e4c16b7d264381ee9e9e390d5a524fbd0e9556b32c544703286 0032-ARM-dts-tegra20-glide-Add-keyboard-backlight-LED.patch +815fa2ad4f00f9252a7162924ebb9e21ca535697dd80b50580049549589760ab20d43263d0963877cb21a9ab0018bfed4c01f7989263d88ae5bcd67deeaaa0f3 0033-input-keyboard-mcs_touchkey-LED-support.patch +e0a33d3478fbb9a9041e435996fac6ef0e1c93c435b2dc73f80d1f329d5e0dbdcecf749888a8d4d3d164854288075d4b99f129df3caee7593ca8d2b3d9307d4b 0034-ARM-dts-tegra20-glide-Add-HALL-GPIO-binding.patch +74991393af78bc7cd495eed25ba6f3d75ef05e7ee6be7e2f0085db52eda8838d338721ef7ef7ddfc37bbc55a1462d58dbf74c0494e3fa0248643421e0f0f38cd 0035-ARM-dts-tegra20-glide-Change-keyboard-keycodes.patch +9f88dadbe76eb9694b42bb6ab5031a63e03cee1f3a046036dc255761001d49c852a617b44c14868def7d17602c2f3f7d25e5f66d65232cc9d0b80f05a9e605b4 0036-ARM-dts-tegra20-glide-Fix-UART-bindings.patch +ecf0d3d69e073d8725e31cae8c1ffc6dcd983b6f8ec9c37b40d1cbbcba3f82326cfd2ad89a4e53f272f9bea2b9f06abb1e662e987e52429ef8eb72b9cb3c79ed 0037-ARM-dts-tegra20-glide-USB-OTG-mode-and-power.patch +18d59fcd6e78410e874db04d6f4dce7e427c67cef3821b01488b0b815ad6dfc4d18e420c56385686a19e44dadb33c760824136dcb1938bc5d3a052ca2f515000 0038-ARM-dts-tegra20-glide-Remove-WiFi-host-wake-GPIO.patch +3ebb4b6b495e1b78bb591f47024158041a724004441de30272fe35f65a09703c6259759d3add1a7cd6774d46c09c976ac1607ee6e8018871dc5e4fde3caae21c 0039-ARM-dts-tegra20-glide-Add-bindings-for-microphone.patch"