[linux-yocto][yocto-kernel-cache][yocto-6.6][PATCH] ti-am62: add kernel-cache configuration files for v6.6 kernel

2024-11-07 Thread Xulin Sun via lists.yoctoproject.org
This adds the cfg & scc files to support TI AM62AX board,
it's picked from the v6.1 kernel-cache configuration file.

Signed-off-by: Xulin Sun 
---
 bsp/ti-am62/ti-am62-preempt-rt.cfg |  15 ++
 bsp/ti-am62/ti-am62-preempt-rt.scc |   9 +
 bsp/ti-am62/ti-am62-standard.scc   |   8 +
 bsp/ti-am62/ti-am62.cfg| 359 +
 bsp/ti-am62/ti-am62.scc|  11 +
 5 files changed, 402 insertions(+)
 create mode 100644 bsp/ti-am62/ti-am62-preempt-rt.cfg
 create mode 100755 bsp/ti-am62/ti-am62-preempt-rt.scc
 create mode 100644 bsp/ti-am62/ti-am62-standard.scc
 create mode 100644 bsp/ti-am62/ti-am62.cfg
 create mode 100644 bsp/ti-am62/ti-am62.scc

diff --git a/bsp/ti-am62/ti-am62-preempt-rt.cfg 
b/bsp/ti-am62/ti-am62-preempt-rt.cfg
new file mode 100644
index ..5e391571
--- /dev/null
+++ b/bsp/ti-am62/ti-am62-preempt-rt.cfg
@@ -0,0 +1,15 @@
+..
+.WARNING
+.
+. This file is a kernel configuration fragment, and not a full kernel
+. configuration file.  The final kernel configuration is made up of
+. an assembly of processed fragments, each of which is designed to
+. capture a specific part of the final configuration (e.g. platform
+. configuration, feature configuration, and board specific hardware
+. configuration).  For more information on kernel configuration, please
+. consult the product documentation.
+.
+..
+
+# CONFIG_TRANSPARENT_HUGEPAGE is not set
+# CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS is not set
diff --git a/bsp/ti-am62/ti-am62-preempt-rt.scc 
b/bsp/ti-am62/ti-am62-preempt-rt.scc
new file mode 100755
index ..db4f19fa
--- /dev/null
+++ b/bsp/ti-am62/ti-am62-preempt-rt.scc
@@ -0,0 +1,9 @@
+# SPDX-License-Identifier: MIT
+define KMACHINE ti-am62
+define KTYPE preempt-rt
+define KARCH arm64
+
+include ktypes/preempt-rt
+
+include ti-am62.scc
+kconf hardware ti-am62-preempt-rt.cfg
diff --git a/bsp/ti-am62/ti-am62-standard.scc b/bsp/ti-am62/ti-am62-standard.scc
new file mode 100644
index ..2b5f1bdb
--- /dev/null
+++ b/bsp/ti-am62/ti-am62-standard.scc
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: MIT
+define KMACHINE ti-am62
+define KTYPE standard
+define KARCH arm64
+
+include ktypes/standard/standard.scc
+
+include ti-am62.scc
diff --git a/bsp/ti-am62/ti-am62.cfg b/bsp/ti-am62/ti-am62.cfg
new file mode 100644
index ..09fe7b3b
--- /dev/null
+++ b/bsp/ti-am62/ti-am62.cfg
@@ -0,0 +1,359 @@
+#
+#  WARNING
+#
+# This file is a kernel configuration fragment, and not a full kernel
+# configuration file.  The final kernel configuration is made up of
+# an assembly of processed fragments, each of which is designed to
+# capture a specific part of the final configuration (e.g. platform
+# configuration, feature configuration, and board specific hardware
+# configuration).  For more information on kernel configuration, please
+# consult the product documentation.
+#
+#.
+
+#
+#
+# Platform selection
+#
+CONFIG_ARM64=y
+CONFIG_ARCH_K3=y
+
+CONFIG_ARM_SMMU=y
+CONFIG_ARM_SMMU_DISABLE_BYPASS_BY_DEFAULT=y
+CONFIG_ARM_SMMU_V3=y
+CONFIG_TI_PRUSS=m
+CONFIG_CMA=y
+CONFIG_DMA_CMA=y
+
+CONFIG_EXPERT=y
+CONFIG_ARM64_4K_PAGES=y
+CONFIG_TRANSPARENT_HUGEPAGE=y
+CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y
+
+#
+# MMC/SD/SDIO Host Controller Drivers
+#
+CONFIG_MMC=y
+CONFIG_MMC_SPI=y
+CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_PLTFM=y
+CONFIG_MMC_SDHCI_AM654=y
+
+#
+# Power management options
+#
+CONFIG_PM_SLEEP=y
+CONFIG_PM_SLEEP_SMP=y
+CONFIG_PM=y
+CONFIG_PM_CLK=y
+CONFIG_CPU_PM=y
+
+#
+# CPU Frequency scaling
+#
+CONFIG_CPU_FREQ=y
+CONFIG_CPU_FREQ_GOV_ATTR_SET=y
+CONFIG_CPU_FREQ_GOV_COMMON=y
+CONFIG_CPU_FREQ_STAT=y
+CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
+CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
+CONFIG_CPU_FREQ_GOV_USERSPACE=y
+CONFIG_CPU_FREQ_GOV_ONDEMAND=y
+CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y
+CONFIG_CPU_FREQ_GOV_POWERSAVE=y
+CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
+
+#
+# CPU frequency scaling drivers
+#
+CONFIG_CPUFREQ_DT=y
+CONFIG_CPUFREQ_DT_PLATDEV=y
+
+#
+# Bus devices
+#
+CONFIG_MTD=y
+CONFIG_MTD_CMDLINE_PARTS=y
+CONFIG_MTD_OF_PARTS=y
+CONFIG_MTD_BLKDEVS=y
+CONFIG_MTD_BLOCK=y
+
+#
+# SCSI device support
+#
+CONFIG_SCSI=y
+CONFIG_BLK_DEV_SD=y
+
+#
+# USB
+#
+CONFIG_USB=y
+CONFIG_USB_CDNS_SUPPORT=y
+CONFIG_USB_XHCI_HCD=y
+CONFIG_USB_DWC3=m
+CONFIG_USB_DWC3_OF_SIMPLE=m
+CONFIG_HAS_DMA=y
+CONFIG_OMAP_USB2=y
+CONFIG_USB_DWC3_KEYSTONE=m
+CONFIG_USB_GADGET=y
+CONFIG_USB_DWC3_AM62=m
+CONFIG_USB_DWC3_DUAL_ROLE=y
+CONFIG_USB_OTG=y
+CONFIG_USB_CDC_COMPOSITE=m
+CONFIG_USB_ETH=m
+CONFIG_USB_G_MULTI=m
+CONFIG_TYPEC=m
+CONFIG_TYPEC_TCPM=m
+CONFIG_TYPEC_TCPCI=m
+CONFIG_TYPEC_TPS6598X=m
+CONFIG_TYPEC_FUSB302=m
+
+#
+# USB for net
+#
+CONFIG_USB_NET_

[linux-yocto][linux-yocto v6.6/standard/ti-sdk-6.6/ti-soc & v6.6/standard/preempt-rt/ti-sdk-6.6/ti-soc][PATCH] remoteproc: k3-r5: drop wrong label release_wait

2024-11-07 Thread Xulin Sun via lists.yoctoproject.org
commit f2044ab95447dce9(Merge branch 'v6.6/standard/base'
into v6.6/standard/ti-sdk-6.6/ti-soc) introduces wrong code merging to fix
conflicts. Drop wrong label release_wait to make IPC function working.

Signed-off-by: Xulin Sun 
---
 drivers/remoteproc/ti_k3_r5_remoteproc.c | 6 +-
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/drivers/remoteproc/ti_k3_r5_remoteproc.c 
b/drivers/remoteproc/ti_k3_r5_remoteproc.c
index 1d2d657d5ec9..ae6523589760 100644
--- a/drivers/remoteproc/ti_k3_r5_remoteproc.c
+++ b/drivers/remoteproc/ti_k3_r5_remoteproc.c
@@ -801,7 +801,7 @@ static int k3_r5_rproc_start(struct rproc *rproc)
}
 
kproc->rproc->state = RPROC_RUNNING;
-   goto release_wait;
+   return 0;
 
 unroll_core_run:
list_for_each_entry_continue(core, &cluster->cores, elem) {
@@ -809,10 +809,6 @@ static int k3_r5_rproc_start(struct rproc *rproc)
dev_warn(core->dev, "core halt back failed\n");
}
 
-release_wait:
-   core->released_from_reset = true;
-   wake_up_interruptible(&cluster->core_transition);
-
return ret;
 }
 
-- 
2.44.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14548): 
https://lists.yoctoproject.org/g/linux-yocto/message/14548
Mute This Topic: https://lists.yoctoproject.org/mt/109457064/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.6/standard/preempt-rt/ti-sdk-6.6/ti-soc][PATCH 2/2] gpio: omap: move the resource lock to function omap2_set_gpio_debounce()

2024-10-24 Thread Xulin Sun via lists.yoctoproject.org
Move the resource lock from outside function omap2_set_gpio_debounce()
to inside function omap2_set_gpio_debounce() to avoid clk_enable_lock(),
this will fix below issue:
BUG: sleeping function called from invalid context at 
/kernel/locking/spinlock_rt.c:48
in_atomic(): 1, irqs_disabled(): 128, non_block: 0, pid: 1, name: swapper
preempt_count: 1, expected: 0
RCU nest depth: 0, expected: 0
Hardware name: Generic AM33XX (Flattened Device Tree)
 unwind_backtrace from show_stack+0x18/0x1c
 show_stack from dump_stack_lvl+0x24/0x2c
 dump_stack_lvl from __might_resched+0x164/0x178
 __might_resched from rt_spin_lock+0x2c/0xa4
 rt_spin_lock from clk_enable_lock+0x2c/0xd4
 clk_enable_lock from clk_enable+0x1c/0x3c
 clk_enable from omap_gpio_set_config+0x1e8/0x2ac
 omap_gpio_set_config from gpio_keys_probe+0x7b8/0x9dc
 gpio_keys_probe from platform_probe+0x64/0xb8
 platform_probe from really_probe+0xd0/0x2e0
 really_probe from __driver_probe_device+0x90/0x1a4
 __driver_probe_device from driver_probe_device+0x3c/0x110
 driver_probe_device from __driver_attach+0x98/0x190
 __driver_attach from bus_for_each_dev+0x84/0xd4
 bus_for_each_dev from bus_add_driver+0xd4/0x1f4
 bus_add_driver from driver_register+0x84/0x11c
 driver_register from do_one_initcall+0x60/0x228
 do_one_initcall from kernel_init_freeable+0x1c0/0x218
 kernel_init_freeable from kernel_init+0x20/0x13c
 kernel_init from ret_from_fork+0x14/0x28
Exception stack(0xf0009fb0 to 0xf0009ff8)
9fa0:    
9fc0:        
9fe0:     0013 

Signed-off-by: Xulin Sun 
---
 drivers/gpio/gpio-omap.c | 7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c
index a927680c66f8..bf34541b53b6 100644
--- a/drivers/gpio/gpio-omap.c
+++ b/drivers/gpio/gpio-omap.c
@@ -184,6 +184,7 @@ static int omap2_set_gpio_debounce(struct gpio_bank *bank, 
unsigned offset,
u32 val;
u32 l;
boolenable = !!debounce;
+   unsigned long flags;
 
if (!bank->dbck_flag)
return -ENOTSUPP;
@@ -197,11 +198,14 @@ static int omap2_set_gpio_debounce(struct gpio_bank 
*bank, unsigned offset,
l = BIT(offset);
 
clk_enable(bank->dbck);
+   raw_spin_lock_irqsave(&bank->lock, flags);
+
writel_relaxed(debounce, bank->base + bank->regs->debounce);
 
val = omap_gpio_rmw(bank->base + bank->regs->debounce_en, l, enable);
bank->dbck_enable_mask = val;
 
+   raw_spin_unlock_irqrestore(&bank->lock, flags);
clk_disable(bank->dbck);
/*
 * Enable debounce clock per module.
@@ -913,14 +917,11 @@ static int omap_gpio_debounce(struct gpio_chip *chip, 
unsigned offset,
  unsigned debounce)
 {
struct gpio_bank *bank;
-   unsigned long flags;
int ret;
 
bank = gpiochip_get_data(chip);
 
-   raw_spin_lock_irqsave(&bank->lock, flags);
ret = omap2_set_gpio_debounce(bank, offset, debounce);
-   raw_spin_unlock_irqrestore(&bank->lock, flags);
 
if (ret)
dev_info(chip->parent,
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14512): 
https://lists.yoctoproject.org/g/linux-yocto/message/14512
Mute This Topic: https://lists.yoctoproject.org/mt/109202325/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.6/standard/preempt-rt/ti-sdk-6.6/ti-soc][PATCH 1/2] Input: matrix_keypad - avoid repeatedly converting GPIO to IRQ

2024-10-24 Thread Xulin Sun via lists.yoctoproject.org
From: Dmitry Torokhov 

commit a96fb711c6be76bcfbcf594a865002fa7c0eb525 upstream

There is no need to do conversion from GPIOs to interrupt numbers.
Convert row GPIOs to interrupt numbers once in probe() and use
this information when the driver needs to enable or disable given
interrupt line.

Link: 
https://lore.kernel.org/r/20240121053232.276968-1-dmitry.torok...@gmail.com
Signed-off-by: Dmitry Torokhov 
Signed-off-by: Xulin Sun 
---
 drivers/input/keyboard/matrix_keypad.c | 48 ++
 1 file changed, 25 insertions(+), 23 deletions(-)

diff --git a/drivers/input/keyboard/matrix_keypad.c 
b/drivers/input/keyboard/matrix_keypad.c
index a1b037891af2..a1cf56096156 100644
--- a/drivers/input/keyboard/matrix_keypad.c
+++ b/drivers/input/keyboard/matrix_keypad.c
@@ -27,6 +27,7 @@ struct matrix_keypad {
const struct matrix_keypad_platform_data *pdata;
struct input_dev *input_dev;
unsigned int row_shift;
+   unsigned int row_irqs[MATRIX_MAX_ROWS];
 
DECLARE_BITMAP(disabled_gpios, MATRIX_MAX_ROWS);
 
@@ -92,7 +93,7 @@ static void enable_row_irqs(struct matrix_keypad *keypad)
enable_irq(pdata->clustered_irq);
else {
for (i = 0; i < pdata->num_row_gpios; i++)
-   enable_irq(gpio_to_irq(pdata->row_gpios[i]));
+   enable_irq(keypad->row_irqs[i]);
}
 }
 
@@ -105,7 +106,7 @@ static void disable_row_irqs(struct matrix_keypad *keypad)
disable_irq_nosync(pdata->clustered_irq);
else {
for (i = 0; i < pdata->num_row_gpios; i++)
-   disable_irq_nosync(gpio_to_irq(pdata->row_gpios[i]));
+   disable_irq_nosync(keypad->row_irqs[i]);
}
 }
 
@@ -233,7 +234,6 @@ static void matrix_keypad_stop(struct input_dev *dev)
 static void matrix_keypad_enable_wakeup(struct matrix_keypad *keypad)
 {
const struct matrix_keypad_platform_data *pdata = keypad->pdata;
-   unsigned int gpio;
int i;
 
if (pdata->clustered_irq > 0) {
@@ -241,21 +241,16 @@ static void matrix_keypad_enable_wakeup(struct 
matrix_keypad *keypad)
keypad->gpio_all_disabled = true;
} else {
 
-   for (i = 0; i < pdata->num_row_gpios; i++) {
-   if (!test_bit(i, keypad->disabled_gpios)) {
-   gpio = pdata->row_gpios[i];
-
-   if (enable_irq_wake(gpio_to_irq(gpio)) == 0)
+   for (i = 0; i < pdata->num_row_gpios; i++)
+   if (!test_bit(i, keypad->disabled_gpios))
+   if (enable_irq_wake(keypad->row_irqs[i]) == 0)
__set_bit(i, keypad->disabled_gpios);
-   }
-   }
}
 }
 
 static void matrix_keypad_disable_wakeup(struct matrix_keypad *keypad)
 {
const struct matrix_keypad_platform_data *pdata = keypad->pdata;
-   unsigned int gpio;
int i;
 
if (pdata->clustered_irq > 0) {
@@ -264,12 +259,9 @@ static void matrix_keypad_disable_wakeup(struct 
matrix_keypad *keypad)
keypad->gpio_all_disabled = false;
}
} else {
-   for (i = 0; i < pdata->num_row_gpios; i++) {
-   if (test_and_clear_bit(i, keypad->disabled_gpios)) {
-   gpio = pdata->row_gpios[i];
-   disable_irq_wake(gpio_to_irq(gpio));
-   }
-   }
+   for (i = 0; i < pdata->num_row_gpios; i++)
+   if (test_and_clear_bit(i, keypad->disabled_gpios))
+   disable_irq_wake(keypad->row_irqs[i]);
}
 }
 
@@ -306,7 +298,7 @@ static int matrix_keypad_init_gpio(struct platform_device 
*pdev,
   struct matrix_keypad *keypad)
 {
const struct matrix_keypad_platform_data *pdata = keypad->pdata;
-   int i, err;
+   int i, irq, err;
 
/* initialized strobe lines as outputs, activated */
for (i = 0; i < pdata->num_col_gpios; i++) {
@@ -345,11 +337,19 @@ static int matrix_keypad_init_gpio(struct platform_device 
*pdev,
}
} else {
for (i = 0; i < pdata->num_row_gpios; i++) {
-   err = request_any_context_irq(
-   gpio_to_irq(pdata->row_gpios[i]),
+   irq = gpio_to_irq(pdata->row_gpios[i]);
+   if (irq < 0) {
+   err = irq;
+   dev_err(&pdev->dev,
+   "Unable to convert GPIO line %i to irq: 
%d\n",
+   pdata->row_

Re: [linux-yocto][linux-yocto v6.6][PATCH 0/8]ti-am335x kernel part for v6.6 kernel

2024-10-07 Thread Xulin Sun via lists.yoctoproject.org

On 10/1/24 03:17, Bruce Ashfield wrote:

The shortlog of the patches was missing a leading [ before
PATCH], so the logs were incorrect when applied.

I've adjusted the shortlogs and merged the patches.


Thank you for helping me correct this shortlogs.

But it seems that only this branch "v6.6/standard/ti-sdk-6.6/ti-soc" was 
merged, and branch "v6.6/standard/preempt-rt/ti-sdk-6.6/ti-soc" was lost 
to merge below patches.


Could you please recheck it?

Thanks

Xulin



Bruce

In message: [linux-yocto][linux-yocto v6.6][PATCH 0/8]ti-am335x kernel part for 
v6.6 kernel
on 30/09/2024 Xulin Sun wrote:


Hi Bruce,

This patch series is to support ti-am335x bsp for v6.6 kernel.
Please help me merge these into the following two branches:

v6.6/standard/ti-sdk-6.6/ti-soc
v6.6/standard/preempt-rt/ti-sdk-6.6/ti-soc

Thanks
Xulin



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14436): 
https://lists.yoctoproject.org/g/linux-yocto/message/14436
Mute This Topic: https://lists.yoctoproject.org/mt/108731312/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.6]PATCH 8/8] drm/tilcdc: conditionally calling drm_atomic_helper_shutdown()

2024-09-29 Thread Xulin Sun via lists.yoctoproject.org
The `drm_atomic_helper_shutdown(dev)` is called only if `priv->is_registered` 
is true,
ensuring that it runs only when the device has been properly registered.
Otherwise, if it encounters a defer probe, the following call trace will appear.

WARNING: CPU: 0 PID: 13 at /drivers/gpu/drm/drm_atomic_state_helper.c:174 
drm_atomic_helper_crtc_duplicate_state+0x68/0x70
Modules linked in:
CPU: 0 PID: 13 Comm: kworker/u2:1 Tainted: GW  
6.6.47-yocto-standard #1
Hardware name: Generic AM33XX (Flattened Device Tree)
Workqueue: events_unbound deferred_probe_work_func
 unwind_backtrace from show_stack+0x18/0x1c
 show_stack from dump_stack_lvl+0x24/0x2c
 dump_stack_lvl from __warn+0x80/0x134
 __warn from warn_slowpath_fmt+0x19c/0x1a4
 warn_slowpath_fmt from drm_atomic_helper_crtc_duplicate_state+0x68/0x70
 drm_atomic_helper_crtc_duplicate_state from 
drm_atomic_get_crtc_state+0x70/0x110
 drm_atomic_get_crtc_state from drm_atomic_helper_disable_all+0x98/0x1c8
 drm_atomic_helper_disable_all from drm_atomic_helper_shutdown+0x90/0x144
 drm_atomic_helper_shutdown from tilcdc_fini+0x58/0xe0
 tilcdc_fini from tilcdc_init.constprop.0+0x23c/0x620
 tilcdc_init.constprop.0 from tilcdc_pdev_probe+0x58/0xac
 tilcdc_pdev_probe from platform_probe+0x64/0xb8
 platform_probe from really_probe+0xd0/0x2e0
 really_probe from __driver_probe_device+0x90/0x1a8
 __driver_probe_device from driver_probe_device+0x38/0x10c
 driver_probe_device from __device_attach_driver+0x9c/0x110
 __device_attach_driver from bus_for_each_drv+0x98/0xec
 bus_for_each_drv from __device_attach+0xb0/0x1ac
 __device_attach from bus_probe_device+0x90/0x94
 bus_probe_device from deferred_probe_work_func+0x80/0xac
 deferred_probe_work_func from process_one_work+0x198/0x3f8
 process_one_work from worker_thread+0x35c/0x550
 worker_thread from kthread+0x108/0x124
 kthread from ret_from_fork+0x14/0x28
Exception stack(0xe0039fb0 to 0xe0039ff8)
9fa0:    
9fc0:        
9fe0:     0013 
---[ end trace  ]---
tilcdc 4830e000.lcdc: [drm] *ERROR* Disabling all crtc's during unload failed 
with -12

Signed-off-by: Xulin Sun 
---
 drivers/gpu/drm/tilcdc/tilcdc_drv.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c 
b/drivers/gpu/drm/tilcdc/tilcdc_drv.c
index daff3926ab89..57ebad8fc8e3 100644
--- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c
+++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c
@@ -171,11 +171,12 @@ static void tilcdc_fini(struct drm_device *dev)
if (priv->crtc)
tilcdc_crtc_shutdown(priv->crtc);
 
-   if (priv->is_registered)
+   if (priv->is_registered) {
drm_dev_unregister(dev);
+   drm_atomic_helper_shutdown(dev);
+   }
 
drm_kms_helper_poll_fini(dev);
-   drm_atomic_helper_shutdown(dev);
tilcdc_irq_uninstall(dev);
drm_mode_config_cleanup(dev);
 
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14425): 
https://lists.yoctoproject.org/g/linux-yocto/message/14425
Mute This Topic: https://lists.yoctoproject.org/mt/108731320/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.6]PATCH 7/8] mm/pgtable: export function __pte_offset_map_lock

2024-09-29 Thread Xulin Sun via lists.yoctoproject.org
commit 0d940a9b270b9220dc(mm/pgtable: allow pte_offset_map[_lock]() to fail)
change the pte_offset_map[_lock] from macro to function, and the
TI out-of-tree module ti-sgx-ddk-km is still targeting kernel v6.1 and
calls __pte_offset_map_lock(), when building the module ti-sgx-ddk-km it
will output below building issue:

| ERROR: modpost: "__pte_offset_map_lock" [target_armel/kbuild/pvrsrvkm.ko] 
undefined!

export function __pte_offset_map_lock as a workaround to fix above
building issue.

Signed-off-by: Xulin Sun 
---
 mm/pgtable-generic.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mm/pgtable-generic.c b/mm/pgtable-generic.c
index a78a4adf711a..3863f46af35c 100644
--- a/mm/pgtable-generic.c
+++ b/mm/pgtable-generic.c
@@ -380,3 +380,4 @@ pte_t *__pte_offset_map_lock(struct mm_struct *mm, pmd_t 
*pmd,
pte_unmap_unlock(pte, ptl);
goto again;
 }
+EXPORT_SYMBOL_GPL(__pte_offset_map_lock);
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14424): 
https://lists.yoctoproject.org/g/linux-yocto/message/14424
Mute This Topic: https://lists.yoctoproject.org/mt/108731319/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.6]PATCH 6/8] ARM: dts: AM33xx: add gpu compatible for am3352-sgx530

2024-09-29 Thread Xulin Sun via lists.yoctoproject.org
The gpu driver is out-of-tree module and it's still for
kernel v6.1, not adaptation for kernel v6.6 yet.
Add this compatible "ti,am3352-sgx530" to make the out-of-tree
gpu driver working.

Signed-off-by: Xulin Sun 
---
 arch/arm/boot/dts/ti/omap/am33xx.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/ti/omap/am33xx.dtsi 
b/arch/arm/boot/dts/ti/omap/am33xx.dtsi
index 989d5a6edeed..e4880517028e 100644
--- a/arch/arm/boot/dts/ti/omap/am33xx.dtsi
+++ b/arch/arm/boot/dts/ti/omap/am33xx.dtsi
@@ -641,7 +641,7 @@ target-module@5600 {
ranges = <0 0x5600 0x100>;
 
gpu@0 {
-   compatible = "ti,omap3630-gpu", 
"img,powervr-sgx530";
+   compatible = "ti,omap3630-gpu", 
"ti,am3352-sgx530", "img,powervr-sgx530";
reg = <0x0 0x1>; /* 64kB */
interrupts = <37>;
};
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14423): 
https://lists.yoctoproject.org/g/linux-yocto/message/14423
Mute This Topic: https://lists.yoctoproject.org/mt/108731318/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.6]PATCH 5/8] ARM: dts: tps65217: add power regulator & backlight drivers support

2024-09-29 Thread Xulin Sun via lists.yoctoproject.org
Support TPS65217 voltage regulator driver and TPS65217 Backlight driver.
And enable them by default. This will avoid below booting failed
information:
tps65217-pmic: Failed to locate of_node [id: -1]
tps65217-bl: Failed to locate of_node [id: -1]

Signed-off-by: Xulin Sun 
Signed-off-by: Bruce Ashfield 
---
 arch/arm/boot/dts/tps65217.dtsi | 10 ++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm/boot/dts/tps65217.dtsi b/arch/arm/boot/dts/tps65217.dtsi
index 0d463de5650f..f412e7476660 100644
--- a/arch/arm/boot/dts/tps65217.dtsi
+++ b/arch/arm/boot/dts/tps65217.dtsi
@@ -13,6 +13,16 @@ &tps {
interrupt-controller;
#interrupt-cells = <1>;
 
+   pmic {
+   compatible = "ti,tps65217-pmic";
+   status = "okay";
+   };
+
+   bl {
+   compatible = "ti,tps65217-bl";
+   status = "okay";
+   };
+
charger {
compatible = "ti,tps65217-charger";
interrupts = <0>, <1>;
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14422): 
https://lists.yoctoproject.org/g/linux-yocto/message/14422
Mute This Topic: https://lists.yoctoproject.org/mt/108731317/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.6]PATCH 4/8] arm: dts: am335x-evm: enable dcan1 node by default

2024-09-29 Thread Xulin Sun via lists.yoctoproject.org
By default enable dcan1 node, it's a required feature for am335x-evm.

Signed-off-by: Xulin Sun 
---
 arch/arm/boot/dts/ti/omap/am335x-evm.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/ti/omap/am335x-evm.dts 
b/arch/arm/boot/dts/ti/omap/am335x-evm.dts
index e188a866b479..5fbefe8ef1f8 100644
--- a/arch/arm/boot/dts/ti/omap/am335x-evm.dts
+++ b/arch/arm/boot/dts/ti/omap/am335x-evm.dts
@@ -771,7 +771,7 @@ &aes {
 };
 
 &dcan1 {
-   status = "disabled";/* Enable only if Profile 1 is selected */
+   status = "okay";/* Enable only if Profile 1 is selected */
pinctrl-names = "default";
pinctrl-0 = <&dcan1_pins_default>;
 };
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14421): 
https://lists.yoctoproject.org/g/linux-yocto/message/14421
Mute This Topic: https://lists.yoctoproject.org/mt/108731316/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.6]PATCH 3/8] ARM: dts: am335x: add wl1835-st driver dtb for bluetooth

2024-09-29 Thread Xulin Sun via lists.yoctoproject.org
From: Xiaolei Wang 

add wl1835-st driver dtb for bluetooth

Signed-off-by: Xiaolei Wang 
Signed-off-by: Xulin Sun 
---
 arch/arm/boot/dts/ti/omap/am335x-evm.dts   | 4 
 arch/arm/boot/dts/ti/omap/am335x-evmsk.dts | 4 
 2 files changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/ti/omap/am335x-evm.dts 
b/arch/arm/boot/dts/ti/omap/am335x-evm.dts
index 61bf8bcd4c4e..e188a866b479 100644
--- a/arch/arm/boot/dts/ti/omap/am335x-evm.dts
+++ b/arch/arm/boot/dts/ti/omap/am335x-evm.dts
@@ -397,6 +397,10 @@ &uart1 {
pinctrl-0 = <&uart1_pins>;
 
status = "okay";
+   bluetooth {
+   compatible = "ti,wl1835-st";
+   enable-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
+   };
 };
 
 &i2c0 {
diff --git a/arch/arm/boot/dts/ti/omap/am335x-evmsk.dts 
b/arch/arm/boot/dts/ti/omap/am335x-evmsk.dts
index 6aa7e138a5fb..7663fc284dff 100644
--- a/arch/arm/boot/dts/ti/omap/am335x-evmsk.dts
+++ b/arch/arm/boot/dts/ti/omap/am335x-evmsk.dts
@@ -473,6 +473,10 @@ &uart1 {
pinctrl-0 = <&uart1_pins_default>;
pinctrl-1 = <&uart1_pins_sleep>;
status = "okay";
+   bluetooth {
+   compatible = "ti,wl1271-st";
+   enable-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
+   };
 };
 
 &gpmc {
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14420): 
https://lists.yoctoproject.org/g/linux-yocto/message/14420
Mute This Topic: https://lists.yoctoproject.org/mt/108731315/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.6]PATCH 2/8] arm: dts: am335x-evmsk: add uart1

2024-09-29 Thread Xulin Sun via lists.yoctoproject.org
From: Xiaolei Wang 

add uart1 device tree for binding bluetooth

Signed-off-by: Xiaolei Wang 
Signed-off-by: Xulin Sun 
---
 arch/arm/boot/dts/ti/omap/am335x-evmsk.dts | 25 ++
 1 file changed, 25 insertions(+)

diff --git a/arch/arm/boot/dts/ti/omap/am335x-evmsk.dts 
b/arch/arm/boot/dts/ti/omap/am335x-evmsk.dts
index 009a1d758d91..6aa7e138a5fb 100644
--- a/arch/arm/boot/dts/ti/omap/am335x-evmsk.dts
+++ b/arch/arm/boot/dts/ti/omap/am335x-evmsk.dts
@@ -301,6 +301,24 @@ AM33XX_PADCONF(AM335X_PIN_UART0_TXD, PIN_OUTPUT_PULLDOWN, 
MUX_MODE0)
>;
};
 
+   uart1_pins_default: pinmux_uart1_pins_default {
+pinctrl-single,pins = <
+0x178 (PIN_OUTPUT | MUX_MODE0)  /* 
uart1_ctsn.uart1_ctsn */
+0x17C (PIN_INPUT | MUX_MODE0)   /* 
uart1_rtsn.uart1_rtsn */
+0x180 (PIN_INPUT_PULLUP | MUX_MODE0)/* 
uart1_rxd.uart1_rxd */
+0x184 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* 
uart1_txd.uart1_txd */
+>;
+};
+
+uart1_pins_sleep: pinmux_uart1_pins_sleep {
+pinctrl-single,pins = <
+0x178 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+0x17C (PIN_INPUT_PULLDOWN | MUX_MODE7)
+0x180 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+0x184 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+>;
+};
+
clkout2_pin: clkout2-pins {
pinctrl-single,pins = <
AM33XX_PADCONF(AM335X_PIN_XDMA_EVENT_INTR1, 
PIN_OUTPUT_PULLDOWN, MUX_MODE3) /* xdma_event_intr1.clkout2 */
@@ -450,6 +468,13 @@ &uart0 {
status = "okay";
 };
 
+&uart1 {
+   pinctrl-names = "default", "sleep";
+   pinctrl-0 = <&uart1_pins_default>;
+   pinctrl-1 = <&uart1_pins_sleep>;
+   status = "okay";
+};
+
 &gpmc {
status = "okay";
 };
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14419): 
https://lists.yoctoproject.org/g/linux-yocto/message/14419
Mute This Topic: https://lists.yoctoproject.org/mt/108731314/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.6]PATCH 1/8] arm: dts: am33xx: enable gpmc for LCD etc.

2024-09-29 Thread Xulin Sun via lists.yoctoproject.org
From: Zumeng Chen 

gpmc should be enabled by default since a lot of devices depend on it.

(cherry picked from commit 0bd0c6fd0307237064c28535eedcbcd0bb33e44a)
Signed-off-by: Zumeng Chen 
Signed-off-by: Xiaolei Wang 
Signed-off-by: Xulin Sun 
---
 arch/arm/boot/dts/ti/omap/am335x-evmsk.dts | 4 
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/boot/dts/ti/omap/am335x-evmsk.dts 
b/arch/arm/boot/dts/ti/omap/am335x-evmsk.dts
index 57f78846c42d..009a1d758d91 100644
--- a/arch/arm/boot/dts/ti/omap/am335x-evmsk.dts
+++ b/arch/arm/boot/dts/ti/omap/am335x-evmsk.dts
@@ -450,6 +450,10 @@ &uart0 {
status = "okay";
 };
 
+&gpmc {
+   status = "okay";
+};
+
 &i2c0 {
pinctrl-names = "default";
pinctrl-0 = <&i2c0_pins>;
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14418): 
https://lists.yoctoproject.org/g/linux-yocto/message/14418
Mute This Topic: https://lists.yoctoproject.org/mt/108731313/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.6][PATCH 0/8]ti-am335x kernel part for v6.6 kernel

2024-09-29 Thread Xulin Sun via lists.yoctoproject.org
Hi Bruce,

This patch series is to support ti-am335x bsp for v6.6 kernel.
Please help me merge these into the following two branches:

v6.6/standard/ti-sdk-6.6/ti-soc
v6.6/standard/preempt-rt/ti-sdk-6.6/ti-soc

Thanks
Xulin



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14417): 
https://lists.yoctoproject.org/g/linux-yocto/message/14417
Mute This Topic: https://lists.yoctoproject.org/mt/108731312/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][yocto-kernel-cache][yocto-6.6][PATCH] ti-am335x: add kernel-cache configuration files for v6.6 kernel

2024-09-29 Thread Xulin Sun via lists.yoctoproject.org
This adds the cfg & scc files to support TI AM335X EVM & BeagleBone
Black boards, it's picked from the v6.1 kernel-cache configuration file.

Signed-off-by: Xulin Sun 
---
 bsp/ti-am335x/ti-am335x-preempt-rt.scc |  8 +++
 bsp/ti-am335x/ti-am335x-standard.scc   |  1 -
 bsp/ti-am335x/ti-am335x.cfg| 83 +-
 3 files changed, 88 insertions(+), 4 deletions(-)
 create mode 100644 bsp/ti-am335x/ti-am335x-preempt-rt.scc

diff --git a/bsp/ti-am335x/ti-am335x-preempt-rt.scc 
b/bsp/ti-am335x/ti-am335x-preempt-rt.scc
new file mode 100644
index ..754c00d7
--- /dev/null
+++ b/bsp/ti-am335x/ti-am335x-preempt-rt.scc
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: MIT
+define KMACHINE ti-am335x
+define KTYPE preempt-rt
+define KARCH arm
+
+include ktypes/preempt-rt
+
+include ti-am335x.scc
diff --git a/bsp/ti-am335x/ti-am335x-standard.scc 
b/bsp/ti-am335x/ti-am335x-standard.scc
index 0d1048b0..0af0cee5 100644
--- a/bsp/ti-am335x/ti-am335x-standard.scc
+++ b/bsp/ti-am335x/ti-am335x-standard.scc
@@ -4,6 +4,5 @@ define KTYPE standard
 define KARCH arm
 
 include ktypes/standard/standard.scc
-branch ti-am335x
 
 include ti-am335x.scc
diff --git a/bsp/ti-am335x/ti-am335x.cfg b/bsp/ti-am335x/ti-am335x.cfg
index bdf54c5d..cbf432d6 100644
--- a/bsp/ti-am335x/ti-am335x.cfg
+++ b/bsp/ti-am335x/ti-am335x.cfg
@@ -35,6 +35,8 @@ CONFIG_REGMAP_IRQ=y
 
 CONFIG_REGULATOR_TPS65910=y
 CONFIG_REGULATOR_TPS65217=y
+CONFIG_FW_LOADER_USER_HELPER=y
+CONFIG_FW_LOADER_USER_HELPER_FALLBACK=y
 
 #
 # CPU Frequency
@@ -85,9 +87,12 @@ CONFIG_TI_CPSW_PHY_SEL=y
 CONFIG_TI_CPSW=y
 CONFIG_TI_CPTS=y
 CONFIG_PHYLIB=y
+CONFIG_NET_SWITCHDEV=y
+CONFIG_TI_CPSW_SWITCHDEV=y
 
 CONFIG_SMSC_PHY=y
 CONFIG_FIXED_PHY=y
+CONFIG_AT803X_PHY=y
 
 #
 # Input Device Drivers
@@ -156,19 +161,28 @@ CONFIG_TWL6040_CORE=y
 # LCD
 #
 CONFIG_DRM=y
-CONFIG_DRM_OMAP=y
+CONFIG_DRM_OMAP=m
 CONFIG_OMAP2_DSS_DPI=y
 CONFIG_DRM_TILCDC=y
 CONFIG_DRM_I2C_NXP_TDA998X=y
+CONFIG_DRM_LEGACY=y
+CONFIG_DRM_PANEL_SIMPLE=m
+CONFIG_DRM_PANEL_EDP=m
 
 CONFIG_LCD_CLASS_DEVICE=y
 CONFIG_LCD_PLATFORM=y
 CONFIG_BACKLIGHT_CLASS_DEVICE=y
-CONFIG_BACKLIGHT_GENERIC=y
 CONFIG_PWM=y
 CONFIG_BACKLIGHT_PWM=y
 CONFIG_BACKLIGHT_GPIO=y
-
+CONFIG_PWM_TIECAP=m
+CONFIG_PWM_TIEHRPWM=m
+CONFIG_NEW_LEDS=y
+CONFIG_LEDS_CLASS=y
+CONFIG_LEDS_PWM=y
+CONFIG_OMAP5_DSS_HDMI=y
+CONFIG_DRM_TI_TFP410=m
+CONFIG_DRM_TI_TPD12S015=m
 
 CONFIG_SOUND=m
 CONFIG_SND=m
@@ -187,6 +201,8 @@ CONFIG_USB_EHCI_TT_NEWSCHED=y
 CONFIG_USB_EHCI_HCD_OMAP=m
 CONFIG_USB_MUSB_HDRC=m
 
+CONFIG_USB_GADGET=m
+
 #
 # USB Physical Layer drivers Peripheral Controller
 #
@@ -194,6 +210,10 @@ CONFIG_USB_PHY=y
 CONFIG_NOP_USB_XCEIV=m
 CONFIG_AM335X_CONTROL_USB=m
 CONFIG_AM335X_PHY_USB=m
+CONFIG_USB_OTG=y
+CONFIG_USB_MUSB_DUAL_ROLE=y
+CONFIG_USB_MUSB_TUSB6010=m
+CONFIG_USB_MUSB_OMAP2PLUS=m
 
 # Platform Glue Layer
 CONFIG_USB_MUSB_DSPS=m
@@ -251,3 +271,60 @@ CONFIG_TI_PIPE3=y
 CONFIG_ARM_PMU=y
 
 CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y
+
+# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
+#
+# Audio support for Texas Instruments SoCs
+#
+CONFIG_SND_SOC_DAVINCI_MCASP=m
+CONFIG_SND_SOC_TLV320AIC3X=m
+CONFIG_SND_SOC_TLV320AIC3X_I2C=m
+
+CONFIG_CFG80211=m
+CONFIG_MAC80211=m
+
+#
+# Wifi support for Texas Instruments SoCs
+#
+CONFIG_WL12XX=m
+CONFIG_WL18XX=m
+CONFIG_WLCORE=m
+CONFIG_WLCORE_SDIO=m
+
+CONFIG_CAN=y
+CONFIG_CAN_RAW=y
+CONFIG_CAN_BCM=y
+CONFIG_CAN_GW=y
+CONFIG_CAN_DEV=y
+CONFIG_CAN_C_CAN=y
+CONFIG_CAN_C_CAN_PLATFORM=y
+CONFIG_CAN_NETLINK=y
+CONFIG_CAN_CALC_BITTIMING=y
+
+CONFIG_WKUP_M3_RPROC=m
+CONFIG_PRU_REMOTEPROC=m
+
+CONFIG_SOC_TI=y
+CONFIG_TI_PRUSS=m
+
+CONFIG_BT=y
+CONFIG_BT_RFCOMM=y
+CONFIG_BT_RFCOMM_TTY=y
+CONFIG_BT_LE=y
+CONFIG_BT_HCIUART=y
+CONFIG_BT_HCIUART_H4=y
+CONFIG_SERIAL_DEV_BUS=y
+CONFIG_BT_HCIUART_LL=y
+
+CONFIG_MAILBOX=y
+CONFIG_OMAP2PLUS_MBOX=y
+CONFIG_SRAM=y
+CONFIG_TI_EMIF_SRAM=m
+CONFIG_WKUP_M3_IPC=m
+CONFIG_AMX3_PM=m
+
+CONFIG_IIO=y
+CONFIG_IIO_BUFFER=y
+CONFIG_TI_AM335X_ADC=y
+CONFIG_FB=y
+CONFIG_PERF_EVENTS=y
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14416): 
https://lists.yoctoproject.org/g/linux-yocto/message/14416
Mute This Topic: https://lists.yoctoproject.org/mt/108730588/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.6/standard/ti-sdk-6.6/ti-soc & v6.6/standard/preempt-rt/ti-sdk-6.6/ti-soc][PATCH] arm64: dts: ti: drop dependencies on deprecated header file

2024-09-10 Thread Xulin Sun via lists.yoctoproject.org
Drop dependencies on deprecated header file ti-serdes.h to fix below
building issue:

scripts/dtc/include-prefixes/dt-bindings/mux/ti-serdes.h:15:2:
warning:#warning "These bindings are deprecated. Instead, use the header in the 
DTS source directory." [-Wcpp]
15 | #warning "These bindings are deprecated. Instead, use the header in the 
DTS source directory."

Signed-off-by: Xulin Sun 
---
 arch/arm64/boot/dts/ti/k3-j721e-vision-apps.dtso  | 2 --
 arch/arm64/boot/dts/ti/k3-j784s4-vision-apps.dtso | 2 --
 2 files changed, 4 deletions(-)

diff --git a/arch/arm64/boot/dts/ti/k3-j721e-vision-apps.dtso 
b/arch/arm64/boot/dts/ti/k3-j721e-vision-apps.dtso
index bcedbe6c6bdc..bb9a3237352f 100644
--- a/arch/arm64/boot/dts/ti/k3-j721e-vision-apps.dtso
+++ b/arch/arm64/boot/dts/ti/k3-j721e-vision-apps.dtso
@@ -8,8 +8,6 @@
 /dts-v1/;
 /plugin/;
 
-#include 
-
 &main_r5fss0_core0_shared_memory_queue_region {
status = "disabled";
 };
diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-vision-apps.dtso 
b/arch/arm64/boot/dts/ti/k3-j784s4-vision-apps.dtso
index 83b5004052cd..6c6e755b9996 100644
--- a/arch/arm64/boot/dts/ti/k3-j784s4-vision-apps.dtso
+++ b/arch/arm64/boot/dts/ti/k3-j784s4-vision-apps.dtso
@@ -8,8 +8,6 @@
 /dts-v1/;
 /plugin/;
 
-#include 
-
 &main_r5fss0_core0_shared_memory_queue_region {
status = "disabled";
 };
-- 
2.44.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14387): 
https://lists.yoctoproject.org/g/linux-yocto/message/14387
Mute This Topic: https://lists.yoctoproject.org/mt/108388008/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][yocto-kernel-cache][yocto-6.6][PATCH] ti-j7xxx: change the page size to 4KB

2024-09-08 Thread Xulin Sun via lists.yoctoproject.org
Align to TI SDK to set CONFIG_ARM64_4K_PAGES=y instead of
CONFIG_ARM64_64K_PAGES, this will also fix the below output
issue when the system boots up:
  am65-cpsw-nuss 4600.ethernet: swiotlb buffer is full (sz: 65536 bytes), 
total 32768 (slots), used 32768 (slots)
  am65-cpsw-nuss 4600.ethernet: swiotlb buffer is full (sz: 65536 bytes), 
total 32768 (slots), used 32768 (slots)

Signed-off-by: Xulin Sun 
---
 bsp/ti-j7xxx/ti-j7xxx.cfg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bsp/ti-j7xxx/ti-j7xxx.cfg b/bsp/ti-j7xxx/ti-j7xxx.cfg
index 64dc9038..85f48c9e 100755
--- a/bsp/ti-j7xxx/ti-j7xxx.cfg
+++ b/bsp/ti-j7xxx/ti-j7xxx.cfg
@@ -26,7 +26,7 @@ CONFIG_CMA=y
 CONFIG_DMA_CMA=y
 
 CONFIG_EXPERT=y
-CONFIG_ARM64_64K_PAGES=y
+CONFIG_ARM64_4K_PAGES=y
 CONFIG_TRANSPARENT_HUGEPAGE=y
 CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y
 
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14380): 
https://lists.yoctoproject.org/g/linux-yocto/message/14380
Mute This Topic: https://lists.yoctoproject.org/mt/108348606/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.6/standard/ti-sdk-6.6/ti-soc & v6.6/standard/preempt-rt/ti-sdk-6.6/ti-soc][PATCH] net: ethernet: ti: select PAGE_POOL for TI K3 CPSW Ethernet driver

2024-09-04 Thread Xulin Sun via lists.yoctoproject.org
To fix below dependency issue:
 aarch64-oe-linux-ld.bfd: Unexpected GOT/PLT entries detected!
 aarch64-oe-linux-ld.bfd: Unexpected run-time procedure linkages detected!
 aarch64-oe-linux-ld.bfd: drivers/net/ethernet/ti/am65-cpsw-nuss.o: in function 
`am65_cpsw_nuss_rx_poll':
 am65-cpsw-nuss.c:(.text+0x5108): undefined reference to `page_pool_alloc_pages'
 aarch64-oe-linux-ld.bfd: drivers/net/ethernet/ti/am65-cpsw-nuss.o: in function 
`am65_cpsw_nuss_ndo_slave_open':
 am65-cpsw-nuss.c:(.text+0x5998): undefined reference to `page_pool_create'
 aarch64-oe-linux-ld.bfd: am65-cpsw-nuss.c:(.text+0x5c38): undefined reference 
to `page_pool_alloc_pages'

Signed-off-by: Xulin Sun 
---
 drivers/net/ethernet/ti/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/ti/Kconfig b/drivers/net/ethernet/ti/Kconfig
index ef35caa520a5..178cb9a893f8 100644
--- a/drivers/net/ethernet/ti/Kconfig
+++ b/drivers/net/ethernet/ti/Kconfig
@@ -114,6 +114,7 @@ config TI_K3_AM65_CPSW_NUSS
select TI_DAVINCI_MDIO
select PHYLINK
select TI_K3_CPPI_DESC_POOL
+   select PAGE_POOL
imply PHY_TI_GMII_SEL
depends on TI_K3_AM65_CPTS || !TI_K3_AM65_CPTS
help
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14355): 
https://lists.yoctoproject.org/g/linux-yocto/message/14355
Mute This Topic: https://lists.yoctoproject.org/mt/108261514/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.6/standard/ti-sdk-6.6/ti-soc & v6.6/standard/preempt-rt/ti-sdk-6.6/ti-soc]PATCH 4/4] arm64: dts: ti: k3-j784s4: Add overlay for edge ai

2024-08-28 Thread Xulin Sun via lists.yoctoproject.org
From: Rahul T R 

Add overlay for RTOS memory map for edge ai with
DSS and other pheriperals enabled

Signed-off-by: Rahul T R 
[Xulin: picked from ti-processor-sdk-linux-adas-j784s4-evm-10_00_00_08]
Signed-off-by: Xulin Sun 
---
 arch/arm64/boot/dts/ti/Makefile   |  1 +
 arch/arm64/boot/dts/ti/k3-j784s4-edgeai-apps.dtso | 11 +++
 2 files changed, 12 insertions(+)
 create mode 100644 arch/arm64/boot/dts/ti/k3-j784s4-edgeai-apps.dtso

diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile
index 542ab65f6574..efa4fdce6c3e 100644
--- a/arch/arm64/boot/dts/ti/Makefile
+++ b/arch/arm64/boot/dts/ti/Makefile
@@ -162,6 +162,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-j784s4-evm-pcie0-pcie1-ep.dtbo
 dtb-$(CONFIG_ARCH_K3) += k3-j784s4-evm-quad-port-eth-exp1.dtbo
 dtb-$(CONFIG_ARCH_K3) += k3-j784s4-evm-usxgmii-exp1-exp2.dtbo
 dtb-$(CONFIG_ARCH_K3) += k3-j784s4-vision-apps.dtbo
+dtb-$(CONFIG_ARCH_K3) += k3-j784s4-edgeai-apps.dtbo
 dtb-$(CONFIG_ARCH_K3) += k3-am69-sk-rpi-hdr-ehrpwm.dtbo
 
 # Boards with J742S2 SoC
diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-edgeai-apps.dtso 
b/arch/arm64/boot/dts/ti/k3-j784s4-edgeai-apps.dtso
new file mode 100644
index ..eee02b0538b0
--- /dev/null
+++ b/arch/arm64/boot/dts/ti/k3-j784s4-edgeai-apps.dtso
@@ -0,0 +1,11 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * vision-apps: device-tree overlay
+ *
+ * Copyright (C) 2019 - 2022 Texas Instruments Incorporated - 
http://www.ti.com/
+ */
+
+/dts-v1/;
+/plugin/;
+
+#include "k3-j784s4-rtos-memory-map.dtsi"
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14341): 
https://lists.yoctoproject.org/g/linux-yocto/message/14341
Mute This Topic: https://lists.yoctoproject.org/mt/108138864/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.6/standard/ti-sdk-6.6/ti-soc & v6.6/standard/preempt-rt/ti-sdk-6.6/ti-soc]PATCH 3/4] arm64: dts: ti: Add DTB overlay for vision apps

2024-08-28 Thread Xulin Sun via lists.yoctoproject.org
From: Lucas Weaver 

Confine the memory map changes into a separate rtos-memory-map.dts
which describes the common memory map for all RTOS remoteprocs.

vision-apps.dtbo uses this and also disables capture and display
related peripherals from Linux so that it can be used by RTOS.

Also, Update the linux CMA region to allocate the required size in the
same region as the tiovx shared memory region. This is required to allow
the codec to access tiovx buffers through DMABUF IMPORT feature.

Signed-off-by: Aniket Limaye 
[Xulin: picked from ti-processor-sdk-linux-adas-j784s4-evm-10_00_00_08]
Signed-off-by: Xulin Sun 
---
 arch/arm64/boot/dts/ti/Makefile   |   2 +
 .../dts/ti/k3-j784s4-rtos-memory-map.dtsi | 341 ++
 .../boot/dts/ti/k3-j784s4-vision-apps.dtso|  53 +++
 3 files changed, 396 insertions(+)
 create mode 100644 arch/arm64/boot/dts/ti/k3-j784s4-rtos-memory-map.dtsi
 create mode 100644 arch/arm64/boot/dts/ti/k3-j784s4-vision-apps.dtso

diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile
index a55b395fe3e9..542ab65f6574 100644
--- a/arch/arm64/boot/dts/ti/Makefile
+++ b/arch/arm64/boot/dts/ti/Makefile
@@ -161,6 +161,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-j784s4-evm-ethfw.dtbo
 dtb-$(CONFIG_ARCH_K3) += k3-j784s4-evm-pcie0-pcie1-ep.dtbo
 dtb-$(CONFIG_ARCH_K3) += k3-j784s4-evm-quad-port-eth-exp1.dtbo
 dtb-$(CONFIG_ARCH_K3) += k3-j784s4-evm-usxgmii-exp1-exp2.dtbo
+dtb-$(CONFIG_ARCH_K3) += k3-j784s4-vision-apps.dtbo
 dtb-$(CONFIG_ARCH_K3) += k3-am69-sk-rpi-hdr-ehrpwm.dtbo
 
 # Boards with J742S2 SoC
@@ -386,3 +387,4 @@ DTC_FLAGS_k3-j722s-evm += -@
 DTC_FLAGS_k3-j722s-evm-fpdlink-fusion += -@
 DTC_FLAGS_k3-j722s-evm-v3link-fusion += -@
 DTC_FLAGS_k3-j784s4-evm += -@
+DTC_FLAGS_k3-j784s4-evm-ethfw += -@
diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-rtos-memory-map.dtsi 
b/arch/arm64/boot/dts/ti/k3-j784s4-rtos-memory-map.dtsi
new file mode 100644
index ..9950ce6e3db4
--- /dev/null
+++ b/arch/arm64/boot/dts/ti/k3-j784s4-rtos-memory-map.dtsi
@@ -0,0 +1,341 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Vision-apps: device-tree overlay
+ *
+ * Copyright (C) 2019 - 2022 Texas Instruments Incorporated - 
http://www.ti.com/
+ */
+
+#include 
+
+&{/} {
+   dma-buf-phys {
+   compatible = "ti,dma-buf-phys";
+   };
+};
+
+&mcu_r5fss0_core0_memory_region {
+   status = "disabled";
+};
+
+&mcu_r5fss0_core0_dma_memory_region {
+   status = "disabled";
+};
+
+&mcu_r5fss0_core1_dma_memory_region {
+   status = "disabled";
+};
+
+&mcu_r5fss0_core1_memory_region {
+   status = "disabled";
+};
+
+&main_r5fss0_core0_dma_memory_region {
+   status = "disabled";
+};
+
+&main_r5fss0_core0_memory_region {
+   status = "disabled";
+};
+
+&main_r5fss0_core1_dma_memory_region {
+   status = "disabled";
+};
+
+&main_r5fss0_core1_memory_region {
+   status = "disabled";
+};
+
+&main_r5fss1_core0_dma_memory_region {
+   status = "disabled";
+};
+
+&main_r5fss1_core0_memory_region {
+   status = "disabled";
+};
+
+&main_r5fss1_core1_dma_memory_region {
+   status = "disabled";
+};
+
+&main_r5fss1_core1_memory_region {
+   status = "disabled";
+};
+
+&main_r5fss2_core0_dma_memory_region {
+   status = "disabled";
+};
+
+&main_r5fss2_core0_memory_region {
+   status = "disabled";
+};
+
+&main_r5fss2_core1_dma_memory_region {
+   status = "disabled";
+};
+
+&main_r5fss2_core1_memory_region {
+   status = "disabled";
+};
+
+&c71_0_dma_memory_region {
+   status = "disabled";
+};
+
+&c71_0_memory_region {
+   status = "disabled";
+};
+
+&c71_1_dma_memory_region {
+   status = "disabled";
+};
+
+&c71_1_memory_region {
+   status = "disabled";
+};
+
+&c71_2_dma_memory_region {
+   status = "disabled";
+};
+
+&c71_2_memory_region {
+   status = "disabled";
+};
+
+&c71_3_dma_memory_region {
+   status = "disabled";
+};
+
+&c71_3_memory_region {
+   status = "disabled";
+};
+
+&reserved_memory {
+   #address-cells = <2>;
+   #size-cells = <2>;
+
+   vision_apps_mcu_r5fss0_core0_dma_memory_region: 
vision-apps-r5f-dma-memory@a000 {
+   compatible = "shared-dma-pool";
+   reg = <0x00 0xa000 0x00 0x0010>;
+   no-map;
+   };
+   vision_apps_mcu_r5fss0_core0_memory_region: 
vision-apps-r5f-memory@a010 {
+   compatible = "shared-dma-pool";
+   reg = <0x00 0xa010 0x00 0x00f0>;
+   no-map;
+   };
+   vision_apps_mcu_r5fss0_core1_dma_memory_reg

[linux-yocto][linux-yocto v6.6/standard/ti-sdk-6.6/ti-soc & v6.6/standard/preempt-rt/ti-sdk-6.6/ti-soc]PATCH 2/4] remoteproc: k3-dsp: assert reset in probe

2024-08-28 Thread Xulin Sun via lists.yoctoproject.org
From: Hari Nagalla 

Assert reset in probe. This ensures the DSP is in reset and does
not start running bogus code when remote proc driver invokes
prepare call to load firmware.

Signed-off-by: Hari Nagalla 
[Xulin: picked from ti-processor-sdk-linux-adas-j784s4-evm-10_00_00_08]
Signed-off-by: Xulin Sun 
---
 drivers/remoteproc/ti_k3_dsp_remoteproc.c | 16 +++-
 1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/drivers/remoteproc/ti_k3_dsp_remoteproc.c 
b/drivers/remoteproc/ti_k3_dsp_remoteproc.c
index 76d12782dd5c..2b25acaadcc1 100644
--- a/drivers/remoteproc/ti_k3_dsp_remoteproc.c
+++ b/drivers/remoteproc/ti_k3_dsp_remoteproc.c
@@ -806,18 +806,16 @@ static int k3_dsp_rproc_probe(struct platform_device 
*pdev)
} else {
dev_info(dev, "configured DSP for remoteproc mode\n");
/*
-* ensure the DSP local reset is asserted to ensure the DSP
+* ensure the DSP reset is asserted to ensure the DSP
 * doesn't execute bogus code in .prepare() when the module
 * reset is released.
 */
-   if (data->uses_lreset) {
-   ret = reset_control_status(kproc->reset);
-   if (ret < 0) {
-   return dev_err_probe(dev, ret, "failed to get 
reset status\n");
-   } else if (ret == 0) {
-   dev_warn(dev, "local reset is deasserted for 
device\n");
-   k3_dsp_rproc_reset(kproc);
-   }
+   ret = reset_control_status(kproc->reset);
+   if (ret < 0) {
+   return dev_err_probe(dev, ret, "failed to get reset 
status\n");
+   } else if (ret == 0) {
+   dev_warn(dev, "local reset is deasserted for device\n");
+   k3_dsp_rproc_reset(kproc);
}
}
 
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14339): 
https://lists.yoctoproject.org/g/linux-yocto/message/14339
Mute This Topic: https://lists.yoctoproject.org/mt/108138862/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.6/standard/ti-sdk-6.6/ti-soc & v6.6/standard/preempt-rt/ti-sdk-6.6/ti-soc]PATCH 1/4] arm64: dts: ti: Add DTB overlays for vision apps and edgeai apps

2024-08-28 Thread Xulin Sun via lists.yoctoproject.org
From: Lucas Weaver 

Confine the memory map changes into a separate rtos-memory-map.dts
which describes the common memory map for all RTOS remoteprocs.

vision-apps.dtbo uses this and also disables capture and display
related peripherals from Linux so that it can be used by RTOS.

edgeai-apps.dtbo expects these devices to be owned by linux, so
it uses the rtos-memory-map customization only.

Signed-off-by: Nikhil Devshatwar 
[Xulin: picked from ti-processor-sdk-linux-adas-j721e-evm-10_00_00_08]
Signed-off-by: Xulin Sun 
---
 arch/arm64/boot/dts/ti/Makefile   |   3 +
 .../boot/dts/ti/k3-j721e-edgeai-apps.dtso |  11 +
 .../boot/dts/ti/k3-j721e-rtos-memory-map.dtsi | 267 ++
 .../boot/dts/ti/k3-j721e-vision-apps.dtso |  49 
 k3-j722s-rtos-memory-map.dtsi | 166 +++
 5 files changed, 496 insertions(+)
 create mode 100644 arch/arm64/boot/dts/ti/k3-j721e-edgeai-apps.dtso
 create mode 100644 arch/arm64/boot/dts/ti/k3-j721e-rtos-memory-map.dtsi
 create mode 100644 arch/arm64/boot/dts/ti/k3-j721e-vision-apps.dtso
 create mode 100644 k3-j722s-rtos-memory-map.dtsi

diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile
index 649b338fee0e..a55b395fe3e9 100644
--- a/arch/arm64/boot/dts/ti/Makefile
+++ b/arch/arm64/boot/dts/ti/Makefile
@@ -124,6 +124,8 @@ dtb-$(CONFIG_ARCH_K3) += k3-j721e-sk-csi2-ov5640.dtbo
 dtb-$(CONFIG_ARCH_K3) += k3-j721e-sk-csi2-dual-imx219.dtbo
 dtb-$(CONFIG_ARCH_K3) += k3-j721e-sk-fpdlink-fusion.dtbo
 dtb-$(CONFIG_ARCH_K3) += k3-j721e-sk-rpi-hdr-ehrpwm.dtbo
+dtb-$(CONFIG_ARCH_K3) += k3-j721e-edgeai-apps.dtbo
+dtb-$(CONFIG_ARCH_K3) += k3-j721e-vision-apps.dtbo
 
 # Boards with J721s2 SoC
 dtb-$(CONFIG_ARCH_K3) += k3-am68-sk-base-board.dtb
@@ -357,6 +359,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-v3link-imx219-0-0.dtbo \
 k3-v3link-imx219-0-3.dtbo
 
 # Enable support for device-tree overlays
+DTC_FLAGS_k3-j721e-evm-ethfw += -@
 DTC_FLAGS_k3-am625-beagleplay += -@
 DTC_FLAGS_k3-am625-sk += -@
 DTC_FLAGS_k3-am62-lp-sk += -@
diff --git a/arch/arm64/boot/dts/ti/k3-j721e-edgeai-apps.dtso 
b/arch/arm64/boot/dts/ti/k3-j721e-edgeai-apps.dtso
new file mode 100644
index ..adcd2ed6b987
--- /dev/null
+++ b/arch/arm64/boot/dts/ti/k3-j721e-edgeai-apps.dtso
@@ -0,0 +1,11 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * edgeai-apps: device-tree overlay
+ *
+ * Copyright (C) 2019 - 2021 Texas Instruments Incorporated - 
http://www.ti.com/
+ */
+
+/dts-v1/;
+/plugin/;
+
+#include "k3-j721e-rtos-memory-map.dtsi"
diff --git a/arch/arm64/boot/dts/ti/k3-j721e-rtos-memory-map.dtsi 
b/arch/arm64/boot/dts/ti/k3-j721e-rtos-memory-map.dtsi
new file mode 100644
index ..a059ff6678c2
--- /dev/null
+++ b/arch/arm64/boot/dts/ti/k3-j721e-rtos-memory-map.dtsi
@@ -0,0 +1,267 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Vision-apps: device-tree overlay
+ *
+ * Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com/
+ */
+
+#include 
+
+&{/} {
+   dma_buf_phys {
+   compatible = "ti,dma-buf-phys";
+   };
+};
+
+&mcu_r5fss0_core0_memory_region {
+   status = "disabled";
+};
+
+&mcu_r5fss0_core0_dma_memory_region {
+   status = "disabled";
+};
+
+&mcu_r5fss0_core1_dma_memory_region {
+   status = "disabled";
+};
+
+&mcu_r5fss0_core1_memory_region {
+   status = "disabled";
+};
+
+&main_r5fss0_core0_dma_memory_region {
+   status = "disabled";
+};
+
+&main_r5fss0_core0_memory_region {
+   status = "disabled";
+};
+
+&main_r5fss0_core1_dma_memory_region {
+   status = "disabled";
+};
+
+&main_r5fss0_core1_memory_region {
+   status = "disabled";
+};
+
+&main_r5fss1_core0_dma_memory_region {
+   status = "disabled";
+};
+
+&main_r5fss1_core0_memory_region {
+   status = "disabled";
+};
+
+&main_r5fss1_core1_dma_memory_region {
+   status = "disabled";
+};
+
+&main_r5fss1_core1_memory_region {
+   status = "disabled";
+};
+
+&c66_0_dma_memory_region {
+   status = "disabled";
+};
+
+&c66_0_memory_region {
+   status = "disabled";
+};
+
+&c66_1_dma_memory_region {
+   status = "disabled";
+};
+
+&c66_1_memory_region {
+   status = "disabled";
+};
+
+&c71_0_dma_memory_region {
+   status = "disabled";
+};
+
+&c71_0_memory_region {
+   status = "disabled";
+};
+
+&rtos_ipc_memory_region {
+   status = "disabled";
+};
+
+&reserved_memory {
+   #address-cells = <2>;
+   #size-cells = <2>;
+
+   vision_apps_mcu_r5fss0_core0_dma_memory_region: 
vision-apps-r5f-dma-memory@a000 {
+   compatible = "shared-dma-pool";
+   reg = <0x00 0xa000 0x00 0x0010

[linux-yocto][linux-yocto v6.6][PATCH 0/4]:Pick 4 patches from the TI SDK 10.0.0.8

2024-08-28 Thread Xulin Sun via lists.yoctoproject.org
Hi Bruce,

This patch series is to pick 4 patches from the TI SDK 10.0.0.8.
Please help me merge these into the following two branches:
v6.6/standard/ti-sdk-6.6/ti-soc
v6.6/standard/preempt-rt/ti-sdk-6.6/ti-soc

 arch/arm64/boot/dts/ti/Makefile   |   6 +++
 arch/arm64/boot/dts/ti/k3-j721e-edgeai-apps.dtso  |  11 +
 arch/arm64/boot/dts/ti/k3-j721e-rtos-memory-map.dtsi  | 267 

 arch/arm64/boot/dts/ti/k3-j721e-vision-apps.dtso  |  49 
++
 arch/arm64/boot/dts/ti/k3-j784s4-edgeai-apps.dtso |  11 +
 arch/arm64/boot/dts/ti/k3-j784s4-rtos-memory-map.dtsi | 341 
+
 arch/arm64/boot/dts/ti/k3-j784s4-vision-apps.dtso |  53 

 drivers/remoteproc/ti_k3_dsp_remoteproc.c |  16 ---
 k3-j722s-rtos-memory-map.dtsi | 166 
+
 9 files changed, 911 insertions(+), 9 deletions(-)


Thanks
Xulin



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14337): 
https://lists.yoctoproject.org/g/linux-yocto/message/14337
Mute This Topic: https://lists.yoctoproject.org/mt/108138859/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][yocto-kernel-cache][yocto-6.6][PATCH 2/2] ti-j7xxx: enable TI CPSW Proxy Client driver for TI k3 platform

2024-08-28 Thread Xulin Sun via lists.yoctoproject.org
This driver supports Ethernet functionality for CPSWnG
Ethernet Subsystem.

Signed-off-by: Xulin Sun 
---
 bsp/ti-j7xxx/ti-j7xxx.cfg | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bsp/ti-j7xxx/ti-j7xxx.cfg b/bsp/ti-j7xxx/ti-j7xxx.cfg
index e2a19c99..64dc9038 100755
--- a/bsp/ti-j7xxx/ti-j7xxx.cfg
+++ b/bsp/ti-j7xxx/ti-j7xxx.cfg
@@ -284,6 +284,7 @@ CONFIG_TI_K3_AM65_CPTS=y
 CONFIG_BRIDGE_VLAN_FILTERING=y
 CONFIG_HSR=m
 CONFIG_TI_AM65_CPSW_QOS=y
+CONFIG_TI_CPSW_PROXY_CLIENT=m
 
 #
 # CRYPTO
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14336): 
https://lists.yoctoproject.org/g/linux-yocto/message/14336
Mute This Topic: https://lists.yoctoproject.org/mt/108138711/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][yocto-kernel-cache][yocto-6.6][PATCH 1/2] ti-j7xxx: add TSN feature related kernel configs

2024-08-28 Thread Xulin Sun via lists.yoctoproject.org
Add TSN feature related kernel configs, and drop the duplicated
kernel config CONFIG_NET_SCH_TAPRIO with tsn.cfg.

Signed-off-by: Xulin Sun 
---
 bsp/ti-j7xxx/ti-j7xxx.cfg | 2 +-
 bsp/ti-j7xxx/ti-j7xxx.scc | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/bsp/ti-j7xxx/ti-j7xxx.cfg b/bsp/ti-j7xxx/ti-j7xxx.cfg
index b78a1835..e2a19c99 100755
--- a/bsp/ti-j7xxx/ti-j7xxx.cfg
+++ b/bsp/ti-j7xxx/ti-j7xxx.cfg
@@ -281,9 +281,9 @@ CONFIG_TI_K3_AM65_CPSW_NUSS=y
 CONFIG_TI_K3_AM65_CPSW_SWITCHDEV=y
 CONFIG_NET_SWITCHDEV=y
 CONFIG_TI_K3_AM65_CPTS=y
-CONFIG_NET_SCH_TAPRIO=y
 CONFIG_BRIDGE_VLAN_FILTERING=y
 CONFIG_HSR=m
+CONFIG_TI_AM65_CPSW_QOS=y
 
 #
 # CRYPTO
diff --git a/bsp/ti-j7xxx/ti-j7xxx.scc b/bsp/ti-j7xxx/ti-j7xxx.scc
index d9ec786e..3c81027a 100644
--- a/bsp/ti-j7xxx/ti-j7xxx.scc
+++ b/bsp/ti-j7xxx/ti-j7xxx.scc
@@ -4,5 +4,6 @@ include cfg/fs/flash_fs.cfg
 include features/hugetlb/hugetlb.scc
 # Enable the ability to run 32 bit apps
 include arch/arm/32bit-compat.scc
+include features/tsn/tsn.scc
 
 kconf hardware ti-j7xxx.cfg
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14335): 
https://lists.yoctoproject.org/g/linux-yocto/message/14335
Mute This Topic: https://lists.yoctoproject.org/mt/108138708/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.6/standard/preempt-rt/ti-sdk-6.6/ti-soc] ti-j7xxx adds preempt-rt kernel patches to align TI SDK v6.6 kernel tag 10.00.08

2024-08-23 Thread Xulin Sun via lists.yoctoproject.org

Hi Bruce,

Could you please help to merge below patches to the new branch 
"v6.6/standard/preempt-rt/ti-sdk-6.6/ti-soc".



The following changes since commit 4872cb4cff5502a23db692dc7041c1013ccbbe6c:

  Merge branch 'v6.6/standard/base' into 
v6.6/standard/preempt-rt/ti-sdk-6.6/ti-soc (2024-07-28 16:24:01 -0400)


are available in the Git repository at:

  https://github.com/xulinsun/ti-j72x 
v6.6/standard/preempt-rt/ti-sdk-6.6/ti-soc


for you to fetch changes up to 508583dfaee073d017d235ddc173251827cf538d:

  remoteproc: k3-dsp: use local reset for C7xv dsps on AM62A 
(2024-08-23 14:59:21 +0800)



Andrew Davis (14):
  mailbox: omap: Remove unused omap_mbox_{enable,disable}_irq() 
functions

  mailbox: omap: Remove unused omap_mbox_request_channel() function
  mailbox: omap: Move omap_mbox_irq_t into driver
  mailbox: omap: Move fifo size check to point of use
  mailbox: omap: Remove unneeded header omap-mailbox.h
  mailbox: omap: Remove device class
  mailbox: omap: Use devm_pm_runtime_enable() helper
  mailbox: omap: Merge mailbox child node setup loops
  mailbox: omap: Use function local struct mbox_controller
  mailbox: omap: Use mbox_controller channel list directly
  mailbox: omap: Remove mbox_chan_to_omap_mbox()
  mailbox: omap: Reverse FIFO busy check logic
  mailbox: omap: Remove kernel FIFO message queuing
  mailbox: omap: Fix mailbox interrupt sharing

Beleswar Padhi (1):
  arm64: dts: ti: k3-j722s-main: Change timer nodes status to reserved

Bhavya Kapoor (2):
  arm64: dts: ti: k3-j721s2-som-p0: Update mux-controller node name
  arm64: dts: ti: k3-j7200-som-p0: Update mux-controller node name

Brandon Brnich (9):
  media: chips-media: wave5: Add Support for Frequency Points
  arm64: dts: ti: k3-j784s4-main: Add OPP table to the VPU node
  arm64: dts: ti: k3-j721s2-main: Add OPP table to the VPU node
  arm64: dts: ti: k3-am62p-main: Add OPP table to the VPU node
  arm64: dts: ti: k3-am62a-main: Add OPP table to the VPU codec node
  media: chips-media: wave5: Add support for dmabuf import
  HACK: media: chips-media: wave5: Fix dmabuf import null pointer 
deferenece

  media: imagination: vxe-vxd: encoder: Fix kmalloc Alignment Issues
  media: chips-media: wave5: Fix v4l2-compliance issues

Darren Etheridge (2):
  media: img: vxe-vxd: fix incorrect allocation sizes
  media: img: vxe-vxd: fix incomplete decoder initialization

Devarsh Thakkar (4):
  drm/tidss: Fix warnings on error prints
  arm64: dts: ti: am62p: Build device-tree blob for display sharing 
use-case
  arm64: dts: ti: k3-am62p: Update licensing info in dss sharing 
overlay
  arm64: dts: ti: k3-am62p: Fix compilation warning on missing 
interrupt-parent


Guillaume La Roque (3):
  net: ti: icssg-prueth: add missing deps
  net: ethernet: ti: fix duplicate entry for k3-cppi-desc-pool.o
  media: chips-media: wave5: initialize variable

Hari Nagalla (8):
  arm64: dts: ti: k3-am62a7-sk: Reserve main_timer2 for C7x DSP
  remoteproc: k3-r5: Introduce PM suspend/resume handlers
  remoteproc: k3-m4: Introduce PM suspend/resume handlers
  arm64: dts: ti: k3-am62a7-sk: HACK: Reduce mailbox fifos
  dt-bindings: remoteproc: k3-dsp: Add C7xv dsp variant for J722S
  remoteproc: k3-dsp: add compatible string for j722 c7xv DSP
  arm64: dts: ti: k3-j722s2-main: update compatible string for c7xv 
dsps

  remoteproc: k3-dsp: use local reset for C7xv dsps on AM62A

Jackson.lee (1):
  media: chips-media: wave5: Fix GOP size not being set

Jai Luthra (1):
  media: i2c: ds90ub960: Fix VC mapping when ports skipped

Kevin Hilman (1):
  pmdomain: ti_sci: handle wake IRQs for IO daisy chain wakeups

Logan Bristol (1):
  arm64: dts: ti: Add devicetree for AM62x minimal configuration

MD Danish Anwar (1):
  net: ti: icssg_prueth: Enable 10M Link issue quirk for AM64x

Manorit Chawdhry (2):
  arm64: dts: ti: Introduce J742S2 SoC and EVM
  arm64: dts: ti: k3-j742s2: Fix the number of VPUs

Markus Schneider-Pargmann (2):
  remoteproc: k3-r5: Move suspend to suspend_late
  remoteproc: k3-m4: Move suspend to suspend_late

Prasanth Babu Mantena (5):
  spi: spi-cadence-quadspi: Return EPROBE_DEFER on dma failure
  mtd: spinand: Add Status register check after Page load
  arm64: dts: ti: k3-j721s2: Revert frequency settings for OSPI NAND
  arm64: dts: ti: k3-j784s4: Revert frequency settings for OSPI NAND
  Revert "arm64: dts: ti: k3-j722s: Update Nand node for Octal SDR"

Rahul T R (1):
  remoteproc: core: Make DMA-BUF attachment interface thread safe

Santhosh Kumar K (13):
  spi: cadence-quadspi: Tune PHY for SDR without DQS
  spi: cadence-quadspi: Enable SPI_TX_QUAD
  mtd: spinand: Call do_calibration when SPI NAND probes
  mtd: spinand: winbond: Add suppor

[linux-yocto][linux-yocto v6.6/standard/ti-sdk-6.6/ti-soc] ti-j7xxx kernel part to align TI SDK v6.6 kernel tag 10.00.08

2024-08-23 Thread Xulin Sun via lists.yoctoproject.org

Hi Bruce,

Could you please help to merge below patches to the branch 
"v6.6/standard/ti-sdk-6.6/ti-soc".



The following changes since commit 33d0bfe96eff1343b93735dd765cf44ab6b55a73:

  Merge branch 'v6.6/standard/base' into 
v6.6/standard/ti-sdk-6.6/ti-soc (2024-07-28 16:25:05 -0400)


are available in the Git repository at:

   https://github.com/xulinsun/ti-j72x v6.6/standard/ti-sdk-6.6/ti-soc

for you to fetch changes up to 964e656e7f7622263f32d5ff1a0ff2d271f24bd1:

  remoteproc: k3-dsp: use local reset for C7xv dsps on AM62A 
(2024-08-23 15:00:11 +0800)



Andrew Davis (14):
  mailbox: omap: Remove unused omap_mbox_{enable,disable}_irq() 
functions

  mailbox: omap: Remove unused omap_mbox_request_channel() function
  mailbox: omap: Move omap_mbox_irq_t into driver
  mailbox: omap: Move fifo size check to point of use
  mailbox: omap: Remove unneeded header omap-mailbox.h
  mailbox: omap: Remove device class
  mailbox: omap: Use devm_pm_runtime_enable() helper
  mailbox: omap: Merge mailbox child node setup loops
  mailbox: omap: Use function local struct mbox_controller
  mailbox: omap: Use mbox_controller channel list directly
  mailbox: omap: Remove mbox_chan_to_omap_mbox()
  mailbox: omap: Reverse FIFO busy check logic
  mailbox: omap: Remove kernel FIFO message queuing
  mailbox: omap: Fix mailbox interrupt sharing

Beleswar Padhi (1):
  arm64: dts: ti: k3-j722s-main: Change timer nodes status to reserved

Bhavya Kapoor (2):
  arm64: dts: ti: k3-j721s2-som-p0: Update mux-controller node name
  arm64: dts: ti: k3-j7200-som-p0: Update mux-controller node name

Brandon Brnich (9):
  media: chips-media: wave5: Add Support for Frequency Points
  arm64: dts: ti: k3-j784s4-main: Add OPP table to the VPU node
  arm64: dts: ti: k3-j721s2-main: Add OPP table to the VPU node
  arm64: dts: ti: k3-am62p-main: Add OPP table to the VPU node
  arm64: dts: ti: k3-am62a-main: Add OPP table to the VPU codec node
  media: chips-media: wave5: Add support for dmabuf import
  HACK: media: chips-media: wave5: Fix dmabuf import null pointer 
deferenece

  media: imagination: vxe-vxd: encoder: Fix kmalloc Alignment Issues
  media: chips-media: wave5: Fix v4l2-compliance issues

Darren Etheridge (2):
  media: img: vxe-vxd: fix incorrect allocation sizes
  media: img: vxe-vxd: fix incomplete decoder initialization

Devarsh Thakkar (4):
  drm/tidss: Fix warnings on error prints
  arm64: dts: ti: am62p: Build device-tree blob for display sharing 
use-case
  arm64: dts: ti: k3-am62p: Update licensing info in dss sharing 
overlay
  arm64: dts: ti: k3-am62p: Fix compilation warning on missing 
interrupt-parent


Guillaume La Roque (3):
  net: ti: icssg-prueth: add missing deps
  net: ethernet: ti: fix duplicate entry for k3-cppi-desc-pool.o
  media: chips-media: wave5: initialize variable

Hari Nagalla (8):
  arm64: dts: ti: k3-am62a7-sk: Reserve main_timer2 for C7x DSP
  remoteproc: k3-r5: Introduce PM suspend/resume handlers
  remoteproc: k3-m4: Introduce PM suspend/resume handlers
  arm64: dts: ti: k3-am62a7-sk: HACK: Reduce mailbox fifos
  dt-bindings: remoteproc: k3-dsp: Add C7xv dsp variant for J722S
  remoteproc: k3-dsp: add compatible string for j722 c7xv DSP
  arm64: dts: ti: k3-j722s2-main: update compatible string for c7xv 
dsps

  remoteproc: k3-dsp: use local reset for C7xv dsps on AM62A

Jackson.lee (1):
  media: chips-media: wave5: Fix GOP size not being set

Jai Luthra (1):
  media: i2c: ds90ub960: Fix VC mapping when ports skipped

Kevin Hilman (1):
  pmdomain: ti_sci: handle wake IRQs for IO daisy chain wakeups

Logan Bristol (1):
  arm64: dts: ti: Add devicetree for AM62x minimal configuration

MD Danish Anwar (1):
  net: ti: icssg_prueth: Enable 10M Link issue quirk for AM64x

Manorit Chawdhry (2):
  arm64: dts: ti: Introduce J742S2 SoC and EVM
  arm64: dts: ti: k3-j742s2: Fix the number of VPUs

Markus Schneider-Pargmann (2):
  remoteproc: k3-r5: Move suspend to suspend_late
  remoteproc: k3-m4: Move suspend to suspend_late

Prasanth Babu Mantena (5):
  spi: spi-cadence-quadspi: Return EPROBE_DEFER on dma failure
  mtd: spinand: Add Status register check after Page load
  arm64: dts: ti: k3-j721s2: Revert frequency settings for OSPI NAND
  arm64: dts: ti: k3-j784s4: Revert frequency settings for OSPI NAND
  Revert "arm64: dts: ti: k3-j722s: Update Nand node for Octal SDR"

Rahul T R (1):
  remoteproc: core: Make DMA-BUF attachment interface thread safe

Santhosh Kumar K (13):
  spi: cadence-quadspi: Tune PHY for SDR without DQS
  spi: cadence-quadspi: Enable SPI_TX_QUAD
  mtd: spinand: Call do_calibration when SPI NAND probes
  mtd: spinand: winbond: Add support for W25N01JW SPI NAND flash
  mt

[linux-yocto][yocto-kernel-cache][yocto-6.6][PATCH 2/2] ti-j7xxx: add IMG media platform driver support

2024-08-22 Thread Xulin Sun via lists.yoctoproject.org
Add IMG VXD DEC (Video Decoder) driver & IMG VXE ENC (Video Encoder)
driver support for TI J721E.

Signed-off-by: Xulin Sun 
---
 bsp/ti-j7xxx/ti-j7xxx.cfg | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bsp/ti-j7xxx/ti-j7xxx.cfg b/bsp/ti-j7xxx/ti-j7xxx.cfg
index 77c73483..b78a1835 100755
--- a/bsp/ti-j7xxx/ti-j7xxx.cfg
+++ b/bsp/ti-j7xxx/ti-j7xxx.cfg
@@ -370,6 +370,8 @@ CONFIG_VIDEO_V4L2_SUBDEV_API=y
 CONFIG_V4L_PLATFORM_DRIVERS=y
 CONFIG_VIDEO_WAVE_VPU=m
 CONFIG_VIDEO_TI_J721E_CSI2RX=m
+CONFIG_VIDEO_IMG_VXE_ENC=m
+CONFIG_VIDEO_IMG_VXD_DEC=m
 
 CONFIG_REGULATOR=y
 CONFIG_REGULATOR_FIXED_VOLTAGE=y
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14306): 
https://lists.yoctoproject.org/g/linux-yocto/message/14306
Mute This Topic: https://lists.yoctoproject.org/mt/108035454/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][yocto-kernel-cache][yocto-6.6][PATCH 1/2] ti-j7xxx: add scc file for TI platform J721E

2024-08-22 Thread Xulin Sun via lists.yoctoproject.org
Signed-off-by: Xulin Sun 
---
 bsp/ti-j7xxx/ti-j72xx-preempt-rt.scc | 9 +
 bsp/ti-j7xxx/ti-j72xx-standard.scc   | 8 
 2 files changed, 17 insertions(+)
 create mode 100755 bsp/ti-j7xxx/ti-j72xx-preempt-rt.scc
 create mode 100644 bsp/ti-j7xxx/ti-j72xx-standard.scc

diff --git a/bsp/ti-j7xxx/ti-j72xx-preempt-rt.scc 
b/bsp/ti-j7xxx/ti-j72xx-preempt-rt.scc
new file mode 100755
index ..5a618c6c
--- /dev/null
+++ b/bsp/ti-j7xxx/ti-j72xx-preempt-rt.scc
@@ -0,0 +1,9 @@
+# SPDX-License-Identifier: MIT
+define KMACHINE ti-j72xx
+define KTYPE preempt-rt
+define KARCH arm64
+
+include ktypes/preempt-rt
+
+include ti-j7xxx.scc
+kconf hardware ti-j7xxx-preempt-rt.cfg
diff --git a/bsp/ti-j7xxx/ti-j72xx-standard.scc 
b/bsp/ti-j7xxx/ti-j72xx-standard.scc
new file mode 100644
index ..c8e91aa1
--- /dev/null
+++ b/bsp/ti-j7xxx/ti-j72xx-standard.scc
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: MIT
+define KMACHINE ti-j72xx
+define KTYPE standard
+define KARCH arm64
+
+include ktypes/standard/standard.scc
+
+include ti-j7xxx.scc
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14305): 
https://lists.yoctoproject.org/g/linux-yocto/message/14305
Mute This Topic: https://lists.yoctoproject.org/mt/108035453/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][yocto-kernel-cache][yocto-6.6][PATCH] ti-j7xxx: add eeprom support

2024-07-22 Thread Xulin Sun via lists.yoctoproject.org
The TI J784S4 EVM board has I2C EEPROM 24c installed,
enable it by default.

Signed-off-by: Xulin Sun 
---
 bsp/ti-j7xxx/ti-j7xxx.cfg | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bsp/ti-j7xxx/ti-j7xxx.cfg b/bsp/ti-j7xxx/ti-j7xxx.cfg
index 2de3e6cc..77c73483 100755
--- a/bsp/ti-j7xxx/ti-j7xxx.cfg
+++ b/bsp/ti-j7xxx/ti-j7xxx.cfg
@@ -193,6 +193,7 @@ CONFIG_I2C_CHARDEV=y
 CONFIG_I2C_MUX=y
 CONFIG_I2C_OMAP=y
 CONFIG_MFD_TPS6594_I2C=y
+CONFIG_EEPROM_AT24=y
 
 #
 # SPI Master Controller Drivers
-- 
2.44.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14187): 
https://lists.yoctoproject.org/g/linux-yocto/message/14187
Mute This Topic: https://lists.yoctoproject.org/mt/107498782/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.6/standard/preempt-rt/ti-sdk-6.6/ti-soc] ti-j7xxx adds preempt-rt kernel patches to align TI SDK v6.6 kernel tag 10.00.05

2024-07-18 Thread Xulin Sun via lists.yoctoproject.org

Hi Bruce,

Could you please help to merge below patches to the new branch 
"v6.6/standard/preempt-rt/ti-sdk-6.6/ti-soc".



The following changes since commit a142e52bc6572c49c668e5d224f61b8436acb2da:

  Merge branch 'v6.6/standard/base' into 
v6.6/standard/preempt-rt/ti-sdk-6.6/ti-soc (2024-07-09 09:27:47 -0400)


are available in the Git repository at:

   https://github.com/xulinsun/ti-j72x 
v6.6/standard/preempt-rt/ti-sdk-6.6/ti-soc


for you to fetch changes up to b7fbdff47c15e0013cafaf9d4f2ef2bedeb51847:

  pmdomain: ti: ti_sci_pm_domains: Fix build error with !CONFIG_SUSPEND 
(2024-07-18 17:39:22 +0800)



Aashvij Shenai (2):
  arm64: dts: ti: k3-am62*-sk: Add labels to DSS ports
  arm64: dts: ti: k3-am62*-sk: Remove HDMI for Fastboot

Abhishek Sharma (4):
  dt-bindings: media: i2c: ovti,ox05b: add OX05B1S sensor
  HACK: media: v4l2-core: v4l2-ctrls-defs: Add custom IR exposure/gain
  media: i2c: ox05b1s: add OmniVision OX05B1S driver
  arm64: boot: dts: ti: k3-am62a7: Overlay for LI OX05B1S

Andrew Davis (5):
  firmware: ti_sci: Use devm_register_restart_handler()
  firmware: ti_sci: Unconditionally register reset handler
  ARM: dts: ti: keystone: k2g: Remove ti,system-reboot-controller 
property
  dt-bindings: arm: keystone: Remove ti,system-reboot-controller 
property

  HACK: misc: Add dma-buf to physical address exporter

Apurva Nandan (7):
  arm64: dts: ti: k3-j784s4-main: Switch MAIN R5F clusters to 
Split-mode

  arm64: dts: ti: k3-j722s-main: Add R5F and C7x remote processor nodes
  arm64: dts: ti: k3-j722s-evm: Add memory carveouts for R5F and C7x
  arm64: dts: ti: k3-am62x-sk-common: Add pinmux settings for OSPI0
  arm64: dts: ti: k3-am62x-lp-sk: Add OSPI DT node
  arm64: dts: ti: k3-am62a7-sk: Enable OSPI NAND
  arm64: dts: k3-j784s4: Add node for OSPI NAND Flash

Aradhya Bhatia (11):
  dt-bindings: display: ti,am65x-dss: Add support for AM62P DSS
  drm/tidss: Add support for AM62P DSS0
  drm/tidss: Add support for AM62P DSS1
  arm64: dts: ti: k3-am62p: Add memory regions for DSS1, DSI and 
DPHY-TX

  arm64: dts: ti: k3-am62p-main: Add support for DSS0
  arm64: dts: ti: k3-am62p-main: Add DSS1, DSI and DPHY-TX
  arm64: dts: ti: k3-am62p5-sk: Enable HDMI display on DSS0
  arm64: dts: ti: k3-am62p5-sk: Add Microtips OLDI Panel-1 Overlay
  arm64: dts: ti: k3-am62p5-sk: Add Microtips OLDI Panel-2 Overlay
  arm64: dts: ti: k3-am62p5-sk: Add RPi DSI Panel
  arm64: dts: ti: k3-am62p5-sk: Add Microtips DSI SK-LCD3 DT Overlay

Beleswar Padhi (3):
  arm64: dts: ti: k3-j721s2-main: Switch MAIN R5F clusters to 
Split-mode

  arm64: dts: ti: k3-j7xx: Change timer nodes status to reserved
  arm64: dts: ti: k3-j784s4|am69: OSPI offset sync with 
ti-u-boot-2024.04 tag 10.00.04


Bhavya Kapoor (2):
  arm64: dts: ti: k3-j722s-evm: Add support for multiple CAN instances
  arm64: dts: ti: Add PWM and ECAP overlay for J722S-EVM

Brandon Brnich (18):
  arm64: dts: ti: k3-am62p-main: SRAM Allocation for VPU
  arm64: dts: ti: k3-j721s2-main: SRAM Allocation for VPU
  arm64: dts: ti: k3-j784s4-main: SRAM Allocation for VPU
  arm64: dts: ti: k3-am62a-main: SRAM Allocation for VPU
  arm64: dts: ti: k3-j722s: Add E5010 JPEG Encoder
  arm64: dts: ti: k3-j722s: Remove Invalid Interrupts Propery from 
main_pmx0

  media: chips-media: wave5: Move hrtimer_start/cancel
  media: vxe-vxd: decoder: Improve performance of h265 decoder
  media: vxe-vxd: decoder: Capture buffer cleanup
  media: v4l2-core: Add 10bit Custom definitions for NV12 and NV16 
color formats

  media: img: vxe-vxd: decoder: Remove Padding in Output
  media: img: vxe-vxd: decoder: Suppress Decoder Compiler Warnings
  media: img: vxe-vxd: decoder: Add DMA Coherent Mask
  media: img: vxe-vxd: encoder: Expose I-Frame Period Control
  media: img: vxe-vxd: encoder: Update RGB Format
  arm64: dts: ti: Video Encoder/Decoder
  media: img: vxe-vxd: encoder: Fix Compile Warning
  media: imagination: Clean Up Imagination Directory

Bryan Brattlof (5):
  cpufreq: ti: update OPP table for AM62Ax SoCs
  cpufreq: ti: update OPP table for AM62Px SoCs
  dt-bindings: mfd: syscon: add TI's opp table compatible
  arm64: dts: ti: k3-am62p: add in opp tables
  arm64: dts: ti: k3-am62a: add in opp table

Damian Muszynski (1):
  units: Add BYTES_PER_*BIT

Darren Etheridge (14):
  media: img: vxe-vxd: move vxe-vxd to manufacturer directory
  media: platform: img: Add the vxe-vxd driver into the build infra
  media: platform: img: vxe-vxd: fix-up a variety of compile warnings
  media: platform: img: vxe-vxd: fix a array out of bounds bug
  media: img: vxe-vxd: enable GStreamer 1.20.5
  media: platform: img: add missing mutex around function
  media: platform: 

[linux-yocto][linux-yocto v6.6/standard/ti-sdk-6.6/ti-soc] ti-j7xxx kernel part to align TI SDK v6.6 kernel tag 10.00.05

2024-07-18 Thread Xulin Sun via lists.yoctoproject.org

Hi Bruce,

Could you please help to merge below patches to the branch 
"v6.6/standard/ti-sdk-6.6/ti-soc".



The following changes since commit ef03a35ebd7e0201220ebc186c8eea3de0227020:

  Merge branch 'v6.6/standard/base' into 
v6.6/standard/ti-sdk-6.6/ti-soc (2024-07-09 09:27:50 -0400)


are available in the Git repository at:

    https://github.com/xulinsun/ti-j72x v6.6/standard/ti-sdk-6.6/ti-soc

for you to fetch changes up to 707291778c876c5835e936b874d00e902f67f854:

  pmdomain: ti: ti_sci_pm_domains: Fix build error with !CONFIG_SUSPEND 
(2024-07-18 17:41:14 +0800)



Aashvij Shenai (2):
  arm64: dts: ti: k3-am62*-sk: Add labels to DSS ports
  arm64: dts: ti: k3-am62*-sk: Remove HDMI for Fastboot

Abhishek Sharma (4):
  dt-bindings: media: i2c: ovti,ox05b: add OX05B1S sensor
  HACK: media: v4l2-core: v4l2-ctrls-defs: Add custom IR exposure/gain
  media: i2c: ox05b1s: add OmniVision OX05B1S driver
  arm64: boot: dts: ti: k3-am62a7: Overlay for LI OX05B1S

Andrew Davis (5):
  firmware: ti_sci: Use devm_register_restart_handler()
  firmware: ti_sci: Unconditionally register reset handler
  ARM: dts: ti: keystone: k2g: Remove ti,system-reboot-controller 
property
  dt-bindings: arm: keystone: Remove ti,system-reboot-controller 
property

  HACK: misc: Add dma-buf to physical address exporter

Apurva Nandan (7):
  arm64: dts: ti: k3-j784s4-main: Switch MAIN R5F clusters to 
Split-mode

  arm64: dts: ti: k3-j722s-main: Add R5F and C7x remote processor nodes
  arm64: dts: ti: k3-j722s-evm: Add memory carveouts for R5F and C7x
  arm64: dts: ti: k3-am62x-sk-common: Add pinmux settings for OSPI0
  arm64: dts: ti: k3-am62x-lp-sk: Add OSPI DT node
  arm64: dts: ti: k3-am62a7-sk: Enable OSPI NAND
  arm64: dts: k3-j784s4: Add node for OSPI NAND Flash

Aradhya Bhatia (11):
  dt-bindings: display: ti,am65x-dss: Add support for AM62P DSS
  drm/tidss: Add support for AM62P DSS0
  drm/tidss: Add support for AM62P DSS1
  arm64: dts: ti: k3-am62p: Add memory regions for DSS1, DSI and 
DPHY-TX

  arm64: dts: ti: k3-am62p-main: Add support for DSS0
  arm64: dts: ti: k3-am62p-main: Add DSS1, DSI and DPHY-TX
  arm64: dts: ti: k3-am62p5-sk: Enable HDMI display on DSS0
  arm64: dts: ti: k3-am62p5-sk: Add Microtips OLDI Panel-1 Overlay
  arm64: dts: ti: k3-am62p5-sk: Add Microtips OLDI Panel-2 Overlay
  arm64: dts: ti: k3-am62p5-sk: Add RPi DSI Panel
  arm64: dts: ti: k3-am62p5-sk: Add Microtips DSI SK-LCD3 DT Overlay

Beleswar Padhi (3):
  arm64: dts: ti: k3-j721s2-main: Switch MAIN R5F clusters to 
Split-mode

  arm64: dts: ti: k3-j7xx: Change timer nodes status to reserved
  arm64: dts: ti: k3-j784s4|am69: OSPI offset sync with 
ti-u-boot-2024.04 tag 10.00.04


Bhavya Kapoor (2):
  arm64: dts: ti: k3-j722s-evm: Add support for multiple CAN instances
  arm64: dts: ti: Add PWM and ECAP overlay for J722S-EVM

Brandon Brnich (18):
  arm64: dts: ti: k3-am62p-main: SRAM Allocation for VPU
  arm64: dts: ti: k3-j721s2-main: SRAM Allocation for VPU
  arm64: dts: ti: k3-j784s4-main: SRAM Allocation for VPU
  arm64: dts: ti: k3-am62a-main: SRAM Allocation for VPU
  arm64: dts: ti: k3-j722s: Add E5010 JPEG Encoder
  arm64: dts: ti: k3-j722s: Remove Invalid Interrupts Propery from 
main_pmx0

  media: chips-media: wave5: Move hrtimer_start/cancel
  media: vxe-vxd: decoder: Improve performance of h265 decoder
  media: vxe-vxd: decoder: Capture buffer cleanup
  media: v4l2-core: Add 10bit Custom definitions for NV12 and NV16 
color formats

  media: img: vxe-vxd: decoder: Remove Padding in Output
  media: img: vxe-vxd: decoder: Suppress Decoder Compiler Warnings
  media: img: vxe-vxd: decoder: Add DMA Coherent Mask
  media: img: vxe-vxd: encoder: Expose I-Frame Period Control
  media: img: vxe-vxd: encoder: Update RGB Format
  arm64: dts: ti: Video Encoder/Decoder
  media: img: vxe-vxd: encoder: Fix Compile Warning
  media: imagination: Clean Up Imagination Directory

Bryan Brattlof (5):
  cpufreq: ti: update OPP table for AM62Ax SoCs
  cpufreq: ti: update OPP table for AM62Px SoCs
  dt-bindings: mfd: syscon: add TI's opp table compatible
  arm64: dts: ti: k3-am62p: add in opp tables
  arm64: dts: ti: k3-am62a: add in opp table

Damian Muszynski (1):
  units: Add BYTES_PER_*BIT

Darren Etheridge (14):
  media: img: vxe-vxd: move vxe-vxd to manufacturer directory
  media: platform: img: Add the vxe-vxd driver into the build infra
  media: platform: img: vxe-vxd: fix-up a variety of compile warnings
  media: platform: img: vxe-vxd: fix a array out of bounds bug
  media: img: vxe-vxd: enable GStreamer 1.20.5
  media: platform: img: add missing mutex around function
  media: platform: img: vxd: fix the error handling
 

[linux-yocto][linux-yocto v6.6/standard/preempt-rt/nxp-sdk-6.6/nxp-soc & v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc][PATCH] irq: imx: irqsteer: Unset data->domain->dev

2024-07-04 Thread Xulin Sun via lists.yoctoproject.org
The irq_domain::dev is used for power management purposes related to the
irq domain. But for irqsteer, the runtime PM has been forbid in order to
workaround other issues. So there is no need to set data->domain->dev.
With this change, the devices which leverage the irqsteer irqchip will
not run into the following call trace when setting up irq handler.

BUG: sleeping function called from invalid context at 
/kernel/locking/spinlock_rt.c:48
in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 1, name: swapper/0
preempt_count: 1, expected: 0
RCU nest depth: 0, expected: 0
CPU: 4 PID: 1 Comm: swapper/0 Not tainted 6.6.32-rt31-yocto-preempt-rt #1
Hardware name: Freescale i.MX8QM MEK (DT)
Call trace:
 dump_backtrace+0x98/0xf8
 show_stack+0x20/0x38
 dump_stack_lvl+0x48/0x60
 dump_stack+0x18/0x28
 __might_resched+0x120/0x188
 rt_spin_lock+0x38/0xc8
 __pm_runtime_resume+0x50/0xc0
 irq_chip_pm_get+0x34/0xb0
 __irq_do_set_handler+0x180/0x260
 irq_set_chained_handler_and_data+0x68/0xb8
 dpu_probe+0x680/0x1d08
 platform_probe+0x70/0xd8
 really_probe+0x150/0x2c0
 __driver_probe_device+0x80/0x140
 driver_probe_device+0xdc/0x178
 __driver_attach+0x98/0x1b8
 bus_for_each_dev+0x84/0xf0
 driver_attach+0x2c/0x40
 bus_add_driver+0xf0/0x208
 driver_register+0x64/0x138
 __platform_driver_register+0x30/0x48
 dpu_driver_init+0x24/0x38
 do_one_initcall+0x74/0x2a8
 kernel_init_freeable+0x1ec/0x3d8
 kernel_init+0x30/0x1f8
 ret_from_fork+0x10/0x20
dpu-core 5618.dpu: driver probed

Signed-off-by: Xulin Sun 
---
 drivers/irqchip/irq-imx-irqsteer.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/irqchip/irq-imx-irqsteer.c 
b/drivers/irqchip/irq-imx-irqsteer.c
index 311342ae894b..1cf2539f6e4b 100644
--- a/drivers/irqchip/irq-imx-irqsteer.c
+++ b/drivers/irqchip/irq-imx-irqsteer.c
@@ -251,7 +251,6 @@ static int imx_irqsteer_probe(struct platform_device *pdev)
ret = -ENOMEM;
goto out;
}
-   irq_domain_set_pm_device(data->domain, &pdev->dev);
 
if (!data->irq_count || data->irq_count > CHAN_MAX_OUTPUT_INT) {
ret = -EINVAL;
-- 
2.44.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14116): 
https://lists.yoctoproject.org/g/linux-yocto/message/14116
Mute This Topic: https://lists.yoctoproject.org/mt/107048175/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.6/standard/ti-sdk-6.6/ti-soc & v6.6/standard/preempt-rt/ti-sdk-6.6/ti-soc][PATCH] media: cadence: csi2rx: correct not defined label

2024-06-26 Thread Xulin Sun via lists.yoctoproject.org
Correct not defined label introduced by wrong merging and to fix below
building issue:

drivers/media/platform/cadence/cdns-csi2rx.c:339:17: error: label 
'err_disable_sysclk' used but not defined
|   339 | goto err_disable_sysclk;
|   | ^~~~

Signed-off-by: Xulin Sun 
---
 drivers/media/platform/cadence/cdns-csi2rx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/platform/cadence/cdns-csi2rx.c 
b/drivers/media/platform/cadence/cdns-csi2rx.c
index 4c7260f6e824..c3fda71b0ca2 100644
--- a/drivers/media/platform/cadence/cdns-csi2rx.c
+++ b/drivers/media/platform/cadence/cdns-csi2rx.c
@@ -336,7 +336,7 @@ static int csi2rx_start(struct csi2rx_priv *csi2rx)
 
ret = v4l2_subdev_call(csi2rx->source_subdev, video, s_stream, true);
if (ret)
-   goto err_disable_sysclk;
+   goto err_disable_pixclk;
 
clk_disable_unprepare(csi2rx->p_clk);
 
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14105): 
https://lists.yoctoproject.org/g/linux-yocto/message/14105
Mute This Topic: https://lists.yoctoproject.org/mt/106904181/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.6/standard/nxp-sdk-6.6/nxp-soc & v6.6/standard/preempt-rt/nxp-sdk-6.6/nxp-soc][PATCH] gpu: imx: dpu: extdst: use raw_spin_lock instead of mutex_lock

2024-06-19 Thread Xulin Sun via lists.yoctoproject.org
For Atomic Mode Setting, it is safer to use raw spin lock.
Mutex may cause scheduling, which avoids the following warning.

BUG: sleeping function called from invalid context at 
/kernel/locking/mutex.c:283
in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 131, name: kworker/0:3
preempt_count: 1, expected: 0
RCU nest depth: 0, expected: 0
Hardware name: Freescale i.MX8QM MEK (DT)
Workqueue: events drm_mode_rmfb_work_fn
Call trace:
 dump_backtrace+0x98/0xf8
 show_stack+0x20/0x38
 dump_stack_lvl+0x48/0x60
 dump_stack+0x18/0x28
 __might_resched+0x120/0x188
 __might_sleep+0x50/0x90
 mutex_lock+0x2c/0x90
 extdst_pixengcfg_sync_trigger+0x28/0x60
 dpu_crtc_atomic_flush+0x394/0x610
 drm_atomic_helper_commit_planes+0x178/0x2e8
 drm_atomic_helper_commit_tail+0x5c/0xb0
 commit_tail+0x168/0x1a0
 drm_atomic_helper_commit+0x184/0x1a8
 drm_atomic_commit+0xb4/0xf8
 drm_framebuffer_remove+0x464/0x520
 drm_mode_rmfb_work_fn+0x84/0xb0
 process_one_work+0x160/0x3a8
 worker_thread+0x338/0x458
 kthread+0x124/0x130
 ret_from_fork+0x10/0x20

Signed-off-by: Xulin Sun 
---
 drivers/gpu/imx/dpu/dpu-extdst.c | 110 +++
 1 file changed, 55 insertions(+), 55 deletions(-)

diff --git a/drivers/gpu/imx/dpu/dpu-extdst.c b/drivers/gpu/imx/dpu/dpu-extdst.c
index 013e03a2537e..c4736632cff6 100644
--- a/drivers/gpu/imx/dpu/dpu-extdst.c
+++ b/drivers/gpu/imx/dpu/dpu-extdst.c
@@ -61,7 +61,7 @@ static u16 get_yval(u32 pixel_cnt)
 struct dpu_extdst {
void __iomem *pec_base;
void __iomem *base;
-   struct mutex mutex;
+   raw_spinlock_t lock;
int id;
bool inuse;
struct dpu_soc *dpu;
@@ -101,14 +101,14 @@ void extdst_pixengcfg_shden(struct dpu_extdst *ed, bool 
enable)
 {
u32 val;
 
-   mutex_lock(&ed->mutex);
+   raw_spin_lock(&ed->lock);
val = dpu_pec_ed_read(ed, PIXENGCFG_STATIC);
if (enable)
val |= SHDEN;
else
val &= ~SHDEN;
dpu_pec_ed_write(ed, PIXENGCFG_STATIC, val);
-   mutex_unlock(&ed->mutex);
+   raw_spin_unlock(&ed->lock);
 }
 EXPORT_SYMBOL_GPL(extdst_pixengcfg_shden);
 
@@ -116,14 +116,14 @@ void extdst_pixengcfg_powerdown(struct dpu_extdst *ed, 
bool powerdown)
 {
u32 val;
 
-   mutex_lock(&ed->mutex);
+   raw_spin_lock(&ed->lock);
val = dpu_pec_ed_read(ed, PIXENGCFG_STATIC);
if (powerdown)
val |= POWERDOWN;
else
val &= ~POWERDOWN;
dpu_pec_ed_write(ed, PIXENGCFG_STATIC, val);
-   mutex_unlock(&ed->mutex);
+   raw_spin_unlock(&ed->lock);
 }
 EXPORT_SYMBOL_GPL(extdst_pixengcfg_powerdown);
 
@@ -131,14 +131,14 @@ void extdst_pixengcfg_sync_mode(struct dpu_extdst *ed, 
ed_sync_mode_t mode)
 {
u32 val;
 
-   mutex_lock(&ed->mutex);
+   raw_spin_lock(&ed->lock);
val = dpu_pec_ed_read(ed, PIXENGCFG_STATIC);
if (mode == AUTO)
val |= SYNC_MODE;
else
val &= ~SYNC_MODE;
dpu_pec_ed_write(ed, PIXENGCFG_STATIC, val);
-   mutex_unlock(&ed->mutex);
+   raw_spin_unlock(&ed->lock);
 }
 EXPORT_SYMBOL_GPL(extdst_pixengcfg_sync_mode);
 
@@ -146,14 +146,14 @@ void extdst_pixengcfg_reset(struct dpu_extdst *ed, bool 
reset)
 {
u32 val;
 
-   mutex_lock(&ed->mutex);
+   raw_spin_lock(&ed->lock);
val = dpu_pec_ed_read(ed, PIXENGCFG_STATIC);
if (reset)
val |= SW_RESET;
else
val &= ~SW_RESET;
dpu_pec_ed_write(ed, PIXENGCFG_STATIC, val);
-   mutex_unlock(&ed->mutex);
+   raw_spin_unlock(&ed->lock);
 }
 EXPORT_SYMBOL_GPL(extdst_pixengcfg_reset);
 
@@ -161,12 +161,12 @@ void extdst_pixengcfg_div(struct dpu_extdst *ed, u16 div)
 {
u32 val;
 
-   mutex_lock(&ed->mutex);
+   raw_spin_lock(&ed->lock);
val = dpu_pec_ed_read(ed, PIXENGCFG_STATIC);
val &= ~0xFF;
val |= DIV(div);
dpu_pec_ed_write(ed, PIXENGCFG_STATIC, val);
-   mutex_unlock(&ed->mutex);
+   raw_spin_unlock(&ed->lock);
 }
 EXPORT_SYMBOL_GPL(extdst_pixengcfg_div);
 
@@ -174,22 +174,22 @@ void extdst_pixengcfg_syncmode_master(struct dpu_extdst 
*ed, bool enable)
 {
u32 val;
 
-   mutex_lock(&ed->mutex);
+   raw_spin_lock(&ed->lock);
val = dpu_pec_ed_read(ed, PIXENGCFG_STATIC);
if (enable)
val |= BIT(16);
else
val &= ~BIT(16);
dpu_pec_ed_write(ed, PIXENGCFG_STATIC, val);
-   mutex_unlock(&ed->mutex);
+   raw_spin_unlock(&ed->lock);
 }
 EXPORT_SYMBOL_GPL(extdst_pixengcfg_syncmode_master);
 
 int extdst_pixengcfg_src_sel(struct dpu_extdst *ed, extdst_src_sel_t src)
 {
-   mutex_lock(&ed->mutex);
+   raw_spin_lock(&ed->lock);

[linux-yocto][yocto-kernel-cache][yocto-6.6][PATCH] ti-j7xxx: add kernel-cache configuration files for v6.6 kernel

2024-06-14 Thread Xulin Sun via lists.yoctoproject.org
This adds the cfg & scc files to support TI J784S4 soc.
This refers to scc and cfg files on previous branch yocto-6.1.

Signed-off-by: Xulin Sun 
---
 bsp/ti-j7xxx/ti-j78xx-preempt-rt.scc |   9 +
 bsp/ti-j7xxx/ti-j78xx-standard.scc   |   8 +
 bsp/ti-j7xxx/ti-j7xxx-preempt-rt.cfg |  15 ++
 bsp/ti-j7xxx/ti-j7xxx-remoteproc.cfg |  18 ++
 bsp/ti-j7xxx/ti-j7xxx-remoteproc.scc |   1 +
 bsp/ti-j7xxx/ti-j7xxx.cfg| 381 +++
 bsp/ti-j7xxx/ti-j7xxx.scc|   8 +
 7 files changed, 440 insertions(+)
 create mode 100755 bsp/ti-j7xxx/ti-j78xx-preempt-rt.scc
 create mode 100644 bsp/ti-j7xxx/ti-j78xx-standard.scc
 create mode 100644 bsp/ti-j7xxx/ti-j7xxx-preempt-rt.cfg
 create mode 100644 bsp/ti-j7xxx/ti-j7xxx-remoteproc.cfg
 create mode 100644 bsp/ti-j7xxx/ti-j7xxx-remoteproc.scc
 create mode 100755 bsp/ti-j7xxx/ti-j7xxx.cfg
 create mode 100644 bsp/ti-j7xxx/ti-j7xxx.scc

diff --git a/bsp/ti-j7xxx/ti-j78xx-preempt-rt.scc 
b/bsp/ti-j7xxx/ti-j78xx-preempt-rt.scc
new file mode 100755
index ..e8084bc1
--- /dev/null
+++ b/bsp/ti-j7xxx/ti-j78xx-preempt-rt.scc
@@ -0,0 +1,9 @@
+# SPDX-License-Identifier: MIT
+define KMACHINE ti-j78xx
+define KTYPE preempt-rt
+define KARCH arm64
+
+include ktypes/preempt-rt
+
+include ti-j7xxx.scc
+kconf hardware ti-j7xxx-preempt-rt.cfg
diff --git a/bsp/ti-j7xxx/ti-j78xx-standard.scc 
b/bsp/ti-j7xxx/ti-j78xx-standard.scc
new file mode 100644
index ..2c945b1d
--- /dev/null
+++ b/bsp/ti-j7xxx/ti-j78xx-standard.scc
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: MIT
+define KMACHINE ti-j78xx
+define KTYPE standard
+define KARCH arm64
+
+include ktypes/standard/standard.scc
+
+include ti-j7xxx.scc
diff --git a/bsp/ti-j7xxx/ti-j7xxx-preempt-rt.cfg 
b/bsp/ti-j7xxx/ti-j7xxx-preempt-rt.cfg
new file mode 100644
index ..5e391571
--- /dev/null
+++ b/bsp/ti-j7xxx/ti-j7xxx-preempt-rt.cfg
@@ -0,0 +1,15 @@
+..
+.WARNING
+.
+. This file is a kernel configuration fragment, and not a full kernel
+. configuration file.  The final kernel configuration is made up of
+. an assembly of processed fragments, each of which is designed to
+. capture a specific part of the final configuration (e.g. platform
+. configuration, feature configuration, and board specific hardware
+. configuration).  For more information on kernel configuration, please
+. consult the product documentation.
+.
+..
+
+# CONFIG_TRANSPARENT_HUGEPAGE is not set
+# CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS is not set
diff --git a/bsp/ti-j7xxx/ti-j7xxx-remoteproc.cfg 
b/bsp/ti-j7xxx/ti-j7xxx-remoteproc.cfg
new file mode 100644
index ..d00bbe16
--- /dev/null
+++ b/bsp/ti-j7xxx/ti-j7xxx-remoteproc.cfg
@@ -0,0 +1,18 @@
+#
+# Remoteproc drivers
+#
+CONFIG_REMOTEPROC=y
+CONFIG_PRU_REMOTEPROC=m
+CONFIG_TI_K3_R5_REMOTEPROC=m
+CONFIG_TI_K3_DSP_REMOTEPROC=m
+CONFIG_TI_K3_M4_REMOTEPROC=m
+CONFIG_REMOTEPROC_CDEV=y
+
+#
+# Rpmsg virtual device drivers
+#
+CONFIG_RPMSG_VIRTIO=m
+CONFIG_RPMSG_CHAR=m
+CONFIG_SAMPLES=y
+CONFIG_SAMPLE_RPMSG_CLIENT=m
+CONFIG_RPMSG_CTRL=m
diff --git a/bsp/ti-j7xxx/ti-j7xxx-remoteproc.scc 
b/bsp/ti-j7xxx/ti-j7xxx-remoteproc.scc
new file mode 100644
index ..a1bc372d
--- /dev/null
+++ b/bsp/ti-j7xxx/ti-j7xxx-remoteproc.scc
@@ -0,0 +1 @@
+kconf hardware ti-j7xxx-remoteproc.cfg
diff --git a/bsp/ti-j7xxx/ti-j7xxx.cfg b/bsp/ti-j7xxx/ti-j7xxx.cfg
new file mode 100755
index ..2de3e6cc
--- /dev/null
+++ b/bsp/ti-j7xxx/ti-j7xxx.cfg
@@ -0,0 +1,381 @@
+#
+#  WARNING
+#
+# This file is a kernel configuration fragment, and not a full kernel
+# configuration file.  The final kernel configuration is made up of
+# an assembly of processed fragments, each of which is designed to
+# capture a specific part of the final configuration (e.g. platform
+# configuration, feature configuration, and board specific hardware
+# configuration).  For more information on kernel configuration, please
+# consult the product documentation.
+#
+#.
+
+#
+#
+# Platform selection
+#
+CONFIG_ARM64=y
+CONFIG_ARCH_K3=y
+
+CONFIG_ARM_SMMU=y
+CONFIG_ARM_SMMU_DISABLE_BYPASS_BY_DEFAULT=y
+CONFIG_ARM_SMMU_V3=y
+CONFIG_TI_PRUSS=m
+CONFIG_CMA=y
+CONFIG_DMA_CMA=y
+
+CONFIG_EXPERT=y
+CONFIG_ARM64_64K_PAGES=y
+CONFIG_TRANSPARENT_HUGEPAGE=y
+CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y
+
+#
+# DesignWare PCI Core Support
+#
+
+CONFIG_PCI=y
+CONFIG_PCI_MSI=y
+CONFIG_PCI_KEYSTONE=y
+CONFIG_PCI_KEYSTONE_HOST=y
+CONFIG_PCI_J721E_HOST=y
+CONFIG_PCI_J721E_EP=y
+CONFIG_PCI_ENDPOINT=y
+CONFIG_PCI_J721E=y
+CONFIG_SOCIONEXT_SYNQUACER_PREITS=y
+CONFIG_PCIE_CADENCE=y
+CONFIG_PCIE_CADENCE_HOST=y
+CONFIG_PCIE_CADENCE_EP=y
+CONFIG_PCI_EPF_NTB=y
+CONFIG_PCIEPORTBUS=y
+CONFIG_PCI_KEYSTONE_

[linux-yocto][linux-yocto v6.6/standard/preempt-rt/ti-sdk-6.6/ti-soc] ti-j7xxx adds preempt-rt kernel patches to align TI SDK v6.6 kernel

2024-06-13 Thread Xulin Sun via lists.yoctoproject.org

Hi Bruce,

Could you please help to create a new kernel branch 
"v6.6/standard/preempt-rt/ti-sdk-6.6/ti-soc"

based on "v6.6/standard/preempt-rt/base" for upgrading BSP to kernel v6.6?

And merge below patches to the new branch 
"v6.6/standard/preempt-rt/ti-sdk-6.6/ti-soc".


The following changes since commit 0e9d5160c30f6503041165c9521e295aab3b17c4:

  Linux 6.6.31-rt31 (2024-06-05 08:15:07 -0400)

are available in the Git repository at:

   https://github.com/xulinsun/ti-j72x 
v6.6/standard/preempt-rt/ti-sdk-6.6/ti-soc


for you to fetch changes up to 4e9a23d1af922e4ab4a01dfe544a5c612a44109f:

  HACK: arm64: dts: ti: k3-am62x: Disable M4FSS rproc support 
(2024-06-12 07:41:17 +)



Abdel Alkuor (9):
  dt-bindings: usb: tps6598x: Add tps25750
  USB: typec: tsp6598x: Add cmd timeout and response delay
  USB: typec: tps6598x: Add patch mode to tps6598x
  USB: typec: tps6598x: Refactor tps6598x port registration
  USB: typec: tps6598x: Add device data to of_device_id
  USB: typec: tps6598x: Add TPS25750 support
  USB: typec: tps6598x: Add trace for tps25750 irq
  USB: typec: tps6598x: Add power status trace for tps25750
  USB: typec: tps6598x: Add status trace for tps25750

Adam Ford (1):
  net: ethernet: davinci_emac: Use MAC Address from Device Tree

Andrejs Cainikovs (1):
  arm64: dts: ti: verdin-am62: add support for Verdin USB1 interface

Andrew Davis (68):
  dt-bindings: mfd: syscon: Add ti,am654-dss-oldi-io-ctrl compatible
  arm64: dts: ti: k3-am65: Add full compatible to dss-oldi-io-ctrl node
  arm64: dts: ti: k3-am64: Fix typo in epwm_tbclk node name
  drm: omapdrm: Improve check for contiguous buffers
  arm64: dts: ti: k3-j7200: Add chipid node to wkup_conf bus
  arm64: dts: ti: k3-j784s4: Add chipid node to wkup_conf bus
  arm64: dts: ti: k3-j721s2: Add chipid node to wkup_conf bus
  arm64: dts: ti: k3-am65: Add chipid node to wkup_conf bus
  arm64: dts: ti: k3-j721e: Add chipid node to wkup_conf bus
  arm64: dts: ti: k3-am65: Enable SDHCI nodes at the board level
  arm64: dts: ti: k3-am625-beagleplay: Use UART name in pinmux name
  arm64: dts: ti: k3-am65: Add AM652 DTSI file
  mux: mmio: use reg property when parent device is not a syscon
  power: supply: bq27xxx: Switch to a simpler IDA interface
  power: supply: bq27xxx: Add devm action to free IDA
  power: supply: bq27xxx: Use devm to free device mutex
  power: supply: bq27xxx: Use devm_power_supply_register() helper
  power: supply: bq27xxx: Move one time design full read out of poll
  remoteproc: k3-dsp: Use devm_rproc_alloc() helper
  remoteproc: k3-dsp: Add devm action to release reserved memory
  remoteproc: k3-dsp: Use devm_kcalloc() helper
  remoteproc: k3-dsp: Use devm_ti_sci_get_by_phandle() helper
  remoteproc: k3-dsp: Use devm_kzalloc() helper
  remoteproc: k3-dsp: Add devm action to release tsp
  remoteproc: k3-dsp: Use devm_ioremap_wc() helper
  remoteproc: k3-dsp: Use devm_rproc_add() helper
  arm64: dts: ti: k3-am642-evm: Do not split single items
  arm64: dts: ti: k3-am642-sk: Do not split single items
  arm64: dts: ti: iot2050: Do not split single items
  arm64: dts: ti: k3-am654-base-board: Do not split single items
  arm64: dts: ti: k3-am68-sk-som: Do not split single items
  arm64: dts: ti: k3-am69-sk: Do not split single items
  arm64: dts: ti: k3-j7200-som-p0: Do not split single items
  arm64: dts: ti: k3-j721e-beagleboneai64: Do not split single items
  arm64: dts: ti: k3-j721e-sk: Do not split single items
  arm64: dts: ti: k3-j721e-som-p0: Do not split single items
  arm64: dts: ti: k3-j721s2-som-p0: Do not split single items
  arm64: dts: ti: k3-j7200: Enable PCIe nodes at the board level
  arm64: dts: ti: k3-j7200: Remove PCIe endpoint node
  arm64: dts: ti: k3-am65: Remove PCIe endpoint nodes
  arm64: dts: ti: k3-am64: Remove PCIe endpoint node
  arm64: dts: ti: k3-am64: Convert serdes_ln_ctrl node into reg-mux
  arm64: dts: ti: k3-j7200: Convert serdes_ln_ctrl node into reg-mux
  arm64: dts: ti: k3-j7200: Convert usb_serdes_mux node into reg-mux
  arm64: dts: ti: k3-j721e: Convert serdes_ln_ctrl node into reg-mux
  arm64: dts: ti: k3-j721e: Convert usb_serdes_mux node into reg-mux
  arm64: dts: ti: k3-j721s2: Convert usb_serdes_mux node into reg-mux
  arm64: dts: ti: k3-j721s2: Convert serdes_ln_ctrl node into reg-mux
  arm64: dts: ti: k3-j7200: Make the FSS node a simple-bus
  arm64: dts: ti: k3-am62: Make the main_conf node a simple-bus
  arm64: dts: ti: k3-am62a: Make the main_conf node a simple-bus
  dma-buf: heaps: Initialize during core instead of subsys
  dma-buf: heaps: Add Carveout heap to DMA-BUF Heaps
  misc: sram: Add DMA-BUF Heap exporting of SRAM areas
  remoteproc: core:

[linux-yocto][linux-yocto v6.6/standard/ti-sdk-6.6/ti-soc] ti-j7xxx kernel part to align TI SDK v6.6 kernel tag 10.00.01

2024-06-13 Thread Xulin Sun via lists.yoctoproject.org

Hi Bruce,

Could you please help to create a new kernel branch 
"v6.6/standard/ti-sdk-6.6/ti-soc"

based on "v6.6/standard/base" for upgrading BSP to kernel v6.6?

And merge below patches to the new branch "v6.6/standard/ti-sdk-6.6/ti-soc".



The following changes since commit 9576b5b9f8e3c78e6c315f475def18e5c29e475a:

  Merge tag 'v6.6.32' into v6.6/standard/base (2024-05-28 13:31:12 -0400)

are available in the Git repository at:

   https://github.com/xulinsun/ti-j72x v6.6/standard/ti-sdk-6.6/ti-soc

for you to fetch changes up to 287cacead6fda00bccaea19fe451627179a40a0a:

  HACK: arm64: dts: ti: k3-am62x: Disable M4FSS rproc support 
(2024-06-13 17:27:05 +0800)



Abdel Alkuor (9):
  dt-bindings: usb: tps6598x: Add tps25750
  USB: typec: tsp6598x: Add cmd timeout and response delay
  USB: typec: tps6598x: Add patch mode to tps6598x
  USB: typec: tps6598x: Refactor tps6598x port registration
  USB: typec: tps6598x: Add device data to of_device_id
  USB: typec: tps6598x: Add TPS25750 support
  USB: typec: tps6598x: Add trace for tps25750 irq
  USB: typec: tps6598x: Add power status trace for tps25750
  USB: typec: tps6598x: Add status trace for tps25750

Adam Ford (1):
  net: ethernet: davinci_emac: Use MAC Address from Device Tree

Andrejs Cainikovs (1):
  arm64: dts: ti: verdin-am62: add support for Verdin USB1 interface

Andrew Davis (68):
  dt-bindings: mfd: syscon: Add ti,am654-dss-oldi-io-ctrl compatible
  arm64: dts: ti: k3-am65: Add full compatible to dss-oldi-io-ctrl node
  arm64: dts: ti: k3-am64: Fix typo in epwm_tbclk node name
  drm: omapdrm: Improve check for contiguous buffers
  arm64: dts: ti: k3-j7200: Add chipid node to wkup_conf bus
  arm64: dts: ti: k3-j784s4: Add chipid node to wkup_conf bus
  arm64: dts: ti: k3-j721s2: Add chipid node to wkup_conf bus
  arm64: dts: ti: k3-am65: Add chipid node to wkup_conf bus
  arm64: dts: ti: k3-j721e: Add chipid node to wkup_conf bus
  arm64: dts: ti: k3-am65: Enable SDHCI nodes at the board level
  arm64: dts: ti: k3-am625-beagleplay: Use UART name in pinmux name
  arm64: dts: ti: k3-am65: Add AM652 DTSI file
  mux: mmio: use reg property when parent device is not a syscon
  power: supply: bq27xxx: Switch to a simpler IDA interface
  power: supply: bq27xxx: Add devm action to free IDA
  power: supply: bq27xxx: Use devm to free device mutex
  power: supply: bq27xxx: Use devm_power_supply_register() helper
  power: supply: bq27xxx: Move one time design full read out of poll
  remoteproc: k3-dsp: Use devm_rproc_alloc() helper
  remoteproc: k3-dsp: Add devm action to release reserved memory
  remoteproc: k3-dsp: Use devm_kcalloc() helper
  remoteproc: k3-dsp: Use devm_ti_sci_get_by_phandle() helper
  remoteproc: k3-dsp: Use devm_kzalloc() helper
  remoteproc: k3-dsp: Add devm action to release tsp
  remoteproc: k3-dsp: Use devm_ioremap_wc() helper
  remoteproc: k3-dsp: Use devm_rproc_add() helper
  arm64: dts: ti: k3-am642-evm: Do not split single items
  arm64: dts: ti: k3-am642-sk: Do not split single items
  arm64: dts: ti: iot2050: Do not split single items
  arm64: dts: ti: k3-am654-base-board: Do not split single items
  arm64: dts: ti: k3-am68-sk-som: Do not split single items
  arm64: dts: ti: k3-am69-sk: Do not split single items
  arm64: dts: ti: k3-j7200-som-p0: Do not split single items
  arm64: dts: ti: k3-j721e-beagleboneai64: Do not split single items
  arm64: dts: ti: k3-j721e-sk: Do not split single items
  arm64: dts: ti: k3-j721e-som-p0: Do not split single items
  arm64: dts: ti: k3-j721s2-som-p0: Do not split single items
  arm64: dts: ti: k3-j7200: Enable PCIe nodes at the board level
  arm64: dts: ti: k3-j7200: Remove PCIe endpoint node
  arm64: dts: ti: k3-am65: Remove PCIe endpoint nodes
  arm64: dts: ti: k3-am64: Remove PCIe endpoint node
  arm64: dts: ti: k3-am64: Convert serdes_ln_ctrl node into reg-mux
  arm64: dts: ti: k3-j7200: Convert serdes_ln_ctrl node into reg-mux
  arm64: dts: ti: k3-j7200: Convert usb_serdes_mux node into reg-mux
  arm64: dts: ti: k3-j721e: Convert serdes_ln_ctrl node into reg-mux
  arm64: dts: ti: k3-j721e: Convert usb_serdes_mux node into reg-mux
  arm64: dts: ti: k3-j721s2: Convert usb_serdes_mux node into reg-mux
  arm64: dts: ti: k3-j721s2: Convert serdes_ln_ctrl node into reg-mux
  arm64: dts: ti: k3-j7200: Make the FSS node a simple-bus
  arm64: dts: ti: k3-am62: Make the main_conf node a simple-bus
  arm64: dts: ti: k3-am62a: Make the main_conf node a simple-bus
  dma-buf: heaps: Initialize during core instead of subsys
  dma-buf: heaps: Add Carveout heap to DMA-BUF Heaps
  misc: sram: Add DMA-BUF Heap exporting of SRAM areas
  remoteproc: core: Make Remoteproc dev

[linux-yocto][linux-yocto v6.6/standard/nxp-sdk-6.6/nxp-soc & v6.6/standard/preempt-rt/nxp-sdk-6.6/nxp-soc][PATCH 6/6] Revert "arm64: dts: imx8-ss-lsio: fix pwm lpcg indices"

2024-06-10 Thread Xulin Sun via lists.yoctoproject.org
This reverts commit e9e44fc88abadc52ca6b0f1f8307e6967ddbec22.

The clock driver clk-imx8qxp-lpcg still uses LPCG bit-offset instead of
clock-indices for clock-controller dts properties, so it can not switch
to use lpcg indices.

Signed-off-by: Xulin Sun 
---
 arch/arm64/boot/dts/freescale/imx8-ss-lsio.dtsi | 16 
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-lsio.dtsi 
b/arch/arm64/boot/dts/freescale/imx8-ss-lsio.dtsi
index 8475b7a37316..0677cbef8f2b 100644
--- a/arch/arm64/boot/dts/freescale/imx8-ss-lsio.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8-ss-lsio.dtsi
@@ -32,8 +32,8 @@ lsio_pwm0: pwm@5d00 {
compatible = "fsl,imx27-pwm";
reg = <0x5d00 0x1>;
clock-names = "ipg", "per";
-   clocks = <&pwm0_lpcg IMX_LPCG_CLK_6>,
-<&pwm0_lpcg IMX_LPCG_CLK_1>;
+   clocks = <&pwm0_lpcg 4>,
+<&pwm0_lpcg 1>;
assigned-clocks = <&clk IMX_SC_R_PWM_0 IMX_SC_PM_CLK_PER>;
assigned-clock-rates = <2400>;
#pwm-cells = <3>;
@@ -45,8 +45,8 @@ lsio_pwm1: pwm@5d01 {
compatible = "fsl,imx27-pwm";
reg = <0x5d01 0x1>;
clock-names = "ipg", "per";
-   clocks = <&pwm1_lpcg IMX_LPCG_CLK_6>,
-<&pwm1_lpcg IMX_LPCG_CLK_1>;
+   clocks = <&pwm1_lpcg 4>,
+<&pwm1_lpcg 1>;
assigned-clocks = <&clk IMX_SC_R_PWM_1 IMX_SC_PM_CLK_PER>;
assigned-clock-rates = <2400>;
#pwm-cells = <3>;
@@ -58,8 +58,8 @@ lsio_pwm2: pwm@5d02 {
compatible = "fsl,imx27-pwm";
reg = <0x5d02 0x1>;
clock-names = "ipg", "per";
-   clocks = <&pwm2_lpcg IMX_LPCG_CLK_6>,
-<&pwm2_lpcg IMX_LPCG_CLK_1>;
+   clocks = <&pwm2_lpcg 4>,
+<&pwm2_lpcg 1>;
assigned-clocks = <&clk IMX_SC_R_PWM_2 IMX_SC_PM_CLK_PER>;
assigned-clock-rates = <2400>;
#pwm-cells = <3>;
@@ -71,8 +71,8 @@ lsio_pwm3: pwm@5d03 {
compatible = "fsl,imx27-pwm";
reg = <0x5d03 0x1>;
clock-names = "ipg", "per";
-   clocks = <&pwm3_lpcg IMX_LPCG_CLK_6>,
-<&pwm3_lpcg IMX_LPCG_CLK_1>;
+   clocks = <&pwm3_lpcg 4>,
+<&pwm3_lpcg 1>;
assigned-clocks = <&clk IMX_SC_R_PWM_3 IMX_SC_PM_CLK_PER>;
assigned-clock-rates = <2400>;
#pwm-cells = <3>;
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14020): 
https://lists.yoctoproject.org/g/linux-yocto/message/14020
Mute This Topic: https://lists.yoctoproject.org/mt/106607420/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.6/standard/nxp-sdk-6.6/nxp-soc & v6.6/standard/preempt-rt/nxp-sdk-6.6/nxp-soc][PATCH 5/6] Revert "arm64: dts: imx8qm-ss-dma: fix can lpcg indices"

2024-06-10 Thread Xulin Sun via lists.yoctoproject.org
This reverts commit 20ceb2b50fd5a59825daba5fb82021768afe9f71.

The clock driver clk-imx8qxp-lpcg still uses LPCG bit-offset instead of
clock-indices for clock-controller dts properties, so it can not switch
to use lpcg indices.

Signed-off-by: Xulin Sun 
---
 arch/arm64/boot/dts/freescale/imx8qm-ss-dma.dtsi | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/imx8qm-ss-dma.dtsi 
b/arch/arm64/boot/dts/freescale/imx8qm-ss-dma.dtsi
index b3a5ab539573..b4eda76d435c 100644
--- a/arch/arm64/boot/dts/freescale/imx8qm-ss-dma.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8qm-ss-dma.dtsi
@@ -92,15 +92,15 @@ &flexcan1 {
 };
 
 &flexcan2 {
-   clocks = <&can1_lpcg IMX_LPCG_CLK_4>,
-<&can1_lpcg IMX_LPCG_CLK_0>;
+   clocks = <&can1_lpcg 1>,
+<&can1_lpcg 0>;
assigned-clocks = <&clk IMX_SC_R_CAN_1 IMX_SC_PM_CLK_PER>;
fsl,clk-source = /bits/ 8 <1>;
 };
 
 &flexcan3 {
-   clocks = <&can2_lpcg IMX_LPCG_CLK_4>,
-<&can2_lpcg IMX_LPCG_CLK_0>;
+   clocks = <&can2_lpcg 1>,
+<&can2_lpcg 0>;
assigned-clocks = <&clk IMX_SC_R_CAN_2 IMX_SC_PM_CLK_PER>;
fsl,clk-source = /bits/ 8 <1>;
 };
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14019): 
https://lists.yoctoproject.org/g/linux-yocto/message/14019
Mute This Topic: https://lists.yoctoproject.org/mt/106607419/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.6/standard/nxp-sdk-6.6/nxp-soc & v6.6/standard/preempt-rt/nxp-sdk-6.6/nxp-soc][PATCH 4/6] Revert "arm64: dts: imx8-ss-dma: fix can lpcg indices"

2024-06-10 Thread Xulin Sun via lists.yoctoproject.org
This reverts commit 19a8492473b0afe7340fcf6b764d1c22b8f21ae3.

The clock driver clk-imx8qxp-lpcg still uses LPCG bit-offset instead of
clock-indices for clock-controller dts properties, so it can not switch
to use lpcg indices.

Signed-off-by: Xulin Sun 
---
 arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi | 12 ++--
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi 
b/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi
index 496501086584..0ae1a8123c63 100644
--- a/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi
@@ -389,8 +389,8 @@ flexcan1: can@5a8d {
reg = <0x5a8d 0x1>;
interrupts = ;
interrupt-parent = <&gic>;
-   clocks = <&can0_lpcg IMX_LPCG_CLK_4>,
-<&can0_lpcg IMX_LPCG_CLK_0>;
+   clocks = <&can0_lpcg 1>,
+<&can0_lpcg 0>;
clock-names = "ipg", "per";
assigned-clocks = <&clk IMX_SC_R_CAN_0 IMX_SC_PM_CLK_PER>;
assigned-clock-rates = <4000>;
@@ -410,8 +410,8 @@ flexcan2: can@5a8e {
 * CAN1 shares CAN0's clock and to enable CAN0's clock it
 * has to be powered on.
 */
-   clocks = <&can0_lpcg IMX_LPCG_CLK_4>,
-<&can0_lpcg IMX_LPCG_CLK_0>;
+   clocks = <&can0_lpcg 1>,
+<&can0_lpcg 0>;
clock-names = "ipg", "per";
assigned-clocks = <&clk IMX_SC_R_CAN_0 IMX_SC_PM_CLK_PER>;
assigned-clock-rates = <4000>;
@@ -431,8 +431,8 @@ flexcan3: can@5a8f {
 * CAN2 shares CAN0's clock and to enable CAN0's clock it
 * has to be powered on.
 */
-   clocks = <&can0_lpcg IMX_LPCG_CLK_4>,
-<&can0_lpcg IMX_LPCG_CLK_0>;
+   clocks = <&can0_lpcg 1>,
+<&can0_lpcg 0>;
clock-names = "ipg", "per";
assigned-clocks = <&clk IMX_SC_R_CAN_0 IMX_SC_PM_CLK_PER>;
assigned-clock-rates = <4000>;
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14018): 
https://lists.yoctoproject.org/g/linux-yocto/message/14018
Mute This Topic: https://lists.yoctoproject.org/mt/106607418/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.6/standard/nxp-sdk-6.6/nxp-soc & v6.6/standard/preempt-rt/nxp-sdk-6.6/nxp-soc][PATCH 1/6] Revert "arm64: dts: imx8-ss-conn: fix usb lpcg indices"

2024-06-10 Thread Xulin Sun via lists.yoctoproject.org
This reverts commit 16c2dd96e479440306eee96932400739a0930611.

The clock driver clk-imx8qxp-lpcg still uses LPCG bit-offset instead of
clock-indices for clock-controller dts properties, so it can not switch
to use lpcg indices.

Signed-off-by: Xulin Sun 
---
 arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi 
b/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi
index 5c02bfbe9c25..26d03654372c 100644
--- a/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi
@@ -48,7 +48,7 @@ usbotg1: usb@5b0d {
interrupts = ;
fsl,usbphy = <&usbphy1>;
fsl,usbmisc = <&usbmisc1 0>;
-   clocks = <&usb2_lpcg IMX_LPCG_CLK_6>;
+   clocks = <&usb2_lpcg 0>;
ahb-burst-config = <0x0>;
tx-burst-size-dword = <0x10>;
rx-burst-size-dword = <0x10>;
@@ -65,7 +65,7 @@ usbmisc1: usbmisc@5b0d0200 {
usbphy1: usbphy@5b10 {
compatible = "fsl,imx7ulp-usbphy";
reg = <0x5b10 0x1000>;
-   clocks = <&usb2_lpcg IMX_LPCG_CLK_7>;
+   clocks = <&usb2_lpcg 1>;
power-domains = <&pd IMX_SC_R_USB_0_PHY>;
status = "disabled";
};
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14015): 
https://lists.yoctoproject.org/g/linux-yocto/message/14015
Mute This Topic: https://lists.yoctoproject.org/mt/106607414/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.6/standard/nxp-sdk-6.6/nxp-soc & v6.6/standard/preempt-rt/nxp-sdk-6.6/nxp-soc][PATCH 3/6] Revert "arm64: dts: imx8-ss-dma: fix adc lpcg indices"

2024-06-10 Thread Xulin Sun via lists.yoctoproject.org
This reverts commit 7c4285471c03f9d873421598e2878a99c41def9f.

The clock driver clk-imx8qxp-lpcg still uses LPCG bit-offset instead of
clock-indices for clock-controller dts properties, so it can not switch
to use lpcg indices.

Signed-off-by: Xulin Sun 
---
 arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi 
b/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi
index 4a0deb184657..496501086584 100644
--- a/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi
@@ -360,8 +360,8 @@ adc0: adc@5a88 {
reg = <0x5a88 0x1>;
interrupts = ;
interrupt-parent = <&gic>;
-   clocks = <&adc0_lpcg IMX_LPCG_CLK_0>,
-<&adc0_lpcg IMX_LPCG_CLK_4>;
+   clocks = <&adc0_lpcg 0>,
+<&adc0_lpcg 1>;
clock-names = "per", "ipg";
assigned-clocks = <&clk IMX_SC_R_ADC_0 IMX_SC_PM_CLK_PER>;
assigned-clock-rates = <2400>;
@@ -375,8 +375,8 @@ adc1: adc@5a89 {
reg = <0x5a89 0x1>;
interrupts = ;
interrupt-parent = <&gic>;
-   clocks = <&adc1_lpcg IMX_LPCG_CLK_0>,
-<&adc1_lpcg IMX_LPCG_CLK_4>;
+   clocks = <&adc1_lpcg 0>,
+<&adc1_lpcg 1>;
clock-names = "per", "ipg";
assigned-clocks = <&clk IMX_SC_R_ADC_1 IMX_SC_PM_CLK_PER>;
assigned-clock-rates = <2400>;
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14017): 
https://lists.yoctoproject.org/g/linux-yocto/message/14017
Mute This Topic: https://lists.yoctoproject.org/mt/106607417/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.6][PATCH 0/6]: nxp-soc: Revert " * lpcg indices"

2024-06-10 Thread Xulin Sun via lists.yoctoproject.org
Hi Bruce,

This patch series is to revert " * lpcg indices".
Please help me merge these into the following two branches:

v6.6/standard/nxp-sdk-6.6/nxp-soc
v6.6/standard/preempt-rt/nxp-sdk-6.6/nxp-soc

 arch/arm64/boot/dts/freescale/imx8-ss-conn.dtsi  |  4 ++--
 arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi   | 36 
++--
 arch/arm64/boot/dts/freescale/imx8-ss-lsio.dtsi  | 16 
 arch/arm64/boot/dts/freescale/imx8qm-ss-dma.dtsi |  8 
 4 files changed, 32 insertions(+), 32 deletions(-)


Thanks
Xulin



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14014): 
https://lists.yoctoproject.org/g/linux-yocto/message/14014
Mute This Topic: https://lists.yoctoproject.org/mt/106607413/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.6/standard/nxp-sdk-6.6/nxp-soc & v6.6/standard/preempt-rt/nxp-sdk-6.6/nxp-soc][PATCH 2/6] Revert "arm64: dts: imx8-ss-dma: fix spi lpcg indices"

2024-06-10 Thread Xulin Sun via lists.yoctoproject.org
This reverts commit a156f37b8e3ca7afbccb3f1b6507e150a20ac892.

The clock driver clk-imx8qxp-lpcg still uses LPCG bit-offset instead of
clock-indices for clock-controller dts properties, so it can not switch
to use lpcg indices.

Signed-off-by: Xulin Sun 
---
 arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi | 16 
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi 
b/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi
index 8eb12b75573e..4a0deb184657 100644
--- a/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi
@@ -62,8 +62,8 @@ lpspi0: spi@5a00 {
#size-cells = <0>;
interrupts = ;
interrupt-parent = <&gic>;
-   clocks = <&spi0_lpcg IMX_LPCG_CLK_0>,
-<&spi0_lpcg IMX_LPCG_CLK_4>;
+   clocks = <&spi0_lpcg 0>,
+<&spi0_lpcg 1>;
clock-names = "per", "ipg";
assigned-clocks = <&clk IMX_SC_R_SPI_0 IMX_SC_PM_CLK_PER>;
assigned-clock-rates = <6000>;
@@ -80,8 +80,8 @@ lpspi1: spi@5a01 {
#size-cells = <0>;
interrupts = ;
interrupt-parent = <&gic>;
-   clocks = <&spi1_lpcg IMX_LPCG_CLK_0>,
-<&spi1_lpcg IMX_LPCG_CLK_4>;
+   clocks = <&spi1_lpcg 0>,
+<&spi1_lpcg 1>;
clock-names = "per", "ipg";
assigned-clocks = <&clk IMX_SC_R_SPI_1 IMX_SC_PM_CLK_PER>;
assigned-clock-rates = <6000>;
@@ -98,8 +98,8 @@ lpspi2: spi@5a02 {
#size-cells = <0>;
interrupts = ;
interrupt-parent = <&gic>;
-   clocks = <&spi2_lpcg IMX_LPCG_CLK_0>,
-<&spi2_lpcg IMX_LPCG_CLK_4>;
+   clocks = <&spi2_lpcg 0>,
+<&spi2_lpcg 1>;
clock-names = "per", "ipg";
assigned-clocks = <&clk IMX_SC_R_SPI_2 IMX_SC_PM_CLK_PER>;
assigned-clock-rates = <6000>;
@@ -116,8 +116,8 @@ lpspi3: spi@5a03 {
#size-cells = <0>;
interrupts = ;
interrupt-parent = <&gic>;
-   clocks = <&spi3_lpcg IMX_LPCG_CLK_0>,
-<&spi3_lpcg IMX_LPCG_CLK_4>;
+   clocks = <&spi3_lpcg 0>,
+<&spi3_lpcg 1>;
clock-names = "per", "ipg";
assigned-clocks = <&clk IMX_SC_R_SPI_3 IMX_SC_PM_CLK_PER>;
assigned-clock-rates = <6000>;
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14016): 
https://lists.yoctoproject.org/g/linux-yocto/message/14016
Mute This Topic: https://lists.yoctoproject.org/mt/106607415/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][yocto-kernel-cache][yocto-6.1][PATCH] nxp-lx2xxx: add support NXP PCF2131 RTC

2024-05-14 Thread Xulin Sun via lists.yoctoproject.org
Add support NXP PCF2131 RTC for LX2160A-RDB Rev.D.

Signed-off-by: Xulin Sun 
---
 bsp/nxp-lx2xxx/nxp-lx2xxx.cfg | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bsp/nxp-lx2xxx/nxp-lx2xxx.cfg b/bsp/nxp-lx2xxx/nxp-lx2xxx.cfg
index f8008cb7..c0321756 100644
--- a/bsp/nxp-lx2xxx/nxp-lx2xxx.cfg
+++ b/bsp/nxp-lx2xxx/nxp-lx2xxx.cfg
@@ -138,6 +138,7 @@ CONFIG_I2C_MUX_PCA954x=y
 CONFIG_RTC_CLASS=y
 CONFIG_RTC_DRV_PCF2127=y
 CONFIG_RTC_DRV_FSL_FTM_ALARM=y
+CONFIG_RTC_DRV_PCF2131=y
 
 CONFIG_DMADEVICES=y
 CONFIG_FSL_EDMA=y
-- 
2.35.5


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13936): 
https://lists.yoctoproject.org/g/linux-yocto/message/13936
Mute This Topic: https://lists.yoctoproject.org/mt/106106960/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][yocto-kernel-cache][yocto-6.6][PATCH] nxp-imx8: add scc and cfg files for NXP IMX8 series platform

2024-05-06 Thread Xulin Sun via lists.yoctoproject.org
Signed-off-by: Xulin Sun 
---
 bsp/nxp-imx8/nxp-imx8-preempt-rt.cfg |  15 +
 bsp/nxp-imx8/nxp-imx8-preempt-rt.scc |   9 +
 bsp/nxp-imx8/nxp-imx8-standard.scc   |   7 +
 bsp/nxp-imx8/nxp-imx8.cfg| 623 +++
 bsp/nxp-imx8/nxp-imx8.scc|  11 +
 5 files changed, 665 insertions(+)
 create mode 100644 bsp/nxp-imx8/nxp-imx8-preempt-rt.cfg
 create mode 100644 bsp/nxp-imx8/nxp-imx8-preempt-rt.scc
 create mode 100644 bsp/nxp-imx8/nxp-imx8-standard.scc
 create mode 100644 bsp/nxp-imx8/nxp-imx8.cfg
 create mode 100644 bsp/nxp-imx8/nxp-imx8.scc

diff --git a/bsp/nxp-imx8/nxp-imx8-preempt-rt.cfg 
b/bsp/nxp-imx8/nxp-imx8-preempt-rt.cfg
new file mode 100644
index ..780e974a
--- /dev/null
+++ b/bsp/nxp-imx8/nxp-imx8-preempt-rt.cfg
@@ -0,0 +1,15 @@
+..
+.WARNING
+.
+. This file is a kernel configuration fragment, and not a full kernel
+. configuration file.  The final kernel configuration is made up of
+. an assembly of processed fragments, each of which is designed to
+. capture a specific part of the final configuration (e.g. platform
+. configuration, feature configuration, and board specific hardware
+. configuration).  For more information on kernel configuration, please
+. consult the product documentation.
+.
+..
+
+# CONFIG_TRANSPARENT_HUGEPAGE is not set
+# CONFIG_LEDS_TRIGGER_CPU is not set
diff --git a/bsp/nxp-imx8/nxp-imx8-preempt-rt.scc 
b/bsp/nxp-imx8/nxp-imx8-preempt-rt.scc
new file mode 100644
index ..d900d656
--- /dev/null
+++ b/bsp/nxp-imx8/nxp-imx8-preempt-rt.scc
@@ -0,0 +1,9 @@
+define KMACHINE nxp-imx8
+define KTYPE preempt-rt
+define KARCH arm64
+
+include ktypes/preempt-rt
+
+include nxp-imx8.scc
+
+kconf hardware nxp-imx8-preempt-rt.cfg
diff --git a/bsp/nxp-imx8/nxp-imx8-standard.scc 
b/bsp/nxp-imx8/nxp-imx8-standard.scc
new file mode 100644
index ..d94f2dfd
--- /dev/null
+++ b/bsp/nxp-imx8/nxp-imx8-standard.scc
@@ -0,0 +1,7 @@
+define KMACHINE nxp-imx8
+define KTYPE standard
+define KARCH arm64
+
+include ktypes/standard
+
+include nxp-imx8.scc
diff --git a/bsp/nxp-imx8/nxp-imx8.cfg b/bsp/nxp-imx8/nxp-imx8.cfg
new file mode 100644
index ..642c1489
--- /dev/null
+++ b/bsp/nxp-imx8/nxp-imx8.cfg
@@ -0,0 +1,623 @@
+CONFIG_ARM64=y
+CONFIG_SMP=y
+CONFIG_ARCH_NXP=y
+CONFIG_ARCH_LAYERSCAPE=y
+CONFIG_ARCH_MXC=y
+CONFIG_HAVE_IMX_BUSFREQ=y
+
+CONFIG_PM=y
+CONFIG_CPU_PM=y
+
+#
+# CPU Idle
+#
+CONFIG_CPU_IDLE=y
+CONFIG_ARM_PSCI_CPUIDLE=y
+CONFIG_ARM_PSCI_CPUIDLE_DOMAIN=y
+
+#
+# CPU Frequency scaling
+#
+CONFIG_CPU_FREQ=y
+CONFIG_CPU_FREQ_GOV_ATTR_SET=y
+CONFIG_CPU_FREQ_GOV_COMMON=y
+CONFIG_CPU_FREQ_STAT=y
+CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
+CONFIG_CPU_FREQ_GOV_POWERSAVE=y
+CONFIG_CPU_FREQ_GOV_USERSPACE=y
+CONFIG_CPU_FREQ_GOV_ONDEMAND=y
+CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
+CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y
+
+#
+# CPU frequency scaling drivers
+#
+CONFIG_CPUFREQ_DT=y
+CONFIG_ARM_IMX_CPUFREQ_DT=y
+
+#
+# CAN
+#
+CONFIG_CAN=m
+CONFIG_CAN_FLEXCAN=m
+
+CONFIG_PCI=y
+CONFIG_PCI_MSI=y
+CONFIG_PCI_IMX6=y
+CONFIG_PCI_IMX6_HOST=y
+CONFIG_PHY_FSL_IMX8Q_PCIE=y
+
+CONFIG_IMX_DSP=y
+CONFIG_IMX_SCU=y
+CONFIG_IMX_SCU_PD=y
+CONFIG_IMX_SECO_MU=y
+CONFIG_IMX_ELE_TRNG=y
+
+#
+## MTD
+#
+CONFIG_MTD=y
+CONFIG_MTD_CMDLINE_PARTS=y
+CONFIG_MTD_BLOCK=y
+CONFIG_MTD_CFI=y
+CONFIG_MTD_CFI_ADV_OPTIONS=y
+CONFIG_MTD_CFI_INTELEXT=y
+CONFIG_MTD_CFI_AMDSTD=y
+CONFIG_MTD_CFI_STAA=y
+CONFIG_MTD_PHYSMAP=y
+CONFIG_MTD_PHYSMAP_OF=y
+CONFIG_MTD_DATAFLASH=y
+CONFIG_MTD_RAW_NAND=y
+CONFIG_MTD_NAND_DENALI_DT=y
+CONFIG_MTD_SPI_NOR=y
+CONFIG_MTD_SST25L=y
+
+#
+## Regulator Driver
+#
+CONFIG_PWM=y
+CONFIG_REGULATOR=y
+CONFIG_REGULATOR_FIXED_VOLTAGE=y
+CONFIG_REGULATOR_FAN53555=y
+CONFIG_REGULATOR_GPIO=y
+CONFIG_REGULATOR_MAX8973=y
+CONFIG_REGULATOR_PCA9450=y
+CONFIG_REGULATOR_PFUZE100=y
+CONFIG_REGULATOR_PWM=y
+
+#
+# MMC Driver
+#
+CONFIG_MMC=y
+CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_PLTFM=y
+CONFIG_MMC_SDHCI_ESDHC_IMX=y
+
+#
+# Controllers with non-SFF native interface
+#
+CONFIG_ATA=y
+CONFIG_MFD_SYSCON=y
+CONFIG_AHCI_IMX=y
+CONFIG_SATA_AHCI=y
+CONFIG_SATA_AHCI_PLATFORM=y
+CONFIG_LEDS_TRIGGERS=y
+
+#
+# Networking
+#
+CONFIG_FEC=y
+CONFIG_AT803X_PHY=y
+CONFIG_REALTEK_PHY=y
+CONFIG_STMMAC_ETH=y
+
+#
+# Input device support
+#
+CONFIG_INPUT=y
+CONFIG_INPUT_KEYBOARD=y
+CONFIG_INPUT_EVDEV=y
+CONFIG_KEYBOARD_ADC=m
+CONFIG_KEYBOARD_GPIO=y
+CONFIG_KEYBOARD_SNVS_PWRKEY=y
+CONFIG_KEYBOARD_IMX_SC_KEY=y
+CONFIG_INPUT_TOUCHSCREEN=y
+CONFIG_TOUCHSCREEN_ATMEL_MXT=m
+CONFIG_TOUCHSCREEN_SYNAPTICS_DSX_I2C=m
+CONFIG_INPUT_MISC=y
+
+#
+# Serial drivers
+#
+
+CONFIG_SERIAL_IMX=y
+CONFIG_SERIAL_IMX_CONSOLE=y
+CONFIG_SERIAL_FSL_LPUART=y
+CONFIG_SERIAL_FSL_LPUART_CONSOLE=y
+CONFIG_SERIAL_FSL_LINFLEXUART=y
+CONFIG_SERIAL_FSL_LINFLEXUART_CONSOLE=y
+
+#
+# SPI
+#
+CONFIG_SPI=y
+CONFIG_SPI_MASTER=y
+CONFIG_SPI_MEM=y

[linux-yocto][linux-yocto v5.15/standard/ti-sdk-5.10/ti-j72xx][PATCH] media: platform: vxe-vxd: Remove the redundant function umin()

2024-04-18 Thread Xulin Sun via lists.yoctoproject.org
commit cf716d5a0dd86f6 (minmax: add umin(a, b) and umax(a, b)) introduces
the definition umin() in include/linux/minmax.h, remove the redundant
function umin() in the file h264_secure_parser.c to fix below building issue:
drivers/media/platform/vxe-vxd/decoder/h264_secure_parser.c:174:28: note: in 
expansion of macro 'umin'
|   174 | static inline unsigned int umin(unsigned int a, unsigned int b)
|   |^~~~

Signed-off-by: Xulin Sun 
---
 .../media/platform/vxe-vxd/decoder/h264_secure_parser.c   | 8 
 1 file changed, 8 deletions(-)

diff --git a/drivers/media/platform/vxe-vxd/decoder/h264_secure_parser.c 
b/drivers/media/platform/vxe-vxd/decoder/h264_secure_parser.c
index 90f5197b17bc..9887db1067e3 100644
--- a/drivers/media/platform/vxe-vxd/decoder/h264_secure_parser.c
+++ b/drivers/media/platform/vxe-vxd/decoder/h264_secure_parser.c
@@ -168,14 +168,6 @@ static const int bspp_subheightc[] = { -1, 2, 1, 1 };
  */
 static const int bspp_subwidthc[] = { -1, 2, 2, 1 };
 
-/*
- * inline functions for Minimum and Maximum value
- */
-static inline unsigned int umin(unsigned int a, unsigned int b)
-{
-   return (((a) < (b)) ? (a) : (b));
-}
-
 static inline int smin(int a, int b)
 {
return (((a) < (b)) ? (a) : (b));
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13835): 
https://lists.yoctoproject.org/g/linux-yocto/message/13835
Mute This Topic: https://lists.yoctoproject.org/mt/105594237/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][v6.1/standard/nxp-sdk-6.1/nxp-soc & v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc][PATCH 3/3] net: phy: let PHYLINK select MII

2024-04-15 Thread Xulin Sun via lists.yoctoproject.org
Commit bcc096af4de0e3(net: phylink: add support for managed = "c73")
introduces the linkmode_support_c73(), which is defined in the
drivers/net/mii.c, so select Mii. To avoid below building issue:
| aarch64-wrs-linux-ld.bfd: drivers/net/phy/phylink.o: in function 
`phylink_validate_mac_and_pcs':
| phylink.c:(.text+0x31b4): undefined reference to `linkmode_support_c73'
| aarch64-wrs-linux-ld.bfd: drivers/net/phy/phylink.o: in function 
`phylink_create':
| phylink.c:(.text+0x37ac): undefined reference to `linkmode_support_c73'

Signed-off-by: Xulin Sun 
---
 drivers/net/phy/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/phy/Kconfig b/drivers/net/phy/Kconfig
index c57a0262fb64..5e977c945f14 100644
--- a/drivers/net/phy/Kconfig
+++ b/drivers/net/phy/Kconfig
@@ -8,6 +8,7 @@ config PHYLINK
depends on NETDEVICES
select PHYLIB
select SWPHY
+   select MII
help
  PHYlink models the link between the PHY and MAC, allowing fixed
  configuration links, PHYs, and Serdes links with MAC level
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13821): 
https://lists.yoctoproject.org/g/linux-yocto/message/13821
Mute This Topic: https://lists.yoctoproject.org/mt/105548919/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][v6.1/standard/nxp-sdk-6.1/nxp-soc & v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc][PATCH 2/3] phy: lynx-28g: drop redefined macro definitions and functions

2024-04-15 Thread Xulin Sun via lists.yoctoproject.org
Previous commit 2d37482e0bed(phy: lynx-28g: add support for backplane modes
through PHY_MODE_ETHERNET_LINKMODE) added redefined macros and function 
definitions,
This causes below building issues:
drivers/phy/freescale/phy-fsl-lynx-28g.c:1523:13: error: redefinition of 
'lynx_28g_remove'
|  1523 | static void lynx_28g_remove(struct platform_device *pdev)
|   | ^~~
drivers/phy/freescale/phy-fsl-lynx-28g.c:443:6: error: redeclaration of 'enum 
lynx_28g_eq_type'
|   443 | enum lynx_28g_eq_type {
|   |  ^~~~

And move the static function lynx_28g_snapshot_rx_eq_gains() to before
use.

Signed-off-by: Xulin Sun 
---
 drivers/phy/freescale/phy-fsl-lynx-28g.c | 169 +--
 1 file changed, 36 insertions(+), 133 deletions(-)
 mode change 100644 => 100755 drivers/phy/freescale/phy-fsl-lynx-28g.c

diff --git a/drivers/phy/freescale/phy-fsl-lynx-28g.c 
b/drivers/phy/freescale/phy-fsl-lynx-28g.c
old mode 100644
new mode 100755
index 5cb34312d593..5051609d373d
--- a/drivers/phy/freescale/phy-fsl-lynx-28g.c
+++ b/drivers/phy/freescale/phy-fsl-lynx-28g.c
@@ -129,20 +129,6 @@
 #define LYNX_28G_LNaTECR1_EQ_ADPT_EQ(x)(((x) << 24) & 
LYNX_28G_LNaTECR1_EQ_ADPT_EQ_MSK)
 #define LYNX_28G_LNaTECR1_EQ_ADPT_EQ_X(x)  (((x) & 
LYNX_28G_LNaTECR1_EQ_ADPT_EQ_MSK) >> 24)
 
-#define LYNX_28G_LNaTECR0_EQ_TYPE(x)   (((x) << 28) & GENMASK(30, 28))
-#define LYNX_28G_LNaTECR0_EQ_TYPE_X(x) (((x) & GENMASK(30, 28)) >> 28)
-#define LYNX_28G_LNaTECR0_EQ_SGN_PREQ  BIT(23)
-#define LYNX_28G_LNaTECR0_EQ_PREQ(x)   (((x) << 16) & GENMASK(19, 16))
-#define LYNX_28G_LNaTECR0_EQ_PREQ_X(x) (((x) & GENMASK(19, 16)) >> 16)
-#define LYNX_28G_LNaTECR0_EQ_SGN_POST1QBIT(15)
-#define LYNX_28G_LNaTECR0_EQ_POST1Q(x) (((x) << 8) & GENMASK(12, 8))
-#define LYNX_28G_LNaTECR0_EQ_POST1Q_X(x)   (((x) & GENMASK(12, 8)) 
>> 8)
-#define LYNX_28G_LNaTECR0_EQ_AMP_RED(x)((x) & GENMASK(5, 0))
-
-#define LYNX_28G_LNaTECR1_EQ_ADPT_EQ_DRVR_DIS  BIT(31)
-#define LYNX_28G_LNaTECR1_EQ_ADPT_EQ(x)(((x) << 24) & 
GENMASK(29, 24))
-#define LYNX_28G_LNaTECR1_EQ_ADPT_EQ_X(x)  (((x) & GENMASK(29, 24)) >> 24)
-
 /* Lane a Rx Reset Control Register */
 #define LYNX_28G_LNaRRSTCTL(lane)  (0x800 + (lane) * 0x100 + 0x40)
 #define LYNX_28G_LNaRRSTCTL_DISBIT(24)
@@ -185,23 +171,6 @@
 #define LYNX_28G_LNaRGCR1_CHANGE_RX_CLKBIT(3)
 #define LYNX_28G_LNaRGCR1_PWR_MGT(x)   ((x) & GENMASK(2, 0))
 
-#define LYNX_28G_LNaRGCR1_RX_ORD_ELECIDLE  BIT(31)
-#define LYNX_28G_LNaRGCR1_DATA_LOST_FLTBIT(30)
-#define LYNX_28G_LNaRGCR1_DATA_LOSTBIT(29)
-#define LYNX_28G_LNaRGCR1_IDLE_CONFIG  BIT(28)
-#define LYNX_28G_LNaRGCR1_ENTER_IDLE_FLT_SEL(x)(((x) << 24) & 
GENMASK(26, 24))
-#define LYNX_28G_LNaRGCR1_ENTER_IDLE_FLT_SEL_X(x) (((x) & GENMASK(26, 24)) >> 
24)
-#define LYNX_28G_LNaRGCR1_EXIT_IDLE_FLT_SEL(x) (((x) << 20) & GENMASK(22, 20))
-#define LYNX_28G_LNaRGCR1_EXIT_IDLE_FLT_SEL_X(x)   (((x) & GENMASK(22, 
20)) >> 20)
-#define LYNX_28G_LNaRGCR1_DATA_LOST_TH_SEL(x)  (((x) << 16) & GENMASK(18, 16))
-#define LYNX_28G_LNaRGCR1_DATA_LOST_TH_SEL_X(x)(((x) & GENMASK(18, 
16)) >> 16)
-#define LYNX_28G_LNaRGCR1_EXT_REC_CLK_SEL(x)   (((x) << 8) & GENMASK(10, 8))
-#define LYNX_28G_LNaRGCR1_EXT_REC_CLK_SEL_X(x) (((x) & GENMASK(10, 8)) >> 8)
-#define LYNX_28G_LNaRGCR1_WAKE_TX_DIS  BIT(5)
-#define LYNX_28G_LNaRGCR1_PHY_RDY  BIT(4)
-#define LYNX_28G_LNaRGCR1_CHANGE_RX_CLKBIT(3)
-#define LYNX_28G_LNaRGCR1_PWR_MGT(x)   ((x) & GENMASK(2, 0))
-
 #define LYNX_28G_LNaRECR0(lane)(0x800 + (lane) * 0x100 
+ 0x50)
 
 #define LYNX_28G_LNaRECR0_EQ_GAINK2_HF_OV_EN   BIT(31)
@@ -216,13 +185,6 @@
 
 #define LYNX_28G_LNaRECR1(lane)(0x800 + (lane) * 0x100 
+ 0x54)
 
-#define LYNX_28G_LNaRECR1_EQ_BLW_OV_EN BIT(31)
-#define LYNX_28G_LNaRECR1_EQ_BLW_OV(x) (((x) << 24) & GENMASK(28, 24))
-#define LYNX_28G_LNaRECR1_EQ_BLW_OV_X(x)   (((x) & GENMASK(28, 24)) >> 24)
-#define LYNX_28G_LNaRECR1_EQ_OFFSET_OV_EN  BIT(23)
-#define LYNX_28G_LNaRECR1_EQ_OFFSET_OV(x)  (((x) << 16) & GENMASK(21, 16))
-#define LYNX_28G_LNaRECR1_EQ_OFFSET_OV_X(x)(((x) & GENMASK(21, 16)) >> 16)
-
 #define LYNX_28G_LNaRECR1_EQ_BLW_OV_EN BIT(31)
 #define LYNX_28G_LNaRECR1_EQ_BLW_OV(x) (((x) << 24) & GENMASK(28, 24))
 #define LYNX_28G_LNaRECR1_EQ_BLW_OV_X(x)   (((x) & GENMASK(28, 
24)) >> 24)
@@ -271,34 +233,8 @@
 #define LYNX_28G

[linux-yocto][v6.1/standard/nxp-sdk-6.1/nxp-soc & v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc][PATCH 1/3] phy: lynx-28g: truly power the lanes up or down

2024-04-15 Thread Xulin Sun via lists.yoctoproject.org
From: Vladimir Oltean 

commit f73df580c2379a90c9269dace6dc3084fdf85ccc from
https://github.com/nxp-imx/linux-imx lf-6.1.y

The current procedure for power_off() and power_on() is the same as the
one used for major lane reconfiguration, aka halting. But one can
observe that a halted lane does not cause, for example, the CDR of the
link partner to lose lock.

Implement the procedure mentioned in the block guide for powering down
a lane, and then back on.

Signed-off-by: Vladimir Oltean 
[Xulin: add functions lynx_28g_lane_halt() & lynx_28g_lane_reset()
directly, since they were mistakenly removed by the previous merge.]
Signed-off-by: Xulin Sun 
---
 drivers/phy/freescale/phy-fsl-lynx-28g.c | 99 +++-
 1 file changed, 96 insertions(+), 3 deletions(-)

diff --git a/drivers/phy/freescale/phy-fsl-lynx-28g.c 
b/drivers/phy/freescale/phy-fsl-lynx-28g.c
index ccfdd36a89b7..5cb34312d593 100644
--- a/drivers/phy/freescale/phy-fsl-lynx-28g.c
+++ b/drivers/phy/freescale/phy-fsl-lynx-28g.c
@@ -87,6 +87,8 @@
 
 /* Lane a Tx Reset Control Register */
 #define LYNX_28G_LNaTRSTCTL(lane)  (0x800 + (lane) * 0x100 + 0x20)
+#define LYNX_28G_LNaTRSTCTL_DISBIT(24)
+#define LYNX_28G_LNaTRSTCTL_STP_REQBIT(26)
 #define LYNX_28G_LNaTRSTCTL_HLT_REQBIT(27)
 #define LYNX_28G_LNaTRSTCTL_RST_DONE   BIT(30)
 #define LYNX_28G_LNaTRSTCTL_RST_REQBIT(31)
@@ -143,6 +145,8 @@
 
 /* Lane a Rx Reset Control Register */
 #define LYNX_28G_LNaRRSTCTL(lane)  (0x800 + (lane) * 0x100 + 0x40)
+#define LYNX_28G_LNaRRSTCTL_DISBIT(24)
+#define LYNX_28G_LNaRRSTCTL_STP_REQBIT(26)
 #define LYNX_28G_LNaRRSTCTL_HLT_REQBIT(27)
 #define LYNX_28G_LNaRRSTCTL_RST_DONE   BIT(30)
 #define LYNX_28G_LNaRRSTCTL_RST_REQBIT(31)
@@ -948,6 +952,95 @@ static void lynx_28g_lane_set_25g(struct lynx_28g_lane 
*lane,
LYNX_28G_LNaTTLCR0_CDR_MIN_SMP_ON(1));
 }
 
+/* Halting puts the lane in a mode in which it can be reconfigured */
+static void lynx_28g_lane_halt(struct phy *phy)
+{
+   struct lynx_28g_lane *lane = phy_get_drvdata(phy);
+   u32 trstctl, rrstctl;
+
+   /* Issue a halt request */
+   lynx_28g_lane_rmw(lane, LNaTRSTCTL, LYNX_28G_LNaTRSTCTL_HLT_REQ,
+ LYNX_28G_LNaTRSTCTL_HLT_REQ);
+   lynx_28g_lane_rmw(lane, LNaRRSTCTL, LYNX_28G_LNaRRSTCTL_HLT_REQ,
+ LYNX_28G_LNaRRSTCTL_HLT_REQ);
+
+   /* Wait until the halting process is complete */
+   do {
+   trstctl = lynx_28g_lane_read(lane, LNaTRSTCTL);
+   rrstctl = lynx_28g_lane_read(lane, LNaRRSTCTL);
+   } while ((trstctl & LYNX_28G_LNaTRSTCTL_HLT_REQ) ||
+(rrstctl & LYNX_28G_LNaRRSTCTL_HLT_REQ));
+}
+
+static void lynx_28g_lane_reset(struct phy *phy)
+{
+   struct lynx_28g_lane *lane = phy_get_drvdata(phy);
+   u32 trstctl, rrstctl;
+
+   /* Issue a reset request on the lane */
+   lynx_28g_lane_rmw(lane, LNaTRSTCTL, LYNX_28G_LNaTRSTCTL_RST_REQ,
+ LYNX_28G_LNaTRSTCTL_RST_REQ);
+   lynx_28g_lane_rmw(lane, LNaRRSTCTL, LYNX_28G_LNaRRSTCTL_RST_REQ,
+ LYNX_28G_LNaRRSTCTL_RST_REQ);
+
+   /* Wait until the reset sequence is completed */
+   do {
+   trstctl = lynx_28g_lane_read(lane, LNaTRSTCTL);
+   rrstctl = lynx_28g_lane_read(lane, LNaRRSTCTL);
+   } while (!(trstctl & LYNX_28G_LNaTRSTCTL_RST_DONE) ||
+!(rrstctl & LYNX_28G_LNaRRSTCTL_RST_DONE));
+}
+
+static int lynx_28g_power_off(struct phy *phy)
+{
+   struct lynx_28g_lane *lane = phy_get_drvdata(phy);
+   u32 trstctl, rrstctl;
+
+   if (!lane->powered_up)
+   return 0;
+
+   /* Issue a stop request */
+   lynx_28g_lane_rmw(lane, LNaTRSTCTL, LYNX_28G_LNaTRSTCTL_STP_REQ,
+ LYNX_28G_LNaTRSTCTL_STP_REQ);
+   lynx_28g_lane_rmw(lane, LNaRRSTCTL, LYNX_28G_LNaRRSTCTL_STP_REQ,
+ LYNX_28G_LNaRRSTCTL_STP_REQ);
+
+   /* Wait until the stop process is complete */
+   do {
+   trstctl = lynx_28g_lane_read(lane, LNaTRSTCTL);
+   rrstctl = lynx_28g_lane_read(lane, LNaRRSTCTL);
+   } while ((trstctl & LYNX_28G_LNaTRSTCTL_STP_REQ) ||
+(rrstctl & LYNX_28G_LNaRRSTCTL_STP_REQ));
+
+   /* Power down the RX and TX portions of the lane */
+   lynx_28g_lane_rmw(lane, LNaRRSTCTL, LYNX_28G_LNaRRSTCTL_DIS,
+ LYNX_28G_LNaRRSTCTL_DIS);
+   lynx_28g_lane_rmw(lane, LNaTRSTCTL, LYNX_28G_LNaTRSTCTL_DIS,
+ LYNX_28G_LNaTRSTCTL_DIS);
+
+   lane->powered_up = false;
+
+   return 0;
+}
+
+static int lynx_28g_power_on(struct phy *phy)
+{
+   struct lynx_28g_lane *lane = phy_get_drvdata(phy);
+
+   if (lane->powered_up)
+ 

[v2][linux-yocto][yocto-kernel-cache][yocto-6.1][PATCH] ti-am62: add TSN feature related kernel configs

2024-03-27 Thread Xulin Sun via lists.yoctoproject.org
Add TSN feature related kernel configs, and drop the duplicated
kernel config CONFIG_NET_SCH_TAPRIO with tsn.cfg.

Signed-off-by: Xulin Sun 
---
 bsp/ti-am62/ti-am62.cfg | 1 -
 bsp/ti-am62/ti-am62.scc | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/bsp/ti-am62/ti-am62.cfg b/bsp/ti-am62/ti-am62.cfg
index fdef5c2b..2dab2c45 100755
--- a/bsp/ti-am62/ti-am62.cfg
+++ b/bsp/ti-am62/ti-am62.cfg
@@ -251,7 +251,6 @@ CONFIG_TI_K3_AM65_CPSW_SWITCHDEV=y
 CONFIG_NET_SWITCHDEV=y
 CONFIG_TI_K3_AM65_CPTS=y
 CONFIG_TI_AM65_CPSW_TAS=y
-CONFIG_NET_SCH_TAPRIO=y
 CONFIG_BRIDGE_VLAN_FILTERING=y
 
 #
diff --git a/bsp/ti-am62/ti-am62.scc b/bsp/ti-am62/ti-am62.scc
index 9a0dda7f..d8d41953 100644
--- a/bsp/ti-am62/ti-am62.scc
+++ b/bsp/ti-am62/ti-am62.scc
@@ -4,5 +4,6 @@ include cfg/fs/flash_fs.cfg
 include features/hugetlb/hugetlb.scc
 # Enable the ability to run 32 bit apps
 include arch/arm/32bit-compat.scc
+include features/tsn/tsn.scc
 
 kconf hardware ti-am62.cfg
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13736): 
https://lists.yoctoproject.org/g/linux-yocto/message/13736
Mute This Topic: https://lists.yoctoproject.org/mt/105173754/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][yocto-kernel-cache][yocto-6.1][PATCH] ti-am62: add kernel configs NET_SCH_CBS & NET_SCH_MQPRIO & NET_SCH_ETF

2024-03-27 Thread Xulin Sun via lists.yoctoproject.org
Add kernel configs NET_SCH_CBS & NET_SCH_MQPRIO & NET_SCH_ETF to support
AM62AX TSN feature.

Signed-off-by: Xulin Sun 
---
 bsp/ti-am62/ti-am62.cfg | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/bsp/ti-am62/ti-am62.cfg b/bsp/ti-am62/ti-am62.cfg
index fdef5c2b..537f4120 100755
--- a/bsp/ti-am62/ti-am62.cfg
+++ b/bsp/ti-am62/ti-am62.cfg
@@ -252,6 +252,9 @@ CONFIG_NET_SWITCHDEV=y
 CONFIG_TI_K3_AM65_CPTS=y
 CONFIG_TI_AM65_CPSW_TAS=y
 CONFIG_NET_SCH_TAPRIO=y
+CONFIG_NET_SCH_ETF=y
+CONFIG_NET_SCH_CBS=y
+CONFIG_NET_SCH_MQPRIO=y
 CONFIG_BRIDGE_VLAN_FILTERING=y
 
 #
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13734): 
https://lists.yoctoproject.org/g/linux-yocto/message/13734
Mute This Topic: https://lists.yoctoproject.org/mt/105173259/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.1/standard/ti-sdk-6.1/ti-j7xxx & v6.1/standard/preempt-rt/ti-sdk-6.1/ti-j7xxx][PATCH] arm64: dts: ti: k3-am62x-sk-csi2-imx219: use the overlay's parent node for graph port

2024-03-05 Thread Xulin Sun via lists.yoctoproject.org
dtc tool will check graph port to see if node->name is "port" or not, and
output the warning if the node->name is not "port". For overlay node, the
node->name is "__overlay__" and cause the warning. Use the overlay's parent
node for graph port to describe the node to avoid below building issue:
arch/arm64/boot/dts/ti/k3-am62x-sk-csi2-imx219.dtso:59.13-68.3: Warning 
(graph_port): /fragment@2/__overlay__: graph port node name should be 'port'

Signed-off-by: Xulin Sun 
---
 .../boot/dts/ti/k3-am62x-sk-csi2-imx219.dtso   | 18 +++---
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/arch/arm64/boot/dts/ti/k3-am62x-sk-csi2-imx219.dtso 
b/arch/arm64/boot/dts/ti/k3-am62x-sk-csi2-imx219.dtso
index 449f2c4ef839..e1a9dadf8c7c 100644
--- a/arch/arm64/boot/dts/ti/k3-am62x-sk-csi2-imx219.dtso
+++ b/arch/arm64/boot/dts/ti/k3-am62x-sk-csi2-imx219.dtso
@@ -56,13 +56,17 @@
};
 };
 
-&csi0_port0 {
-   status = "okay";
+&cdns_csi2rx0 {
+   ports {
+   port@0 {
+   status = "okay";
 
-   csi2rx0_in_sensor: endpoint {
-   remote-endpoint = <&csi2_cam0>;
-   bus-type = <4>; /* CSI2 DPHY. */
-   clock-lanes = <0>;
-   data-lanes = <1 2>;
+   csi2rx0_in_sensor: endpoint {
+   remote-endpoint = <&csi2_cam0>;
+   bus-type = <4>; /* CSI2 DPHY. */
+   clock-lanes = <0>;
+   data-lanes = <1 2>;
+   };
+   };
};
 };
-- 
2.35.5


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13643): 
https://lists.yoctoproject.org/g/linux-yocto/message/13643
Mute This Topic: https://lists.yoctoproject.org/mt/104761482/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.1/standard/ti-sdk-6.1/ti-j7xxx & v6.1/standard/preempt-rt/ti-sdk-6.1/ti-j7xxx][PATCH 2/2] ARM: dts: am335x-boneblack-hdmi: disable HDMI audio simple-audio-card node

2024-01-16 Thread Xulin Sun via lists.yoctoproject.org
Disable HDMI audio simple-audio-card node as a workaround, since we did not
have the document and not figure out how to set the HDMI audio parameters
for the BBB target board, to avoid below booting error information if
connecting HDMI monitor:
davinci-mcasp.0-i2s-hifi: ASoC: error at __soc_pcm_hw_params on 
davinci-mcasp.0-i2s-hifi: -22
davinci-mcasp 48038000.mcasp: stream has more channels (2) than are enabled in 
mcasp (0)
davinci-mcasp 48038000.mcasp: ASoC: error at snd_soc_dai_hw_params on 
48038000.mcasp: -22

Signed-off-by: Xulin Sun 
---
 arch/arm/boot/dts/am335x-boneblack-hdmi.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/boot/dts/am335x-boneblack-hdmi.dtsi 
b/arch/arm/boot/dts/am335x-boneblack-hdmi.dtsi
index 7cfddada9348..37fac7374136 100644
--- a/arch/arm/boot/dts/am335x-boneblack-hdmi.dtsi
+++ b/arch/arm/boot/dts/am335x-boneblack-hdmi.dtsi
@@ -128,6 +128,7 @@ sound {
simple-audio-card,format = "i2s";
simple-audio-card,bitclock-master = <&dailink0_master>;
simple-audio-card,frame-master = <&dailink0_master>;
+   status = "disabled";
 
dailink0_master: simple-audio-card,cpu {
sound-dai = <&mcasp0>;
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13490): 
https://lists.yoctoproject.org/g/linux-yocto/message/13490
Mute This Topic: https://lists.yoctoproject.org/mt/103779681/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.1/standard/ti-sdk-6.1/ti-j7xxx & v6.1/standard/preempt-rt/ti-sdk-6.1/ti-j7xxx][PATCH 1/2] ARM: dts: tps65217: add power regulator & backlight drivers support

2024-01-16 Thread Xulin Sun via lists.yoctoproject.org
Support TPS65217 voltage regulator driver and TPS65217 Backlight driver.
And enable them by default. This will avoid below booting failed
information:
tps65217-pmic: Failed to locate of_node [id: -1]
tps65217-bl: Failed to locate of_node [id: -1]

Signed-off-by: Xulin Sun 
---
 arch/arm/boot/dts/tps65217.dtsi | 10 ++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm/boot/dts/tps65217.dtsi b/arch/arm/boot/dts/tps65217.dtsi
index 0d463de5650f..f412e7476660 100644
--- a/arch/arm/boot/dts/tps65217.dtsi
+++ b/arch/arm/boot/dts/tps65217.dtsi
@@ -13,6 +13,16 @@ &tps {
interrupt-controller;
#interrupt-cells = <1>;
 
+   pmic {
+   compatible = "ti,tps65217-pmic";
+   status = "okay";
+   };
+
+   bl {
+   compatible = "ti,tps65217-bl";
+   status = "okay";
+   };
+
charger {
compatible = "ti,tps65217-charger";
interrupts = <0>, <1>;
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13489): 
https://lists.yoctoproject.org/g/linux-yocto/message/13489
Mute This Topic: https://lists.yoctoproject.org/mt/103779680/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][yocto-kernel-cache][yocto-6.1][PATCH] ti-am62: add scc and cfg files for TI AM62 series platform

2024-01-09 Thread Xulin Sun via lists.yoctoproject.org
Signed-off-by: Xulin Sun 
---
 bsp/ti-am62/ti-am62-preempt-rt.cfg |  15 ++
 bsp/ti-am62/ti-am62-preempt-rt.scc |  10 +
 bsp/ti-am62/ti-am62-standard.scc   |   8 +
 bsp/ti-am62/ti-am62.cfg| 362 +
 bsp/ti-am62/ti-am62.scc|   8 +
 5 files changed, 403 insertions(+)
 create mode 100644 bsp/ti-am62/ti-am62-preempt-rt.cfg
 create mode 100755 bsp/ti-am62/ti-am62-preempt-rt.scc
 create mode 100644 bsp/ti-am62/ti-am62-standard.scc
 create mode 100755 bsp/ti-am62/ti-am62.cfg
 create mode 100644 bsp/ti-am62/ti-am62.scc

diff --git a/bsp/ti-am62/ti-am62-preempt-rt.cfg 
b/bsp/ti-am62/ti-am62-preempt-rt.cfg
new file mode 100644
index ..5e391571
--- /dev/null
+++ b/bsp/ti-am62/ti-am62-preempt-rt.cfg
@@ -0,0 +1,15 @@
+..
+.WARNING
+.
+. This file is a kernel configuration fragment, and not a full kernel
+. configuration file.  The final kernel configuration is made up of
+. an assembly of processed fragments, each of which is designed to
+. capture a specific part of the final configuration (e.g. platform
+. configuration, feature configuration, and board specific hardware
+. configuration).  For more information on kernel configuration, please
+. consult the product documentation.
+.
+..
+
+# CONFIG_TRANSPARENT_HUGEPAGE is not set
+# CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS is not set
diff --git a/bsp/ti-am62/ti-am62-preempt-rt.scc 
b/bsp/ti-am62/ti-am62-preempt-rt.scc
new file mode 100755
index ..1d5289f4
--- /dev/null
+++ b/bsp/ti-am62/ti-am62-preempt-rt.scc
@@ -0,0 +1,10 @@
+# SPDX-License-Identifier: MIT
+define KMACHINE ti-am62
+define KTYPE preempt-rt
+define KARCH arm64
+
+include ktypes/preempt-rt
+branch ti-am62
+
+include ti-am62.scc
+kconf hardware ti-am62-preempt-rt.cfg
diff --git a/bsp/ti-am62/ti-am62-standard.scc b/bsp/ti-am62/ti-am62-standard.scc
new file mode 100644
index ..2b5f1bdb
--- /dev/null
+++ b/bsp/ti-am62/ti-am62-standard.scc
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: MIT
+define KMACHINE ti-am62
+define KTYPE standard
+define KARCH arm64
+
+include ktypes/standard/standard.scc
+
+include ti-am62.scc
diff --git a/bsp/ti-am62/ti-am62.cfg b/bsp/ti-am62/ti-am62.cfg
new file mode 100755
index ..91c29eb7
--- /dev/null
+++ b/bsp/ti-am62/ti-am62.cfg
@@ -0,0 +1,362 @@
+#
+#  WARNING
+#
+# This file is a kernel configuration fragment, and not a full kernel
+# configuration file.  The final kernel configuration is made up of
+# an assembly of processed fragments, each of which is designed to
+# capture a specific part of the final configuration (e.g. platform
+# configuration, feature configuration, and board specific hardware
+# configuration).  For more information on kernel configuration, please
+# consult the product documentation.
+#
+#.
+
+#
+#
+# Platform selection
+#
+CONFIG_ARM64=y
+CONFIG_ARCH_K3=y
+
+CONFIG_ARM_SMMU=y
+CONFIG_ARM_SMMU_DISABLE_BYPASS_BY_DEFAULT=y
+CONFIG_ARM_SMMU_V3=y
+CONFIG_TI_PRUSS=m
+CONFIG_CMA=y
+CONFIG_DMA_CMA=y
+
+CONFIG_EXPERT=y
+CONFIG_ARM64_64K_PAGES=y
+CONFIG_TRANSPARENT_HUGEPAGE=y
+CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y
+
+#
+# MMC/SD/SDIO Host Controller Drivers
+#
+CONFIG_MMC=y
+CONFIG_MMC_SPI=y
+CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_PLTFM=y
+CONFIG_MMC_SDHCI_AM654=y
+
+#
+# Power management options
+#
+CONFIG_PM_SLEEP=y
+CONFIG_PM_SLEEP_SMP=y
+CONFIG_PM=y
+CONFIG_PM_CLK=y
+CONFIG_CPU_PM=y
+
+#
+# CPU Frequency scaling
+#
+CONFIG_CPU_FREQ=y
+CONFIG_CPU_FREQ_GOV_ATTR_SET=y
+CONFIG_CPU_FREQ_GOV_COMMON=y
+CONFIG_CPU_FREQ_STAT=y
+CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
+CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
+CONFIG_CPU_FREQ_GOV_USERSPACE=y
+CONFIG_CPU_FREQ_GOV_ONDEMAND=y
+CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y
+CONFIG_CPU_FREQ_GOV_POWERSAVE=y
+CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
+
+#
+# CPU frequency scaling drivers
+#
+CONFIG_CPUFREQ_DT=y
+CONFIG_CPUFREQ_DT_PLATDEV=y
+
+#
+# Bus devices
+#
+CONFIG_MTD=y
+CONFIG_MTD_CMDLINE_PARTS=y
+CONFIG_MTD_OF_PARTS=y
+CONFIG_MTD_BLKDEVS=y
+CONFIG_MTD_BLOCK=y
+
+#
+# SCSI device support
+#
+CONFIG_SCSI=y
+CONFIG_BLK_DEV_SD=y
+
+#
+# USB
+#
+CONFIG_USB=y
+CONFIG_USB_CDNS_SUPPORT=y
+CONFIG_USB_XHCI_HCD=y
+CONFIG_USB_DWC3=m
+CONFIG_USB_DWC3_OF_SIMPLE=m
+CONFIG_HAS_DMA=y
+CONFIG_OMAP_USB2=y
+CONFIG_USB_DWC3_KEYSTONE=m
+CONFIG_USB_GADGET=y
+CONFIG_USB_DWC3_AM62=m
+CONFIG_USB_DWC3_DUAL_ROLE=y
+CONFIG_USB_OTG=y
+CONFIG_USB_CDC_COMPOSITE=m
+CONFIG_USB_ETH=m
+CONFIG_TYPEC=m
+CONFIG_TYPEC_TCPM=m
+CONFIG_TYPEC_TCPCI=m
+CONFIG_TYPEC_TPS6598X=m
+CONFIG_TYPEC_FUSB302=m
+
+#
+# USB for net
+#
+CONFIG_USB_NET_DRIVERS=y
+CONFIG_USB_USBNET=y
+CONFIG_USB_NET_AX8817X=y
+
+#
+# Input device support
+#
+CONFIG_INPUT=y
+CONFIG_INPUT_MATRIXKMAP=y

[linux-yocto][linux-yocto v6.1/standard/preempt-rt/ti-sdk-6.1/ti-j7xxx] ti-am62 adds preempt-rt kernel patches to upgrade TI SDK 09.01.00.007

2024-01-03 Thread Xulin Sun via lists.yoctoproject.org

Hi Bruce,

Could you please help to merge below patches to the preempt-rt kernel 
branch "v6.1/standard/preempt-rt/ti-sdk-6.1/ti-j7xxx"?
This is preempt-rt kernel to upgrade BSP to TI SDK 
ti-processor-sdk-linux-edgeai-am62axx-evm-09_01_00_07.



The following changes since commit a54e02fccaea82a741c0e34a72b7bffb47bfcda3:

  Merge branch 'v6.1/standard/base' into 
v6.1/standard/preempt-rt/ti-sdk-6.1/ti-j7xxx (2024-01-03 15:54:23 -0500)


are available in the Git repository at:

  https://github.com/xulinsun/ti-j72x 
v6.1/standard/preempt-rt/ti-sdk-6.1/ti-j7xxx


for you to fetch changes up to 53acd8e4944a31f6e5240d332ba28508adf6b40b:

  arm64: dts: ti: k3-am62p5-sk: enable uart as wakeup source 
(2024-01-04 10:43:54 +0800)



Andrew Davis (2):
  phy: ti: gmii-sel: Allow parent to not be syscon node
  phy: ti: gmii-sel: Fix register offset when parent is not a 
syscon node


Aradhya Bhatia (11):
  drm/tidss: Add support for AM62P DSS0
  arm64: dts: ti: k3-am62p5-sk: Enable main_i2c0
  arm64: dts: ti: k3-am62p-main: Add support for DSS0
  arm64: dts: ti: k3-am62p5-sk: Enable HDMI display on DSS0
  arm64: dts: ti: Add Microtips OLDI Panel-1 Overlay for AM62P5-SK
  arm64: dts: ti: Add Microtips OLDI Panel-2 Overlay for AM62P5 SK
  dt-bindings: display: ti,am65x-dss: Add support for AM62P DSS0
  drm/tidss: Add support for AM62P DSS1
  arm64: dts: ti: k3-am62p: Add memory regions for DSS1, DSI and 
DPHY-TX

  arm64: dts: ti: k3-am62p-main: Add DSS1, DSI and DPHY-TX
  arm64: dts: ti: k3-am62p5-sk: Add RPi DSI Panel

Brandon Brnich (7):
  arm64: dts: ti: k3-am62p: Enable video encode/decode
  arm64: dts: ti: k3-am62p: Reserve 128 MiB for CMA on 62p
  media: chips-media: wave5: Update queue initialization logic
  arm64: dts: ti: k3-am62p-main: SRAM allocation for VPU
  media: chips-media: wave5: Update Pixel Rate Logic
  arm64: dts: ti: k3-am62p-main: VPU Frequency Operating Points
  media: img: vxe-vxd: decoder: Remove Padding in Output

Bryan Brattlof (6):
  HACK: cpufreq: ti-cpufreq: extend am625 efuse table
  arm64: dts: ti: k3-am62p: introduce OPP table
  arm64: dts: ti: k3-am62p: disable 1v8 modes
  arm64: dts: ti: k3-am62p: add required mmc properties
  arch: dts: ti: k3-am62p5-sk: add sdhci0 as a boot option
  HACK: arm64: dts: ti: k3-am62p: add dll delay mapping for emmc

Dave Stevenson (8):
  Input: edt-ft5x06: Poll the device if no interrupt is configured.
  Input: edt-ft54x6: Clean up timer and workqueue on remove
  input: edt-ft5x06: Handle unreliable TOUCH_UP events
  input: edt-ft5x06: Only look at the number of points reported
  input: edt-ft5x06: Only read data for number of points reported
  input: edt-ft5x06: Include I2C details in names for the devices
  drm/panel: Add prepare_upstream_first flag to drm_panel
  drm/tc358762: Set the pre_enable_upstream_first flag to configure 
DSI host


David Lechner (8):
  counter/ti-eqep: implement over/underflow events
  counter/ti-eqep: add support for direction
  counter/ti-eqep: add support for unit timer
  docs: counter: add unit timer sysfs attributes
  counter/ti-eqep: add support for latched position
  docs: counter: add latch_mode and latched_count sysfs attributes
  counter/ti-eqep: add support for edge capture unit
  docs: counter: add edge_capture_unit_* attributes

Devarsh Thakkar (9):
  arm64: dts: ti: k3-am62p5-sk: Reserve memory for remote cores
  arm64: dts: ti: k3-am62p5-sk: Bump up cma to 576M
  arm64: dts: ti: k3-am62x-sk-common: Add simple-framebuffer node
  dt-bindings: display: ti,am65x-dss: Add support for common1 region
  arm64: dts: ti: Add common1 register space for all supported SoCs
  dt-bindings: display: ti,am65x-dss: Add support for display 
sharing mode
  arm64: dts: ti: k3-am62p: Add overlay to use DSS in display 
sharing mode

  drm/tidss: Add support for display sharing
  arm64: dts: ti: Fix IRQ number for ILI251x touchscreen

Dhruva Gole (3):
  firmware: ti_sci: Change the lpm context address to be 32-bit 
addressable

  arm64: dts: ti: k3-am62: Add main gpio keys based wake irq example
  arm64: dts: ti: k3-am62x-sk-mcu-gpio-wakeup: Enable mcu_gpio nodes

Guillaume La Roque (1):
  net: ethernet: ti: cpsw-proxy-client: Fix size of ipv4_addr member

Hari Nagalla (6):
  arm64: dts: ti: k3-am62p5-sk: Attach mboxes and reserve memory to 
remote cores

  remoteproc: k3-r5: Introduce PM suspend/resume handlers
  remoteproc: k3-r5: Introduce MCU wakeup handlers
  arm64: dts: ti: k3-am62a-mcu: Enable MCU wakeup for R5F
  arm64: dts: ti: k3-am62a7-sk: HACK: Reduce mailbox fifos
  arm64: dts: ti: k3-am62p: Add SRAM node for MCU-R5 and set wakeup 
source


Jackson Lee (2):
  media: chips-media: wave5: Enable Prepending Headers 

[linux-yocto][linux-yocto v6.1/standard/ti-sdk-6.1/ti-j7xxx] ti-am62 kernel part to upgrade to TI SDK ti-processor-sdk-linux-edgeai-am62axx-evm-09_01_00_07

2024-01-03 Thread Xulin Sun via lists.yoctoproject.org

Hi Bruce,

Could you please help to merge below patches to kernel branch 
"v6.1/standard/ti-sdk-6.1/ti-j7xxx"?
This is to upgrade BSP to TI SDK 
ti-processor-sdk-linux-edgeai-am62axx-evm-09_01_00_07.



The following changes since commit 22d95ef690f558a6e5dd0146d3c0ca6b0aa16622:

  Merge branch 'v6.1/standard/base' into 
v6.1/standard/ti-sdk-6.1/ti-j7xxx (2024-01-03 15:54:30 -0500)


are available in the Git repository at:

  https://github.com/xulinsun/ti-j72x v6.1/standard/ti-sdk-6.1/ti-j7xxx

for you to fetch changes up to 3c1d38670eb087634966368e2d78b08a5b69f9a9:

  arm64: dts: ti: k3-am62p5-sk: enable uart as wakeup source 
(2024-01-04 10:45:27 +0800)



Andrew Davis (2):
  phy: ti: gmii-sel: Allow parent to not be syscon node
  phy: ti: gmii-sel: Fix register offset when parent is not a 
syscon node


Aradhya Bhatia (11):
  drm/tidss: Add support for AM62P DSS0
  arm64: dts: ti: k3-am62p5-sk: Enable main_i2c0
  arm64: dts: ti: k3-am62p-main: Add support for DSS0
  arm64: dts: ti: k3-am62p5-sk: Enable HDMI display on DSS0
  arm64: dts: ti: Add Microtips OLDI Panel-1 Overlay for AM62P5-SK
  arm64: dts: ti: Add Microtips OLDI Panel-2 Overlay for AM62P5 SK
  dt-bindings: display: ti,am65x-dss: Add support for AM62P DSS0
  drm/tidss: Add support for AM62P DSS1
  arm64: dts: ti: k3-am62p: Add memory regions for DSS1, DSI and 
DPHY-TX

  arm64: dts: ti: k3-am62p-main: Add DSS1, DSI and DPHY-TX
  arm64: dts: ti: k3-am62p5-sk: Add RPi DSI Panel

Brandon Brnich (7):
  arm64: dts: ti: k3-am62p: Enable video encode/decode
  arm64: dts: ti: k3-am62p: Reserve 128 MiB for CMA on 62p
  media: chips-media: wave5: Update queue initialization logic
  arm64: dts: ti: k3-am62p-main: SRAM allocation for VPU
  media: chips-media: wave5: Update Pixel Rate Logic
  arm64: dts: ti: k3-am62p-main: VPU Frequency Operating Points
  media: img: vxe-vxd: decoder: Remove Padding in Output

Bryan Brattlof (6):
  HACK: cpufreq: ti-cpufreq: extend am625 efuse table
  arm64: dts: ti: k3-am62p: introduce OPP table
  arm64: dts: ti: k3-am62p: disable 1v8 modes
  arm64: dts: ti: k3-am62p: add required mmc properties
  arch: dts: ti: k3-am62p5-sk: add sdhci0 as a boot option
  HACK: arm64: dts: ti: k3-am62p: add dll delay mapping for emmc

Dave Stevenson (8):
  Input: edt-ft5x06: Poll the device if no interrupt is configured.
  Input: edt-ft54x6: Clean up timer and workqueue on remove
  input: edt-ft5x06: Handle unreliable TOUCH_UP events
  input: edt-ft5x06: Only look at the number of points reported
  input: edt-ft5x06: Only read data for number of points reported
  input: edt-ft5x06: Include I2C details in names for the devices
  drm/panel: Add prepare_upstream_first flag to drm_panel
  drm/tc358762: Set the pre_enable_upstream_first flag to configure 
DSI host


David Lechner (8):
  counter/ti-eqep: implement over/underflow events
  counter/ti-eqep: add support for direction
  counter/ti-eqep: add support for unit timer
  docs: counter: add unit timer sysfs attributes
  counter/ti-eqep: add support for latched position
  docs: counter: add latch_mode and latched_count sysfs attributes
  counter/ti-eqep: add support for edge capture unit
  docs: counter: add edge_capture_unit_* attributes

Devarsh Thakkar (9):
  arm64: dts: ti: k3-am62p5-sk: Reserve memory for remote cores
  arm64: dts: ti: k3-am62p5-sk: Bump up cma to 576M
  arm64: dts: ti: k3-am62x-sk-common: Add simple-framebuffer node
  dt-bindings: display: ti,am65x-dss: Add support for common1 region
  arm64: dts: ti: Add common1 register space for all supported SoCs
  dt-bindings: display: ti,am65x-dss: Add support for display 
sharing mode
  arm64: dts: ti: k3-am62p: Add overlay to use DSS in display 
sharing mode

  drm/tidss: Add support for display sharing
  arm64: dts: ti: Fix IRQ number for ILI251x touchscreen

Dhruva Gole (3):
  firmware: ti_sci: Change the lpm context address to be 32-bit 
addressable

  arm64: dts: ti: k3-am62: Add main gpio keys based wake irq example
  arm64: dts: ti: k3-am62x-sk-mcu-gpio-wakeup: Enable mcu_gpio nodes

Guillaume La Roque (1):
  net: ethernet: ti: cpsw-proxy-client: Fix size of ipv4_addr member

Hari Nagalla (6):
  arm64: dts: ti: k3-am62p5-sk: Attach mboxes and reserve memory to 
remote cores

  remoteproc: k3-r5: Introduce PM suspend/resume handlers
  remoteproc: k3-r5: Introduce MCU wakeup handlers
  arm64: dts: ti: k3-am62a-mcu: Enable MCU wakeup for R5F
  arm64: dts: ti: k3-am62a7-sk: HACK: Reduce mailbox fifos
  arm64: dts: ti: k3-am62p: Add SRAM node for MCU-R5 and set wakeup 
source


Jackson Lee (2):
  media: chips-media: wave5: Enable Prepending Headers to IDR Frames
  media: chips-media: wave5: Allow using bitstream

[linux-yocto][linux-yocto v6.1/standard/ti-sdk-6.1/ti-j7xxx & v6.1/standard/preempt-rt/ti-sdk-6.1/ti-j7xxx][PATCH] arm64: dts: ti: use the overlay's parent node for graph port for dtso

2023-12-21 Thread Xulin Sun via lists.yoctoproject.org
dtc tool will check graph port to see if node->name is "port" or not, and
output the warning if the node->name is not "port". For overlay node, the
node->name is "__overlay__" and cause the warning. Use the overlay's parent
node for graph port to describe the node to avoid below building issue:
arch/arm64/boot/dts/ti/k3-j721e-evm-csi2-ov5640.dtso:43.13-52.3: Warning 
(graph_port): /fragment@2/__overlay__: graph port node name should be 'port'
arch/arm64/boot/dts/ti/k3-j721e-evm-fusion.dtso:87.13-96.3: Warning 
(graph_port): /fragment@2/__overlay__: graph port node name should be 'port'
arch/arm64/boot/dts/ti/k3-j721e-evm-fusion.dtso:98.13-107.3: Warning 
(graph_port): /fragment@3/__overlay__: graph port node name should be 'port'

Signed-off-by: Xulin Sun 
---
 .../boot/dts/ti/k3-j721e-evm-csi2-ov5640.dtso | 20 ++
 .../boot/dts/ti/k3-j721e-evm-fusion.dtso  | 38 +++
 .../boot/dts/ti/k3-j721s2-evm-fusion.dtso | 38 +++
 3 files changed, 58 insertions(+), 38 deletions(-)

diff --git a/arch/arm64/boot/dts/ti/k3-j721e-evm-csi2-ov5640.dtso 
b/arch/arm64/boot/dts/ti/k3-j721e-evm-csi2-ov5640.dtso
index 1d314f071d2e..8f0eccd76db9 100644
--- a/arch/arm64/boot/dts/ti/k3-j721e-evm-csi2-ov5640.dtso
+++ b/arch/arm64/boot/dts/ti/k3-j721e-evm-csi2-ov5640.dtso
@@ -40,13 +40,17 @@
};
 };
 
-&csi0_port0 {
-   status = "okay";
-
-   csi2rx0_in_sensor: endpoint {
-   remote-endpoint = <&csi2_cam0>;
-   bus-type = <4>; /* CSI2 DPHY */
-   clock-lanes = <0>;
-   data-lanes = <1 2>;
+&cdns_csi2rx0 {
+   ports {
+   port@0 {
+   status = "okay";
+
+   csi2rx0_in_sensor: endpoint {
+   remote-endpoint = <&csi2_cam0>;
+   bus-type = <4>; /* CSI2 DPHY */
+   clock-lanes = <0>;
+   data-lanes = <1 2>;
+   };
+   };
};
 };
diff --git a/arch/arm64/boot/dts/ti/k3-j721e-evm-fusion.dtso 
b/arch/arm64/boot/dts/ti/k3-j721e-evm-fusion.dtso
index 39156234e67d..47a3f4d4ca09 100644
--- a/arch/arm64/boot/dts/ti/k3-j721e-evm-fusion.dtso
+++ b/arch/arm64/boot/dts/ti/k3-j721e-evm-fusion.dtso
@@ -84,24 +84,32 @@
};
 };
 
-&csi0_port0 {
-   status = "okay";
-
-   csi2_phy0: endpoint {
-   remote-endpoint = <&ds90ub960_0_csi_out>;
-   clock-lanes = <0>;
-   data-lanes = <1 2 3 4>;
-   link-frequencies = /bits/ 64 <8>;
+&cdns_csi2rx0 {
+   ports {
+   port@0 {
+   status = "okay";
+
+   csi2_phy0: endpoint {
+   remote-endpoint = <&ds90ub960_0_csi_out>;
+   clock-lanes = <0>;
+   data-lanes = <1 2 3 4>;
+   link-frequencies = /bits/ 64 <8>;
+   };
+   };
};
 };
 
-&csi1_port0 {
-   status = "okay";
+&cdns_csi2rx1 {
+   ports {
+   port@0 {
+   status = "okay";
 
-   csi2_phy1: endpoint {
-   remote-endpoint = <&ds90ub960_1_csi_out>;
-   clock-lanes = <0>;
-   data-lanes = <1 2 3 4>;
-   link-frequencies = /bits/ 64 <8>;
+   csi2_phy1: endpoint {
+   remote-endpoint = <&ds90ub960_1_csi_out>;
+   clock-lanes = <0>;
+   data-lanes = <1 2 3 4>;
+   link-frequencies = /bits/ 64 <8>;
+   };
+   };
};
 };
diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-evm-fusion.dtso 
b/arch/arm64/boot/dts/ti/k3-j721s2-evm-fusion.dtso
index e8d824cbb385..5116c0ce565f 100644
--- a/arch/arm64/boot/dts/ti/k3-j721s2-evm-fusion.dtso
+++ b/arch/arm64/boot/dts/ti/k3-j721s2-evm-fusion.dtso
@@ -84,24 +84,32 @@
};
 };
 
-&csi0_port0 {
-   status = "okay";
-
-   csi2_phy0: endpoint {
-   remote-endpoint = <&ds90ub960_0_csi_out>;
-   clock-lanes = <0>;
-   data-lanes = <1 2 3 4>;
-   link-frequencies = /bits/ 64 <8>;
+&cdns_csi2rx0 {
+   ports {
+   port@0 {
+   status = "okay";
+
+   csi2_phy0: endpoint {
+   remote-endpoint = <&ds90ub960_0_csi_out>;
+   

[linux-yocto][linux-yocto v6.1/standard/ti-sdk-6.1/ti-j7xxx & v6.1/standard/preempt-rt/ti-sdk-6.1/ti-j7xxx][PATCH] net: ethernet: ti: cpsw_new: enable mac_managed_pm to fix mdio resume warning

2023-12-18 Thread Xulin Sun via lists.yoctoproject.org
The commit 744d23c71af3 ("net: phy: Warn about incorrect mdio_bus_phy_resume()
state") introduced a WARN when phy state is not in the states: PHY_HALTED,
PHY_READY and PHY_UP. When cpsw_new resumes, there have port in PHY_NOLINK
state, so the below warning comes out. Set mac_managed_pm be true to tell
mdio that the phy resume/suspend is managed by the mac, to fix the following
warning:

WARNING: CPU: 0 PID: 965 at drivers/net/phy/phy_device.c:326 
mdio_bus_phy_resume+0x140/0x144
CPU: 0 PID: 965 Comm: sh Tainted: G   O   
6.1.66-rt18-yocto-preempt-rt #1
Hardware name: Generic AM33XX (Flattened Device Tree)
 unwind_backtrace from show_stack+0x18/0x1c
 show_stack from dump_stack_lvl+0x24/0x2c
 dump_stack_lvl from __warn+0x84/0x15c
 __warn from warn_slowpath_fmt+0x1a8/0x1c8
 warn_slowpath_fmt from mdio_bus_phy_resume+0x140/0x144
 mdio_bus_phy_resume from dpm_run_callback+0x3c/0x140
 dpm_run_callback from device_resume+0xb8/0x2b8
 device_resume from dpm_resume+0x144/0x314
 dpm_resume from dpm_resume_end+0x14/0x20
 dpm_resume_end from suspend_devices_and_enter+0xd0/0x924
 suspend_devices_and_enter from pm_suspend+0x2e0/0x33c
 pm_suspend from state_store+0x74/0xd0
 state_store from kernfs_fop_write_iter+0x104/0x1ec
 kernfs_fop_write_iter from vfs_write+0x1b8/0x358
 vfs_write from ksys_write+0x78/0xf8
 ksys_write from ret_fast_syscall+0x0/0x54
Exception stack(0xe094dfa8 to 0xe094dff0)
dfa0:   0004 005c3fb8 0001 005c3fb8 0004 0001
dfc0: 0004 005c3fb8 b6f6bba0 0004 0004 0059edb8  
dfe0: 0004 bed918f0 b6f09bd3 b6e89a66

Signed-off-by: Xulin Sun 
---
 drivers/net/ethernet/ti/cpsw_new.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/ti/cpsw_new.c 
b/drivers/net/ethernet/ti/cpsw_new.c
index 83596ec0c7cb..057b60e16a3a 100644
--- a/drivers/net/ethernet/ti/cpsw_new.c
+++ b/drivers/net/ethernet/ti/cpsw_new.c
@@ -772,6 +772,7 @@ static void cpsw_slave_open(struct cpsw_slave *slave, 
struct cpsw_priv *priv)
slave->slave_num);
return;
}
+   phy->mac_managed_pm = true;
slave->phy = phy;
 
phy_attached_info(slave->phy);
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13429): 
https://lists.yoctoproject.org/g/linux-yocto/message/13429
Mute This Topic: https://lists.yoctoproject.org/mt/103258649/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][yocto-kernel-cache][yocto-6.1][PATCH] ti-am335x: add Qualcomm Atheros AR803X PHY support

2023-12-18 Thread Xulin Sun via lists.yoctoproject.org
Add Qualcomm Atheros AR803X PHY support since AM335X EVM
installed this phy.

Signed-off-by: Xulin Sun 
---
 bsp/ti-am335x/ti-am335x.cfg | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bsp/ti-am335x/ti-am335x.cfg b/bsp/ti-am335x/ti-am335x.cfg
index b8deb025..75e7c75d 100644
--- a/bsp/ti-am335x/ti-am335x.cfg
+++ b/bsp/ti-am335x/ti-am335x.cfg
@@ -92,6 +92,7 @@ CONFIG_TI_CPSW_SWITCHDEV=y
 
 CONFIG_SMSC_PHY=y
 CONFIG_FIXED_PHY=y
+CONFIG_AT803X_PHY=y
 
 #
 # Input Device Drivers
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13428): 
https://lists.yoctoproject.org/g/linux-yocto/message/13428
Mute This Topic: https://lists.yoctoproject.org/mt/103256840/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][yocto-kernel-cache][yocto-6.1][PATCH] ti-am335x: add preempt-rt support and boards full features support

2023-12-07 Thread Xulin Sun via lists.yoctoproject.org
- Add preempt-rt kernel type support.
- Add AM335X EVM & BeagleBone Black boards with full features support.

Signed-off-by: Xulin Sun 
---
 bsp/ti-am335x/ti-am335x-preempt-rt.scc |  9 +++
 bsp/ti-am335x/ti-am335x.cfg| 84 +-
 2 files changed, 90 insertions(+), 3 deletions(-)
 create mode 100644 bsp/ti-am335x/ti-am335x-preempt-rt.scc

diff --git a/bsp/ti-am335x/ti-am335x-preempt-rt.scc 
b/bsp/ti-am335x/ti-am335x-preempt-rt.scc
new file mode 100644
index ..0b33635e
--- /dev/null
+++ b/bsp/ti-am335x/ti-am335x-preempt-rt.scc
@@ -0,0 +1,9 @@
+# SPDX-License-Identifier: MIT
+define KMACHINE ti-am335x
+define KTYPE preempt-rt
+define KARCH arm
+
+include ktypes/preempt-rt
+branch ti-am335x
+
+include ti-am335x.scc
diff --git a/bsp/ti-am335x/ti-am335x.cfg b/bsp/ti-am335x/ti-am335x.cfg
index bdf54c5d..b8deb025 100644
--- a/bsp/ti-am335x/ti-am335x.cfg
+++ b/bsp/ti-am335x/ti-am335x.cfg
@@ -35,6 +35,8 @@ CONFIG_REGMAP_IRQ=y
 
 CONFIG_REGULATOR_TPS65910=y
 CONFIG_REGULATOR_TPS65217=y
+CONFIG_FW_LOADER_USER_HELPER=y
+CONFIG_FW_LOADER_USER_HELPER_FALLBACK=y
 
 #
 # CPU Frequency
@@ -85,6 +87,8 @@ CONFIG_TI_CPSW_PHY_SEL=y
 CONFIG_TI_CPSW=y
 CONFIG_TI_CPTS=y
 CONFIG_PHYLIB=y
+CONFIG_NET_SWITCHDEV=y
+CONFIG_TI_CPSW_SWITCHDEV=y
 
 CONFIG_SMSC_PHY=y
 CONFIG_FIXED_PHY=y
@@ -156,19 +160,28 @@ CONFIG_TWL6040_CORE=y
 # LCD
 #
 CONFIG_DRM=y
-CONFIG_DRM_OMAP=y
+CONFIG_DRM_OMAP=m
 CONFIG_OMAP2_DSS_DPI=y
 CONFIG_DRM_TILCDC=y
 CONFIG_DRM_I2C_NXP_TDA998X=y
+CONFIG_DRM_LEGACY=y
+CONFIG_DRM_PANEL_SIMPLE=m
+CONFIG_DRM_PANEL_EDP=m
 
 CONFIG_LCD_CLASS_DEVICE=y
 CONFIG_LCD_PLATFORM=y
 CONFIG_BACKLIGHT_CLASS_DEVICE=y
-CONFIG_BACKLIGHT_GENERIC=y
 CONFIG_PWM=y
 CONFIG_BACKLIGHT_PWM=y
 CONFIG_BACKLIGHT_GPIO=y
-
+CONFIG_PWM_TIECAP=m
+CONFIG_PWM_TIEHRPWM=m
+CONFIG_NEW_LEDS=y
+CONFIG_LEDS_CLASS=y
+CONFIG_LEDS_PWM=y
+CONFIG_OMAP5_DSS_HDMI=y
+CONFIG_DRM_TI_TFP410=m
+CONFIG_DRM_TI_TPD12S015=m
 
 CONFIG_SOUND=m
 CONFIG_SND=m
@@ -187,6 +200,8 @@ CONFIG_USB_EHCI_TT_NEWSCHED=y
 CONFIG_USB_EHCI_HCD_OMAP=m
 CONFIG_USB_MUSB_HDRC=m
 
+CONFIG_USB_GADGET=m
+
 #
 # USB Physical Layer drivers Peripheral Controller
 #
@@ -194,6 +209,11 @@ CONFIG_USB_PHY=y
 CONFIG_NOP_USB_XCEIV=m
 CONFIG_AM335X_CONTROL_USB=m
 CONFIG_AM335X_PHY_USB=m
+CONFIG_USB_MUSB_AM35X=m
+CONFIG_USB_OTG=y
+CONFIG_USB_MUSB_DUAL_ROLE=y
+CONFIG_USB_MUSB_TUSB6010=m
+CONFIG_USB_MUSB_OMAP2PLUS=m
 
 # Platform Glue Layer
 CONFIG_USB_MUSB_DSPS=m
@@ -251,3 +271,61 @@ CONFIG_TI_PIPE3=y
 CONFIG_ARM_PMU=y
 
 CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y
+
+# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
+#
+# Audio support for Texas Instruments SoCs
+#
+CONFIG_SND_SOC_DAVINCI_MCASP=m
+CONFIG_SND_SOC_TLV320AIC3X=m
+CONFIG_SND_SOC_TLV320AIC3X_I2C=m
+
+CONFIG_CFG80211=m
+CONFIG_MAC80211=m
+
+#
+# Wifi support for Texas Instruments SoCs
+#
+CONFIG_WL12XX=m
+CONFIG_WL18XX=m
+CONFIG_WLCORE=m
+CONFIG_WLCORE_SDIO=m
+
+CONFIG_CAN=y
+CONFIG_CAN_RAW=y
+CONFIG_CAN_BCM=y
+CONFIG_CAN_GW=y
+CONFIG_CAN_DEV=y
+CONFIG_CAN_C_CAN=y
+CONFIG_CAN_C_CAN_PLATFORM=y
+CONFIG_CAN_NETLINK=y
+CONFIG_CAN_CALC_BITTIMING=y
+
+CONFIG_WKUP_M3_RPROC=m
+CONFIG_PRU_REMOTEPROC=m
+
+CONFIG_SOC_TI=y
+CONFIG_TI_PRUSS=m
+
+CONFIG_BT=y
+CONFIG_BT_RFCOMM=y
+CONFIG_BT_RFCOMM_TTY=y
+CONFIG_BT_LE=y
+CONFIG_BT_HS=y
+CONFIG_BT_HCIUART=y
+CONFIG_BT_HCIUART_H4=y
+CONFIG_SERIAL_DEV_BUS=y
+CONFIG_BT_HCIUART_LL=y
+
+CONFIG_MAILBOX=y
+CONFIG_OMAP2PLUS_MBOX=y
+CONFIG_SRAM=y
+CONFIG_TI_EMIF_SRAM=m
+CONFIG_WKUP_M3_IPC=m
+CONFIG_AMX3_PM=m
+
+CONFIG_IIO=y
+CONFIG_IIO_BUFFER=y
+CONFIG_TI_AM335X_ADC=y
+CONFIG_FB=y
+CONFIG_PERF_EVENTS=y
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13397): 
https://lists.yoctoproject.org/g/linux-yocto/message/13397
Mute This Topic: https://lists.yoctoproject.org/mt/103048926/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.1/standard/preempt-rt/ti-sdk-6.1/ti-j7xxx] ti-am335x adds preempt-rt kernel patches to upgrade TI SDK 09.01.00.001

2023-12-06 Thread Xulin Sun via lists.yoctoproject.org

Hi Bruce,

Could you please help to merge below patches to the preempt-rt kernel 
branch "v6.1/standard/preempt-rt/ti-sdk-6.1/ti-j7xxx"?
This is preempt-rt kernel to upgrade BSP to TI SDK 
ti-processor-sdk-linux-rt-am335x-evm-09.01.00.001.



The following changes since commit 6174c12cdb9301da6de7e3dfe39e5c4a8675e9ac:

  Merge branch 'v6.1/standard/base' into 
v6.1/standard/preempt-rt/ti-sdk-6.1/ti-j7xxx (2023-12-05 09:04:38 -0500)


are available in the Git repository at:

  https://github.com/xulinsun/ti-j72x 
v6.1/standard/preempt-rt/ti-sdk-6.1/ti-j7xxx


for you to fetch changes up to 550f1a5ab99ddeaf99bb27751ec9e57329d15e13:

  arm: dts: am335x-evm: enable dcan1 node by default (2023-12-06 
08:08:04 +)



Apurva Nandan (2):
  arm64: dts: k3-j784s4: Add node for OSPI NAND Flash
  arm64: dts: ti: k3-j7xx: Enable split-mode for MCU R5 cores

Aradhya Bhatia (6):
  dt-bindings: display/simple: Add Microtips MF-103HIEB0GA0 Dual 
LVDS Panel

  drm/panel: simple: Add Microtips Technology MF-103HIEB0GA0 panel
  arm64: dts: ti: Add Microtips OLDI Panel Overlay for AM62-(LP) SK
  arm64: dts: ti: Add LincolnTech OLDI Panel Overlay for AM625-SK
  arm64: dts: ti: Add LincolnTech OLDI Panel Overlay for AM62-LP SK
  arm64: dts: ti: Add LincolnTech OLDI Panel Overlay for 
AM625-BeaglePlay


Bryan Brattlof (2):
  cpufreq: dt-platdev: add am62p5 to blocklist
  cpufreq: ti-cpufreq: Add opp support for am62p5 SoCs

Darren Etheridge (5):
  media: platform: img: vxd: force device node name
  media: platform: img: vxe-vxd: fix encoder buffer size
  media: platform: img: vxd: Address stream compliance and add new 
user controls for buf allocations

  media: platform: img: vxe-vxd: fix size of firmware comms structure
  media: platform: img: vxd fix the mapping problem with dmabuf import

Devarsh Thakkar (1):
  HACK: drm/tidss: Power up attached PM domains on probe

Francesco Dolcini (1):
  clk: keystone: syscon-clk: Fix audio refclk

Hari Nagalla (2):
  remoteproc: k3-r5: support for graceful stop of remote cores
  arm64: dts: ti: k3-am625-sk: Remove regulator always on for wlan lt

Jai Luthra (6):
  media: ti: j721e-csi2rx: Fix broken UYVY format ordering
  media: i2c: ds90ub960: Add support for DS90UB954-Q1
  arm64: dts: ti: k3-am62a7: Add overlay for UB954 EVM
  media: ti: j721e-csi2rx: Support runtime suspend
  phy: cadence: cdns-dphy-rx: Add runtime PM support
  HACK: media: ov5640: Keep autosuspend disabled

Jayesh Choudhary (7):
  HACK: drm/bridge: ti-sn65dsi86: Fix bridge detect
  Revert "HACK: arm64: dts: ti: k3-am68-sk-base-board: Disable DSI"
  Revert "HACK: arm64: dts: ti: k3-j784s4-evm: Disable DSI"
  Revert "HACK: arm64: dts: ti: k3-j721s2-common-proc-board: 
Disable DSI"

  Revert "drm/tidss: Make zpos immutable for primary plane"
  HACK: arm64: dts: ti: k3-j784s4-evm: Add serdes_dp_link max-bit-rate
  HACK: arm64: dts: ti: k3-j721e-common-proc-board: Drop dp_link 
max phy rate


Judith Mendez (1):
  arm: dts: am335x-evmsk: add alias node for uarts

Keerthy (7):
  arm64: dts: ti: k3-j721s2: Add ESM instances
  arm64: dts: ti: k3-j784s4: Add ESM instances
  arm64: dts: ti: k3-j7200: Add MCU domain ESM instance
  arm64: dts: ti: k3-j784s4-main: Add the main domain watchdog 
instances

  arm64: dts: ti: k3-j784s4-mcu: Add the mcu domain watchdog instances
  arm64: dts: ti: k3-j721s2-main: Add the main domain watchdog 
instances

  arm64: dts: ti: k3-j712s2-mcu: Add the mcu domain watchdog instances

MD Danish Anwar (3):
  net: ti: icssg-prueth: Fix tx_total_bytes count
  net: ti: icssg-prueth: Fix r30 CMDs bitmasks
  net: ti: icssg-prueth: Add VID 1 to vlan table in switch mode.

Prasanth Babu Mantena (2):
  arm64: dts: ti: k3-j721s2: Add NAVSS SRAM node for Codec
  arm64: dts: ti: k3-j784s4: Add NAVSS SRAM node for Codec

Ravi Gunasekaran (1):
  net: ethernet: ti: icssg_prueth: Enable HSR Tx Packet duplication 
offload


Siddharth Vadapalli (2):
  PCI: keystone: Fix race condition when initializing PHYs
  PCI: keystone: Fix ks_pcie_v3_65_add_bus() for AM654x SoC

Sinthu Raja (1):
  arm: dts: am57xx-beagle-x15: Fix HDMI LS_OE GPIO

Vaishnav Achath (1):
  spi: omap2-mcspi: Fix hardcoded reference clock

Xiaolei Wang (2):
  arm: dts: am335x-evmsk: add uart1
  ARM: dts: am335x: add wl1835-st driver dtb for bluetooth

Xulin Sun (1):
  arm: dts: am335x-evm: enable dcan1 node by default

Zumeng Chen (2):
  arm: omap2: include OMAP_GPMC and MEMORY
  arm: dts: am33xx: enable gpmc for LCD etc.

 Documentation/devicetree/bindings/display/panel/panel-simple.yaml |   2 +
 Documentation/devicetree/bindings/media/i2c/ti,ds90ub960.yaml |   1 +
 arch/arm/boot/dts/am335x

[linux-yocto][linux-yocto v6.1/standard/ti-sdk-6.1/ti-j7xxx] ti-am335x kernel part to upgrade to TI SDK ti-processor-sdk-linux-rt-am335x-evm-09.01.00.001

2023-12-06 Thread Xulin Sun via lists.yoctoproject.org

Hi Bruce,

Could you please help to merge below patches to kernel branch 
"v6.1/standard/ti-sdk-6.1/ti-j7xxx"?
This is to upgrade BSP to TI SDK 
ti-processor-sdk-linux-rt-am335x-evm-09.01.00.001.



The following changes since commit 81d3dcbd42aea8534c558ddcbd4358ae52edd37f:

  Merge branch 'v6.1/standard/base' into 
v6.1/standard/ti-sdk-6.1/ti-j7xxx (2023-12-05 09:04:45 -0500)


are available in the Git repository at:

  https://github.com/xulinsun/ti-j72x v6.1/standard/ti-sdk-6.1/ti-j7xxx

for you to fetch changes up to f6ee909c97c4c3294688e5f080631792f55aef7c:

  arm: dts: am335x-evm: enable dcan1 node by default (2023-12-06 
08:07:39 +)



Apurva Nandan (2):
  arm64: dts: k3-j784s4: Add node for OSPI NAND Flash
  arm64: dts: ti: k3-j7xx: Enable split-mode for MCU R5 cores

Aradhya Bhatia (6):
  dt-bindings: display/simple: Add Microtips MF-103HIEB0GA0 Dual 
LVDS Panel

  drm/panel: simple: Add Microtips Technology MF-103HIEB0GA0 panel
  arm64: dts: ti: Add Microtips OLDI Panel Overlay for AM62-(LP) SK
  arm64: dts: ti: Add LincolnTech OLDI Panel Overlay for AM625-SK
  arm64: dts: ti: Add LincolnTech OLDI Panel Overlay for AM62-LP SK
  arm64: dts: ti: Add LincolnTech OLDI Panel Overlay for 
AM625-BeaglePlay


Bryan Brattlof (2):
  cpufreq: dt-platdev: add am62p5 to blocklist
  cpufreq: ti-cpufreq: Add opp support for am62p5 SoCs

Darren Etheridge (5):
  media: platform: img: vxd: force device node name
  media: platform: img: vxe-vxd: fix encoder buffer size
  media: platform: img: vxd: Address stream compliance and add new 
user controls for buf allocations

  media: platform: img: vxe-vxd: fix size of firmware comms structure
  media: platform: img: vxd fix the mapping problem with dmabuf import

Devarsh Thakkar (1):
  HACK: drm/tidss: Power up attached PM domains on probe

Francesco Dolcini (1):
  clk: keystone: syscon-clk: Fix audio refclk

Hari Nagalla (2):
  remoteproc: k3-r5: support for graceful stop of remote cores
  arm64: dts: ti: k3-am625-sk: Remove regulator always on for wlan lt

Jai Luthra (6):
  media: ti: j721e-csi2rx: Fix broken UYVY format ordering
  media: i2c: ds90ub960: Add support for DS90UB954-Q1
  arm64: dts: ti: k3-am62a7: Add overlay for UB954 EVM
  media: ti: j721e-csi2rx: Support runtime suspend
  phy: cadence: cdns-dphy-rx: Add runtime PM support
  HACK: media: ov5640: Keep autosuspend disabled

Jayesh Choudhary (7):
  HACK: drm/bridge: ti-sn65dsi86: Fix bridge detect
  Revert "HACK: arm64: dts: ti: k3-am68-sk-base-board: Disable DSI"
  Revert "HACK: arm64: dts: ti: k3-j784s4-evm: Disable DSI"
  Revert "HACK: arm64: dts: ti: k3-j721s2-common-proc-board: 
Disable DSI"

  Revert "drm/tidss: Make zpos immutable for primary plane"
  HACK: arm64: dts: ti: k3-j784s4-evm: Add serdes_dp_link max-bit-rate
  HACK: arm64: dts: ti: k3-j721e-common-proc-board: Drop dp_link 
max phy rate


Judith Mendez (1):
  arm: dts: am335x-evmsk: add alias node for uarts

Keerthy (7):
  arm64: dts: ti: k3-j721s2: Add ESM instances
  arm64: dts: ti: k3-j784s4: Add ESM instances
  arm64: dts: ti: k3-j7200: Add MCU domain ESM instance
  arm64: dts: ti: k3-j784s4-main: Add the main domain watchdog 
instances

  arm64: dts: ti: k3-j784s4-mcu: Add the mcu domain watchdog instances
  arm64: dts: ti: k3-j721s2-main: Add the main domain watchdog 
instances

  arm64: dts: ti: k3-j712s2-mcu: Add the mcu domain watchdog instances

MD Danish Anwar (3):
  net: ti: icssg-prueth: Fix tx_total_bytes count
  net: ti: icssg-prueth: Fix r30 CMDs bitmasks
  net: ti: icssg-prueth: Add VID 1 to vlan table in switch mode.

Prasanth Babu Mantena (2):
  arm64: dts: ti: k3-j721s2: Add NAVSS SRAM node for Codec
  arm64: dts: ti: k3-j784s4: Add NAVSS SRAM node for Codec

Ravi Gunasekaran (1):
  net: ethernet: ti: icssg_prueth: Enable HSR Tx Packet duplication 
offload


Siddharth Vadapalli (2):
  PCI: keystone: Fix race condition when initializing PHYs
  PCI: keystone: Fix ks_pcie_v3_65_add_bus() for AM654x SoC

Sinthu Raja (1):
  arm: dts: am57xx-beagle-x15: Fix HDMI LS_OE GPIO

Vaishnav Achath (1):
  spi: omap2-mcspi: Fix hardcoded reference clock

Xiaolei Wang (2):
  arm: dts: am335x-evmsk: add uart1
  ARM: dts: am335x: add wl1835-st driver dtb for bluetooth

Xulin Sun (1):
  arm: dts: am335x-evm: enable dcan1 node by default

Zumeng Chen (2):
  arm: omap2: include OMAP_GPMC and MEMORY
  arm: dts: am33xx: enable gpmc for LCD etc.

 Documentation/devicetree/bindings/display/panel/panel-simple.yaml |   2 +
 Documentation/devicetree/bindings/media/i2c/ti,ds90ub960.yaml |   1 +
 arch/arm/boot/dts/am335x-evm.dts |   6 ++-
 arch/arm/boot/dts/am335x-evmsk.dts |  38 +
 arc

Re: [linux-yocto][yocto-kernel-cache][yocto-6.1][PATCH] nxp-lx2xxx: drop unused config CONFIG_INPHI_PHY

2023-11-09 Thread Xulin Sun via lists.yoctoproject.org

On 9/27/23 11:30, Bruce Ashfield wrote:

merged.


Hi Bruce,

I checked the latest yocto-kernel-cache of branch yocto-6.1, it seems 
that the review has not actually been merged.


Could you please double check this?

Thanks

Xulin


Bruce

In message: [linux-yocto][yocto-kernel-cache][yocto-6.1][PATCH] nxp-lx2xxx: 
drop unused config CONFIG_INPHI_PHY
on 26/09/2023 Xulin Sun wrote:


kernel has removed config INPHI_PHY, and replaced with
PHY_INPHI_IN112525_RETIMER, dropped from here to fix warning:

[INFO]: the following symbols were not found in the active configuration:
  - CONFIG_INPHI_PHY

Signed-off-by: Xulin Sun 
---
  bsp/nxp-lx2xxx/nxp-lx2xxx.cfg | 1 -
  1 file changed, 1 deletion(-)

diff --git a/bsp/nxp-lx2xxx/nxp-lx2xxx.cfg b/bsp/nxp-lx2xxx/nxp-lx2xxx.cfg
index 1b55967f..f8008cb7 100644
--- a/bsp/nxp-lx2xxx/nxp-lx2xxx.cfg
+++ b/bsp/nxp-lx2xxx/nxp-lx2xxx.cfg
@@ -122,7 +122,6 @@ CONFIG_MDIO_BITBANG=y
  CONFIG_PHYLIB=y
  CONFIG_AQUANTIA_PHY=y
  CONFIG_CORTINA_PHY=y
-CONFIG_INPHI_PHY=y
  CONFIG_REGULATOR=y
  CONFIG_AT803X_PHY=y
  CONFIG_PHY_INPHI_IN112525_RETIMER=y
--
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13276): 
https://lists.yoctoproject.org/g/linux-yocto/message/13276
Mute This Topic: https://lists.yoctoproject.org/mt/101591870/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][yocto-kernel-cache][yocto-6.1][PATCH] ti-j7xxx: add MICROSEMI_PHY and CPSW bridge configs

2023-10-26 Thread Xulin Sun via lists.yoctoproject.org
- Add the MICROSEMI_PHY of VSC8514 phy to support J7X-VSC8514-ETH card.
- Add several CPSW bridge related configs to support CPSW switch mode.
- Add Embedded DisplayPort panels module and change SN65DSI86 to module
  to avoid failed to create device link (0x180) with regulator-dp1-prw
  since the timing of driver loading.

Signed-off-by: Xulin Sun 
---
 bsp/ti-j7xxx/ti-j7xxx.cfg | 8 +++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/bsp/ti-j7xxx/ti-j7xxx.cfg b/bsp/ti-j7xxx/ti-j7xxx.cfg
index 17ec3c8b..9a313f72 100755
--- a/bsp/ti-j7xxx/ti-j7xxx.cfg
+++ b/bsp/ti-j7xxx/ti-j7xxx.cfg
@@ -271,6 +271,7 @@ CONFIG_PHY_J721E_WIZ=y
 CONFIG_DP83869_PHY=y
 CONFIG_MDIO_BUS_MUX_MULTIPLEXER=y
 CONFIG_MUX_GPIO=y
+CONFIG_MICROSEMI_PHY=y
 
 #
 # Gigabit Ethernet Switch subsystem
@@ -279,6 +280,10 @@ CONFIG_TI_DAVINCI_MDIO=y
 CONFIG_TI_K3_AM65_CPSW_NUSS=y
 CONFIG_TI_K3_AM65_CPSW_SWITCHDEV=y
 CONFIG_NET_SWITCHDEV=y
+CONFIG_TI_K3_AM65_CPTS=y
+CONFIG_TI_AM65_CPSW_TAS=y
+CONFIG_NET_SCH_TAPRIO=y
+CONFIG_BRIDGE_VLAN_FILTERING=y
 
 #
 # CRYPTO
@@ -314,7 +319,7 @@ CONFIG_DRM_FBDEV_EMULATION=y
 CONFIG_FB=y
 
 CONFIG_DRM_CDNS_DSI=y
-CONFIG_DRM_TI_SN65DSI86=y
+CONFIG_DRM_TI_SN65DSI86=m
 
 # SGX driver needs legacy support
 CONFIG_DRM_LEGACY=y
@@ -326,6 +331,7 @@ CONFIG_DRM_TI_TPD12S015=y
 CONFIG_DRM_DISPLAY_CONNECTOR=y
 CONFIG_DRM_LVDS_CODEC=y
 CONFIG_DRM_SII902X=y
+CONFIG_DRM_PANEL_EDP=m
 
 #
 # HYPERBUS
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13242): 
https://lists.yoctoproject.org/g/linux-yocto/message/13242
Mute This Topic: https://lists.yoctoproject.org/mt/102213928/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][yocto-kernel-cache][yocto-6.1][PATCH] ti-j7xxx: add THERMAL and series configs

2023-10-20 Thread Xulin Sun via lists.yoctoproject.org
Add THERMAL and TPS6594 and Cpu dynamic frequency scaling configs.
Remove the CONFIG_RPMSG_PROTO, which is dropped in new kernel.

Signed-off-by: Xulin Sun 
---
 bsp/ti-j7xxx/ti-j7xxx-remoteproc.cfg | 4 +++-
 bsp/ti-j7xxx/ti-j7xxx.cfg| 9 +
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/bsp/ti-j7xxx/ti-j7xxx-remoteproc.cfg 
b/bsp/ti-j7xxx/ti-j7xxx-remoteproc.cfg
index 7d840f1a..6b7f4926 100644
--- a/bsp/ti-j7xxx/ti-j7xxx-remoteproc.cfg
+++ b/bsp/ti-j7xxx/ti-j7xxx-remoteproc.cfg
@@ -5,6 +5,7 @@ CONFIG_REMOTEPROC=y
 CONFIG_PRU_REMOTEPROC=m
 CONFIG_TI_K3_R5_REMOTEPROC=m
 CONFIG_TI_K3_DSP_REMOTEPROC=m
+CONFIG_TI_K3_M4_REMOTEPROC=m
 
 #
 # Rpmsg virtual device drivers
@@ -17,5 +18,6 @@ CONFIG_RPMSG_CHAR=m
 CONFIG_SAMPLES=y
 CONFIG_SAMPLE_RPMSG_CLIENT=m
 CONFIG_RPMSG_KDRV_DISPLAY=y
-CONFIG_RPMSG_PROTO=m
 CONFIG_SERIAL_8250_PRUSS=m
+CONFIG_RPMSG_CTRL=m
+CONFIG_RPMSG_PRU=m
diff --git a/bsp/ti-j7xxx/ti-j7xxx.cfg b/bsp/ti-j7xxx/ti-j7xxx.cfg
index 65729df3..17ec3c8b 100755
--- a/bsp/ti-j7xxx/ti-j7xxx.cfg
+++ b/bsp/ti-j7xxx/ti-j7xxx.cfg
@@ -85,6 +85,8 @@ CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
 CONFIG_CPU_FREQ_GOV_USERSPACE=y
 CONFIG_CPU_FREQ_GOV_ONDEMAND=y
 CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y
+CONFIG_CPU_FREQ_GOV_POWERSAVE=y
+CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
 
 #
 # CPU frequency scaling drivers
@@ -190,6 +192,7 @@ CONFIG_I2C_COMPAT=y
 CONFIG_I2C_CHARDEV=y
 CONFIG_I2C_MUX=y
 CONFIG_I2C_OMAP=y
+CONFIG_MFD_TPS6594_I2C=y
 
 #
 # SPI Master Controller Drivers
@@ -365,3 +368,9 @@ CONFIG_VIDEO_WAVE_VPU=m
 CONFIG_REGULATOR=y
 CONFIG_REGULATOR_FIXED_VOLTAGE=y
 CONFIG_REGULATOR_GPIO=y
+
+CONFIG_THERMAL=y
+CONFIG_K3_THERMAL=y
+CONFIG_TPS6594_ESM=y
+CONFIG_RTC_CLASS=y
+CONFIG_RTC_DRV_TPS6594=y
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13215): 
https://lists.yoctoproject.org/g/linux-yocto/message/13215
Mute This Topic: https://lists.yoctoproject.org/mt/102077304/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.1][PATCH 10/10] drivers: mmc: host: sdhci_am654: fix start loop index

2023-10-19 Thread Xulin Sun via lists.yoctoproject.org
From: Nitin Yadav 

commit 527095165281cbc60a1b42995c1e55e6756cbe93 from
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git

ti,otap-del-sel-legacy/ti,itap-del-sel-legacy passed
from DT are currently ignored for all SD/MMC and eMMC
modes.
Fix this by making start loop index to MMC_TIMING_LEGACY.

Fixes: 8ee5fc0e0b3be ("mmc: sdhci_am654: Update OTAPDLY writes")
Signed-off-by: Nitin Yadav 
Signed-off-by: Vignesh Raghavendra 
Signed-off-by: Xulin Sun 
---
 drivers/mmc/host/sdhci_am654.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mmc/host/sdhci_am654.c b/drivers/mmc/host/sdhci_am654.c
index b5bd34804d81..6d7681956b19 100644
--- a/drivers/mmc/host/sdhci_am654.c
+++ b/drivers/mmc/host/sdhci_am654.c
@@ -623,7 +623,7 @@ static int sdhci_am654_get_otap_delay(struct sdhci_host 
*host,
return 0;
}
 
-   for (i = MMC_TIMING_MMC_HS; i <= MMC_TIMING_MMC_HS400; i++) {
+   for (i = MMC_TIMING_LEGACY; i <= MMC_TIMING_MMC_HS400; i++) {
 
ret = device_property_read_u32(dev, td[i].otap_binding,
   &sdhci_am654->otap_del_sel[i]);
-- 
2.35.5


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13214): 
https://lists.yoctoproject.org/g/linux-yocto/message/13214
Mute This Topic: https://lists.yoctoproject.org/mt/102074939/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.1][PATCH 09/10] arm64: dts: ti: k3-j784s4-evm: Correct Pin mux offset for ADC

2023-10-19 Thread Xulin Sun via lists.yoctoproject.org
From: Udit Kumar 

commit fa3fc9dd2eae576a047cefa1bed9b8568143a0a8 from
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git

Commit 8be3ac2d8bd77bb9cb9ddbb7a545decf9f5e4181 Upstream.

After splitting wkup_pmx pin mux for J784S4 into four regions.
Pin mux offset for ADC nodes were not updated to align with new
regions, due to this while probing ADC driver out of range
error was seen.

Pin mux offsets for ADC nodes are corrected in this patch.

Fixes: 14462bd0b247 ("arm64: dts: ti: k3-j784s4: Fix wakeup pinmux range and 
pinctrl node offsets")
Signed-off-by: Udit Kumar 
Reviewed-by: Vaishnav Achath 
Link: https://lore.kernel.org/r/20230809050108.751164-1-u-kum...@ti.com
Signed-off-by: Nishanth Menon 
Reviewed-by: Bhavya Kapoor 
Signed-off-by: Vignesh Raghavendra 
Signed-off-by: Xulin Sun 
---
 arch/arm64/boot/dts/ti/k3-j784s4-evm.dts | 32 
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts 
b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts
index c029005f3ac6..b2970e9eb1ff 100644
--- a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts
+++ b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts
@@ -420,27 +420,27 @@ J784S4_WKUP_IOPAD(0x030, PIN_INPUT, 0) /* (B35) 
MCU_MDIO0_MDIO */
 
mcu_adc0_pins_default: mcu-adc0-pins-default {
pinctrl-single,pins = <
-   J784S4_WKUP_IOPAD(0x134, PIN_INPUT, 0) /* (P36) 
MCU_ADC0_AIN0 */
-   J784S4_WKUP_IOPAD(0x138, PIN_INPUT, 0) /* (V36) 
MCU_ADC0_AIN1 */
-   J784S4_WKUP_IOPAD(0x13c, PIN_INPUT, 0) /* (T34) 
MCU_ADC0_AIN2 */
-   J784S4_WKUP_IOPAD(0x140, PIN_INPUT, 0) /* (T36) 
MCU_ADC0_AIN3 */
-   J784S4_WKUP_IOPAD(0x144, PIN_INPUT, 0) /* (P34) 
MCU_ADC0_AIN4 */
-   J784S4_WKUP_IOPAD(0x148, PIN_INPUT, 0) /* (R37) 
MCU_ADC0_AIN5 */
-   J784S4_WKUP_IOPAD(0x14c, PIN_INPUT, 0) /* (R33) 
MCU_ADC0_AIN6 */
-   J784S4_WKUP_IOPAD(0x150, PIN_INPUT, 0) /* (V38) 
MCU_ADC0_AIN7 */
+   J784S4_WKUP_IOPAD(0x0cc, PIN_INPUT, 0) /* (P36) 
MCU_ADC0_AIN0 */
+   J784S4_WKUP_IOPAD(0x0d0, PIN_INPUT, 0) /* (V36) 
MCU_ADC0_AIN1 */
+   J784S4_WKUP_IOPAD(0x0d4, PIN_INPUT, 0) /* (T34) 
MCU_ADC0_AIN2 */
+   J784S4_WKUP_IOPAD(0x0d8, PIN_INPUT, 0) /* (T36) 
MCU_ADC0_AIN3 */
+   J784S4_WKUP_IOPAD(0x0dc, PIN_INPUT, 0) /* (P34) 
MCU_ADC0_AIN4 */
+   J784S4_WKUP_IOPAD(0x0e0, PIN_INPUT, 0) /* (R37) 
MCU_ADC0_AIN5 */
+   J784S4_WKUP_IOPAD(0x0e4, PIN_INPUT, 0) /* (R33) 
MCU_ADC0_AIN6 */
+   J784S4_WKUP_IOPAD(0x0e8, PIN_INPUT, 0) /* (V38) 
MCU_ADC0_AIN7 */
>;
};
 
mcu_adc1_pins_default: mcu-adc1-pins-default {
pinctrl-single,pins = <
-   J784S4_WKUP_IOPAD(0x154, PIN_INPUT, 0) /* (Y38) 
MCU_ADC1_AIN0 */
-   J784S4_WKUP_IOPAD(0x158, PIN_INPUT, 0) /* (Y34) 
MCU_ADC1_AIN1 */
-   J784S4_WKUP_IOPAD(0x15c, PIN_INPUT, 0) /* (V34) 
MCU_ADC1_AIN2 */
-   J784S4_WKUP_IOPAD(0x160, PIN_INPUT, 0) /* (W37) 
MCU_ADC1_AIN3 */
-   J784S4_WKUP_IOPAD(0x164, PIN_INPUT, 0) /* (AA37) 
MCU_ADC1_AIN4 */
-   J784S4_WKUP_IOPAD(0x168, PIN_INPUT, 0) /* (W33) 
MCU_ADC1_AIN5 */
-   J784S4_WKUP_IOPAD(0x16c, PIN_INPUT, 0) /* (U33) 
MCU_ADC1_AIN6 */
-   J784S4_WKUP_IOPAD(0x170, PIN_INPUT, 0) /* (Y36) 
MCU_ADC1_AIN7 */
+   J784S4_WKUP_IOPAD(0x0ec, PIN_INPUT, 0) /* (Y38) 
MCU_ADC1_AIN0 */
+   J784S4_WKUP_IOPAD(0x0f0, PIN_INPUT, 0) /* (Y34) 
MCU_ADC1_AIN1 */
+   J784S4_WKUP_IOPAD(0x0f4, PIN_INPUT, 0) /* (V34) 
MCU_ADC1_AIN2 */
+   J784S4_WKUP_IOPAD(0x0f8, PIN_INPUT, 0) /* (W37) 
MCU_ADC1_AIN3 */
+   J784S4_WKUP_IOPAD(0x0fc, PIN_INPUT, 0) /* (AA37) 
MCU_ADC1_AIN4 */
+   J784S4_WKUP_IOPAD(0x100, PIN_INPUT, 0) /* (W33) 
MCU_ADC1_AIN5 */
+   J784S4_WKUP_IOPAD(0x104, PIN_INPUT, 0) /* (U33) 
MCU_ADC1_AIN6 */
+   J784S4_WKUP_IOPAD(0x108, PIN_INPUT, 0) /* (Y36) 
MCU_ADC1_AIN7 */
>;
};
 
-- 
2.35.5


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13213): 
https://lists.yoctoproject.org/g/linux-yocto/message/13213
Mute This Topic: https://lists.yoctoproject.org/mt/102074937/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.1][PATCH 08/10] HACK: arm64: dts: ti: k3-j784s4-evm: Remove HS400 mode support for eMMC

2023-10-19 Thread Xulin Sun via lists.yoctoproject.org
From: Udit Kumar 

commit ca6a775097f0c879eaa7a2ddfe79c09fd08dffb6 from
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git

The eMMC fails to enumerate intermittently on HS400 mode. Also
observing multiple CQE recovery warnings.

Update the sdhci0 node to disable HS400.

Cc: Vignesh Raghavendra 
Cc: Bhavya Kapoor 
Cc: Siddharth Vadapalli 
Signed-off-by: Udit Kumar 
Signed-off-by: Vignesh Raghavendra 
Signed-off-by: Xulin Sun 
---
 arch/arm64/boot/dts/ti/k3-j784s4-evm.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts 
b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts
index 33285ab845f6..c029005f3ac6 100644
--- a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts
+++ b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts
@@ -871,6 +871,7 @@ &main_sdhci0 {
non-removable;
ti,driver-strength-ohm = <50>;
disable-wp;
+   no-mmc-hs400;
 };
 
 &main_sdhci1 {
-- 
2.35.5


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13212): 
https://lists.yoctoproject.org/g/linux-yocto/message/13212
Mute This Topic: https://lists.yoctoproject.org/mt/102074936/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.1][PATCH 06/10] arm64: dts: k3-j721s2: Fix pin mux for ospi i2c and pmic node

2023-10-19 Thread Xulin Sun via lists.yoctoproject.org
From: Udit Kumar 

commit 696d9e2d712fb42014a420942f9c787339f4a568 from
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git

After splitting the wkup_pmx into four region.
I2C and PMIC pin muxes was falling outside the assigned region.
Also removed unused pin from OSPI pin mux.

Fixes: c33b294d75dd ("arm64: dts: ti: k3-j721s2: Fix wkup pinmux range")

Cc: Esteban Blanc 
Cc: Vaishnav Achath 
Cc: Apurva Nandan 
Cc: Sinthu Raja 
Cc: Vignesh Raghavendra 
Signed-off-by: Udit Kumar 
Signed-off-by: Vignesh Raghavendra 
Signed-off-by: Xulin Sun 
---
 .../dts/ti/k3-j721s2-common-proc-board.dts|  1 -
 arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi  | 25 +--
 2 files changed, 12 insertions(+), 14 deletions(-)

diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts 
b/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts
index 9027bf34..74cae2ead63d 100644
--- a/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts
+++ b/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts
@@ -273,7 +273,6 @@ mcu_fss0_ospi1_pins_default: mcu-fss0-ospi1-pins-default {
pinctrl-single,pins = <
J721S2_WKUP_IOPAD(0x008, PIN_OUTPUT, 0) /* (A19) 
MCU_OSPI1_CLK */
J721S2_WKUP_IOPAD(0x024, PIN_OUTPUT, 0) /* (D20) 
MCU_OSPI1_CSn0 */
-   J721S2_WKUP_IOPAD(0x028, PIN_OUTPUT, 0) /* (C21) 
MCU_OSPI1_CSn1 */
J721S2_WKUP_IOPAD(0x014, PIN_INPUT, 0) /* (D21) 
MCU_OSPI1_D0 */
J721S2_WKUP_IOPAD(0x018, PIN_INPUT, 0) /* (G20) 
MCU_OSPI1_D1 */
J721S2_WKUP_IOPAD(0x01c, PIN_INPUT, 0) /* (C20) 
MCU_OSPI1_D2 */
diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi 
b/arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi
index d44605773dc0..0c7132206b3d 100644
--- a/arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi
@@ -190,9 +190,6 @@ mcu_fss0_ospi0_pins_default: mcu-fss0-ospi0-pins-default {
pinctrl-single,pins = <
J721S2_WKUP_IOPAD(0x000, PIN_OUTPUT, 0) /* (D19) 
MCU_OSPI0_CLK */
J721S2_WKUP_IOPAD(0x02c, PIN_OUTPUT, 0) /* (F15) 
MCU_OSPI0_CSn0 */
-   J721S2_WKUP_IOPAD(0x030, PIN_OUTPUT, 0) /* (G17) 
MCU_OSPI0_CSn1 */
-   J721S2_WKUP_IOPAD(0x038, PIN_OUTPUT, 0) /* (F14) 
MCU_OSPI0_CSn2 */
-   J721S2_WKUP_IOPAD(0x03c, PIN_OUTPUT, 0) /* (F17) 
MCU_OSPI0_CSn3 */
J721S2_WKUP_IOPAD(0x00c, PIN_INPUT, 0) /* (C19) 
MCU_OSPI0_D0 */
J721S2_WKUP_IOPAD(0x010, PIN_INPUT, 0) /* (F16) 
MCU_OSPI0_D1 */
J721S2_WKUP_IOPAD(0x014, PIN_INPUT, 0) /* (G15) 
MCU_OSPI0_D2 */
@@ -207,6 +204,15 @@ J721S2_WKUP_IOPAD(0x004, PIN_INPUT, 0) /* (E20) 
MCU_OSPI0_LBCLKO */
};
 };
 
+&wkup_pmx1 {
+   pmic_irq_pins_default: pmic-irq-pins-default {
+   pinctrl-single,pins = <
+   /* (C21) MCU_OSPI1_CSn1.WKUP_GPIO0_39 */
+   J721S2_WKUP_IOPAD(0x028, PIN_INPUT, 7)
+   >;
+   };
+};
+
 &main_pmx0 {
main_i2c0_pins_default: main-i2c0-pins-default {
pinctrl-single,pins = <
@@ -248,18 +254,11 @@ &main_mcan16 {
phys = <&transceiver0>;
 };
 
-&wkup_pmx0 {
-   pmic_irq_pins_default: pmic-irq-pins-default {
-   pinctrl-single,pins = <
-   /* (C21) MCU_OSPI1_CSn1.WKUP_GPIO0_39 */
-   J721S2_WKUP_IOPAD(0x060, PIN_INPUT, 7)
-   >;
-   };
-
+&wkup_pmx2 {
wkup_i2c0_pins_default: wkup_i2c0_pins_default {
pinctrl-single,pins = <
-   J721S2_WKUP_IOPAD(0x100, PIN_INPUT, 0) /* (H24) 
WKUP_I2C0_SCL */
-   J721S2_WKUP_IOPAD(0x104, PIN_INPUT, 0) /* (H27) 
WKUP_I2C0_SDA */
+   J721S2_WKUP_IOPAD(0x98, PIN_INPUT, 0) /* (H24) 
WKUP_I2C0_SCL */
+   J721S2_WKUP_IOPAD(0x9c, PIN_INPUT, 0) /* (H27) 
WKUP_I2C0_SDA */
>;
};
 };
-- 
2.35.5


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13210): 
https://lists.yoctoproject.org/g/linux-yocto/message/13210
Mute This Topic: https://lists.yoctoproject.org/mt/102074934/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.1][PATCH 07/10] arm64: dts: k3-am68-sk: Fix pin mux csi for OV5640 overlay

2023-10-19 Thread Xulin Sun via lists.yoctoproject.org
From: Udit Kumar 

commit 7e7d44cc4b3b9694558f7e81bb1fdebb63007090 from
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git

After splitting the wkup_pmx into four region.
CSI pin mux  was falling outside the assigned region.

Fixes: c33b294d75dd ("arm64: dts: ti: k3-j721s2: Fix wkup pinmux range")

Cc: Vaishnav Achath 
Cc: Sinthu Raja 
Cc: Vignesh Raghavendra 
Signed-off-by: Udit Kumar 
Signed-off-by: Vignesh Raghavendra 
Signed-off-by: Xulin Sun 
---
 arch/arm64/boot/dts/ti/k3-am68-sk-bb-csi2-ov5640.dtso | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/ti/k3-am68-sk-bb-csi2-ov5640.dtso 
b/arch/arm64/boot/dts/ti/k3-am68-sk-bb-csi2-ov5640.dtso
index 379ad095aa09..d77605ac48b8 100644
--- a/arch/arm64/boot/dts/ti/k3-am68-sk-bb-csi2-ov5640.dtso
+++ b/arch/arm64/boot/dts/ti/k3-am68-sk-bb-csi2-ov5640.dtso
@@ -11,10 +11,10 @@
 #include 
 #include "k3-pinctrl.h"
 
-&wkup_pmx0 {
+&wkup_pmx2 {
csi2_exp_refclk_pins_default: csi2-exp-refclk-pins-default {
pinctrl-single,pins = <
-   J721S2_IOPAD(0x0ec, PIN_OUTPUT, 6) /* (F25) 
WKUP_GPIO0_11.MCU_CLKOUT0 */
+   J721S2_IOPAD(0x084, PIN_OUTPUT, 6) /* (F25) 
WKUP_GPIO0_11.MCU_CLKOUT0 */
>;
};
 };
-- 
2.35.5


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13211): 
https://lists.yoctoproject.org/g/linux-yocto/message/13211
Mute This Topic: https://lists.yoctoproject.org/mt/102074935/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.1][PATCH 05/10] dt-bindings: thermal: k3-j72xx: conditionally require efuse reg range

2023-10-19 Thread Xulin Sun via lists.yoctoproject.org
From: Bryan Brattlof 

commit c3bb4011ec46d9ac09ad127c749df13d2e7fb806 from
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git

commit c4026d3e2578291016703cd75f3a6f786f60cd80 upstream

Only some of TI's J721E SoCs will need a eFuse register range mapped to
determine if they're affected by TI's i2128 erratum. All other SoC will
not need this eFuse range to function properly

Update the bindings for the k3_j72xx_bandgap thermal driver so other
devices will only need two register ranges

Signed-off-by: Bryan Brattlof 
Reviewed-by: Krzysztof Kozlowski 
Link: https://lore.kernel.org/r/20221031232702.10339-7...@ti.com
Signed-off-by: Daniel Lezcano 
Signed-off-by: Keerthy 
Signed-off-by: Vignesh Raghavendra 
Signed-off-by: Xulin Sun 
---
 .../bindings/thermal/ti,j72xx-thermal.yaml   | 16 
 1 file changed, 16 insertions(+)

diff --git a/Documentation/devicetree/bindings/thermal/ti,j72xx-thermal.yaml 
b/Documentation/devicetree/bindings/thermal/ti,j72xx-thermal.yaml
index 3bb870a26872..0509c9cec224 100644
--- a/Documentation/devicetree/bindings/thermal/ti,j72xx-thermal.yaml
+++ b/Documentation/devicetree/bindings/thermal/ti,j72xx-thermal.yaml
@@ -37,6 +37,7 @@ properties:
   devices to function properly. This eFuse region provides
   the information needed for these SoCs to report
   temperatures accurately.
+minItems: 2
 
   power-domains:
 maxItems: 1
@@ -44,6 +45,21 @@ properties:
   "#thermal-sensor-cells":
 const: 1
 
+allOf:
+  - if:
+  properties:
+compatible:
+  contains:
+const: ti,j721e-vtm
+then:
+  properties:
+reg:
+  minItems: 3
+else:
+  properties:
+reg:
+  maxItems: 2
+
 required:
   - compatible
   - reg
-- 
2.35.5


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13209): 
https://lists.yoctoproject.org/g/linux-yocto/message/13209
Mute This Topic: https://lists.yoctoproject.org/mt/102074933/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.1][PATCH 03/10] thermal/drivers/k3_j72xx_bandgap: Map fuse_base only for erratum workaround

2023-10-19 Thread Xulin Sun via lists.yoctoproject.org
From: Bryan Brattlof 

commit a7119d957b2a8a7df21dc4f5ca87759728531a53 from
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git

commit 366444ebe7e2e1c987c6a07551f06db4b5b7c0ad upstream

Some of TI's J721E SoCs require a software trimming procedure for the
temperature monitors to function properly. To determine if a particular
J721E is not affected by this erratum, both bits in the WKUP_SPARE_FUSE0
region must be set. Other SoCs, not affected by this erratum, will not
need this region.

Map the 'fuse_base' region only when the erratum fix is needed.

Signed-off-by: Bryan Brattlof 
Link: https://lore.kernel.org/r/20221031232702.10339-5...@ti.com
Signed-off-by: Daniel Lezcano 
Signed-off-by: Keerthy 
Signed-off-by: Vignesh Raghavendra 
Signed-off-by: Xulin Sun 
---
 drivers/thermal/k3_j72xx_bandgap.c | 34 +++---
 1 file changed, 22 insertions(+), 12 deletions(-)

diff --git a/drivers/thermal/k3_j72xx_bandgap.c 
b/drivers/thermal/k3_j72xx_bandgap.c
index ca2747c6c907..bdccf35deebc 100644
--- a/drivers/thermal/k3_j72xx_bandgap.c
+++ b/drivers/thermal/k3_j72xx_bandgap.c
@@ -497,15 +497,32 @@ static int k3_j72xx_bandgap_probe(struct platform_device 
*pdev)
if (IS_ERR(bgp->cfg2_base))
return PTR_ERR(bgp->cfg2_base);
 
-   res = platform_get_resource(pdev, IORESOURCE_MEM, 2);
-   fuse_base = devm_ioremap_resource(dev, res);
-   if (IS_ERR(fuse_base))
-   return PTR_ERR(fuse_base);
-
driver_data = of_device_get_match_data(dev);
if (driver_data)
workaround_needed = driver_data->has_errata_i2128;
 
+   /*
+* Some of TI's J721E SoCs require a software trimming procedure
+* for the temperature monitors to function properly. To determine
+* if this particular SoC is NOT affected, both bits in the
+* WKUP_SPARE_FUSE0[31:30] will be set (0xC000) indicating
+* when software trimming should NOT be applied.
+*
+* https://www.ti.com/lit/er/sprz455c/sprz455c.pdf
+*/
+   if (workaround_needed) {
+   res = platform_get_resource(pdev, IORESOURCE_MEM, 2);
+   fuse_base = devm_ioremap_resource(dev, res);
+   if (IS_ERR(fuse_base))
+   return PTR_ERR(fuse_base);
+
+   if ((readl(fuse_base) & 0xc000) == 0xc000)
+   workaround_needed = false;
+   }
+
+   dev_dbg(bgp->dev, "Work around %sneeded\n",
+   workaround_needed ? "" : "not ");
+
pm_runtime_enable(dev);
ret = pm_runtime_get_sync(dev);
if (ret < 0) {
@@ -538,13 +555,6 @@ static int k3_j72xx_bandgap_probe(struct platform_device 
*pdev)
goto err_free_ref_table;
}
 
-   /* Workaround not needed if bit30/bit31 is set even for J721e */
-   if (workaround_needed && (readl(fuse_base + 0x0) & 0xc000) == 
0xc000)
-   workaround_needed = false;
-
-   dev_dbg(bgp->dev, "Work around %sneeded\n",
-   workaround_needed ? "" : "not ");
-
if (!workaround_needed)
init_table(5, ref_table, golden_factors);
else
-- 
2.35.5


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13208): 
https://lists.yoctoproject.org/g/linux-yocto/message/13208
Mute This Topic: https://lists.yoctoproject.org/mt/102074932/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.1][PATCH 04/10] dt-bindings: thermal: k3-j72xx: elaborate on binding description

2023-10-19 Thread Xulin Sun via lists.yoctoproject.org
From: Bryan Brattlof 

commit 0d9ecfae1ec9e1556b8a943dbd9deea94e8d4870 from
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git

commit effe8db0a421480fc4dad0c7bf380b8e245cbb8c upstream

Elaborate on the function of this device node as well as some of the
properties this node uses.

Signed-off-by: Bryan Brattlof 
Acked-by: Krzysztof Kozlowski 
Link: https://lore.kernel.org/r/20221031232702.10339-6...@ti.com
Signed-off-by: Daniel Lezcano 
Signed-off-by: Keerthy 
Signed-off-by: Vignesh Raghavendra 
Signed-off-by: Xulin Sun 
---
 .../bindings/thermal/ti,j72xx-thermal.yaml| 19 ++-
 1 file changed, 18 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/thermal/ti,j72xx-thermal.yaml 
b/Documentation/devicetree/bindings/thermal/ti,j72xx-thermal.yaml
index c74f124ebfc0..3bb870a26872 100644
--- a/Documentation/devicetree/bindings/thermal/ti,j72xx-thermal.yaml
+++ b/Documentation/devicetree/bindings/thermal/ti,j72xx-thermal.yaml
@@ -9,6 +9,19 @@ title: Texas Instruments J72XX VTM (DTS) binding
 maintainers:
   - Keerthy 
 
+description: |
+  The TI K3 family of SoCs typically have a Voltage & Thermal
+  Management (VTM) device to control up to 8 temperature diode
+  sensors to measure silicon junction temperatures from different
+  hotspots of the chip as well as provide temperature, interrupt
+  and alerting information.
+
+  The following polynomial equation can then be used to convert
+  value returned by this device into a temperature in Celsius
+
+  Temp(C) = (-9.2627e-12) * x^4 + (6.0373e-08) * x^3 + \
+(-1.7058e-04) * x^2 + (3.2512e-01) * x   + (-4.9003e+01)
+
 properties:
   compatible:
 enum:
@@ -19,7 +32,11 @@ properties:
 items:
   - description: VTM cfg1 register space
   - description: VTM cfg2 register space
-  - description: VTM efuse register space
+  - description: |
+  A software trimming method must be applied to some Jacinto
+  devices to function properly. This eFuse region provides
+  the information needed for these SoCs to report
+  temperatures accurately.
 
   power-domains:
 maxItems: 1
-- 
2.35.5


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13207): 
https://lists.yoctoproject.org/g/linux-yocto/message/13207
Mute This Topic: https://lists.yoctoproject.org/mt/102074931/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.1][PATCH 02/10] thermal/drivers/k3_j72xx_bandgap: Remove fuse_base from structure

2023-10-19 Thread Xulin Sun via lists.yoctoproject.org
From: Bryan Brattlof 

commit d1bd8644407db9b730391bd39315ad9fb0916faf from
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git

commit 156f0e2fda420c4a4a7b244a909df04086039bd6 upstream

'fuse_base' is only needed during the initial probe function to provide
data for a software trimming method for some of TI's devices affected by
the i2128 erratum. The devices not affected will not use this region

Remove fuse_base from the main k3_j72xx_bandgap structure

Signed-off-by: Bryan Brattlof 
Link: https://lore.kernel.org/r/20221031232702.10339-4...@ti.com
Signed-off-by: Daniel Lezcano 
Signed-off-by: Keerthy 
Signed-off-by: Vignesh Raghavendra 
Signed-off-by: Xulin Sun 
---
 drivers/thermal/k3_j72xx_bandgap.c | 24 
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/drivers/thermal/k3_j72xx_bandgap.c 
b/drivers/thermal/k3_j72xx_bandgap.c
index 851bb8fc69ad..ca2747c6c907 100644
--- a/drivers/thermal/k3_j72xx_bandgap.c
+++ b/drivers/thermal/k3_j72xx_bandgap.c
@@ -180,7 +180,6 @@ struct k3_j72xx_bandgap {
struct device *dev;
void __iomem *base;
void __iomem *cfg2_base;
-   void __iomem *fuse_base;
struct k3_thermal_data *ts_data[K3_VTM_MAX_NUM_TS];
 };
 
@@ -330,7 +329,7 @@ static int k3_j72xx_bandgap_temp_to_adc_code(int temp)
 }
 
 static void get_efuse_values(int id, struct k3_thermal_data *data, int *err,
-struct k3_j72xx_bandgap *bgp)
+void __iomem *fuse_base)
 {
int i, tmp, pow;
int ct_offsets[5][K3_VTM_CORRECTION_TEMP_CNT] = {
@@ -352,16 +351,16 @@ static void get_efuse_values(int id, struct 
k3_thermal_data *data, int *err,
/* Extract the offset value using bit-mask */
if (ct_offsets[id][i] == -1 && i == 1) {
/* 25C offset Case of Sensor 2 split between 2 regs */
-   tmp = (readl(bgp->fuse_base + 0x8) & 0xE000) >> 
(29);
-   tmp |= ((readl(bgp->fuse_base + 0xC) & 0x1F) << 3);
+   tmp = (readl(fuse_base + 0x8) & 0xE000) >> (29);
+   tmp |= ((readl(fuse_base + 0xC) & 0x1F) << 3);
pow = tmp & 0x80;
} else if (ct_offsets[id][i] == -1 && i == 2) {
/* 125C Case of Sensor 3 split between 2 regs */
-   tmp = (readl(bgp->fuse_base + 0x4) & 0xF800) >> 
(27);
-   tmp |= ((readl(bgp->fuse_base + 0x8) & 0xF) << 5);
+   tmp = (readl(fuse_base + 0x4) & 0xF800) >> (27);
+   tmp |= ((readl(fuse_base + 0x8) & 0xF) << 5);
pow = tmp & 0x100;
} else {
-   tmp = readl(bgp->fuse_base + ct_offsets[id][i]);
+   tmp = readl(fuse_base + ct_offsets[id][i]);
tmp &= ct_bm[id][i];
tmp = tmp >> __ffs(ct_bm[id][i]);
 
@@ -467,6 +466,7 @@ static int k3_j72xx_bandgap_probe(struct platform_device 
*pdev)
struct thermal_zone_device *ti_thermal;
int *ref_table;
struct err_values err_vals;
+   void __iomem *fuse_base;
 
const s64 golden_factors[] = {
-4900199936,
@@ -498,9 +498,9 @@ static int k3_j72xx_bandgap_probe(struct platform_device 
*pdev)
return PTR_ERR(bgp->cfg2_base);
 
res = platform_get_resource(pdev, IORESOURCE_MEM, 2);
-   bgp->fuse_base = devm_ioremap_resource(dev, res);
-   if (IS_ERR(bgp->fuse_base))
-   return PTR_ERR(bgp->fuse_base);
+   fuse_base = devm_ioremap_resource(dev, res);
+   if (IS_ERR(fuse_base))
+   return PTR_ERR(fuse_base);
 
driver_data = of_device_get_match_data(dev);
if (driver_data)
@@ -539,7 +539,7 @@ static int k3_j72xx_bandgap_probe(struct platform_device 
*pdev)
}
 
/* Workaround not needed if bit30/bit31 is set even for J721e */
-   if (workaround_needed && (readl(bgp->fuse_base + 0x0) & 0xc000) == 
0xc000)
+   if (workaround_needed && (readl(fuse_base + 0x0) & 0xc000) == 
0xc000)
workaround_needed = false;
 
dev_dbg(bgp->dev, "Work around %sneeded\n",
@@ -564,7 +564,7 @@ static int k3_j72xx_bandgap_probe(struct platform_device 
*pdev)
err_vals.refs[1] = PLUS30CREF;
err_vals.refs[2] = PLUS125CREF;
err_vals.refs[3] = PLUS150CREF;
-   get_efuse_values(id, &data[id], err_vals.errs, bgp);
+   get_efuse_values(id, &data[id], err_vals.errs, 
fuse_base);
}
 
if (id == 0 && workar

[linux-yocto][linux-yocto v6.1][PATCH 0/10]:Pick several patches from the TI SDK 9.0.1.2 to make the Thermal feature work

2023-10-19 Thread Xulin Sun via lists.yoctoproject.org
Hi Bruce,
 
This patch series is to pick several patches from the TI SDK 9.0.1.2 to make 
the Thermal feature work.
Please help me merge these into the following two branches:
  v6.1/standard/ti-sdk-6.1/ti-j7xxx
  v6.1/standard/preempt-rt/ti-sdk-6.1/ti-j7xxx
  
 Documentation/devicetree/bindings/thermal/ti,j72xx-thermal.yaml | 35 
++-
 arch/arm64/boot/dts/ti/k3-am68-sk-bb-csi2-ov5640.dtso   |  4 ++--
 arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts  |  1 -
 arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi| 25 
-
 arch/arm64/boot/dts/ti/k3-j784s4-evm.dts| 33 
+
 drivers/mmc/host/sdhci_am654.c  |  2 +-
 drivers/thermal/k3_j72xx_bandgap.c  | 58 
++
 7 files changed, 100 insertions(+), 58 deletions(-)



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13204): 
https://lists.yoctoproject.org/g/linux-yocto/message/13204
Mute This Topic: https://lists.yoctoproject.org/mt/102074928/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.1][PATCH 01/10] thermal/drivers/k3_j72xx_bandgap: Use bool for i2128 erratum flag

2023-10-19 Thread Xulin Sun via lists.yoctoproject.org
From: Bryan Brattlof 

commit 83b6b872cda56104a2050124b95b91500810d782 from
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git

commit 311f328ffc7572219bee65db77645e5fedd4e8e6 upstream

Some of TI's J721E SoCs require a software trimming method to report
temperatures accurately. Currently we are using a few different data
types to indicate when we should apply the erratum.

Change the 'workaround_needed' variable's data type to a bool to align
with how we are using this variable currently.

Signed-off-by: Bryan Brattlof 
Link: https://lore.kernel.org/r/20221031232702.10339-3...@ti.com
Signed-off-by: Daniel Lezcano 
Signed-off-by: Keerthy 
Signed-off-by: Vignesh Raghavendra 
Signed-off-by: Xulin Sun 
---
 drivers/thermal/k3_j72xx_bandgap.c | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/thermal/k3_j72xx_bandgap.c 
b/drivers/thermal/k3_j72xx_bandgap.c
index f5bd3484cabf..851bb8fc69ad 100644
--- a/drivers/thermal/k3_j72xx_bandgap.c
+++ b/drivers/thermal/k3_j72xx_bandgap.c
@@ -394,7 +394,7 @@ static void print_look_up_table(struct device *dev, int 
*ref_table)
 }
 
 struct k3_j72xx_bandgap_data {
-   unsigned int has_errata_i2128;
+   const bool has_errata_i2128;
 };
 
 int k3_thermal_register_cpu_cooling(struct k3_j72xx_bandgap *bgp, int id)
@@ -462,7 +462,7 @@ static int k3_j72xx_bandgap_probe(struct platform_device 
*pdev)
struct device *dev = &pdev->dev;
struct k3_j72xx_bandgap *bgp;
struct k3_thermal_data *data;
-   int workaround_needed = 0;
+   bool workaround_needed = false;
const struct k3_j72xx_bandgap_data *driver_data;
struct thermal_zone_device *ti_thermal;
int *ref_table;
@@ -640,11 +640,11 @@ static int k3_j72xx_bandgap_remove(struct platform_device 
*pdev)
 }
 
 static const struct k3_j72xx_bandgap_data k3_j72xx_bandgap_j721e_data = {
-   .has_errata_i2128 = 1,
+   .has_errata_i2128 = true,
 };
 
 static const struct k3_j72xx_bandgap_data k3_j72xx_bandgap_j7200_data = {
-   .has_errata_i2128 = 0,
+   .has_errata_i2128 = false,
 };
 
 static const struct of_device_id of_k3_j72xx_bandgap_match[] = {
-- 
2.35.5


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13205): 
https://lists.yoctoproject.org/g/linux-yocto/message/13205
Mute This Topic: https://lists.yoctoproject.org/mt/102074929/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.1/standard/preempt-rt/ti-sdk-6.1/ti-j7xxx] ti-j7xxx adds preempt-rt kernel patches to upgrade TI SDK 09_00_01_02

2023-09-27 Thread Xulin Sun via lists.yoctoproject.org

Hi Bruce,

Could you please help to merge below patches to the preempt-rt kernel 
branch "v6.1/standard/preempt-rt/ti-sdk-6.1/ti-j7xxx"?
This is preempt-rt kernel to upgrade BSP to TI SDK 
ti-processor-sdk-linux-adas-j784s4-evm-09_00_01_02.




The following changes since commit fef33486015f69a75b8bc5ab9e5efb57352ebef1:

  Merge branch 'v6.1/standard/preempt-rt/base' into 
v6.1/standard/preempt-rt/ti-sdk-6.1/ti-j7xxx (2023-09-25 23:31:41 -0400)


are available in the Git repository at:

  https://github.com/xulinsun/ti-j72x 
v6.1/standard/preempt-rt/ti-sdk-6.1/ti-j7xxx


for you to fetch changes up to cfd58dd795907fbd22465bd93960c2f3fe356462:

  arm64: dts: ti: k3-j784s4: Add overlay for edge ai (2023-09-27 
21:41:28 +0800)



Achal Verma (5):
  PCI: j721e: Add support to build pci-j721e as a kernel module
  PCI: j721e: Fix missing prototypes warning
  dt-bindings: PCI: ti,j721e-pci-*: Add "ti,syscon-pcie-refclk-out" 
property

  pci: j721e: Enable reference clock output from serdes
  arm64: dts: ti: k3-j784s4-main: Enable refclock output from serdes.

Alexander Stein (1):
  drm/bridge: ti-sn65dsi86: Allow GPIO operations to sleep

Anand Gadiyar (1):
  arm64: dts: ti: k3-am62x-lp-sk: Disable PRU

Andrew Davis (8):
  dt-bindings: clock: ehrpwm: Remove unneeded syscon compatible
  clk: keystone: syscon-clk: Allow the clock node to not be of type 
syscon

  arm64: dts: ti: k3-j721e-beagleboneai64: Fix mailbox node status
  arm64: dts: ti: k3-j721e: Remove PCIe endpoint nodes
  arm64: dts: ti: k3-j721e: Enable PCIe nodes at the board level
  arm64: dts: ti: k3-j721e: Enable MDIO nodes at the board level
  misc: dma-buf-phys: Add dependency on DMA-BUF
  dma-buf: heaps: Add dependency on OF_RESERVED_MEM on carveout heap

Apurva Nandan (4):
  arm64: dts: ti: k3-j784s4-main: Switch MAIN R5F clusters to 
Split-mode
  arm64: dts: ti: k3-am62x-lp-sk: Update SPI NAND flash 
partitioning scheme

  arm64: dts: k3-j721s2: Add node for OSPI NAND Flash
  arm64: dts: ti: k3-am62a7-sk: Enable OSPI NAND

Aradhya Bhatia (4):
  drm/bridge: sii902x: Add device_link dependency with drm device
  drm/bridge: sii902x: Add Power Management hooks
  HACK: drm/bridge: ite-it66121: Add drm_connector support
  drm/tidss: Set OLDI clock to bypass-25MHz during probe

Arnd Bergmann (1):
  samples: pfsm: add CC_CAN_LINK dependency

Aswath Govindraju (1):
  mmc: sdhci_am654: Disable data error interrupts while tuning

Benjamin Bara (1):
  i2c: core: run atomic i2c xfer when !preemptible

Bhavya Kapoor (8):
  arm64: dts: ti: k3-j784s4-mcu-wakeup: Add support for ADC nodes
  arm64: dts: ti: k3-j784s4-evm: Add pinmux information for ADC
  arm64: dts: ti: k3-j784s4-main: Enable support for high speed modes
  arm64: dts: ti: k3-j721s2-common-proc-board: Add pinmux 
information for mcu uart and wkup uart
  arm64: dts: ti: k3-j784s4-evm: Add pinmux information for mcu 
uart and wkup uart
  arm64: dts: ti: k3-j721e-common-proc-board: Add pinmux 
information for mcu uart and wkup uart
  arm64: dts: ti: k3-j7200-common-proc-board: Add pinmux 
information for mcu uart and wkup uart

  arm64: dts: ti: k3-j784s4-evm: Add support for MCAN interfaces

Bin Liu (4):
  dt-bindings: serial: add binding documentation for TI PRUSS UART
  serial: 8250: add pruss uart driver
  arm: dts: am335x: add pruss uart controller node
  arm: dts: am335x-evmsk: use pruss uart on the Zigbee header

Brandon Brnich (5):
  media: chips-media: wave5: Update firmware location
  arm64: dts: ti: k3-j721s2-main: Add sram-size for wave5
  arm64: dts: ti: k3-j784s4-main: Add sram-size for wave5
  dt-bindings: media: Update DT bindings for wave5
  TEMP: media: img: vxe-vxd: decoder: Disable CMA for capture buffers

Bryan Brattlof (7):
  arm64: dts: ti: k3-am64-main: add VTM node
  arm64: dts: ti: k3-am62-wakeup: add VTM node
  arm64: dts: ti: k3-am62a-wakeup: add VTM node
  thermal/drivers/k3_j72xx_bandgap: Simplify k3_thermal_get_temp() 
function

  dt-bindings: arm: ti: Add bindings for AM62P5 SoCs
  arm64: dts: ti: Introduce AM62P5 family of SoCs
  arm64: dts: ti: Add support for the AM62P5 Starter Kit

Dan Carpenter (2):
  mfd: tps6594: Fix an error code in probe()
  net: ethernet: ti: am65-cpsw: Call of_node_put() on error path

Darren Etheridge (5):
  media: img: vxe-vxd: enable GStreamer 1.20.5
  media: platform: img: add missing mutex around function
  media: platform: img: vxd: fix the error handling
  media: platform: img: vxd add a sequencing mutex
  media: platform: img: vxe: finish adding profile/level and tool 
selection


Dasnavis Sabiya (24):
  arm64: dts: ti: k3-am69-sk: Add eMMC mmc0 support
  arm64: dts: ti: k3-am69-sk: Enable mcu network port
  arm64: dts: ti: k3-am69-s

[linux-yocto][linux-yocto v6.1/standard/ti-sdk-6.1/ti-j7xxx] ti-j7xxx kernel part to upgrade to TI SDK ti-processor-sdk-linux-adas-j784s4-evm-09_00_01_02

2023-09-27 Thread Xulin Sun via lists.yoctoproject.org

Hi Bruce,

Could you please help to merge below patches to kernel branch 
"v6.1/standard/ti-sdk-6.1/ti-j7xxx"?
This is to upgrade BSP to TI SDK 
ti-processor-sdk-linux-adas-j784s4-evm-09_00_01_02.



The following changes since commit 122d72613aea7d4f4673c70020eb9a0fc41c9e51:

  Merge branch 'v6.1/standard/base' into 
v6.1/standard/ti-sdk-6.1/ti-j7xxx (2023-09-25 23:35:42 -0400)


are available in the Git repository at:

  https://github.com/xulinsun/ti-j72x v6.1/standard/ti-sdk-6.1/ti-j7xxx

for you to fetch changes up to 9b435c21f564a42242874de2c11a065a6b3843f2:

  arm64: dts: ti: k3-j784s4: Add overlay for edge ai (2023-09-27 
21:43:43 +0800)



Achal Verma (5):
  PCI: j721e: Add support to build pci-j721e as a kernel module
  PCI: j721e: Fix missing prototypes warning
  dt-bindings: PCI: ti,j721e-pci-*: Add "ti,syscon-pcie-refclk-out" 
property

  pci: j721e: Enable reference clock output from serdes
  arm64: dts: ti: k3-j784s4-main: Enable refclock output from serdes.

Alexander Stein (1):
  drm/bridge: ti-sn65dsi86: Allow GPIO operations to sleep

Anand Gadiyar (1):
  arm64: dts: ti: k3-am62x-lp-sk: Disable PRU

Andrew Davis (8):
  dt-bindings: clock: ehrpwm: Remove unneeded syscon compatible
  clk: keystone: syscon-clk: Allow the clock node to not be of type 
syscon

  arm64: dts: ti: k3-j721e-beagleboneai64: Fix mailbox node status
  arm64: dts: ti: k3-j721e: Remove PCIe endpoint nodes
  arm64: dts: ti: k3-j721e: Enable PCIe nodes at the board level
  arm64: dts: ti: k3-j721e: Enable MDIO nodes at the board level
  misc: dma-buf-phys: Add dependency on DMA-BUF
  dma-buf: heaps: Add dependency on OF_RESERVED_MEM on carveout heap

Apurva Nandan (4):
  arm64: dts: ti: k3-j784s4-main: Switch MAIN R5F clusters to 
Split-mode
  arm64: dts: ti: k3-am62x-lp-sk: Update SPI NAND flash 
partitioning scheme

  arm64: dts: k3-j721s2: Add node for OSPI NAND Flash
  arm64: dts: ti: k3-am62a7-sk: Enable OSPI NAND

Aradhya Bhatia (4):
  drm/bridge: sii902x: Add device_link dependency with drm device
  drm/bridge: sii902x: Add Power Management hooks
  HACK: drm/bridge: ite-it66121: Add drm_connector support
  drm/tidss: Set OLDI clock to bypass-25MHz during probe

Arnd Bergmann (1):
  samples: pfsm: add CC_CAN_LINK dependency

Aswath Govindraju (1):
  mmc: sdhci_am654: Disable data error interrupts while tuning

Benjamin Bara (1):
  i2c: core: run atomic i2c xfer when !preemptible

Bhavya Kapoor (8):
  arm64: dts: ti: k3-j784s4-mcu-wakeup: Add support for ADC nodes
  arm64: dts: ti: k3-j784s4-evm: Add pinmux information for ADC
  arm64: dts: ti: k3-j784s4-main: Enable support for high speed modes
  arm64: dts: ti: k3-j721s2-common-proc-board: Add pinmux 
information for mcu uart and wkup uart
  arm64: dts: ti: k3-j784s4-evm: Add pinmux information for mcu 
uart and wkup uart
  arm64: dts: ti: k3-j721e-common-proc-board: Add pinmux 
information for mcu uart and wkup uart
  arm64: dts: ti: k3-j7200-common-proc-board: Add pinmux 
information for mcu uart and wkup uart

  arm64: dts: ti: k3-j784s4-evm: Add support for MCAN interfaces

Bin Liu (4):
  dt-bindings: serial: add binding documentation for TI PRUSS UART
  serial: 8250: add pruss uart driver
  arm: dts: am335x: add pruss uart controller node
  arm: dts: am335x-evmsk: use pruss uart on the Zigbee header

Brandon Brnich (5):
  media: chips-media: wave5: Update firmware location
  arm64: dts: ti: k3-j721s2-main: Add sram-size for wave5
  arm64: dts: ti: k3-j784s4-main: Add sram-size for wave5
  dt-bindings: media: Update DT bindings for wave5
  TEMP: media: img: vxe-vxd: decoder: Disable CMA for capture buffers

Bryan Brattlof (7):
  arm64: dts: ti: k3-am64-main: add VTM node
  arm64: dts: ti: k3-am62-wakeup: add VTM node
  arm64: dts: ti: k3-am62a-wakeup: add VTM node
  thermal/drivers/k3_j72xx_bandgap: Simplify k3_thermal_get_temp() 
function

  dt-bindings: arm: ti: Add bindings for AM62P5 SoCs
  arm64: dts: ti: Introduce AM62P5 family of SoCs
  arm64: dts: ti: Add support for the AM62P5 Starter Kit

Dan Carpenter (2):
  mfd: tps6594: Fix an error code in probe()
  net: ethernet: ti: am65-cpsw: Call of_node_put() on error path

Darren Etheridge (5):
  media: img: vxe-vxd: enable GStreamer 1.20.5
  media: platform: img: add missing mutex around function
  media: platform: img: vxd: fix the error handling
  media: platform: img: vxd add a sequencing mutex
  media: platform: img: vxe: finish adding profile/level and tool 
selection


Dasnavis Sabiya (24):
  arm64: dts: ti: k3-am69-sk: Add eMMC mmc0 support
  arm64: dts: ti: k3-am69-sk: Enable mcu network port
  arm64: dts: ti: k3-am69-sk: Add Display and HDMI support
  arm64: dts: ti: k3-am69-sk: Add support fo

[linux-yocto][yocto-kernel-cache][yocto-6.1][PATCH] nxp-lx2xxx: drop unused config CONFIG_INPHI_PHY

2023-09-26 Thread Xulin Sun via lists.yoctoproject.org
kernel has removed config INPHI_PHY, and replaced with
PHY_INPHI_IN112525_RETIMER, dropped from here to fix warning:

[INFO]: the following symbols were not found in the active configuration:
 - CONFIG_INPHI_PHY

Signed-off-by: Xulin Sun 
---
 bsp/nxp-lx2xxx/nxp-lx2xxx.cfg | 1 -
 1 file changed, 1 deletion(-)

diff --git a/bsp/nxp-lx2xxx/nxp-lx2xxx.cfg b/bsp/nxp-lx2xxx/nxp-lx2xxx.cfg
index 1b55967f..f8008cb7 100644
--- a/bsp/nxp-lx2xxx/nxp-lx2xxx.cfg
+++ b/bsp/nxp-lx2xxx/nxp-lx2xxx.cfg
@@ -122,7 +122,6 @@ CONFIG_MDIO_BITBANG=y
 CONFIG_PHYLIB=y
 CONFIG_AQUANTIA_PHY=y
 CONFIG_CORTINA_PHY=y
-CONFIG_INPHI_PHY=y
 CONFIG_REGULATOR=y
 CONFIG_AT803X_PHY=y
 CONFIG_PHY_INPHI_IN112525_RETIMER=y
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13116): 
https://lists.yoctoproject.org/g/linux-yocto/message/13116
Mute This Topic: https://lists.yoctoproject.org/mt/101591870/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.1/standard/ti-sdk-6.1/ti-j7xxx & v6.1/standard/preempt-rt/ti-sdk-6.1/ti-j7xxx][PATCH] drivers: media: vxe-vxd: Initialize the variable __value

2023-09-18 Thread Xulin Sun via lists.yoctoproject.org
To avoid below building issue:
drivers/media/platform/img/vxe-vxd/decoder/reg_io2.h:42:22: error: '__value' is 
used uninitialized [-Werror=uninitialized]
|42 | type __value = value; \
|   |  ^~~
drivers/media/platform/img/vxe-vxd/decoder/reg_io2.h:42:22: note: '__value' was 
declared here
|42 | type __value = value; \
|   |  ^~~~~~~

Signed-off-by: Xulin Sun 
---
 drivers/media/platform/img/vxe-vxd/decoder/reg_io2.h | 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/media/platform/img/vxe-vxd/decoder/reg_io2.h 
b/drivers/media/platform/img/vxe-vxd/decoder/reg_io2.h
index a18ffda4efcb..b73cab6748b0 100644
--- a/drivers/media/platform/img/vxe-vxd/decoder/reg_io2.h
+++ b/drivers/media/platform/img/vxe-vxd/decoder/reg_io2.h
@@ -39,8 +39,10 @@
  */
 #define REGIO_CHECK_VALUE_FITS_WITHIN_FIELD(group, reg, field, value, type) \
{ \
-   type __value = value; \
-   unsigned int temp = (unsigned int)(__value); \
+   type __value = 0; \
+   unsigned int temp = 0; \
+   __value = value; \
+   temp = (unsigned int)(__value); \
if (temp > group ## _ ## reg ## _ ## field ## _LSBMASK) { \
IMG_ASSERTunsigned int)__value) & \
(unsigned int)~(group ## _ ## reg ## _ ## field ## 
_LSBMASK)) == \
-- 
2.35.5


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13078): 
https://lists.yoctoproject.org/g/linux-yocto/message/13078
Mute This Topic: https://lists.yoctoproject.org/mt/101448350/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][yocto-kernel-cache][yocto-6.1][PATCH] nxp-lx2xxx: add Inphi IN112525 Retimer and Lynx 28G PHYs support

2023-08-23 Thread Xulin Sun via lists.yoctoproject.org
Enable these two configs to add support for Inphi IN112525 S03 Retimer PHY
and the Lynx SerDes 28G PHY as found on NXP's Layerscape platforms such as
LX2160A.

Signed-off-by: Xulin Sun 
---
 bsp/nxp-lx2xxx/nxp-lx2xxx.cfg | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bsp/nxp-lx2xxx/nxp-lx2xxx.cfg b/bsp/nxp-lx2xxx/nxp-lx2xxx.cfg
index 85e6871d..1b55967f 100644
--- a/bsp/nxp-lx2xxx/nxp-lx2xxx.cfg
+++ b/bsp/nxp-lx2xxx/nxp-lx2xxx.cfg
@@ -125,6 +125,8 @@ CONFIG_CORTINA_PHY=y
 CONFIG_INPHI_PHY=y
 CONFIG_REGULATOR=y
 CONFIG_AT803X_PHY=y
+CONFIG_PHY_INPHI_IN112525_RETIMER=y
+CONFIG_PHY_FSL_LYNX_28G=y
 
 #
 # I2C support
-- 
2.35.5


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13010): 
https://lists.yoctoproject.org/g/linux-yocto/message/13010
Mute This Topic: https://lists.yoctoproject.org/mt/100910596/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][yocto-kernel-cache][yocto-6.1][PATCH] nxp-lx2xxx: add scc and cfg files for nxp-lx2xxx platform

2023-07-26 Thread Xulin Sun via lists.yoctoproject.org
Signed-off-by: Xulin Sun 
---
 bsp/nxp-lx2xxx/nxp-lx2xxx-preempt-rt.scc |   8 +
 bsp/nxp-lx2xxx/nxp-lx2xxx-standard.scc   |   8 +
 bsp/nxp-lx2xxx/nxp-lx2xxx.cfg| 185 +++
 bsp/nxp-lx2xxx/nxp-lx2xxx.scc|   8 +
 4 files changed, 209 insertions(+)
 create mode 100644 bsp/nxp-lx2xxx/nxp-lx2xxx-preempt-rt.scc
 create mode 100644 bsp/nxp-lx2xxx/nxp-lx2xxx-standard.scc
 create mode 100644 bsp/nxp-lx2xxx/nxp-lx2xxx.cfg
 create mode 100644 bsp/nxp-lx2xxx/nxp-lx2xxx.scc

diff --git a/bsp/nxp-lx2xxx/nxp-lx2xxx-preempt-rt.scc 
b/bsp/nxp-lx2xxx/nxp-lx2xxx-preempt-rt.scc
new file mode 100644
index ..aa6f4b8e
--- /dev/null
+++ b/bsp/nxp-lx2xxx/nxp-lx2xxx-preempt-rt.scc
@@ -0,0 +1,8 @@
+define KMACHINE nxp-lx2xxx
+define KTYPE preempt-rt
+define KARCH arm64
+
+include ktypes/preempt-rt
+branch nxp-lx2xxx
+
+include nxp-lx2xxx.scc
diff --git a/bsp/nxp-lx2xxx/nxp-lx2xxx-standard.scc 
b/bsp/nxp-lx2xxx/nxp-lx2xxx-standard.scc
new file mode 100644
index ..6f4fd14c
--- /dev/null
+++ b/bsp/nxp-lx2xxx/nxp-lx2xxx-standard.scc
@@ -0,0 +1,8 @@
+define KMACHINE nxp-lx2xxx
+define KTYPE standard
+define KARCH arm64
+
+include ktypes/standard
+branch nxp-lx2xxx
+
+include nxp-lx2xxx.scc
diff --git a/bsp/nxp-lx2xxx/nxp-lx2xxx.cfg b/bsp/nxp-lx2xxx/nxp-lx2xxx.cfg
new file mode 100644
index ..85e6871d
--- /dev/null
+++ b/bsp/nxp-lx2xxx/nxp-lx2xxx.cfg
@@ -0,0 +1,185 @@
+..
+.WARNING
+.
+. This file is a kernel configuration fragment, and not a full kernel
+. configuration file.  The final kernel configuration is made up of
+. an assembly of processed fragments, each of which is designed to
+. capture a specific part of the final configuration (e.g. platform
+. configuration, feature configuration, and board specific hardware
+. configuration).  For more information on kernel configuration, please
+. consult the product documentation.
+.
+..
+
+CONFIG_ARM64=y
+CONFIG_ARM64_VA_BITS_48=y
+CONFIG_ARCH_LAYERSCAPE=y
+CONFIG_SCHED_MC=y
+CONFIG_ARM_SMMU=y
+CONFIG_ARM_SMMU_V3=y
+CONFIG_ARCH_NXP=y
+# CONFIG_ARM_SMMU_DISABLE_BYPASS_BY_DEFAULT is not set
+
+CONFIG_PCI=y
+CONFIG_PCI_LAYERSCAPE=y
+CONFIG_PCI_HOST_GENERIC=y
+CONFIG_PCI_XGENE=y
+CONFIG_PCI_MSI=y
+CONFIG_PCIE_MOBIVEIL_HOST=y
+CONFIG_PCIE_MOBIVEIL=y
+CONFIG_PCIE_LAYERSCAPE_GEN4=y
+
+CONFIG_CPU_IDLE=y
+CONFIG_ARM_PSCI_CPUIDLE=y
+CONFIG_CPU_FREQ=y
+CONFIG_CPU_FREQ_STAT=y
+CONFIG_CPU_FREQ_GOV_POWERSAVE=y
+CONFIG_CPU_FREQ_GOV_USERSPACE=y
+CONFIG_CPU_FREQ_GOV_ONDEMAND=y
+CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
+CONFIG_CPUFREQ_DT=y
+CONFIG_QORIQ_CPUFREQ=y
+CONFIG_THERMAL=y
+CONFIG_CPU_THERMAL=y
+CONFIG_DEVICE_THERMAL=y
+CONFIG_QORIQ_THERMAL=y
+
+CONFIG_MTD=y
+CONFIG_MTD_CMDLINE_PARTS=y
+CONFIG_MTD_BLOCK=y
+CONFIG_MTD_CFI=y
+CONFIG_MTD_CFI_ADV_OPTIONS=y
+CONFIG_MTD_CFI_INTELEXT=y
+CONFIG_MTD_CFI_AMDSTD=y
+CONFIG_MTD_CFI_STAA=y
+CONFIG_MTD_PHYSMAP=y
+CONFIG_MTD_PHYSMAP_OF=y
+CONFIG_MTD_DATAFLASH=y
+CONFIG_MTD_SST25L=y
+CONFIG_MTD_RAW_NAND=y
+CONFIG_MTD_NAND_DENALI_DT=y
+CONFIG_MTD_NAND_FSL_IFC=y
+CONFIG_MTD_SPI_NOR=y
+CONFIG_SPI_FSL_QUADSPI=y
+CONFIG_ATA=y
+CONFIG_SATA_AHCI=y
+CONFIG_SATA_AHCI_PLATFORM=y
+CONFIG_AHCI_CEVA=y
+CONFIG_AHCI_XGENE=y
+CONFIG_AHCI_QORIQ=y
+CONFIG_SATA_SIL24=y
+
+CONFIG_FSL_XGMAC_MDIO=y
+
+CONFIG_SERIAL_8250=y
+CONFIG_SERIAL_8250_CONSOLE=y
+CONFIG_SERIAL_8250_DW=y
+CONFIG_SERIAL_OF_PLATFORM=y
+CONFIG_SERIAL_FSL_LPUART=y
+CONFIG_SERIAL_FSL_LPUART_CONSOLE=y
+CONFIG_SERIAL_AMBA_PL011=y
+CONFIG_SERIAL_AMBA_PL011_CONSOLE=y
+
+CONFIG_SPI=y
+CONFIG_SPI_FSL_DSPI=y
+CONFIG_SPI_PL022=y
+CONFIG_SPI_NXP_FLEXSPI=y
+
+CONFIG_POWER_RESET_XGENE=y
+CONFIG_POWER_RESET_SYSCON=y
+
+CONFIG_WATCHDOG=y
+CONFIG_ARM_SP805_WATCHDOG=y
+
+CONFIG_USB=y
+CONFIG_USB_OTG=y
+CONFIG_USB_XHCI_HCD=y
+CONFIG_USB_STORAGE=y
+CONFIG_USB_DWC3=y
+CONFIG_USB_DWC2=y
+CONFIG_USB_GADGET=y
+CONFIG_USB_DWC3_DUAL_ROLE=y
+CONFIG_EXTCON=y
+
+CONFIG_MMC=y
+CONFIG_MMC_ARMMMCI=y
+CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_PLTFM=y
+CONFIG_MMC_SDHCI_OF_ARASAN=y
+CONFIG_MMC_SDHCI_OF_ESDHC=y
+CONFIG_MMC_SDHCI_CADENCE=y
+CONFIG_MMC_SPI=y
+CONFIG_MMC_DW=y
+
+CONFIG_GPIOLIB=y
+CONFIG_OF_GPIO=y
+CONFIG_GPIO_MPC8XXX=y
+
+CONFIG_MDIO_DEVICE=y
+CONFIG_MDIO_BUS_MUX_MMIOREG=y
+CONFIG_MDIO_BUS_MUX_MULTIPLEXER=y
+CONFIG_MDIO_BITBANG=y
+CONFIG_PHYLIB=y
+CONFIG_AQUANTIA_PHY=y
+CONFIG_CORTINA_PHY=y
+CONFIG_INPHI_PHY=y
+CONFIG_REGULATOR=y
+CONFIG_AT803X_PHY=y
+
+#
+# I2C support
+#
+CONFIG_I2C=y
+CONFIG_I2C_MUX=y
+CONFIG_I2C_IMX=y
+CONFIG_I2C_MUX_PCA954x=y
+
+CONFIG_RTC_CLASS=y
+CONFIG_RTC_DRV_PCF2127=y
+CONFIG_RTC_DRV_FSL_FTM_ALARM=y
+
+CONFIG_DMADEVICES=y
+CONFIG_FSL_EDMA=y
+CONFIG_CMA=y
+CONFIG_DMA_CMA=y
+
+CONFIG_VFIO=y
+CONFIG_VFIO_PCI=y
+CONFIG_VFIO_FSL_MC=y
+
+CONFIG_STAGING=y
+CONFIG_FSL_MC_BUS=y
+CONFIG_FSL_MC_DPIO=y
+CONFIG_FSL_MC_UAPI_SUPPORT=y
+
+CONFIG_CLK_QORIQ=y
+
+CONFIG_PHY_XGENE=y

[linux-yocto][linux-yocto v6.1/standard/ti-sdk-6.1/ti-j7xxx & v6.1/standard/preempt-rt/ti-sdk-6.1/ti-j7xxx][PATCH 2/2] mtd: spi-nor: core: avoid odd length/address writes in 8D-8D-8D mode

2023-06-13 Thread Xulin Sun via lists.yoctoproject.org
From: Pratyush Yadav 

commit a9f1c2f3eaa70c64348a3ac5ec9892bcdbaa5ae4 from
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git

On Octal DTR capable flashes like Micron Xcella the writes cannot start
or end at an odd address in Octal DTR mode. Extra 0xff bytes need to be
appended or prepended to make sure the start address and end address are
even. 0xff is used because on NOR flashes a program operation can only
flip bits from 1 to 0, not the other way round. 0 to 1 flip needs to
happen via erases.

Signed-off-by: Pratyush Yadav 
Signed-off-by: Apurva Nandan 
Signed-off-by: Vignesh Raghavendra 
Signed-off-by: Xulin Sun 
---
 drivers/mtd/spi-nor/core.c | 72 +-
 1 file changed, 71 insertions(+), 1 deletion(-)

diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c
index ad068610ae80..15b0f6df6083 100644
--- a/drivers/mtd/spi-nor/core.c
+++ b/drivers/mtd/spi-nor/core.c
@@ -1814,6 +1814,71 @@ static int spi_nor_read(struct mtd_info *mtd, loff_t 
from, size_t len,
return ret;
 }
 
+/*
+ * On Octal DTR capable flashes like Micron Xcella the writes cannot start or
+ * end at an odd address in Octal DTR mode. Extra 0xff bytes need to be 
appended
+ * or prepended to make sure the start address and end address are even. 0xff 
is
+ * used because on NOR flashes a program operation can only flip bits from 1 to
+ * 0, not the other way round. 0 to 1 flip needs to happen via erases.
+ */
+static int spi_nor_octal_dtr_write(struct spi_nor *nor, loff_t to, size_t len,
+  const u8 *buf)
+{
+   u8 *tmp_buf;
+   size_t bytes_written;
+   loff_t start, end;
+   int ret;
+
+   if (IS_ALIGNED(to, 2) && IS_ALIGNED(len, 2))
+   return spi_nor_write_data(nor, to, len, buf);
+
+   tmp_buf = kmalloc(nor->params->page_size, GFP_KERNEL);
+   if (!tmp_buf)
+   return -ENOMEM;
+
+   memset(tmp_buf, 0xff, nor->params->page_size);
+
+   start = round_down(to, 2);
+   end = round_up(to + len, 2);
+
+   memcpy(tmp_buf + (to - start), buf, len);
+
+   ret = spi_nor_write_data(nor, start, end - start, tmp_buf);
+   if (ret == 0) {
+   ret = -EIO;
+   goto out;
+   }
+   if (ret < 0)
+   goto out;
+
+   /*
+* More bytes are written than actually requested, but that number can't
+* be reported to the calling function or it will confuse its
+* calculations. Calculate how many of the _requested_ bytes were
+* written.
+*/
+   bytes_written = ret;
+
+   if (to != start)
+   ret -= to - start;
+
+   /*
+* Only account for extra bytes at the end if they were actually
+* written. For example, if for some reason the controller could only
+* complete a partial write then the adjustment for the extra bytes at
+* the end is not needed.
+*/
+   if (start + bytes_written == end)
+   ret -= end - (to + len);
+
+   if (ret < 0)
+   ret = -EIO;
+
+out:
+   kfree(tmp_buf);
+   return ret;
+}
+
 /*
  * Write an address range to the nor chip.  Data must be written in
  * FLASH_PAGESIZE chunks.  The address range may be any size provided
@@ -1858,7 +1923,12 @@ static int spi_nor_write(struct mtd_info *mtd, loff_t 
to, size_t len,
if (ret)
goto write_err;
 
-   ret = spi_nor_write_data(nor, addr, page_remain, buf + i);
+   if (nor->write_proto == SNOR_PROTO_8_8_8_DTR)
+   ret = spi_nor_octal_dtr_write(nor, addr, page_remain,
+ buf + i);
+   else
+   ret = spi_nor_write_data(nor, addr, page_remain,
+buf + i);
if (ret < 0)
goto write_err;
written = ret;
-- 
2.35.5


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#12746): 
https://lists.yoctoproject.org/g/linux-yocto/message/12746
Mute This Topic: https://lists.yoctoproject.org/mt/99500991/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.1/standard/ti-sdk-6.1/ti-j7xxx & v6.1/standard/preempt-rt/ti-sdk-6.1/ti-j7xxx][PATCH 1/2] mtd: spi-nor: core: avoid odd length/address reads on 8D-8D-8D mode

2023-06-13 Thread Xulin Sun via lists.yoctoproject.org
From: Pratyush Yadav 

commit c515105b5c117888b6859534a7c694489f6bcf6d from
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git

On Octal DTR capable flashes like Micron Xcella reads cannot start or
end at an odd address in Octal DTR mode. Extra bytes need to be read at
the start or end to make sure both the start address and length remain
even.

To avoid allocating too much extra memory, thereby putting unnecessary
memory pressure on the system, the temporary buffer containing the extra
padding bytes is capped at PAGE_SIZE bytes. The rest of the 2-byte
aligned part should be read directly in the main buffer.

Signed-off-by: Pratyush Yadav 
Signed-off-by: Apurva Nandan 
Signed-off-by: Vignesh Raghavendra 
Signed-off-by: Xulin Sun 
---
 drivers/mtd/spi-nor/core.c | 81 +-
 1 file changed, 80 insertions(+), 1 deletion(-)

diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c
index 99194aa07196..ad068610ae80 100644
--- a/drivers/mtd/spi-nor/core.c
+++ b/drivers/mtd/spi-nor/core.c
@@ -1696,6 +1696,82 @@ static const struct flash_info *spi_nor_detect(struct 
spi_nor *nor)
return info;
 }
 
+/*
+ * On Octal DTR capable flashes like Micron Xcella reads cannot start or
+ * end at an odd address in Octal DTR mode. Extra bytes need to be read
+ * at the start or end to make sure both the start address and length
+ * remain even.
+ */
+static int spi_nor_octal_dtr_read(struct spi_nor *nor, loff_t from, size_t len,
+ u_char *buf)
+{
+   u_char *tmp_buf;
+   size_t tmp_len;
+   loff_t start, end;
+   int ret, bytes_read;
+
+   if (IS_ALIGNED(from, 2) && IS_ALIGNED(len, 2))
+   return spi_nor_read_data(nor, from, len, buf);
+   else if (IS_ALIGNED(from, 2) && len > PAGE_SIZE)
+   return spi_nor_read_data(nor, from, round_down(len, PAGE_SIZE),
+buf);
+
+   tmp_buf = kmalloc(PAGE_SIZE, GFP_KERNEL);
+   if (!tmp_buf)
+   return -ENOMEM;
+
+   start = round_down(from, 2);
+   end = round_up(from + len, 2);
+
+   /*
+* Avoid allocating too much memory. The requested read length might be
+* quite large. Allocating a buffer just as large (slightly bigger, in
+* fact) would put unnecessary memory pressure on the system.
+*
+* For example if the read is from 3 to 1M, then this will read from 2
+* to 4098. The reads from 4098 to 1M will then not need a temporary
+* buffer so they can proceed as normal.
+*/
+   tmp_len = min_t(size_t, end - start, PAGE_SIZE);
+
+   ret = spi_nor_read_data(nor, start, tmp_len, tmp_buf);
+   if (ret == 0) {
+   ret = -EIO;
+   goto out;
+   }
+   if (ret < 0)
+   goto out;
+
+   /*
+* More bytes are read than actually requested, but that number can't be
+* reported to the calling function or it will confuse its calculations.
+* Calculate how many of the _requested_ bytes were read.
+*/
+   bytes_read = ret;
+
+   if (from != start)
+   ret -= from - start;
+
+   /*
+* Only account for extra bytes at the end if they were actually read.
+* For example, if the total length was truncated because of temporary
+* buffer size limit then the adjustment for the extra bytes at the end
+* is not needed.
+*/
+   if (start + bytes_read == end)
+   ret -= end - (from + len);
+
+   if (ret < 0) {
+   ret = -EIO;
+   goto out;
+   }
+
+   memcpy(buf, tmp_buf + (from - start), ret);
+out:
+   kfree(tmp_buf);
+   return ret;
+}
+
 static int spi_nor_read(struct mtd_info *mtd, loff_t from, size_t len,
size_t *retlen, u_char *buf)
 {
@@ -1713,7 +1789,10 @@ static int spi_nor_read(struct mtd_info *mtd, loff_t 
from, size_t len,
 
addr = spi_nor_convert_addr(nor, addr);
 
-   ret = spi_nor_read_data(nor, addr, len, buf);
+   if (nor->read_proto == SNOR_PROTO_8_8_8_DTR)
+   ret = spi_nor_octal_dtr_read(nor, addr, len, buf);
+   else
+   ret = spi_nor_read_data(nor, addr, len, buf);
if (ret == 0) {
/* We shouldn't see 0-length reads */
ret = -EIO;
-- 
2.35.5


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#12745): 
https://lists.yoctoproject.org/g/linux-yocto/message/12745
Mute This Topic: https://lists.yoctoproject.org/mt/99500990/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v6.1/standard/preempt-rt/ti-sdk-6.1/ti-j7xxx] ti-j7xxx adds preempt-rt kernel patches to align TI SDK v6.1 kernel

2023-05-31 Thread Xulin Sun via lists.yoctoproject.org
artition 
info

  arm64: dts: ti: k3-am642-sk/evm: Describe OSPI flash partition info
  arm64: dts: ti: k3-j721s2: Describe OSPI flash partition info
  dmaengine: ti: k3-udma: Add support for J721S2 CSI BCDMA instance
  HACK: spi: spi-cadence-quadspi: Ignore DMA channel request failure
  arm64: dts: ti: k3-j721s2-main: Enable BCDMA instance for CSI2RX
  arm64: dts: ti: k3-j784s4-main: Enable BCDMA instance for CSI2RX
  arm64: dts: ti: k3-j721s2-main: Add nodes to enable CSI2 and DPHY
  arm64: dts: ti: k3-j784s4-main: Add nodes to enable CSI2 and DPHY
  arm64: dts: ti: k3-j721s2-common-proc-board: Enable main_i2c5 and 
disable csi ports
  arm64: dts: ti: k3-j784s4-common-proc-board: Enable main_i2c5 and 
disable csi ports

  arm64: dts: ti: Add J721S2 and J784S4 CPB OV5640 overlay
  arm64: dts: ti: k3-j721e/j721s2: Add overlay for fusion board
  arm64: dts: ti: Add overlays for FPDLink-III IMX390 RCM

Vibhore Vardhan (1):
  arm64: dts: ti: k3-am625-sk: Add 1.4GHz OPP

Vignesh Raghavendra (17):
  soc: ti: k3-socinfo: Add AM62Ax JTAG ID
  dmaengine: ti: k3-udma: Fix BCDMA for case w/o BCHAN
  dmaengine: ti: k3-udma: Add support for DMAs on AM62A SoC
  dmaengine: ti: k3-udma: Add support for BCDMA CSI RX
  arm64: dts: ti: k3-am62a-mcu: Add MCU domain peripherals
  arm64: dts: ti: k3-am62a-main: Add more peripheral nodes
  arm64: dts: ti: k3-am62a7-sk: Enable ethernet port
  arm64: dts: ti: k3-am62a7-sk: Enable USB1 node
  arm64: dts: ti: Makefile: Rearrange entries alphabetically
  dt-bindings: arm: ti: k3: Add compatible for AM62x LP SK
  dmaengine: ti: k3-udma: Add system suspend/resume support
  dmaengine: ti: k3-udma: Workaround errata i2234
  dmaengine: ti: k3-udma: Prioritize CSI RX traffic as RT
  net: ethernet: ti: icssg_prueth: Add helper functions to 
configure FDB
  net: ethernet: ti: icssg_switch: Add switchdev based driver for 
ethernet switch support
  net: ethernet: ti: icssg_prueth: Export prueth_iep_gettime() to 
be used for TAPRIO support

  HACK: arm64: dts: ti: k3-am62-mcu: Disable MCU M4

Xulin Sun (1):
  PCI: j721e: disable retrain Link for Gen2 training

 .clang-format | 1 +
 .gitignore | 1 +
 Documentation/devicetree/bindings/arm/keystone/ti,sci.yaml |    21 +-
 Documentation/devicetree/bindings/arm/ti/k3.yaml |    10 +
 Documentation/devicetree/bindings/cnm,wave5.yml |    72 +
 Documentation/devicetree/bindings/display/bridge/cdns,mhdp8546.yaml 
| 6 +
 Documentation/devicetree/bindings/display/panel/panel-simple.yaml 
| 4 +

 Documentation/devicetree/bindings/display/ti/ti,am65x-dss.yaml |    43 +-
 Documentation/devicetree/bindings/gpu/img,sgx530.yaml |    53 +
 Documentation/devicetree/bindings/gpu/img,sgx540.yaml |    51 +
 Documentation/devicetree/bindings/gpu/img,sgx544.yaml |    74 +
 Documentation/devicetree/bindings/gpu/ti,rogue.yaml |   130 +
 Documentation/devicetree/bindings/i2c/i2c-atr.yaml |    34 +
 Documentation/devicetree/bindings/media/cdns,csi2rx.txt |   100 -
 Documentation/devicetree/bindings/media/cdns,csi2rx.yaml |   176 +
 Documentation/devicetree/bindings/media/i2c/sony,imx390.yaml |    78 +
 Documentation/devicetree/bindings/media/i2c/ti,ds90ub913.yaml |   133 +
 Documentation/devicetree/bindings/media/i2c/ti,ds90ub953.yaml |   134 +
 Documentation/devicetree/bindings/media/i2c/ti,ds90ub960.yaml |   427 +
 Documentation/devicetree/bindings/media/img,d5500-vxd.yaml |    52 +
 Documentation/devicetree/bindings/media/img,vxe384.yaml |    48 +
 Documentation/devicetree/bindings/media/ti,j721e-csi2rx.yaml |   100 +
 Documentation/devicetree/bindings/media/video-interfaces.yaml | 1 +
 Documentation/devicetree/bindings/mfd/ti,tps6594.yaml |   193 +
 Documentation/devicetree/bindings/misc/ti,dma-buf-phys.yaml |    39 +
 Documentation/devicetree/bindings/net/ti,cpsw-virt-mac.yaml |   104 +
 Documentation/devicetree/bindings/net/ti,icss-iep.yaml |    37 +
 Documentation/devicetree/bindings/net/ti,icssg-prueth.yaml |   191 +
 Documentation/devicetree/bindings/net/ti,k3-am654-cpsw-nuss.yaml |    
54 +-

 Documentation/devicetree/bindings/net/ti,k3-am654-cpts.yaml | 8 +
 Documentation/devicetree/bindings/pci/ti,j721e-pci-ep.yaml |    46 +-
 Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml |    61 +-
 Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml | 1 +
 Documentation/devicetree/bindings/phy/ti,phy-gmii-sel.yaml |    52 +-
 Documentation/devicetree/bindings/phy/ti,phy-j721e-wiz.yaml | 2 +
 Documentation/devicetree/bindings/remoteproc/ti,k3-dsp-rproc.yaml 
| 3 +
 Documentation/devicetree/bindings/remoteproc/ti,k3-m4f-rproc.yaml |   
158 +
 Documentation/devicetree/bindings/remoteproc/ti,k3-r5f-rproc.yaml |    
76 +-
 Documentation/devicetree/bindings/remoteproc/ti,pru-consumer.yaml |    
60 +

 Documentation/devicetree/bindings/usb/ti,tps6598x.yaml | 5 +-
 Documentation/devicetree/bind

[linux-yocto][linux-yocto v6.1/standard/ti-sdk-6.1/ti-j7xxx] ti-j7xxx kernel part to align TI SDK v6.1 kernel tag 09.00.00.001

2023-05-31 Thread Xulin Sun via lists.yoctoproject.org
sh partition info
  arm64: dts: ti: k3-j721s2: Describe OSPI flash partition info
  dmaengine: ti: k3-udma: Add support for J721S2 CSI BCDMA instance
  HACK: spi: spi-cadence-quadspi: Ignore DMA channel request failure
  arm64: dts: ti: k3-j721s2-main: Enable BCDMA instance for CSI2RX
  arm64: dts: ti: k3-j784s4-main: Enable BCDMA instance for CSI2RX
  arm64: dts: ti: k3-j721s2-main: Add nodes to enable CSI2 and DPHY
  arm64: dts: ti: k3-j784s4-main: Add nodes to enable CSI2 and DPHY
  arm64: dts: ti: k3-j721s2-common-proc-board: Enable main_i2c5 and 
disable csi ports
  arm64: dts: ti: k3-j784s4-common-proc-board: Enable main_i2c5 and 
disable csi ports

  arm64: dts: ti: Add J721S2 and J784S4 CPB OV5640 overlay
  arm64: dts: ti: k3-j721e/j721s2: Add overlay for fusion board
  arm64: dts: ti: Add overlays for FPDLink-III IMX390 RCM

Vibhore Vardhan (1):
  arm64: dts: ti: k3-am625-sk: Add 1.4GHz OPP

Vignesh Raghavendra (17):
  soc: ti: k3-socinfo: Add AM62Ax JTAG ID
  dmaengine: ti: k3-udma: Fix BCDMA for case w/o BCHAN
  dmaengine: ti: k3-udma: Add support for DMAs on AM62A SoC
  dmaengine: ti: k3-udma: Add support for BCDMA CSI RX
  arm64: dts: ti: k3-am62a-mcu: Add MCU domain peripherals
  arm64: dts: ti: k3-am62a-main: Add more peripheral nodes
  arm64: dts: ti: k3-am62a7-sk: Enable ethernet port
  arm64: dts: ti: k3-am62a7-sk: Enable USB1 node
  arm64: dts: ti: Makefile: Rearrange entries alphabetically
  dt-bindings: arm: ti: k3: Add compatible for AM62x LP SK
  dmaengine: ti: k3-udma: Add system suspend/resume support
  dmaengine: ti: k3-udma: Workaround errata i2234
  dmaengine: ti: k3-udma: Prioritize CSI RX traffic as RT
  net: ethernet: ti: icssg_prueth: Add helper functions to 
configure FDB
  net: ethernet: ti: icssg_switch: Add switchdev based driver for 
ethernet switch support
  net: ethernet: ti: icssg_prueth: Export prueth_iep_gettime() to 
be used for TAPRIO support

  HACK: arm64: dts: ti: k3-am62-mcu: Disable MCU M4

Xulin Sun (1):
  PCI: j721e: disable retrain Link for Gen2 training

 .clang-format | 1 +
 .gitignore | 1 +
 Documentation/devicetree/bindings/arm/keystone/ti,sci.yaml |    21 +-
 Documentation/devicetree/bindings/arm/ti/k3.yaml |    10 +
 Documentation/devicetree/bindings/cnm,wave5.yml |    72 +
 Documentation/devicetree/bindings/display/bridge/cdns,mhdp8546.yaml 
| 6 +
 Documentation/devicetree/bindings/display/panel/panel-simple.yaml 
| 4 +

 Documentation/devicetree/bindings/display/ti/ti,am65x-dss.yaml |    43 +-
 Documentation/devicetree/bindings/gpu/img,sgx530.yaml |    53 +
 Documentation/devicetree/bindings/gpu/img,sgx540.yaml |    51 +
 Documentation/devicetree/bindings/gpu/img,sgx544.yaml |    74 +
 Documentation/devicetree/bindings/gpu/ti,rogue.yaml |   130 +
 Documentation/devicetree/bindings/i2c/i2c-atr.yaml |    34 +
 Documentation/devicetree/bindings/media/cdns,csi2rx.txt |   100 -
 Documentation/devicetree/bindings/media/cdns,csi2rx.yaml |   176 +
 Documentation/devicetree/bindings/media/i2c/sony,imx390.yaml |    78 +
 Documentation/devicetree/bindings/media/i2c/ti,ds90ub913.yaml |   133 +
 Documentation/devicetree/bindings/media/i2c/ti,ds90ub953.yaml |   134 +
 Documentation/devicetree/bindings/media/i2c/ti,ds90ub960.yaml |   427 +
 Documentation/devicetree/bindings/media/img,d5500-vxd.yaml |    52 +
 Documentation/devicetree/bindings/media/img,vxe384.yaml |    48 +
 Documentation/devicetree/bindings/media/ti,j721e-csi2rx.yaml |   100 +
 Documentation/devicetree/bindings/media/video-interfaces.yaml | 1 +
 Documentation/devicetree/bindings/mfd/ti,tps6594.yaml |   193 +
 Documentation/devicetree/bindings/misc/ti,dma-buf-phys.yaml |    39 +
 Documentation/devicetree/bindings/net/ti,cpsw-virt-mac.yaml |   104 +
 Documentation/devicetree/bindings/net/ti,icss-iep.yaml |    37 +
 Documentation/devicetree/bindings/net/ti,icssg-prueth.yaml |   191 +
 Documentation/devicetree/bindings/net/ti,k3-am654-cpsw-nuss.yaml |    
54 +-

 Documentation/devicetree/bindings/net/ti,k3-am654-cpts.yaml | 8 +
 Documentation/devicetree/bindings/pci/ti,j721e-pci-ep.yaml |    46 +-
 Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml |    61 +-
 Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml | 1 +
 Documentation/devicetree/bindings/phy/ti,phy-gmii-sel.yaml |    52 +-
 Documentation/devicetree/bindings/phy/ti,phy-j721e-wiz.yaml | 2 +
 Documentation/devicetree/bindings/remoteproc/ti,k3-dsp-rproc.yaml 
| 3 +
 Documentation/devicetree/bindings/remoteproc/ti,k3-m4f-rproc.yaml |   
158 +
 Documentation/devicetree/bindings/remoteproc/ti,k3-r5f-rproc.yaml |    
76 +-
 Documentation/devicetree/bindings/remoteproc/ti,pru-consumer.yaml |    
60 +

 Documentation/devicetree/bindings/usb/ti,tps6598x.yaml | 5 +-
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 4 +
 Documentation/driver-api/m

[linux-yocto][linux-yocto v6.1/standard/ti-sdk-5.10/ti-j7xxx & v6.1/standard/preempt-rt/ti-sdk-5.10/ti-j7xxx][PATCH] net: ethernet: ti: am65-cpsw: drop unused variable 'dev'

2023-05-29 Thread Xulin Sun via lists.yoctoproject.org
Drop unused variable 'dev', to fix below warning:
drivers/net/ethernet/ti/am65-cpsw-nuss.c:1767:24: warning: unused variable 
'dev' [-Wunused-variable]
1767 | struct device *dev = common->dev;

Signed-off-by: Xulin Sun 
---
 drivers/net/ethernet/ti/am65-cpsw-nuss.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/ethernet/ti/am65-cpsw-nuss.c 
b/drivers/net/ethernet/ti/am65-cpsw-nuss.c
index cc4470514d79..2abc4a84964e 100644
--- a/drivers/net/ethernet/ti/am65-cpsw-nuss.c
+++ b/drivers/net/ethernet/ti/am65-cpsw-nuss.c
@@ -1764,7 +1764,6 @@ static void am65_cpsw_nuss_slave_disable_unused(struct 
am65_cpsw_port *port)
 
 static void am65_cpsw_nuss_free_tx_chns(struct am65_cpsw_common *common)
 {
-   struct device *dev = common->dev;
int i;
 
for (i = 0; i < common->tx_ch_num; i++) {
-- 
2.40.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#12659): 
https://lists.yoctoproject.org/g/linux-yocto/message/12659
Mute This Topic: https://lists.yoctoproject.org/mt/99215052/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [linux-yocto][linux-yocto v6.1/standard/ti-sdk-5.10/ti-j7xxx] ti-j7xxx kernel part for upgrading BSP to kernel v6.1

2023-05-16 Thread Xulin Sun via lists.yoctoproject.org

On 2023/5/17 12:28, Kevin Hao via lists.yoctoproject.org wrote:

On Wed, May 17, 2023 at 08:55:19AM +0800, Xulin Sun via lists.yoctoproject.org 
wrote:

Xulin Sun (11):
   media: platform: vxe-vxd: align with ti-linux-5.10.y branch

Aren't all the patches based on the ti-linux-5.10.y now?


Yes, all the patches are based on the ti-linux-5.10.y since TI's v6.1 
kernel version is not released yet.





   Revert "net: ethernet: ti: am65-cpsw-switchdev: adjust to 5.10"
   net: update the AF_MAX value to the latest

We should fold this fix into the SDK patch which introduce this issue.


Ok, I will do this.




   PCI: j721e: disable retrain Link for Gen2 training
   net: ethernet: ti: j721e-cpsw-virt-mac: add the check whether it's own
device
   Revert "media: ti-vpe: cal: add multiplexed streams support"
   Revert "v4l: subdev: add routing & stream config to v4l2_subdev_state"
   Revert "v4l: subdev: Add [GS]_ROUTING subdev ioctls and operations"
   i2c: core: correct the wrong exit path in function
'i2c_new_client_device'
   arm64: dts: ti: k3-j784s4-evm: enable RNG feature
   drm/bridge: ti-sn65dsi86: correct wrong macro and undeclared variable

We should fold this fix into the SDK patch which introduce this issue.

Ok, I will do this.


For the revert patches, could we just delete them directly?


I will drop the "v4l: subdev: add routing & stream config to 
v4l2_subdev_state".  Left others two revert commits to avoid


subsequent series of patches will also have to be modified accordingly.




  net/Kconfig | 1 +
  net/Makefile | 1 +
  net/core/dev_ioctl.c | 7 +
  net/core/skbuff.c | 8 +
  net/core/sock.c |    16 +-
  net/ethtool/common.c | 1 +
  net/ethtool/ioctl.c | 3 +-

The changes for these net core files seem suspicious, some of the patches are 
even
marked as HACK. Do we really need them?
TI adds new rpmsg sockets and protocol family - remote-processor 
messaging sockets. This rpmsg protocol driver


provides the necessary support to expose a rpmsg communication channel 
through the socket API to userspace under


the AF_RPMSG address family.




  net/hsr/Makefile | 1 +
  net/hsr/hsr_debugfs.c |   107 +-
  net/hsr/hsr_device.c |   459 +-
  net/hsr/hsr_device.h | 5 +-
  net/hsr/hsr_forward.c |   331 +-
  net/hsr/hsr_framereg.h | 4 +
  net/hsr/hsr_main.h |   100 +-
  net/hsr/hsr_netlink.c |    39 +-
  net/hsr/hsr_proc.c |   673 ++
  net/hsr/hsr_slave.c |    23 +-

Which component will depend on these changes?

The component is "CONFIG_PROC_FS" for snmp agent interface.



  net/rpmsg/Kconfig |    19 +
  net/rpmsg/Makefile | 2 +
  net/rpmsg/rpmsg_proto.c |   745 ++
  net/socket.c |    28 +

Are there userspace applications to use this new protocol?
TI adds RPMSG_PROTO (RPMsg Sockets over virtio-rpmsg transport) to 
design to work


with the TI IPC stack on various available TI SoCs, currently the kernel 
option is enabled on the BSP for the demo "Vision Apps" to use.


Thanks

Xulin



Thanks,
Kevin




-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#12618): 
https://lists.yoctoproject.org/g/linux-yocto/message/12618
Mute This Topic: https://lists.yoctoproject.org/mt/98939750/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][yocto-kernel-cache][yocto-6.1][PATCH] ti-j7xxx: add kernel-cache configuration files for v6.1 kernel

2023-05-16 Thread Xulin Sun via lists.yoctoproject.org
This adds the cfg & scc files to support TI J784S4 & TI J721E soc.

Signed-off-by: Xulin Sun 
---
 bsp/ti-j7xxx/ti-j72xx-preempt-rt.scc |  10 +
 bsp/ti-j7xxx/ti-j72xx-standard.scc   |   8 +
 bsp/ti-j7xxx/ti-j78xx-preempt-rt.scc |  10 +
 bsp/ti-j7xxx/ti-j78xx-standard.scc   |   8 +
 bsp/ti-j7xxx/ti-j7xxx-preempt-rt.cfg |  15 ++
 bsp/ti-j7xxx/ti-j7xxx-remoteproc.cfg |  21 ++
 bsp/ti-j7xxx/ti-j7xxx-remoteproc.scc |   1 +
 bsp/ti-j7xxx/ti-j7xxx.cfg| 367 +++
 bsp/ti-j7xxx/ti-j7xxx.scc|   8 +
 9 files changed, 448 insertions(+)
 create mode 100755 bsp/ti-j7xxx/ti-j72xx-preempt-rt.scc
 create mode 100644 bsp/ti-j7xxx/ti-j72xx-standard.scc
 create mode 100755 bsp/ti-j7xxx/ti-j78xx-preempt-rt.scc
 create mode 100644 bsp/ti-j7xxx/ti-j78xx-standard.scc
 create mode 100644 bsp/ti-j7xxx/ti-j7xxx-preempt-rt.cfg
 create mode 100644 bsp/ti-j7xxx/ti-j7xxx-remoteproc.cfg
 create mode 100644 bsp/ti-j7xxx/ti-j7xxx-remoteproc.scc
 create mode 100755 bsp/ti-j7xxx/ti-j7xxx.cfg
 create mode 100644 bsp/ti-j7xxx/ti-j7xxx.scc

diff --git a/bsp/ti-j7xxx/ti-j72xx-preempt-rt.scc 
b/bsp/ti-j7xxx/ti-j72xx-preempt-rt.scc
new file mode 100755
index ..fd8c5130
--- /dev/null
+++ b/bsp/ti-j7xxx/ti-j72xx-preempt-rt.scc
@@ -0,0 +1,10 @@
+# SPDX-License-Identifier: MIT
+define KMACHINE ti-j72xx
+define KTYPE preempt-rt
+define KARCH arm64
+
+include ktypes/preempt-rt
+branch ti-j7xxx
+
+include ti-j7xxx.scc
+kconf hardware ti-j7xxx-preempt-rt.cfg
diff --git a/bsp/ti-j7xxx/ti-j72xx-standard.scc 
b/bsp/ti-j7xxx/ti-j72xx-standard.scc
new file mode 100644
index ..c8e91aa1
--- /dev/null
+++ b/bsp/ti-j7xxx/ti-j72xx-standard.scc
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: MIT
+define KMACHINE ti-j72xx
+define KTYPE standard
+define KARCH arm64
+
+include ktypes/standard/standard.scc
+
+include ti-j7xxx.scc
diff --git a/bsp/ti-j7xxx/ti-j78xx-preempt-rt.scc 
b/bsp/ti-j7xxx/ti-j78xx-preempt-rt.scc
new file mode 100755
index ..a88315fd
--- /dev/null
+++ b/bsp/ti-j7xxx/ti-j78xx-preempt-rt.scc
@@ -0,0 +1,10 @@
+# SPDX-License-Identifier: MIT
+define KMACHINE ti-j78xx
+define KTYPE preempt-rt
+define KARCH arm64
+
+include ktypes/preempt-rt
+branch ti-j7xxx
+
+include ti-j7xxx.scc
+kconf hardware ti-j7xxx-preempt-rt.cfg
diff --git a/bsp/ti-j7xxx/ti-j78xx-standard.scc 
b/bsp/ti-j7xxx/ti-j78xx-standard.scc
new file mode 100644
index ..2c945b1d
--- /dev/null
+++ b/bsp/ti-j7xxx/ti-j78xx-standard.scc
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: MIT
+define KMACHINE ti-j78xx
+define KTYPE standard
+define KARCH arm64
+
+include ktypes/standard/standard.scc
+
+include ti-j7xxx.scc
diff --git a/bsp/ti-j7xxx/ti-j7xxx-preempt-rt.cfg 
b/bsp/ti-j7xxx/ti-j7xxx-preempt-rt.cfg
new file mode 100644
index ..5e391571
--- /dev/null
+++ b/bsp/ti-j7xxx/ti-j7xxx-preempt-rt.cfg
@@ -0,0 +1,15 @@
+..
+.WARNING
+.
+. This file is a kernel configuration fragment, and not a full kernel
+. configuration file.  The final kernel configuration is made up of
+. an assembly of processed fragments, each of which is designed to
+. capture a specific part of the final configuration (e.g. platform
+. configuration, feature configuration, and board specific hardware
+. configuration).  For more information on kernel configuration, please
+. consult the product documentation.
+.
+..
+
+# CONFIG_TRANSPARENT_HUGEPAGE is not set
+# CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS is not set
diff --git a/bsp/ti-j7xxx/ti-j7xxx-remoteproc.cfg 
b/bsp/ti-j7xxx/ti-j7xxx-remoteproc.cfg
new file mode 100644
index ..7d840f1a
--- /dev/null
+++ b/bsp/ti-j7xxx/ti-j7xxx-remoteproc.cfg
@@ -0,0 +1,21 @@
+#
+# Remoteproc drivers
+#
+CONFIG_REMOTEPROC=y
+CONFIG_PRU_REMOTEPROC=m
+CONFIG_TI_K3_R5_REMOTEPROC=m
+CONFIG_TI_K3_DSP_REMOTEPROC=m
+
+#
+# Rpmsg virtual device drivers
+#
+CONFIG_RPMSG_KDRV=y
+CONFIG_RPMSG_KDRV_ETH_SWITCH=y
+CONFIG_TI_RDEV_ETH_SWITCH_VIRT_EMAC=m
+CONFIG_RPMSG_VIRTIO=m
+CONFIG_RPMSG_CHAR=m
+CONFIG_SAMPLES=y
+CONFIG_SAMPLE_RPMSG_CLIENT=m
+CONFIG_RPMSG_KDRV_DISPLAY=y
+CONFIG_RPMSG_PROTO=m
+CONFIG_SERIAL_8250_PRUSS=m
diff --git a/bsp/ti-j7xxx/ti-j7xxx-remoteproc.scc 
b/bsp/ti-j7xxx/ti-j7xxx-remoteproc.scc
new file mode 100644
index ..a1bc372d
--- /dev/null
+++ b/bsp/ti-j7xxx/ti-j7xxx-remoteproc.scc
@@ -0,0 +1 @@
+kconf hardware ti-j7xxx-remoteproc.cfg
diff --git a/bsp/ti-j7xxx/ti-j7xxx.cfg b/bsp/ti-j7xxx/ti-j7xxx.cfg
new file mode 100755
index ..65729df3
--- /dev/null
+++ b/bsp/ti-j7xxx/ti-j7xxx.cfg
@@ -0,0 +1,367 @@
+#
+#  WARNING
+#
+# This file is a kernel configuration fragment, and not a full kernel
+# configuration file.  The final kernel configuration is made up of
+# an assembly of processed fragments, each of 

[linux-yocto][linux-yocto v5.15/standard/ti-sdk-5.10/ti-j72xx & v5.15/standard/preempt-rt/ti-sdk-5.10/ti-j72xx][PATCH] media: platform: vxe-vxd: wrap hwctrl_dump_state() with debug macro

2023-03-19 Thread Xulin Sun
Wrap hwctrl_dump_state() with debug macro DEBUG_DECODER_DRIVER, to
fix below building issue:
drivers/media/platform/vxe-vxd/decoder/hw_control.c:775:13: error: 
'hwctrl_dump_state'
defined but not used [-Werror=unused-function]
|   775 | static void hwctrl_dump_state(struct vxd_states *prev_state,
|   | ^

Signed-off-by: Xulin Sun 
---
 drivers/media/platform/vxe-vxd/decoder/hw_control.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/media/platform/vxe-vxd/decoder/hw_control.c 
b/drivers/media/platform/vxe-vxd/decoder/hw_control.c
index 8cc524e7d2f7..a68c98ec605a 100644
--- a/drivers/media/platform/vxe-vxd/decoder/hw_control.c
+++ b/drivers/media/platform/vxe-vxd/decoder/hw_control.c
@@ -772,6 +772,7 @@ static int vdeckm_get_message(const void *hndl_vxd, const 
enum hwctrl_msgid msgi
return result;
 }
 
+#ifdef DEBUG_DECODER_DRIVER
 static void hwctrl_dump_state(struct vxd_states *prev_state,
  struct vxd_states *cur_state,
  unsigned char pipe_minus1)
@@ -818,6 +819,7 @@ static void hwctrl_dump_state(struct vxd_states *prev_state,
cur_state->fw_state.pipe_state[pipe_minus1].acheck_point
[VDECFW_CHECKPOINT_PICTURE_STARTED]);
 }
+#endif
 
 static unsigned int hwctrl_calculate_load(struct bspp_pict_hdr_info 
*pict_hdr_info)
 {
-- 
2.36.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#12267): 
https://lists.yoctoproject.org/g/linux-yocto/message/12267
Mute This Topic: https://lists.yoctoproject.org/mt/97724005/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [linux-yocto][linux-yocto v5.15/standard/ti-sdk-5.10/ti-j72xx & v5.15/standard/preempt-rt/ti-sdk-5.10/ti-j72xx][PATCH 1/2] drm/bridge: ti-sn65dsi86: correct wrong macro and undeclared variable

2023-03-11 Thread Xulin Sun

On 3/1/23 23:29, Bruce Ashfield wrote:

Both patches are now merged.


Hi Bruce,

It seems the both patches have only been merged into the standard branch 
"v5.15/standard/ti-sdk-5.10/ti-j72xx", they are not in the rt branch 
"v5.15/standard/preempt-rt/ti-sdk-5.10/ti-j72xx".


Could you please also help merge these two patches to the rt branch 
"v5.15/standard/preempt-rt/ti-sdk-5.10/ti-j72xx"?


    [PATCH 1/2]  drm/bridge: ti-sn65dsi86: correct wrong macro and 
undeclared variable


    [PATCH 2/2] drm/bridge: ti-sn65dsi86: replace gpiod_set_value() 
with gpiod_set_value_cansleep()



Thanks

Xulin



Bruce

In message: [linux-yocto][linux-yocto v5.15/standard/ti-sdk-5.10/ti-j72xx & 
v5.15/standard/preempt-rt/ti-sdk-5.10/ti-j72xx][PATCH 1/2]  drm/bridge: 
ti-sn65dsi86: correct wrong macro and undeclared variable
on 27/02/2023 Xulin Sun wrote:


To fix below building error:
drivers/gpu/drm/bridge/ti-sn65dsi86.c:1146:60: error: 'client' undeclared 
(first use in this function)
|  1146 |.node = 
client->dev.of_node,
|   |^~

drivers/gpu/drm/bridge/ti-sn65dsi86.c:1190:28: error: 
'MIPI_DSI_MODE_EOT_PACKET' undeclared (first use in this function);
did you mean 'MIPI_DSI_MODE_NO_EOT_PACKET'?
|  1190 | dsi->mode_flags |= MIPI_DSI_MODE_EOT_PACKET | 
MIPI_DSI_MODE_VIDEO_SYNC_PULSE;
|   |^~~~
|   |        MIPI_DSI_MODE_NO_EOT_PACKET

Signed-off-by: Xulin Sun 
---
  drivers/gpu/drm/bridge/ti-sn65dsi86.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c 
b/drivers/gpu/drm/bridge/ti-sn65dsi86.c
index de261a052abd..c5b28739cdb1 100644
--- a/drivers/gpu/drm/bridge/ti-sn65dsi86.c
+++ b/drivers/gpu/drm/bridge/ti-sn65dsi86.c
@@ -1143,7 +1143,7 @@ static int ti_sn_bridge_probe(struct auxiliary_device 
*adev,
struct mipi_dsi_device *dsi;
const struct mipi_dsi_device_info info = { .type = "ti_sn_bridge",
   .channel = 0,
-  .node = client->dev.of_node,
+  .node = np,
 };
  
  	ret = drm_of_find_panel_or_bridge(np, 1, 0, &panel, NULL);

@@ -1187,7 +1187,7 @@ static int ti_sn_bridge_probe(struct auxiliary_device 
*adev,
dsi->lanes = 2;
dsi->format = MIPI_DSI_FMT_RGB888;
dsi->mode_flags = MIPI_DSI_MODE_VIDEO;
-   dsi->mode_flags |= MIPI_DSI_MODE_EOT_PACKET | 
MIPI_DSI_MODE_VIDEO_SYNC_PULSE;
+   dsi->mode_flags |= MIPI_DSI_MODE_NO_EOT_PACKET | 
MIPI_DSI_MODE_VIDEO_SYNC_PULSE;
  
  	/* check if continuous dsi clock is required or not */

pm_runtime_get_sync(pdata->dev);
--
2.36.1


In message: [linux-yocto][linux-yocto v5.15/standard/ti-sdk-5.10/ti-j72xx & 
v5.15/standard/preempt-rt/ti-sdk-5.10/ti-j72xx][PATCH 2/2]  drm/bridge: 
ti-sn65dsi86: replace gpiod_set_value() with gpiod_set_value_cansleep()
on 27/02/2023 Xulin Sun wrote:


To avoid below call trace:
[  630.025726] WARNING: CPU: 6 PID: 342 at drivers/gpio/gpiolib.c:3051 
gpiod_set_value+0x64/0xd4
[  630.025799] CPU: 6 PID: 342 Comm: Xorg Tainted: GW 
5.15.94-yocto-standard #1
[  630.025804] Hardware name: Texas Instruments J784S4 EVM (DT)
[  630.025806] pstate: 8005 (Nzcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[  630.025811] pc : gpiod_set_value+0x64/0xd4
[  630.025814] lr : ti_sn65dsi86_suspend+0x6c/0xc0
[  630.025822] sp : fe001276f770
[  630.025824] x29: fe001276f770 x28: fe0008f84ad8 x27: fc080d62e000
[  630.025830] x26: fc0801835200 x25: 000f4240 x24: fe0008098d80
[  630.025836] x23:  x22: fc080402e904 x21: 
[  630.025841] x20:  x19: fc0801a46050 x18: 
[  630.025847] x17: 0001 x16: 0001 x15: 000a7362abf69530
[  630.025852] x14: 0008a9a0b5cf2ce0 x13: fe0008ea1e28 x12: fa83b2da
[  630.025857] x11: 00aa x10: 0950 x9 : fe000889c4cc
[  630.025863] x8 : fe001276f6e0 x7 :  x6 : 
[  630.025868] x5 :  x4 :  x3 : fc0804185280
[  630.025873] x2 :  x1 : fc0804017220 x0 : 0001
[  630.025879] Call trace:
[  630.025881]  gpiod_set_value+0x64/0xd4
[  630.025884]  ti_sn65dsi86_suspend+0x6c/0xc0
[  630.025888]  __rpm_callback+0x50/0x150
[  630.025894]  rpm_callback+0x74/0x80
[  630.025898]  rpm_suspend+0x11c/0x700
[  630.025903]  rpm_idle+0x13c/0x440
[  630.025907]  __pm_runtime_idle+0x68/0x190
[  630.025911]  ti_sn_bridge_post_disable+0x74/0xdc
[  630.0259

[linux-yocto][linux-yocto v5.15/standard/ti-sdk-5.10/ti-j72xx & v5.15/standard/preempt-rt/ti-sdk-5.10/ti-j72xx][PATCH] PCI: j721e: j784s4 disables retrain Link for Gen2 training

2023-03-08 Thread Xulin Sun
The quirk_retrain_flag = true is to retrain link for Gen2 training,
however this will cause LINKDOWN and below call trace, here set the flag
to false to fix this issue.

l Abort received on 0x8000 from S-EL1
ERROR: exception reason=0 syndrome=0xbf00
Unhandled Exception from EL1

x0 = 0xfe000c6c
x1 = 0x
x2 = 0xfe0010c8
x3 = 0x0001
x4 = 0x000b
x5 = 0xfc0804578800
x6 = 0x0001
x7 = 0x
x8 = 0xfe0009cef710
x9 = 0xfe00086536dc
x10 = 0x0101010101010101
x11 = 0x0028
x12 = 0x666e6f636572202c
x13 = 0xfc08001f229a
x14 = 0x
x15 = 0xfc08001f2a1c
x16 = 0x13dfbf08dc14
x17 = 0x0002
x18 = 0x
x19 = 0x0004
x20 = 0xfe0009cef7b4
x21 = 0x0087
x22 = 0xfe0009cef854
x23 = 0x
x24 = 0xfe0009812fa0
x25 = 0x0001
x26 = 0xfc08045790e0
x27 = 0xfe0009658eb8
x28 = 0xfc0804578800
x29 = 0xfe0009cef740
x30 = 0xfe0008626aec
scr_el3 = 0x073d
sctlr_el3 = 0x30cd183f
cptr_el3 = 0x
tcr_el3 = 0x80803520
daif = 0x02c0
mair_el3 = 0x004404ff
spsr_el3 = 0x20c5
elr_el3 = 0xfe0008626b04
ttbr0_el3 = 0x70011cc0
esr_el3 = 0xbf00
far_el3 = 0x
spsr_el1 = 0x0005
elr_el1 = 0xfe0008073a90
spsr_abt = 0x
spsr_und = 0x
spsr_irq = 0x
spsr_fiq = 0x
sctlr_el1 = 0x34d4d91d
actlr_el1 = 0x
cpacr_el1 = 0x0030
csselr_el1 = 0x
sp_el1 = 0xfe0009cef740
esr_el1 = 0x
ttbr0_el1 = 0x8307
ttbr1_el1 = 0x8308

Signed-off-by: Xulin Sun 
---
 drivers/pci/controller/cadence/pci-j721e.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/controller/cadence/pci-j721e.c 
b/drivers/pci/controller/cadence/pci-j721e.c
index 85b29403abec..8866ceffea2a 100644
--- a/drivers/pci/controller/cadence/pci-j721e.c
+++ b/drivers/pci/controller/cadence/pci-j721e.c
@@ -483,7 +483,7 @@ static const struct j721e_pcie_data am64_pcie_ep_data = {
 
 static const struct j721e_pcie_data j784s4_pcie_rc_data = {
.mode = PCI_MODE_RC,
-   .quirk_retrain_flag = true,
+   .quirk_retrain_flag = false,
.is_intc_v1 = true,
.byte_access_allowed = false,
.linkdown_irq_regfield = LINK_DOWN,
-- 
2.36.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#12250): 
https://lists.yoctoproject.org/g/linux-yocto/message/12250
Mute This Topic: https://lists.yoctoproject.org/mt/97488003/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][yocto-kernel-cache][yocto-5.15][PATCH] ti-j7xxx: add DRM related configs and WAVE codec driver

2023-03-05 Thread Xulin Sun
Add DRM related configs, which are needed by J784S4 EVM board, and add
WAVE VPU driver.

Signed-off-by: Xulin Sun 
---
 bsp/ti-j7xxx/ti-j7xxx.cfg | 15 +++
 1 file changed, 15 insertions(+)

diff --git a/bsp/ti-j7xxx/ti-j7xxx.cfg b/bsp/ti-j7xxx/ti-j7xxx.cfg
index e42baa0d..65ad40fa 100755
--- a/bsp/ti-j7xxx/ti-j7xxx.cfg
+++ b/bsp/ti-j7xxx/ti-j7xxx.cfg
@@ -310,6 +310,20 @@ CONFIG_DRM_TIDSS=y
 CONFIG_DRM_FBDEV_EMULATION=y
 CONFIG_FB=y
 
+CONFIG_DRM_CDNS_DSI=y
+CONFIG_DRM_TI_SN65DSI86=y
+
+# SGX driver needs legacy support
+CONFIG_DRM_LEGACY=y
+CONFIG_FB_SSD1307=y
+CONFIG_FRAMEBUFFER_CONSOLE=y
+CONFIG_DRM_PANEL_SIMPLE=y
+CONFIG_DRM_TI_TFP410=y
+CONFIG_DRM_TI_TPD12S015=y
+CONFIG_DRM_DISPLAY_CONNECTOR=y
+CONFIG_DRM_LVDS_CODEC=y
+CONFIG_DRM_SII902X=y
+
 #
 # HYPERBUS
 #
@@ -349,6 +363,7 @@ CONFIG_VIDEO_V4L2_SUBDEV_API=y
 CONFIG_V4L_PLATFORM_DRIVERS=y
 CONFIG_VIDEO_IMG_VXE_ENC=m
 CONFIG_VIDEO_IMG_VXD_DEC=m
+CONFIG_VIDEO_WAVE_VPU=m
 
 CONFIG_REGULATOR=y
 CONFIG_REGULATOR_FIXED_VOLTAGE=y
-- 
2.36.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#12214): 
https://lists.yoctoproject.org/g/linux-yocto/message/12214
Mute This Topic: https://lists.yoctoproject.org/mt/97418022/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v5.15/standard/ti-sdk-5.10/ti-j72xx & v5.15/standard/preempt-rt/ti-sdk-5.10/ti-j72xx][PATCH 1/2] drm/bridge: ti-sn65dsi86: correct wrong macro and undeclared variable

2023-02-27 Thread Xulin Sun
To fix below building error:
drivers/gpu/drm/bridge/ti-sn65dsi86.c:1146:60: error: 'client' undeclared 
(first use in this function)
|  1146 |.node = 
client->dev.of_node,
|   |^~

drivers/gpu/drm/bridge/ti-sn65dsi86.c:1190:28: error: 
'MIPI_DSI_MODE_EOT_PACKET' undeclared (first use in this function);
did you mean 'MIPI_DSI_MODE_NO_EOT_PACKET'?
|  1190 | dsi->mode_flags |= MIPI_DSI_MODE_EOT_PACKET | 
MIPI_DSI_MODE_VIDEO_SYNC_PULSE;
|   |^~~~
|   |MIPI_DSI_MODE_NO_EOT_PACKET

Signed-off-by: Xulin Sun 
---
 drivers/gpu/drm/bridge/ti-sn65dsi86.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c 
b/drivers/gpu/drm/bridge/ti-sn65dsi86.c
index de261a052abd..c5b28739cdb1 100644
--- a/drivers/gpu/drm/bridge/ti-sn65dsi86.c
+++ b/drivers/gpu/drm/bridge/ti-sn65dsi86.c
@@ -1143,7 +1143,7 @@ static int ti_sn_bridge_probe(struct auxiliary_device 
*adev,
struct mipi_dsi_device *dsi;
const struct mipi_dsi_device_info info = { .type = "ti_sn_bridge",
   .channel = 0,
-  .node = client->dev.of_node,
+  .node = np,
 };
 
ret = drm_of_find_panel_or_bridge(np, 1, 0, &panel, NULL);
@@ -1187,7 +1187,7 @@ static int ti_sn_bridge_probe(struct auxiliary_device 
*adev,
dsi->lanes = 2;
dsi->format = MIPI_DSI_FMT_RGB888;
dsi->mode_flags = MIPI_DSI_MODE_VIDEO;
-   dsi->mode_flags |= MIPI_DSI_MODE_EOT_PACKET | 
MIPI_DSI_MODE_VIDEO_SYNC_PULSE;
+   dsi->mode_flags |= MIPI_DSI_MODE_NO_EOT_PACKET | 
MIPI_DSI_MODE_VIDEO_SYNC_PULSE;
 
/* check if continuous dsi clock is required or not */
pm_runtime_get_sync(pdata->dev);
-- 
2.36.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#12181): 
https://lists.yoctoproject.org/g/linux-yocto/message/12181
Mute This Topic: https://lists.yoctoproject.org/mt/97262125/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v5.15/standard/ti-sdk-5.10/ti-j72xx & v5.15/standard/preempt-rt/ti-sdk-5.10/ti-j72xx][PATCH 2/2] drm/bridge: ti-sn65dsi86: replace gpiod_set_value() with gpiod_set_value_cans

2023-02-27 Thread Xulin Sun
To avoid below call trace:
[  630.025726] WARNING: CPU: 6 PID: 342 at drivers/gpio/gpiolib.c:3051 
gpiod_set_value+0x64/0xd4
[  630.025799] CPU: 6 PID: 342 Comm: Xorg Tainted: GW 
5.15.94-yocto-standard #1
[  630.025804] Hardware name: Texas Instruments J784S4 EVM (DT)
[  630.025806] pstate: 8005 (Nzcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[  630.025811] pc : gpiod_set_value+0x64/0xd4
[  630.025814] lr : ti_sn65dsi86_suspend+0x6c/0xc0
[  630.025822] sp : fe001276f770
[  630.025824] x29: fe001276f770 x28: fe0008f84ad8 x27: fc080d62e000
[  630.025830] x26: fc0801835200 x25: 000f4240 x24: fe0008098d80
[  630.025836] x23:  x22: fc080402e904 x21: 
[  630.025841] x20:  x19: fc0801a46050 x18: 
[  630.025847] x17: 0001 x16: 0001 x15: 000a7362abf69530
[  630.025852] x14: 0008a9a0b5cf2ce0 x13: fe0008ea1e28 x12: fa83b2da
[  630.025857] x11: 00aa x10: 0950 x9 : fe000889c4cc
[  630.025863] x8 : fe001276f6e0 x7 :  x6 : 
[  630.025868] x5 :  x4 :  x3 : fc0804185280
[  630.025873] x2 :  x1 : fc0804017220 x0 : 0001
[  630.025879] Call trace:
[  630.025881]  gpiod_set_value+0x64/0xd4
[  630.025884]  ti_sn65dsi86_suspend+0x6c/0xc0
[  630.025888]  __rpm_callback+0x50/0x150
[  630.025894]  rpm_callback+0x74/0x80
[  630.025898]  rpm_suspend+0x11c/0x700
[  630.025903]  rpm_idle+0x13c/0x440
[  630.025907]  __pm_runtime_idle+0x68/0x190
[  630.025911]  ti_sn_bridge_post_disable+0x74/0xdc
[  630.025915]  drm_atomic_bridge_chain_post_disable+0x90/0xd0
[  630.025921]  disable_outputs+0x114/0x2c4
[  630.025926]  drm_atomic_helper_commit_modeset_disables+0x24/0x50
[  630.025929]  tidss_atomic_commit_tail+0x34/0x90
[  630.025933]  commit_tail+0xac/0x180
[  630.025937]  drm_atomic_helper_commit+0x154/0x180
[  630.025940]  drm_atomic_commit+0x54/0x6c
[  630.025944]  drm_client_modeset_commit_atomic+0x214/0x254
[  630.025949]  drm_client_modeset_dpms+0x90/0x220
[  630.025952]  drm_fb_helper_blank+0x64/0x110
[  630.025955]  fb_blank+0x5c/0xb0
[  630.025960]  do_fb_ioctl+0x410/0x640
[  630.025964]  fb_ioctl+0x40/0x5c
[  630.025968]  __arm64_sys_ioctl+0xb0/0xf4
[  630.025974]  invoke_syscall+0x5c/0x130
[  630.025980]  el0_svc_common.constprop.0+0x4c/0x100
[  630.025983]  do_el0_svc+0x4c/0xb4
[  630.025987]  el0_svc+0x28/0x80
[  630.025992]  el0t_64_sync_handler+0xa4/0x130
[  630.025995]  el0t_64_sync+0x1a0/0x1a4

Signed-off-by: Xulin Sun 
---
 drivers/gpu/drm/bridge/ti-sn65dsi86.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c 
b/drivers/gpu/drm/bridge/ti-sn65dsi86.c
index c5b28739cdb1..a4c618a0047c 100644
--- a/drivers/gpu/drm/bridge/ti-sn65dsi86.c
+++ b/drivers/gpu/drm/bridge/ti-sn65dsi86.c
@@ -311,7 +311,7 @@ static int __maybe_unused ti_sn65dsi86_resume(struct device 
*dev)
/* td2: min 100 us after regulators before enabling the GPIO */
usleep_range(100, 110);
 
-   gpiod_set_value(pdata->enable_gpio, 1);
+   gpiod_set_value_cansleep(pdata->enable_gpio, 1);
 
/*
 * If we have a reference clock we can enable communication w/ the
@@ -334,7 +334,7 @@ static int __maybe_unused ti_sn65dsi86_suspend(struct 
device *dev)
if (pdata->refclk)
ti_sn65dsi86_disable_comms(pdata);
 
-   gpiod_set_value(pdata->enable_gpio, 0);
+   gpiod_set_value_cansleep(pdata->enable_gpio, 0);
 
ret = regulator_bulk_disable(SN_REGULATOR_SUPPLY_NUM, pdata->supplies);
if (ret)
-- 
2.36.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#12182): 
https://lists.yoctoproject.org/g/linux-yocto/message/12182
Mute This Topic: https://lists.yoctoproject.org/mt/97262126/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v5.15/standard/ti-sdk-5.10/ti-j72xx & v5.15/standard/preempt-rt/ti-sdk-5.10/ti-j72xx][PATCH] arm64: dts: ti: k3-j784s4-evm: enable RNG feature

2023-02-20 Thread Xulin Sun
J784S4 SOC supports the RNG (random number generator) feature, here
enable it.

Signed-off-by: Xulin Sun 
---
 arch/arm64/boot/dts/ti/k3-j784s4-evm.dts | 5 +
 1 file changed, 5 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts 
b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts
index 2a498bfc3649..96334188cf07 100644
--- a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts
+++ b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts
@@ -1218,3 +1218,8 @@ adc {
ti,adc-channels = <0 1 2 3 4 5 6 7>;
};
 };
+
+&rng {
+status = "okay";
+};
+
-- 
2.36.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#12172): 
https://lists.yoctoproject.org/g/linux-yocto/message/12172
Mute This Topic: https://lists.yoctoproject.org/mt/97104500/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][yocto-kernel-cache][yocto-5.15][PATCH] ti-j7xxx: add machine name ti-j78xx

2023-02-17 Thread Xulin Sun
Add machine ti-j78xx to support TI SOC J784S4.
In the future, ti-j7xxx will support two machines ti-j78xx
and ti-j72xx.

Signed-off-by: Xulin Sun 
---
 .../{ti-j7xxx-preempt-rt.scc => ti-j78xx-preempt-rt.scc}| 2 +-
 bsp/ti-j7xxx/{ti-j7xxx-standard.scc => ti-j78xx-standard.scc}   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
 rename bsp/ti-j7xxx/{ti-j7xxx-preempt-rt.scc => ti-j78xx-preempt-rt.scc} (87%)
 rename bsp/ti-j7xxx/{ti-j7xxx-standard.scc => ti-j78xx-standard.scc} (84%)

diff --git a/bsp/ti-j7xxx/ti-j7xxx-preempt-rt.scc 
b/bsp/ti-j7xxx/ti-j78xx-preempt-rt.scc
similarity index 87%
rename from bsp/ti-j7xxx/ti-j7xxx-preempt-rt.scc
rename to bsp/ti-j7xxx/ti-j78xx-preempt-rt.scc
index 1c980ddd..a88315fd 100755
--- a/bsp/ti-j7xxx/ti-j7xxx-preempt-rt.scc
+++ b/bsp/ti-j7xxx/ti-j78xx-preempt-rt.scc
@@ -1,5 +1,5 @@
 # SPDX-License-Identifier: MIT
-define KMACHINE ti-j7xxx
+define KMACHINE ti-j78xx
 define KTYPE preempt-rt
 define KARCH arm64
 
diff --git a/bsp/ti-j7xxx/ti-j7xxx-standard.scc 
b/bsp/ti-j7xxx/ti-j78xx-standard.scc
similarity index 84%
rename from bsp/ti-j7xxx/ti-j7xxx-standard.scc
rename to bsp/ti-j7xxx/ti-j78xx-standard.scc
index df77baf3..2c945b1d 100644
--- a/bsp/ti-j7xxx/ti-j7xxx-standard.scc
+++ b/bsp/ti-j7xxx/ti-j78xx-standard.scc
@@ -1,5 +1,5 @@
 # SPDX-License-Identifier: MIT
-define KMACHINE ti-j7xxx
+define KMACHINE ti-j78xx
 define KTYPE standard
 define KARCH arm64
 
-- 
2.36.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#12169): 
https://lists.yoctoproject.org/g/linux-yocto/message/12169
Mute This Topic: https://lists.yoctoproject.org/mt/97027678/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



  1   2   >