Re: [OpenWrt-Devel] [PATCH] imx6: kernel: Add Micrel PHY used on Apalis SOM

2016-01-15 Thread Tim Harvey
On Fri, Jan 8, 2016 at 2:24 AM, Petr Štetiar  wrote:
> Signed-off-by: Petr Štetiar 
> Cc: Luka Perkov 
> ---
>  target/linux/imx6/config-4.1 |1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/target/linux/imx6/config-4.1 b/target/linux/imx6/config-4.1
> index 52544a7..e07a5b7 100644
> --- a/target/linux/imx6/config-4.1
> +++ b/target/linux/imx6/config-4.1
> @@ -223,6 +223,7 @@ CONFIG_LZO_COMPRESS=y
>  CONFIG_LZO_DECOMPRESS=y
>  CONFIG_MDIO_BOARDINFO=y
>  CONFIG_MFD_SYSCON=y
> +CONFIG_MICREL_PHY=y
>  CONFIG_MIGHT_HAVE_CACHE_L2X0=y
>  CONFIG_MIGHT_HAVE_PCI=y
>  CONFIG_MMC=y
> --
> 1.7.9.5
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Petr,

This just got committed but not that we also added this for you into
the the config for the 4.4 kernel which just got committed as well.
You can move up to 4.4 by applying
https://patchwork.ozlabs.org/patch/567857/.

Regards,

Tim
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 2/3] kernel: video: add fbcon support

2016-01-19 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
v4: no changes
v3: no changes
v2:
- add fb dependency
- disable unsupported fb's
---
 package/kernel/linux/modules/video.mk | 49 ++-
 1 file changed, 48 insertions(+), 1 deletion(-)

diff --git a/package/kernel/linux/modules/video.mk 
b/package/kernel/linux/modules/video.mk
index 0fcacb2..b1a8532 100644
--- a/package/kernel/linux/modules/video.mk
+++ b/package/kernel/linux/modules/video.mk
@@ -15,7 +15,10 @@ define KernelPackage/fb
   SUBMENU:=$(VIDEO_MENU)
   TITLE:=Framebuffer support
   DEPENDS:=@DISPLAY_SUPPORT
-  KCONFIG:=CONFIG_FB
+  KCONFIG:= \
+   CONFIG_FB \
+   CONFIG_FB_MXS=n \
+   CONFIG_FB_SM750=n
   FILES:=$(LINUX_DIR)/drivers/video/fbdev/core/fb.ko
   AUTOLOAD:=$(call AutoLoad,06,fb)
 endef
@@ -31,6 +34,50 @@ endef
 
 $(eval $(call KernelPackage,fb))
 
+
+define KernelPackage/fbcon
+  SUBMENU:=$(VIDEO_MENU)
+  TITLE:=Framebuffer Console support
+  DEPENDS:=+kmod-fb
+  KCONFIG:= \
+   CONFIG_FRAMEBUFFER_CONSOLE \
+   CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y \
+   CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y \
+   CONFIG_FONTS=y \
+   CONFIG_FONT_8x8=y \
+   CONFIG_FONT_8x16=y \
+   CONFIG_FONT_6x11=n \
+   CONFIG_FONT_7x14=n \
+   CONFIG_FONT_PEARL_8x8=n \
+   CONFIG_FONT_ACORN_8x8=n \
+   CONFIG_FONT_MINI_4x6=n \
+   CONFIG_FONT_6x10=n \
+   CONFIG_FONT_SUN8x16=n \
+   CONFIG_FONT_SUN12x22=n \
+   CONFIG_FONT_10x18=n \
+   CONFIG_VT=y \
+   CONFIG_CONSOLE_TRANSLATIONS=y \
+   CONFIG_VT_CONSOLE=y \
+   CONFIG_VT_HW_CONSOLE_BINDING=y
+  $(call AddDepends/fb)
+  FILES:= \
+   $(LINUX_DIR)/drivers/video/console/bitblit.ko \
+   $(LINUX_DIR)/drivers/video/console/softcursor.ko \
+   $(LINUX_DIR)/drivers/video/console/fbcon.ko \
+   $(LINUX_DIR)/drivers/video/console/fbcon_rotate.ko \
+   $(LINUX_DIR)/drivers/video/console/fbcon_cw.ko \
+   $(LINUX_DIR)/drivers/video/console/fbcon_ud.ko \
+   $(LINUX_DIR)/drivers/video/console/fbcon_ccw.ko \
+   $(LINUX_DIR)/lib/fonts/font.ko
+  AUTOLOAD:=$(call AutoLoad,94,font softcursor tileblit fbcon_cw fbcon_ud 
fbcon_ccw fbcon_rotate bitblit fbcon)
+endef
+
+define KernelPackage/fbcon/description
+  Kernel support for framebuffer console
+endef
+
+$(eval $(call KernelPackage,fbcon))
+
 define KernelPackage/fb-cfb-fillrect
   SUBMENU:=$(VIDEO_MENU)
   TITLE:=Framebuffer software rectangle filling support
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v4 0/3] Add DRM video output support for IMX6

2016-01-19 Thread Tim Harvey
This series adds DRM based video output support for IMX6 HDMI and LVDS.

The first 2 patches are independent from the others and add some necessary
or useful deps for video display.

The 3rd patch adds drm core and drm-imx modules supporting LVDS/HDMI. Note
that currently you need to add modules for both hdmi and lvds for either to
work (not clear why yet).

These were tested on Gateworks Ventana boards, using the 4.4 kernel
using fbcon, psplash, and gstreamer1 with fbdevsink output.

Tim Harvey (3):
  kernel: add backlight kernel module support
  kernel: video: add fbcon support
  kernel: video: add DRM core and IMX DRM support for HDMI/LVDS

 package/kernel/linux/modules/backlight.mk |  49 +++
 package/kernel/linux/modules/video.mk | 224 +-
 2 files changed, 272 insertions(+), 1 deletion(-)
 create mode 100644 package/kernel/linux/modules/backlight.mk

-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 3/3] kernel: video: add DRM core and IMX DRM support for HDMI/LVDS

2016-01-19 Thread Tim Harvey
v4:
 - update depends for 4.4
 - fix submenu
 - add CONFIG_DRM_DW_HDMI_AHB_AUDIO for i.mx6 HDMI driver
 - add new dependency caused by above point to HDMI driver
v3:
 - updated for Linux 4.3
v2:
 - fixed whitespace
 - added TARGET_imx6 to imx6-drm

Signed-off-by: Tim Harvey 
---
 package/kernel/linux/modules/video.mk | 175 ++
 1 file changed, 175 insertions(+)

diff --git a/package/kernel/linux/modules/video.mk 
b/package/kernel/linux/modules/video.mk
index b1a8532..df7ff0a 100644
--- a/package/kernel/linux/modules/video.mk
+++ b/package/kernel/linux/modules/video.mk
@@ -11,6 +11,10 @@ VIDEO_MENU:=Video Support
 V4L2_DIR=v4l2-core
 V4L2_USB_DIR=usb
 
+#
+# Video Display
+#
+
 define KernelPackage/fb
   SUBMENU:=$(VIDEO_MENU)
   TITLE:=Framebuffer support
@@ -109,6 +113,10 @@ endef
 
 $(eval $(call KernelPackage,fb-cfb-copyarea))
 
+define AddDepends/fb-cfb-copyarea
+  DEPENDS+=kmod-fb-cfb-copyarea $(1)
+endef
+
 define KernelPackage/fb-cfb-imgblt
   SUBMENU:=$(VIDEO_MENU)
   TITLE:=Framebuffer software image blit support
@@ -124,6 +132,173 @@ endef
 
 $(eval $(call KernelPackage,fb-cfb-imgblt))
 
+define AddDepends/fb-cfb-imgblt
+  DEPENDS+=kmod-fb-cfb-imgblt $(1)
+endef
+
+
+define KernelPackage/fb-sys-fops
+  SUBMENU:=$(VIDEO_MENU)
+  TITLE:=Framebuffer software sys ops support
+  DEPENDS:=+kmod-fb
+  KCONFIG:=CONFIG_FB_SYS_FOPS
+  FILES:=$(LINUX_DIR)/drivers/video/fbdev/core/fb_sys_fops.ko
+  AUTOLOAD:=$(call AutoLoad,07,fbsysfops)
+endef
+
+define KernelPackage/fb-sys-fops/description
+ Kernel support for framebuffer sys ops
+endef
+
+$(eval $(call KernelPackage,fb-sys-fops))
+
+define AddDepends/fb-sys-fops
+  DEPENDS+=kmod-fb-sys-fops $(1)
+endef
+
+
+define KernelPackage/drm
+  SUBMENU:=$(VIDEO_MENU)
+  TITLE:=Direct Rendering Manager (DRM) support
+  KCONFIG:=CONFIG_DRM \
+   CONFIG_DRM_FBDEV_EMULATION=n \
+   CONFIG_DRM_LOAD_EDID_FIRMWARE=n \
+   CONFIG_DRM_IMX=n \
+   CONFIG_DRM_PTN3460=n \
+   CONFIG_DRM_PS8622=n \
+   CONFIG_DRM_TDFX=n \
+   CONFIG_DRM_R128=n \
+   CONFIG_DRM_RADEON=n \
+   CONFIG_DRM_AMDGPU=n \
+   CONFIG_DRM_NOUVEAU=n \
+   CONFIG_DRM_MGA=n \
+   CONFIG_DRM_VIA=n \
+   CONFIG_DRM_SAVAGE=n \
+   CONFIG_DRM_VGEM=n \
+   CONFIG_DRM_EXYNOS=n \
+   CONFIG_DRM_VMWGFX=n \
+   CONFIG_DRM_UDL=n \
+   CONFIG_DRM_AST=n \
+   CONFIG_DRM_MGAG200=n \
+   CONFIG_DRM_CIRRUS_QEMU=n \
+   CONFIG_DRM_ARMADA=n \
+   CONFIG_DRM_TILCDC=n \
+   CONFIG_DRM_QXL=n \
+   CONFIG_DRM_BOCHS=n \
+   CONFIG_DRM_FSL_DCU=n \
+   CONFIG_DRM_STI=n \
+   CONFIG_DRM_NXP_PTN3460=n \
+   CONFIG_DRM_PARADE_PS8622=n \
+   CONFIG_DRM_I2C_ADV7511=n \
+   CONFIG_DRM_I2C_CH7006=n \
+   CONFIG_DRM_I2C_SIL164=n \
+   CONFIG_DRM_I2C_NXP_TDA998X=n
+  FILES:=$(LINUX_DIR)/drivers/gpu/drm/drm.ko
+  AUTOLOAD:=$(call AutoLoad,05,drm)
+endef
+
+define KernelPackage/drm/description
+  Direct Rendering Manager (DRM) core support
+endef
+
+$(eval $(call KernelPackage,drm))
+
+define AddDepends/drm
+  DEPENDS+=kmod-drm $(1)
+endef
+
+define KernelPackage/drm-imx
+  SUBMENU:=$(VIDEO_MENU)
+  TITLE:=Freescale i.MX DRM support
+  DEPENDS:=@TARGET_imx6 +kmod-fb +kmod-fb-cfb-copyarea +kmod-fb-cfb-imgblt 
+kmod-fb-cfb-fillrect +kmod-fb-sys-fops
+  KCONFIG:=CONFIG_DRM_IMX=m \
+   CONFIG_DRM_FBDEV_EMULATION=y \
+   CONFIG_IMX_IPUV3_CORE=m \
+   CONFIG_RESET_CONTROLLER=y \
+   CONFIG_DRM_IMX_IPUV3 \
+   CONFIG_IMX_IPUV3 \
+   CONFIG_DRM_KMS_HELPER \
+   CONFIG_FB_SYS_FILLRECT \
+   CONFIG_FB_SYS_COPYAREA \
+   CONFIG_FB_SYS_IMAGEBLIT \
+   CONFIG_DRM_KMS_FB_HELPER=y \
+   CONFIG_DRM_GEM_CMA_HELPER=y \
+   CONFIG_DRM_KMS_CMA_HELPER=y \
+   CONFIG_DRM_IMX_FB_HELPER \
+   CONFIG_DRM_IMX_PARALLEL_DISPLAY=n \
+   CONFIG_DRM_IMX_TVE=n \
+   CONFIG_DRM_IMX_LDB=n \
+   CONFIG_DRM_IMX_HDMI=n
+  FILES:= \
+   $(LINUX_DIR)/drivers/gpu/drm/imx/imxdrm.ko \
+   $(LINUX_DIR)/drivers/gpu/ipu-v3/imx-ipu-v3.ko \
+   $(LINUX_DIR)/drivers/gpu/drm/imx/imx-ipuv3-crtc.ko \
+   $(LINUX_DIR)/drivers/video/fbdev/core/syscopyarea.ko \
+   $(LINUX_DIR)/drivers/video/fbdev/core/sysfillrect.ko \
+   $(LINUX_DIR)/drivers/video/fbdev/core/sysimgblt.ko \
+   $(LINUX_DIR)/drivers/gpu/drm/drm_kms_helper.ko
+  AUTOLOAD:=$(call AutoLoad,05,imxdrm imx-ipu-v3 imx-ipuv3-crtc)
+  $(call AddDepends/drm)
+endef
+
+define KernelPackage/drm-imx/description
+  Direct Rendering Manager (DRM) support for Freescale i.MX
+endef
+
+$(eval $(call KernelPackage,drm-imx))
+
+define AddDepends/drm-imx
+  DEPENDS+=kmod-drm-imx $(1)
+endef
+
+define KernelPackage/drm-imx-hdmi
+  SUBMENU:=$(VIDEO_MENU)
+  TITLE:=Freescale i.MX HDMI DRM support
+  DEPENDS:=+kmod-sound-core
+  KCONFIG:=CONFIG_DRM_IMX_HDMI=m \
+   CONFIG_DRM_DW_HDMI_AHB_AUDIO=m
+  FILES:= \
+   $(LINUX_DIR)/drivers/gpu/drm/bridge/dw_hdmi.ko \
+   $(LINUX_DIR)/drivers/gpu

[OpenWrt-Devel] [PATCH 1/3] kernel: add backlight kernel module support

2016-01-19 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
v4: no changes
v3: added support for Linux 4.3 (new driver needs to be disabled by default)
v2: no changes
---
 package/kernel/linux/modules/backlight.mk | 49 +++
 1 file changed, 49 insertions(+)
 create mode 100644 package/kernel/linux/modules/backlight.mk

diff --git a/package/kernel/linux/modules/backlight.mk 
b/package/kernel/linux/modules/backlight.mk
new file mode 100644
index 000..62aedaa
--- /dev/null
+++ b/package/kernel/linux/modules/backlight.mk
@@ -0,0 +1,49 @@
+#
+# Copyright (C) 2015 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+BACKLIGHT_MENU:=Video Support
+
+define KernelPackage/backlight
+   SUBMENU:=$(BACKLIGHT_MENU)
+   TITLE:=Backlight support
+   KCONFIG:=CONFIG_BACKLIGHT_CLASS_DEVICE=m \
+   CONFIG_BACKLIGHT_LCD_SUPPORT=y \
+   CONFIG_LCD_CLASS_DEVICE=n \
+   CONFIG_BACKLIGHT_PWM=n \
+   CONFIG_BACKLIGHT_GENERIC=n \
+   CONFIG_BACKLIGHT_ADP8860=n \
+   CONFIG_BACKLIGHT_ADP8870=n \
+   CONFIG_BACKLIGHT_PM8941_WLED=n
+   FILES:=$(LINUX_DIR)/drivers/video/backlight/backlight.ko
+   AUTOLOAD:=$(call AutoProbe,video backlight)
+endef
+
+define KernelPackage/backlight/description
+   Kernel module for Backlight support.
+endef
+
+$(eval $(call KernelPackage,backlight))
+
+define AddDepends/backlight
+   SUBMENU:=$(BACKLIGHT_MENU)
+   DEPENDS+=kmod-backlight $(1)
+endef
+
+define KernelPackage/backlight-pwm
+   TITLE:=PWM Backlight support
+   DEPENDS:=+kmod-pwm
+   KCONFIG:=CONFIG_BACKLIGHT_PWM=m
+   FILES:=$(LINUX_DIR)/drivers/video/backlight/pwm_bl.ko
+   AUTOLOAD:=$(call AutoProbe,video pwm_bl)
+   $(call AddDepends/backlight)
+endef
+
+define KernelPackage/backlight/backlight-pwm
+   Kernel module for PWM based Backlight support.
+endef
+
+$(eval $(call KernelPackage,backlight-pwm))
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v5 2/3] kernel: video: add fbcon support

2016-01-20 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
v5: no changes
v4: no changes
v3: no changes
v2:
- add fb dependency
- disable unsupported fb's

Signed-off-by: Tim Harvey 
---
 package/kernel/linux/modules/video.mk | 49 ++-
 1 file changed, 48 insertions(+), 1 deletion(-)

diff --git a/package/kernel/linux/modules/video.mk 
b/package/kernel/linux/modules/video.mk
index 61d7d88..cece876 100644
--- a/package/kernel/linux/modules/video.mk
+++ b/package/kernel/linux/modules/video.mk
@@ -61,7 +61,10 @@ define KernelPackage/fb
   SUBMENU:=$(VIDEO_MENU)
   TITLE:=Framebuffer support
   DEPENDS:=@DISPLAY_SUPPORT
-  KCONFIG:=CONFIG_FB
+  KCONFIG:= \
+   CONFIG_FB \
+   CONFIG_FB_MXS=n \
+   CONFIG_FB_SM750=n
   FILES:=$(LINUX_DIR)/drivers/video/fbdev/core/fb.ko
   AUTOLOAD:=$(call AutoLoad,06,fb)
 endef
@@ -77,6 +80,50 @@ endef
 
 $(eval $(call KernelPackage,fb))
 
+
+define KernelPackage/fbcon
+  SUBMENU:=$(VIDEO_MENU)
+  TITLE:=Framebuffer Console support
+  DEPENDS:=+kmod-fb
+  KCONFIG:= \
+   CONFIG_FRAMEBUFFER_CONSOLE \
+   CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y \
+   CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y \
+   CONFIG_FONTS=y \
+   CONFIG_FONT_8x8=y \
+   CONFIG_FONT_8x16=y \
+   CONFIG_FONT_6x11=n \
+   CONFIG_FONT_7x14=n \
+   CONFIG_FONT_PEARL_8x8=n \
+   CONFIG_FONT_ACORN_8x8=n \
+   CONFIG_FONT_MINI_4x6=n \
+   CONFIG_FONT_6x10=n \
+   CONFIG_FONT_SUN8x16=n \
+   CONFIG_FONT_SUN12x22=n \
+   CONFIG_FONT_10x18=n \
+   CONFIG_VT=y \
+   CONFIG_CONSOLE_TRANSLATIONS=y \
+   CONFIG_VT_CONSOLE=y \
+   CONFIG_VT_HW_CONSOLE_BINDING=y
+  $(call AddDepends/fb)
+  FILES:= \
+   $(LINUX_DIR)/drivers/video/console/bitblit.ko \
+   $(LINUX_DIR)/drivers/video/console/softcursor.ko \
+   $(LINUX_DIR)/drivers/video/console/fbcon.ko \
+   $(LINUX_DIR)/drivers/video/console/fbcon_rotate.ko \
+   $(LINUX_DIR)/drivers/video/console/fbcon_cw.ko \
+   $(LINUX_DIR)/drivers/video/console/fbcon_ud.ko \
+   $(LINUX_DIR)/drivers/video/console/fbcon_ccw.ko \
+   $(LINUX_DIR)/lib/fonts/font.ko
+  AUTOLOAD:=$(call AutoLoad,94,font softcursor tileblit fbcon_cw fbcon_ud 
fbcon_ccw fbcon_rotate bitblit fbcon)
+endef
+
+define KernelPackage/fbcon/description
+  Kernel support for framebuffer console
+endef
+
+$(eval $(call KernelPackage,fbcon))
+
 define KernelPackage/fb-cfb-fillrect
   SUBMENU:=$(VIDEO_MENU)
   TITLE:=Framebuffer software rectangle filling support
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v5 3/3] kernel: video: add DRM core and IMX DRM support for HDMI/LVDS

2016-01-20 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
v5: no changes
v4:
 - update depends for 4.4
 - fix submenu
 - add CONFIG_DRM_DW_HDMI_AHB_AUDIO for i.mx6 HDMI driver
 - add new dependency caused by above point to HDMI driver
v3:
 - updated for Linux 4.3
v2:
 - fixed whitespace
 - added TARGET_imx6 to imx6-drm

Signed-off-by: Tim Harvey 
---
 package/kernel/linux/modules/video.mk | 171 ++
 1 file changed, 171 insertions(+)

diff --git a/package/kernel/linux/modules/video.mk 
b/package/kernel/linux/modules/video.mk
index cece876..ad676be 100644
--- a/package/kernel/linux/modules/video.mk
+++ b/package/kernel/linux/modules/video.mk
@@ -155,6 +155,10 @@ endef
 
 $(eval $(call KernelPackage,fb-cfb-copyarea))
 
+define AddDepends/fb-cfb-copyarea
+  DEPENDS+=kmod-fb-cfb-copyarea $(1)
+endef
+
 define KernelPackage/fb-cfb-imgblt
   SUBMENU:=$(VIDEO_MENU)
   TITLE:=Framebuffer software image blit support
@@ -170,6 +174,173 @@ endef
 
 $(eval $(call KernelPackage,fb-cfb-imgblt))
 
+define AddDepends/fb-cfb-imgblt
+  DEPENDS+=kmod-fb-cfb-imgblt $(1)
+endef
+
+
+define KernelPackage/fb-sys-fops
+  SUBMENU:=$(VIDEO_MENU)
+  TITLE:=Framebuffer software sys ops support
+  DEPENDS:=+kmod-fb
+  KCONFIG:=CONFIG_FB_SYS_FOPS
+  FILES:=$(LINUX_DIR)/drivers/video/fbdev/core/fb_sys_fops.ko
+  AUTOLOAD:=$(call AutoLoad,07,fbsysfops)
+endef
+
+define KernelPackage/fb-sys-fops/description
+ Kernel support for framebuffer sys ops
+endef
+
+$(eval $(call KernelPackage,fb-sys-fops))
+
+define AddDepends/fb-sys-fops
+  DEPENDS+=kmod-fb-sys-fops $(1)
+endef
+
+
+define KernelPackage/drm
+  SUBMENU:=$(VIDEO_MENU)
+  TITLE:=Direct Rendering Manager (DRM) support
+  KCONFIG:=CONFIG_DRM \
+   CONFIG_DRM_FBDEV_EMULATION=n \
+   CONFIG_DRM_LOAD_EDID_FIRMWARE=n \
+   CONFIG_DRM_IMX=n \
+   CONFIG_DRM_PTN3460=n \
+   CONFIG_DRM_PS8622=n \
+   CONFIG_DRM_TDFX=n \
+   CONFIG_DRM_R128=n \
+   CONFIG_DRM_RADEON=n \
+   CONFIG_DRM_AMDGPU=n \
+   CONFIG_DRM_NOUVEAU=n \
+   CONFIG_DRM_MGA=n \
+   CONFIG_DRM_VIA=n \
+   CONFIG_DRM_SAVAGE=n \
+   CONFIG_DRM_VGEM=n \
+   CONFIG_DRM_EXYNOS=n \
+   CONFIG_DRM_VMWGFX=n \
+   CONFIG_DRM_UDL=n \
+   CONFIG_DRM_AST=n \
+   CONFIG_DRM_MGAG200=n \
+   CONFIG_DRM_CIRRUS_QEMU=n \
+   CONFIG_DRM_ARMADA=n \
+   CONFIG_DRM_TILCDC=n \
+   CONFIG_DRM_QXL=n \
+   CONFIG_DRM_BOCHS=n \
+   CONFIG_DRM_FSL_DCU=n \
+   CONFIG_DRM_STI=n \
+   CONFIG_DRM_NXP_PTN3460=n \
+   CONFIG_DRM_PARADE_PS8622=n \
+   CONFIG_DRM_I2C_ADV7511=n \
+   CONFIG_DRM_I2C_CH7006=n \
+   CONFIG_DRM_I2C_SIL164=n \
+   CONFIG_DRM_I2C_NXP_TDA998X=n
+  FILES:=$(LINUX_DIR)/drivers/gpu/drm/drm.ko
+  AUTOLOAD:=$(call AutoLoad,05,drm)
+endef
+
+define KernelPackage/drm/description
+  Direct Rendering Manager (DRM) core support
+endef
+
+$(eval $(call KernelPackage,drm))
+
+define AddDepends/drm
+  DEPENDS+=kmod-drm $(1)
+endef
+
+define KernelPackage/drm-imx
+  SUBMENU:=$(VIDEO_MENU)
+  TITLE:=Freescale i.MX DRM support
+  DEPENDS:=@TARGET_imx6 +kmod-fb +kmod-fb-cfb-copyarea +kmod-fb-cfb-imgblt 
+kmod-fb-cfb-fillrect +kmod-fb-sys-fops
+  KCONFIG:=CONFIG_DRM_IMX=m \
+   CONFIG_DRM_FBDEV_EMULATION=y \
+   CONFIG_IMX_IPUV3_CORE=m \
+   CONFIG_RESET_CONTROLLER=y \
+   CONFIG_DRM_IMX_IPUV3 \
+   CONFIG_IMX_IPUV3 \
+   CONFIG_DRM_KMS_HELPER \
+   CONFIG_FB_SYS_FILLRECT \
+   CONFIG_FB_SYS_COPYAREA \
+   CONFIG_FB_SYS_IMAGEBLIT \
+   CONFIG_DRM_KMS_FB_HELPER=y \
+   CONFIG_DRM_GEM_CMA_HELPER=y \
+   CONFIG_DRM_KMS_CMA_HELPER=y \
+   CONFIG_DRM_IMX_FB_HELPER \
+   CONFIG_DRM_IMX_PARALLEL_DISPLAY=n \
+   CONFIG_DRM_IMX_TVE=n \
+   CONFIG_DRM_IMX_LDB=n \
+   CONFIG_DRM_IMX_HDMI=n
+  FILES:= \
+   $(LINUX_DIR)/drivers/gpu/drm/imx/imxdrm.ko \
+   $(LINUX_DIR)/drivers/gpu/ipu-v3/imx-ipu-v3.ko \
+   $(LINUX_DIR)/drivers/gpu/drm/imx/imx-ipuv3-crtc.ko \
+   $(LINUX_DIR)/drivers/video/fbdev/core/syscopyarea.ko \
+   $(LINUX_DIR)/drivers/video/fbdev/core/sysfillrect.ko \
+   $(LINUX_DIR)/drivers/video/fbdev/core/sysimgblt.ko \
+   $(LINUX_DIR)/drivers/gpu/drm/drm_kms_helper.ko
+  AUTOLOAD:=$(call AutoLoad,05,imxdrm imx-ipu-v3 imx-ipuv3-crtc)
+  $(call AddDepends/drm)
+endef
+
+define KernelPackage/drm-imx/description
+  Direct Rendering Manager (DRM) support for Freescale i.MX
+endef
+
+$(eval $(call KernelPackage,drm-imx))
+
+define AddDepends/drm-imx
+  DEPENDS+=kmod-drm-imx $(1)
+endef
+
+define KernelPackage/drm-imx-hdmi
+  SUBMENU:=$(VIDEO_MENU)
+  TITLE:=Freescale i.MX HDMI DRM support
+  DEPENDS:=+kmod-sound-core
+  KCONFIG:=CONFIG_DRM_IMX_HDMI=m \
+   CONFIG_DRM_DW_HDMI_AHB_AUDIO=m
+  FILES:= \
+   $(LINUX_DIR)/drivers/gpu/drm/bridge/dw_hdmi.ko \
+   $(LINUX_DIR)/drivers/gpu/drm/bridge/dw_hdmi-ahb-audio.ko \
+   $(LINUX_DIR)/drivers/gpu/drm/imx/dw_hdmi-imx.ko
+  AUTOLOAD:=$(call AutoLoad,05,dw_hdmi dw_hdmi-ahb

[OpenWrt-Devel] [PATCH v5 0/3] Add DRM video output support for IMX6

2016-01-20 Thread Tim Harvey
This series adds DRM based video output support for IMX6 HDMI and LVDS.

The first 2 patches are independent from the others and add some necessary
or useful deps for video display.

The 3rd patch adds drm core and drm-imx modules supporting LVDS/HDMI. Note
that currently you need to add modules for both hdmi and lvds for either to
work (not clear why yet).

These were tested on Gateworks Ventana boards, using the 4.4 kernel
using fbcon, psplash, and gstreamer1 with fbdevsink output.

Tim Harvey (3):
  kernel: add backlight kernel module support
  kernel: video: add fbcon support
  kernel: video: add DRM core and IMX DRM support for HDMI/LVDS

 package/kernel/linux/modules/video.mk | 266 +-
 1 file changed, 265 insertions(+), 1 deletion(-)

-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v5 1/3] kernel: add backlight kernel module support

2016-01-20 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
v5: moved to video.mk
v4: no changes
v3: added support for Linux 4.3 (new driver needs to be disabled by default)
v2: no changes

Signed-off-by: Tim Harvey 
---
 package/kernel/linux/modules/video.mk | 46 +++
 1 file changed, 46 insertions(+)

diff --git a/package/kernel/linux/modules/video.mk 
b/package/kernel/linux/modules/video.mk
index 4226adc..61d7d88 100644
--- a/package/kernel/linux/modules/video.mk
+++ b/package/kernel/linux/modules/video.mk
@@ -11,6 +11,52 @@ VIDEO_MENU:=Video Support
 V4L2_DIR=v4l2-core
 V4L2_USB_DIR=usb
 
+#
+# Video Display
+#
+
+define KernelPackage/backlight
+   SUBMENU:=$(VIDEO_MENU)
+   TITLE:=Backlight support
+   KCONFIG:=CONFIG_BACKLIGHT_CLASS_DEVICE=m \
+   CONFIG_BACKLIGHT_LCD_SUPPORT=y \
+   CONFIG_LCD_CLASS_DEVICE=n \
+   CONFIG_BACKLIGHT_PWM=n \
+   CONFIG_BACKLIGHT_GENERIC=n \
+   CONFIG_BACKLIGHT_ADP8860=n \
+   CONFIG_BACKLIGHT_ADP8870=n \
+   CONFIG_BACKLIGHT_PM8941_WLED=n
+   FILES:=$(LINUX_DIR)/drivers/video/backlight/backlight.ko
+   AUTOLOAD:=$(call AutoProbe,video backlight)
+endef
+
+define KernelPackage/backlight/description
+   Kernel module for Backlight support.
+endef
+
+$(eval $(call KernelPackage,backlight))
+
+define AddDepends/backlight
+   SUBMENU:=$(VIDEO_MENU)
+   DEPENDS+=kmod-backlight $(1)
+endef
+
+define KernelPackage/backlight-pwm
+   TITLE:=PWM Backlight support
+   DEPENDS:=+kmod-pwm
+   KCONFIG:=CONFIG_BACKLIGHT_PWM=m
+   FILES:=$(LINUX_DIR)/drivers/video/backlight/pwm_bl.ko
+   AUTOLOAD:=$(call AutoProbe,video pwm_bl)
+   $(call AddDepends/backlight)
+endef
+
+define KernelPackage/backlight/backlight-pwm
+   Kernel module for PWM based Backlight support.
+endef
+
+$(eval $(call KernelPackage,backlight-pwm))
+
+
 define KernelPackage/fb
   SUBMENU:=$(VIDEO_MENU)
   TITLE:=Framebuffer support
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v6 1/3] kernel: add backlight kernel module support

2016-01-20 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
v5: moved to video.mk
v4: no changes
v3: added support for Linux 4.3 (new driver needs to be disabled by default)
v2: no changes

Signed-off-by: Tim Harvey 
---
 package/kernel/linux/modules/video.mk | 46 +++
 1 file changed, 46 insertions(+)

diff --git a/package/kernel/linux/modules/video.mk 
b/package/kernel/linux/modules/video.mk
index 4226adc..61d7d88 100644
--- a/package/kernel/linux/modules/video.mk
+++ b/package/kernel/linux/modules/video.mk
@@ -11,6 +11,52 @@ VIDEO_MENU:=Video Support
 V4L2_DIR=v4l2-core
 V4L2_USB_DIR=usb
 
+#
+# Video Display
+#
+
+define KernelPackage/backlight
+   SUBMENU:=$(VIDEO_MENU)
+   TITLE:=Backlight support
+   KCONFIG:=CONFIG_BACKLIGHT_CLASS_DEVICE=m \
+   CONFIG_BACKLIGHT_LCD_SUPPORT=y \
+   CONFIG_LCD_CLASS_DEVICE=n \
+   CONFIG_BACKLIGHT_PWM=n \
+   CONFIG_BACKLIGHT_GENERIC=n \
+   CONFIG_BACKLIGHT_ADP8860=n \
+   CONFIG_BACKLIGHT_ADP8870=n \
+   CONFIG_BACKLIGHT_PM8941_WLED=n
+   FILES:=$(LINUX_DIR)/drivers/video/backlight/backlight.ko
+   AUTOLOAD:=$(call AutoProbe,video backlight)
+endef
+
+define KernelPackage/backlight/description
+   Kernel module for Backlight support.
+endef
+
+$(eval $(call KernelPackage,backlight))
+
+define AddDepends/backlight
+   SUBMENU:=$(VIDEO_MENU)
+   DEPENDS+=kmod-backlight $(1)
+endef
+
+define KernelPackage/backlight-pwm
+   TITLE:=PWM Backlight support
+   DEPENDS:=+kmod-pwm
+   KCONFIG:=CONFIG_BACKLIGHT_PWM=m
+   FILES:=$(LINUX_DIR)/drivers/video/backlight/pwm_bl.ko
+   AUTOLOAD:=$(call AutoProbe,video pwm_bl)
+   $(call AddDepends/backlight)
+endef
+
+define KernelPackage/backlight/backlight-pwm
+   Kernel module for PWM based Backlight support.
+endef
+
+$(eval $(call KernelPackage,backlight-pwm))
+
+
 define KernelPackage/fb
   SUBMENU:=$(VIDEO_MENU)
   TITLE:=Framebuffer support
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v6 0/3] Add DRM video output support for IMX6

2016-01-20 Thread Tim Harvey
This series adds DRM based video output support for IMX6 HDMI and LVDS.

All three of these patches patches are independent from the others and add
some necessary or useful deps for video display.

The 3rd patch adds drm core and drm-imx modules supporting LVDS/HDMI. Note
that currently you need to add modules for both hdmi and lvds for either to
work (not clear why yet).

These were tested on Gateworks Ventana boards, using the 4.4 kernel
using fbcon, psplash, and gstreamer1 with fbdevsink output.

Tim Harvey (3):
  kernel: add backlight kernel module support
  kernel: video: add fbcon support
  kernel: video: add DRM core and IMX DRM support for HDMI/LVDS

 package/kernel/linux/modules/video.mk | 267 +-
 1 file changed, 266 insertions(+), 1 deletion(-)

-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v6 2/3] kernel: video: add fbcon support

2016-01-20 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
v5: no changes
v4: no changes
v3: no changes
v2:
- add fb dependency
- disable unsupported fb's

Signed-off-by: Tim Harvey 
---
 package/kernel/linux/modules/video.mk | 49 ++-
 1 file changed, 48 insertions(+), 1 deletion(-)

diff --git a/package/kernel/linux/modules/video.mk 
b/package/kernel/linux/modules/video.mk
index 61d7d88..cece876 100644
--- a/package/kernel/linux/modules/video.mk
+++ b/package/kernel/linux/modules/video.mk
@@ -61,7 +61,10 @@ define KernelPackage/fb
   SUBMENU:=$(VIDEO_MENU)
   TITLE:=Framebuffer support
   DEPENDS:=@DISPLAY_SUPPORT
-  KCONFIG:=CONFIG_FB
+  KCONFIG:= \
+   CONFIG_FB \
+   CONFIG_FB_MXS=n \
+   CONFIG_FB_SM750=n
   FILES:=$(LINUX_DIR)/drivers/video/fbdev/core/fb.ko
   AUTOLOAD:=$(call AutoLoad,06,fb)
 endef
@@ -77,6 +80,50 @@ endef
 
 $(eval $(call KernelPackage,fb))
 
+
+define KernelPackage/fbcon
+  SUBMENU:=$(VIDEO_MENU)
+  TITLE:=Framebuffer Console support
+  DEPENDS:=+kmod-fb
+  KCONFIG:= \
+   CONFIG_FRAMEBUFFER_CONSOLE \
+   CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y \
+   CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y \
+   CONFIG_FONTS=y \
+   CONFIG_FONT_8x8=y \
+   CONFIG_FONT_8x16=y \
+   CONFIG_FONT_6x11=n \
+   CONFIG_FONT_7x14=n \
+   CONFIG_FONT_PEARL_8x8=n \
+   CONFIG_FONT_ACORN_8x8=n \
+   CONFIG_FONT_MINI_4x6=n \
+   CONFIG_FONT_6x10=n \
+   CONFIG_FONT_SUN8x16=n \
+   CONFIG_FONT_SUN12x22=n \
+   CONFIG_FONT_10x18=n \
+   CONFIG_VT=y \
+   CONFIG_CONSOLE_TRANSLATIONS=y \
+   CONFIG_VT_CONSOLE=y \
+   CONFIG_VT_HW_CONSOLE_BINDING=y
+  $(call AddDepends/fb)
+  FILES:= \
+   $(LINUX_DIR)/drivers/video/console/bitblit.ko \
+   $(LINUX_DIR)/drivers/video/console/softcursor.ko \
+   $(LINUX_DIR)/drivers/video/console/fbcon.ko \
+   $(LINUX_DIR)/drivers/video/console/fbcon_rotate.ko \
+   $(LINUX_DIR)/drivers/video/console/fbcon_cw.ko \
+   $(LINUX_DIR)/drivers/video/console/fbcon_ud.ko \
+   $(LINUX_DIR)/drivers/video/console/fbcon_ccw.ko \
+   $(LINUX_DIR)/lib/fonts/font.ko
+  AUTOLOAD:=$(call AutoLoad,94,font softcursor tileblit fbcon_cw fbcon_ud 
fbcon_ccw fbcon_rotate bitblit fbcon)
+endef
+
+define KernelPackage/fbcon/description
+  Kernel support for framebuffer console
+endef
+
+$(eval $(call KernelPackage,fbcon))
+
 define KernelPackage/fb-cfb-fillrect
   SUBMENU:=$(VIDEO_MENU)
   TITLE:=Framebuffer software rectangle filling support
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v6 3/3] kernel: video: add DRM core and IMX DRM support for HDMI/LVDS

2016-01-20 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
v6: fix breakage caused by 8b152c5cc875fec87ca728afe90e53fcf7a2df7a
v5: no changes
v4:
 - update depends for 4.4
 - fix submenu
 - add CONFIG_DRM_DW_HDMI_AHB_AUDIO for i.mx6 HDMI driver
 - add new dependency caused by above point to HDMI driver
v3:
 - updated for Linux 4.3
v2:
 - fixed whitespace
 - added TARGET_imx6 to imx6-drm

Signed-off-by: Tim Harvey 
---
 package/kernel/linux/modules/video.mk | 172 ++
 1 file changed, 172 insertions(+)

diff --git a/package/kernel/linux/modules/video.mk 
b/package/kernel/linux/modules/video.mk
index cece876..8ec444d 100644
--- a/package/kernel/linux/modules/video.mk
+++ b/package/kernel/linux/modules/video.mk
@@ -155,6 +155,10 @@ endef
 
 $(eval $(call KernelPackage,fb-cfb-copyarea))
 
+define AddDepends/fb-cfb-copyarea
+  DEPENDS+=kmod-fb-cfb-copyarea $(1)
+endef
+
 define KernelPackage/fb-cfb-imgblt
   SUBMENU:=$(VIDEO_MENU)
   TITLE:=Framebuffer software image blit support
@@ -170,6 +174,174 @@ endef
 
 $(eval $(call KernelPackage,fb-cfb-imgblt))
 
+define AddDepends/fb-cfb-imgblt
+  DEPENDS+=kmod-fb-cfb-imgblt $(1)
+endef
+
+
+define KernelPackage/fb-sys-fops
+  SUBMENU:=$(VIDEO_MENU)
+  TITLE:=Framebuffer software sys ops support
+  DEPENDS:=+kmod-fb
+  KCONFIG:=CONFIG_FB_SYS_FOPS
+  FILES:=$(LINUX_DIR)/drivers/video/fbdev/core/fb_sys_fops.ko
+  AUTOLOAD:=$(call AutoLoad,07,fbsysfops)
+endef
+
+define KernelPackage/fb-sys-fops/description
+ Kernel support for framebuffer sys ops
+endef
+
+$(eval $(call KernelPackage,fb-sys-fops))
+
+define AddDepends/fb-sys-fops
+  DEPENDS+=kmod-fb-sys-fops $(1)
+endef
+
+
+define KernelPackage/drm
+  SUBMENU:=$(VIDEO_MENU)
+  TITLE:=Direct Rendering Manager (DRM) support
+  DEPENDS:=+kmod-dma-buf
+  KCONFIG:=CONFIG_DRM \
+   CONFIG_DRM_FBDEV_EMULATION=n \
+   CONFIG_DRM_LOAD_EDID_FIRMWARE=n \
+   CONFIG_DRM_IMX=n \
+   CONFIG_DRM_PTN3460=n \
+   CONFIG_DRM_PS8622=n \
+   CONFIG_DRM_TDFX=n \
+   CONFIG_DRM_R128=n \
+   CONFIG_DRM_RADEON=n \
+   CONFIG_DRM_AMDGPU=n \
+   CONFIG_DRM_NOUVEAU=n \
+   CONFIG_DRM_MGA=n \
+   CONFIG_DRM_VIA=n \
+   CONFIG_DRM_SAVAGE=n \
+   CONFIG_DRM_VGEM=n \
+   CONFIG_DRM_EXYNOS=n \
+   CONFIG_DRM_VMWGFX=n \
+   CONFIG_DRM_UDL=n \
+   CONFIG_DRM_AST=n \
+   CONFIG_DRM_MGAG200=n \
+   CONFIG_DRM_CIRRUS_QEMU=n \
+   CONFIG_DRM_ARMADA=n \
+   CONFIG_DRM_TILCDC=n \
+   CONFIG_DRM_QXL=n \
+   CONFIG_DRM_BOCHS=n \
+   CONFIG_DRM_FSL_DCU=n \
+   CONFIG_DRM_STI=n \
+   CONFIG_DRM_NXP_PTN3460=n \
+   CONFIG_DRM_PARADE_PS8622=n \
+   CONFIG_DRM_I2C_ADV7511=n \
+   CONFIG_DRM_I2C_CH7006=n \
+   CONFIG_DRM_I2C_SIL164=n \
+   CONFIG_DRM_I2C_NXP_TDA998X=n
+  FILES:=$(LINUX_DIR)/drivers/gpu/drm/drm.ko
+  AUTOLOAD:=$(call AutoLoad,05,drm)
+endef
+
+define KernelPackage/drm/description
+  Direct Rendering Manager (DRM) core support
+endef
+
+$(eval $(call KernelPackage,drm))
+
+define AddDepends/drm
+  DEPENDS+=kmod-drm $(1)
+endef
+
+define KernelPackage/drm-imx
+  SUBMENU:=$(VIDEO_MENU)
+  TITLE:=Freescale i.MX DRM support
+  DEPENDS:=@TARGET_imx6 +kmod-fb +kmod-fb-cfb-copyarea +kmod-fb-cfb-imgblt 
+kmod-fb-cfb-fillrect +kmod-fb-sys-fops
+  KCONFIG:=CONFIG_DRM_IMX=m \
+   CONFIG_DRM_FBDEV_EMULATION=y \
+   CONFIG_IMX_IPUV3_CORE=m \
+   CONFIG_RESET_CONTROLLER=y \
+   CONFIG_DRM_IMX_IPUV3 \
+   CONFIG_IMX_IPUV3 \
+   CONFIG_DRM_KMS_HELPER \
+   CONFIG_FB_SYS_FILLRECT \
+   CONFIG_FB_SYS_COPYAREA \
+   CONFIG_FB_SYS_IMAGEBLIT \
+   CONFIG_DRM_KMS_FB_HELPER=y \
+   CONFIG_DRM_GEM_CMA_HELPER=y \
+   CONFIG_DRM_KMS_CMA_HELPER=y \
+   CONFIG_DRM_IMX_FB_HELPER \
+   CONFIG_DRM_IMX_PARALLEL_DISPLAY=n \
+   CONFIG_DRM_IMX_TVE=n \
+   CONFIG_DRM_IMX_LDB=n \
+   CONFIG_DRM_IMX_HDMI=n
+  FILES:= \
+   $(LINUX_DIR)/drivers/gpu/drm/imx/imxdrm.ko \
+   $(LINUX_DIR)/drivers/gpu/ipu-v3/imx-ipu-v3.ko \
+   $(LINUX_DIR)/drivers/gpu/drm/imx/imx-ipuv3-crtc.ko \
+   $(LINUX_DIR)/drivers/video/fbdev/core/syscopyarea.ko \
+   $(LINUX_DIR)/drivers/video/fbdev/core/sysfillrect.ko \
+   $(LINUX_DIR)/drivers/video/fbdev/core/sysimgblt.ko \
+   $(LINUX_DIR)/drivers/gpu/drm/drm_kms_helper.ko
+  AUTOLOAD:=$(call AutoLoad,05,imxdrm imx-ipu-v3 imx-ipuv3-crtc)
+  $(call AddDepends/drm)
+endef
+
+define KernelPackage/drm-imx/description
+  Direct Rendering Manager (DRM) support for Freescale i.MX
+endef
+
+$(eval $(call KernelPackage,drm-imx))
+
+define AddDepends/drm-imx
+  DEPENDS+=kmod-drm-imx $(1)
+endef
+
+define KernelPackage/drm-imx-hdmi
+  SUBMENU:=$(VIDEO_MENU)
+  TITLE:=Freescale i.MX HDMI DRM support
+  DEPENDS:=+kmod-sound-core
+  KCONFIG:=CONFIG_DRM_IMX_HDMI=m \
+   CONFIG_DRM_DW_HDMI_AHB_AUDIO=m
+  FILES:= \
+   $(LINUX_DIR)/drivers/gpu/drm/bridge/dw_hdmi.ko \
+   $(LINUX_DIR)/drivers/gpu/drm/bridge/dw_hdmi-ahb-audio.ko

[OpenWrt-Devel] [LEDE-DEV][PATCH] boot: kobs-ng: update kobs-ng for newer kernels

2016-09-01 Thread Tim Harvey
This allows kobs-ng to flash the SPL successfully on the 4.4 kernel used by
the Gateworks IMX boards supporting NAND. The previous version of kobs-ng
worked with the 3.14 kernel but will brick a board making its SPL unbootable
for the 4.4 kernel.

See http://trac.gateworks.com/wiki/ventana/bootloader#nandspl for instructions
on updating the SPL from Linux.

Signed-off-by: Tim Harvey 
---
 package/boot/kobs-ng/Makefile  | 11 ++--
 package/boot/kobs-ng/patches/001-compile.patch | 23 +++
 .../boot/kobs-ng/patches/001-fix-mtd-defines.patch | 76 --
 .../kobs-ng/patches/002-add-init-size-param.patch  | 13 ++--
 .../boot/kobs-ng/patches/003-missing_include.patch | 20 --
 package/boot/kobs-ng/patches/003-raw-mode.patch| 45 +
 .../kobs-ng/patches/004-fix-cal_nfc_geometry.patch | 27 
 package/boot/kobs-ng/patches/004-gnu_source.patch  | 10 ---
 8 files changed, 109 insertions(+), 116 deletions(-)
 create mode 100644 package/boot/kobs-ng/patches/001-compile.patch
 delete mode 100644 package/boot/kobs-ng/patches/001-fix-mtd-defines.patch
 delete mode 100644 package/boot/kobs-ng/patches/003-missing_include.patch
 create mode 100644 package/boot/kobs-ng/patches/003-raw-mode.patch
 create mode 100644 package/boot/kobs-ng/patches/004-fix-cal_nfc_geometry.patch
 delete mode 100644 package/boot/kobs-ng/patches/004-gnu_source.patch

diff --git a/package/boot/kobs-ng/Makefile b/package/boot/kobs-ng/Makefile
index c43fa19..a7b675a 100644
--- a/package/boot/kobs-ng/Makefile
+++ b/package/boot/kobs-ng/Makefile
@@ -8,12 +8,13 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=kobs-ng
-PKG_VERSION:=3.0.35-4.0.0
-PKG_RELEASE:=2
+PKG_VERSION:=5.4
+PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=http://repository.timesys.com/buildsources/k/kobs-ng/kobs-ng-$(PKG_VERSION)/
-PKG_MD5SUM:=26104c577f59a6b81782a5bd16aadd82
+PKG_SOURCE:=imx-kobs-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/
+PKG_MD5SUM:=77467d834f858c2ec216841583e5f437
+PKG_BUILD_DIR:=$(BUILD_DIR)/imx-kobs-$(PKG_VERSION)
 
 PKG_LICENSE:=GPLv2
 PKG_LICENSE_FILES:=COPYING
diff --git a/package/boot/kobs-ng/patches/001-compile.patch 
b/package/boot/kobs-ng/patches/001-compile.patch
new file mode 100644
index 000..67da93a
--- /dev/null
+++ b/package/boot/kobs-ng/patches/001-compile.patch
@@ -0,0 +1,23 @@
+--- a/src/mtd.c
 b/src/mtd.c
+@@ -28,6 +28,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 
+--- a/src/mtd.h
 b/src/mtd.h
+@@ -25,8 +25,10 @@
+ #ifndef MTD_H
+ #define MTD_H
+ 
++#define _GNU_SOURCE
+ #include 
+ #include 
++#include 
+ 
+ #include "BootControlBlocks.h"
+ #include "rom_nand_hamming_code_ecc.h"
diff --git a/package/boot/kobs-ng/patches/001-fix-mtd-defines.patch 
b/package/boot/kobs-ng/patches/001-fix-mtd-defines.patch
deleted file mode 100644
index 6fdc735..000
--- a/package/boot/kobs-ng/patches/001-fix-mtd-defines.patch
+++ /dev/null
@@ -1,76 +0,0 @@
-From: Paul B. Henson 
-
-Newer kernel headers renamed mtd mode defines and no longer support
-MEMSETOOBSEL. Allow code to work with both older and newer kernel
-versions.
-
-Signed-off-by: Paul B. Henson 

-
-http://git.buildroot.net/buildroot/plain/package/kobs-ng/kobs-ng-fix-mtd-defines.patch
-
 a/src/mtd.c
-+++ b/src/mtd.c
-@@ -852,8 +852,11 @@ void mtd_close(struct mtd_data *md)
-   mp = &md->part[i];
- 
-   if (mp->fd != -1) {
-+/* Newer kernels dropped MEMSETOOBSEL */
-+#ifdef MEMSETOOBSEL
-   (void)ioctl(mp->fd, MEMSETOOBSEL,
-   &mp->old_oobinfo);
-+#endif
-   close(mp->fd);
-   }
- 
-@@ -896,6 +899,8 @@ int mtd_set_ecc_mode(struct mtd_data *md
-   continue;
-   }
- 
-+/* Newer kernels dropped MEMSETOOBSEL */
-+#ifdef MEMSETOOBSEL
-   if (r == -ENOTTY) {
-   r = ioctl(mp->fd, MEMSETOOBSEL, 
&mp->old_oobinfo);
-   if (r != 0) {
-@@ -904,6 +909,7 @@ int mtd_set_ecc_mode(struct mtd_data *md
-   }
-   mp->oobinfochanged = 0;
-   }
-+#endif
-   } else {
-   r = ioctl(mp->fd, MTDFILEMODE, (void *)MTD_MODE_RAW);
-   if (r != 0 && r != -ENOTTY) {
-@@ -911,6 +917,8 @@ int mtd_set_ecc_mode(struct mtd_data *md
-   continue;
-   }
- 
-+/* Newer kernels dropped MEMSETOOBSEL */
-+#ifdef MEMSETOOBSEL
-   if (r == -ENOTTY) {
-   r = ioctl(mp->fd, MEMSETOOBSEL, &none_oobinfo);
-   if (r != 0) {
-@@ -920,6 +928,7 @@ int mtd_set_ecc_mode(struct mtd_data *md
-   

[OpenWrt-Devel] [PATCH] collectd: disable perl bindings from dev host

2015-10-01 Thread Tim Harvey
if a user's env has PERL_MM_OPT defined collect will fail to build. Adding
--with-perl-bindings="" will override this env var.

Signed-off-by: Tim Harvey 
---
 utils/collectd/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/utils/collectd/Makefile b/utils/collectd/Makefile
index 03f3001..88cd5f6 100644
--- a/utils/collectd/Makefile
+++ b/utils/collectd/Makefile
@@ -185,6 +185,7 @@ CONFIGURE_ARGS+= \
--disable-debug \
--enable-daemon \
--with-nan-emulation \
+   --with-perl-bindings= \
--without-libgcrypt
 
 CONFIGURE_VARS+= \
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 0/2] imx6: Ventana: add nand squashfs+ubifs support

2015-11-06 Thread Tim Harvey
This series adds NAND ubi squqashfs+ubifs support for the Gateworks Ventana
boards.

Tim Harvey (2):
  imx6: kernel: add UBI_BLOCK support
  imx6: convert ventana images to squashfs+ubifs overlay

 target/linux/imx6/config-4.1|   2 +-
 target/linux/imx6/image/Makefile| 217 
 target/linux/imx6/image/bootscript-ventana  | 150 +++
 target/linux/imx6/image/ubinize-ventana.cfg |  37 +
 4 files changed, 284 insertions(+), 122 deletions(-)
 create mode 100644 target/linux/imx6/image/bootscript-ventana
 create mode 100644 target/linux/imx6/image/ubinize-ventana.cfg

-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 1/2] imx6: kernel: add UBI_BLOCK support

2015-11-06 Thread Tim Harvey
UBI_BLOCK support is needed for mounting squashfs over UBI

Signed-off-by: Tim Harvey 
---
 target/linux/imx6/config-4.1 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/imx6/config-4.1 b/target/linux/imx6/config-4.1
index 18a26d6..52544a7 100644
--- a/target/linux/imx6/config-4.1
+++ b/target/linux/imx6/config-4.1
@@ -241,7 +241,7 @@ CONFIG_MTD_NAND_GPMI_NAND=y
 # CONFIG_MTD_PHYSMAP_OF is not set
 CONFIG_MTD_UBI=y
 CONFIG_MTD_UBI_BEB_LIMIT=20
-# CONFIG_MTD_UBI_BLOCK is not set
+CONFIG_MTD_UBI_BLOCK=y
 # CONFIG_MTD_UBI_FASTMAP is not set
 # CONFIG_MTD_UBI_GLUEBI is not set
 CONFIG_MTD_UBI_WL_THRESHOLD=4096
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 2/2] imx6: convert ventana images to squashfs+ubifs overlay

2015-11-06 Thread Tim Harvey
Replace the ventana ubi images from a single rootfs volume containing the
rootfs as well as kernel+dtbs in the boot/ subdir to a multi-volume ubi
containing kernel+dtbs+bootscript in 'root' ubifs volume, rootfs in 'rootfs'
squasfs volume, and rootfs_data an empty ubifs volume.

At the same time move ventana image creation over to using the new
TARGET_DEVICE syntax as a cleanup.

Additionally removed FIT image creation as it is recommended that this be
done manually to produce signed FIT images if needed.

Note that a bootscript is needed for Ventana to change its default mtdparts
to rename the 2nd partition from 'rootfs' to 'ubi'. This is because there
are patches in OpenWrt kernels that try to auto-attach and auto-mount and these
get in the way if the mtd partition is named 'rootfs'.

Signed-off-by: Tim Harvey 
---
 target/linux/imx6/image/Makefile| 217 
 target/linux/imx6/image/bootscript-ventana  | 150 +++
 target/linux/imx6/image/ubinize-ventana.cfg |  37 +
 3 files changed, 283 insertions(+), 121 deletions(-)
 create mode 100644 target/linux/imx6/image/bootscript-ventana
 create mode 100644 target/linux/imx6/image/ubinize-ventana.cfg

diff --git a/target/linux/imx6/image/Makefile b/target/linux/imx6/image/Makefile
index 3381473..a552ac6 100644
--- a/target/linux/imx6/image/Makefile
+++ b/target/linux/imx6/image/Makefile
@@ -7,135 +7,110 @@
 include $(TOPDIR)/rules.mk
 include $(INCLUDE_DIR)/image.mk
 
-define sanitize_profile_name
-$(shell echo $(PROFILE) | tr '[:upper:]' '[:lower:]' | sed 's/_/-/g')
-endef
-
-define Image/BuildKernel/Template
-
- ifneq ($(1),)
-   $(CP) $(DTS_DIR)/$(1).dtb $(BIN_DIR)/$(IMG_PREFIX)-$(1).dtb
-
-   $(call 
Image/BuildKernel/MkFIT,$(1),$(KDIR)/zImage,$(BIN_DIR)/$(IMG_PREFIX)-$(1).dtb,none,0x10008000,0x10008000)
-   $(CP) $(KDIR)/fit-$(1).itb $(BIN_DIR)/$(IMG_PREFIX)-$(1)-fit-uImage.itb
-
-  ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
-   $(call 
Image/BuildKernel/MkFIT,$(1),$(KDIR)/zImage-initramfs,$(BIN_DIR)/$(IMG_PREFIX)-$(1).dtb,none,0x10008000,0x10008000,-initramfs)
-   $(CP) $(KDIR)/fit-$(1)-initramfs.itb 
$(BIN_DIR)/$(IMG_PREFIX)-$(1)-fit-uImage-initramfs.itb
-  endif
- endif
-
-   $(CP) $(KDIR)/zImage $(BIN_DIR)/$(IMG_PREFIX)-zImage
-   $(call Image/BuildKernel/MkuImage, \
-   none, 0x10008000, 0x10008000, \
-   $(BIN_DIR)/$(IMG_PREFIX)-zImage, \
-   $(BIN_DIR)/$(IMG_PREFIX)-uImage \
-   )
-
- ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
-   $(CP) $(KDIR)/zImage-initramfs $(BIN_DIR)/$(IMG_PREFIX)-zImage-initramfs
-   $(call Image/BuildKernel/MkuImage, \
-   none, 0x10008000, 0x10008000, \
-   $(BIN_DIR)/$(IMG_PREFIX)-zImage-initramfs, \
-   $(BIN_DIR)/$(IMG_PREFIX)-uImage-initramfs \
-   )
- endif
-endef
-
-define Image/InstallKernel/Template
-
- ifneq ($(CONFIG_TARGET_ROOTFS_INCLUDE_KERNEL)$(CONFIG_TARGET_imx6_VENTANA),)
-   $(INSTALL_DIR) $(TARGET_DIR)/boot
-   ifneq ($(CONFIG_TARGET_ROOTFS_INCLUDE_UIMAGE)$(CONFIG_TARGET_imx6_VENTANA),)
-   $(CP) $(BIN_DIR)/$(IMG_PREFIX)-uImage $(TARGET_DIR)/boot/
-   ln -sf $(IMG_PREFIX)-uImage $(TARGET_DIR)/boot/uImage
-   endif
-   ifneq ($(CONFIG_TARGET_ROOTFS_INCLUDE_ZIMAGE),)
-   $(CP) $(BIN_DIR)/$(IMG_PREFIX)-zImage $(TARGET_DIR)/boot/
-   ln -sf $(IMG_PREFIX)-zImage $(TARGET_DIR)/boot/zImage
-   endif
-   ifneq ($(CONFIG_TARGET_ROOTFS_INCLUDE_FIT),)
-   $(foreach dts,$(shell echo $(1)), \
-   $(CP) $(BIN_DIR)/$(IMG_PREFIX)-$(dts)-fit-uImage.itb 
$(TARGET_DIR)/boot/
+#
+# Images
+#
+
+# build a ubi for a specific flash geometry/layout which can contain
+# volumes with the following data from ubinize-$(DEVICE_NAME).cfg:
+#   - 'boot.ubifs' volume: kernel+dtbs+bootscript
+#   - 'root.squashfs' volume: rootfs
+# $(1): name (used for suffix)
+# $(2): PAGESIZE (-m param to mkfs.ubifs/ubinize)
+# $(3): ERASESIZE (logical eraseblock size: -e param to mkfs.ubifs)
+# $(4): BLOCKSIZE (-p param to ubinize)
+# $(5): MAXSIZE (maximum file-system size in LEB's -c param to mkfs.ubifs)
+#
+define Build/ubi-boot-overlay
+   # ubi-boot-overlay $(DEVICE_NAME) $(word 1, $(1))
+
+   # boot filesystem
+   rm -rf $(TARGET_ROOTFS_DIR)/boot-$(DEVICE_NAME)_$(word 1, $(1))
+   mkdir -p $(TARGET_ROOTFS_DIR)/boot-$(DEVICE_NAME)_$(word 1, $(1))
+   $(CP) $< $(TARGET_ROOTFS_DIR)/boot-$(DEVICE_NAME)_$(word 1, 
$(1))/$(IMG_PREFIX)-uImage
+   ln -sf $(IMG_PREFIX)-uImage \
+   $(TARGET_ROOTFS_DIR)/boot-$(DEVICE_NAME)_$(word 1, $(1))/uImage
+   $(foreach dts,$(shell echo $(DEVICE_DTS)), \
+   $(CP) $(LINUX_DIR)/arch/$(ARCH)/boot/dts/$(dts).dtb \
+ 

[OpenWrt-Devel] [PATCH] [packages] multimedia: add fbdevsink

2015-11-10 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
 multimedia/gst1-plugins-bad/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/multimedia/gst1-plugins-bad/Makefile 
b/multimedia/gst1-plugins-bad/Makefile
index bfeb1c5..ca04b8d 100644
--- a/multimedia/gst1-plugins-bad/Makefile
+++ b/multimedia/gst1-plugins-bad/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=gst1-plugins-bad
 PKG_VERSION:=1.4.5
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_MAINTAINER:=W. Michael Petullo 
 
@@ -115,7 +115,6 @@ CONFIGURE_ARGS += \
--disable-resindvd \
--disable-faac \
--disable-faad \
-   --disable-fbdev \
--disable-flite \
--disable-gsm \
--disable-kate \
@@ -247,6 +246,7 @@ $(eval $(call GstBuildPlugin,camerabin2,camerabin 
support,basecamerabinsrc photo
 $(eval $(call GstBuildPlugin,dataurisrc,dataurisrc support,,,))
 $(eval $(call GstBuildPlugin,debugutilsbad,debugutils support,video,,))
 $(eval $(call GstBuildPlugin,dvdspu,dvdspu support,video,,))
+$(eval $(call GstBuildPlugin,fbdevsink,fbdev support,video,,))
 $(eval $(call GstBuildPlugin,festival,festival support,audio,,))
 $(eval $(call GstBuildPlugin,frei0r,frei0r support,controller video,,))
 $(eval $(call GstBuildPlugin,id3tag,id3tag support,tag,,))
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 1/2] imx6: kernel: Add support for Toradex Apalis modules

2015-11-11 Thread Tim Harvey
On Wed, Nov 11, 2015 at 5:28 AM, Petr Štetiar  wrote:
> Tested on Toradex Apalis iMX6 Quad 2GB IT V1.1A module on Ixora board
> with Mikrotik R11e-2HnD and Quectel EC20 Mini PCIe modules.
>
> Signed-off-by: Petr Štetiar 
> ---
>  target/linux/imx6/image/Makefile   |2 +
>  ...6-Add-support-for-Toradex-Apalis-modules-.patch | 1996 
> 
>  ...dd-reset-function-for-reseting-downstream.patch |   79 +
>  target/linux/imx6/profiles/130-toradex.mk  |   27 +
>  4 files changed, 2104 insertions(+)
>  create mode 100644 
> target/linux/imx6/patches-4.1/200-ARM-dts-imx6-Add-support-for-Toradex-Apalis-modules-.patch
>  create mode 100644 
> target/linux/imx6/patches-4.1/300-pcie-imx6-add-reset-function-for-reseting-downstream.patch
>  create mode 100644 target/linux/imx6/profiles/130-toradex.mk
>
> diff --git a/target/linux/imx6/image/Makefile 
> b/target/linux/imx6/image/Makefile
> index d5bab30..0dadf0b 100644
> --- a/target/linux/imx6/image/Makefile
> +++ b/target/linux/imx6/image/Makefile
> @@ -110,6 +110,8 @@ Image/BuildKernel/Template/VENTANA=$(foreach dts,$(shell 
> echo $(VENTANA_DTS)),$(
>  Image/InstallKernel/Template/VENTANA=$(call 
> Image/InstallKernel/Template,$(VENTANA_DTS))
>  Image/ubifs/VENTANA=$(call ubifs_imx_gateworks_ventana)
>
> +Image/BuildKernel/Template/APALIS=$(foreach dts,$(shell echo 
> $(APALIS_DTS)),$(call Image/BuildKernel/Template,$(dts)))
> +Image/InstallKernel/Template/APALIS=$(call 
> Image/InstallKernel/Template,$(APALIS_DTS))
>
>  define Image/BuildKernel
> $(call Image/BuildKernel/Template/$(PROFILE))

Hi Petr,

As Felix mentioned, I've posted a couple of patches that re-write the
imx6/image/Makefile using the newew TARGET_DEVICE notation which is
much cleaner and easier to build off of.

I expect those patches to be merged perhaps this week and I think
you'll find it very easy to use the example of the Wandboard device
there to create a device for your board that includes APALIS_DTS.

> diff --git 
> a/target/linux/imx6/patches-4.1/200-ARM-dts-imx6-Add-support-for-Toradex-Apalis-modules-.patch
>  
> b/target/linux/imx6/patches-4.1/200-ARM-dts-imx6-Add-support-for-Toradex-Apalis-modules-.patch
> new file mode 100644
> index 000..74c2718
> --- /dev/null
> +++ 
> b/target/linux/imx6/patches-4.1/200-ARM-dts-imx6-Add-support-for-Toradex-Apalis-modules-.patch
> @@ -0,0 +1,1996 @@
> +From a9b5bec66c768274493a4d583b7adba366c80470 Mon Sep 17 00:00:00 2001
> +From: =?UTF-8?q?Petr=20=C5=A0tetiar?= 
> +Date: Wed, 14 Oct 2015 16:37:43 +0200
> +Subject: [PATCH 1/3] ARM: dts: imx6: Add support for Toradex Apalis modules
> + and boards
> +MIME-Version: 1.0
> +Content-Type: text/plain; charset=UTF-8
> +Content-Transfer-Encoding: 8bit
> +
> +* includes support for Eval and Ixora boards
> +* hand picked from toradex_imx_3.14.28_1.0.0_ga-next branch
> +
> +Signed-off-by: Petr Štetiar 
> +---
> + arch/arm/boot/dts/Makefile|4 +
> + arch/arm/boot/dts/imx6q-apalis-eval.dts   |   25 +
> + arch/arm/boot/dts/imx6q-apalis-ixora.dts  |   25 +
> + arch/arm/boot/dts/imx6q-apalis_v1_0-eval.dts  |   29 +
> + arch/arm/boot/dts/imx6q-apalis_v1_0-ixora.dts |   29 +
> + arch/arm/boot/dts/imx6qdl-apalis-eval.dtsi|  357 
> + arch/arm/boot/dts/imx6qdl-apalis-ixora.dtsi   |  333 
> + arch/arm/boot/dts/imx6qdl-apalis.dtsi | 1107 
> +
> + 8 files changed, 1909 insertions(+)
> + create mode 100644 arch/arm/boot/dts/imx6q-apalis-eval.dts
> + create mode 100644 arch/arm/boot/dts/imx6q-apalis-ixora.dts
> + create mode 100644 arch/arm/boot/dts/imx6q-apalis_v1_0-eval.dts
> + create mode 100644 arch/arm/boot/dts/imx6q-apalis_v1_0-ixora.dts
> + create mode 100644 arch/arm/boot/dts/imx6qdl-apalis-eval.dtsi
> + create mode 100644 arch/arm/boot/dts/imx6qdl-apalis-ixora.dtsi
> + create mode 100644 arch/arm/boot/dts/imx6qdl-apalis.dtsi


The OpenWrt tradition is to add a patch to add yoru dtb's to the
Makefile (as you have done with archarm/boot/dts/Makefile but to put
'added' files into target/linux/imx6/files-4.1/

Also, I would recommend first posting your dts patches to the
arm-linux maillist first to have them reviewed fully by the experts
there before adding them to OpenWrt. The benefit other than being
reviewed by the proper group is that they will also get mainlined and
make future maintenance of the imx6 target much simpler. I've cc'd
Luka so he can voice his opinion or desire as the imx6 maintainer as
well.


> diff --git 
> a/target/linux/imx6/patches-4.1/300-pcie-imx6-add-reset-function-for-reseting-downstream.patch
>  
> b/target/linux/imx6/patches-4.1/300-pcie-imx6-add-reset-function-for-reseting-downstream.patch
> new file mode 100644
> index 000..c1bbaa8
> --- /dev/null
> +++ 
> b/target/linux/imx6/patches-4.1/300-pcie-imx6-add-reset-function-for-reseting-downstream.patch
> @@ -0,0 +1,79 @@
> +From 37f31601d32cfec48c0b69bc6e08f2aff08d4c6a Mon Sep 17 00:00:00 2001
> +From: Ma

[OpenWrt-Devel] [PATCH 2/6] imx6: add Vetnana LVDS support

2015-11-11 Thread Tim Harvey
These patches have been submitted to upstream Linux and are pending acceptance.

Signed-off-by: Tim Harvey 
---
 ...-ventana-set-GW54xx-PMIC-swbst-regulator-.patch | 31 +
 ...mx-ventana-fix-GW53xx-GW54xx-lvds-channel.patch | 40 +++
 ...mx-ventana-fix-GW53xx-GW54xx-lvds-channel.patch | 79 ++
 3 files changed, 150 insertions(+)
 create mode 100644 
target/linux/imx6/patches-4.1/035-ARM-dts-imx-ventana-set-GW54xx-PMIC-swbst-regulator-.patch
 create mode 100644 
target/linux/imx6/patches-4.1/036-ARM-dts-imx-ventana-fix-GW53xx-GW54xx-lvds-channel.patch
 create mode 100644 
target/linux/imx6/patches-4.1/037-ARM-dts-imx-ventana-fix-GW53xx-GW54xx-lvds-channel.patch

diff --git 
a/target/linux/imx6/patches-4.1/035-ARM-dts-imx-ventana-set-GW54xx-PMIC-swbst-regulator-.patch
 
b/target/linux/imx6/patches-4.1/035-ARM-dts-imx-ventana-set-GW54xx-PMIC-swbst-regulator-.patch
new file mode 100644
index 000..6454ab7
--- /dev/null
+++ 
b/target/linux/imx6/patches-4.1/035-ARM-dts-imx-ventana-set-GW54xx-PMIC-swbst-regulator-.patch
@@ -0,0 +1,31 @@
+From 57b82d9e79d77442bae3d2c13b98ceccb39fe5e2 Mon Sep 17 00:00:00 2001
+From: Tim Harvey 
+Date: Thu, 5 Nov 2015 10:49:31 -0800
+Subject: [PATCH 1/3] ARM: dts: imx: ventana: set GW54xx PMIC swbst regulator
+ as always-on
+
+The GW54xx PMIC swbst regulator is used for LVDS power, CANbus xceiver
+and HDMI DDC and is enabled by the bootloader. Set the regulator to
+always-on so that Linux doesn't turn it off thinking its not needed.
+
+Signed-off-by: Tim Harvey 
+---
+ arch/arm/boot/dts/imx6qdl-gw54xx.dtsi | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi 
b/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi
+index 31d86f7..2108d1c 100644
+--- a/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi
 b/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi
+@@ -265,6 +265,8 @@
+   swbst_reg: swbst {
+   regulator-min-microvolt = <500>;
+   regulator-max-microvolt = <515>;
++  regulator-boot-on;
++  regulator-always-on;
+   };
+ 
+   snvs_reg: vsnvs {
+-- 
+1.9.1
+
diff --git 
a/target/linux/imx6/patches-4.1/036-ARM-dts-imx-ventana-fix-GW53xx-GW54xx-lvds-channel.patch
 
b/target/linux/imx6/patches-4.1/036-ARM-dts-imx-ventana-fix-GW53xx-GW54xx-lvds-channel.patch
new file mode 100644
index 000..645123d
--- /dev/null
+++ 
b/target/linux/imx6/patches-4.1/036-ARM-dts-imx-ventana-fix-GW53xx-GW54xx-lvds-channel.patch
@@ -0,0 +1,40 @@
+From 473d0353979db3673a7aa365265ba9b00decd414 Mon Sep 17 00:00:00 2001
+From: Tim Harvey 
+Date: Thu, 5 Nov 2015 10:52:53 -0800
+Subject: [PATCH 2/3] ARM: dts: imx: ventana: fix GW53xx/GW54xx lvds channel
+
+Signed-off-by: Tim Harvey 
+---
+ arch/arm/boot/dts/imx6qdl-gw53xx.dtsi | 2 +-
+ arch/arm/boot/dts/imx6qdl-gw54xx.dtsi | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi 
b/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi
+index 7c51839..5172de0 100644
+--- a/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi
 b/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi
+@@ -247,7 +247,7 @@
+ &ldb {
+   status = "okay";
+ 
+-  lvds-channel@1 {
++  lvds-channel@0 {
+   fsl,data-mapping = "spwg";
+   fsl,data-width = <18>;
+   status = "okay";
+diff --git a/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi 
b/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi
+index 2108d1c..77a56be 100644
+--- a/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi
 b/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi
+@@ -343,7 +343,7 @@
+ &ldb {
+   status = "okay";
+ 
+-  lvds-channel@1 {
++  lvds-channel@0 {
+   fsl,data-mapping = "spwg";
+   fsl,data-width = <18>;
+   status = "okay";
+-- 
+1.9.1
+
diff --git 
a/target/linux/imx6/patches-4.1/037-ARM-dts-imx-ventana-fix-GW53xx-GW54xx-lvds-channel.patch
 
b/target/linux/imx6/patches-4.1/037-ARM-dts-imx-ventana-fix-GW53xx-GW54xx-lvds-channel.patch
new file mode 100644
index 000..5c3731c
--- /dev/null
+++ 
b/target/linux/imx6/patches-4.1/037-ARM-dts-imx-ventana-fix-GW53xx-GW54xx-lvds-channel.patch
@@ -0,0 +1,79 @@
+From d86b202436b6f3111c4c37b8701daa0764d2ca55 Mon Sep 17 00:00:00 2001
+From: Tim Harvey 
+Date: Thu, 5 Nov 2015 11:10:00 -0800
+Subject: [PATCH 3/3] ARM: dts: imx: ventana: Allow HDMI and LVDS to work
+ simultaneously
+
+Currently it is not possible to have HDMI and LVDS working simultaneously,
+because both ports try to use PLL5.
+
+Move the LVDS clock parent to PLL3_USB_OTG, so that HDMI and LVDS can be
+driven from independent sources.
+
+With this change the LDB pixel clock goes to 68.57 MHz, which is still
+within the valid range for the displays supported by the Ventana boards.
+
+Signed-off-by: Tim Harvey 
+--

[OpenWrt-Devel] [PATCH 1/6] imx6: ventana: fix GW16083 device-tree patch

2015-11-11 Thread Tim Harvey
The 206-ARM-imx-ventana-added-GW16083-to-device-tree.patch merged wrong in
the conversion from 3.18 to 4.1. This patch resolves that and puts the
device-tree nodes in the correct place.

Signed-off-by: Tim Harvey 
---
 ...-imx-ventana-added-GW16083-to-device-tree.patch | 32 +++---
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git 
a/target/linux/imx6/patches-4.1/206-ARM-imx-ventana-added-GW16083-to-device-tree.patch
 
b/target/linux/imx6/patches-4.1/206-ARM-imx-ventana-added-GW16083-to-device-tree.patch
index 6f31f95..a9214d5 100644
--- 
a/target/linux/imx6/patches-4.1/206-ARM-imx-ventana-added-GW16083-to-device-tree.patch
+++ 
b/target/linux/imx6/patches-4.1/206-ARM-imx-ventana-added-GW16083-to-device-tree.patch
@@ -1,9 +1,9 @@
 --- a/arch/arm/boot/dts/imx6qdl-gw51xx.dtsi
 +++ b/arch/arm/boot/dts/imx6qdl-gw51xx.dtsi
-@@ -89,6 +89,11 @@
-   enable-active-high;
-   };
-   };
+@@ -158,6 +158,11 @@
+   pinctrl-names = "default";
+   pinctrl-0 = <&pinctrl_i2c2>;
+   status = "okay";
 +
 +  gw16083: gw16083@52 {
 +  compatible = "gateworks,gw16083";
@@ -11,13 +11,13 @@
 +  };
  };
  
- &fec {
+ &i2c3 {
 --- a/arch/arm/boot/dts/imx6qdl-gw52xx.dtsi
 +++ b/arch/arm/boot/dts/imx6qdl-gw52xx.dtsi
-@@ -266,6 +266,11 @@
-   };
-   };
-   };
+@@ -233,6 +233,11 @@
+   pinctrl-names = "default";
+   pinctrl-0 = <&pinctrl_i2c2>;
+   status = "okay";
 +
 +  gw16083: gw16083@52 {
 +  compatible = "gateworks,gw16083";
@@ -25,13 +25,13 @@
 +  };
  };
  
- &pcie {
+ &i2c3 {
 --- a/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi
 +++ b/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi
-@@ -267,6 +267,11 @@
-   };
-   };
-   };
+@@ -226,6 +226,11 @@
+   pinctrl-names = "default";
+   pinctrl-0 = <&pinctrl_i2c2>;
+   status = "okay";
 +
 +  gw16083: gw16083@52 {
 +  compatible = "gateworks,gw16083";
@@ -39,10 +39,10 @@
 +  };
  };
  
- &pcie {
+ &i2c3 {
 --- a/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi
 +++ b/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi
-@@ -308,6 +308,11 @@
+@@ -317,6 +317,11 @@
};
};
};
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 3/6] kernel: video: add fbcon support

2015-11-11 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
 package/kernel/linux/modules/video.mk | 43 +++
 1 file changed, 43 insertions(+)

diff --git a/package/kernel/linux/modules/video.mk 
b/package/kernel/linux/modules/video.mk
index 3b06a14..c53f656 100644
--- a/package/kernel/linux/modules/video.mk
+++ b/package/kernel/linux/modules/video.mk
@@ -31,6 +31,49 @@ endef
 
 $(eval $(call KernelPackage,fb))
 
+
+define KernelPackage/fbcon
+  SUBMENU:=$(VIDEO_MENU)
+  TITLE:=Framebuffer Console support
+  DEPENDS:=+kmod-fb
+  KCONFIG:= \
+   CONFIG_FRAMEBUFFER_CONSOLE \
+   CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y \
+   CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y \
+   CONFIG_FONTS=y \
+   CONFIG_FONT_8x8=y \
+   CONFIG_FONT_8x16=y \
+   CONFIG_FONT_6x11=n \
+   CONFIG_FONT_7x14=n \
+   CONFIG_FONT_PEARL_8x8=n \
+   CONFIG_FONT_ACORN_8x8=n \
+   CONFIG_FONT_MINI_4x6=n \
+   CONFIG_FONT_6x10=n \
+   CONFIG_FONT_SUN8x16=n \
+   CONFIG_FONT_SUN12x22=n \
+   CONFIG_FONT_10x18=n \
+   CONFIG_VT=y \
+   CONFIG_CONSOLE_TRANSLATIONS=y \
+   CONFIG_VT_CONSOLE=y \
+   CONFIG_VT_HW_CONSOLE_BINDING=y
+  FILES:= \
+   $(LINUX_DIR)/drivers/video/console/bitblit.ko \
+   $(LINUX_DIR)/drivers/video/console/softcursor.ko \
+   $(LINUX_DIR)/drivers/video/console/fbcon.ko \
+   $(LINUX_DIR)/drivers/video/console/fbcon_rotate.ko \
+   $(LINUX_DIR)/drivers/video/console/fbcon_cw.ko \
+   $(LINUX_DIR)/drivers/video/console/fbcon_ud.ko \
+   $(LINUX_DIR)/drivers/video/console/fbcon_ccw.ko \
+   $(LINUX_DIR)/lib/fonts/font.ko
+  AUTOLOAD:=$(call AutoLoad,94,font softcursor tileblit fbcon_cw fbcon_ud 
fbcon_ccw fbcon_rotate bitblit fbcon)
+endef
+
+define KernelPackage/fbcon/description
+  Kernel support for framebuffer console
+endef
+
+$(eval $(call KernelPackage,fbcon))
+
 define KernelPackage/fb-cfb-fillrect
   SUBMENU:=$(VIDEO_MENU)
   TITLE:=Framebuffer software rectangle filling support
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 4/6] kernel: add backlight kernel module support

2015-11-11 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
 package/kernel/linux/modules/backlight.mk | 48 +++
 1 file changed, 48 insertions(+)
 create mode 100644 package/kernel/linux/modules/backlight.mk

diff --git a/package/kernel/linux/modules/backlight.mk 
b/package/kernel/linux/modules/backlight.mk
new file mode 100644
index 000..5d3ca70
--- /dev/null
+++ b/package/kernel/linux/modules/backlight.mk
@@ -0,0 +1,48 @@
+#
+# Copyright (C) 2015 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+BACKLIGHT_MENU:=Video Support
+
+define KernelPackage/backlight
+   SUBMENU:=$(BACKLIGHT_MENU)
+   TITLE:=Backlight support
+   KCONFIG:=CONFIG_BACKLIGHT_CLASS_DEVICE=m \
+   CONFIG_BACKLIGHT_LCD_SUPPORT=y \
+   CONFIG_LCD_CLASS_DEVICE=n \
+   CONFIG_BACKLIGHT_PWM=n \
+   CONFIG_BACKLIGHT_GENERIC=n \
+   CONFIG_BACKLIGHT_ADP8860=n \
+   CONFIG_BACKLIGHT_ADP8870
+   FILES:=$(LINUX_DIR)/drivers/video/backlight/backlight.ko
+   AUTOLOAD:=$(call AutoProbe,video backlight)
+endef
+
+define KernelPackage/backlight/description
+   Kernel module for Backlight support.
+endef
+
+$(eval $(call KernelPackage,backlight))
+
+define AddDepends/backlight
+   SUBMENU:=$(BACKLIGHT_MENU)
+   DEPENDS+=kmod-backlight $(1)
+endef
+
+define KernelPackage/backlight-pwm
+   TITLE:=PWM Backlight support
+   DEPENDS:=+kmod-pwm
+   KCONFIG:=CONFIG_BACKLIGHT_PWM=m
+   FILES:=$(LINUX_DIR)/drivers/video/backlight/pwm_bl.ko
+   AUTOLOAD:=$(call AutoProbe,video pwm_bl)
+   $(call AddDepends/backlight)
+endef
+
+define KernelPackage/backlight/backlight-pwm
+   Kernel module for PWM based Backlight support.
+endef
+
+$(eval $(call KernelPackage,backlight-pwm))
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 0/6] Add DRM video output support for IMX6

2015-11-11 Thread Tim Harvey
This series adds DRM based video output support for IMX6 HDMI and LVDS.

The first patch fixes a Ventana device-tree issue caused by an invalid merge.

The second patch adds some patches that are pending acceptance upstream that
fix a couple of issues keeping LVDS/backlight working on various Ventana
boards.

The next few patches add fbcon, backlight, and pwm modules and can
be stand-alone.

The final patch adds drm core and drm-imx modules supporting LVDS/HDMI.

These were tested on Gateworks Ventana boards, using the 4.1 kernel
(which I believe is required), and using fbcon, psplash, and gstreamer1 with
fbdevsink output.

Tim Harvey (6):
  imx6: ventana: fix GW16083 device-tree patch
  imx6: add Vetnana LVDS support
  kernel: video: add fbcon support
  kernel: add backlight kernel module support
  kernel: other: add PWM controller support
  kernel: video: add DRM core and IMX DRM support for HDMI/LVDS

 package/kernel/linux/modules/backlight.mk  |  48 ++
 package/kernel/linux/modules/other.mk  |  35 
 package/kernel/linux/modules/video.mk  | 181 -
 ...-ventana-set-GW54xx-PMIC-swbst-regulator-.patch |  31 
 ...mx-ventana-fix-GW53xx-GW54xx-lvds-channel.patch |  40 +
 ...mx-ventana-fix-GW53xx-GW54xx-lvds-channel.patch |  79 +
 ...-imx-ventana-added-GW16083-to-device-tree.patch |  32 ++--
 7 files changed, 429 insertions(+), 17 deletions(-)
 create mode 100644 package/kernel/linux/modules/backlight.mk
 create mode 100644 
target/linux/imx6/patches-4.1/035-ARM-dts-imx-ventana-set-GW54xx-PMIC-swbst-regulator-.patch
 create mode 100644 
target/linux/imx6/patches-4.1/036-ARM-dts-imx-ventana-fix-GW53xx-GW54xx-lvds-channel.patch
 create mode 100644 
target/linux/imx6/patches-4.1/037-ARM-dts-imx-ventana-fix-GW53xx-GW54xx-lvds-channel.patch

-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 5/6] kernel: other: add PWM controller support

2015-11-11 Thread Tim Harvey
This adds basic PWM controller support and support for i.MX

Signed-off-by: Tim Harvey 
---
 package/kernel/linux/modules/other.mk | 35 +++
 1 file changed, 35 insertions(+)

diff --git a/package/kernel/linux/modules/other.mk 
b/package/kernel/linux/modules/other.mk
index 55fb6f1..0885e0c 100644
--- a/package/kernel/linux/modules/other.mk
+++ b/package/kernel/linux/modules/other.mk
@@ -359,6 +359,41 @@ endef
 $(eval $(call KernelPackage,mmc))
 
 
+define KernelPackage/pwm
+  SUBMENU:=$(OTHER_MENU)
+  TITLE:=Pulse-Width Modulation support
+  KCONFIG:= \
+   CONFIG_PWM=y \
+   CONFIG_REGULATOR_PWM=n \
+   CONFIG_PWM_FSL_FTM=n
+endef
+
+define KernelPackage/pwm/description
+ Pulse Width Modulation subsystem.
+endef
+
+$(eval $(call KernelPackage,pwm))
+
+define AddDepends/pwm
+  SUBMENU:=$(OTHER_MENU)
+  DEPENDS+=kmod-pwm $(1)
+endef
+
+define KernelPackage/pwm-imx
+  SUBMENU:=$(OTHER_MENU)
+  TITLE:=IMX Pulse-Width Modulation support
+  KCONFIG:=CONFIG_PWM_IMX
+  FILES:= $(LINUX_DIR)/drivers/pwm/pwm-imx.ko
+  AUTOLOAD:=$(call AutoProbe,pwm-imx)
+  $(call AddDepends/pwm)
+endef
+
+define KernelPackage/pwm-imx/description
+ Freescale IMX Pulse Width Modulation support.
+endef
+
+$(eval $(call KernelPackage,pwm-imx))
+
 define KernelPackage/sdhci
   SUBMENU:=$(OTHER_MENU)
   TITLE:=Secure Digital Host Controller Interface support
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 6/6] kernel: video: add IMX DRM support for HDMI/LVDS

2015-11-11 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
 package/kernel/linux/modules/video.mk | 138 +-
 1 file changed, 137 insertions(+), 1 deletion(-)

diff --git a/package/kernel/linux/modules/video.mk 
b/package/kernel/linux/modules/video.mk
index c53f656..cbace75 100644
--- a/package/kernel/linux/modules/video.mk
+++ b/package/kernel/linux/modules/video.mk
@@ -11,11 +11,17 @@ VIDEO_MENU:=Video Support
 V4L2_DIR=v4l2-core
 V4L2_USB_DIR=usb
 
+#
+# Video Display
+#
+
 define KernelPackage/fb
   SUBMENU:=$(VIDEO_MENU)
   TITLE:=Framebuffer support
   DEPENDS:=@DISPLAY_SUPPORT
-  KCONFIG:=CONFIG_FB
+  KCONFIG:=CONFIG_FB \
+   CONFIG_FB_MXS=n \
+   CONFIG_FB_SM750=n
   FILES:=$(LINUX_DIR)/drivers/video/fbdev/core/fb.ko
   AUTOLOAD:=$(call AutoLoad,06,fb)
 endef
@@ -121,6 +127,136 @@ endef
 $(eval $(call KernelPackage,fb-cfb-imgblt))
 
 
+define KernelPackage/drm
+  SUBMENU:=$(VIDEO_MENU)
+  TITLE:=Direct Rendering Manager (DRM) support
+  KCONFIG:=CONFIG_DRM \
+   CONFIG_DRM_LOAD_EDID_FIRMWARE=n \
+   CONFIG_DRM_IMX=n \
+   CONFIG_DRM_PTN3460=n \
+   CONFIG_DRM_PS8622=n \
+   CONFIG_DRM_TDFX=n \
+   CONFIG_DRM_R128=n \
+   CONFIG_DRM_RADEON=n \
+   CONFIG_DRM_NOUVEAU=n \
+   CONFIG_DRM_MGA=n \
+   CONFIG_DRM_VIA=n \
+   CONFIG_DRM_SAVAGE=n \
+   CONFIG_DRM_VGEM=n \
+   CONFIG_DRM_EXYNOS=n \
+   CONFIG_DRM_VMWGFX=n \
+   CONFIG_DRM_UDL=n \
+   CONFIG_DRM_AST=n \
+   CONFIG_DRM_MGAG200=n \
+   CONFIG_DRM_CIRRUS_QEMU=n \
+   CONFIG_DRM_ARMADA=n \
+   CONFIG_DRM_TILCDC=n \
+   CONFIG_DRM_QXL=n \
+   CONFIG_DRM_BOCHS=n \
+   CONFIG_DRM_STI=n \
+   CONFIG_DRM_I2C_ADV7511=n \
+   CONFIG_DRM_I2C_CH7006=n \
+   CONFIG_DRM_I2C_SIL164=n \
+   CONFIG_DRM_I2C_NXP_TDA998X=n
+  FILES:=$(LINUX_DIR)/drivers/gpu/drm/drm.ko
+  AUTOLOAD:=$(call AutoLoad,05,drm)
+endef
+
+define KernelPackage/drm/description
+  Direct Rendering Manager (DRM) core support  
+endef
+
+$(eval $(call KernelPackage,drm))
+
+define AddDepends/drm
+  SUBMENU:=$(VIDEO_MENU)
+  DEPENDS+=kmod-drm $(1)
+endef
+
+define KernelPackage/drm-imx
+  TITLE:=Freescale i.MX DRM support
+  DEPENDS:=+kmod-fb
+  KCONFIG:=CONFIG_DRM_IMX=m \
+   CONFIG_IMX_IPUV3_CORE=m \
+   CONFIG_RESET_CONTROLLER=y \
+   CONFIG_DRM_IMX_IPUV3 \
+   CONFIG_IMX_IPUV3 \
+   CONFIG_DRM_KMS_HELPER \
+   CONFIG_FB_SYS_FILLRECT \
+   CONFIG_FB_SYS_COPYAREA \
+   CONFIG_FB_SYS_IMAGEBLIT \
+   CONFIG_DRM_KMS_FB_HELPER=y \
+   CONFIG_DRM_GEM_CMA_HELPER=y \
+   CONFIG_DRM_KMS_CMA_HELPER=y \
+   CONFIG_DRM_IMX_FB_HELPER \
+   CONFIG_DRM_IMX_PARALLEL_DISPLAY=n \
+   CONFIG_DRM_IMX_TVE=n \
+   CONFIG_DRM_IMX_LDB=n \
+   CONFIG_DRM_IMX_HDMI=n
+  FILES:= \
+   $(LINUX_DIR)/drivers/gpu/drm/imx/imxdrm.ko \
+   $(LINUX_DIR)/drivers/gpu/ipu-v3/imx-ipu-v3.ko \
+   $(LINUX_DIR)/drivers/gpu/drm/imx/imx-ipuv3-crtc.ko \
+   $(LINUX_DIR)/drivers/video/fbdev/core/syscopyarea.ko \
+   $(LINUX_DIR)/drivers/video/fbdev/core/sysfillrect.ko \
+   $(LINUX_DIR)/drivers/video/fbdev/core/sysimgblt.ko \
+   $(LINUX_DIR)/drivers/gpu/drm/drm_kms_helper.ko
+  AUTOLOAD:=$(call AutoLoad,05,imxdrm imx-ipu-v3 imx-ipuv3-crtc)
+  $(call AddDepends/drm)
+endef
+
+define KernelPackage/drm-imx/description
+  Direct Rendering Manager (DRM) support for Freescale i.MX
+endef
+
+$(eval $(call KernelPackage,drm-imx))
+
+define AddDepends/drm-imx
+  SUBMENU:=$(VIDEO_MENU)
+  DEPENDS+=kmod-drm-imx $(1)
+endef
+
+define KernelPackage/drm-imx-hdmi
+  TITLE:=Freescale i.MX HDMI DRM support
+  KCONFIG:=CONFIG_DRM_IMX_HDMI=m
+  FILES:= \
+   $(LINUX_DIR)/drivers/gpu/drm/bridge/dw_hdmi.ko \
+   $(LINUX_DIR)/drivers/gpu/drm/imx/dw_hdmi-imx.ko
+  AUTOLOAD:=$(call AutoLoad,05,dw_hdmi-imx)
+  $(call AddDepends/drm-imx)
+endef
+
+define KernelPackage/drm-imx-hdmi/description
+  Direct Rendering Manager (DRM) support for Freescale i.MX HDMI
+endef
+
+$(eval $(call KernelPackage,drm-imx-hdmi))
+
+define KernelPackage/drm-imx-ldb
+  TITLE:=Freescale i.MX LVDS DRM support
+  DEPENDS:=+kmod-backlight
+  KCONFIG:=CONFIG_DRM_IMX_LDB=m \
+   CONFIG_DRM_PANEL_SIMPLE \
+   CONFIG_DRM_PANEL=y \
+   CONFIG_DRM_PANEL_LD9040=n \
+   CONFIG_DRM_PANEL_S6E8AA0=n
+  FILES:=$(LINUX_DIR)/drivers/gpu/drm/imx/imx-ldb.ko \
+   $(LINUX_DIR)/drivers/gpu/drm/panel/panel-simple.ko
+  AUTOLOAD:=$(call AutoLoad,05,imx-ldb)
+  $(call AddDepends/drm-imx)
+endef
+
+define KernelPackage/drm-imx-ldb/description
+  Direct Rendering Manager (DRM) support for Freescale i.MX LVDS
+endef
+
+$(eval $(call KernelPackage,drm-imx-ldb))
+
+
+#
+# Video Capture
+#
+
 define KernelPackage/video-core
   SUBMENU:=$(VIDEO_MENU)
   TITLE=Video4Linux support
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt

[OpenWrt-Devel] [OpenWrt-devel] [PATCH] imx6: remove obsolete VENTANA_DTS from profile

2015-11-18 Thread Tim Harvey
The device-tree files are now specified in the image Makefile

Signed-off-by: Tim Harvey 
---
 target/linux/imx6/profiles/120-gateworks.mk | 15 ---
 1 file changed, 15 deletions(-)

diff --git a/target/linux/imx6/profiles/120-gateworks.mk 
b/target/linux/imx6/profiles/120-gateworks.mk
index 7355384..87b5821 100644
--- a/target/linux/imx6/profiles/120-gateworks.mk
+++ b/target/linux/imx6/profiles/120-gateworks.mk
@@ -36,19 +36,4 @@ define Profile/VENTANA/Description
   * mSATA
 endef
 
-VENTANA_DTS:= \
-   imx6dl-gw51xx \
-   imx6dl-gw52xx \
-   imx6dl-gw53xx \
-   imx6dl-gw54xx \
-   imx6dl-gw551x \
-   imx6dl-gw552x \
-   imx6q-gw51xx \
-   imx6q-gw52xx \
-   imx6q-gw53xx \
-   imx6q-gw54xx \
-   imx6q-gw5400-a \
-   imx6q-gw551x \
-   imx6q-gw552x
-
 $(eval $(call Profile,VENTANA))
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 2/5] kernel: add backlight kernel module support

2015-11-19 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
v2:
- no changes

 package/kernel/linux/modules/backlight.mk | 48 +++
 1 file changed, 48 insertions(+)
 create mode 100644 package/kernel/linux/modules/backlight.mk

diff --git a/package/kernel/linux/modules/backlight.mk 
b/package/kernel/linux/modules/backlight.mk
new file mode 100644
index 000..5d3ca70
--- /dev/null
+++ b/package/kernel/linux/modules/backlight.mk
@@ -0,0 +1,48 @@
+#
+# Copyright (C) 2015 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+BACKLIGHT_MENU:=Video Support
+
+define KernelPackage/backlight
+   SUBMENU:=$(BACKLIGHT_MENU)
+   TITLE:=Backlight support
+   KCONFIG:=CONFIG_BACKLIGHT_CLASS_DEVICE=m \
+   CONFIG_BACKLIGHT_LCD_SUPPORT=y \
+   CONFIG_LCD_CLASS_DEVICE=n \
+   CONFIG_BACKLIGHT_PWM=n \
+   CONFIG_BACKLIGHT_GENERIC=n \
+   CONFIG_BACKLIGHT_ADP8860=n \
+   CONFIG_BACKLIGHT_ADP8870
+   FILES:=$(LINUX_DIR)/drivers/video/backlight/backlight.ko
+   AUTOLOAD:=$(call AutoProbe,video backlight)
+endef
+
+define KernelPackage/backlight/description
+   Kernel module for Backlight support.
+endef
+
+$(eval $(call KernelPackage,backlight))
+
+define AddDepends/backlight
+   SUBMENU:=$(BACKLIGHT_MENU)
+   DEPENDS+=kmod-backlight $(1)
+endef
+
+define KernelPackage/backlight-pwm
+   TITLE:=PWM Backlight support
+   DEPENDS:=+kmod-pwm
+   KCONFIG:=CONFIG_BACKLIGHT_PWM=m
+   FILES:=$(LINUX_DIR)/drivers/video/backlight/pwm_bl.ko
+   AUTOLOAD:=$(call AutoProbe,video pwm_bl)
+   $(call AddDepends/backlight)
+endef
+
+define KernelPackage/backlight/backlight-pwm
+   Kernel module for PWM based Backlight support.
+endef
+
+$(eval $(call KernelPackage,backlight-pwm))
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [OpenWrt-devel] [PATCH v2 0/5] Add DRM video output support for IMX6

2015-11-19 Thread Tim Harvey
This series adds DRM based video output support for IMX6 HDMI and LVDS.

The first 3 patches are independent from the others and add some necessary
or useful deps for video display.

The 4th patch adds drm core and drm-imx modules supporting LVDS/HDMI. Note
that currently you need to add modules for both hdmi and lvds for either to
work (not clear why yet).

The final patch removes some left over junk from the Ventana bootscript
that isn't relevant for mainline linux.

These were tested on Gateworks Ventana boards, using the 4.1 kernel
(which I believe is required), and using fbcon, psplash, and gstreamer1 with
fbdevsink output.

Tim Harvey (5):
  kernel: other: add PWM controller support
  kernel: add backlight kernel module support
  kernel: video: add fbcon support
  kernel: video: add DRM core and IMX DRM support for HDMI/LVDS
  imx6: ventana: remove invalid video options from bootscript

 package/kernel/linux/modules/backlight.mk  |  48 
 package/kernel/linux/modules/other.mk  |  36 ++
 package/kernel/linux/modules/video.mk  | 183 -
 target/linux/imx6/image/bootscript-ventana |  76 +---
 4 files changed, 267 insertions(+), 76 deletions(-)
 create mode 100644 package/kernel/linux/modules/backlight.mk

-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v2 1/5] kernel: other: add PWM controller support

2015-11-19 Thread Tim Harvey
This adds basic PWM controller support and support for i.MX

Signed-off-by: Tim Harvey 
---
v2:
- add TARGET_imx6 dep for pwm-imx

 package/kernel/linux/modules/other.mk | 36 +++
 1 file changed, 36 insertions(+)

diff --git a/package/kernel/linux/modules/other.mk 
b/package/kernel/linux/modules/other.mk
index 55fb6f1..6493b91 100644
--- a/package/kernel/linux/modules/other.mk
+++ b/package/kernel/linux/modules/other.mk
@@ -359,6 +359,42 @@ endef
 $(eval $(call KernelPackage,mmc))
 
 
+define KernelPackage/pwm
+  SUBMENU:=$(OTHER_MENU)
+  TITLE:=Pulse-Width Modulation support
+  KCONFIG:= \
+   CONFIG_PWM=y \
+   CONFIG_REGULATOR_PWM=n \
+   CONFIG_PWM_FSL_FTM=n
+endef
+
+define KernelPackage/pwm/description
+ Pulse Width Modulation subsystem.
+endef
+
+$(eval $(call KernelPackage,pwm))
+
+define AddDepends/pwm
+  SUBMENU:=$(OTHER_MENU)
+  DEPENDS+=kmod-pwm $(1)
+endef
+
+define KernelPackage/pwm-imx
+  SUBMENU:=$(OTHER_MENU)
+  TITLE:=IMX Pulse-Width Modulation support
+  KCONFIG:=CONFIG_PWM_IMX
+  FILES:= $(LINUX_DIR)/drivers/pwm/pwm-imx.ko
+  DEPENDS:=@TARGET_imx6
+  AUTOLOAD:=$(call AutoProbe,pwm-imx)
+  $(call AddDepends/pwm)
+endef
+
+define KernelPackage/pwm-imx/description
+ Freescale IMX Pulse Width Modulation support.
+endef
+
+$(eval $(call KernelPackage,pwm-imx))
+
 define KernelPackage/sdhci
   SUBMENU:=$(OTHER_MENU)
   TITLE:=Secure Digital Host Controller Interface support
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 5/5] imx6: ventana: remove invalid video options from bootscript

2015-11-19 Thread Tim Harvey
Removed video related kernel params that are only appropriate for the
Freescale downstream vendor kernel and not appriate for mainline linux.

Signed-off-by: Tim Harvey 
---
 target/linux/imx6/image/bootscript-ventana | 76 +-
 1 file changed, 1 insertion(+), 75 deletions(-)

diff --git a/target/linux/imx6/image/bootscript-ventana 
b/target/linux/imx6/image/bootscript-ventana
index 8c789e5..8775733 100644
--- a/target/linux/imx6/image/bootscript-ventana
+++ b/target/linux/imx6/image/bootscript-ventana
@@ -9,80 +9,6 @@ setenv bootargs console=${console},${baudrate}
 setenv loadaddr 1080
 setenv fdt_addr 1800
 
-# detect displays in the following priority: HDMI, LVDS
-# setenv display to override detection for a single display
-# or setenv video if you want multiple displays
-if test -n "$video" ; then
-  echo "using video config from env: $video"
-  setenv bootargs "${bootargs}" "${video}"
-else
-  if test -n "$display" ; then
-echo "using display from env: $display"
-  elif test -n "$panel" ; then
-echo "using display from env: $panel"
-setenv display "$panel"
-  else
-echo "Detecting displays..."
-i2c dev 2
-if hdmidet ; then
-   echo "  HDMI detected"
-   setenv display "HDMI"
-elif i2c probe 0x04 ; then
-   echo "  Freescale MXC-LVDS1 detected"
-   setenv display "LVDS"
-elif i2c probe 0x14 ; then
-   echo "  DLC800FIGT3 detected"
-   setenv display "LVDS"
-elif i2c probe 0x38 ; then
-   echo "  DLC700JMGT4 detected"
-   setenv display "LVDS"
-fi
-  fi
-
-  # configure displays
-  echo "Configuring kernel bootargs for display(s): $display"
-  for p in ${display}; do
-if itest.s "x${p}" == "xHannstar-XGA" ; then
-   setenv ptype "LVDS"
-elif itest.s "x${p}" == "xDLC700JMGT4" ; then
-   setenv ptype "LVDS"
-elif itest.s "x${p}" == "xDLC800FIGT3" ; then
-   setenv ptype "LVDS"
-elif itest.s "x${p}" == "xLVDS" ; then
-   setenv ptype "LVDS"
-elif itest.s "x${p}" == "xHDMI" ; then
-   setenv ptype "HDMI"
-   test -n "$hdmi" || hdmi=1080p
-   if itest.s "x${hdmi}" == "x1080p" ; then
-   setenv hdmi "1920x1080M@60"
-   elif itest.s "x${hdmi}" == "x720p" ; then
-   setenv hdmi "1280x720M@60"
-   elif itest.s "x${hdmi}" == "x480p" ; then
-   setenv hdmi "720x480M@60"
-   fi
-else
-echo "${p} not supported"
-fi
-
-if itest.s "x${ptype}" == "xLVDS" ; then
-   echo "  mxcfb${nextcon}: LVDS ($p)"
-   setenv bootargs "${bootargs}" 
video=mxcfb${nextcon}:dev=ldb,bpp=32,if=RGB666
-   setexpr nextcon $nextcon + 1
-elif itest.s "x${ptype}" == "xHDMI" ; then
-   echo "  mxcfb${nextcon}: HDMI ($hdmi)"
-   setenv bootargs "${bootargs}" 
video=mxcfb${nextcon}:dev=hdmi,bpp=32,${hdmi},if=RGB24
-   setexpr nextcon $nextcon + 1
-fi
-
-  done
-
-  # disable remaining mxcfb devices
-  while test "4" -ne $nextcon ; do
-   setenv bootargs "${bootargs}" video=mxcfb${nextcon}:off
-   setexpr nextcon $nextcon + 1
-  done
-fi
-
 # detect dtype and bootdev by looking for kernel on media the bootloader
 # has mounted (in order of preference: usb/mmc/sata)
 #
@@ -131,7 +57,7 @@ else
setenv root "root=/dev/${bootdev}"
 fi
 
-setenv bootargs "${bootargs}" "${root}" "${extra}"
+setenv bootargs "${bootargs}" "${root}" "${video}" "${extra}"
 if ${fsload} ${loadaddr} ${bootdir}/uImage; then
if ${fsload} ${fdt_addr} ${bootdir}/${fdt_file}; then
echo Loaded DTB from ${bootdir}/${fdt_file}
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v2 3/5] kernel: video: add fbcon support

2015-11-19 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
v2:
- add fb dependency
- disable unsupported fb's

Signed-off-by: Tim Harvey 
---
 package/kernel/linux/modules/video.mk | 49 ++-
 1 file changed, 48 insertions(+), 1 deletion(-)

diff --git a/package/kernel/linux/modules/video.mk 
b/package/kernel/linux/modules/video.mk
index 3b06a14..ebb911e 100644
--- a/package/kernel/linux/modules/video.mk
+++ b/package/kernel/linux/modules/video.mk
@@ -15,7 +15,10 @@ define KernelPackage/fb
   SUBMENU:=$(VIDEO_MENU)
   TITLE:=Framebuffer support
   DEPENDS:=@DISPLAY_SUPPORT
-  KCONFIG:=CONFIG_FB
+  KCONFIG:= \
+   CONFIG_FB \
+   CONFIG_FB_MXS=n \
+   CONFIG_FB_SM750=n
   FILES:=$(LINUX_DIR)/drivers/video/fbdev/core/fb.ko
   AUTOLOAD:=$(call AutoLoad,06,fb)
 endef
@@ -31,6 +34,50 @@ endef
 
 $(eval $(call KernelPackage,fb))
 
+
+define KernelPackage/fbcon
+  SUBMENU:=$(VIDEO_MENU)
+  TITLE:=Framebuffer Console support
+  DEPENDS:=+kmod-fb
+  KCONFIG:= \
+   CONFIG_FRAMEBUFFER_CONSOLE \
+   CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y \
+   CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y \
+   CONFIG_FONTS=y \
+   CONFIG_FONT_8x8=y \
+   CONFIG_FONT_8x16=y \
+   CONFIG_FONT_6x11=n \
+   CONFIG_FONT_7x14=n \
+   CONFIG_FONT_PEARL_8x8=n \
+   CONFIG_FONT_ACORN_8x8=n \
+   CONFIG_FONT_MINI_4x6=n \
+   CONFIG_FONT_6x10=n \
+   CONFIG_FONT_SUN8x16=n \
+   CONFIG_FONT_SUN12x22=n \
+   CONFIG_FONT_10x18=n \
+   CONFIG_VT=y \
+   CONFIG_CONSOLE_TRANSLATIONS=y \
+   CONFIG_VT_CONSOLE=y \
+   CONFIG_VT_HW_CONSOLE_BINDING=y
+  $(call AddDepends/fb)
+  FILES:= \
+   $(LINUX_DIR)/drivers/video/console/bitblit.ko \
+   $(LINUX_DIR)/drivers/video/console/softcursor.ko \
+   $(LINUX_DIR)/drivers/video/console/fbcon.ko \
+   $(LINUX_DIR)/drivers/video/console/fbcon_rotate.ko \
+   $(LINUX_DIR)/drivers/video/console/fbcon_cw.ko \
+   $(LINUX_DIR)/drivers/video/console/fbcon_ud.ko \
+   $(LINUX_DIR)/drivers/video/console/fbcon_ccw.ko \
+   $(LINUX_DIR)/lib/fonts/font.ko
+  AUTOLOAD:=$(call AutoLoad,94,font softcursor tileblit fbcon_cw fbcon_ud 
fbcon_ccw fbcon_rotate bitblit fbcon)
+endef
+
+define KernelPackage/fbcon/description
+  Kernel support for framebuffer console
+endef
+
+$(eval $(call KernelPackage,fbcon))
+
 define KernelPackage/fb-cfb-fillrect
   SUBMENU:=$(VIDEO_MENU)
   TITLE:=Framebuffer software rectangle filling support
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v2 4/5] kernel: video: add DRM core and IMX DRM support for HDMI/LVDS

2015-11-19 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
v2:
- fixed whitespace
- added TARGET_imx6 to imx6-drm

Signed-off-by: Tim Harvey 
---
 package/kernel/linux/modules/video.mk | 134 ++
 1 file changed, 134 insertions(+)

diff --git a/package/kernel/linux/modules/video.mk 
b/package/kernel/linux/modules/video.mk
index ebb911e..6ed8bd2 100644
--- a/package/kernel/linux/modules/video.mk
+++ b/package/kernel/linux/modules/video.mk
@@ -11,6 +11,10 @@ VIDEO_MENU:=Video Support
 V4L2_DIR=v4l2-core
 V4L2_USB_DIR=usb
 
+#
+# Video Display
+#
+
 define KernelPackage/fb
   SUBMENU:=$(VIDEO_MENU)
   TITLE:=Framebuffer support
@@ -125,6 +129,136 @@ endef
 $(eval $(call KernelPackage,fb-cfb-imgblt))
 
 
+define KernelPackage/drm
+  SUBMENU:=$(VIDEO_MENU)
+  TITLE:=Direct Rendering Manager (DRM) support
+  KCONFIG:=CONFIG_DRM \
+   CONFIG_DRM_LOAD_EDID_FIRMWARE=n \
+   CONFIG_DRM_IMX=n \
+   CONFIG_DRM_PTN3460=n \
+   CONFIG_DRM_PS8622=n \
+   CONFIG_DRM_TDFX=n \
+   CONFIG_DRM_R128=n \
+   CONFIG_DRM_RADEON=n \
+   CONFIG_DRM_NOUVEAU=n \
+   CONFIG_DRM_MGA=n \
+   CONFIG_DRM_VIA=n \
+   CONFIG_DRM_SAVAGE=n \
+   CONFIG_DRM_VGEM=n \
+   CONFIG_DRM_EXYNOS=n \
+   CONFIG_DRM_VMWGFX=n \
+   CONFIG_DRM_UDL=n \
+   CONFIG_DRM_AST=n \
+   CONFIG_DRM_MGAG200=n \
+   CONFIG_DRM_CIRRUS_QEMU=n \
+   CONFIG_DRM_ARMADA=n \
+   CONFIG_DRM_TILCDC=n \
+   CONFIG_DRM_QXL=n \
+   CONFIG_DRM_BOCHS=n \
+   CONFIG_DRM_STI=n \
+   CONFIG_DRM_I2C_ADV7511=n \
+   CONFIG_DRM_I2C_CH7006=n \
+   CONFIG_DRM_I2C_SIL164=n \
+   CONFIG_DRM_I2C_NXP_TDA998X=n
+  FILES:=$(LINUX_DIR)/drivers/gpu/drm/drm.ko
+  AUTOLOAD:=$(call AutoLoad,05,drm)
+endef
+
+define KernelPackage/drm/description
+  Direct Rendering Manager (DRM) core support
+endef
+
+$(eval $(call KernelPackage,drm))
+
+define AddDepends/drm
+  SUBMENU:=$(VIDEO_MENU)
+  DEPENDS+=kmod-drm $(1)
+endef
+
+define KernelPackage/drm-imx
+  TITLE:=Freescale i.MX DRM support
+  DEPENDS:=@TARGET_imx6 +kmod-fb
+  KCONFIG:=CONFIG_DRM_IMX=m \
+   CONFIG_IMX_IPUV3_CORE=m \
+   CONFIG_RESET_CONTROLLER=y \
+   CONFIG_DRM_IMX_IPUV3 \
+   CONFIG_IMX_IPUV3 \
+   CONFIG_DRM_KMS_HELPER \
+   CONFIG_FB_SYS_FILLRECT \
+   CONFIG_FB_SYS_COPYAREA \
+   CONFIG_FB_SYS_IMAGEBLIT \
+   CONFIG_DRM_KMS_FB_HELPER=y \
+   CONFIG_DRM_GEM_CMA_HELPER=y \
+   CONFIG_DRM_KMS_CMA_HELPER=y \
+   CONFIG_DRM_IMX_FB_HELPER \
+   CONFIG_DRM_IMX_PARALLEL_DISPLAY=n \
+   CONFIG_DRM_IMX_TVE=n \
+   CONFIG_DRM_IMX_LDB=n \
+   CONFIG_DRM_IMX_HDMI=n
+  FILES:= \
+   $(LINUX_DIR)/drivers/gpu/drm/imx/imxdrm.ko \
+   $(LINUX_DIR)/drivers/gpu/ipu-v3/imx-ipu-v3.ko \
+   $(LINUX_DIR)/drivers/gpu/drm/imx/imx-ipuv3-crtc.ko \
+   $(LINUX_DIR)/drivers/video/fbdev/core/syscopyarea.ko \
+   $(LINUX_DIR)/drivers/video/fbdev/core/sysfillrect.ko \
+   $(LINUX_DIR)/drivers/video/fbdev/core/sysimgblt.ko \
+   $(LINUX_DIR)/drivers/gpu/drm/drm_kms_helper.ko
+  AUTOLOAD:=$(call AutoLoad,05,imxdrm imx-ipu-v3 imx-ipuv3-crtc)
+  $(call AddDepends/drm)
+endef
+
+define KernelPackage/drm-imx/description
+  Direct Rendering Manager (DRM) support for Freescale i.MX
+endef
+
+$(eval $(call KernelPackage,drm-imx))
+
+define AddDepends/drm-imx
+  SUBMENU:=$(VIDEO_MENU)
+  DEPENDS+=kmod-drm-imx $(1)
+endef
+
+define KernelPackage/drm-imx-hdmi
+  TITLE:=Freescale i.MX HDMI DRM support
+  KCONFIG:=CONFIG_DRM_IMX_HDMI=m
+  FILES:= \
+   $(LINUX_DIR)/drivers/gpu/drm/bridge/dw_hdmi.ko \
+   $(LINUX_DIR)/drivers/gpu/drm/imx/dw_hdmi-imx.ko
+  AUTOLOAD:=$(call AutoLoad,05,dw_hdmi-imx)
+  $(call AddDepends/drm-imx)
+endef
+
+define KernelPackage/drm-imx-hdmi/description
+  Direct Rendering Manager (DRM) support for Freescale i.MX HDMI
+endef
+
+$(eval $(call KernelPackage,drm-imx-hdmi))
+
+define KernelPackage/drm-imx-ldb
+  TITLE:=Freescale i.MX LVDS DRM support
+  DEPENDS:=+kmod-backlight
+  KCONFIG:=CONFIG_DRM_IMX_LDB=m \
+   CONFIG_DRM_PANEL_SIMPLE \
+   CONFIG_DRM_PANEL=y \
+   CONFIG_DRM_PANEL_LD9040=n \
+   CONFIG_DRM_PANEL_S6E8AA0=n
+  FILES:=$(LINUX_DIR)/drivers/gpu/drm/imx/imx-ldb.ko \
+   $(LINUX_DIR)/drivers/gpu/drm/panel/panel-simple.ko
+  AUTOLOAD:=$(call AutoLoad,05,imx-ldb)
+  $(call AddDepends/drm-imx)
+endef
+
+define KernelPackage/drm-imx-ldb/description
+  Direct Rendering Manager (DRM) support for Freescale i.MX LVDS
+endef
+
+$(eval $(call KernelPackage,drm-imx-ldb))
+
+
+#
+# Video Capture
+#
+
 define KernelPackage/video-core
   SUBMENU:=$(VIDEO_MENU)
   TITLE=Video4Linux support
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH v2 1/5] kernel: other: add PWM controller support

2015-11-23 Thread Tim Harvey
On Sun, Nov 22, 2015 at 12:55 AM, John Crispin  wrote:
> Hi Tim,
>
>
>
> On 19/11/2015 18:53, Tim Harvey wrote:
>> This adds basic PWM controller support and support for i.MX
>>
>> Signed-off-by: Tim Harvey 
>> ---
>> v2:
>> - add TARGET_imx6 dep for pwm-imx
>>
>>  package/kernel/linux/modules/other.mk | 36 
>> +++
>>  1 file changed, 36 insertions(+)
>>
>> diff --git a/package/kernel/linux/modules/other.mk 
>> b/package/kernel/linux/modules/other.mk
>> index 55fb6f1..6493b91 100644
>> --- a/package/kernel/linux/modules/other.mk
>> +++ b/package/kernel/linux/modules/other.mk
>
> is there a specific reason not to create a new file for PWM ?

John,

No reason - I wasn't sure what was expected. I did create a new file
for backlight but also noticed other things in other.mk that could be
split out in a cleanup.

Tim
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] imx6: backport some upstream ventana patches

2015-12-02 Thread Tim Harvey
This backports some patches that have been accepted to the upstream kernel
for ventana

Signed-off-by: Tim Harvey 
---
 ...tana-add-UHS-I-support-for-Ventana-boards.patch | 212 +
 .../040-ARM-dts-imx-ventana-add-pwm-nodes.patch| 264 +
 ...ts-imx-ventana-add-spi-support-for-gw52xx.patch |  33 +++
 3 files changed, 509 insertions(+)
 create mode 100644 
target/linux/imx6/patches-4.1/030-ARM-dts-ventana-add-UHS-I-support-for-Ventana-boards.patch
 create mode 100644 
target/linux/imx6/patches-4.1/040-ARM-dts-imx-ventana-add-pwm-nodes.patch
 create mode 100644 
target/linux/imx6/patches-4.1/041-ARM-dts-imx-ventana-add-spi-support-for-gw52xx.patch

diff --git 
a/target/linux/imx6/patches-4.1/030-ARM-dts-ventana-add-UHS-I-support-for-Ventana-boards.patch
 
b/target/linux/imx6/patches-4.1/030-ARM-dts-ventana-add-UHS-I-support-for-Ventana-boards.patch
new file mode 100644
index 000..0165236
--- /dev/null
+++ 
b/target/linux/imx6/patches-4.1/030-ARM-dts-ventana-add-UHS-I-support-for-Ventana-boards.patch
@@ -0,0 +1,212 @@
+--- a/arch/arm/boot/dts/imx6qdl-gw51xx.dtsi
 b/arch/arm/boot/dts/imx6qdl-gw51xx.dtsi
+@@ -323,7 +323,6 @@
+   MX6QDL_PAD_NANDF_WP_B__NAND_WP_B0xb0b1
+   MX6QDL_PAD_NANDF_RB0__NAND_READY_B  0xb000
+   MX6QDL_PAD_NANDF_CS0__NAND_CE0_B0xb0b1
+-  MX6QDL_PAD_NANDF_CS1__NAND_CE1_B0xb0b1
+   MX6QDL_PAD_SD4_CMD__NAND_RE_B   0xb0b1
+   MX6QDL_PAD_SD4_CLK__NAND_WE_B   0xb0b1
+   MX6QDL_PAD_NANDF_D0__NAND_DATA000xb0b1
+--- a/arch/arm/boot/dts/imx6qdl-gw52xx.dtsi
 b/arch/arm/boot/dts/imx6qdl-gw52xx.dtsi
+@@ -386,10 +386,13 @@
+ };
+ 
+ &usdhc3 {
+-  pinctrl-names = "default";
++  pinctrl-names = "default", "state_100mhz", "state_200mhz";
+   pinctrl-0 = <&pinctrl_usdhc3>;
++  pinctrl-1 = <&pinctrl_usdhc3_100mhz>;
++  pinctrl-2 = <&pinctrl_usdhc3_200mhz>;
+   cd-gpios = <&gpio7 0 GPIO_ACTIVE_HIGH>;
+   vmmc-supply = <®_3p3v>;
++  no-1-8-v; /* firmware will remove if board revision supports */
+   status = "okay";
+ };
+ 
+@@ -450,7 +453,6 @@
+   MX6QDL_PAD_NANDF_WP_B__NAND_WP_B0xb0b1
+   MX6QDL_PAD_NANDF_RB0__NAND_READY_B  0xb000
+   MX6QDL_PAD_NANDF_CS0__NAND_CE0_B0xb0b1
+-  MX6QDL_PAD_NANDF_CS1__NAND_CE1_B0xb0b1
+   MX6QDL_PAD_SD4_CMD__NAND_RE_B   0xb0b1
+   MX6QDL_PAD_SD4_CLK__NAND_WE_B   0xb0b1
+   MX6QDL_PAD_NANDF_D0__NAND_DATA000xb0b1
+@@ -552,7 +554,34 @@
+   MX6QDL_PAD_SD3_DAT1__SD3_DATA1  0x17059
+   MX6QDL_PAD_SD3_DAT2__SD3_DATA2  0x17059
+   MX6QDL_PAD_SD3_DAT3__SD3_DATA3  0x17059
+-  MX6QDL_PAD_SD3_DAT5__GPIO7_IO00 0x1b0b0 /* CD */
++  MX6QDL_PAD_SD3_DAT5__GPIO7_IO00 0x17059 
/* CD */
++  MX6QDL_PAD_NANDF_CS1__SD3_VSELECT   0x17059
++  >;
++  };
++
++  pinctrl_usdhc3_100mhz: usdhc3grp100mhz {
++  fsl,pins = <
++  MX6QDL_PAD_SD3_CMD__SD3_CMD 0x170b9
++  MX6QDL_PAD_SD3_CLK__SD3_CLK 0x170b9
++  MX6QDL_PAD_SD3_DAT0__SD3_DATA0  0x170b9
++  MX6QDL_PAD_SD3_DAT1__SD3_DATA1  0x170b9
++  MX6QDL_PAD_SD3_DAT2__SD3_DATA2  0x170b9
++  MX6QDL_PAD_SD3_DAT3__SD3_DATA3  0x170b9
++  MX6QDL_PAD_SD3_DAT5__GPIO7_IO00 0x170b9 
/* CD */
++  MX6QDL_PAD_NANDF_CS1__SD3_VSELECT   0x170b9
++  >;
++  };
++
++  pinctrl_usdhc3_200mhz: usdhc3grp200mhz {
++  fsl,pins = <
++  MX6QDL_PAD_SD3_CMD__SD3_CMD 0x170f9
++  MX6QDL_PAD_SD3_CLK__SD3_CLK 0x100f9
++  MX6QDL_PAD_SD3_DAT0__SD3_DATA0  0x170f9
++  MX6QDL_PAD_SD3_DAT1__SD3_DATA1  0x170f9
++  MX6QDL_PAD_SD3_DAT2__SD3_DATA2  0x170f9
++  MX6QDL_PAD_SD3_DAT3__SD3_DATA3  0x170f9
++  MX6QDL_PAD_SD3_DAT5__GPIO

[OpenWrt-Devel] [PATCH] imx6: add i2c retries for Ventana /dev/i2c-0

2015-12-02 Thread Tim Harvey
On Ventana boards the Gateworks System Controller is the only device on I2C1
(/dev/i2c-0) and it can NAK transfers if it is busy in an ADC loop. Because
this is a multi-function device with several slave addresses it is best to
add retries at the controller level instead of within each slave driver. This
adds a patch that adds 3 retries for i2c transactions only for Ventana boards
and only for I2C1

Signed-off-by: Tim Harvey 
---
 ...x-add-retries-for-NAK-s-on-ventana-boards.patch | 22 ++
 1 file changed, 22 insertions(+)
 create mode 100644 
target/linux/imx6/patches-4.1/207-i2c-imx-add-retries-for-NAK-s-on-ventana-boards.patch

diff --git 
a/target/linux/imx6/patches-4.1/207-i2c-imx-add-retries-for-NAK-s-on-ventana-boards.patch
 
b/target/linux/imx6/patches-4.1/207-i2c-imx-add-retries-for-NAK-s-on-ventana-boards.patch
new file mode 100644
index 000..fa3bf13
--- /dev/null
+++ 
b/target/linux/imx6/patches-4.1/207-i2c-imx-add-retries-for-NAK-s-on-ventana-boards.patch
@@ -0,0 +1,22 @@
+--- a/drivers/i2c/busses/i2c-imx.c
 b/drivers/i2c/busses/i2c-imx.c
+@@ -461,6 +461,8 @@ static int i2c_imx_acked(struct imx_i2c_
+ {
+   if (imx_i2c_read_reg(i2c_imx, IMX_I2C_I2SR) & I2SR_RXAK) {
+   dev_dbg(&i2c_imx->adapter.dev, "<%s> No ACK\n", __func__);
++  if (i2c_imx->adapter.retries)
++  return -EAGAIN;
+   return -EIO;  /* No ACK */
+   }
+ 
+@@ -1010,6 +1012,10 @@ static int i2c_imx_probe(struct platform
+   i2c_imx->adapter.nr = pdev->id;
+   i2c_imx->adapter.dev.of_node= pdev->dev.of_node;
+   i2c_imx->base   = base;
++  if (of_machine_is_compatible("gw,ventana") && phy_addr == 0x021a) {
++  dev_info(&pdev->dev, "Adding retries for Ventana GSC\n");
++  i2c_imx->adapter.retries = 3;
++  }
+ 
+   /* Get I2C clock */
+   i2c_imx->clk = devm_clk_get(&pdev->dev, NULL);
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] imx6: fix device-tree mac address assignment for ventana sky2/eth1

2015-12-02 Thread Tim Harvey
Some Ventana boards have a Marvell sky2 GigE controller as eth1 however
assigning the mac address through device-tree is difficult because the
PCI slot can move around depending on board configuration and slot population.

To work around this we add a patch to the sky2 driver to allow accessing its
mac address via a device-tree alias.

Signed-off-by: Tim Harvey 
---
 .../208-sky2-allow-mac-to-come-from-dt.patch   | 30 ++
 .../209-ARM-imx-ventana-add-sky2-alias.patch   | 24 +
 2 files changed, 54 insertions(+)
 create mode 100644 
target/linux/imx6/patches-4.1/208-sky2-allow-mac-to-come-from-dt.patch
 create mode 100644 
target/linux/imx6/patches-4.1/209-ARM-imx-ventana-add-sky2-alias.patch

diff --git 
a/target/linux/imx6/patches-4.1/208-sky2-allow-mac-to-come-from-dt.patch 
b/target/linux/imx6/patches-4.1/208-sky2-allow-mac-to-come-from-dt.patch
new file mode 100644
index 000..c9c352c
--- /dev/null
+++ b/target/linux/imx6/patches-4.1/208-sky2-allow-mac-to-come-from-dt.patch
@@ -0,0 +1,30 @@
+Index: linux-4.1.6/drivers/net/ethernet/marvell/sky2.c
+===
+--- linux-4.1.6.orig/drivers/net/ethernet/marvell/sky2.c   2015-08-16 
20:52:51.0 -0700
 linux-4.1.6/drivers/net/ethernet/marvell/sky2.c2015-10-05 
12:58:01.805935731 -0700
+@@ -4812,7 +4812,24 @@
+* 1) from device tree data
+* 2) from internal registers set by bootloader
+*/
+-  iap = of_get_mac_address(hw->pdev->dev.of_node);
++
++  iap = NULL;
++  if (IS_ENABLED(CONFIG_OF)) {
++  struct device_node *np;
++  np = of_find_node_by_path("/aliases");
++  if (np) {
++  const char *path = of_get_property(np, "sky2", NULL);
++  if (path)
++  np = of_find_node_by_path(path);
++  if (np)
++  path = of_get_mac_address(np);
++  if (path)
++  iap = (unsigned char *) path;
++  }
++  }
++
++  if (!iap)
++  iap = of_get_mac_address(hw->pdev->dev.of_node);
+   if (iap)
+   memcpy(dev->dev_addr, iap, ETH_ALEN);
+   else
diff --git 
a/target/linux/imx6/patches-4.1/209-ARM-imx-ventana-add-sky2-alias.patch 
b/target/linux/imx6/patches-4.1/209-ARM-imx-ventana-add-sky2-alias.patch
new file mode 100644
index 000..eef81fa
--- /dev/null
+++ b/target/linux/imx6/patches-4.1/209-ARM-imx-ventana-add-sky2-alias.patch
@@ -0,0 +1,24 @@
+Index: linux-4.1.6/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi
+===
+--- linux-4.1.6.orig/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi 2015-10-05 
13:18:30.973900271 -0700
 linux-4.1.6/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi  2015-10-05 
13:21:28.577895147 -0700
+@@ -15,6 +15,7 @@
+   /* these are used by bootloader for disabling nodes */
+   aliases {
+   ethernet1 = ð1;
++  sky2 = ð1;
+   led0 = &led0;
+   led1 = &led1;
+   led2 = &led2;
+Index: linux-4.1.6/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi
+===
+--- linux-4.1.6.orig/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi 2015-10-05 
13:18:30.973900271 -0700
 linux-4.1.6/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi  2015-10-05 
13:20:09.261897435 -0700
+@@ -15,6 +15,7 @@
+   /* these are used by bootloader for disabling nodes */
+   aliases {
+   ethernet1 = ð1;
++  sky2 = ð1;
+   led0 = &led0;
+   led1 = &led1;
+   led2 = &led2;
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] imx6: imx: thermal: use CPU temperature grade info for thresholds

2015-12-03 Thread Tim Harvey
This is a backport of a2291badc355d58ead5c19ae0609468947416040 from thermal-soc
accepted upstream.

The IMX6Q/IMX6DL SoC's have a 2-bit temperature grade stored in OTP. Instead
of assuming 85C for passive cooling threshold and 100C for critical base
these thresholds off the thermal gade max CPU temperature:
 - passive threshold: max - 10C
 - critical threshold: max - 5C

Signed-off-by: Tim Harvey 
---
 ...l-use-cpu-temperature-grade-info-for-thresholds | 112 +
 1 file changed, 112 insertions(+)
 create mode 100644 
target/linux/imx6/patches-4.1/045-imx-thermal-use-cpu-temperature-grade-info-for-thresholds

diff --git 
a/target/linux/imx6/patches-4.1/045-imx-thermal-use-cpu-temperature-grade-info-for-thresholds
 
b/target/linux/imx6/patches-4.1/045-imx-thermal-use-cpu-temperature-grade-info-for-thresholds
new file mode 100644
index 000..44f1b0f
--- /dev/null
+++ 
b/target/linux/imx6/patches-4.1/045-imx-thermal-use-cpu-temperature-grade-info-for-thresholds
@@ -0,0 +1,112 @@
+--- a/drivers/thermal/imx_thermal.c
 b/drivers/thermal/imx_thermal.c
+@@ -55,6 +55,7 @@
+ #define TEMPSENSE2_PANIC_VALUE_SHIFT  16
+ #define TEMPSENSE2_PANIC_VALUE_MASK   0xfff
+ 
++#define OCOTP_MEM00x0480
+ #define OCOTP_ANA10x04e0
+ 
+ /* The driver supports 1 passive trip point and 1 critical trip point */
+@@ -64,12 +65,6 @@ enum imx_thermal_trip {
+   IMX_TRIP_NUM,
+ };
+ 
+-/*
+- * It defines the temperature in millicelsius for passive trip point
+- * that will trigger cooling action when crossed.
+- */
+-#define IMX_TEMP_PASSIVE  85000
+-
+ #define IMX_POLLING_DELAY 2000 /* millisecond */
+ #define IMX_PASSIVE_DELAY 1000
+ 
+@@ -100,12 +95,14 @@ struct imx_thermal_data {
+   u32 c1, c2; /* See formula in imx_get_sensor_data() */
+   unsigned long temp_passive;
+   unsigned long temp_critical;
++  unsigned long temp_max;
+   unsigned long alarm_temp;
+   unsigned long last_temp;
+   bool irq_enabled;
+   int irq;
+   struct clk *thermal_clk;
+   const struct thermal_soc_data *socdata;
++  const char *temp_grade;
+ };
+ 
+ static void imx_set_panic_temp(struct imx_thermal_data *data,
+@@ -286,10 +283,12 @@ static int imx_set_trip_temp(struct ther
+ {
+   struct imx_thermal_data *data = tz->devdata;
+ 
++  /* do not allow changing critical threshold */
+   if (trip == IMX_TRIP_CRITICAL)
+   return -EPERM;
+ 
+-  if (temp > IMX_TEMP_PASSIVE)
++  /* do not allow passive to be set higher than critical */
++  if (temp < 0 || temp > data->temp_critical)
+   return -EINVAL;
+ 
+   data->temp_passive = temp;
+@@ -404,17 +403,39 @@ static int imx_get_sensor_data(struct pl
+   data->c1 = temp64;
+   data->c2 = n1 * data->c1 + 1000 * t1;
+ 
+-  /*
+-   * Set the default passive cooling trip point,
+-   * can be changed from userspace.
+-   */
+-  data->temp_passive = IMX_TEMP_PASSIVE;
++  /* use OTP for thermal grade */
++  ret = regmap_read(map, OCOTP_MEM0, &val);
++  if (ret) {
++  dev_err(&pdev->dev, "failed to read temp grade: %d\n", ret);
++  return ret;
++  }
++
++  /* The maximum die temp is specified by the Temperature Grade */
++  switch ((val >> 6) & 0x3) {
++  case 0: /* Commercial (0 to 95C) */
++  data->temp_grade = "Commercial";
++  data->temp_max = 95000;
++  break;
++  case 1: /* Extended Commercial (-20 to 105C) */
++  data->temp_grade = "Extended Commercial";
++  data->temp_max = 105000;
++  break;
++  case 2: /* Industrial (-40 to 105C) */
++  data->temp_grade = "Industrial";
++  data->temp_max = 105000;
++  break;
++  case 3: /* Automotive (-40 to 125C) */
++  data->temp_grade = "Automotive";
++  data->temp_max = 125000;
++  break;
++  }
+ 
+   /*
+-   * The maximum die temperature set to 20 C higher than
+-   * IMX_TEMP_PASSIVE.
++   * Set the critical trip point at 5C under max
++   * Set the passive trip point at 10C under max (can change via sysfs)
+*/
+-  data->temp_critical = 1000 * 20 + data->temp_passive;
++  data->temp_critical = data->temp_max - (1000 * 5);
++  data->temp_passive = data->temp_max - (1000 * 10);
+ 
+   return 0;
+ }
+@@ -559,6 +580,11 @@ static int imx_thermal_probe(struct plat
+   return ret;
+   }
+ 
++  dev_info(&pdev->dev, "%s CPU temperature grade - max:%ldC"
++   " critical:%ldC passive:%ldC\n", data->temp_grade,
++   data->temp_max / 1000, data->temp_critical / 1000,
++ 

[OpenWrt-Devel] ath10k adhoc working?

2015-12-10 Thread Tim Harvey
Is anyone able to get ath10k to work with adhoc mode?

I noticed that Felix removed the older QCA STA firmware
(firmware-2.bin_999.999.0.636) in r46197 and that was the only
firmware I know of (other than Ben Greear's custom firmware) that
supports adhoc (although it does have some flaws, like not honoring
EEPROM calibration data).

Regards,

Tim

Tim Harvey - Principal Software Engineer
Gateworks Corporation - http://www.gateworks.com/
3026 S. Higuera St. San Luis Obispo CA 93401
805-781-2000
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [OpenWrt-devel] [PATCH v3 0/4] Add DRM video output support for IMX6

2015-12-29 Thread Tim Harvey
This series adds DRM based video output support for IMX6 HDMI and LVDS.

The first 3 patches are independent from the others and add some necessary
or useful deps for video display.

The 4th patch adds drm core and drm-imx modules supporting LVDS/HDMI. Note
that currently you need to add modules for both hdmi and lvds for either to
work (not clear why yet).

These were tested on Gateworks Ventana boards, using the 4.1 and 4.3 kernel
using fbcon, psplash, and gstreamer1 with fbdevsink output.

Tim Harvey (4):
  imx6: add PWM support
  kernel: add backlight kernel module support
  kernel: video: add fbcon support
  kernel: video: add DRM core and IMX DRM support for HDMI/LVDS

 package/kernel/linux/modules/backlight.mk |  49 +++
 package/kernel/linux/modules/video.mk | 220 +-
 target/linux/imx6/config-4.1  |   3 +
 target/linux/imx6/config-4.3  |   3 +
 4 files changed, 274 insertions(+), 1 deletion(-)
 create mode 100644 package/kernel/linux/modules/backlight.mk

-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [OpenWrt-devel] [PATCH v3 2/4] kernel: add backlight kernel module support

2015-12-29 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
v3:
- added support for Linux 4.3 (new driver needs to be disabled by default)
v2:
- no changes

Signed-off-by: Tim Harvey 
---
 package/kernel/linux/modules/backlight.mk | 49 +++
 1 file changed, 49 insertions(+)
 create mode 100644 package/kernel/linux/modules/backlight.mk

diff --git a/package/kernel/linux/modules/backlight.mk 
b/package/kernel/linux/modules/backlight.mk
new file mode 100644
index 000..62aedaa
--- /dev/null
+++ b/package/kernel/linux/modules/backlight.mk
@@ -0,0 +1,49 @@
+#
+# Copyright (C) 2015 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+BACKLIGHT_MENU:=Video Support
+
+define KernelPackage/backlight
+   SUBMENU:=$(BACKLIGHT_MENU)
+   TITLE:=Backlight support
+   KCONFIG:=CONFIG_BACKLIGHT_CLASS_DEVICE=m \
+   CONFIG_BACKLIGHT_LCD_SUPPORT=y \
+   CONFIG_LCD_CLASS_DEVICE=n \
+   CONFIG_BACKLIGHT_PWM=n \
+   CONFIG_BACKLIGHT_GENERIC=n \
+   CONFIG_BACKLIGHT_ADP8860=n \
+   CONFIG_BACKLIGHT_ADP8870=n \
+   CONFIG_BACKLIGHT_PM8941_WLED=n
+   FILES:=$(LINUX_DIR)/drivers/video/backlight/backlight.ko
+   AUTOLOAD:=$(call AutoProbe,video backlight)
+endef
+
+define KernelPackage/backlight/description
+   Kernel module for Backlight support.
+endef
+
+$(eval $(call KernelPackage,backlight))
+
+define AddDepends/backlight
+   SUBMENU:=$(BACKLIGHT_MENU)
+   DEPENDS+=kmod-backlight $(1)
+endef
+
+define KernelPackage/backlight-pwm
+   TITLE:=PWM Backlight support
+   DEPENDS:=+kmod-pwm
+   KCONFIG:=CONFIG_BACKLIGHT_PWM=m
+   FILES:=$(LINUX_DIR)/drivers/video/backlight/pwm_bl.ko
+   AUTOLOAD:=$(call AutoProbe,video pwm_bl)
+   $(call AddDepends/backlight)
+endef
+
+define KernelPackage/backlight/backlight-pwm
+   Kernel module for PWM based Backlight support.
+endef
+
+$(eval $(call KernelPackage,backlight-pwm))
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [OpenWrt-devel] [PATCH v3 3/4] kernel: video: add fbcon support

2015-12-29 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
v3:
- no changes
v2:
- add fb dependency
- disable unsupported fb's

Signed-off-by: Tim Harvey 
---
 package/kernel/linux/modules/video.mk | 49 ++-
 1 file changed, 48 insertions(+), 1 deletion(-)

diff --git a/package/kernel/linux/modules/video.mk 
b/package/kernel/linux/modules/video.mk
index 3b06a14..ebb911e 100644
--- a/package/kernel/linux/modules/video.mk
+++ b/package/kernel/linux/modules/video.mk
@@ -15,7 +15,10 @@ define KernelPackage/fb
   SUBMENU:=$(VIDEO_MENU)
   TITLE:=Framebuffer support
   DEPENDS:=@DISPLAY_SUPPORT
-  KCONFIG:=CONFIG_FB
+  KCONFIG:= \
+   CONFIG_FB \
+   CONFIG_FB_MXS=n \
+   CONFIG_FB_SM750=n
   FILES:=$(LINUX_DIR)/drivers/video/fbdev/core/fb.ko
   AUTOLOAD:=$(call AutoLoad,06,fb)
 endef
@@ -31,6 +34,50 @@ endef
 
 $(eval $(call KernelPackage,fb))
 
+
+define KernelPackage/fbcon
+  SUBMENU:=$(VIDEO_MENU)
+  TITLE:=Framebuffer Console support
+  DEPENDS:=+kmod-fb
+  KCONFIG:= \
+   CONFIG_FRAMEBUFFER_CONSOLE \
+   CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y \
+   CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y \
+   CONFIG_FONTS=y \
+   CONFIG_FONT_8x8=y \
+   CONFIG_FONT_8x16=y \
+   CONFIG_FONT_6x11=n \
+   CONFIG_FONT_7x14=n \
+   CONFIG_FONT_PEARL_8x8=n \
+   CONFIG_FONT_ACORN_8x8=n \
+   CONFIG_FONT_MINI_4x6=n \
+   CONFIG_FONT_6x10=n \
+   CONFIG_FONT_SUN8x16=n \
+   CONFIG_FONT_SUN12x22=n \
+   CONFIG_FONT_10x18=n \
+   CONFIG_VT=y \
+   CONFIG_CONSOLE_TRANSLATIONS=y \
+   CONFIG_VT_CONSOLE=y \
+   CONFIG_VT_HW_CONSOLE_BINDING=y
+  $(call AddDepends/fb)
+  FILES:= \
+   $(LINUX_DIR)/drivers/video/console/bitblit.ko \
+   $(LINUX_DIR)/drivers/video/console/softcursor.ko \
+   $(LINUX_DIR)/drivers/video/console/fbcon.ko \
+   $(LINUX_DIR)/drivers/video/console/fbcon_rotate.ko \
+   $(LINUX_DIR)/drivers/video/console/fbcon_cw.ko \
+   $(LINUX_DIR)/drivers/video/console/fbcon_ud.ko \
+   $(LINUX_DIR)/drivers/video/console/fbcon_ccw.ko \
+   $(LINUX_DIR)/lib/fonts/font.ko
+  AUTOLOAD:=$(call AutoLoad,94,font softcursor tileblit fbcon_cw fbcon_ud 
fbcon_ccw fbcon_rotate bitblit fbcon)
+endef
+
+define KernelPackage/fbcon/description
+  Kernel support for framebuffer console
+endef
+
+$(eval $(call KernelPackage,fbcon))
+
 define KernelPackage/fb-cfb-fillrect
   SUBMENU:=$(VIDEO_MENU)
   TITLE:=Framebuffer software rectangle filling support
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [OpenWrt-devel] [PATCH v3 1/4] imx6: add PWM support

2015-12-29 Thread Tim Harvey
Adds ~2KB to kernel, likely not worth creating modules for

Signed-off-by: Tim Harvey 
---
v3: include static in kernel vs module options (very small)
---
 target/linux/imx6/config-4.1 | 3 +++
 target/linux/imx6/config-4.3 | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/target/linux/imx6/config-4.1 b/target/linux/imx6/config-4.1
index 52544a7..60b6b51 100644
--- a/target/linux/imx6/config-4.1
+++ b/target/linux/imx6/config-4.1
@@ -302,6 +302,9 @@ CONFIG_PL310_ERRATA_769419=y
 CONFIG_PM_OPP=y
 CONFIG_PPS=y
 CONFIG_PTP_1588_CLOCK=y
+CONFIG_PWM=y
+CONFIG_PWM_IMX=y
+CONFIG_PWM_SYSFS=y
 CONFIG_RAS=y
 CONFIG_RATIONAL=y
 CONFIG_RCU_STALL_COMMON=y
diff --git a/target/linux/imx6/config-4.3 b/target/linux/imx6/config-4.3
index ae4f797..6c820d0 100644
--- a/target/linux/imx6/config-4.3
+++ b/target/linux/imx6/config-4.3
@@ -314,6 +314,9 @@ CONFIG_PL310_ERRATA_769419=y
 CONFIG_PM_OPP=y
 CONFIG_PPS=y
 CONFIG_PTP_1588_CLOCK=y
+CONFIG_PWM=y
+CONFIG_PWM_IMX=y
+CONFIG_PWM_SYSFS=y
 CONFIG_RAS=y
 CONFIG_RATIONAL=y
 CONFIG_RCU_STALL_COMMON=y
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [OpenWrt-devel] [PATCH v3 4/4] kernel: video: add DRM core and IMX DRM support for HDMI/LVDS

2015-12-29 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
v3:
- updated for Linux 4.3
v2:
- fixed whitespace
- added TARGET_imx6 to imx6-drm

Signed-off-by: Tim Harvey 
---
 package/kernel/linux/modules/video.mk | 171 ++
 1 file changed, 171 insertions(+)

diff --git a/package/kernel/linux/modules/video.mk 
b/package/kernel/linux/modules/video.mk
index ebb911e..0a0fe8b 100644
--- a/package/kernel/linux/modules/video.mk
+++ b/package/kernel/linux/modules/video.mk
@@ -11,6 +11,10 @@ VIDEO_MENU:=Video Support
 V4L2_DIR=v4l2-core
 V4L2_USB_DIR=usb
 
+#
+# Video Display
+#
+
 define KernelPackage/fb
   SUBMENU:=$(VIDEO_MENU)
   TITLE:=Framebuffer support
@@ -109,6 +113,10 @@ endef
 
 $(eval $(call KernelPackage,fb-cfb-copyarea))
 
+define AddDepends/fb-cfb-copyarea
+  DEPENDS+=kmod-fb-cfb-copyarea $(1)
+endef
+
 define KernelPackage/fb-cfb-imgblt
   SUBMENU:=$(VIDEO_MENU)
   TITLE:=Framebuffer software image blit support
@@ -124,6 +132,169 @@ endef
 
 $(eval $(call KernelPackage,fb-cfb-imgblt))
 
+define AddDepends/fb-cfb-imgblt
+  DEPENDS+=kmod-fb-cfb-imgblt $(1)
+endef
+
+
+define KernelPackage/fb-sys-fops
+  SUBMENU:=$(VIDEO_MENU)
+  TITLE:=Framebuffer software sys ops support
+  DEPENDS:=+kmod-fb
+  KCONFIG:=CONFIG_FB_SYS_FOPS
+  FILES:=$(LINUX_DIR)/drivers/video/fbdev/core/fb_sys_fops.ko
+  AUTOLOAD:=$(call AutoLoad,07,fbsysfops)
+endef
+
+define KernelPackage/fb-sys-fops/description
+ Kernel support for framebuffer sys ops
+endef
+
+$(eval $(call KernelPackage,fb-sys-fops))
+
+define AddDepends/fb-sys-fops
+  DEPENDS+=kmod-fb-sys-fops $(1)
+endef
+
+
+define KernelPackage/drm
+  SUBMENU:=$(VIDEO_MENU)
+  TITLE:=Direct Rendering Manager (DRM) support
+  KCONFIG:=CONFIG_DRM \
+   CONFIG_DRM_FBDEV_EMULATION=n \
+   CONFIG_DRM_LOAD_EDID_FIRMWARE=n \
+   CONFIG_DRM_IMX=n \
+   CONFIG_DRM_PTN3460=n \
+   CONFIG_DRM_PS8622=n \
+   CONFIG_DRM_TDFX=n \
+   CONFIG_DRM_R128=n \
+   CONFIG_DRM_RADEON=n \
+   CONFIG_DRM_AMDGPU=n \
+   CONFIG_DRM_NOUVEAU=n \
+   CONFIG_DRM_MGA=n \
+   CONFIG_DRM_VIA=n \
+   CONFIG_DRM_SAVAGE=n \
+   CONFIG_DRM_VGEM=n \
+   CONFIG_DRM_EXYNOS=n \
+   CONFIG_DRM_VMWGFX=n \
+   CONFIG_DRM_UDL=n \
+   CONFIG_DRM_AST=n \
+   CONFIG_DRM_MGAG200=n \
+   CONFIG_DRM_CIRRUS_QEMU=n \
+   CONFIG_DRM_ARMADA=n \
+   CONFIG_DRM_TILCDC=n \
+   CONFIG_DRM_QXL=n \
+   CONFIG_DRM_BOCHS=n \
+   CONFIG_DRM_FSL_DCU=n \
+   CONFIG_DRM_STI=n \
+   CONFIG_DRM_NXP_PTN3460=n \
+   CONFIG_DRM_PARADE_PS8622=n \
+   CONFIG_DRM_I2C_ADV7511=n \
+   CONFIG_DRM_I2C_CH7006=n \
+   CONFIG_DRM_I2C_SIL164=n \
+   CONFIG_DRM_I2C_NXP_TDA998X=n
+  FILES:=$(LINUX_DIR)/drivers/gpu/drm/drm.ko
+  AUTOLOAD:=$(call AutoLoad,05,drm)
+endef
+
+define KernelPackage/drm/description
+  Direct Rendering Manager (DRM) core support
+endef
+
+$(eval $(call KernelPackage,drm))
+
+define AddDepends/drm
+  DEPENDS+=kmod-drm $(1)
+endef
+
+define KernelPackage/drm-imx
+  TITLE:=Freescale i.MX DRM support
+  DEPENDS:=@TARGET_imx6 +LINUX_4_3:kmod-fb kmod-fb-cfb-copyarea 
+LINUX_4_3:kmod-fb-cfb-imgblt +LINUX_4_3:kmod-fb-cfb-fillrect 
+LINUX_4_3:kmod-fb-sys-fops
+  #DEPENDS:=@TARGET_imx6 +kmod-fb
+  KCONFIG:=CONFIG_DRM_IMX=m \
+   CONFIG_DRM_FBDEV_EMULATION=y \
+   CONFIG_IMX_IPUV3_CORE=m \
+   CONFIG_RESET_CONTROLLER=y \
+   CONFIG_DRM_IMX_IPUV3 \
+   CONFIG_IMX_IPUV3 \
+   CONFIG_DRM_KMS_HELPER \
+   CONFIG_FB_SYS_FILLRECT \
+   CONFIG_FB_SYS_COPYAREA \
+   CONFIG_FB_SYS_IMAGEBLIT \
+   CONFIG_DRM_KMS_FB_HELPER=y \
+   CONFIG_DRM_GEM_CMA_HELPER=y \
+   CONFIG_DRM_KMS_CMA_HELPER=y \
+   CONFIG_DRM_IMX_FB_HELPER \
+   CONFIG_DRM_IMX_PARALLEL_DISPLAY=n \
+   CONFIG_DRM_IMX_TVE=n \
+   CONFIG_DRM_IMX_LDB=n \
+   CONFIG_DRM_IMX_HDMI=n
+  FILES:= \
+   $(LINUX_DIR)/drivers/gpu/drm/imx/imxdrm.ko \
+   $(LINUX_DIR)/drivers/gpu/ipu-v3/imx-ipu-v3.ko \
+   $(LINUX_DIR)/drivers/gpu/drm/imx/imx-ipuv3-crtc.ko \
+   $(LINUX_DIR)/drivers/video/fbdev/core/syscopyarea.ko \
+   $(LINUX_DIR)/drivers/video/fbdev/core/sysfillrect.ko \
+   $(LINUX_DIR)/drivers/video/fbdev/core/sysimgblt.ko \
+   $(LINUX_DIR)/drivers/gpu/drm/drm_kms_helper.ko
+  AUTOLOAD:=$(call AutoLoad,05,imxdrm imx-ipu-v3 imx-ipuv3-crtc)
+  $(call AddDepends/drm)
+endef
+
+define KernelPackage/drm-imx/description
+  Direct Rendering Manager (DRM) support for Freescale i.MX
+endef
+
+$(eval $(call KernelPackage,drm-imx))
+
+define AddDepends/drm-imx
+  SUBMENU:=$(VIDEO_MENU)
+  DEPENDS+=kmod-drm-imx $(1)
+endef
+
+define KernelPackage/drm-imx-hdmi
+  TITLE:=Freescale i.MX HDMI DRM support
+  KCONFIG:=CONFIG_DRM_IMX_HDMI=m
+  FILES:= \
+   $(LINUX_DIR)/drivers/gpu/drm/bridge/dw_hdmi.ko \
+   $(LINUX_DIR)/drivers/gpu/drm/imx/dw_hdmi-imx.ko
+  AUTOLOAD:=$(call AutoLoad,05,dw_hdmi-imx)
+  $(call AddDepends/drm-imx)
+endef
+
+define KernelPackage/drm-imx-hdmi/description

[OpenWrt-Devel] [PATCH] imx6: backport upstream patch to fix pwm pinmux for GW51xx/GW52xx/GW53xx

2016-01-08 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
 ...ventana-fix-PWM-pinmux-for-Ventana-boards.patch | 69 ++
 1 file changed, 69 insertions(+)
 create mode 100644 
target/linux/imx6/patches-4.3/042-ARM-dts-imx-ventana-fix-PWM-pinmux-for-Ventana-boards.patch

diff --git 
a/target/linux/imx6/patches-4.3/042-ARM-dts-imx-ventana-fix-PWM-pinmux-for-Ventana-boards.patch
 
b/target/linux/imx6/patches-4.3/042-ARM-dts-imx-ventana-fix-PWM-pinmux-for-Ventana-boards.patch
new file mode 100644
index 000..1493787
--- /dev/null
+++ 
b/target/linux/imx6/patches-4.3/042-ARM-dts-imx-ventana-fix-PWM-pinmux-for-Ventana-boards.patch
@@ -0,0 +1,69 @@
+commit 3371600cc36d2a6c19cc985660a21c6830f7e7cd
+Author: Tim Harvey 
+Date:   Thu Jan 7 09:03:03 2016 -0800
+
+ARM: dts: imx: ventana: fix PWM pinmux for Ventana boards
+
+Fix some invalid pwm pinmux configurations.
+
+Signed-off-by: Tim Harvey 
+
+diff --git a/arch/arm/boot/dts/imx6qdl-gw51xx.dtsi 
b/arch/arm/boot/dts/imx6qdl-gw51xx.dtsi
+index fb0abd6..2e2cd5c 100644
+--- a/arch/arm/boot/dts/imx6qdl-gw51xx.dtsi
 b/arch/arm/boot/dts/imx6qdl-gw51xx.dtsi
+@@ -320,13 +320,13 @@
+ 
+   pinctrl_pwm3: pwm3grp {
+   fsl,pins = <
+-  MX6QDL_PAD_SD4_DAT1__PWM3_OUT   0x1b0b1
++  MX6QDL_PAD_SD1_DAT1__PWM3_OUT   0x1b0b1
+   >;
+   };
+ 
+   pinctrl_pwm4: pwm4grp {
+   fsl,pins = <
+-  MX6QDL_PAD_SD4_DAT2__PWM4_OUT   0x1b0b1
++  MX6QDL_PAD_SD1_CMD__PWM4_OUT0x1b0b1
+   >;
+   };
+ 
+diff --git a/arch/arm/boot/dts/imx6qdl-gw52xx.dtsi 
b/arch/arm/boot/dts/imx6qdl-gw52xx.dtsi
+index 7fc45a4..7172e11 100644
+--- a/arch/arm/boot/dts/imx6qdl-gw52xx.dtsi
 b/arch/arm/boot/dts/imx6qdl-gw52xx.dtsi
+@@ -473,7 +473,7 @@
+ 
+   pinctrl_pwm3: pwm3grp {
+   fsl,pins = <
+-  MX6QDL_PAD_SD4_DAT1__PWM3_OUT   0x1b0b1
++  MX6QDL_PAD_SD1_DAT1__PWM3_OUT   0x1b0b1
+   >;
+   };
+ 
+diff --git a/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi 
b/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi
+index c37f89d..8097d6a 100644
+--- a/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi
 b/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi
+@@ -462,7 +462,7 @@
+ 
+   pinctrl_pwm3: pwm3grp {
+   fsl,pins = <
+-  MX6QDL_PAD_SD4_DAT1__PWM3_OUT   0x1b0b1
++  MX6QDL_PAD_SD1_DAT1__PWM3_OUT   0x1b0b1
+   >;
+   };
+ 
+diff --git a/arch/arm/boot/dts/imx6qdl-gw552x.dtsi 
b/arch/arm/boot/dts/imx6qdl-gw552x.dtsi
+index cca39f1..f27f184 100644
+--- a/arch/arm/boot/dts/imx6qdl-gw552x.dtsi
 b/arch/arm/boot/dts/imx6qdl-gw552x.dtsi
+@@ -262,7 +262,7 @@
+ 
+   pinctrl_pwm3: pwm3grp {
+   fsl,pins = <
+-  MX6QDL_PAD_SD4_DAT1__PWM3_OUT   0x1b0b1
++  MX6QDL_PAD_SD1_DAT1__PWM3_OUT   0x1b0b1
+   >;
+   };
+ 
-- 
1.9.1
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] imx6: fix upstream patch name

2016-01-08 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
 ...llow-HDMI-and-LVDS-to-work-simultaneously.patch | 76 ++
 ...mx-ventana-fix-GW53xx-GW54xx-lvds-channel.patch | 76 --
 2 files changed, 76 insertions(+), 76 deletions(-)
 create mode 100644 
target/linux/imx6/patches-4.3/037-ARM-dts-imx-ventana-Allow-HDMI-and-LVDS-to-work-simultaneously.patch
 delete mode 100644 
target/linux/imx6/patches-4.3/037-ARM-dts-imx-ventana-fix-GW53xx-GW54xx-lvds-channel.patch

diff --git 
a/target/linux/imx6/patches-4.3/037-ARM-dts-imx-ventana-Allow-HDMI-and-LVDS-to-work-simultaneously.patch
 
b/target/linux/imx6/patches-4.3/037-ARM-dts-imx-ventana-Allow-HDMI-and-LVDS-to-work-simultaneously.patch
new file mode 100644
index 000..768648e
--- /dev/null
+++ 
b/target/linux/imx6/patches-4.3/037-ARM-dts-imx-ventana-Allow-HDMI-and-LVDS-to-work-simultaneously.patch
@@ -0,0 +1,76 @@
+From d86b202436b6f3111c4c37b8701daa0764d2ca55 Mon Sep 17 00:00:00 2001
+From: Tim Harvey 
+Date: Thu, 5 Nov 2015 11:10:00 -0800
+Subject: [PATCH 3/3] ARM: dts: imx: ventana: Allow HDMI and LVDS to work
+ simultaneously
+
+Currently it is not possible to have HDMI and LVDS working simultaneously,
+because both ports try to use PLL5.
+
+Move the LVDS clock parent to PLL3_USB_OTG, so that HDMI and LVDS can be
+driven from independent sources.
+
+With this change the LDB pixel clock goes to 68.57 MHz, which is still
+within the valid range for the displays supported by the Ventana boards.
+
+Signed-off-by: Tim Harvey 
+---
+ arch/arm/boot/dts/imx6qdl-gw52xx.dtsi | 7 +++
+ arch/arm/boot/dts/imx6qdl-gw53xx.dtsi | 7 +++
+ arch/arm/boot/dts/imx6qdl-gw54xx.dtsi | 7 +++
+ 3 files changed, 21 insertions(+)
+
+Index: linux-4.3/arch/arm/boot/dts/imx6qdl-gw52xx.dtsi
+===
+--- linux-4.3.orig/arch/arm/boot/dts/imx6qdl-gw52xx.dtsi   2015-11-01 
16:05:25.0 -0800
 linux-4.3/arch/arm/boot/dts/imx6qdl-gw52xx.dtsi2015-12-18 
10:43:32.0 -0800
+@@ -151,6 +151,13 @@
+   status = "okay";
+ };
+ 
++&clks {
++  assigned-clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>,
++<&clks IMX6QDL_CLK_LDB_DI1_SEL>;
++  assigned-clock-parents = <&clks IMX6QDL_CLK_PLL3_USB_OTG>,
++<&clks IMX6QDL_CLK_PLL3_USB_OTG>;
++};
++
+ &fec {
+   pinctrl-names = "default";
+   pinctrl-0 = <&pinctrl_enet>;
+Index: linux-4.3/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi
+===
+--- linux-4.3.orig/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi   2015-12-18 
10:39:44.867158318 -0800
 linux-4.3/arch/arm/boot/dts/imx6qdl-gw53xx.dtsi2015-12-18 
10:43:32.0 -0800
+@@ -152,6 +152,13 @@
+   status = "okay";
+ };
+ 
++&clks {
++  assigned-clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>,
++<&clks IMX6QDL_CLK_LDB_DI1_SEL>;
++  assigned-clock-parents = <&clks IMX6QDL_CLK_PLL3_USB_OTG>,
++<&clks IMX6QDL_CLK_PLL3_USB_OTG>;
++};
++
+ &fec {
+   pinctrl-names = "default";
+   pinctrl-0 = <&pinctrl_enet>;
+Index: linux-4.3/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi
+===
+--- linux-4.3.orig/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi   2015-12-18 
10:39:44.871158318 -0800
 linux-4.3/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi2015-12-18 
10:43:32.0 -0800
+@@ -142,6 +142,13 @@
+   status = "okay";
+ };
+ 
++&clks {
++  assigned-clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>,
++<&clks IMX6QDL_CLK_LDB_DI1_SEL>;
++  assigned-clock-parents = <&clks IMX6QDL_CLK_PLL3_USB_OTG>,
++<&clks IMX6QDL_CLK_PLL3_USB_OTG>;
++};
++
+ &fec {
+   pinctrl-names = "default";
+   pinctrl-0 = <&pinctrl_enet>;
diff --git 
a/target/linux/imx6/patches-4.3/037-ARM-dts-imx-ventana-fix-GW53xx-GW54xx-lvds-channel.patch
 
b/target/linux/imx6/patches-4.3/037-ARM-dts-imx-ventana-fix-GW53xx-GW54xx-lvds-channel.patch
deleted file mode 100644
index 768648e..000
--- 
a/target/linux/imx6/patches-4.3/037-ARM-dts-imx-ventana-fix-GW53xx-GW54xx-lvds-channel.patch
+++ /dev/null
@@ -1,76 +0,0 @@
-From d86b202436b6f3111c4c37b8701daa0764d2ca55 Mon Sep 17 00:00:00 2001
-From: Tim Harvey 
-Date: Thu, 5 Nov 2015 11:10:00 -0800
-Subject: [PATCH 3/3] ARM: dts: imx: ventana: Allow HDMI and LVDS to work
- simultaneously
-
-Currently it is not possible to have HDMI and LVDS working simultaneously,
-because both ports try to use PLL5.
-
-Move the LVDS clock parent to PLL3_USB_OTG, so that HDMI and LVDS can be
-driven from independent sources.
-
-With this change the LDB pixel clock goes to 68.57 MHz, which is stil

[OpenWrt-Devel] bluez 5.38 bluetoothd and/or bluetoothctl not working

2017-01-16 Thread Tim Harvey
Anyone using bluez on LEDE/OpenWrt that could tell me what could be
wrong with the following?

I'm using the following:
- imx6 based board with 4.4 kernel
- CSR 4.0 USB HCI supported by btusb via kmod-bluetooth package
- lede master
- btusb
- bluez-{daemon,examples,libs,utils} 5.38-1 from packages feed

root@lede:/# bluetoothctl
[bluetooth]# [   45.980509] usb 1-1.4: new full-speed USB device
number 3 using ci_hdrc
[NEW] Controller 00:15:83:6B:E2:BD BlueZ 5.38 [default]
[bluetooth]# list
Controller 00:15:83:6B:E2:BD BlueZ 5.38 [default]
[bluetooth]# show 00:15:83:6B:E2:BD
Controller 00:15:83:6B:E2:BD
Name: BlueZ 5.38
Alias: BlueZ 5.38
Class: 0x00
Powered: no
Discoverable: no
Pairable: yes
UUID: Generic Attribute Profile (1801--1000-8000-00805f9b34fb)
UUID: A/V Remote Control(110e--1000-8000-00805f9b34fb)
UUID: PnP Information   (1200--1000-8000-00805f9b34fb)
UUID: Generic Access Profile(1800--1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (110c--1000-8000-00805f9b34fb)
Modalias: usb:v1D6Bp0246d0526
Discovering: no
[bluetooth]# select 00:15:83:6B:E2:BD
[bluetooth]# show 00:15:83:6B:E2:BD
Controller 00:15:83:6B:E2:BD
Name: BlueZ 5.38
Alias: BlueZ 5.38
Class: 0x00
Powered: no
Discoverable: no
Pairable: yes
UUID: Generic Attribute Profile (1801--1000-8000-00805f9b34fb)
UUID: A/V Remote Control(110e--1000-8000-00805f9b34fb)
UUID: PnP Information   (1200--1000-8000-00805f9b34fb)
UUID: Generic Access Profile(1800--1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (110c--1000-8000-00805f9b34fb)
Modalias: usb:v1D6Bp0246d0526
Discovering: no
[bluetooth]# power on
Failed to set power on: org.freedesktop.DBus.Error.AccessDenied
[bluetooth]# show 00:15:83:6B:E2:BD
Controller 00:15:83:6B:E2:BD
Name: BlueZ 5.38
Alias: BlueZ 5.38
Class: 0x00
Powered: no
Discoverable: no
Pairable: yes
UUID: Generic Attribute Profile (1801--1000-8000-00805f9b34fb)
UUID: A/V Remote Control(110e--1000-8000-00805f9b34fb)
UUID: PnP Information   (1200--1000-8000-00805f9b34fb)
UUID: Generic Access Profile(1800--1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (110c--1000-8000-00805f9b34fb)
Modalias: usb:v1D6Bp0246d0526
Discovering: no
[bluetooth]# scan on
Failed to start discovery: org.freedesktop.DBus.Error.AccessDenied

I can enable and scan devices using 'hciconfig hci0 up; hcitool scan'.

regards,

Tim
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] kernel/modules/other: disable Nokia BT UART

2018-01-23 Thread Tim Harvey
disable the Nokia BT UART present on Nikia N9, N900 & N950 added in 4.12.

Signed-off-by: Tim Harvey 
---
 package/kernel/linux/modules/other.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/kernel/linux/modules/other.mk 
b/package/kernel/linux/modules/other.mk
index 1c7869e..1655c14 100644
--- a/package/kernel/linux/modules/other.mk
+++ b/package/kernel/linux/modules/other.mk
@@ -55,6 +55,7 @@ define KernelPackage/bluetooth
CONFIG_BT_HCIUART_BCM=n \
CONFIG_BT_HCIUART_INTEL=n \
CONFIG_BT_HCIUART_H4 \
+   CONFIG_BT_HCIUART_NOKIA=n \
CONFIG_BT_HIDP \
CONFIG_HID_SUPPORT=y
   $(call AddDepends/rfkill)
-- 
2.7.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] add support for OCTEON TX target

2018-01-23 Thread Tim Harvey
The Cavium OCTEON TX is an ARM 64-bit SoC leveraging CPU cores and
periperhals from the Cavium ThunderX SoC.

This initial support provides a 4.14 kernel and kernel+initramfs that is
bootable on the Gateworks Newport GW630x as well as the Cavium sff8104
reference board.

Signed-off-by: Tim Harvey 
---
 target/linux/octeontx/Makefile |  27 +
 .../octeontx/base-files/etc/board.d/02_network |  18 +
 target/linux/octeontx/base-files/etc/inittab   |   5 +
 target/linux/octeontx/base-files/lib/octeontx.sh   |  43 ++
 target/linux/octeontx/config-4.14  | 670 +
 target/linux/octeontx/image/Makefile   |  21 +
 ...x-add-support-for-rgmii-internal-delay-mo.patch | 148 +
 ...hunderx-workaround-BGX-TX-Underflow-issue.patch | 117 
 8 files changed, 1049 insertions(+)
 create mode 100644 target/linux/octeontx/Makefile
 create mode 100644 target/linux/octeontx/base-files/etc/board.d/02_network
 create mode 100644 target/linux/octeontx/base-files/etc/inittab
 create mode 100644 target/linux/octeontx/base-files/lib/octeontx.sh
 create mode 100644 target/linux/octeontx/config-4.14
 create mode 100644 target/linux/octeontx/image/Makefile
 create mode 100644 
target/linux/octeontx/patches-4.14/0001-net-thunderx-add-support-for-rgmii-internal-delay-mo.patch
 create mode 100644 
target/linux/octeontx/patches-4.14/0001-net-thunderx-workaround-BGX-TX-Underflow-issue.patch

diff --git a/target/linux/octeontx/Makefile b/target/linux/octeontx/Makefile
new file mode 100644
index 000..bbe8149
--- /dev/null
+++ b/target/linux/octeontx/Makefile
@@ -0,0 +1,27 @@
+#
+# Copyright (C) 2018 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+include $(TOPDIR)/rules.mk
+
+ARCH:=aarch64
+BOARD:=octeontx
+BOARDNAME:=Octeon-TX
+FEATURES:=targz pcie gpio rtc usb
+CFLAGS:=-Os -pipe -fno-caller-saves
+
+MAINTAINER:=Tim Harvey 
+
+KERNEL_PATCHVER:=4.14
+
+define Target/Description
+   Build images for Octeon-TX CN80XX/CN81XX based boards
+endef
+
+include $(INCLUDE_DIR)/target.mk
+
+KERNELNAME:=Image
+
+$(eval $(call BuildTarget))
diff --git a/target/linux/octeontx/base-files/etc/board.d/02_network 
b/target/linux/octeontx/base-files/etc/board.d/02_network
new file mode 100644
index 000..3ad5e85
--- /dev/null
+++ b/target/linux/octeontx/base-files/etc/board.d/02_network
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# Copyright (C) 2018 OpenWrt.org
+#
+
+. ./lib/functions/uci-defaults.sh
+. ./lib/octeontx.sh
+
+board=$(octeontx_board_name)
+
+board_config_update
+
+case "$board" in
+esac
+
+board_config_flush
+
+exit 0
diff --git a/target/linux/octeontx/base-files/etc/inittab 
b/target/linux/octeontx/base-files/etc/inittab
new file mode 100644
index 000..be235d8
--- /dev/null
+++ b/target/linux/octeontx/base-files/etc/inittab
@@ -0,0 +1,5 @@
+::sysinit:/etc/init.d/rcS S boot
+::shutdown:/etc/init.d/rcS K shutdown
+tts/0::askfirst:/usr/libexec/login.sh
+ttyAMA0::askfirst:/usr/libexec/login.sh
+tty1::askfirst:/usr/libexec/login.sh
diff --git a/target/linux/octeontx/base-files/lib/octeontx.sh 
b/target/linux/octeontx/base-files/lib/octeontx.sh
new file mode 100644
index 000..b6335f8
--- /dev/null
+++ b/target/linux/octeontx/base-files/lib/octeontx.sh
@@ -0,0 +1,43 @@
+#!/bin/sh
+#
+# Copyright (C) 2018 OpenWrt.org
+#
+
+octeontx_board_detect() {
+   local machine
+   local name
+
+   machine=$(cat /proc/device-tree/model)
+   board=$(cat /proc/device-tree/board)
+
+   case "$machine" in
+   "Cavium ThunderX CN81XX board")
+   name="cn81xx"
+   ;;
+
+   *)
+   name="generic"
+   ;;
+   esac
+
+   case "$board" in
+   GW630*)
+   name="gw630x"
+   ;;
+   esac
+
+   [ -e "/tmp/sysinfo" ] || mkdir -p "/tmp/sysinfo"
+
+   echo "$name" > /tmp/sysinfo/board_name
+   echo "$machine" > /tmp/sysinfo/model
+}
+
+octeontx_board_name() {
+   local name
+
+   [ -f /tmp/sysinfo/board_name ] || octeontx_board_detect
+   [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
+   [ -z "$name" ] && name="unknown"
+
+   echo "$name"
+}
diff --git a/target/linux/octeontx/config-4.14 
b/target/linux/octeontx/config-4.14
new file mode 100644
index 000..97d0cc6
--- /dev/null
+++ b/target/linux/octeontx/config-4.14
@@ -0,0 +1,670 @@
+CONFIG_64BIT=y
+# CONFIG_ACPI is not set
+CONFIG_ARCH_CLOCKSOURCE_DATA=y
+CONFIG_ARCH_DMA_ADDR_T_64BIT=y
+CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y
+CONFIG_ARCH_HAS_DEBUG_VIRTUAL=y
+CONFIG_ARCH_HAS_ELF_RANDOMIZE=y
+CONFIG_ARCH_HAS_FORTIFY_SOURCE=y
+CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
+CONFIG_ARCH_HAS_GIGANTIC_PAGE=y
+CONFIG_ARCH_HAS_HOLES_MEMORYM

Re: [OpenWrt-Devel] [PATCH] kernel/modules/other: disable Nokia BT UART

2018-01-24 Thread Tim Harvey
On Wed, Jan 24, 2018 at 7:18 PM, txt.file  wrote:
> There is a typo in the company name in the description.
>

Oops - easy to fix. I can submit a followup.

> Also I would like to know why it is removed. And what changed between
> Linux 4.11 and 4.12 regarding the Nokia N900.
>

CONFIG_BT_HCIUART_NOKIA didn't exist prior to 4.12. It was added in
4.12 so if you are using a target with a 4.14 kernel (which OpenWrt
now supports) and enable bluetooth you get prompted for this kernel
option because its not set either way in the bluetooth package. I
disable it here simply because INTEL and BCM is also disabled.

Regards,

Tim
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [LEDE-DEV][PATCH 0/4] imx6: update to Linux 4.14

2018-02-01 Thread Tim Harvey
Tested on a Gateworks GW54xx

Tim Harvey (4):
  kernel: add missing config symbols
  imx6: add support for Linux 4.14
  imx6: switch to kernel 4.14
  imx6: remove support for 4.9

 target/linux/generic/config-4.14   |   9 +-
 target/linux/imx6/Makefile |   2 +-
 target/linux/imx6/config-4.14  | 526 +
 target/linux/imx6/config-4.9   | 497 
 .../files-4.9/arch/arm/boot/dts/imx6dl-gw5904.dts  |  19 -
 .../files-4.9/arch/arm/boot/dts/imx6q-gw5904.dts   |  23 -
 .../arch/arm/boot/dts/imx6qdl-gw5904.dtsi  | 629 -
 target/linux/imx6/patches-4.14/100-bootargs.patch  |  11 +
 .../linux/imx6/patches-4.14/200-disable-msi.patch  |  18 +
 .../imx6/patches-4.14/300-fix-enumeration.patch|  11 +
 ...-imx-add-gateworks-ventana-gw5904-support.patch |  18 -
 target/linux/imx6/patches-4.9/100-bootargs.patch   |  11 -
 .../linux/imx6/patches-4.9/200-disable-msi.patch   |  22 -
 .../imx6/patches-4.9/210-disable-uart-dma.patch|  23 -
 14 files changed, 575 insertions(+), 1244 deletions(-)
 create mode 100644 target/linux/imx6/config-4.14
 delete mode 100644 target/linux/imx6/config-4.9
 delete mode 100644 
target/linux/imx6/files-4.9/arch/arm/boot/dts/imx6dl-gw5904.dts
 delete mode 100644 
target/linux/imx6/files-4.9/arch/arm/boot/dts/imx6q-gw5904.dts
 delete mode 100644 
target/linux/imx6/files-4.9/arch/arm/boot/dts/imx6qdl-gw5904.dtsi
 create mode 100644 target/linux/imx6/patches-4.14/100-bootargs.patch
 create mode 100644 target/linux/imx6/patches-4.14/200-disable-msi.patch
 create mode 100644 target/linux/imx6/patches-4.14/300-fix-enumeration.patch
 delete mode 100644 
target/linux/imx6/patches-4.9/0001-arm-dts-imx-add-gateworks-ventana-gw5904-support.patch
 delete mode 100644 target/linux/imx6/patches-4.9/100-bootargs.patch
 delete mode 100644 target/linux/imx6/patches-4.9/200-disable-msi.patch
 delete mode 100644 target/linux/imx6/patches-4.9/210-disable-uart-dma.patch

-- 
2.7.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [LEDE-DEV][PATCH 3/4] imx6: switch to kernel 4.14

2018-02-01 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
 target/linux/imx6/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/imx6/Makefile b/target/linux/imx6/Makefile
index ae6a9b0..152a58e 100644
--- a/target/linux/imx6/Makefile
+++ b/target/linux/imx6/Makefile
@@ -14,7 +14,7 @@ CPU_TYPE:=cortex-a9
 CPU_SUBTYPE:=neon
 MAINTAINER:=Luka Perkov 
 
-KERNEL_PATCHVER:=4.9
+KERNEL_PATCHVER:=4.14
 
 include $(INCLUDE_DIR)/target.mk
 
-- 
2.7.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [LEDE-DEV][PATCH 1/4] kernel: add missing config symbols

2018-02-01 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
 target/linux/generic/config-4.14 | 9 -
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/target/linux/generic/config-4.14 b/target/linux/generic/config-4.14
index fa389bf..89f2f43 100644
--- a/target/linux/generic/config-4.14
+++ b/target/linux/generic/config-4.14
@@ -658,6 +658,7 @@ CONFIG_BT_HCIUART_BCSP=y
 CONFIG_BT_HCIUART_H4=y
 # CONFIG_BT_HCIUART_LL is not set
 # CONFIG_BT_HCIUART_MRVL is not set
+# CONFIG_BT_HCIUART_NOKIA is not set
 # CONFIG_BT_HCIUART_QCA is not set
 # CONFIG_BT_HCIVHCI is not set
 # CONFIG_BT_HIDP is not set
@@ -1143,6 +1144,7 @@ CONFIG_DQL=y
 # CONFIG_DRM_DEBUG_MM_SELFTEST is not set
 # CONFIG_DRM_DP_AUX_CHARDEV is not set
 # CONFIG_DRM_DUMB_VGA_DAC is not set
+# CONFIG_DRM_DW_HDMI_I2S_AUDIO is not set
 # CONFIG_DRM_DW_HDMI_CEC is not set
 # CONFIG_DRM_ETNAVIV is not set
 # CONFIG_DRM_EXYNOS is not set
@@ -1167,12 +1169,14 @@ CONFIG_DQL=y
 # CONFIG_DRM_OMAP is not set
 # CONFIG_DRM_PANEL_JDI_LT070ME05000 is not set
 # CONFIG_DRM_PANEL_LG_LG4573 is not set
+# CONFIG_DRM_PANEL_LVDS is not set
 # CONFIG_DRM_PANEL_PANASONIC_VVX10F034N00 is not set
 # CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN is not set
 # CONFIG_DRM_PANEL_SAMSUNG_LD9040 is not set
 # CONFIG_DRM_PANEL_SAMSUNG_S6E8AA0 is not set
 # CONFIG_DRM_PANEL_SHARP_LQ101R1SX01 is not set
 # CONFIG_DRM_PANEL_SHARP_LS043T1LE01 is not set
+# CONFIG_DRM_PANEL_SITRONIX_ST7789V is not set
 # CONFIG_DRM_PARADE_PS8622 is not set
 # CONFIG_DRM_PL111 is not set
 # CONFIG_DRM_QXL is not set
@@ -1181,6 +1185,7 @@ CONFIG_DQL=y
 # CONFIG_DRM_SII902X is not set
 # CONFIG_DRM_SIL_SII8620 is not set
 # CONFIG_DRM_STI is not set
+# CONFIG_DRM_STM is not set
 # CONFIG_DRM_TILCDC is not set
 # CONFIG_DRM_TINYDRM is not set
 # CONFIG_DRM_TI_TFP410 is not set
@@ -2214,6 +2219,7 @@ CONFIG_KERNFS=y
 # CONFIG_KMX61 is not set
 # CONFIG_KPROBES is not set
 # CONFIG_KPROBES_SANITY_TEST is not set
+# CONFIG_KPROBE_EVENTS is not set
 # CONFIG_KS7010 is not set
 # CONFIG_KS8842 is not set
 # CONFIG_KS8851 is not set
@@ -4944,6 +4950,7 @@ CONFIG_TMPFS_XATTR=y
 # CONFIG_TRACER_SNAPSHOT_PER_CPU_SWAP is not set
 # CONFIG_TRACE_BRANCH_PROFILING is not set
 # CONFIG_TRACE_ENUM_MAP_FILE is not set
+# CONFIG_TRACE_EVAL_MAP_FILE is not set
 CONFIG_TRACE_IRQFLAGS_SUPPORT=y
 # CONFIG_TRACE_SINK is not set
 # CONFIG_TRACING_EVENTS_GPIO is not set
@@ -4994,7 +5001,7 @@ CONFIG_UNIX98_PTYS=y
 # CONFIG_UNIX_DIAG is not set
 # CONFIG_UNUSED_SYMBOLS is not set
 # CONFIG_UPROBES is not set
-# CONFIG_UPROBE_EVENT is not set
+# CONFIG_UPROBE_EVENTS is not set
 # CONFIG_US5182D is not set
 # CONFIG_USB is not set
 # CONFIG_USBIP_CORE is not set
-- 
2.7.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [LEDE-DEV][PATCH 2/4] imx6: add support for Linux 4.14

2018-02-01 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
 target/linux/imx6/config-4.14  | 526 +
 target/linux/imx6/patches-4.14/100-bootargs.patch  |  11 +
 .../linux/imx6/patches-4.14/200-disable-msi.patch  |  18 +
 .../imx6/patches-4.14/300-fix-enumeration.patch|  11 +
 4 files changed, 566 insertions(+)
 create mode 100644 target/linux/imx6/config-4.14
 create mode 100644 target/linux/imx6/patches-4.14/100-bootargs.patch
 create mode 100644 target/linux/imx6/patches-4.14/200-disable-msi.patch
 create mode 100644 target/linux/imx6/patches-4.14/300-fix-enumeration.patch

diff --git a/target/linux/imx6/config-4.14 b/target/linux/imx6/config-4.14
new file mode 100644
index 000..4bcde32
--- /dev/null
+++ b/target/linux/imx6/config-4.14
@@ -0,0 +1,526 @@
+CONFIG_AHCI_IMX=y
+CONFIG_ALIGNMENT_TRAP=y
+CONFIG_ARCH_CLOCKSOURCE_DATA=y
+CONFIG_ARCH_HAS_DEBUG_VIRTUAL=y
+CONFIG_ARCH_HAS_ELF_RANDOMIZE=y
+CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
+CONFIG_ARCH_HAS_RESET_CONTROLLER=y
+CONFIG_ARCH_HAS_SET_MEMORY=y
+CONFIG_ARCH_HAS_SG_CHAIN=y
+CONFIG_ARCH_HAS_STRICT_KERNEL_RWX=y
+CONFIG_ARCH_HAS_STRICT_MODULE_RWX=y
+CONFIG_ARCH_HAS_TICK_BROADCAST=y
+CONFIG_ARCH_HAVE_CUSTOM_GPIO_H=y
+CONFIG_ARCH_HIBERNATION_POSSIBLE=y
+CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
+CONFIG_ARCH_MMAP_RND_BITS_MAX=15
+CONFIG_ARCH_MULTIPLATFORM=y
+# CONFIG_ARCH_MULTI_CPU_AUTO is not set
+CONFIG_ARCH_MULTI_V6_V7=y
+CONFIG_ARCH_MULTI_V7=y
+CONFIG_ARCH_MXC=y
+CONFIG_ARCH_NR_GPIO=0
+CONFIG_ARCH_OPTIONAL_KERNEL_RWX=y
+CONFIG_ARCH_OPTIONAL_KERNEL_RWX_DEFAULT=y
+# CONFIG_ARCH_SELECT_MEMORY_MODEL is not set
+# CONFIG_ARCH_SPARSEMEM_DEFAULT is not set
+CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y
+CONFIG_ARCH_SUPPORTS_BIG_ENDIAN=y
+CONFIG_ARCH_SUPPORTS_UPROBES=y
+CONFIG_ARCH_SUSPEND_POSSIBLE=y
+CONFIG_ARCH_USE_BUILTIN_BSWAP=y
+CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y
+# CONFIG_ARCH_WANTS_THP_SWAP is not set
+CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
+CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
+CONFIG_ARM=y
+CONFIG_ARM_CPU_SUSPEND=y
+CONFIG_ARM_CRYPTO=y
+CONFIG_ARM_ERRATA_754322=y
+CONFIG_ARM_ERRATA_764369=y
+CONFIG_ARM_ERRATA_775420=y
+CONFIG_ARM_GIC=y
+CONFIG_ARM_HAS_SG_CHAIN=y
+CONFIG_ARM_HEAVY_MB=y
+CONFIG_ARM_IMX6Q_CPUFREQ=y
+CONFIG_ARM_L1_CACHE_SHIFT=6
+CONFIG_ARM_L1_CACHE_SHIFT_6=y
+# CONFIG_ARM_LPAE is not set
+CONFIG_ARM_PATCH_IDIV=y
+CONFIG_ARM_PATCH_PHYS_VIRT=y
+CONFIG_ARM_THUMB=y
+# CONFIG_ARM_THUMBEE is not set
+CONFIG_ARM_VIRT_EXT=y
+CONFIG_ASN1=y
+CONFIG_ASSOCIATIVE_ARRAY=y
+CONFIG_ATA=y
+CONFIG_ATAGS=y
+CONFIG_AUTO_ZRELADDR=y
+CONFIG_BLK_MQ_PCI=y
+CONFIG_BLK_SCSI_REQUEST=y
+CONFIG_CACHE_L2X0=y
+CONFIG_CLKDEV_LOOKUP=y
+CONFIG_CLKSRC_IMX_GPT=y
+CONFIG_CLKSRC_MMIO=y
+CONFIG_CLONE_BACKWARDS=y
+CONFIG_CLZ_TAB=y
+CONFIG_COMMON_CLK=y
+CONFIG_CPUFREQ_DT=y
+CONFIG_CPUFREQ_DT_PLATDEV=y
+CONFIG_CPU_32v6K=y
+CONFIG_CPU_32v7=y
+CONFIG_CPU_ABRT_EV7=y
+# CONFIG_CPU_BIG_ENDIAN is not set
+# CONFIG_CPU_BPREDICT_DISABLE is not set
+CONFIG_CPU_CACHE_V7=y
+CONFIG_CPU_CACHE_VIPT=y
+CONFIG_CPU_COPY_V6=y
+CONFIG_CPU_CP15=y
+CONFIG_CPU_CP15_MMU=y
+CONFIG_CPU_FREQ=y
+CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
+CONFIG_CPU_FREQ_GOV_ATTR_SET=y
+CONFIG_CPU_FREQ_GOV_COMMON=y
+CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
+CONFIG_CPU_FREQ_GOV_ONDEMAND=y
+CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
+CONFIG_CPU_FREQ_GOV_POWERSAVE=y
+CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y
+CONFIG_CPU_FREQ_GOV_USERSPACE=y
+CONFIG_CPU_FREQ_STAT=y
+CONFIG_CPU_HAS_ASID=y
+# CONFIG_CPU_ICACHE_DISABLE is not set
+CONFIG_CPU_PABRT_V7=y
+CONFIG_CPU_RMAP=y
+CONFIG_CPU_THERMAL=y
+CONFIG_CPU_THUMB_CAPABLE=y
+CONFIG_CPU_TLB_V7=y
+CONFIG_CPU_V7=y
+# CONFIG_CRASHLOG is not set
+CONFIG_CRC16=y
+CONFIG_CRYPTO_ACOMP2=y
+CONFIG_CRYPTO_AEAD=y
+CONFIG_CRYPTO_AEAD2=y
+CONFIG_CRYPTO_AES_ARM=y
+CONFIG_CRYPTO_AES_ARM_BS=y
+# CONFIG_CRYPTO_AES_ARM_CE is not set
+CONFIG_CRYPTO_AKCIPHER=y
+CONFIG_CRYPTO_AKCIPHER2=y
+CONFIG_CRYPTO_AUTHENC=y
+CONFIG_CRYPTO_CBC=y
+# CONFIG_CRYPTO_CHACHA20_NEON is not set
+CONFIG_CRYPTO_CRC32C=y
+# CONFIG_CRYPTO_CRC32_ARM_CE is not set
+CONFIG_CRYPTO_CRYPTD=y
+CONFIG_CRYPTO_CTR=y
+CONFIG_CRYPTO_CTS=y
+CONFIG_CRYPTO_DEFLATE=y
+CONFIG_CRYPTO_DEV_FSL_CAAM=y
+CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API=y
+CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API=y
+CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API_DESC=y
+# CONFIG_CRYPTO_DEV_FSL_CAAM_DEBUG is not set
+# CONFIG_CRYPTO_DEV_FSL_CAAM_INTC is not set
+CONFIG_CRYPTO_DEV_FSL_CAAM_JR=y
+CONFIG_CRYPTO_DEV_FSL_CAAM_PKC_API=y
+CONFIG_CRYPTO_DEV_FSL_CAAM_RINGSIZE=9
+CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API=y
+# CONFIG_CRYPTO_DEV_MXC_SCC is not set
+CONFIG_CRYPTO_DRBG=y
+CONFIG_CRYPTO_DRBG_HMAC=y
+CONFIG_CRYPTO_DRBG_MENU=y
+CONFIG_CRYPTO_ECB=y
+CONFIG_CRYPTO_GF128MUL=y
+# CONFIG_CRYPTO_GHASH_ARM_CE is not set
+CONFIG_CRYPTO_HASH=y
+CONFIG_CRYPTO_HASH2=y
+CONFIG_CRYPTO_HMAC=y
+CONFIG_CRYPTO_HW=y
+CONFIG_CRYPTO_JITTERENTROPY=y
+CONFIG_CRYPTO_LZO=y
+CONFIG_CRYPTO_MANAGER=y
+CONFIG_CRYPTO_MANAGER2=y
+CONFIG_CRYPTO_NULL=y
+CONFIG_CRYPTO_NULL2=y
+CONFIG_CRYPTO_RNG=y
+CONFIG_CRYPTO_RNG2=y
+CONFIG_CRYPTO_RNG_DEFAULT=y
+CONFIG_CRYPTO_RSA=y

[OpenWrt-Devel] [LED-DEV][PATCH 4/4] imx6: remove support for 4.9

2018-02-01 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
 target/linux/imx6/config-4.9   | 497 
 .../files-4.9/arch/arm/boot/dts/imx6dl-gw5904.dts  |  19 -
 .../files-4.9/arch/arm/boot/dts/imx6q-gw5904.dts   |  23 -
 .../arch/arm/boot/dts/imx6qdl-gw5904.dtsi  | 629 -
 ...-imx-add-gateworks-ventana-gw5904-support.patch |  18 -
 target/linux/imx6/patches-4.9/100-bootargs.patch   |  11 -
 .../linux/imx6/patches-4.9/200-disable-msi.patch   |  22 -
 .../imx6/patches-4.9/210-disable-uart-dma.patch|  23 -
 8 files changed, 1242 deletions(-)
 delete mode 100644 target/linux/imx6/config-4.9
 delete mode 100644 
target/linux/imx6/files-4.9/arch/arm/boot/dts/imx6dl-gw5904.dts
 delete mode 100644 
target/linux/imx6/files-4.9/arch/arm/boot/dts/imx6q-gw5904.dts
 delete mode 100644 
target/linux/imx6/files-4.9/arch/arm/boot/dts/imx6qdl-gw5904.dtsi
 delete mode 100644 
target/linux/imx6/patches-4.9/0001-arm-dts-imx-add-gateworks-ventana-gw5904-support.patch
 delete mode 100644 target/linux/imx6/patches-4.9/100-bootargs.patch
 delete mode 100644 target/linux/imx6/patches-4.9/200-disable-msi.patch
 delete mode 100644 target/linux/imx6/patches-4.9/210-disable-uart-dma.patch

diff --git a/target/linux/imx6/config-4.9 b/target/linux/imx6/config-4.9
deleted file mode 100644
index 12ba566..000
--- a/target/linux/imx6/config-4.9
+++ /dev/null
@@ -1,497 +0,0 @@
-CONFIG_AHCI_IMX=y
-CONFIG_ALIGNMENT_TRAP=y
-CONFIG_ARCH_CLOCKSOURCE_DATA=y
-CONFIG_ARCH_HAS_ELF_RANDOMIZE=y
-CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
-CONFIG_ARCH_HAS_RESET_CONTROLLER=y
-CONFIG_ARCH_HAS_SG_CHAIN=y
-CONFIG_ARCH_HAS_TICK_BROADCAST=y
-CONFIG_ARCH_HAVE_CUSTOM_GPIO_H=y
-CONFIG_ARCH_HIBERNATION_POSSIBLE=y
-CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
-CONFIG_ARCH_MMAP_RND_BITS_MAX=15
-CONFIG_ARCH_MULTIPLATFORM=y
-# CONFIG_ARCH_MULTI_CPU_AUTO is not set
-CONFIG_ARCH_MULTI_V6_V7=y
-CONFIG_ARCH_MULTI_V7=y
-CONFIG_ARCH_MXC=y
-CONFIG_ARCH_NR_GPIO=0
-# CONFIG_ARCH_SELECT_MEMORY_MODEL is not set
-# CONFIG_ARCH_SPARSEMEM_DEFAULT is not set
-CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y
-CONFIG_ARCH_SUPPORTS_BIG_ENDIAN=y
-CONFIG_ARCH_SUPPORTS_UPROBES=y
-CONFIG_ARCH_SUSPEND_POSSIBLE=y
-CONFIG_ARCH_USE_BUILTIN_BSWAP=y
-CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y
-CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
-CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
-CONFIG_ARM=y
-CONFIG_ARM_CPU_SUSPEND=y
-CONFIG_ARM_CRYPTO=y
-CONFIG_ARM_ERRATA_754322=y
-CONFIG_ARM_ERRATA_764369=y
-CONFIG_ARM_ERRATA_775420=y
-CONFIG_ARM_GIC=y
-CONFIG_ARM_HAS_SG_CHAIN=y
-CONFIG_ARM_HEAVY_MB=y
-CONFIG_ARM_IMX6Q_CPUFREQ=y
-CONFIG_ARM_L1_CACHE_SHIFT=6
-CONFIG_ARM_L1_CACHE_SHIFT_6=y
-# CONFIG_ARM_LPAE is not set
-CONFIG_ARM_PATCH_IDIV=y
-CONFIG_ARM_PATCH_PHYS_VIRT=y
-CONFIG_ARM_THUMB=y
-# CONFIG_ARM_THUMBEE is not set
-CONFIG_ARM_VIRT_EXT=y
-CONFIG_ASN1=y
-CONFIG_ASSOCIATIVE_ARRAY=y
-CONFIG_ATA=y
-CONFIG_ATAGS=y
-CONFIG_AUTO_ZRELADDR=y
-CONFIG_BLK_MQ_PCI=y
-CONFIG_CACHE_L2X0=y
-CONFIG_CLKDEV_LOOKUP=y
-CONFIG_CLKSRC_IMX_GPT=y
-CONFIG_CLKSRC_MMIO=y
-CONFIG_CLKSRC_OF=y
-CONFIG_CLKSRC_PROBE=y
-CONFIG_CLONE_BACKWARDS=y
-CONFIG_CLZ_TAB=y
-CONFIG_COMMON_CLK=y
-CONFIG_CPUFREQ_DT=y
-CONFIG_CPUFREQ_DT_PLATDEV=y
-CONFIG_CPU_32v6K=y
-CONFIG_CPU_32v7=y
-CONFIG_CPU_ABRT_EV7=y
-# CONFIG_CPU_BIG_ENDIAN is not set
-# CONFIG_CPU_BPREDICT_DISABLE is not set
-CONFIG_CPU_CACHE_V7=y
-CONFIG_CPU_CACHE_VIPT=y
-CONFIG_CPU_COPY_V6=y
-CONFIG_CPU_CP15=y
-CONFIG_CPU_CP15_MMU=y
-CONFIG_CPU_FREQ=y
-CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
-CONFIG_CPU_FREQ_GOV_ATTR_SET=y
-CONFIG_CPU_FREQ_GOV_COMMON=y
-CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
-CONFIG_CPU_FREQ_GOV_ONDEMAND=y
-CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
-CONFIG_CPU_FREQ_GOV_POWERSAVE=y
-CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y
-CONFIG_CPU_FREQ_GOV_USERSPACE=y
-CONFIG_CPU_FREQ_STAT=y
-CONFIG_CPU_FREQ_STAT_DETAILS=y
-CONFIG_CPU_HAS_ASID=y
-# CONFIG_CPU_ICACHE_DISABLE is not set
-CONFIG_CPU_PABRT_V7=y
-CONFIG_CPU_RMAP=y
-CONFIG_CPU_THERMAL=y
-CONFIG_CPU_TLB_V7=y
-CONFIG_CPU_V7=y
-# CONFIG_CRASHLOG is not set
-CONFIG_CRC16=y
-CONFIG_CRYPTO_ABLK_HELPER=y
-CONFIG_CRYPTO_AEAD=y
-CONFIG_CRYPTO_AEAD2=y
-CONFIG_CRYPTO_AES_ARM=y
-CONFIG_CRYPTO_AES_ARM_BS=y
-# CONFIG_CRYPTO_AES_ARM_CE is not set
-CONFIG_CRYPTO_AKCIPHER=y
-CONFIG_CRYPTO_AKCIPHER2=y
-CONFIG_CRYPTO_AUTHENC=y
-CONFIG_CRYPTO_CBC=y
-CONFIG_CRYPTO_CRC32C=y
-CONFIG_CRYPTO_CRYPTD=y
-CONFIG_CRYPTO_CTR=y
-CONFIG_CRYPTO_CTS=y
-CONFIG_CRYPTO_DEFLATE=y
-CONFIG_CRYPTO_DEV_FSL_CAAM=y
-CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API=y
-CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API=y
-# CONFIG_CRYPTO_DEV_FSL_CAAM_DEBUG is not set
-CONFIG_CRYPTO_DEV_FSL_CAAM_IMX=y
-# CONFIG_CRYPTO_DEV_FSL_CAAM_INTC is not set
-CONFIG_CRYPTO_DEV_FSL_CAAM_JR=y
-CONFIG_CRYPTO_DEV_FSL_CAAM_PKC_API=y
-CONFIG_CRYPTO_DEV_FSL_CAAM_RINGSIZE=9
-CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API=y
-# CONFIG_CRYPTO_DEV_MXC_SCC is not set
-CONFIG_CRYPTO_DRBG=y
-CONFIG_CRYPTO_DRBG_HMAC=y
-CONFIG_CRYPTO_DRBG_MENU=y
-CONFIG_CRYPTO_ECB=y
-CONFIG_CRYPTO_GF128MUL=y
-# CONFIG_CRYPTO_GHASH_ARM_CE is not set
-CONFIG_CRYPTO_HASH=y

Re: [OpenWrt-Devel] [LEDE-DEV] [PATCH 0/4] imx6: update to Linux 4.14

2018-02-13 Thread Tim Harvey
On Tue, Feb 13, 2018 at 12:43 AM, John Crispin  wrote:
>
>
> On 01/02/18 23:35, Tim Harvey wrote:
>>
>> Tested on a Gateworks GW54xx
>>
>> Tim Harvey (4):
>>kernel: add missing config symbols
>>imx6: add support for Linux 4.14
>>imx6: switch to kernel 4.14
>>imx6: remove support for 4.9
>
>
> Hi,
>
> karl and hauke posted some comments to the series. I've marked the whole
> series as "changes requested". please send a v3 with them incorporated.
>
> John
>

John,

Thanks - will get one out today or tomorrow.

Tim
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [LEDE-DEV] [PATCH 1/4] kernel: add missing config symbols

2018-02-14 Thread Tim Harvey
On Mon, Feb 12, 2018 at 12:41 PM, Hauke Mehrtens  wrote:
> On 02/01/2018 11:35 PM, Tim Harvey wrote:
>> Signed-off-by: Tim Harvey 
>> ---
>>  target/linux/generic/config-4.14 | 9 -
>>  1 file changed, 8 insertions(+), 1 deletion(-)
>>
>> diff --git a/target/linux/generic/config-4.14 
>> b/target/linux/generic/config-4.14
>> index fa389bf..89f2f43 100644
>> --- a/target/linux/generic/config-4.14
>> +++ b/target/linux/generic/config-4.14
>> @@ -658,6 +658,7 @@ CONFIG_BT_HCIUART_BCSP=y
>>  CONFIG_BT_HCIUART_H4=y
>>  # CONFIG_BT_HCIUART_LL is not set
>>  # CONFIG_BT_HCIUART_MRVL is not set
>> +# CONFIG_BT_HCIUART_NOKIA is not set
>
> This should be fixed by this commit:
> https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=a5199379c0914573613d3f9d1ca0efd369639b32
>
>>  # CONFIG_BT_HCIUART_QCA is not set
>>  # CONFIG_BT_HCIVHCI is not set
>>  # CONFIG_BT_HIDP is not set
>> @@ -1143,6 +1144,7 @@ CONFIG_DQL=y
>>  # CONFIG_DRM_DEBUG_MM_SELFTEST is not set
>>  # CONFIG_DRM_DP_AUX_CHARDEV is not set
>>  # CONFIG_DRM_DUMB_VGA_DAC is not set
>> +# CONFIG_DRM_DW_HDMI_I2S_AUDIO is not set
>>  # CONFIG_DRM_DW_HDMI_CEC is not set
>>  # CONFIG_DRM_ETNAVIV is not set
>>  # CONFIG_DRM_EXYNOS is not set
>> @@ -1167,12 +1169,14 @@ CONFIG_DQL=y
>>  # CONFIG_DRM_OMAP is not set
>>  # CONFIG_DRM_PANEL_JDI_LT070ME05000 is not set
>>  # CONFIG_DRM_PANEL_LG_LG4573 is not set
>> +# CONFIG_DRM_PANEL_LVDS is not set
>>  # CONFIG_DRM_PANEL_PANASONIC_VVX10F034N00 is not set
>>  # CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN is not set
>>  # CONFIG_DRM_PANEL_SAMSUNG_LD9040 is not set
>>  # CONFIG_DRM_PANEL_SAMSUNG_S6E8AA0 is not set
>>  # CONFIG_DRM_PANEL_SHARP_LQ101R1SX01 is not set
>>  # CONFIG_DRM_PANEL_SHARP_LS043T1LE01 is not set
>> +# CONFIG_DRM_PANEL_SITRONIX_ST7789V is not set
>>  # CONFIG_DRM_PARADE_PS8622 is not set
>>  # CONFIG_DRM_PL111 is not set
>>  # CONFIG_DRM_QXL is not set
>> @@ -1181,6 +1185,7 @@ CONFIG_DQL=y
>>  # CONFIG_DRM_SII902X is not set
>>  # CONFIG_DRM_SIL_SII8620 is not set
>>  # CONFIG_DRM_STI is not set
>> +# CONFIG_DRM_STM is not set
>>  # CONFIG_DRM_TILCDC is not set
>>  # CONFIG_DRM_TINYDRM is not set
>>  # CONFIG_DRM_TI_TFP410 is not set
>> @@ -2214,6 +2219,7 @@ CONFIG_KERNFS=y
>>  # CONFIG_KMX61 is not set
>>  # CONFIG_KPROBES is not set
>>  # CONFIG_KPROBES_SANITY_TEST is not set
>> +# CONFIG_KPROBE_EVENTS is not set
>>  # CONFIG_KS7010 is not set
>>  # CONFIG_KS8842 is not set
>>  # CONFIG_KS8851 is not set
>> @@ -4944,6 +4950,7 @@ CONFIG_TMPFS_XATTR=y
>>  # CONFIG_TRACER_SNAPSHOT_PER_CPU_SWAP is not set
>>  # CONFIG_TRACE_BRANCH_PROFILING is not set
>>  # CONFIG_TRACE_ENUM_MAP_FILE is not set
>> +# CONFIG_TRACE_EVAL_MAP_FILE is not set
>
> This was fixed here:
> https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=3a2a54c055f970376c9f19a4cd04d7e13037d959
>
>>  CONFIG_TRACE_IRQFLAGS_SUPPORT=y
>>  # CONFIG_TRACE_SINK is not set
>>  # CONFIG_TRACING_EVENTS_GPIO is not set
>> @@ -4994,7 +5001,7 @@ CONFIG_UNIX98_PTYS=y
>>  # CONFIG_UNIX_DIAG is not set
>>  # CONFIG_UNUSED_SYMBOLS is not set
>>  # CONFIG_UPROBES is not set
>> -# CONFIG_UPROBE_EVENT is not set
>> +# CONFIG_UPROBE_EVENTS is not set
>>  # CONFIG_US5182D is not set
>>  # CONFIG_USB is not set
>>  # CONFIG_USBIP_CORE is not set
>>
>

The rest of these are only issues when you enable drm (kmod-drm-imx)
so perhaps they should be handled in
package/kernel/linux/modules/video.mk.

I don't know how we typically deal with catching all the default
configs that need to be disabled only when certain modules are
enabled. Apparently we don't do it very well because it seems like
there's always a slew of patches to the default configs following a
kernel bump.

Regards,

Tim
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v2 0/3]: imx6: update to Linux 4.14

2018-02-14 Thread Tim Harvey
Testted on a Gateworks GW54xx. Does not support enabling imx-drm modules
yet as those will need some adjustments based on kernel configs.

v2:
 - move dwc pci patch to generic (Koen)
 - added E1000E driver (used on GW552x)
 - remove unnecessary EXT2/EXT3 (Michael)
 - remove config default config for 14.4

Tim Harvey (3):
  imx6: add support for Linux 4.14
  imx6: switch to Linux 4.14
  imx6: remove support for 4.9

 target/linux/imx6/Makefile |   2 +-
 target/linux/imx6/config-4.14  | 520 +
 target/linux/imx6/config-4.9   | 497 
 .../files-4.9/arch/arm/boot/dts/imx6dl-gw5904.dts  |  19 -
 .../files-4.9/arch/arm/boot/dts/imx6q-gw5904.dts   |  23 -
 .../arch/arm/boot/dts/imx6qdl-gw5904.dtsi  | 629 -
 target/linux/imx6/patches-4.14/100-bootargs.patch  |  11 +
 .../linux/imx6/patches-4.14/200-disable-msi.patch  |  18 +
 ...-imx-add-gateworks-ventana-gw5904-support.patch |  18 -
 target/linux/imx6/patches-4.9/100-bootargs.patch   |  11 -
 .../linux/imx6/patches-4.9/200-disable-msi.patch   |  22 -
 .../imx6/patches-4.9/210-disable-uart-dma.patch|  23 -
 12 files changed, 550 insertions(+), 1243 deletions(-)
 create mode 100644 target/linux/imx6/config-4.14
 delete mode 100644 target/linux/imx6/config-4.9
 delete mode 100644 
target/linux/imx6/files-4.9/arch/arm/boot/dts/imx6dl-gw5904.dts
 delete mode 100644 
target/linux/imx6/files-4.9/arch/arm/boot/dts/imx6q-gw5904.dts
 delete mode 100644 
target/linux/imx6/files-4.9/arch/arm/boot/dts/imx6qdl-gw5904.dtsi
 create mode 100644 target/linux/imx6/patches-4.14/100-bootargs.patch
 create mode 100644 target/linux/imx6/patches-4.14/200-disable-msi.patch
 delete mode 100644 
target/linux/imx6/patches-4.9/0001-arm-dts-imx-add-gateworks-ventana-gw5904-support.patch
 delete mode 100644 target/linux/imx6/patches-4.9/100-bootargs.patch
 delete mode 100644 target/linux/imx6/patches-4.9/200-disable-msi.patch
 delete mode 100644 target/linux/imx6/patches-4.9/210-disable-uart-dma.patch

-- 
2.7.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v2 1/3] imx6: add support for Linux 4.14

2018-02-14 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
v2:
 - move dwc pci patch to generic (Koen)
 - added E1000E driver (used on GW552x)
 - remove unnecessary EXT2/EXT3 (Michael)
 - remove config default config for 14.4

Signed-off-by: Tim Harvey 
---
 target/linux/imx6/config-4.14  | 520 +
 target/linux/imx6/patches-4.14/100-bootargs.patch  |  11 +
 .../linux/imx6/patches-4.14/200-disable-msi.patch  |  18 +
 3 files changed, 549 insertions(+)
 create mode 100644 target/linux/imx6/config-4.14
 create mode 100644 target/linux/imx6/patches-4.14/100-bootargs.patch
 create mode 100644 target/linux/imx6/patches-4.14/200-disable-msi.patch

diff --git a/target/linux/imx6/config-4.14 b/target/linux/imx6/config-4.14
new file mode 100644
index 000..bdfdadc
--- /dev/null
+++ b/target/linux/imx6/config-4.14
@@ -0,0 +1,520 @@
+CONFIG_AHCI_IMX=y
+CONFIG_ALIGNMENT_TRAP=y
+CONFIG_ARCH_CLOCKSOURCE_DATA=y
+CONFIG_ARCH_HAS_DEBUG_VIRTUAL=y
+CONFIG_ARCH_HAS_ELF_RANDOMIZE=y
+CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
+CONFIG_ARCH_HAS_RESET_CONTROLLER=y
+CONFIG_ARCH_HAS_SET_MEMORY=y
+CONFIG_ARCH_HAS_SG_CHAIN=y
+CONFIG_ARCH_HAS_STRICT_KERNEL_RWX=y
+CONFIG_ARCH_HAS_STRICT_MODULE_RWX=y
+CONFIG_ARCH_HAS_TICK_BROADCAST=y
+CONFIG_ARCH_HAVE_CUSTOM_GPIO_H=y
+CONFIG_ARCH_HIBERNATION_POSSIBLE=y
+CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
+CONFIG_ARCH_MMAP_RND_BITS_MAX=15
+CONFIG_ARCH_MULTIPLATFORM=y
+# CONFIG_ARCH_MULTI_CPU_AUTO is not set
+CONFIG_ARCH_MULTI_V6_V7=y
+CONFIG_ARCH_MULTI_V7=y
+CONFIG_ARCH_MXC=y
+CONFIG_ARCH_NR_GPIO=0
+CONFIG_ARCH_OPTIONAL_KERNEL_RWX=y
+CONFIG_ARCH_OPTIONAL_KERNEL_RWX_DEFAULT=y
+# CONFIG_ARCH_SELECT_MEMORY_MODEL is not set
+# CONFIG_ARCH_SPARSEMEM_DEFAULT is not set
+CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y
+CONFIG_ARCH_SUPPORTS_BIG_ENDIAN=y
+CONFIG_ARCH_SUPPORTS_UPROBES=y
+CONFIG_ARCH_SUSPEND_POSSIBLE=y
+CONFIG_ARCH_USE_BUILTIN_BSWAP=y
+CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y
+# CONFIG_ARCH_WANTS_THP_SWAP is not set
+CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
+CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
+CONFIG_ARM=y
+CONFIG_ARM_CPU_SUSPEND=y
+CONFIG_ARM_CRYPTO=y
+CONFIG_ARM_ERRATA_754322=y
+CONFIG_ARM_ERRATA_764369=y
+CONFIG_ARM_ERRATA_775420=y
+CONFIG_ARM_GIC=y
+CONFIG_ARM_HAS_SG_CHAIN=y
+CONFIG_ARM_HEAVY_MB=y
+CONFIG_ARM_IMX6Q_CPUFREQ=y
+CONFIG_ARM_L1_CACHE_SHIFT=6
+CONFIG_ARM_L1_CACHE_SHIFT_6=y
+# CONFIG_ARM_LPAE is not set
+CONFIG_ARM_PATCH_IDIV=y
+CONFIG_ARM_PATCH_PHYS_VIRT=y
+CONFIG_ARM_THUMB=y
+# CONFIG_ARM_THUMBEE is not set
+CONFIG_ARM_VIRT_EXT=y
+CONFIG_ASN1=y
+CONFIG_ASSOCIATIVE_ARRAY=y
+CONFIG_ATA=y
+CONFIG_ATAGS=y
+CONFIG_AUTO_ZRELADDR=y
+CONFIG_BLK_MQ_PCI=y
+CONFIG_BLK_SCSI_REQUEST=y
+CONFIG_CACHE_L2X0=y
+CONFIG_CLKDEV_LOOKUP=y
+CONFIG_CLKSRC_IMX_GPT=y
+CONFIG_CLKSRC_MMIO=y
+CONFIG_CLONE_BACKWARDS=y
+CONFIG_CLZ_TAB=y
+CONFIG_COMMON_CLK=y
+CONFIG_CPUFREQ_DT=y
+CONFIG_CPUFREQ_DT_PLATDEV=y
+CONFIG_CPU_32v6K=y
+CONFIG_CPU_32v7=y
+CONFIG_CPU_ABRT_EV7=y
+# CONFIG_CPU_BIG_ENDIAN is not set
+# CONFIG_CPU_BPREDICT_DISABLE is not set
+CONFIG_CPU_CACHE_V7=y
+CONFIG_CPU_CACHE_VIPT=y
+CONFIG_CPU_COPY_V6=y
+CONFIG_CPU_CP15=y
+CONFIG_CPU_CP15_MMU=y
+CONFIG_CPU_FREQ=y
+CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
+CONFIG_CPU_FREQ_GOV_ATTR_SET=y
+CONFIG_CPU_FREQ_GOV_COMMON=y
+CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
+CONFIG_CPU_FREQ_GOV_ONDEMAND=y
+CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
+CONFIG_CPU_FREQ_GOV_POWERSAVE=y
+CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y
+CONFIG_CPU_FREQ_GOV_USERSPACE=y
+CONFIG_CPU_FREQ_STAT=y
+CONFIG_CPU_HAS_ASID=y
+# CONFIG_CPU_ICACHE_DISABLE is not set
+CONFIG_CPU_PABRT_V7=y
+CONFIG_CPU_RMAP=y
+CONFIG_CPU_THERMAL=y
+CONFIG_CPU_THUMB_CAPABLE=y
+CONFIG_CPU_TLB_V7=y
+CONFIG_CPU_V7=y
+# CONFIG_CRASHLOG is not set
+CONFIG_CRC16=y
+CONFIG_CRYPTO_ACOMP2=y
+CONFIG_CRYPTO_AEAD=y
+CONFIG_CRYPTO_AEAD2=y
+CONFIG_CRYPTO_AES_ARM=y
+CONFIG_CRYPTO_AES_ARM_BS=y
+# CONFIG_CRYPTO_AES_ARM_CE is not set
+CONFIG_CRYPTO_AKCIPHER=y
+CONFIG_CRYPTO_AKCIPHER2=y
+CONFIG_CRYPTO_AUTHENC=y
+CONFIG_CRYPTO_CBC=y
+# CONFIG_CRYPTO_CHACHA20_NEON is not set
+CONFIG_CRYPTO_CRC32C=y
+# CONFIG_CRYPTO_CRC32_ARM_CE is not set
+CONFIG_CRYPTO_CRYPTD=y
+CONFIG_CRYPTO_CTR=y
+CONFIG_CRYPTO_CTS=y
+CONFIG_CRYPTO_DEFLATE=y
+CONFIG_CRYPTO_DEV_FSL_CAAM=y
+CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API=y
+CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API=y
+CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API_DESC=y
+# CONFIG_CRYPTO_DEV_FSL_CAAM_DEBUG is not set
+# CONFIG_CRYPTO_DEV_FSL_CAAM_INTC is not set
+CONFIG_CRYPTO_DEV_FSL_CAAM_JR=y
+CONFIG_CRYPTO_DEV_FSL_CAAM_PKC_API=y
+CONFIG_CRYPTO_DEV_FSL_CAAM_RINGSIZE=9
+CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API=y
+# CONFIG_CRYPTO_DEV_MXC_SCC is not set
+CONFIG_CRYPTO_DRBG=y
+CONFIG_CRYPTO_DRBG_HMAC=y
+CONFIG_CRYPTO_DRBG_MENU=y
+CONFIG_CRYPTO_ECB=y
+CONFIG_CRYPTO_GF128MUL=y
+# CONFIG_CRYPTO_GHASH_ARM_CE is not set
+CONFIG_CRYPTO_HASH=y
+CONFIG_CRYPTO_HASH2=y
+CONFIG_CRYPTO_HMAC=y
+CONFIG_CRYPTO_HW=y
+CONFIG_CRYPTO_JITTERENTROPY=y
+CONFIG_CRYPTO_LZO=y
+CONFIG_CRYPTO_MANAGER=y
+CONFIG_CRYPTO_MANAGER2=y
+CONFIG_CRYPTO_NULL=y
+CONFIG_CRYPTO_NULL2=y
+CONFIG_CRYPTO_RNG=y

[OpenWrt-Devel] [PATCH v2 2/3] imx6: switch to Linux 4.14

2018-02-14 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
 target/linux/imx6/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/imx6/Makefile b/target/linux/imx6/Makefile
index ae6a9b0..152a58e 100644
--- a/target/linux/imx6/Makefile
+++ b/target/linux/imx6/Makefile
@@ -14,7 +14,7 @@ CPU_TYPE:=cortex-a9
 CPU_SUBTYPE:=neon
 MAINTAINER:=Luka Perkov 
 
-KERNEL_PATCHVER:=4.9
+KERNEL_PATCHVER:=4.14
 
 include $(INCLUDE_DIR)/target.mk
 
-- 
2.7.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v2 3/3] imx6: remove support for 4.9

2018-02-14 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
 target/linux/imx6/config-4.9   | 497 
 .../files-4.9/arch/arm/boot/dts/imx6dl-gw5904.dts  |  19 -
 .../files-4.9/arch/arm/boot/dts/imx6q-gw5904.dts   |  23 -
 .../arch/arm/boot/dts/imx6qdl-gw5904.dtsi  | 629 -
 ...-imx-add-gateworks-ventana-gw5904-support.patch |  18 -
 target/linux/imx6/patches-4.9/100-bootargs.patch   |  11 -
 .../linux/imx6/patches-4.9/200-disable-msi.patch   |  22 -
 .../imx6/patches-4.9/210-disable-uart-dma.patch|  23 -
 8 files changed, 1242 deletions(-)
 delete mode 100644 target/linux/imx6/config-4.9
 delete mode 100644 
target/linux/imx6/files-4.9/arch/arm/boot/dts/imx6dl-gw5904.dts
 delete mode 100644 
target/linux/imx6/files-4.9/arch/arm/boot/dts/imx6q-gw5904.dts
 delete mode 100644 
target/linux/imx6/files-4.9/arch/arm/boot/dts/imx6qdl-gw5904.dtsi
 delete mode 100644 
target/linux/imx6/patches-4.9/0001-arm-dts-imx-add-gateworks-ventana-gw5904-support.patch
 delete mode 100644 target/linux/imx6/patches-4.9/100-bootargs.patch
 delete mode 100644 target/linux/imx6/patches-4.9/200-disable-msi.patch
 delete mode 100644 target/linux/imx6/patches-4.9/210-disable-uart-dma.patch

diff --git a/target/linux/imx6/config-4.9 b/target/linux/imx6/config-4.9
deleted file mode 100644
index 12ba566..000
--- a/target/linux/imx6/config-4.9
+++ /dev/null
@@ -1,497 +0,0 @@
-CONFIG_AHCI_IMX=y
-CONFIG_ALIGNMENT_TRAP=y
-CONFIG_ARCH_CLOCKSOURCE_DATA=y
-CONFIG_ARCH_HAS_ELF_RANDOMIZE=y
-CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
-CONFIG_ARCH_HAS_RESET_CONTROLLER=y
-CONFIG_ARCH_HAS_SG_CHAIN=y
-CONFIG_ARCH_HAS_TICK_BROADCAST=y
-CONFIG_ARCH_HAVE_CUSTOM_GPIO_H=y
-CONFIG_ARCH_HIBERNATION_POSSIBLE=y
-CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
-CONFIG_ARCH_MMAP_RND_BITS_MAX=15
-CONFIG_ARCH_MULTIPLATFORM=y
-# CONFIG_ARCH_MULTI_CPU_AUTO is not set
-CONFIG_ARCH_MULTI_V6_V7=y
-CONFIG_ARCH_MULTI_V7=y
-CONFIG_ARCH_MXC=y
-CONFIG_ARCH_NR_GPIO=0
-# CONFIG_ARCH_SELECT_MEMORY_MODEL is not set
-# CONFIG_ARCH_SPARSEMEM_DEFAULT is not set
-CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y
-CONFIG_ARCH_SUPPORTS_BIG_ENDIAN=y
-CONFIG_ARCH_SUPPORTS_UPROBES=y
-CONFIG_ARCH_SUSPEND_POSSIBLE=y
-CONFIG_ARCH_USE_BUILTIN_BSWAP=y
-CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y
-CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
-CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
-CONFIG_ARM=y
-CONFIG_ARM_CPU_SUSPEND=y
-CONFIG_ARM_CRYPTO=y
-CONFIG_ARM_ERRATA_754322=y
-CONFIG_ARM_ERRATA_764369=y
-CONFIG_ARM_ERRATA_775420=y
-CONFIG_ARM_GIC=y
-CONFIG_ARM_HAS_SG_CHAIN=y
-CONFIG_ARM_HEAVY_MB=y
-CONFIG_ARM_IMX6Q_CPUFREQ=y
-CONFIG_ARM_L1_CACHE_SHIFT=6
-CONFIG_ARM_L1_CACHE_SHIFT_6=y
-# CONFIG_ARM_LPAE is not set
-CONFIG_ARM_PATCH_IDIV=y
-CONFIG_ARM_PATCH_PHYS_VIRT=y
-CONFIG_ARM_THUMB=y
-# CONFIG_ARM_THUMBEE is not set
-CONFIG_ARM_VIRT_EXT=y
-CONFIG_ASN1=y
-CONFIG_ASSOCIATIVE_ARRAY=y
-CONFIG_ATA=y
-CONFIG_ATAGS=y
-CONFIG_AUTO_ZRELADDR=y
-CONFIG_BLK_MQ_PCI=y
-CONFIG_CACHE_L2X0=y
-CONFIG_CLKDEV_LOOKUP=y
-CONFIG_CLKSRC_IMX_GPT=y
-CONFIG_CLKSRC_MMIO=y
-CONFIG_CLKSRC_OF=y
-CONFIG_CLKSRC_PROBE=y
-CONFIG_CLONE_BACKWARDS=y
-CONFIG_CLZ_TAB=y
-CONFIG_COMMON_CLK=y
-CONFIG_CPUFREQ_DT=y
-CONFIG_CPUFREQ_DT_PLATDEV=y
-CONFIG_CPU_32v6K=y
-CONFIG_CPU_32v7=y
-CONFIG_CPU_ABRT_EV7=y
-# CONFIG_CPU_BIG_ENDIAN is not set
-# CONFIG_CPU_BPREDICT_DISABLE is not set
-CONFIG_CPU_CACHE_V7=y
-CONFIG_CPU_CACHE_VIPT=y
-CONFIG_CPU_COPY_V6=y
-CONFIG_CPU_CP15=y
-CONFIG_CPU_CP15_MMU=y
-CONFIG_CPU_FREQ=y
-CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
-CONFIG_CPU_FREQ_GOV_ATTR_SET=y
-CONFIG_CPU_FREQ_GOV_COMMON=y
-CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
-CONFIG_CPU_FREQ_GOV_ONDEMAND=y
-CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
-CONFIG_CPU_FREQ_GOV_POWERSAVE=y
-CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y
-CONFIG_CPU_FREQ_GOV_USERSPACE=y
-CONFIG_CPU_FREQ_STAT=y
-CONFIG_CPU_FREQ_STAT_DETAILS=y
-CONFIG_CPU_HAS_ASID=y
-# CONFIG_CPU_ICACHE_DISABLE is not set
-CONFIG_CPU_PABRT_V7=y
-CONFIG_CPU_RMAP=y
-CONFIG_CPU_THERMAL=y
-CONFIG_CPU_TLB_V7=y
-CONFIG_CPU_V7=y
-# CONFIG_CRASHLOG is not set
-CONFIG_CRC16=y
-CONFIG_CRYPTO_ABLK_HELPER=y
-CONFIG_CRYPTO_AEAD=y
-CONFIG_CRYPTO_AEAD2=y
-CONFIG_CRYPTO_AES_ARM=y
-CONFIG_CRYPTO_AES_ARM_BS=y
-# CONFIG_CRYPTO_AES_ARM_CE is not set
-CONFIG_CRYPTO_AKCIPHER=y
-CONFIG_CRYPTO_AKCIPHER2=y
-CONFIG_CRYPTO_AUTHENC=y
-CONFIG_CRYPTO_CBC=y
-CONFIG_CRYPTO_CRC32C=y
-CONFIG_CRYPTO_CRYPTD=y
-CONFIG_CRYPTO_CTR=y
-CONFIG_CRYPTO_CTS=y
-CONFIG_CRYPTO_DEFLATE=y
-CONFIG_CRYPTO_DEV_FSL_CAAM=y
-CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API=y
-CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API=y
-# CONFIG_CRYPTO_DEV_FSL_CAAM_DEBUG is not set
-CONFIG_CRYPTO_DEV_FSL_CAAM_IMX=y
-# CONFIG_CRYPTO_DEV_FSL_CAAM_INTC is not set
-CONFIG_CRYPTO_DEV_FSL_CAAM_JR=y
-CONFIG_CRYPTO_DEV_FSL_CAAM_PKC_API=y
-CONFIG_CRYPTO_DEV_FSL_CAAM_RINGSIZE=9
-CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API=y
-# CONFIG_CRYPTO_DEV_MXC_SCC is not set
-CONFIG_CRYPTO_DRBG=y
-CONFIG_CRYPTO_DRBG_HMAC=y
-CONFIG_CRYPTO_DRBG_MENU=y
-CONFIG_CRYPTO_ECB=y
-CONFIG_CRYPTO_GF128MUL=y
-# CONFIG_CRYPTO_GHASH_ARM_CE is not set
-CONFIG_CRYPTO_HASH=y

Re: [OpenWrt-Devel] [LEDE-DEV] [PATCH v2 1/3] imx6: add support for Linux 4.14

2018-02-15 Thread Tim Harvey
On Thu, Feb 15, 2018 at 12:43 AM, Koen Vandeputte
 wrote:
>
>
> On 2018-02-15 02:31, Tim Harvey wrote:
>>
>> Signed-off-by: Tim Harvey 
>> ---
>> v2:
>>   - move dwc pci patch to generic (Koen)
>>   - added E1000E driver (used on GW552x)
>>   - remove unnecessary EXT2/EXT3 (Michael)
>>   - remove config default config for 14.4
>>
>> Signed-off-by: Tim Harvey 
>> ---
>>   target/linux/imx6/config-4.14  | 520
>> +
>>   target/linux/imx6/patches-4.14/100-bootargs.patch  |  11 +
>>   .../linux/imx6/patches-4.14/200-disable-msi.patch  |  18 +
>>   3 files changed, 549 insertions(+)
>>   create mode 100644 target/linux/imx6/config-4.14
>>   create mode 100644 target/linux/imx6/patches-4.14/100-bootargs.patch
>>   create mode 100644 target/linux/imx6/patches-4.14/200-disable-msi.patch
>>
>
> Hi Tim,
>
> The patch states that the PCIe enumeration fix was moved to generic, but
> it's not present here :)
>
> Koen

Ooops - forgot the 4th patch. Sending a v3 now.

Thanks

Tim
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v3 0/4]: imx6: update to Linux 4.14

2018-02-15 Thread Tim Harvey
Testted on a Gateworks GW54xx. Does not support enabling imx-drm modules
yet as those will need some adjustments based on kernel configs.

v3:
 - included missing patch for pcie enumeration fix

v2:
 - move dwc pci patch to generic (Koen)
 - added E1000E driver (used on GW552x)
 - remove unnecessary EXT2/EXT3 (Michael)
 - remove config default config for 14.4

Tim Harvey (4):
  kernel: backport dwc pci enumeration fix
  imx6: add support for Linux 4.14
  imx6: switch to Linux 4.14
  imx6: remove support for 4.9

 .../pending-4.14/812-pci-dwc-fix-enumeration.patch |  11 +
 target/linux/imx6/Makefile |   2 +-
 target/linux/imx6/config-4.14  | 520 +
 target/linux/imx6/config-4.9   | 497 
 .../files-4.9/arch/arm/boot/dts/imx6dl-gw5904.dts  |  19 -
 .../files-4.9/arch/arm/boot/dts/imx6q-gw5904.dts   |  23 -
 .../arch/arm/boot/dts/imx6qdl-gw5904.dtsi  | 629 -
 target/linux/imx6/patches-4.14/100-bootargs.patch  |  11 +
 .../linux/imx6/patches-4.14/200-disable-msi.patch  |  18 +
 ...-imx-add-gateworks-ventana-gw5904-support.patch |  18 -
 target/linux/imx6/patches-4.9/100-bootargs.patch   |  11 -
 .../linux/imx6/patches-4.9/200-disable-msi.patch   |  22 -
 .../imx6/patches-4.9/210-disable-uart-dma.patch|  23 -
 13 files changed, 561 insertions(+), 1243 deletions(-)
 create mode 100644 
target/linux/generic/pending-4.14/812-pci-dwc-fix-enumeration.patch
 create mode 100644 target/linux/imx6/config-4.14
 delete mode 100644 target/linux/imx6/config-4.9
 delete mode 100644 
target/linux/imx6/files-4.9/arch/arm/boot/dts/imx6dl-gw5904.dts
 delete mode 100644 
target/linux/imx6/files-4.9/arch/arm/boot/dts/imx6q-gw5904.dts
 delete mode 100644 
target/linux/imx6/files-4.9/arch/arm/boot/dts/imx6qdl-gw5904.dtsi
 create mode 100644 target/linux/imx6/patches-4.14/100-bootargs.patch
 create mode 100644 target/linux/imx6/patches-4.14/200-disable-msi.patch
 delete mode 100644 
target/linux/imx6/patches-4.9/0001-arm-dts-imx-add-gateworks-ventana-gw5904-support.patch
 delete mode 100644 target/linux/imx6/patches-4.9/100-bootargs.patch
 delete mode 100644 target/linux/imx6/patches-4.9/200-disable-msi.patch
 delete mode 100644 target/linux/imx6/patches-4.9/210-disable-uart-dma.patch

-- 
2.7.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v3 1/4] kernel: backport dwc pci enumeration fix

2018-02-15 Thread Tim Harvey
Backport of:  http://patchwork.ozlabs.org/patch/860701/

Signed-off-by: Tim Harvey 
---
 .../generic/pending-4.14/812-pci-dwc-fix-enumeration.patch| 11 +++
 1 file changed, 11 insertions(+)
 create mode 100644 
target/linux/generic/pending-4.14/812-pci-dwc-fix-enumeration.patch

diff --git 
a/target/linux/generic/pending-4.14/812-pci-dwc-fix-enumeration.patch 
b/target/linux/generic/pending-4.14/812-pci-dwc-fix-enumeration.patch
new file mode 100644
index 000..ce9e815
--- /dev/null
+++ b/target/linux/generic/pending-4.14/812-pci-dwc-fix-enumeration.patch
@@ -0,0 +1,11 @@
+--- a/drivers/pci/dwc/pcie-designware-host.c
 b/drivers/pci/dwc/pcie-designware-host.c
+@@ -607,7 +607,7 @@ void dw_pcie_setup_rc(struct pcie_port *
+   /* setup bus numbers */
+   val = dw_pcie_readl_dbi(pci, PCI_PRIMARY_BUS);
+   val &= 0xff00;
+-  val |= 0x00010100;
++  val |= 0x00ff0100;
+   dw_pcie_writel_dbi(pci, PCI_PRIMARY_BUS, val);
+ 
+   /* setup command register */
-- 
2.7.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 2/4] imx6: add support for Linux 4.14

2018-02-15 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
v2:
 - move dwc pci patch to generic (Koen)
 - remove unnecessary EXT2/EXT3 (Michael)
 - remove config default config for 14.4

Signed-off-by: Tim Harvey 
---
 target/linux/imx6/config-4.14  | 520 +
 target/linux/imx6/patches-4.14/100-bootargs.patch  |  11 +
 .../linux/imx6/patches-4.14/200-disable-msi.patch  |  18 +
 3 files changed, 549 insertions(+)
 create mode 100644 target/linux/imx6/config-4.14
 create mode 100644 target/linux/imx6/patches-4.14/100-bootargs.patch
 create mode 100644 target/linux/imx6/patches-4.14/200-disable-msi.patch

diff --git a/target/linux/imx6/config-4.14 b/target/linux/imx6/config-4.14
new file mode 100644
index 000..bdfdadc
--- /dev/null
+++ b/target/linux/imx6/config-4.14
@@ -0,0 +1,520 @@
+CONFIG_AHCI_IMX=y
+CONFIG_ALIGNMENT_TRAP=y
+CONFIG_ARCH_CLOCKSOURCE_DATA=y
+CONFIG_ARCH_HAS_DEBUG_VIRTUAL=y
+CONFIG_ARCH_HAS_ELF_RANDOMIZE=y
+CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
+CONFIG_ARCH_HAS_RESET_CONTROLLER=y
+CONFIG_ARCH_HAS_SET_MEMORY=y
+CONFIG_ARCH_HAS_SG_CHAIN=y
+CONFIG_ARCH_HAS_STRICT_KERNEL_RWX=y
+CONFIG_ARCH_HAS_STRICT_MODULE_RWX=y
+CONFIG_ARCH_HAS_TICK_BROADCAST=y
+CONFIG_ARCH_HAVE_CUSTOM_GPIO_H=y
+CONFIG_ARCH_HIBERNATION_POSSIBLE=y
+CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
+CONFIG_ARCH_MMAP_RND_BITS_MAX=15
+CONFIG_ARCH_MULTIPLATFORM=y
+# CONFIG_ARCH_MULTI_CPU_AUTO is not set
+CONFIG_ARCH_MULTI_V6_V7=y
+CONFIG_ARCH_MULTI_V7=y
+CONFIG_ARCH_MXC=y
+CONFIG_ARCH_NR_GPIO=0
+CONFIG_ARCH_OPTIONAL_KERNEL_RWX=y
+CONFIG_ARCH_OPTIONAL_KERNEL_RWX_DEFAULT=y
+# CONFIG_ARCH_SELECT_MEMORY_MODEL is not set
+# CONFIG_ARCH_SPARSEMEM_DEFAULT is not set
+CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y
+CONFIG_ARCH_SUPPORTS_BIG_ENDIAN=y
+CONFIG_ARCH_SUPPORTS_UPROBES=y
+CONFIG_ARCH_SUSPEND_POSSIBLE=y
+CONFIG_ARCH_USE_BUILTIN_BSWAP=y
+CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y
+# CONFIG_ARCH_WANTS_THP_SWAP is not set
+CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
+CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
+CONFIG_ARM=y
+CONFIG_ARM_CPU_SUSPEND=y
+CONFIG_ARM_CRYPTO=y
+CONFIG_ARM_ERRATA_754322=y
+CONFIG_ARM_ERRATA_764369=y
+CONFIG_ARM_ERRATA_775420=y
+CONFIG_ARM_GIC=y
+CONFIG_ARM_HAS_SG_CHAIN=y
+CONFIG_ARM_HEAVY_MB=y
+CONFIG_ARM_IMX6Q_CPUFREQ=y
+CONFIG_ARM_L1_CACHE_SHIFT=6
+CONFIG_ARM_L1_CACHE_SHIFT_6=y
+# CONFIG_ARM_LPAE is not set
+CONFIG_ARM_PATCH_IDIV=y
+CONFIG_ARM_PATCH_PHYS_VIRT=y
+CONFIG_ARM_THUMB=y
+# CONFIG_ARM_THUMBEE is not set
+CONFIG_ARM_VIRT_EXT=y
+CONFIG_ASN1=y
+CONFIG_ASSOCIATIVE_ARRAY=y
+CONFIG_ATA=y
+CONFIG_ATAGS=y
+CONFIG_AUTO_ZRELADDR=y
+CONFIG_BLK_MQ_PCI=y
+CONFIG_BLK_SCSI_REQUEST=y
+CONFIG_CACHE_L2X0=y
+CONFIG_CLKDEV_LOOKUP=y
+CONFIG_CLKSRC_IMX_GPT=y
+CONFIG_CLKSRC_MMIO=y
+CONFIG_CLONE_BACKWARDS=y
+CONFIG_CLZ_TAB=y
+CONFIG_COMMON_CLK=y
+CONFIG_CPUFREQ_DT=y
+CONFIG_CPUFREQ_DT_PLATDEV=y
+CONFIG_CPU_32v6K=y
+CONFIG_CPU_32v7=y
+CONFIG_CPU_ABRT_EV7=y
+# CONFIG_CPU_BIG_ENDIAN is not set
+# CONFIG_CPU_BPREDICT_DISABLE is not set
+CONFIG_CPU_CACHE_V7=y
+CONFIG_CPU_CACHE_VIPT=y
+CONFIG_CPU_COPY_V6=y
+CONFIG_CPU_CP15=y
+CONFIG_CPU_CP15_MMU=y
+CONFIG_CPU_FREQ=y
+CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
+CONFIG_CPU_FREQ_GOV_ATTR_SET=y
+CONFIG_CPU_FREQ_GOV_COMMON=y
+CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
+CONFIG_CPU_FREQ_GOV_ONDEMAND=y
+CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
+CONFIG_CPU_FREQ_GOV_POWERSAVE=y
+CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y
+CONFIG_CPU_FREQ_GOV_USERSPACE=y
+CONFIG_CPU_FREQ_STAT=y
+CONFIG_CPU_HAS_ASID=y
+# CONFIG_CPU_ICACHE_DISABLE is not set
+CONFIG_CPU_PABRT_V7=y
+CONFIG_CPU_RMAP=y
+CONFIG_CPU_THERMAL=y
+CONFIG_CPU_THUMB_CAPABLE=y
+CONFIG_CPU_TLB_V7=y
+CONFIG_CPU_V7=y
+# CONFIG_CRASHLOG is not set
+CONFIG_CRC16=y
+CONFIG_CRYPTO_ACOMP2=y
+CONFIG_CRYPTO_AEAD=y
+CONFIG_CRYPTO_AEAD2=y
+CONFIG_CRYPTO_AES_ARM=y
+CONFIG_CRYPTO_AES_ARM_BS=y
+# CONFIG_CRYPTO_AES_ARM_CE is not set
+CONFIG_CRYPTO_AKCIPHER=y
+CONFIG_CRYPTO_AKCIPHER2=y
+CONFIG_CRYPTO_AUTHENC=y
+CONFIG_CRYPTO_CBC=y
+# CONFIG_CRYPTO_CHACHA20_NEON is not set
+CONFIG_CRYPTO_CRC32C=y
+# CONFIG_CRYPTO_CRC32_ARM_CE is not set
+CONFIG_CRYPTO_CRYPTD=y
+CONFIG_CRYPTO_CTR=y
+CONFIG_CRYPTO_CTS=y
+CONFIG_CRYPTO_DEFLATE=y
+CONFIG_CRYPTO_DEV_FSL_CAAM=y
+CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API=y
+CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API=y
+CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API_DESC=y
+# CONFIG_CRYPTO_DEV_FSL_CAAM_DEBUG is not set
+# CONFIG_CRYPTO_DEV_FSL_CAAM_INTC is not set
+CONFIG_CRYPTO_DEV_FSL_CAAM_JR=y
+CONFIG_CRYPTO_DEV_FSL_CAAM_PKC_API=y
+CONFIG_CRYPTO_DEV_FSL_CAAM_RINGSIZE=9
+CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API=y
+# CONFIG_CRYPTO_DEV_MXC_SCC is not set
+CONFIG_CRYPTO_DRBG=y
+CONFIG_CRYPTO_DRBG_HMAC=y
+CONFIG_CRYPTO_DRBG_MENU=y
+CONFIG_CRYPTO_ECB=y
+CONFIG_CRYPTO_GF128MUL=y
+# CONFIG_CRYPTO_GHASH_ARM_CE is not set
+CONFIG_CRYPTO_HASH=y
+CONFIG_CRYPTO_HASH2=y
+CONFIG_CRYPTO_HMAC=y
+CONFIG_CRYPTO_HW=y
+CONFIG_CRYPTO_JITTERENTROPY=y
+CONFIG_CRYPTO_LZO=y
+CONFIG_CRYPTO_MANAGER=y
+CONFIG_CRYPTO_MANAGER2=y
+CONFIG_CRYPTO_NULL=y
+CONFIG_CRYPTO_NULL2=y
+CONFIG_CRYPTO_RNG=y
+CONFIG_CRYPTO_RNG2=y
+CONFIG_CRYPTO_RNG_DEFAULT=y

[OpenWrt-Devel] [PATCH 3/4] imx6: switch to Linux 4.14

2018-02-15 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
 target/linux/imx6/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/imx6/Makefile b/target/linux/imx6/Makefile
index ae6a9b0..152a58e 100644
--- a/target/linux/imx6/Makefile
+++ b/target/linux/imx6/Makefile
@@ -14,7 +14,7 @@ CPU_TYPE:=cortex-a9
 CPU_SUBTYPE:=neon
 MAINTAINER:=Luka Perkov 
 
-KERNEL_PATCHVER:=4.9
+KERNEL_PATCHVER:=4.14
 
 include $(INCLUDE_DIR)/target.mk
 
-- 
2.7.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 4/4] imx6: remove support for 4.9

2018-02-15 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
 target/linux/imx6/config-4.9   | 497 
 .../files-4.9/arch/arm/boot/dts/imx6dl-gw5904.dts  |  19 -
 .../files-4.9/arch/arm/boot/dts/imx6q-gw5904.dts   |  23 -
 .../arch/arm/boot/dts/imx6qdl-gw5904.dtsi  | 629 -
 ...-imx-add-gateworks-ventana-gw5904-support.patch |  18 -
 target/linux/imx6/patches-4.9/100-bootargs.patch   |  11 -
 .../linux/imx6/patches-4.9/200-disable-msi.patch   |  22 -
 .../imx6/patches-4.9/210-disable-uart-dma.patch|  23 -
 8 files changed, 1242 deletions(-)
 delete mode 100644 target/linux/imx6/config-4.9
 delete mode 100644 
target/linux/imx6/files-4.9/arch/arm/boot/dts/imx6dl-gw5904.dts
 delete mode 100644 
target/linux/imx6/files-4.9/arch/arm/boot/dts/imx6q-gw5904.dts
 delete mode 100644 
target/linux/imx6/files-4.9/arch/arm/boot/dts/imx6qdl-gw5904.dtsi
 delete mode 100644 
target/linux/imx6/patches-4.9/0001-arm-dts-imx-add-gateworks-ventana-gw5904-support.patch
 delete mode 100644 target/linux/imx6/patches-4.9/100-bootargs.patch
 delete mode 100644 target/linux/imx6/patches-4.9/200-disable-msi.patch
 delete mode 100644 target/linux/imx6/patches-4.9/210-disable-uart-dma.patch

diff --git a/target/linux/imx6/config-4.9 b/target/linux/imx6/config-4.9
deleted file mode 100644
index 12ba566..000
--- a/target/linux/imx6/config-4.9
+++ /dev/null
@@ -1,497 +0,0 @@
-CONFIG_AHCI_IMX=y
-CONFIG_ALIGNMENT_TRAP=y
-CONFIG_ARCH_CLOCKSOURCE_DATA=y
-CONFIG_ARCH_HAS_ELF_RANDOMIZE=y
-CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
-CONFIG_ARCH_HAS_RESET_CONTROLLER=y
-CONFIG_ARCH_HAS_SG_CHAIN=y
-CONFIG_ARCH_HAS_TICK_BROADCAST=y
-CONFIG_ARCH_HAVE_CUSTOM_GPIO_H=y
-CONFIG_ARCH_HIBERNATION_POSSIBLE=y
-CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
-CONFIG_ARCH_MMAP_RND_BITS_MAX=15
-CONFIG_ARCH_MULTIPLATFORM=y
-# CONFIG_ARCH_MULTI_CPU_AUTO is not set
-CONFIG_ARCH_MULTI_V6_V7=y
-CONFIG_ARCH_MULTI_V7=y
-CONFIG_ARCH_MXC=y
-CONFIG_ARCH_NR_GPIO=0
-# CONFIG_ARCH_SELECT_MEMORY_MODEL is not set
-# CONFIG_ARCH_SPARSEMEM_DEFAULT is not set
-CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y
-CONFIG_ARCH_SUPPORTS_BIG_ENDIAN=y
-CONFIG_ARCH_SUPPORTS_UPROBES=y
-CONFIG_ARCH_SUSPEND_POSSIBLE=y
-CONFIG_ARCH_USE_BUILTIN_BSWAP=y
-CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y
-CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
-CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
-CONFIG_ARM=y
-CONFIG_ARM_CPU_SUSPEND=y
-CONFIG_ARM_CRYPTO=y
-CONFIG_ARM_ERRATA_754322=y
-CONFIG_ARM_ERRATA_764369=y
-CONFIG_ARM_ERRATA_775420=y
-CONFIG_ARM_GIC=y
-CONFIG_ARM_HAS_SG_CHAIN=y
-CONFIG_ARM_HEAVY_MB=y
-CONFIG_ARM_IMX6Q_CPUFREQ=y
-CONFIG_ARM_L1_CACHE_SHIFT=6
-CONFIG_ARM_L1_CACHE_SHIFT_6=y
-# CONFIG_ARM_LPAE is not set
-CONFIG_ARM_PATCH_IDIV=y
-CONFIG_ARM_PATCH_PHYS_VIRT=y
-CONFIG_ARM_THUMB=y
-# CONFIG_ARM_THUMBEE is not set
-CONFIG_ARM_VIRT_EXT=y
-CONFIG_ASN1=y
-CONFIG_ASSOCIATIVE_ARRAY=y
-CONFIG_ATA=y
-CONFIG_ATAGS=y
-CONFIG_AUTO_ZRELADDR=y
-CONFIG_BLK_MQ_PCI=y
-CONFIG_CACHE_L2X0=y
-CONFIG_CLKDEV_LOOKUP=y
-CONFIG_CLKSRC_IMX_GPT=y
-CONFIG_CLKSRC_MMIO=y
-CONFIG_CLKSRC_OF=y
-CONFIG_CLKSRC_PROBE=y
-CONFIG_CLONE_BACKWARDS=y
-CONFIG_CLZ_TAB=y
-CONFIG_COMMON_CLK=y
-CONFIG_CPUFREQ_DT=y
-CONFIG_CPUFREQ_DT_PLATDEV=y
-CONFIG_CPU_32v6K=y
-CONFIG_CPU_32v7=y
-CONFIG_CPU_ABRT_EV7=y
-# CONFIG_CPU_BIG_ENDIAN is not set
-# CONFIG_CPU_BPREDICT_DISABLE is not set
-CONFIG_CPU_CACHE_V7=y
-CONFIG_CPU_CACHE_VIPT=y
-CONFIG_CPU_COPY_V6=y
-CONFIG_CPU_CP15=y
-CONFIG_CPU_CP15_MMU=y
-CONFIG_CPU_FREQ=y
-CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
-CONFIG_CPU_FREQ_GOV_ATTR_SET=y
-CONFIG_CPU_FREQ_GOV_COMMON=y
-CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
-CONFIG_CPU_FREQ_GOV_ONDEMAND=y
-CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
-CONFIG_CPU_FREQ_GOV_POWERSAVE=y
-CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y
-CONFIG_CPU_FREQ_GOV_USERSPACE=y
-CONFIG_CPU_FREQ_STAT=y
-CONFIG_CPU_FREQ_STAT_DETAILS=y
-CONFIG_CPU_HAS_ASID=y
-# CONFIG_CPU_ICACHE_DISABLE is not set
-CONFIG_CPU_PABRT_V7=y
-CONFIG_CPU_RMAP=y
-CONFIG_CPU_THERMAL=y
-CONFIG_CPU_TLB_V7=y
-CONFIG_CPU_V7=y
-# CONFIG_CRASHLOG is not set
-CONFIG_CRC16=y
-CONFIG_CRYPTO_ABLK_HELPER=y
-CONFIG_CRYPTO_AEAD=y
-CONFIG_CRYPTO_AEAD2=y
-CONFIG_CRYPTO_AES_ARM=y
-CONFIG_CRYPTO_AES_ARM_BS=y
-# CONFIG_CRYPTO_AES_ARM_CE is not set
-CONFIG_CRYPTO_AKCIPHER=y
-CONFIG_CRYPTO_AKCIPHER2=y
-CONFIG_CRYPTO_AUTHENC=y
-CONFIG_CRYPTO_CBC=y
-CONFIG_CRYPTO_CRC32C=y
-CONFIG_CRYPTO_CRYPTD=y
-CONFIG_CRYPTO_CTR=y
-CONFIG_CRYPTO_CTS=y
-CONFIG_CRYPTO_DEFLATE=y
-CONFIG_CRYPTO_DEV_FSL_CAAM=y
-CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API=y
-CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API=y
-# CONFIG_CRYPTO_DEV_FSL_CAAM_DEBUG is not set
-CONFIG_CRYPTO_DEV_FSL_CAAM_IMX=y
-# CONFIG_CRYPTO_DEV_FSL_CAAM_INTC is not set
-CONFIG_CRYPTO_DEV_FSL_CAAM_JR=y
-CONFIG_CRYPTO_DEV_FSL_CAAM_PKC_API=y
-CONFIG_CRYPTO_DEV_FSL_CAAM_RINGSIZE=9
-CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API=y
-# CONFIG_CRYPTO_DEV_MXC_SCC is not set
-CONFIG_CRYPTO_DRBG=y
-CONFIG_CRYPTO_DRBG_HMAC=y
-CONFIG_CRYPTO_DRBG_MENU=y
-CONFIG_CRYPTO_ECB=y
-CONFIG_CRYPTO_GF128MUL=y
-# CONFIG_CRYPTO_GHASH_ARM_CE is not set
-CONFIG_CRYPTO_HASH=y

Re: [OpenWrt-Devel] [LEDE-DEV] [PATCH] add support for OCTEON TX target

2018-02-15 Thread Tim Harvey
On Tue, Feb 13, 2018 at 12:51 PM, Hauke Mehrtens  wrote:
> On 02/13/2018 09:46 PM, Hauke Mehrtens wrote:
>> Hi Tim,
>>
>> sorry that I haven't reviewed this earlyer, but now I saw some problems,
>> see my comments inline.
>>
>> Can you please create a follow up patch based on current master branch.

Hauke,

Thanks for your review! Looks like John committed already (thanks
John!) but I will send followup patches for the things you point out.

comments/questions below;


>>> diff --git a/target/linux/octeontx/Makefile b/target/linux/octeontx/Makefile
>>> new file mode 100644
>>> index 000..bbe8149
>>> --- /dev/null
>>> +++ b/target/linux/octeontx/Makefile
>>> @@ -0,0 +1,27 @@
>>> +#
>>> +# Copyright (C) 2018 OpenWrt.org
>>> +#
>>> +# This is free software, licensed under the GNU General Public License v2.
>>> +# See /LICENSE for more information.
>>> +#
>>> +include $(TOPDIR)/rules.mk
>>> +
>>> +ARCH:=aarch64
>>> +BOARD:=octeontx
>>> +BOARDNAME:=Octeon-TX
>>> +FEATURES:=targz pcie gpio rtc usb
>>
>> I think you should define fpu here, but arm64 anyway has a fpu.
>>
>>> +CFLAGS:=-Os -pipe -fno-caller-saves
>>
>> You should not define CFLAGS for the toolchain as this will also leak
>> into other targets if they share the same toolchain.
>>
>> Can you try to remove the CFLAGS setting if it still works?
>> The build system will then set it to "-Os -pipe -mcpu=generic"

I'll add fpu and remove CFLAGS after testing.

>>
>>> +
>>> +MAINTAINER:=Tim Harvey 
>>> +
>>> +KERNEL_PATCHVER:=4.14
>>> +
>>> +define Target/Description
>>> +Build images for Octeon-TX CN80XX/CN81XX based boards
>>> +endef
>>> +
>>> +include $(INCLUDE_DIR)/target.mk
>>> +
>>> +KERNELNAME:=Image
>>> +
>>> +$(eval $(call BuildTarget))
>> 
>>> diff --git a/target/linux/octeontx/config-4.14 
>>> b/target/linux/octeontx/config-4.14
>>> new file mode 100644
>>> index 000..97d0cc6
>>> --- /dev/null
>>> +++ b/target/linux/octeontx/config-4.14
>>> @@ -0,0 +1,670 @@
>> .
>>> +# CONFIG_CRYPTO_SHA512_ARM64 is not set
>>> +CONFIG_CRYPTO_SIMD=y
>>> +CONFIG_CRYPTO_WORKQUEUE=y
>>> +CONFIG_DCACHE_WORD_ACCESS=y
>>> +# CONFIG_DEBUG_ALIGN_RODATA is not set
>>> +# CONFIG_DEBUG_BLK_CGROUP is not set
>>> +CONFIG_DEBUG_INFO=y
>>
>> Is this needed by default?

no - will remove

>>
>>> +CONFIG_DEFAULT_IOSCHED="noop"
>>> +CONFIG_DEFAULT_NOOP=y
>>> +# CONFIG_DEVPORT is not set
>>> +CONFIG_DEVTMPFS=y
>>> +CONFIG_DEVTMPFS_MOUNT=y
>>> +CONFIG_DMADEVICES=y
>>> +CONFIG_DMA_CMA=y
>>> +CONFIG_DMA_ENGINE=y
>>> +# CONFIG_DMA_NOOP_OPS is not set
>>> +CONFIG_DMA_OF=y
>>> +CONFIG_DMA_SHARED_BUFFER=y
>>> +# CONFIG_DMA_VIRT_OPS is not set
>>> +CONFIG_DNS_RESOLVER=y
>>> +# CONFIG_DRM_LIB_RANDOM is not set
>>> +CONFIG_DTC=y
>>> +CONFIG_DT_IDLE_STATES=y
>>> +CONFIG_EDAC=y
>>> +# CONFIG_EDAC_DEBUG is not set
>>> +CONFIG_EDAC_LEGACY_SYSFS=y
>>> +CONFIG_EDAC_SUPPORT=y
>>> +CONFIG_EDAC_THUNDERX=y
>>> +# CONFIG_EDAC_XGENE is not set
>>> +CONFIG_EEPROM_AT24=y
>>> +# CONFIG_EVM is not set
>>> +CONFIG_EXT2_FS=y
>>> +CONFIG_EXT3_FS=y
>>
>> Please activate ext2 and 3 support in ext4 instead.

done - I actually am removing all EXT static as I believe F2FS is
preferred for MMC.

>>
>>> +# CONFIG_EXT3_FS_POSIX_ACL is not set
>>> +# CONFIG_EXT3_FS_SECURITY is not set
>>> +CONFIG_EXT4_FS=y
>>> +CONFIG_EXT4_FS_POSIX_ACL=y
>>> +# CONFIG_F2FS_CHECK_FS is not set
>>> +CONFIG_F2FS_FS=y
>>> +# CONFIG_F2FS_FS_SECURITY is not set
>>> +CONFIG_F2FS_FS_XATTR=y
>>> +CONFIG_F2FS_STAT_FS=y
>> ...
>>
>> You should run "make kernel_oldconfig" to refresh the configuration.

I did and it didn't change target/linux/octeontx/config-4.14?

>
> Please do not deactivate all the CONFIG_NET_VENDOR* options.

That makes sense in general as they are all enabled in
target/linux/generic/config-4.14 to allow inclusion of modules. I do
see there are several targets that undef them like I did.

I did find that undefining them prompts for QCA7000_UART - I'll submit
a patch that undefs that in target/linux/generic/config-4.14.

Are there a set of general rules when preparing new target kernel
configs or updating kernel configs for new kernel versions?

>
>>
>> There is also something missing in this configuration or in the generic
>> one, see this error from the build bot:
>> http://phase1.builds.lede-project.org/builders/octeontx%2Fgeneric/builds/0/steps/kmods/logs/stdio
>>
>> Please test compile it with this configuration:
>> CONFIG_TARGET_octeontx=y
>> CONFIG_TARGET_octeontx_Default=y
>> CONFIG_TARGET_BOARD="octeontx"
>> CONFIG_ALL_KMODS=y
>>
>

I haven't encountered any issues with those configs. I'm not quite
clear how to reproduce the failure from
http://phase1.builds.lede-project.org/builders/octeontx%2Fgeneric/builds/0/steps/kmods/logs/stdio.

Regards,

Tim
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 1/8] octeontx: add USB_PCI support

2018-02-20 Thread Tim Harvey
The CN80XX XHCI is supported through PCI

Signed-off-by: Tim Harvey 
---
 target/linux/octeontx/config-4.14 | 7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/target/linux/octeontx/config-4.14 
b/target/linux/octeontx/config-4.14
index 97d0cc6..c56a27d 100644
--- a/target/linux/octeontx/config-4.14
+++ b/target/linux/octeontx/config-4.14
@@ -70,7 +70,6 @@ CONFIG_ARM_GIC=y
 CONFIG_ARM_GIC_V2M=y
 CONFIG_ARM_GIC_V3=y
 CONFIG_ARM_GIC_V3_ITS=y
-# CONFIG_ARM_PSCI_CHECKER is not set
 CONFIG_ARM_PSCI_FW=y
 CONFIG_ARM_SBSA_WATCHDOG=y
 # CONFIG_ARM_SP805_WATCHDOG is not set
@@ -195,7 +194,6 @@ CONFIG_CRYPTO_SHA2_ARM64_CE=y
 CONFIG_CRYPTO_SIMD=y
 CONFIG_CRYPTO_WORKQUEUE=y
 CONFIG_DCACHE_WORD_ACCESS=y
-# CONFIG_DEBUG_ALIGN_RODATA is not set
 # CONFIG_DEBUG_BLK_CGROUP is not set
 CONFIG_DEBUG_INFO=y
 CONFIG_DEFAULT_IOSCHED="noop"
@@ -222,6 +220,7 @@ CONFIG_EDAC_THUNDERX=y
 # CONFIG_EDAC_XGENE is not set
 CONFIG_EEPROM_AT24=y
 # CONFIG_EVM is not set
+CONFIG_EXPORTFS=y
 CONFIG_EXT2_FS=y
 CONFIG_EXT3_FS=y
 # CONFIG_EXT3_FS_POSIX_ACL is not set
@@ -537,7 +536,6 @@ CONFIG_POWER_RESET=y
 CONFIG_POWER_RESET_SYSCON=y
 CONFIG_POWER_RESET_XGENE=y
 CONFIG_POWER_SUPPLY=y
-CONFIG_PRINTK_SAFE_LOG_BUF_SHIFT=13
 CONFIG_PRINT_QUOTA_WARNING=y
 CONFIG_PROC_PID_CPUSET=y
 CONFIG_PROC_VMCORE=y
@@ -649,8 +647,11 @@ CONFIG_TREE_SRCU=y
 CONFIG_USB=y
 CONFIG_USB_COMMON=y
 # CONFIG_USB_EHCI_HCD is not set
+CONFIG_USB_PCI=y
 CONFIG_USB_SUPPORT=y
+# CONFIG_USB_UHCI_HCD is not set
 CONFIG_USB_XHCI_HCD=y
+CONFIG_USB_XHCI_PCI=y
 CONFIG_USB_XHCI_PLATFORM=y
 CONFIG_USE_PERCPU_NUMA_NODE_ID=y
 CONFIG_VIRTIO=y
-- 
2.7.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 2/8] octeontx: remove static EXT2/3/4 FS support

2018-02-20 Thread Tim Harvey
We are using F2FS as our overlay read/write FS. Others can be supported
as modules.

Signed-off-by: Tim Harvey 
---
 target/linux/octeontx/config-4.14 | 9 -
 1 file changed, 9 deletions(-)

diff --git a/target/linux/octeontx/config-4.14 
b/target/linux/octeontx/config-4.14
index c56a27d..34533ef 100644
--- a/target/linux/octeontx/config-4.14
+++ b/target/linux/octeontx/config-4.14
@@ -221,12 +221,6 @@ CONFIG_EDAC_THUNDERX=y
 CONFIG_EEPROM_AT24=y
 # CONFIG_EVM is not set
 CONFIG_EXPORTFS=y
-CONFIG_EXT2_FS=y
-CONFIG_EXT3_FS=y
-# CONFIG_EXT3_FS_POSIX_ACL is not set
-# CONFIG_EXT3_FS_SECURITY is not set
-CONFIG_EXT4_FS=y
-CONFIG_EXT4_FS_POSIX_ACL=y
 # CONFIG_F2FS_CHECK_FS is not set
 CONFIG_F2FS_FS=y
 # CONFIG_F2FS_FS_SECURITY is not set
@@ -239,8 +233,6 @@ CONFIG_FIXED_PHY=y
 CONFIG_FIX_EARLYCON_MEM=y
 CONFIG_FRAME_POINTER=y
 CONFIG_FREEZER=y
-CONFIG_FS_MBCACHE=y
-CONFIG_FS_POSIX_ACL=y
 CONFIG_FUTEX_PI=y
 CONFIG_GENERIC_ALLOCATOR=y
 CONFIG_GENERIC_ARCH_TOPOLOGY=y
@@ -363,7 +355,6 @@ CONFIG_IRQ_FORCED_THREADING=y
 CONFIG_IRQ_TIME_ACCOUNTING=y
 CONFIG_IRQ_WORK=y
 # CONFIG_ISDN is not set
-CONFIG_JBD2=y
 CONFIG_JUMP_LABEL=y
 CONFIG_KEXEC=y
 CONFIG_KEXEC_CORE=y
-- 
2.7.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 3/8] octeontx: add FAT FS support to kernel

2018-02-20 Thread Tim Harvey
The CN80XX Boot firmware uses an embedded FAT12 filesystem. For some reason
busybox can't mount this unless its enabled static in the kernel.

Signed-off-by: Tim Harvey 
---
 target/linux/octeontx/config-4.14 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/target/linux/octeontx/config-4.14 
b/target/linux/octeontx/config-4.14
index 34533ef..2efac7c 100644
--- a/target/linux/octeontx/config-4.14
+++ b/target/linux/octeontx/config-4.14
@@ -229,6 +229,7 @@ CONFIG_F2FS_STAT_FS=y
 CONFIG_FAIR_GROUP_SCHED=y
 CONFIG_FANOTIFY=y
 CONFIG_FANOTIFY_ACCESS_PERMISSIONS=y
+CONFIG_FAT_FS=y
 CONFIG_FIXED_PHY=y
 CONFIG_FIX_EARLYCON_MEM=y
 CONFIG_FRAME_POINTER=y
@@ -387,6 +388,7 @@ CONFIG_MMC_BLOCK=y
 CONFIG_MMC_CAVIUM_THUNDERX=y
 # CONFIG_MMC_TIFM_SD is not set
 CONFIG_MODULES_USE_ELF_RELA=y
+CONFIG_MSDOS_FS=y
 # CONFIG_MTD is not set
 CONFIG_MUTEX_SPIN_ON_OWNER=y
 CONFIG_NEED_DMA_MAP_STATE=y
-- 
2.7.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 4/8] octeontx: remove CFLAGS

2018-02-20 Thread Tim Harvey
You should not define CFLAGS for the toolchain as this will also leak
into other targets if they share the same toolchain.

Cc: Hauke Mehrtens 
Signed-off-by: Tim Harvey 
---
 target/linux/octeontx/Makefile | 1 -
 1 file changed, 1 deletion(-)

diff --git a/target/linux/octeontx/Makefile b/target/linux/octeontx/Makefile
index bbe8149..ecac152 100644
--- a/target/linux/octeontx/Makefile
+++ b/target/linux/octeontx/Makefile
@@ -10,7 +10,6 @@ ARCH:=aarch64
 BOARD:=octeontx
 BOARDNAME:=Octeon-TX
 FEATURES:=targz pcie gpio rtc usb
-CFLAGS:=-Os -pipe -fno-caller-saves
 
 MAINTAINER:=Tim Harvey 
 
-- 
2.7.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 6/8] octeontx: remove unnecessary CONFIG_DEBUG_INFO

2018-02-20 Thread Tim Harvey
Cc: Hauke Mehrtens 
Signed-off-by: Tim Harvey 
---
 target/linux/octeontx/config-4.14 | 1 -
 1 file changed, 1 deletion(-)

diff --git a/target/linux/octeontx/config-4.14 
b/target/linux/octeontx/config-4.14
index 2efac7c..a6f762c 100644
--- a/target/linux/octeontx/config-4.14
+++ b/target/linux/octeontx/config-4.14
@@ -195,7 +195,6 @@ CONFIG_CRYPTO_SIMD=y
 CONFIG_CRYPTO_WORKQUEUE=y
 CONFIG_DCACHE_WORD_ACCESS=y
 # CONFIG_DEBUG_BLK_CGROUP is not set
-CONFIG_DEBUG_INFO=y
 CONFIG_DEFAULT_IOSCHED="noop"
 CONFIG_DEFAULT_NOOP=y
 # CONFIG_DEVPORT is not set
-- 
2.7.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 5/8] octeontx: add fpu support

2018-02-20 Thread Tim Harvey
Cc: Hauke Mehrtens 
Signed-off-by: Tim Harvey 
---
 target/linux/octeontx/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/octeontx/Makefile b/target/linux/octeontx/Makefile
index ecac152..e7f6b2d 100644
--- a/target/linux/octeontx/Makefile
+++ b/target/linux/octeontx/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 ARCH:=aarch64
 BOARD:=octeontx
 BOARDNAME:=Octeon-TX
-FEATURES:=targz pcie gpio rtc usb
+FEATURES:=targz pcie gpio rtc usb fpu
 
 MAINTAINER:=Tim Harvey 
 
-- 
2.7.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 7/8] octeontx: remove undefs of CONFIG_NET_VENDOR_*

2018-02-20 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
 target/linux/octeontx/config-4.14 | 52 ---
 1 file changed, 52 deletions(-)

diff --git a/target/linux/octeontx/config-4.14 
b/target/linux/octeontx/config-4.14
index a6f762c..114fc38 100644
--- a/target/linux/octeontx/config-4.14
+++ b/target/linux/octeontx/config-4.14
@@ -398,58 +398,6 @@ CONFIG_NEED_SG_DMA_LENGTH=y
 # CONFIG_NET_CADENCE is not set
 # CONFIG_NET_CLS_CGROUP is not set
 CONFIG_NET_FLOW_LIMIT=y
-# CONFIG_NET_VENDOR_3COM is not set
-# CONFIG_NET_VENDOR_ADAPTEC is not set
-# CONFIG_NET_VENDOR_AGERE is not set
-# CONFIG_NET_VENDOR_ALACRITECH is not set
-# CONFIG_NET_VENDOR_ALTEON is not set
-# CONFIG_NET_VENDOR_AMAZON is not set
-# CONFIG_NET_VENDOR_AMD is not set
-# CONFIG_NET_VENDOR_AQUANTIA is not set
-# CONFIG_NET_VENDOR_ARC is not set
-# CONFIG_NET_VENDOR_ATHEROS is not set
-# CONFIG_NET_VENDOR_AURORA is not set
-# CONFIG_NET_VENDOR_BROADCOM is not set
-# CONFIG_NET_VENDOR_BROCADE is not set
-# CONFIG_NET_VENDOR_CHELSIO is not set
-# CONFIG_NET_VENDOR_CISCO is not set
-# CONFIG_NET_VENDOR_DEC is not set
-# CONFIG_NET_VENDOR_DLINK is not set
-# CONFIG_NET_VENDOR_EMULEX is not set
-# CONFIG_NET_VENDOR_EXAR is not set
-# CONFIG_NET_VENDOR_EZCHIP is not set
-# CONFIG_NET_VENDOR_HISILICON is not set
-# CONFIG_NET_VENDOR_HP is not set
-# CONFIG_NET_VENDOR_HUAWEI is not set
-# CONFIG_NET_VENDOR_INTEL is not set
-# CONFIG_NET_VENDOR_MARVELL is not set
-# CONFIG_NET_VENDOR_MELLANOX is not set
-# CONFIG_NET_VENDOR_MICREL is not set
-# CONFIG_NET_VENDOR_MICROCHIP is not set
-# CONFIG_NET_VENDOR_MYRI is not set
-# CONFIG_NET_VENDOR_NATSEMI is not set
-# CONFIG_NET_VENDOR_NETRONOME is not set
-# CONFIG_NET_VENDOR_NVIDIA is not set
-# CONFIG_NET_VENDOR_OKI is not set
-# CONFIG_NET_VENDOR_QLOGIC is not set
-# CONFIG_NET_VENDOR_QUALCOMM is not set
-# CONFIG_NET_VENDOR_RDC is not set
-# CONFIG_NET_VENDOR_REALTEK is not set
-# CONFIG_NET_VENDOR_RENESAS is not set
-# CONFIG_NET_VENDOR_ROCKER is not set
-# CONFIG_NET_VENDOR_SAMSUNG is not set
-# CONFIG_NET_VENDOR_SEEQ is not set
-# CONFIG_NET_VENDOR_SILAN is not set
-# CONFIG_NET_VENDOR_SIS is not set
-# CONFIG_NET_VENDOR_SMSC is not set
-# CONFIG_NET_VENDOR_SOLARFLARE is not set
-# CONFIG_NET_VENDOR_STMICRO is not set
-# CONFIG_NET_VENDOR_SUN is not set
-# CONFIG_NET_VENDOR_SYNOPSYS is not set
-# CONFIG_NET_VENDOR_TEHUTI is not set
-# CONFIG_NET_VENDOR_TI is not set
-# CONFIG_NET_VENDOR_VIA is not set
-# CONFIG_NET_VENDOR_WIZNET is not set
 CONFIG_NFS_FS=y
 CONFIG_NFS_USE_KERNEL_DNS=y
 # CONFIG_NFS_USE_LEGACY_DNS is not set
-- 
2.7.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 8/8] kernel: add missing symbol

2018-02-20 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
 target/linux/generic/config-4.14 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/linux/generic/config-4.14 b/target/linux/generic/config-4.14
index f7d9cca..6d3a207 100644
--- a/target/linux/generic/config-4.14
+++ b/target/linux/generic/config-4.14
@@ -3577,6 +3577,7 @@ CONFIG_PWRSEQ_EMMC=y
 CONFIG_PWRSEQ_SIMPLE=y
 # CONFIG_QCA7000 is not set
 # CONFIG_QCA7000_SPI is not set
+# CONFIG_QCA7000_UART is not set
 # CONFIG_QCOM_EMAC is not set
 # CONFIG_QCOM_FALKOR_ERRATUM_1003 is not set
 # CONFIG_QCOM_FALKOR_ERRATUM_1009 is not set
-- 
2.7.4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [LEDE-DEV] [PATCH 2/8] octeontx: remove static EXT2/3/4 FS support

2018-02-21 Thread Tim Harvey
On Wed, Feb 21, 2018 at 2:36 PM, Felix Fietkau  wrote:
> On 2018-02-20 19:23, Tim Harvey wrote:
>> We are using F2FS as our overlay read/write FS. Others can be supported
>> as modules.
>>
>> Signed-off-by: Tim Harvey 
> I think it would be a good idea to leave in ext4. If the overlay storage
> area is too small for f2fs, fstools chooses ext4 instead.
>
> - Felix

Felix,

That makes sense. I think the other patches apply if that one is
skipped, or would you rather I re-submit a new sieres (assuming there
is no other feedback)

Tim
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [LEDE-DEV] [PATCH 2/8] octeontx: remove static EXT2/3/4 FS support

2018-02-22 Thread Tim Harvey
On Thu, Feb 22, 2018 at 4:14 AM, Felix Fietkau  wrote:
> On 2018-02-22 09:34, Felix Fietkau wrote:
>> On 2018-02-22 01:12, Tim Harvey wrote:
>>> On Wed, Feb 21, 2018 at 2:36 PM, Felix Fietkau  wrote:
>>>> On 2018-02-20 19:23, Tim Harvey wrote:
>>>>> We are using F2FS as our overlay read/write FS. Others can be supported
>>>>> as modules.
>>>>>
>>>>> Signed-off-by: Tim Harvey 
>>>> I think it would be a good idea to leave in ext4. If the overlay storage
>>>> area is too small for f2fs, fstools chooses ext4 instead.
>>>>
>>>> - Felix
>>>
>>> Felix,
>>>
>>> That makes sense. I think the other patches apply if that one is
>>> skipped, or would you rather I re-submit a new sieres (assuming there
>>> is no other feedback)
>> No need to resubmit the series, you can send an updated version of this
>> patch (removing only ext2/ext3) separately.
> No need to do that anymore. It turns out that there were a lot more
> bogus config overrides in that target, some of them breaking the build
> in various other places.
>
> I've cleaned it up and verified that a build with all kernel modules
> enabled now actually works ;)
>
> - Felix

Thanks Felix!

Can you explain what I could have done to see or catch these? Is this
something that came up because it was a new target arch or is it
something to look out for when bumping from one kernel to another as
well? I'm not clear what the best practices are for creating a kernel
config for OpenWrt.

Regards,

Tim
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] kernel: add igb kernel module

2014-07-02 Thread Tim Harvey
Added igb kernel module which supports a variety of Intel GigE PCIe devices

Signed-off-by: Tim Harvey 
---
 package/kernel/linux/modules/netdevices.mk | 18 ++
 1 file changed, 18 insertions(+)

diff --git a/package/kernel/linux/modules/netdevices.mk 
b/package/kernel/linux/modules/netdevices.mk
index 221eb2f..77c71fc 100644
--- a/package/kernel/linux/modules/netdevices.mk
+++ b/package/kernel/linux/modules/netdevices.mk
@@ -443,6 +443,24 @@ endef
 $(eval $(call KernelPackage,e1000e))
 
 
+define KernelPackage/igb
+  SUBMENU:=$(NETWORK_DEVICES_MENU)
+  TITLE:=Intel(R) 82575/82576 PCI-Express Gigabit Ethernet support"
+  DEPENDS:=@PCI_SUPPORT +kmod-i2c-algo +kmod-i2c-algo-bit
+  KCONFIG:=CONFIG_IGB \
+CONFIG_IGB_HWMON=n \
+CONFIG_IGB_DCA=n
+  FILES:=$(LINUX_DIR)/drivers/net/ethernet/intel/igb/igb.ko
+  AUTOLOAD:=$(call AutoLoad,35,igb)
+endef
+
+define KernelPackage/igb/description
+ Kernel modules for Intel(R) 82575/82576 PCI-Express Gigabit Ethernet adapters.
+endef
+
+$(eval $(call KernelPackage,igb))
+
+
 define KernelPackage/b44
   TITLE:=Broadcom 44xx driver
   KCONFIG:=CONFIG_B44
-- 
1.8.3.2
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] imx6: kernel: 3.14: backport IMX6DL DVFS support from 3.15

2014-07-02 Thread Tim Harvey
This allows dynamic voltage and frequency scaling to work for IMX6DL CPU's

Signed-off-by: Tim Harvey 
---
 ...070-ARM-dts-imx6dl-enable-cpufreq-support.patch | 48 ++
 1 file changed, 48 insertions(+)
 create mode 100644 
target/linux/imx6/patches-3.14/0070-ARM-dts-imx6dl-enable-cpufreq-support.patch

diff --git 
a/target/linux/imx6/patches-3.14/0070-ARM-dts-imx6dl-enable-cpufreq-support.patch
 
b/target/linux/imx6/patches-3.14/0070-ARM-dts-imx6dl-enable-cpufreq-support.patch
new file mode 100644
index 000..56447b4
--- /dev/null
+++ 
b/target/linux/imx6/patches-3.14/0070-ARM-dts-imx6dl-enable-cpufreq-support.patch
@@ -0,0 +1,48 @@
+From 978ed904c17cd39700a5e1f95ee29ef4fee08ce9 Mon Sep 17 00:00:00 2001
+From: Anson Huang 
+Date: Thu, 19 Dec 2013 10:02:10 -0500
+Subject: [PATCH] ARM: dts: imx6dl: enable cpufreq support
+
+This patch adds cpufreq dts for i.mx6dl to support cpufreq driver.
+
+Signed-off-by: Anson Huang 
+Signed-off-by: Shawn Guo 
+Signed-off-by: Tim Harvey 
+---
+ arch/arm/boot/dts/imx6dl.dtsi | 20 
+ 1 file changed, 20 insertions(+)
+
+diff --git a/arch/arm/boot/dts/imx6dl.dtsi b/arch/arm/boot/dts/imx6dl.dtsi
+index 80d0abe..9c4942f 100644
+--- a/arch/arm/boot/dts/imx6dl.dtsi
 b/arch/arm/boot/dts/imx6dl.dtsi
+@@ -22,6 +22,26 @@
+   device_type = "cpu";
+   reg = <0>;
+   next-level-cache = <&L2>;
++  operating-points = <
++  /* kHzuV */
++  996000  1275000
++  792000  1175000
++  396000  1075000
++  >;
++  fsl,soc-operating-points = <
++  /* ARM kHz  SOC-PU uV */
++  996000  1175000
++  792000  1175000
++  396000  1175000
++  >;
++  clock-latency = <61036>; /* two CLK32 periods */
++  clocks = <&clks 104>, <&clks 6>, <&clks 16>,
++   <&clks 17>, <&clks 170>;
++  clock-names = "arm", "pll2_pfd2_396m", "step",
++"pll1_sw", "pll1_sys";
++  arm-supply = <®_arm>;
++  pu-supply = <®_pu>;
++  soc-supply = <®_soc>;
+   };
+ 
+   cpu@1 {
+-- 
+1.8.3.2
+
-- 
1.8.3.2
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Help with SysupgradeNAND

2014-07-09 Thread Tim Harvey
On Wed, Jul 9, 2014 at 12:48 AM, John Crispin  wrote:
>
>
> On 09/07/2014 09:14, Andre Valentin wrote:
>> Hi!
>>
>> I also noticed after upgrading that routers with jffs2 in ubi
>> (rootfs_data) are not supported anymore. The jffs2 is not mounted
>> after an upgrade, resulting in loss of configuration. I had to
>> clear rootfs_data to be able to mount it again as ubifs. That's
>> okay if you know it!
>>
>
> i think using squash+ubifs is a better option as we dont need to use
> the gluebi layer anymore. this makes the whole setup a lot nice i
> think. that is why jffs2 support for nand is gone. however i am open
> to hear use cases for why jffs2 support should be added for nand.

One of the reasons why I didn't even consider jffs2 for IMX6 is that
the IMX6 NAND controller with hardware ECC support uses the entire OOB
area which was needed by jffs2. Their might be support in jffs2 now
for not using OOB data but ubi/ubifs does seem to be the popular
choice these days for NAND based filesystems.

Tim
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 2/2] imx6: bootscript: use partition UUID for rootfs if possible

2019-10-02 Thread Tim Harvey
Specifying root filesystem by device is non-deterministic for several reasons:
 - USB device unmeration order is not garunteeed for USB storage devs
 - MMC devs ordering is determined by the instance of the MMC host controller
   including non-storage SDIO devices which can throw off numbering depending
   on kernel versions.

It is recommended to use partition UUID

Signed-off-by: Tim Harvey 
---
 target/linux/imx6/image/bootscript-ventana | 34 ++
 1 file changed, 20 insertions(+), 14 deletions(-)

diff --git a/target/linux/imx6/image/bootscript-ventana 
b/target/linux/imx6/image/bootscript-ventana
index 8451caf..06e2015 100644
--- a/target/linux/imx6/image/bootscript-ventana
+++ b/target/linux/imx6/image/bootscript-ventana
@@ -1,4 +1,4 @@
-echo "Gateworks Ventana OpenWrt Boot script v1.02"
+echo "Gateworks Ventana OpenWrt Boot script v1.03"
 
 # set some defaults
 # set some defaults
@@ -9,7 +9,7 @@ setenv bootargs console=${console},${baudrate}
 setenv loadaddr 1080
 setenv fdt_addr 1800
 
-# detect dtype and bootdev by looking for kernel on media the bootloader
+# detect dtype by looking for kernel on media the bootloader
 # has mounted (in order of preference: usb/mmc/sata)
 #
 # This assumes the bootloader has already started the respective subsystem
@@ -31,18 +31,9 @@ else
fi
echo "detected dtype:$dtype"
 fi
-if test -n "$bootdev" ; then
-   echo "Using bootdev from env: $bootdev"
-else
-   if itest.s "x${dtype}" == "xmmc" ; then
-   bootdev=mmcblk0p1
-   else
-   bootdev=sda1
-   fi
-fi
 
+echo "Booting from ${dtype}..."
 if itest.s "x${dtype}" == "xnand" ; then
-   echo "Booting from NAND..."
# fix partition name
#  OpenWrt kernel bug prevents partition name of 'rootfs' from booting
#  instead name the partition ubi which is what is looked for by
@@ -54,9 +45,24 @@ if itest.s "x${dtype}" == "xnand" ; then
# enable UBI fastmap support
setenv bootargs "${bootargs} ubi.fm_autoconvert=1"
 else
-   echo "Booting from block device ${bootdev}..."
setenv fsload "${fs}load ${dtype} ${disk}:1"
-   setenv root "root=/dev/${bootdev} rootfstype=${fs} rootwait rw"
+   part uuid ${dtype} ${disk}:1 uuid
+   if test -z "${uuid}"; then
+   # fallback to bootdev
+   if test -n "$bootdev" ; then
+   echo "Using bootdev from env: $bootdev"
+   else
+   if itest.s "x${dtype}" == "xmmc" ; then
+   bootdev=mmcblk0p1
+   else
+   bootdev=sda1
+   fi
+   fi
+   setenv root "root=/dev/${bootdev}"
+   else
+   setenv root "root=PARTUUID=${uuid}"
+   fi
+   setenv root "$root rootfstype=${fs} rootwait rw"
 fi
 
 setenv bootargs "${bootargs}" "${root}" "${video}" "${extra}"
-- 
2.7.4


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 1/2] imx6: bootscript: enable UBI fastmap support

2019-10-02 Thread Tim Harvey
UBI Fastmap support is stable in the 4.4 kernel so lets take
advantage of it to shave off 5-10 seconds of boot time.

Signed-off-by: Tim Harvey 
---
 target/linux/imx6/image/bootscript-ventana | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/target/linux/imx6/image/bootscript-ventana 
b/target/linux/imx6/image/bootscript-ventana
index 941afb5..8451caf 100644
--- a/target/linux/imx6/image/bootscript-ventana
+++ b/target/linux/imx6/image/bootscript-ventana
@@ -1,4 +1,4 @@
-echo "Gateworks Ventana OpenWrt Boot script v1.01"
+echo "Gateworks Ventana OpenWrt Boot script v1.02"
 
 # set some defaults
 # set some defaults
@@ -51,6 +51,8 @@ if itest.s "x${dtype}" == "xnand" ; then
echo "mtdparts:${mtdparts}"
setenv fsload ubifsload
setenv root "ubi0:ubi ubi.mtd=2 rootfstype=squashfs,ubifs"
+   # enable UBI fastmap support
+   setenv bootargs "${bootargs} ubi.fm_autoconvert=1"
 else
echo "Booting from block device ${bootdev}..."
setenv fsload "${fs}load ${dtype} ${disk}:1"
-- 
2.7.4


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] uboot-envtools: remove erasesize from MMC config

2019-10-02 Thread Tim Harvey
Erasesize doesn't belong in the u-boot env config for block devices as it is
known to be 512 byte aligned.

Signed-off-by: Tim Harvey 
---
 package/boot/uboot-envtools/files/imx6 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/boot/uboot-envtools/files/imx6 
b/package/boot/uboot-envtools/files/imx6
index fb05f13..330efb2 100644
--- a/package/boot/uboot-envtools/files/imx6
+++ b/package/boot/uboot-envtools/files/imx6
@@ -24,8 +24,8 @@ apalis*)
ubootenv_add_uci_config /dev/mtd1 0x8 0x2 0x4
else
# board boots from microSD
-   ubootenv_add_uci_config /dev/mmcblk0 0xb1400 0x2 0x2
-   ubootenv_add_uci_config /dev/mmcblk0 0xd1400 0x2 0x2
+   ubootenv_add_uci_config /dev/mmcblk0 0xb1400 0x2
+   ubootenv_add_uci_config /dev/mmcblk0 0xd1400 0x2
fi
;;
 wandboard)
-- 
2.7.4


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] troubleshooting kernel bump from 4.14 to 4.19 causing userspace crash with libgcc_s.so.1 missing

2019-10-07 Thread Tim Harvey
Greetings,

I'm trying to bump the octeontx kernel from 4.14 to 4.19 which it
seems should be trivial but I keep ending up with userspace failing
with:

[7.080332] Run /init as init process
Error loading shared library libgcc_s.so.1: No such file or directory
(needed by /init)
[7.120297] Kernel panic - not syncing: Attempted to kill init!
exitcode=0x7f00

I'm using the simplest config I can think of which is:
CONFIG_TARGET_octeontx=y
CONFIG_TARGET_ROOTFS_INITRAMFS=y

after building 
build_dir/target-aarch64_generic_musl/root-octeontx/lib/libgcc_s.so.1
is present

I'm guessing this is a kernel configuration issue but I'm not clear
what it could be. Comparing the bootup with the same configuration
using 4.14 looks pretty much the same and nothing glaring popped out
at me.

Any ideas?

Regards,

Tim

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] octeontx: fix thunderx BGX underflow irq name

2019-10-25 Thread Tim Harvey
request_irq requires irq names to be static/allocated and not on the stack

Signed-off-by: Tim Harvey 
---
 ...1-net-thunderx-workaround-BGX-TX-Underflow-issue.patch | 15 +++
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git 
a/target/linux/octeontx/patches-4.14/0001-net-thunderx-workaround-BGX-TX-Underflow-issue.patch
 
b/target/linux/octeontx/patches-4.14/0001-net-thunderx-workaround-BGX-TX-Underflow-issue.patch
index ef7aef3..5743745 100644
--- 
a/target/linux/octeontx/patches-4.14/0001-net-thunderx-workaround-BGX-TX-Underflow-issue.patch
+++ 
b/target/linux/octeontx/patches-4.14/0001-net-thunderx-workaround-BGX-TX-Underflow-issue.patch
@@ -15,7 +15,15 @@ Signed-off-by: Tim Harvey 
 
 --- a/drivers/net/ethernet/cavium/thunder/thunder_bgx.c
 +++ b/drivers/net/ethernet/cavium/thunder/thunder_bgx.c
-@@ -1344,6 +1344,54 @@ static int bgx_init_phy(struct bgx *bgx)
+@@ -56,6 +56,7 @@ struct bgx {
+   boolis_dlm;
+   boolis_rgx;
+   int phy_mode;
++  charirq_name[7];
+ };
+ 
+ static struct bgx *bgx_vnic[MAX_BGX_THUNDER];
+@@ -1344,6 +1345,53 @@ static int bgx_init_phy(struct bgx *bgx)
return bgx_init_of_phy(bgx);
  }
  
@@ -49,7 +57,6 @@ Signed-off-by: Tim Harvey 
 +  struct bgx *bgx = pci_get_drvdata(pdev);
 +  struct device *dev = &pdev->dev;
 +  int num_vec, ret;
-+  char irq_name[32];
 +
 +  /* Enable MSI-X */
 +  num_vec = pci_msix_vec_count(pdev);
@@ -58,9 +65,9 @@ Signed-off-by: Tim Harvey 
 +  dev_err(dev, "Req for #%d msix vectors failed\n", num_vec);
 +  return 1;
 +  }
-+  sprintf(irq_name, "BGX%d", bgx->bgx_id);
++  sprintf(bgx->irq_name, "BGX%d", bgx->bgx_id);
 +  ret = request_irq(pci_irq_vector(pdev, GMPX_GMI_TX_INT),
-+  bgx_intr_handler, 0, irq_name, bgx);
++  bgx_intr_handler, 0, bgx->irq_name, bgx);
 +  if (ret)
 +  return 1;
 +
-- 
2.7.4


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] octeontx: fix thunderx BGX underflow irq name

2019-10-28 Thread Tim Harvey
On Sun, Oct 27, 2019 at 6:33 AM Hauke Mehrtens  wrote:
>
> On 10/25/19 11:27 PM, Tim Harvey wrote:
> > request_irq requires irq names to be static/allocated and not on the stack
>
> It would be nice if this patch could also go to the mainline Linux
> kernel, so we do not have to maintain it any more.
>
> John already applied it to OpenWrt.

Hauke,

Agreed - it's on my list along with the other patch for octeontx.

>
> 
> > @@ -58,9 +65,9 @@ Signed-off-by: Tim Harvey 
> >  +dev_err(dev, "Req for #%d msix vectors failed\n", num_vec);
> >  +return 1;
> >  +}
> > -+sprintf(irq_name, "BGX%d", bgx->bgx_id);
> > ++sprintf(bgx->irq_name, "BGX%d", bgx->bgx_id);
>
> I would prefer a snprintf here, it should not overflow as long as gx_id
> is less than 1000, but just to be safe.
>

Agreed - I'll make a note of that.

Thanks,

Tim

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


OpenWrt imx split status?

2021-10-03 Thread Tim Harvey
Piotr,

How is your progress regarding submitting patches to OpenWrt to split
the imx target into multiple arch related subtargets (like cortexa7,
cortexa9)?

Is anyone working on i.MX8 support that you know of? I have seen
people ask for it in the past but nobody has been persistent about it.

Best regards,

Tim

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: OpenWrt imx split status?

2021-10-05 Thread Tim Harvey
On Tue, Oct 5, 2021 at 8:42 AM Piotr Dymacz  wrote:
>
> Hi Tim,
>
> On 04.10.2021 00:22, Tim Harvey wrote:
> > Piotr,
> >
> > How is your progress regarding submitting patches to OpenWrt to split
> > the imx target into multiple arch related subtargets (like cortexa7,
> > cortexa9)?
>
> I'm planning to clean it up and send patches this week.
> I finally got final revision of the hardware I was working on that for.
>

Thanks, please Cc me on those when you submit.

> > Is anyone working on i.MX8 support that you know of? I have seen
> > people ask for it in the past but nobody has been persistent about it.
>
> I'm not aware of anyone working on something with i.MX8.
> Do you plan to work on Venice series support in OpenWrt?
>

Perhaps eventually but it is not a priority at the moment.

Best regards,

Tim

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: octeontx kernel 5.10

2022-02-04 Thread Tim Harvey
On Thu, Feb 3, 2022 at 3:54 PM Hauke Mehrtens  wrote:
>
> Hi,
>
> We would like to switch the octeontx target to kernel 5.10. Paul created
> a pull request for that:
> https://github.com/openwrt/openwrt/pull/4609
>
> Could you please test this target and report back if it works for you
> with kernel 5.10 or if we have any regressions compared to kernel 5.4.
>
> Please also report back when it is working fine for you.
>

Hauke,

Boots fine for me on a Gateworks GW6104 with a CN8031-1500MHz if I add
kpti=0 to bootargs due to CONFIG_ARM64_SW_TTBR0_PAN=y or the kernel
will crash. This must be disabled on OCTEONTX due to some processor
errata that Cavium/Marvell never cared to look into. I believe this
may have been an issue prior to bumping to 5.10 as its been something
I've just always dealt with via the kpti=0 bootarg. That said perhaps
its best to apply this:

diff --git a/target/linux/octeontx/config-5.10
b/target/linux/octeontx/config-5.10
index 6c87abf5b613..4f24e49251eb 100644
--- a/target/linux/octeontx/config-5.10
+++ b/target/linux/octeontx/config-5.10
@@ -31,6 +31,7 @@ CONFIG_ARM64_PA_BITS=48
 CONFIG_ARM64_PA_BITS_48=y
 CONFIG_ARM64_PTR_AUTH=y
 CONFIG_ARM64_SVE=y
+# CONFIG_ARM64_SW_TTBR0_PAN is not set
 CONFIG_ARM64_TAGGED_ADDR_ABI=y
 CONFIG_ARM64_UAO=y
 CONFIG_ARM64_VA_BITS=48

Best Regards,

Tim

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: Unknown licensing terms for binary blobs [Was: Re: [PATCH 1/2] firmware: Add cavium CPT hardware crypto firmware]

2022-02-22 Thread Tim Harvey
On Sat, Feb 19, 2022 at 11:22 PM Daniel Danzberger  wrote:
>
> On Sat, 2022-02-19 at 20:21 +0100, Petr Štetiar wrote:
> > Hauke Mehrtens  [2021-05-22 20:31:27]:
> >
> > Hi Daniel, Tim,
> >
> > > On 4/18/21 9:46 AM, Daniel Danzberger wrote:
> > > > The firmware consists of 2 images:
> > > >   - cpt8x-mc-ae.out
> > > >   - cpt8x-mc-se.out
> > > >
> > > > Both are required and requests by the kernel module 'cptpf'
> > > > (drivers/crypto/cavium/cpt) to provide hardware crpyto support
> > > > on cavium platforms like the octeontx
> > > >
> > > > Signed-off-by: Daniel Danzberger 
> > > > ---
> > > >   package/firmware/cavium-cpt/Makefile | 52
> > > > 
> > > >   1 file changed, 52 insertions(+)
> > > >   create mode 100644 package/firmware/cavium-cpt/Makefile
> > > Hi,
> > >
> > > Under which license are these two files distributed?
> >
> > do you've have an idea? Thanks!
> Hi,
>
> I couldn't find any information about the license, but I played around
> with this hardware crypto on some devices a while ago and found that
> they are performing terrible :)
> Much worse than the CPU. Gateworks even notices this on their website:
> http://trac.gateworks.com/wiki/linux/encryption#PerformaceComparisons
> http://trac.gateworks.com/wiki/newport/encryption
>
> With that in mind I think my 2 original patches can be dropped.

Correct, the performance is not good and the only benefit of using it
is if you need to offload crypto because your CPU is constrained (and
don't care about the crypto performance).

Tim

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


how to add to list of Image files or supplementary files?

2022-10-20 Thread Tim Harvey
Greetings,

How would I go about getting a file added to the list of Image Files
or Supplementary Files made by the auto-builder?

For the octeontx target the kernel should be provided as a downloadable as well.

Best Regards,

Tim

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[PATCH] octeontx: add sqaushfs and ramdisk to features

2022-12-28 Thread Tim Harvey
Add squashfs and ramdisk to features as these are commonly used images
for the octeontx.

Signed-off-by: Tim Harvey 
---
 target/linux/octeontx/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/octeontx/Makefile b/target/linux/octeontx/Makefile
index 9b29e567589e..50c5cd6d217d 100644
--- a/target/linux/octeontx/Makefile
+++ b/target/linux/octeontx/Makefile
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
 ARCH:=aarch64
 BOARD:=octeontx
 BOARDNAME:=Octeon-TX
-FEATURES:=targz pcie gpio rtc usb fpu
+FEATURES:=squashfs ramdisk targz pcie gpio rtc usb fpu
 SUBTARGETS:=generic
 
 KERNEL_PATCHVER:=5.10
-- 
2.25.1


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[PATCH 22.03] octeontx: add sqaushfs and ramdisk to features

2023-01-13 Thread Tim Harvey
Add squashfs and ramdisk to features as these are commonly used images
for the octeontx.

Signed-off-by: Tim Harvey 
---
 target/linux/octeontx/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/octeontx/Makefile b/target/linux/octeontx/Makefile
index eb90529740e4..03ab287bd53a 100644
--- a/target/linux/octeontx/Makefile
+++ b/target/linux/octeontx/Makefile
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
 ARCH:=aarch64
 BOARD:=octeontx
 BOARDNAME:=Octeon-TX
-FEATURES:=targz pcie gpio rtc usb fpu
+FEATURES:=squashfs ramdisk targz pcie gpio rtc usb fpu
 
 KERNEL_PATCHVER:=5.10
 
-- 
2.25.1


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] octeontx: move to 4.19 kernel

2020-02-25 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
 target/linux/octeontx/Makefile |   2 +-
 target/linux/octeontx/config-4.19  | 573 +
 ...nderx-use-proper-interface-type-for-RGMII.patch |  47 ++
 ...hunderx-workaround-BGX-TX-Underflow-issue.patch | 150 ++
 ...03-can-mcp251x-convert-to-half-duplex-SPI.patch |  51 ++
 ...rk-for-Gateworks-PLX-PEX860x-switch-with-.patch |  64 +++
 6 files changed, 886 insertions(+), 1 deletion(-)
 create mode 100644 target/linux/octeontx/config-4.19
 create mode 100644 
target/linux/octeontx/patches-4.19/0001-net-thunderx-use-proper-interface-type-for-RGMII.patch
 create mode 100644 
target/linux/octeontx/patches-4.19/0002-net-thunderx-workaround-BGX-TX-Underflow-issue.patch
 create mode 100644 
target/linux/octeontx/patches-4.19/0003-can-mcp251x-convert-to-half-duplex-SPI.patch
 create mode 100644 
target/linux/octeontx/patches-4.19/0004-PCI-add-quirk-for-Gateworks-PLX-PEX860x-switch-with-.patch

diff --git a/target/linux/octeontx/Makefile b/target/linux/octeontx/Makefile
index e7f6b2d..34d34ed 100644
--- a/target/linux/octeontx/Makefile
+++ b/target/linux/octeontx/Makefile
@@ -13,7 +13,7 @@ FEATURES:=targz pcie gpio rtc usb fpu
 
 MAINTAINER:=Tim Harvey 
 
-KERNEL_PATCHVER:=4.14
+KERNEL_PATCHVER:=4.19
 
 define Target/Description
Build images for Octeon-TX CN80XX/CN81XX based boards
diff --git a/target/linux/octeontx/config-4.19 
b/target/linux/octeontx/config-4.19
new file mode 100644
index 000..7f95c5c
--- /dev/null
+++ b/target/linux/octeontx/config-4.19
@@ -0,0 +1,573 @@
+CONFIG_64BIT=y
+CONFIG_ARCH_CLOCKSOURCE_DATA=y
+CONFIG_ARCH_DMA_ADDR_T_64BIT=y
+CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y
+CONFIG_ARCH_HAS_DEBUG_VIRTUAL=y
+CONFIG_ARCH_HAS_ELF_RANDOMIZE=y
+CONFIG_ARCH_HAS_FAST_MULTIPLIER=y
+CONFIG_ARCH_HAS_FORTIFY_SOURCE=y
+CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
+CONFIG_ARCH_HAS_GIGANTIC_PAGE=y
+CONFIG_ARCH_HAS_HOLES_MEMORYMODEL=y
+CONFIG_ARCH_HAS_KCOV=y
+CONFIG_ARCH_HAS_MEMBARRIER_SYNC_CORE=y
+CONFIG_ARCH_HAS_PTE_SPECIAL=y
+CONFIG_ARCH_HAS_SET_MEMORY=y
+CONFIG_ARCH_HAS_SG_CHAIN=y
+CONFIG_ARCH_HAS_STRICT_KERNEL_RWX=y
+CONFIG_ARCH_HAS_STRICT_MODULE_RWX=y
+CONFIG_ARCH_HAS_SYSCALL_WRAPPER=y
+CONFIG_ARCH_HAS_TICK_BROADCAST=y
+CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=y
+CONFIG_ARCH_HIBERNATION_HEADER=y
+CONFIG_ARCH_HIBERNATION_POSSIBLE=y
+CONFIG_ARCH_INLINE_READ_LOCK=y
+CONFIG_ARCH_INLINE_READ_LOCK_BH=y
+CONFIG_ARCH_INLINE_READ_LOCK_IRQ=y
+CONFIG_ARCH_INLINE_READ_LOCK_IRQSAVE=y
+CONFIG_ARCH_INLINE_READ_UNLOCK=y
+CONFIG_ARCH_INLINE_READ_UNLOCK_BH=y
+CONFIG_ARCH_INLINE_READ_UNLOCK_IRQ=y
+CONFIG_ARCH_INLINE_READ_UNLOCK_IRQRESTORE=y
+CONFIG_ARCH_INLINE_SPIN_LOCK=y
+CONFIG_ARCH_INLINE_SPIN_LOCK_BH=y
+CONFIG_ARCH_INLINE_SPIN_LOCK_IRQ=y
+CONFIG_ARCH_INLINE_SPIN_LOCK_IRQSAVE=y
+CONFIG_ARCH_INLINE_SPIN_TRYLOCK=y
+CONFIG_ARCH_INLINE_SPIN_TRYLOCK_BH=y
+CONFIG_ARCH_INLINE_SPIN_UNLOCK=y
+CONFIG_ARCH_INLINE_SPIN_UNLOCK_BH=y
+CONFIG_ARCH_INLINE_SPIN_UNLOCK_IRQ=y
+CONFIG_ARCH_INLINE_SPIN_UNLOCK_IRQRESTORE=y
+CONFIG_ARCH_INLINE_WRITE_LOCK=y
+CONFIG_ARCH_INLINE_WRITE_LOCK_BH=y
+CONFIG_ARCH_INLINE_WRITE_LOCK_IRQ=y
+CONFIG_ARCH_INLINE_WRITE_LOCK_IRQSAVE=y
+CONFIG_ARCH_INLINE_WRITE_UNLOCK=y
+CONFIG_ARCH_INLINE_WRITE_UNLOCK_BH=y
+CONFIG_ARCH_INLINE_WRITE_UNLOCK_IRQ=y
+CONFIG_ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE=y
+CONFIG_ARCH_MMAP_RND_BITS=18
+CONFIG_ARCH_MMAP_RND_BITS_MAX=33
+CONFIG_ARCH_MMAP_RND_BITS_MIN=18
+CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=11
+CONFIG_ARCH_PROC_KCORE_TEXT=y
+CONFIG_ARCH_SELECT_MEMORY_MODEL=y
+CONFIG_ARCH_SPARSEMEM_DEFAULT=y
+CONFIG_ARCH_SPARSEMEM_ENABLE=y
+CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y
+CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
+CONFIG_ARCH_SUPPORTS_INT128=y
+CONFIG_ARCH_SUPPORTS_MEMORY_FAILURE=y
+CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=y
+CONFIG_ARCH_SUPPORTS_UPROBES=y
+CONFIG_ARCH_SUSPEND_POSSIBLE=y
+CONFIG_ARCH_THUNDER=y
+CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y
+CONFIG_ARCH_USE_QUEUED_RWLOCKS=y
+CONFIG_ARCH_USE_QUEUED_SPINLOCKS=y
+CONFIG_ARCH_WANT_COMPAT_IPC_PARSE_VERSION=y
+CONFIG_ARCH_WANT_FRAME_POINTERS=y
+CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y
+CONFIG_ARM64=y
+# CONFIG_ARM64_16K_PAGES is not set
+CONFIG_ARM64_4K_PAGES=y
+# CONFIG_ARM64_64K_PAGES is not set
+CONFIG_ARM64_CONT_SHIFT=4
+CONFIG_ARM64_CRYPTO=y
+CONFIG_ARM64_ERRATUM_819472=y
+CONFIG_ARM64_ERRATUM_824069=y
+CONFIG_ARM64_ERRATUM_826319=y
+CONFIG_ARM64_ERRATUM_827319=y
+CONFIG_ARM64_ERRATUM_843419=y
+CONFIG_ARM64_HW_AFDBM=y
+# CONFIG_ARM64_LSE_ATOMICS is not set
+CONFIG_ARM64_MODULE_PLTS=y
+CONFIG_ARM64_PAGE_SHIFT=12
+CONFIG_ARM64_PAN=y
+CONFIG_ARM64_PA_BITS=48
+CONFIG_ARM64_PA_BITS_48=y
+# CONFIG_ARM64_PMEM is not set
+# CONFIG_ARM64_PTDUMP_DEBUGFS is not set
+# CONFIG_ARM64_RANDOMIZE_TEXT_OFFSET is not set
+CONFIG_ARM64_SSBD=y
+CONFIG_ARM64_SVE=y
+CONFIG_ARM64_UAO=y
+CONFIG_ARM64_VA_BITS=48
+# CONFIG_ARM64_VA_BITS_39 is not set
+CONFIG_ARM64_VA_BITS_48=y
+CONFIG_ARM64_VHE=y
+CONFIG_ARM_AMBA=y
+CONFIG_ARM_ARCH_TIMER=y
+CONFIG_ARM_ARCH_TIMER_EVTSTREAM=y
+CONFIG_ARM_CPUIDLE=y

Re: [OpenWrt-Devel] [PATCH] octeontx: move to 4.19 kernel

2020-02-26 Thread Tim Harvey
On Wed, Feb 26, 2020 at 5:27 AM John Crispin  wrote:
>
> On 25.02.20 22:58, Tim Harvey wrote:
>
> Hi Tim,
> thanks for the patch, we are in the process of bumping to v5.4. Would
> you have time to also try bumping octeontx to v5.4 ? staging tree is
> located here ->
> https://git.openwrt.org/?p=openwrt/staging/xback.git;a=summary and we
> plan to merge it to master within the week.

John,

Sure, I can do this. Where/how do I submit a patch for that tree?

Tim

>
> > Signed-off-by: Tim Harvey 
> > ---
> >   target/linux/octeontx/Makefile |   2 +-
> >   target/linux/octeontx/config-4.19  | 573 
> > +
> >   ...nderx-use-proper-interface-type-for-RGMII.patch |  47 ++
> >   ...hunderx-workaround-BGX-TX-Underflow-issue.patch | 150 ++
> >   ...03-can-mcp251x-convert-to-half-duplex-SPI.patch |  51 ++
> >   ...rk-for-Gateworks-PLX-PEX860x-switch-with-.patch |  64 +++
> >   6 files changed, 886 insertions(+), 1 deletion(-)
> >   create mode 100644 target/linux/octeontx/config-4.19
> >   create mode 100644 
> > target/linux/octeontx/patches-4.19/0001-net-thunderx-use-proper-interface-type-for-RGMII.patch
> >   create mode 100644 
> > target/linux/octeontx/patches-4.19/0002-net-thunderx-workaround-BGX-TX-Underflow-issue.patch
> >   create mode 100644 
> > target/linux/octeontx/patches-4.19/0003-can-mcp251x-convert-to-half-duplex-SPI.patch
> >   create mode 100644 
> > target/linux/octeontx/patches-4.19/0004-PCI-add-quirk-for-Gateworks-PLX-PEX860x-switch-with-.patch
> >
> > diff --git a/target/linux/octeontx/Makefile b/target/linux/octeontx/Makefile
> > index e7f6b2d..34d34ed 100644
> > --- a/target/linux/octeontx/Makefile
> > +++ b/target/linux/octeontx/Makefile
> > @@ -13,7 +13,7 @@ FEATURES:=targz pcie gpio rtc usb fpu
> >
> >   MAINTAINER:=Tim Harvey 
> >
> > -KERNEL_PATCHVER:=4.14
> > +KERNEL_PATCHVER:=4.19
> >
> >   define Target/Description
> >   Build images for Octeon-TX CN80XX/CN81XX based boards
> > diff --git a/target/linux/octeontx/config-4.19 
> > b/target/linux/octeontx/config-4.19
> > new file mode 100644
> > index 000..7f95c5c
> > --- /dev/null
> > +++ b/target/linux/octeontx/config-4.19
> > @@ -0,0 +1,573 @@
> > +CONFIG_64BIT=y
> > +CONFIG_ARCH_CLOCKSOURCE_DATA=y
> > +CONFIG_ARCH_DMA_ADDR_T_64BIT=y
> > +CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y
> > +CONFIG_ARCH_HAS_DEBUG_VIRTUAL=y
> > +CONFIG_ARCH_HAS_ELF_RANDOMIZE=y
> > +CONFIG_ARCH_HAS_FAST_MULTIPLIER=y
> > +CONFIG_ARCH_HAS_FORTIFY_SOURCE=y
> > +CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
> > +CONFIG_ARCH_HAS_GIGANTIC_PAGE=y
> > +CONFIG_ARCH_HAS_HOLES_MEMORYMODEL=y
> > +CONFIG_ARCH_HAS_KCOV=y
> > +CONFIG_ARCH_HAS_MEMBARRIER_SYNC_CORE=y
> > +CONFIG_ARCH_HAS_PTE_SPECIAL=y
> > +CONFIG_ARCH_HAS_SET_MEMORY=y
> > +CONFIG_ARCH_HAS_SG_CHAIN=y
> > +CONFIG_ARCH_HAS_STRICT_KERNEL_RWX=y
> > +CONFIG_ARCH_HAS_STRICT_MODULE_RWX=y
> > +CONFIG_ARCH_HAS_SYSCALL_WRAPPER=y
> > +CONFIG_ARCH_HAS_TICK_BROADCAST=y
> > +CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=y
> > +CONFIG_ARCH_HIBERNATION_HEADER=y
> > +CONFIG_ARCH_HIBERNATION_POSSIBLE=y
> > +CONFIG_ARCH_INLINE_READ_LOCK=y
> > +CONFIG_ARCH_INLINE_READ_LOCK_BH=y
> > +CONFIG_ARCH_INLINE_READ_LOCK_IRQ=y
> > +CONFIG_ARCH_INLINE_READ_LOCK_IRQSAVE=y
> > +CONFIG_ARCH_INLINE_READ_UNLOCK=y
> > +CONFIG_ARCH_INLINE_READ_UNLOCK_BH=y
> > +CONFIG_ARCH_INLINE_READ_UNLOCK_IRQ=y
> > +CONFIG_ARCH_INLINE_READ_UNLOCK_IRQRESTORE=y
> > +CONFIG_ARCH_INLINE_SPIN_LOCK=y
> > +CONFIG_ARCH_INLINE_SPIN_LOCK_BH=y
> > +CONFIG_ARCH_INLINE_SPIN_LOCK_IRQ=y
> > +CONFIG_ARCH_INLINE_SPIN_LOCK_IRQSAVE=y
> > +CONFIG_ARCH_INLINE_SPIN_TRYLOCK=y
> > +CONFIG_ARCH_INLINE_SPIN_TRYLOCK_BH=y
> > +CONFIG_ARCH_INLINE_SPIN_UNLOCK=y
> > +CONFIG_ARCH_INLINE_SPIN_UNLOCK_BH=y
> > +CONFIG_ARCH_INLINE_SPIN_UNLOCK_IRQ=y
> > +CONFIG_ARCH_INLINE_SPIN_UNLOCK_IRQRESTORE=y
> > +CONFIG_ARCH_INLINE_WRITE_LOCK=y
> > +CONFIG_ARCH_INLINE_WRITE_LOCK_BH=y
> > +CONFIG_ARCH_INLINE_WRITE_LOCK_IRQ=y
> > +CONFIG_ARCH_INLINE_WRITE_LOCK_IRQSAVE=y
> > +CONFIG_ARCH_INLINE_WRITE_UNLOCK=y
> > +CONFIG_ARCH_INLINE_WRITE_UNLOCK_BH=y
> > +CONFIG_ARCH_INLINE_WRITE_UNLOCK_IRQ=y
> > +CONFIG_ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE=y
> > +CONFIG_ARCH_MMAP_RND_BITS=18
> > +CONFIG_ARCH_MMAP_RND_BITS_MAX=33
> > +CONFIG_ARCH_MMAP_RND_BITS_MIN=18
> > +CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=11
> > +CONFIG_ARCH_PROC_KCORE_TEXT=y
> > +CONFIG_ARCH_SELECT_MEMORY_MODEL=y
> > +CONFI

[OpenWrt-Devel] [PATCH] octeontx: add support for Linux 5.4

2020-02-26 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
 target/linux/octeontx/config-5.4   | 634 +
 ...nderx-use-proper-interface-type-for-RGMII.patch |  47 ++
 ...hunderx-workaround-BGX-TX-Underflow-issue.patch | 150 +
 ...03-can-mcp251x-convert-to-half-duplex-SPI.patch |  51 ++
 ...rk-for-Gateworks-PLX-PEX860x-switch-with-.patch |  64 +++
 5 files changed, 946 insertions(+)
 create mode 100644 target/linux/octeontx/config-5.4
 create mode 100644 
target/linux/octeontx/patches-5.4/0001-net-thunderx-use-proper-interface-type-for-RGMII.patch
 create mode 100644 
target/linux/octeontx/patches-5.4/0002-net-thunderx-workaround-BGX-TX-Underflow-issue.patch
 create mode 100644 
target/linux/octeontx/patches-5.4/0003-can-mcp251x-convert-to-half-duplex-SPI.patch
 create mode 100644 
target/linux/octeontx/patches-5.4/0004-PCI-add-quirk-for-Gateworks-PLX-PEX860x-switch-with-.patch

diff --git a/target/linux/octeontx/config-5.4 b/target/linux/octeontx/config-5.4
new file mode 100644
index 000..524279f
--- /dev/null
+++ b/target/linux/octeontx/config-5.4
@@ -0,0 +1,634 @@
+CONFIG_64BIT=y
+CONFIG_64BIT_TIME=y
+# CONFIG_ARCH_AGILEX is not set
+# CONFIG_ARCH_BITMAIN is not set
+CONFIG_ARCH_CLOCKSOURCE_DATA=y
+CONFIG_ARCH_DMA_ADDR_T_64BIT=y
+CONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION=y
+CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
+CONFIG_ARCH_ENABLE_SPLIT_PMD_PTLOCK=y
+CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y
+CONFIG_ARCH_HAS_DEBUG_VIRTUAL=y
+CONFIG_ARCH_HAS_DMA_COHERENT_TO_PFN=y
+CONFIG_ARCH_HAS_DMA_PREP_COHERENT=y
+CONFIG_ARCH_HAS_ELF_RANDOMIZE=y
+CONFIG_ARCH_HAS_FAST_MULTIPLIER=y
+CONFIG_ARCH_HAS_FORTIFY_SOURCE=y
+CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
+CONFIG_ARCH_HAS_GIGANTIC_PAGE=y
+CONFIG_ARCH_HAS_KCOV=y
+CONFIG_ARCH_HAS_KEEPINITRD=y
+CONFIG_ARCH_HAS_MEMBARRIER_SYNC_CORE=y
+CONFIG_ARCH_HAS_PTE_DEVMAP=y
+CONFIG_ARCH_HAS_PTE_SPECIAL=y
+CONFIG_ARCH_HAS_SETUP_DMA_OPS=y
+CONFIG_ARCH_HAS_SET_DIRECT_MAP=y
+CONFIG_ARCH_HAS_SET_MEMORY=y
+CONFIG_ARCH_HAS_STRICT_KERNEL_RWX=y
+CONFIG_ARCH_HAS_STRICT_MODULE_RWX=y
+CONFIG_ARCH_HAS_SYNC_DMA_FOR_CPU=y
+CONFIG_ARCH_HAS_SYNC_DMA_FOR_DEVICE=y
+CONFIG_ARCH_HAS_SYSCALL_WRAPPER=y
+CONFIG_ARCH_HAS_TICK_BROADCAST=y
+CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=y
+CONFIG_ARCH_HIBERNATION_HEADER=y
+CONFIG_ARCH_HIBERNATION_POSSIBLE=y
+CONFIG_ARCH_INLINE_READ_LOCK=y
+CONFIG_ARCH_INLINE_READ_LOCK_BH=y
+CONFIG_ARCH_INLINE_READ_LOCK_IRQ=y
+CONFIG_ARCH_INLINE_READ_LOCK_IRQSAVE=y
+CONFIG_ARCH_INLINE_READ_UNLOCK=y
+CONFIG_ARCH_INLINE_READ_UNLOCK_BH=y
+CONFIG_ARCH_INLINE_READ_UNLOCK_IRQ=y
+CONFIG_ARCH_INLINE_READ_UNLOCK_IRQRESTORE=y
+CONFIG_ARCH_INLINE_SPIN_LOCK=y
+CONFIG_ARCH_INLINE_SPIN_LOCK_BH=y
+CONFIG_ARCH_INLINE_SPIN_LOCK_IRQ=y
+CONFIG_ARCH_INLINE_SPIN_LOCK_IRQSAVE=y
+CONFIG_ARCH_INLINE_SPIN_TRYLOCK=y
+CONFIG_ARCH_INLINE_SPIN_TRYLOCK_BH=y
+CONFIG_ARCH_INLINE_SPIN_UNLOCK=y
+CONFIG_ARCH_INLINE_SPIN_UNLOCK_BH=y
+CONFIG_ARCH_INLINE_SPIN_UNLOCK_IRQ=y
+CONFIG_ARCH_INLINE_SPIN_UNLOCK_IRQRESTORE=y
+CONFIG_ARCH_INLINE_WRITE_LOCK=y
+CONFIG_ARCH_INLINE_WRITE_LOCK_BH=y
+CONFIG_ARCH_INLINE_WRITE_LOCK_IRQ=y
+CONFIG_ARCH_INLINE_WRITE_LOCK_IRQSAVE=y
+CONFIG_ARCH_INLINE_WRITE_UNLOCK=y
+CONFIG_ARCH_INLINE_WRITE_UNLOCK_BH=y
+CONFIG_ARCH_INLINE_WRITE_UNLOCK_IRQ=y
+CONFIG_ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE=y
+CONFIG_ARCH_KEEP_MEMBLOCK=y
+CONFIG_ARCH_MMAP_RND_BITS=18
+CONFIG_ARCH_MMAP_RND_BITS_MAX=33
+CONFIG_ARCH_MMAP_RND_BITS_MIN=18
+CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=11
+CONFIG_ARCH_PROC_KCORE_TEXT=y
+CONFIG_ARCH_SELECT_MEMORY_MODEL=y
+CONFIG_ARCH_SPARSEMEM_DEFAULT=y
+CONFIG_ARCH_SPARSEMEM_ENABLE=y
+CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y
+CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
+CONFIG_ARCH_SUPPORTS_INT128=y
+CONFIG_ARCH_SUPPORTS_MEMORY_FAILURE=y
+CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=y
+CONFIG_ARCH_SUPPORTS_UPROBES=y
+CONFIG_ARCH_SUSPEND_POSSIBLE=y
+CONFIG_ARCH_THUNDER=y
+CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y
+CONFIG_ARCH_USE_MEMREMAP_PROT=y
+CONFIG_ARCH_USE_QUEUED_RWLOCKS=y
+CONFIG_ARCH_USE_QUEUED_SPINLOCKS=y
+CONFIG_ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT=y
+CONFIG_ARCH_WANT_FRAME_POINTERS=y
+CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y
+CONFIG_ARM64=y
+# CONFIG_ARM64_16K_PAGES is not set
+CONFIG_ARM64_4K_PAGES=y
+# CONFIG_ARM64_64K_PAGES is not set
+CONFIG_ARM64_CNP=y
+CONFIG_ARM64_CONT_SHIFT=4
+CONFIG_ARM64_CRYPTO=y
+CONFIG_ARM64_ERRATUM_1165522=y
+CONFIG_ARM64_ERRATUM_1286807=y
+CONFIG_ARM64_ERRATUM_819472=y
+CONFIG_ARM64_ERRATUM_824069=y
+CONFIG_ARM64_ERRATUM_826319=y
+CONFIG_ARM64_ERRATUM_827319=y
+CONFIG_ARM64_ERRATUM_843419=y
+CONFIG_ARM64_HW_AFDBM=y
+# CONFIG_ARM64_LSE_ATOMICS is not set
+CONFIG_ARM64_MODULE_PLTS=y
+CONFIG_ARM64_PAGE_SHIFT=12
+CONFIG_ARM64_PAN=y
+CONFIG_ARM64_PA_BITS=48
+CONFIG_ARM64_PA_BITS_48=y
+# CONFIG_ARM64_PMEM is not set
+# CONFIG_ARM64_PSEUDO_NMI is not set
+# CONFIG_ARM64_PTDUMP_DEBUGFS is not set
+CONFIG_ARM64_PTR_AUTH=y
+# CONFIG_ARM64_RANDOMIZE_TEXT_OFFSET is not set
+CONFIG_ARM64_SSBD=y
+CONFIG_ARM64_SVE=y
+CONFIG_ARM64_TAGGED_ADDR_ABI=y
+CONFIG_ARM64_UAO=y
+CONFIG_ARM64_VA_BITS=48
+# CONFIG_ARM64_VA_BITS_39

[OpenWrt-Devel] [PATCH] kernel: iio: add st-accel driver modules

2020-02-28 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
 package/kernel/linux/modules/iio.mk | 54 +
 1 file changed, 54 insertions(+)

diff --git a/package/kernel/linux/modules/iio.mk 
b/package/kernel/linux/modules/iio.mk
index cd46697..aaccbde 100644
--- a/package/kernel/linux/modules/iio.mk
+++ b/package/kernel/linux/modules/iio.mk
@@ -278,6 +278,60 @@ endef
 $(eval $(call KernelPackage,iio-si7020))
 
 
+define KernelPackage/iio-st_accel
+  SUBMENU:=$(IIO_MENU)
+  TITLE:=STMicroelectronics accelerometer 3-Axis Driver
+  DEPENDS:=+kmod-iio-core
+  KCONFIG:= \
+   CONFIG_IIO_ST_ACCEL_3AXIS \
+   CONFIG_IIO_ST_SENSORS_CORE
+  FILES:= \
+   $(LINUX_DIR)/drivers/iio/accel/st_accel.ko \
+   $(LINUX_DIR)/drivers/iio/common/st_sensors/st_sensors.ko
+endef
+
+define KernelPackage/iio-st_accel/description
+ This package adds support for STMicroelectronics accelerometers:
+  LSM303DLH, LSM303DLHC, LIS3DH, LSM330D, LSM330DL, LSM330DLC,
+  LIS331DLH, LSM303DL, LSM303DLM, LSM330, LIS2DH12, H3LIS331DL,
+  LNG2DM, LIS3DE, LIS2DE12
+endef
+
+$(eval $(call KernelPackage,iio-st_accel))
+
+
+define KernelPackage/iio-st_sensors-i2c
+  SUBMENU:=$(IIO_MENU)
+  TITLE:=STMicroelectronics accelerometer 3-Axis Driver (I2C)
+  DEPENDS:=+kmod-iio-st_accel +kmod-i2c-core
+  KCONFIG:= CONFIG_IIO_ST_ACCEL_I2C_3AXIS
+  FILES:=$(LINUX_DIR)/drivers/iio/common/st_sensors/st_sensors_i2c.ko
+  AUTOLOAD:=$(call AutoLoad,56,st_sensors_i2c)
+endef
+
+define KernelPackage/iio-st_sensors-i2c/description
+ This package adds support for STMicroelectronics I2C based accelerometers
+endef
+
+$(eval $(call KernelPackage,iio-st_sensors-i2c))
+
+
+define KernelPackage/iio-st_sensors-spi
+  SUBMENU:=$(IIO_MENU)
+  TITLE:=STMicroelectronics accelerometer 3-Axis Driver (SPI)
+  DEPENDS:=+kmod-iio-st_accel
+  KCONFIG:= CONFIG_IIO_ST_ACCEL_SPI_3AXIS
+  FILES:=$(LINUX_DIR)/drivers/iio/common/st_sensors/st_sensors_spi.ko
+  AUTOLOAD:=$(call AutoLoad,56,st_sensors_spi)
+endef
+
+define KernelPackage/iio-st_sensors-spi/description
+ This package adds support for STMicroelectronics SPI based accelerometers
+endef
+
+$(eval $(call KernelPackage,iio-st_sensors-spi))
+
+
 define KernelPackage/iio-tsl4531
   SUBMENU:=$(IIO_MENU)
   DEPENDS:=+kmod-i2c-core +kmod-iio-core
-- 
2.7.4


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] kernel: can: add MCP251x CAN controller module support

2020-02-28 Thread Tim Harvey
Signed-off-by: Tim Harvey 
---
 package/kernel/linux/modules/can.mk | 17 +
 1 file changed, 17 insertions(+)

diff --git a/package/kernel/linux/modules/can.mk 
b/package/kernel/linux/modules/can.mk
index c2c7411..3bf0359 100644
--- a/package/kernel/linux/modules/can.mk
+++ b/package/kernel/linux/modules/can.mk
@@ -146,6 +146,23 @@ endef
 $(eval $(call KernelPackage,can-gw))
 
 
+define KernelPackage/can-mcp251x
+  TITLE:=MCP251x SPI CAN controller
+  KCONFIG:=\
+   CONFIG_SPI=y \
+   CONFIG_CAN_MCP251X
+  FILES:=$(LINUX_DIR)/drivers/net/can/spi/mcp251x.ko
+  AUTOLOAD:=$(call AutoProbe,can-mcp251x)
+  $(call AddDepends/can)
+endef
+
+define KernelPackage/can-mcp251x/description
+ Microchip MCP251x SPI CAN controller
+endef
+
+$(eval $(call KernelPackage,can-mcp251x))
+
+
 define KernelPackage/can-raw
   TITLE:=Raw CAN Protcol
   KCONFIG:=CONFIG_CAN_RAW
-- 
2.7.4


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


  1   2   3   >