From aa15ef456e820c0f3b944f242c28c9b9da3cefcf Mon Sep 17 00:00:00 2001
From: gitbot <gitbot@seco.com>
Date: Thu, 21 Sep 2023 06:50:40 +0000
Subject: [PATCH] Integrate linux-imx-kuk/add_d18_new

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/1507a8a17ea56da6165a29791ad8c1f6a6050452

dts:d18: Disable ectrl support for now

The ectrl_stm32 drive isn't yet ported. Disable the support in the DTS
for now.

BCS 746-001345

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/ebfd2cdffd7955bd39597fc1e360c8b899336135

[D18] add OV5640 CSI camera support

* enabled at u-boot: seco_config tool CSI0, CSI1 peripherals
* on carrier B79: CSD18REVB + CSC47REVA + CSC19REVB (CSI CN39)
* Test details:
  root@seco-imx8mp-d18:~# dmesg | grep -i ov5640
  ...
  mx8-img-md: Registered sensor subdevice: ov5640 2-003c (1)
  mx8-img-md: Registered sensor subdevice: ov5640 1-003c (2)
  mx8-img-md: created link [ov5640 2-003c] => [mxc-mipi-csi2.0]
  mx8-img-md: created link [ov5640 1-003c] => [mxc-mipi-csi2.1]
  root@seco-imx8mp-d18:~# v4l2-ctl --list-devices
  ...
  mxc-isi-cap (platform:32e00000.isi:cap_devic):
    /dev/video2
  ...
  mxc-isi-cap (platform:32e02000.isi:cap_devic):
    /dev/video3
  ...
  root@seco-imx8mp-d18:~# gst-launch-1.0 -v v4l2src device=/dev/video2 ! waylandsink
  root@seco-imx8mp-d18:~# gst-launch-1.0 -v v4l2src device=/dev/video3 ! waylandsink

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/bc2d629739f62b7c763a70c271339c47fa84fc9e

[D18] add eDP+LVDS WVGA single-channel video support

* enabled at u-boot: seco_config tool

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/855d28fb3d15390f4a0dbe4dce10e4e1e5765e2d

[D18] add HDMI+LVDS FHD dual-channel video support

* enabled at u-boot: seco_config tool

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/15ca3d3b1a03b0336923269ff4ad2aed6cf75f07

[D18] add HDMI+eDP video support

* enabled at u-boot: seco_config tool

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/c1f0623af084cadd1b9a6f89711a770002a1a438

[D18] add generic SMARC GPIO support

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/18b4c97edb36c4aef240807861affbe016e29be6

[D18] add eDP video support

* enabled at u-boot: seco_config tool
* on CSB79REVB: panel BOE EV156FHM (eDP0 CN60: switch SW6 2-4 position ON,
  jumper CN18 and CN19 position 1-2)

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/0cef7bf898cc90738b985604bacaa759d95e1dbf

[D18] add LVDS WVGA single-channel video support

* enabled at u-boot: seco_config tool
* connected on LVDS channel 1
* on CSB79REVB: panel URT UMSH-8596MD-20T + CV1338/400REVB
  (LVDS CN14+LCD CN17: switch SW6 1-3 position OFF, jumper CN20
  position 1-2 and CN21 position 1-2)

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/0142b8fead2fb26871329137a54b0cf592153beb

[D18] add LVDS FHD dual-channel video support

* enabled at u-boot: seco_config tool
* on CSB79REVB: panel AUO P215HVN01.0 + CV1235/750REVB
  (LVDS CN14: switch SW6 1-3 and 2-4 position OFF, jumper CN18
  position 2-3 and CN19 position 1-2)

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/b5885890e7128e6fde058b500a4d3adc3da81316

[D18] add PWM backlight support

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/c24c7eaff0f45150cb7f027edc9acf17979f945b

[D18] fix typos

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/4fa61a249e0b3af0a62574c2d673d9abf64068ee

[D18] add HDMI video support

* enabled at u-boot: seco_config tool

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/2c8742bf92715fa0c5274c895fb9aa34438c1e16

[D18] add Bluetooth audio support

* enabled at u-boot: seco_config tool
* audio over SAI3 interface
  * SAI3 --> carrier board or onboard bluetooth (I2S2 SMARC | AUDIO BT)
* Filesystem support --> pulseaudio + bluez5
  * Yocto packages:
    pulseaudio-server pulseaudio-module-cli pulseaudio-misc
    pulseaudio-module-device-manager bluez5-noinst-tools bluez5-obex
    bluez5-testtools pulseaudio-module-bluetooth-discover
    pulseaudio-module-bluetooth-policy pulseaudio-module-bluez5-discover
    pulseaudio-module-bluez5-device pulseaudio-module-switch-on-connect
    pulseaudio-module-loopback
* Test details:
  root@seco-imx8mp-d18:~# pulseaudio -D
  root@seco-imx8mp-d18:~# bluetoothctl
  [bluetooth]# default-agent
  [bluetooth]# power on
  [bluetooth]# scan on
  ...
  Device 74:45:CE:40:2B:DD WH-CH510
  ...
  [bluetooth]# scan off
  [bluetooth]# trust 74:45:CE:40:2B:DD
  [bluetooth]# pair 74:45:CE:40:2B:DD
  [bluetooth]# connect 74:45:CE:40:2B:DD
  [WH-CH510]# info
  Device 74:45:CE:40:2B:DD (public)
    Name: WH-CH510
    Alias: WH-CH510
    Class: 0x00240404
    ...
  [WH-CH510]# exit
  root@seco-imx8mp-d18:~# pactl list sinks short | awk '{print $2}'
  root@seco-imx8mp-d18:~# paplay -d bluez_sink.74_45_CE_40_2B_DD.a2dp_sink test.wav

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/246faf5aa9725664945d64bc9df07592478bd7fc

