mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
core/linux-am33x to 4.6.0-2
This commit is contained in:
parent
8b6ff5c03c
commit
a32df685e8
3 changed files with 199 additions and 27 deletions
175
core/linux-am33x/0001-add-lcd-cape-for-chiliboard.patch
Normal file
175
core/linux-am33x/0001-add-lcd-cape-for-chiliboard.patch
Normal file
|
@ -0,0 +1,175 @@
|
|||
From 21fd844c96291eccd57e2401864506e76a8cf124 Mon Sep 17 00:00:00 2001
|
||||
From: Mateusz Salamon <m.salamon@grinn-global.com>
|
||||
Date: Fri, 20 May 2016 14:31:51 +0200
|
||||
Subject: [PATCH] add lcd cape for chiliboard
|
||||
|
||||
---
|
||||
arch/arm/boot/dts/Makefile | 1 +
|
||||
arch/arm/boot/dts/am335x-chiliboard-lcd.dts | 143 ++++++++++++++++++++++++++++
|
||||
2 files changed, 144 insertions(+)
|
||||
create mode 100644 arch/arm/boot/dts/am335x-chiliboard-lcd.dts
|
||||
|
||||
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
|
||||
index e1d964e..189604e 100644
|
||||
--- a/arch/arm/boot/dts/Makefile
|
||||
+++ b/arch/arm/boot/dts/Makefile
|
||||
@@ -511,6 +511,7 @@ dtb-$(CONFIG_SOC_AM33XX) += \
|
||||
am335x-boneblack-emmc-overlay.dtb \
|
||||
am335x-bonegreen.dtb \
|
||||
am335x-chiliboard.dtb \
|
||||
+ am335x-chiliboard-lcd.dtb \
|
||||
am335x-cm-t335.dtb \
|
||||
am335x-evm.dtb \
|
||||
am335x-evmsk.dtb \
|
||||
diff --git a/arch/arm/boot/dts/am335x-chiliboard-lcd.dts b/arch/arm/boot/dts/am335x-chiliboard-lcd.dts
|
||||
new file mode 100644
|
||||
index 0000000..bee7d42
|
||||
--- /dev/null
|
||||
+++ b/arch/arm/boot/dts/am335x-chiliboard-lcd.dts
|
||||
@@ -0,0 +1,143 @@
|
||||
+/*
|
||||
+ * Copyright (C) 2016 Grinn Sp. z o.o.
|
||||
+ * Author: Mateusz Salamon <m.salamon@grinn-global.com>
|
||||
+ *
|
||||
+ * This program is free software; you can redistribute it and/or modify
|
||||
+ * it under the terms of the GNU General Public License version 2 as
|
||||
+ * published by the Free Software Foundation.
|
||||
+ */
|
||||
+#include "am335x-chiliboard.dts"
|
||||
+
|
||||
+/ {
|
||||
+ panel {
|
||||
+ compatible = "ti,tilcdc,panel";
|
||||
+ status = "okay";
|
||||
+ panel-info {
|
||||
+ ac-bias = <255>;
|
||||
+ ac-bias-intrpt = <0>;
|
||||
+ dma-burst-sz = <16>;
|
||||
+ bpp = <32>;
|
||||
+ fdd = <0x80>;
|
||||
+ sync-edge = <0>;
|
||||
+ sync-ctrl = <1>;
|
||||
+ raster-order = <0>;
|
||||
+ fifo-th = <0>;
|
||||
+ };
|
||||
+
|
||||
+ display-timings {
|
||||
+ /* YEEBO YB-YG800480S01A-T-A0 */
|
||||
+ 800x480p62 {
|
||||
+ clock-frequency = <33300000>;
|
||||
+ hactive = <800>;
|
||||
+ vactive = <480>;
|
||||
+ hfront-porch = <210>;
|
||||
+ hback-porch = <46>;
|
||||
+ hsync-len = <2>;
|
||||
+ vback-porch = <23>;
|
||||
+ vfront-porch = <22>;
|
||||
+ vsync-len = <2>;
|
||||
+ hsync-active = <1>;
|
||||
+ vsync-active = <1>;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&am33xx_pinmux {
|
||||
+
|
||||
+ lcd_pins_default: lcd_pins_default {
|
||||
+ pinctrl-single,pins = <
|
||||
+ 0x20 0x01 /* gpmc_ad8.lcd_data16, OUTPUT | MODE1 */
|
||||
+ 0x24 0x01 /* gpmc_ad9.lcd_data17, OUTPUT | MODE1 */
|
||||
+ 0x28 0x01 /* gpmc_ad10.lcd_data18, OUTPUT | MODE1 */
|
||||
+ 0x2c 0x01 /* gpmc_ad11.lcd_data19, OUTPUT | MODE1 */
|
||||
+ 0x30 0x01 /* gpmc_ad12.lcd_data20, OUTPUT | MODE1 */
|
||||
+ 0x34 0x01 /* gpmc_ad13.lcd_data21, OUTPUT | MODE1 */
|
||||
+ 0x38 0x01 /* gpmc_ad14.lcd_data22, OUTPUT | MODE1 */
|
||||
+ 0x3c 0x01 /* gpmc_ad15.lcd_data23, OUTPUT | MODE1 */
|
||||
+ 0xa0 0x00 /* lcd_data0.lcd_data0, OUTPUT | MODE0 */
|
||||
+ 0xa4 0x00 /* lcd_data1.lcd_data1, OUTPUT | MODE0 */
|
||||
+ 0xa8 0x00 /* lcd_data2.lcd_data2, OUTPUT | MODE0 */
|
||||
+ 0xac 0x00 /* lcd_data3.lcd_data3, OUTPUT | MODE0 */
|
||||
+ 0xb0 0x00 /* lcd_data4.lcd_data4, OUTPUT | MODE0 */
|
||||
+ 0xb4 0x00 /* lcd_data5.lcd_data5, OUTPUT | MODE0 */
|
||||
+ 0xb8 0x00 /* lcd_data6.lcd_data6, OUTPUT | MODE0 */
|
||||
+ 0xbc 0x00 /* lcd_data7.lcd_data7, OUTPUT | MODE0 */
|
||||
+ 0xc0 0x00 /* lcd_data8.lcd_data8, OUTPUT | MODE0 */
|
||||
+ 0xc4 0x00 /* lcd_data9.lcd_data9, OUTPUT | MODE0 */
|
||||
+ 0xc8 0x00 /* lcd_data10.lcd_data10, OUTPUT | MODE0 */
|
||||
+ 0xcc 0x00 /* lcd_data11.lcd_data11, OUTPUT | MODE0 */
|
||||
+ 0xd0 0x00 /* lcd_data12.lcd_data12, OUTPUT | MODE0 */
|
||||
+ 0xd4 0x00 /* lcd_data13.lcd_data13, OUTPUT | MODE0 */
|
||||
+ 0xd8 0x00 /* lcd_data14.lcd_data14, OUTPUT | MODE0 */
|
||||
+ 0xdc 0x00 /* lcd_data15.lcd_data15, OUTPUT | MODE0 */
|
||||
+ 0xe0 0x00 /* lcd_vsync.lcd_vsync, OUTPUT | MODE0 */
|
||||
+ 0xe4 0x00 /* lcd_hsync.lcd_hsync, OUTPUT | MODE0 */
|
||||
+ 0xe8 0x00 /* lcd_pclk.lcd_pclk, OUTPUT | MODE0 */
|
||||
+ 0xec 0x00 /* lcd_ac_bias_en.lcd_ac_bias_en, OUTPUT | MODE0 */
|
||||
+ >;
|
||||
+ };
|
||||
+
|
||||
+ lcd_pins_sleep: lcd_pins_sleep {
|
||||
+ pinctrl-single,pins = <
|
||||
+ 0x20 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad8.lcd_data16 */
|
||||
+ 0x24 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad9.lcd_data17 */
|
||||
+ 0x28 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad10.lcd_data18 */
|
||||
+ 0x2c (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad11.lcd_data19 */
|
||||
+ 0x30 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad12.lcd_data20 */
|
||||
+ 0x34 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad13.lcd_data21 */
|
||||
+ 0x38 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad14.lcd_data22 */
|
||||
+ 0x3c (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad15.lcd_data23 */
|
||||
+ 0xa0 (PULL_DISABLE | MUX_MODE7) /* lcd_data0.lcd_data0 */
|
||||
+ 0xa4 (PULL_DISABLE | MUX_MODE7) /* lcd_data1.lcd_data1 */
|
||||
+ 0xa8 (PULL_DISABLE | MUX_MODE7) /* lcd_data2.lcd_data2 */
|
||||
+ 0xac (PULL_DISABLE | MUX_MODE7) /* lcd_data3.lcd_data3 */
|
||||
+ 0xb0 (PULL_DISABLE | MUX_MODE7) /* lcd_data4.lcd_data4 */
|
||||
+ 0xb4 (PULL_DISABLE | MUX_MODE7) /* lcd_data5.lcd_data5 */
|
||||
+ 0xb8 (PULL_DISABLE | MUX_MODE7) /* lcd_data6.lcd_data6 */
|
||||
+ 0xbc (PULL_DISABLE | MUX_MODE7) /* lcd_data7.lcd_data7 */
|
||||
+ 0xc0 (PULL_DISABLE | MUX_MODE7) /* lcd_data8.lcd_data8 */
|
||||
+ 0xc4 (PULL_DISABLE | MUX_MODE7) /* lcd_data9.lcd_data9 */
|
||||
+ 0xc8 (PULL_DISABLE | MUX_MODE7) /* lcd_data10.lcd_data10 */
|
||||
+ 0xcc (PULL_DISABLE | MUX_MODE7) /* lcd_data11.lcd_data11 */
|
||||
+ 0xd0 (PULL_DISABLE | MUX_MODE7) /* lcd_data12.lcd_data12 */
|
||||
+ 0xd4 (PULL_DISABLE | MUX_MODE7) /* lcd_data13.lcd_data13 */
|
||||
+ 0xd8 (PULL_DISABLE | MUX_MODE7) /* lcd_data14.lcd_data14 */
|
||||
+ 0xdc (PULL_DISABLE | MUX_MODE7) /* lcd_data15.lcd_data15 */
|
||||
+ 0xe0 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* lcd_vsync.lcd_vsync */
|
||||
+ 0xe4 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* lcd_hsync.lcd_hsync */
|
||||
+ 0xe8 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* lcd_pclk.lcd_pclk */
|
||||
+ 0xec (PIN_INPUT_PULLDOWN | MUX_MODE7) /* lcd_ac_bias_en.lcd_ac_bias_en */
|
||||
+ >;
|
||||
+ };
|
||||
+};
|
||||
+/* LCD */
|
||||
+&lcdc {
|
||||
+ status = "okay";
|
||||
+ pinctrl-names = "default", "sleep";
|
||||
+ pinctrl-0 = <&lcd_pins_default>;
|
||||
+ pinctrl-1 = <&lcd_pins_sleep>;
|
||||
+};
|
||||
+
|
||||
+&tscadc {
|
||||
+ status = "okay";
|
||||
+ tsc {
|
||||
+ ti,wires = <4>;
|
||||
+ ti,x-plate-resistance = <200>;
|
||||
+ ti,coordinate-readouts = <5>;
|
||||
+ ti,wire-config = <0x00 0x11 0x22 0x33>;
|
||||
+ };
|
||||
+
|
||||
+ adc {
|
||||
+ ti,adc-channels = <4 5 6 7>;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+&tps {
|
||||
+ backlight {
|
||||
+ compatible = "ti,tps65217-bl";
|
||||
+ fdim = <100>; /* 100Hz,200Hz,500Hz,1000Hz */
|
||||
+ isel = <1>; /* 1 - ISET1, 2 - ISET 2 */
|
||||
+ default-brightness = <50>;
|
||||
+ };
|
||||
+};
|
||||
--
|
||||
2.8.2
|
||||
|
|
@ -8,8 +8,8 @@ _srcname=linux-4.6
|
|||
_kernelname=${pkgbase#linux}
|
||||
_desc="TI AM335x Beaglebone (Black)"
|
||||
pkgver=4.6.0
|
||||
pkgrel=1
|
||||
rcnrel=bone1
|
||||
pkgrel=2
|
||||
rcnrel=bone3
|
||||
arch=('armv7h')
|
||||
url="http://www.kernel.org/"
|
||||
license=('GPL2')
|
||||
|
@ -19,11 +19,13 @@ source=("http://www.kernel.org/pub/linux/kernel/v4.x/${_srcname}.tar.xz"
|
|||
#"http://www.kernel.org/pub/linux/kernel/v4.x/patch-${pkgver}.xz"
|
||||
"http://rcn-ee.com/deb/sid-armhf/v${pkgver}-${rcnrel}/patch-${pkgver%.0}-${rcnrel}.diff.gz"
|
||||
"git+https://github.com/RobertCNelson/bb.org-overlays.git"
|
||||
'0001-add-lcd-cape-for-chiliboard.patch'
|
||||
'config')
|
||||
md5sums=('d2927020e24a76da4ab482a8bc3e9ef3'
|
||||
'b6ebcca43e157d16c82f62bc2e915b2d'
|
||||
'f6de36b3215daf396ca202113e2cd18b'
|
||||
'SKIP'
|
||||
'fcdc6557456e3cb52d5fdf3096013a44')
|
||||
'3cd24d1cc05e9229b49d6922208c6fb2'
|
||||
'7e943f29164910e34bc9b2adfea100e2')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}/${_srcname}"
|
||||
|
@ -31,8 +33,11 @@ prepare() {
|
|||
# add upstream patch
|
||||
#git apply --whitespace=nowarn "${srcdir}/patch-${pkgver}"
|
||||
|
||||
# RCN patch
|
||||
git apply ../patch-${pkgver%.0}-${rcnrel}.diff
|
||||
|
||||
# ALARM patches
|
||||
git apply "${srcdir}/patch-${pkgver%.0}-${rcnrel}.diff"
|
||||
git apply ../0001-add-lcd-cape-for-chiliboard.patch
|
||||
|
||||
cat "${srcdir}/config" > ./.config
|
||||
|
||||
|
@ -110,13 +115,11 @@ _package() {
|
|||
rm -f "${pkgdir}"/lib/modules/${_kernver}/{source,build}
|
||||
# remove the firmware
|
||||
rm -rf "${pkgdir}/lib/firmware"
|
||||
# gzip -9 all modules to save 100MB of space
|
||||
find "${pkgdir}" -name '*.ko' |xargs -P 2 -n 1 gzip -9
|
||||
# make room for external modules
|
||||
ln -s "../extramodules-${_basekernel}-${_kernelname:-ARCH}" "${pkgdir}/lib/modules/${_kernver}/extramodules"
|
||||
ln -s "../extramodules-${_basekernel}${_kernelname:--ARCH}" "${pkgdir}/lib/modules/${_kernver}/extramodules"
|
||||
# add real version for building modules and running depmod from post_install/upgrade
|
||||
mkdir -p "${pkgdir}/lib/modules/extramodules-${_basekernel}-${_kernelname:-ARCH}"
|
||||
echo "${_kernver}" > "${pkgdir}/lib/modules/extramodules-${_basekernel}-${_kernelname:-ARCH}/version"
|
||||
mkdir -p "${pkgdir}/lib/modules/extramodules-${_basekernel}${_kernelname:--ARCH}"
|
||||
echo "${_kernver}" > "${pkgdir}/lib/modules/extramodules-${_basekernel}${_kernelname:--ARCH}/version"
|
||||
|
||||
# Now we call depmod...
|
||||
depmod -b "$pkgdir" -F System.map "$_kernver"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#
|
||||
# Automatically generated file; DO NOT EDIT.
|
||||
# Linux/arm 4.6.0-1 Kernel Configuration
|
||||
# Linux/arm 4.6.0-2 Kernel Configuration
|
||||
#
|
||||
CONFIG_ARM=y
|
||||
CONFIG_ARM_HAS_SG_CHAIN=y
|
||||
|
@ -261,7 +261,9 @@ CONFIG_MODULE_UNLOAD=y
|
|||
# CONFIG_MODVERSIONS is not set
|
||||
# CONFIG_MODULE_SRCVERSION_ALL is not set
|
||||
# CONFIG_MODULE_SIG is not set
|
||||
# CONFIG_MODULE_COMPRESS is not set
|
||||
CONFIG_MODULE_COMPRESS=y
|
||||
CONFIG_MODULE_COMPRESS_GZIP=y
|
||||
# CONFIG_MODULE_COMPRESS_XZ is not set
|
||||
CONFIG_MODULES_TREE_LOOKUP=y
|
||||
CONFIG_BLOCK=y
|
||||
CONFIG_LBDAF=y
|
||||
|
@ -498,9 +500,12 @@ CONFIG_VMSPLIT_3G=y
|
|||
CONFIG_PAGE_OFFSET=0xC0000000
|
||||
CONFIG_ARM_PSCI=y
|
||||
CONFIG_ARCH_NR_GPIO=0
|
||||
CONFIG_HAVE_PREEMPT_LAZY=y
|
||||
# CONFIG_PREEMPT_NONE is not set
|
||||
CONFIG_PREEMPT_VOLUNTARY=y
|
||||
# CONFIG_PREEMPT is not set
|
||||
# CONFIG_PREEMPT__LL is not set
|
||||
# CONFIG_PREEMPT_RTB is not set
|
||||
# CONFIG_PREEMPT_RT_FULL is not set
|
||||
CONFIG_HZ_FIXED=0
|
||||
# CONFIG_HZ_100 is not set
|
||||
# CONFIG_HZ_200 is not set
|
||||
|
@ -584,8 +589,7 @@ CONFIG_KEXEC=y
|
|||
CONFIG_ATAGS_PROC=y
|
||||
# CONFIG_CRASH_DUMP is not set
|
||||
CONFIG_AUTO_ZRELADDR=y
|
||||
CONFIG_EFI_STUB=y
|
||||
CONFIG_EFI=y
|
||||
# CONFIG_EFI is not set
|
||||
|
||||
#
|
||||
# CPU Power Management
|
||||
|
@ -1719,6 +1723,7 @@ CONFIG_AD525X_DPOT=m
|
|||
CONFIG_AD525X_DPOT_I2C=m
|
||||
CONFIG_AD525X_DPOT_SPI=m
|
||||
# CONFIG_DUMMY_IRQ is not set
|
||||
CONFIG_HWLAT_DETECTOR=m
|
||||
CONFIG_ICS932S401=m
|
||||
CONFIG_ENCLOSURE_SERVICES=m
|
||||
CONFIG_APDS9802ALS=m
|
||||
|
@ -4800,7 +4805,6 @@ CONFIG_RTC_DRV_DS2404=m
|
|||
CONFIG_RTC_DRV_DA9052=y
|
||||
CONFIG_RTC_DRV_DA9055=m
|
||||
CONFIG_RTC_DRV_DA9063=m
|
||||
CONFIG_RTC_DRV_EFI=y
|
||||
CONFIG_RTC_DRV_STK17TA8=m
|
||||
CONFIG_RTC_DRV_M48T86=m
|
||||
CONFIG_RTC_DRV_M48T35=m
|
||||
|
@ -5506,15 +5510,6 @@ CONFIG_ARM_PSCI_FW=y
|
|||
# CONFIG_FW_CFG_SYSFS is not set
|
||||
CONFIG_HAVE_ARM_SMCCC=y
|
||||
|
||||
#
|
||||
# EFI (Extensible Firmware Interface) Support
|
||||
#
|
||||
CONFIG_EFI_VARS=m
|
||||
CONFIG_EFI_ESRT=y
|
||||
CONFIG_EFI_PARAMS_FROM_FDT=y
|
||||
CONFIG_EFI_RUNTIME_WRAPPERS=y
|
||||
CONFIG_EFI_ARMSTUB=y
|
||||
|
||||
#
|
||||
# File systems
|
||||
#
|
||||
|
@ -5640,7 +5635,6 @@ CONFIG_TMPFS_POSIX_ACL=y
|
|||
CONFIG_TMPFS_XATTR=y
|
||||
# CONFIG_HUGETLB_PAGE is not set
|
||||
CONFIG_CONFIGFS_FS=y
|
||||
CONFIG_EFIVAR_FS=m
|
||||
CONFIG_MISC_FILESYSTEMS=y
|
||||
# CONFIG_ORANGEFS_FS is not set
|
||||
CONFIG_ADFS_FS=m
|
||||
|
@ -5970,6 +5964,7 @@ CONFIG_FTRACE=y
|
|||
CONFIG_FUNCTION_TRACER=y
|
||||
# CONFIG_IRQSOFF_TRACER is not set
|
||||
# CONFIG_SCHED_TRACER is not set
|
||||
# CONFIG_MISSED_TIMER_OFFSETS_HIST is not set
|
||||
CONFIG_FTRACE_SYSCALLS=y
|
||||
CONFIG_TRACER_SNAPSHOT=y
|
||||
# CONFIG_TRACER_SNAPSHOT_PER_CPU_SWAP is not set
|
||||
|
@ -6306,7 +6301,6 @@ CONFIG_IRQ_POLL=y
|
|||
CONFIG_MPILIB=y
|
||||
CONFIG_LIBFDT=y
|
||||
CONFIG_OID_REGISTRY=y
|
||||
CONFIG_UCS2_STRING=y
|
||||
CONFIG_FONT_SUPPORT=y
|
||||
# CONFIG_FONTS is not set
|
||||
CONFIG_FONT_8x8=y
|
||||
|
|
Loading…
Reference in a new issue