[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-07 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_LNaRECR4_EQ_BIN_DATA(x)   ((x) & 
LYNX_28G_LNaRECR4_EQ_BIN_DATA_MSK)
 #define LYNX_28G_LNaRECR4_EQ_BIN_DATA_SGN  BIT(8)
 
-#define LYNX_28G_LNaRECR2_EQ_OFFSET_RNG_DBLBIT(31)
-#define LYNX_28G_LNaRECR2_EQ_BOOST(x)  (((x) << 28) & GENMASK(29, 28))
-#define 

[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)
+   return 0;
+
+   /* Power 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 @@
};
 };
 
-_port0 {
-   status = "okay";
+_csi2rx0 {
+   ports {
+   port@0 {
+   status = "okay";
 
-   csi2rx0_in_sensor: endpoint {
-   remote-endpoint = <_cam0>;
-   bus-type = <4>; /* CSI2 DPHY. */
-   clock-lanes = <0>;
-   data-lanes = <1 2>;
+   csi2rx0_in_sensor: endpoint {
+   remote-endpoint = <_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 = <_master>;
simple-audio-card,frame-master = <_master>;
+   status = "disabled";
 
dailink0_master: simple-audio-card,cpu {
sound-dai = <>;
-- 
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 @@  {
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 

[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 @@
};
 };
 
-_port0 {
-   status = "okay";
-
-   csi2rx0_in_sensor: endpoint {
-   remote-endpoint = <_cam0>;
-   bus-type = <4>; /* CSI2 DPHY */
-   clock-lanes = <0>;
-   data-lanes = <1 2>;
+_csi2rx0 {
+   ports {
+   port@0 {
+   status = "okay";
+
+   csi2rx0_in_sensor: endpoint {
+   remote-endpoint = <_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 @@
};
 };
 
-_port0 {
-   status = "okay";
-
-   csi2_phy0: endpoint {
-   remote-endpoint = <_0_csi_out>;
-   clock-lanes = <0>;
-   data-lanes = <1 2 3 4>;
-   link-frequencies = /bits/ 64 <8>;
+_csi2rx0 {
+   ports {
+   port@0 {
+   status = "okay";
+
+   csi2_phy0: endpoint {
+   remote-endpoint = <_0_csi_out>;
+   clock-lanes = <0>;
+   data-lanes = <1 2 3 4>;
+   link-frequencies = /bits/ 64 <8>;
+   };
+   };
};
 };
 
-_port0 {
-   status = "okay";
+_csi2rx1 {
+   ports {
+   port@0 {
+   status = "okay";
 
-   csi2_phy1: endpoint {
-   remote-endpoint = <_1_csi_out>;
-   clock-lanes = <0>;
-   data-lanes = <1 2 3 4>;
-   link-frequencies = /bits/ 64 <8>;
+   csi2_phy1: endpoint {
+   remote-endpoint = <_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 @@
};
 };
 
-_port0 {
-   status = "okay";
-
-   csi2_phy0: endpoint {
-   remote-endpoint = <_0_csi_out>;
-   clock-lanes = <0>;
-   data-lanes = <1 2 3 4>;
-   link-frequencies = /bits/ 64 <8>;
+_csi2rx0 {
+   ports {
+   port@0 {
+   status = "okay";
+
+   csi2_phy0: endpoint {
+   remote-endpoint = <_0_csi_out>;
+   clock-lanes = <0>;
+   data-lanes = <1 2 3 4>;
+   link-frequencies = /bits/ 64 <8>;
+   };
+   };
};
 };
 
-_port0 {
-   status = "okay";
+_csi2rx1 {
+   ports {
+   port@0 {
+   status = "okay";
 
-   csi2_phy1: endpoint {
-   remote-endpoint = <_1_csi_out>;
-   clock-lanes = <0>;
-   data-lanes = <1 2 3 4>;
-

[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-evm.dts |   6 ++-
 arch/arm/boot/dts/am335x-evmsk.dts |  38 

[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 +
 arch/arm/boot/dts/am57xx-beagle-x15.dts |   2 +-
 

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,
   _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 @@ _sdhci0 {
non-removable;
ti,driver-strength-ohm = <50>;
disable-wp;
+   no-mmc-hs400;
 };
 
 _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 */
};
 };
 
+_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)
+   >;
+   };
+};
+
 _pmx0 {
main_i2c0_pins_default: main-i2c0-pins-default {
pinctrl-single,pins = <
@@ -248,18 +254,11 @@ _mcan16 {
phys = <>;
 };
 
-_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)
-   >;
-   };
-
+_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"
 
-_pmx0 {
+_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, [id], err_vals.errs, bgp);
+   get_efuse_values(id, [id], err_vals.errs, 
fuse_base);
}
 
if (id == 0 && workaround_needed)
-- 
2.35.5


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13206): 
https://lists.yoctoproject.org/g/linux-yocto/message/13206
Mute This Topic: 

[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 = >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: 

[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 

[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

Hi Bruce,

Could you please help to create a new kernel branch 
"v6.1/standard/preempt-rt/ti-sdk-6.1/ti-j7xxx"

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

And merge below patches to the new branch 
"v6.1/standard/preempt-rt/ti-sdk-6.1/ti-j7xxx".




The following changes since commit 
a49ca8357f930ba63aa382ad291f4ddf1e6db427:


  Merge branch 'v6.1/standard/base' into v6.1/standard/preempt-rt/base 
(2023-05-31 19:35:24 -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 c9c1194e86e4b06a2ec3fb3b250b222ed84f6920:

  PCI: j721e: disable retrain Link for Gen2 training (2023-06-01 
09:35:02 +0800)



Anand Gadiyar (2):
  arm64: dts: ti: Refractor AM625 SK dts
  arm64: ti: dts: Add support for AM62x LP SK

Andrew Davis (65):
  kbuild: Allow DTB overlays to built from .dtso named source files
  kbuild: Allow DTB overlays to built into .dtbo.S files
  staging: pi433: overlay: Rename overlay source file from .dts to 
.dtso

  kbuild: Cleanup DT Overlay intermediate files as appropriate
  arm64: dts: freescale: Rename DTB overlay source files from .dts 
to .dtso
  arm64: dts: renesas: Rename DTB overlay source files from .dts to 
.dtso
  arm64: dts: xilinx: Rename DTB overlay source files from .dts to 
.dtso

  kbuild: Disallow DTB overlays to built from .dts named source files
  arm64: dts: ti: k3-am64: Enable UART nodes at the board level
  arm64: dts: ti: k3-am64: Enable I2C nodes at the board level
  arm64: dts: ti: k3-am64: Enable SPI nodes at the board level
  arm64: dts: ti: k3-am64: Enable EPWM nodes at the board level
  arm64: dts: ti: k3-am64: Enable ECAP nodes at the board level
  arm64: dts: ti: k3-am64: Enable PCIe nodes at the board level
  arm64: dts: ti: k3-am64: MDIO pinmux should belong to the MDIO node
  arm64: dts: ti: k3-am64: Enable MDIO nodes at the board level
  arm64: dts: ti: k3-am64: Enable MCAN nodes at the board level
  arm64: dts: ti: k3-am64: Enable GPMC and ELM nodes at the board 
level

  arm64: dts: ti: k3-am62: Enable UART nodes at the board level
  arm64: dts: ti: k3-am62: Enable I2C nodes at the board level
  arm64: dts: ti: k3-am62: Enable EPWM nodes at the board level
  arm64: dts: ti: k3-am62: Enable ECAP nodes at the board level
  arm64: dts: ti: k3-am62: MDIO pinmux should belong to the MDIO node
  arm64: dts: ti: k3-am62: Enable MDIO nodes at the board level
  arm64: dts: ti: k3-am62: Enable MCAN nodes at the board level
  arm64: dts: ti: k3-am62: Enable SDHCI nodes at the board level
  arm64: dts: ti: k3-am62: Enable OSPI nodes at the board level
  arm64: dts: ti: k3-j721e: Enable UART nodes at the board level
  arm64: dts: ti: k3-j721e: Enable I2C nodes at the board level
  arm64: dts: ti: k3-j721e: Enable MCASP nodes at the board level
  arm64: dts: ti: k3-j721e: Enable MCAN nodes at the board level
  arm64: dts: ti: k3-j7200: Enable UART nodes at the board level
  arm64: dts: ti: k3-j7200: Enable I2C nodes at the board level
  arm64: dts: ti: k3-j721s2: Enable UART nodes at the board level
  arm64: dts: ti: k3-j721e: Enable Mailbox nodes at the board level
  arm64: dts: ti: k3-j7200: Enable Mailbox nodes at the board level
  arm64: dts: ti: k3-j721s2: Enable Mailbox nodes at the board level
  arm64: dts: ti: k3-j721s2: Enable MCAN nodes at the board level
  arm64: dts: ti: k3-j721s2: Enable I2C nodes at the board level
  arm64: dts: ti: k3-am65: Enable UART nodes at the board level
  arm64: dts: ti: k3-am65: Enable I2C nodes at the board level
  arm64: dts: ti: k3-am65: Enable SPI nodes at the board level
  arm64: dts: ti: k3-am65: Enable EPWM nodes at the board level
  arm64: dts: ti: k3-am65: Enable ECAP nodes at the board level
  arm64: dts: ti: k3-am65: MDIO pinmux should belong to the MDIO node
  arm64: dts: ti: k3-am65: Enable MDIO nodes at the board level
  arm64: dts: ti: k3-am65: Enable MCAN nodes at the board level
  arm64: dts: ti: k3-am65: Enable PCIe nodes at the board level
  arm64: dts: ti: k3-am65: Enable Mailbox nodes at the board level
  arm64: dts: ti: k3-am65: Enable McASP nodes at the board level
  ARM: dts: ti: Add AM57xx GP EVM board support
  ARM: dts: ti: Add AM57xx GP EVM Rev A3 board support
  ARM: dts: am57xx-idk: Add IDK displays and touchscreens
  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
  HACK: dt-bindings: misc: Add ti,dma-buf-phys binding doc
  HACK: misc: Add dma-buf to physical address exporter
  dt-bindings: gpu: Add YAML DT bindings for PowerVR SGX
  ARM: 

[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

Hi Bruce,

Could you please help to create a new kernel branch 
"v6.1/standard/ti-sdk-6.1/ti-j7xxx"

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

And merge below patches to the new branch 
"v6.1/standard/ti-sdk-6.1/ti-j7xxx".




The following changes since commit 
456d730e6202dd0fc120322d64cf70a2cbccc572:


  Merge tag 'v6.1.31' into v6.1/standard/base (2023-05-31 19:33:40 -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 99f41408e8ecda336c5010a0c9b1aa8bd7b80d60:

  PCI: j721e: disable retrain Link for Gen2 training (2023-06-01 
09:30:49 +0800)



Anand Gadiyar (2):
  arm64: dts: ti: Refractor AM625 SK dts
  arm64: ti: dts: Add support for AM62x LP SK

Andrew Davis (65):
  kbuild: Allow DTB overlays to built from .dtso named source files
  kbuild: Allow DTB overlays to built into .dtbo.S files
  staging: pi433: overlay: Rename overlay source file from .dts to 
.dtso

  kbuild: Cleanup DT Overlay intermediate files as appropriate
  arm64: dts: freescale: Rename DTB overlay source files from .dts 
to .dtso
  arm64: dts: renesas: Rename DTB overlay source files from .dts to 
.dtso
  arm64: dts: xilinx: Rename DTB overlay source files from .dts to 
.dtso

  kbuild: Disallow DTB overlays to built from .dts named source files
  arm64: dts: ti: k3-am64: Enable UART nodes at the board level
  arm64: dts: ti: k3-am64: Enable I2C nodes at the board level
  arm64: dts: ti: k3-am64: Enable SPI nodes at the board level
  arm64: dts: ti: k3-am64: Enable EPWM nodes at the board level
  arm64: dts: ti: k3-am64: Enable ECAP nodes at the board level
  arm64: dts: ti: k3-am64: Enable PCIe nodes at the board level
  arm64: dts: ti: k3-am64: MDIO pinmux should belong to the MDIO node
  arm64: dts: ti: k3-am64: Enable MDIO nodes at the board level
  arm64: dts: ti: k3-am64: Enable MCAN nodes at the board level
  arm64: dts: ti: k3-am64: Enable GPMC and ELM nodes at the board 
level

  arm64: dts: ti: k3-am62: Enable UART nodes at the board level
  arm64: dts: ti: k3-am62: Enable I2C nodes at the board level
  arm64: dts: ti: k3-am62: Enable EPWM nodes at the board level
  arm64: dts: ti: k3-am62: Enable ECAP nodes at the board level
  arm64: dts: ti: k3-am62: MDIO pinmux should belong to the MDIO node
  arm64: dts: ti: k3-am62: Enable MDIO nodes at the board level
  arm64: dts: ti: k3-am62: Enable MCAN nodes at the board level
  arm64: dts: ti: k3-am62: Enable SDHCI nodes at the board level
  arm64: dts: ti: k3-am62: Enable OSPI nodes at the board level
  arm64: dts: ti: k3-j721e: Enable UART nodes at the board level
  arm64: dts: ti: k3-j721e: Enable I2C nodes at the board level
  arm64: dts: ti: k3-j721e: Enable MCASP nodes at the board level
  arm64: dts: ti: k3-j721e: Enable MCAN nodes at the board level
  arm64: dts: ti: k3-j7200: Enable UART nodes at the board level
  arm64: dts: ti: k3-j7200: Enable I2C nodes at the board level
  arm64: dts: ti: k3-j721s2: Enable UART nodes at the board level
  arm64: dts: ti: k3-j721e: Enable Mailbox nodes at the board level
  arm64: dts: ti: k3-j7200: Enable Mailbox nodes at the board level
  arm64: dts: ti: k3-j721s2: Enable Mailbox nodes at the board level
  arm64: dts: ti: k3-j721s2: Enable MCAN nodes at the board level
  arm64: dts: ti: k3-j721s2: Enable I2C nodes at the board level
  arm64: dts: ti: k3-am65: Enable UART nodes at the board level
  arm64: dts: ti: k3-am65: Enable I2C nodes at the board level
  arm64: dts: ti: k3-am65: Enable SPI nodes at the board level
  arm64: dts: ti: k3-am65: Enable EPWM nodes at the board level
  arm64: dts: ti: k3-am65: Enable ECAP nodes at the board level
  arm64: dts: ti: k3-am65: MDIO pinmux should belong to the MDIO node
  arm64: dts: ti: k3-am65: Enable MDIO nodes at the board level
  arm64: dts: ti: k3-am65: Enable MCAN nodes at the board level
  arm64: dts: ti: k3-am65: Enable PCIe nodes at the board level
  arm64: dts: ti: k3-am65: Enable Mailbox nodes at the board level
  arm64: dts: ti: k3-am65: Enable McASP nodes at the board level
  ARM: dts: ti: Add AM57xx GP EVM board support
  ARM: dts: ti: Add AM57xx GP EVM Rev A3 board support
  ARM: dts: am57xx-idk: Add IDK displays and touchscreens
  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
  HACK: dt-bindings: misc: Add ti,dma-buf-phys binding doc
  HACK: misc: Add dma-buf to physical address exporter
  dt-bindings: gpu: Add YAML DT bindings for PowerVR SGX
  ARM: dts: omap3: Add device tree entry for SGX
  ARM: dts: omap4: Add device 

[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-30 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-17 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 which is