[D18] add TLV320AIC32X4 audio support

* audio over SAI2 interface
* output needs to be enabled: /usr/bin/amixer sset -q 'LO Driver Gain' 100%
* sound works only at 48000Hz: this derives from SAI2 assigned clock rate.
  * Filesystem support for pulseaudio:
    /etc/pulse/daemon.conf --> default-sample-rate = 48000
                               alternate-sample-rate = 48000
* on CSB79REVB: I2S0 to audio jack CN41 (switch SW16 2-4 position OFF,
  jumper CN82 position 2-3)

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/a0727c825459eb7afb00c7715d39cee7dbe702af

[D18] add ECTRL support

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/5b6cd2e59d3b3039d466eb428540ccb46c8facb3

[D18] fix I2C clock frequency

Workaround for NXP chip errata ERR007805 "I2C: When the I2C clock speed is
configured for 400 kHz, the SCL low period violates the I2C spec of 1.3 uS min"
This errata is found on the following SoCs:
* MX8M{M,N,P,Q}
* MX7{S,D}
* MX6{UL{,L,Z},S{,LL,X},S,D,DL,Q,DP,QP}

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/7f98b7a8724bb596815bccfe033a3017d7a540e2

[D18] add PCIe support

* on CSB79REVB: card PCIe-Intel-I210-x4 (PCIe x4 slot CN33: switch SW17 2-4 position OFF)
* Test details:
  root@seco-imx8mp-d18:~# lspci
  00:00.0 PCI bridge: Synopsys, Inc. DWC_usb3 / PCIe bridge (rev 01)
  01:00.0 PCI bridge: Pericom Semiconductor PI7C9X2G608GP PCIe2 6-Port/8-Lane Packet Switch
  ...
  06:00.0 Ethernet controller: Intel Corporation I210 Gigabit Network Connection (rev 03)

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/d3325c736d591a39b12c181b06551f34547d29ad

[D18] add QSPI support

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/fea7ea7cd8f4beb21f0ff2efbd0571f667961ed0

[D18] add RTC PCF2123 support

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/87290d6a3bdf08f5dee2a1ceaaed93984c66d66d

[D18] add usb support: usb1, usb2

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/55f1a8e9c2184b422978294a6210451f389ba222

[D18] add flexcan support: can1, can2

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/fb85cd670c9b7d2de5cb10b7d087605f0488fb03

[D18] add uart4 support

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/1f98e1b77aee17e5dafa9d7db4735ff24e773187

[D18] add WiFi+BT module AW-CM276NF support

* the module is based on Marvell 88W8997 chipset
* CSD18REVB has a pull-down on WIFI_PWRDWN#, set P1_2_WiFi_EN to allow probing

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/39dca5823b897cd0fa336bb7c742d1f52fe14be4

[D18] add ethernet support: eth0, eth1

* DP83867 Gigabit Ethernet PHY transceiver

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/80213e6c39c393d1fed20680f6157f0c4f7bfc17

[D18] add gpio expander PCAL6416 support

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/86a9a67e5a28ce2600a8c54ca8df287e0af96a6e

[D18] external SD: enable WP and RESET

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/bb84b02120ad3189746780c4a0f8d3ecc93eaaf6

[D18] set MMC enumeration

* internal eMMC --> device 0
* external SD   --> device 1

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/bdd701c597c739d64119330d647a28c9681135fa

[D18] clear dts from reference board and overlay peripherals

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/0e0f4fe7cae99d9cf66ae65632a123c950cd6afa

seco:dts:d18: Added devicetree for D18

Original Commit 90ac559b5dc95a52dd15b6d11568acbde6c5fd76

BCS 746-001345

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/b2aeb41f4aafe1a7ace47120a8ac52e6c2351ebd

dts:seco: Added base for i.MX8MP

BCS 746-001345

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/bebe765eccba2c7220d86b4f8e32b6a96f6ab132

dts:seco: Add base devicetree structure

BCS 746-001345
---
 SRCREV.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/SRCREV.conf b/SRCREV.conf
index 6e3e9f9c..e2d65d43 100644
--- a/SRCREV.conf
+++ b/SRCREV.conf
@@ -8,7 +8,7 @@ SRCREV:pn-gfxml2dto = "cc0e343dced4f3c3c7619245b5671c38ab2e53b6"
 SRCREV:pn-ilitek = "22054aa6bb7f58e56713df3b3d921ab272da082e"
 SRCREV:pn-kernel-module-touchgpio = "a7fe1b2b6945545363ada5a0bcf591dad6afb9da"
 SRCREV:pn-libmdb = "df6dc596f444613240e3d58fa770cee8d09d5dcd"
-SRCREV:pn-linux-imx = "a6646c02c0bc7d43e6de12d59a37b296a77094db"
+SRCREV:pn-linux-imx = "1507a8a17ea56da6165a29791ad8c1f6a6050452"
 SRCREV:pn-linux-imx-kuk = "0258f07c61364958e3307da11a388e72baffb03a"
 SRCREV:pn-linux-seconorth = "1ec2a30d1cb37642c5dbacf4024f56f05261ff12"
 SRCREV:pn-qt-multi-screen-compositor = "8a3fc0fffaacccccc2b651a9becfe5037b67adbc"
-- 
GitLab