[linux-yocto][kernel v5.10/standard/nxp-sdk-5.4/nxp-imx8][PATCH] mmc: core: Fix the 'err' undeclared compile failure in mmc_alloc_host()

2021-08-09 Thread jmiao1
There is a compile failture caused by commit
3b4009b49634 ("mmc: core: Don't allocate IDA for OF aliases").
When merging code, it conflicts with sdk kernel patch, "err" is not replaced by
"index", and some indents and "}" are lost.

build error:

drivers/mmc/core/host.c:449:3: error: 'err' undeclared (first use in this 
function)
|   449 |   err = ida_simple_get(_host_ida, alias_id,
|   |   ^~~
drivers/mmc/core/host.c:568:15: error: non-static declaration of 
'mmc_free_host' follows static declaration
|   568 | EXPORT_SYMBOL(mmc_free_host);
|   |   ^
drivers/mmc/core/host.c:554:15: error: non-static declaration of 
'mmc_remove_host' follows static declaration
|   554 | EXPORT_SYMBOL(mmc_remove_host);
|   |   ^~~

Signed-off-by: Jun Miao 
---
 drivers/mmc/core/host.c | 23 ---
 1 file changed, 12 insertions(+), 11 deletions(-)

diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c
index a71b9b7d85ea..29a936d0ac4b 100644
--- a/drivers/mmc/core/host.c
+++ b/drivers/mmc/core/host.c
@@ -444,17 +444,18 @@ struct mmc_host *mmc_alloc_host(int extra, struct device 
*dev)
min_idx = mmc_first_nonreserved_index();
max_idx = 0;
 
-   alias_id = mmc_get_reserved_index(host);
-   if (alias_id >= 0)
-   err = ida_simple_get(_host_ida, alias_id,
-   alias_id + 1, GFP_KERNEL);
-   else
-   err = ida_simple_get(_host_ida,
-   mmc_first_nonreserved_index(),
-   0, GFP_KERNEL);
-   if (err < 0) {
-   kfree(host);
-   return NULL;
+   alias_id = mmc_get_reserved_index(host);
+   if (alias_id >= 0)
+   index = ida_simple_get(_host_ida, alias_id,
+   alias_id + 1, GFP_KERNEL);
+   else
+   index = ida_simple_get(_host_ida,
+   mmc_first_nonreserved_index(),
+   0, GFP_KERNEL);
+   if (index < 0) {
+   kfree(host);
+   return NULL;
+   }
}
 
host->index = index;
-- 
2.25.1


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



[linux-yocto][v5.10/standard/x86 and v5.10/standard/preempt-rt/x86][PATCH 2/2] net: stmmac: Fix a build warning for backporting

2021-07-30 Thread jmiao1
Delete "ret" is for backporting reason.

Warning build log:

drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c: In function 
‘intel_crosststamp’:
drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c:323:6: warning: unused 
variable ‘ret’ [-Wunused-variable]
   323 |  int ret;
   |  ^~~

Fixes: commit 0b171e531965 ("net: stmmac: Add support for MDIO interrupts")
Signed-off-by: Jun Miao 
---
 drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c 
b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c
index 092257267ce1..33cbe34f48a7 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c
@@ -320,7 +320,6 @@ static int intel_crosststamp(ktime_t *device,
u32 num_snapshot;
u32 gpio_value;
u32 acr_value;
-   int ret;
u32 v;
int i;
 
-- 
2.25.1


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



[linux-yocto][v5.10/standard/x86 and v5.10/standard/preempt-rt/x86][PATCH 1/2] net: stmmac: Fix a boolean build warning for GNU operand use of ?:

2021-07-30 Thread jmiao1
The mdio_intr_en is defined by bool, meaning "true" or "false".
According to GNU rule, boolean warn for dangerous use of omitted middle operand 
in "?:"
We choose "if()" to workaround it.

Rule:
/* Warn for A ?: C expressions (with B omitted) where A is a boolean
   expression, because B will always be true. */

Warning build log:

drivers/net/ethernet/stmicro/stmmac/hwif.c: In function ‘stmmac_hwif_init’:
drivers/net/ethernet/stmicro/stmmac/hwif.c:341:43: warning: the omitted middle 
operand in ?: will always be ‘true’, suggest explicit middle operand 
[-Wparentheses]
  341 |   mac->mdio_intr_en = mac->mdio_intr_en ? : entry->mdio_intr_en;
  |   ^

Link: https://gcc.gnu.org/legacy-ml/gcc-patches/2010-05/msg02393.html
Fixes: commit 0b171e531965 ("net: stmmac: Add support for MDIO interrupts")
Signed-off-by: Jun Miao 
---
 drivers/net/ethernet/stmicro/stmmac/hwif.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/stmicro/stmmac/hwif.c 
b/drivers/net/ethernet/stmicro/stmmac/hwif.c
index bedc04d26cac..2e93a42eae3f 100644
--- a/drivers/net/ethernet/stmicro/stmmac/hwif.c
+++ b/drivers/net/ethernet/stmicro/stmmac/hwif.c
@@ -338,7 +338,9 @@ int stmmac_hwif_init(struct stmmac_priv *priv)
mac->mode = mac->mode ? : entry->mode;
mac->tc = mac->tc ? : entry->tc;
mac->mmc = mac->mmc ? : entry->mmc;
-   mac->mdio_intr_en = mac->mdio_intr_en ? : entry->mdio_intr_en;
+
+   if (!mac->mdio_intr_en)
+   mac->mdio_intr_en = entry->mdio_intr_en;
 
if (mac->mdio_intr_en)
init_waitqueue_head(>mdio_busy_wait);
-- 
2.25.1


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



[linux-yocto][yocto-kernel-cache yocto-5.10][PATCH 0/1] nxp-imx6: Enable Media Platform config to fix build warning

2021-07-28 Thread jmiao1
CONFIG V4L_MEM2MEM_DRIVERS and VIDEO_CODA are depended on
MEDIA_PLATFORM_SUPPORT, so enable CONFIG_MEDIA_PLATFORM_SUPPORT to fix build
warning.

Signed-off-by: Jun Miao 
---
 bsp/nxp-imx6/nxp-imx6.cfg | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bsp/nxp-imx6/nxp-imx6.cfg b/bsp/nxp-imx6/nxp-imx6.cfg
index b47a89a0..76d7811b 100644
--- a/bsp/nxp-imx6/nxp-imx6.cfg
+++ b/bsp/nxp-imx6/nxp-imx6.cfg
@@ -101,6 +101,7 @@ CONFIG_CPU_THERMAL=y
 CONFIG_IMX_THERMAL=y
 
 CONFIG_MEDIA_SUPPORT=y
+CONFIG_MEDIA_PLATFORM_SUPPORT=y
 CONFIG_MEDIA_CAMERA_SUPPORT=y
 CONFIG_V4L_MEM2MEM_DRIVERS=y
 CONFIG_VIDEO_CODA=y
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#10196): 
https://lists.yoctoproject.org/g/linux-yocto/message/10196
Mute This Topic: https://lists.yoctoproject.org/mt/84500763/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][master][yocto-5.10][PATCH] bsp/intel-x86: Add VFIO support for intel-x86

2021-06-15 Thread jmiao1
Signed-off-by: Jun Miao 
---
 bsp/intel-x86/intel-x86.scc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bsp/intel-x86/intel-x86.scc b/bsp/intel-x86/intel-x86.scc
index 2c7a9585..9b369287 100644
--- a/bsp/intel-x86/intel-x86.scc
+++ b/bsp/intel-x86/intel-x86.scc
@@ -52,6 +52,7 @@ include features/intel-idxd/intel-idxd.scc
 include features/intel-uncore-frequency/intel-uncore-frequency.scc
 include features/intel-dptf/intel-dptf.scc
 include features/can/m_can.scc
+include features/vfio/vfio.scc
 
 kconf hardware intel-x86.cfg
 kconf hardware intel-x86-mga.cfg
-- 
2.25.1


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



[linux-yocto][linux-yocto v5.10/standard/x86][PATCH] iwlwifi: Fix softirq/hardirq disabling in iwl_pcie_enqueue_hcmd()

2021-04-15 Thread jmiao1
From: Jiri Kosina 

commit 2800aadc18a64c96b051bcb7da8a7df7d505db3f upstream

It's possible for iwl_pcie_enqueue_hcmd() to be called with hard IRQs
disabled (e.g. from LED core). We can't enable BHs in such a situation.

Turn the unconditional BH-enable/BH-disable code into
hardirq-disable/conditional-enable.

This fixes the warning below.

 WARNING: CPU: 1 PID: 1139 at kernel/softirq.c:178 
__local_bh_enable_ip+0xa5/0xf0
 CPU: 1 PID: 1139 Comm: NetworkManager Not tainted 
5.12.0-rc1-4-gb4ded168af79 #7
 Hardware name: LENOVO 20K5S22R00/20K5S22R00, BIOS R0IET38W (1.16 ) 05/31/2017
 RIP: 0010:__local_bh_enable_ip+0xa5/0xf0
 Code: f7 69 e8 ee 23 14 00 fb 66 0f 1f 44 00 00 65 8b 05 f0 f4 f7 69 85 c0 74 
3f 48 83 c4 08 5b c3 65 8b 05 9b fe f7 69 85 c0 75 8e <0f> 0b eb 8a 48 89 3c 24 
e8 4e 20 14 00 48 8b 3c 24 eb 91 e8 13 4e
 RSP: 0018:afd580b13298 EFLAGS: 00010046
 RAX:  RBX: 0201 RCX: 
 RDX: 0003 RSI: 0201 RDI: c1272389
 RBP: 96517ae4c018 R08: 0001 R09: 
 R10: afd580b13178 R11: 0001 R12: 96517b06
 R13:  R14: 8000 R15: 0001
 FS:  7fc604ebefc0() GS:96526748() knlGS:
 CS:  0010 DS:  ES:  CR0: 80050033
 CR2: 55fb3fef13b2 CR3: 000109112004 CR4: 003706e0
 Call Trace:
  ? _raw_spin_unlock_bh+0x1f/0x30
  iwl_pcie_enqueue_hcmd+0x5d9/0xa00 [iwlwifi]
  iwl_trans_txq_send_hcmd+0x6c/0x430 [iwlwifi]
  iwl_trans_send_cmd+0x88/0x170 [iwlwifi]
  ? lock_acquire+0x277/0x3d0
  iwl_mvm_send_cmd+0x32/0x80 [iwlmvm]
  iwl_mvm_led_set+0xc2/0xe0 [iwlmvm]
  ? led_trigger_event+0x46/0x70
  led_trigger_event+0x46/0x70
  ieee80211_do_open+0x5c5/0xa20 [mac80211]
  ieee80211_open+0x67/0x90 [mac80211]
  __dev_open+0xd4/0x150
  __dev_change_flags+0x19e/0x1f0
  dev_change_flags+0x23/0x60
  do_setlink+0x30d/0x1230
  ? lock_is_held_type+0xb4/0x120
  ? __nla_validate_parse.part.7+0x57/0xcb0
  ? __lock_acquire+0x2e1/0x1a50
  __rtnl_newlink+0x560/0x910
  ? __lock_acquire+0x2e1/0x1a50
  ? __lock_acquire+0x2e1/0x1a50
  ? lock_acquire+0x277/0x3d0
  ? sock_def_readable+0x5/0x290
  ? lock_is_held_type+0xb4/0x120
  ? find_held_lock+0x2d/0x90
  ? sock_def_readable+0xb3/0x290
  ? lock_release+0x166/0x2a0
  ? lock_is_held_type+0x90/0x120
  rtnl_newlink+0x47/0x70
  rtnetlink_rcv_msg+0x25c/0x470
  ? netlink_deliver_tap+0x97/0x3e0
  ? validate_linkmsg+0x350/0x350
  netlink_rcv_skb+0x50/0x100
  netlink_unicast+0x1b2/0x280
  netlink_sendmsg+0x336/0x450
  sock_sendmsg+0x5b/0x60
  sys_sendmsg+0x1ed/0x250
  ? copy_msghdr_from_user+0x5c/0x90
  ___sys_sendmsg+0x88/0xd0
  ? lock_is_held_type+0xb4/0x120
  ? find_held_lock+0x2d/0x90
  ? lock_release+0x166/0x2a0
  ? __fget_files+0xfe/0x1d0
  ? __sys_sendmsg+0x5e/0xa0
  __sys_sendmsg+0x5e/0xa0
  ? lockdep_hardirqs_on_prepare+0xd9/0x170
  do_syscall_64+0x33/0x80
  entry_SYSCALL_64_after_hwframe+0x44/0xae
 RIP: 0033:0x7fc605c9572d
 Code: 28 89 54 24 1c 48 89 74 24 10 89 7c 24 08 e8 da ee ff ff 8b 54 24 1c 48 
8b 74 24 10 41 89 c0 8b 7c 24 08 b8 2e 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 33 
44 89 c7 48 89 44 24 08 e8 2e ef ff ff 48
 RSP: 002b:7fffc83789f0 EFLAGS: 0293 ORIG_RAX: 002e
 RAX: ffda RBX: 55ef468570c0 RCX: 7fc605c9572d
 RDX:  RSI: 7fffc8378a30 RDI: 000c
 RBP: 0010 R08:  R09: 
 R10:  R11: 0293 R12: 
 R13: 7fffc8378b80 R14: 7fffc8378b7c R15: 
 irq event stamp: 170785
 hardirqs last  enabled at (170783): [] 
__local_bh_enable_ip+0x82/0xf0
 hardirqs last disabled at (170784): [] 
_raw_read_lock_irqsave+0x8d/0x90
 softirqs last  enabled at (170782): [] 
iwl_pcie_enqueue_hcmd+0x5d9/0xa00 [iwlwifi]
 softirqs last disabled at (170785): [] 
iwl_pcie_enqueue_hcmd+0x116/0xa00 [iwlwifi]

Signed-off-by: Jiri Kosina 
Tested-by: Sedat Dilek  # LLVM/Clang v12.0.0-rc3
Acked-by: Luca Coelho 
Signed-off-by: Kalle Valo 
Link: 
https://lore.kernel.org/r/nycvar.yfh.7.76.2103021125430.12...@cbobk.fhfr.pm
Signed-off-by: Jun Miao 
---
 drivers/net/wireless/intel/iwlwifi/pcie/tx.c | 7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/net/wireless/intel/iwlwifi/pcie/tx.c 
b/drivers/net/wireless/intel/iwlwifi/pcie/tx.c
index 50133c09a780..133371385056 100644
--- a/drivers/net/wireless/intel/iwlwifi/pcie/tx.c
+++ b/drivers/net/wireless/intel/iwlwifi/pcie/tx.c
@@ -1181,6 +1181,7 @@ static int iwl_pcie_enqueue_hcmd(struct iwl_trans *trans,
u32 cmd_pos;
const u8 *cmddata[IWL_MAX_CMD_TBS_PER_TFD];
u16 cmdlen[IWL_MAX_CMD_TBS_PER_TFD];
+   unsigned long flags;
 
if (WARN(!trans->wide_cmd_header &&
 group_id > IWL_ALWAYS_LONG_GROUP,
@@ -1264,10 +1265,10 @@ static int iwl_pcie_enqueue_hcmd(struct iwl_trans 
*trans,
goto 

[[linux-yocto][linux-yocto v5.4/standard/preempt-rt/intel-x86] x86/alternatives: Acquire pte lock with interrupts enabled

2021-04-07 Thread jmiao1
From: Sebastian Andrzej Siewior 

commit a6d996cbd38b42341ad3fce74506b9fdc280e395 upstream

pte lock is never acquired in-IRQ context so it does not require interrupts
to be disabled. The lock is a regular spinlock which cannot be acquired
with interrupts disabled on RT.

RT complains about pte_lock() in __text_poke() because it's invoked after
disabling interrupts.

__text_poke() has to disable interrupts as use_temporary_mm() expects
interrupts to be off because it invokes switch_mm_irqs_off() and uses
per-CPU (current active mm) data.

Move the PTE lock handling outside the interrupt disabled region.

Signed-off-by: Sebastian Andrzej Siewior 
Signed-off-by: Thomas Gleixner 
Acked-by; Peter Zijlstra (Intel) 
Link: https://lore.kernel.org/r/20200813105026.bvugytmsso6mu...@linutronix.de
Signed-off-by: Jun Miao 
---
 arch/x86/kernel/alternative.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c
index c826cddae157..34a1b8562c31 100644
--- a/arch/x86/kernel/alternative.c
+++ b/arch/x86/kernel/alternative.c
@@ -874,8 +874,6 @@ static void *__text_poke(void *addr, const void *opcode, 
size_t len)
 */
BUG_ON(!pages[0] || (cross_page_boundary && !pages[1]));
 
-   local_irq_save(flags);
-
/*
 * Map the page without the global bit, as TLB flushing is done with
 * flush_tlb_mm_range(), which is intended for non-global PTEs.
@@ -892,6 +890,8 @@ static void *__text_poke(void *addr, const void *opcode, 
size_t len)
 */
VM_BUG_ON(!ptep);
 
+   local_irq_save(flags);
+
pte = mk_pte(pages[0], pgprot);
set_pte_at(poking_mm, poking_addr, ptep, pte);
 
@@ -941,8 +941,8 @@ static void *__text_poke(void *addr, const void *opcode, 
size_t len)
 */
BUG_ON(memcmp(addr, opcode, len));
 
-   pte_unmap_unlock(ptep, ptl);
local_irq_restore(flags);
+   pte_unmap_unlock(ptep, ptl);
return addr;
 }
 
-- 
2.25.1


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



[linux-yocto][linux-yocto v5.4/standard/nxp-imx8][PATCH] usb: xhci: Fix a redefined "XHCI_SKIP_PHY_INIT" compiler warning

2021-03-09 Thread jmiao1
Correct the merge conflict, avoiding the compiler warning.
   - Delete the "#define XHCI_SKIP_PHY_INIT  BIT_ULL(38)"
   - Change the #define XHCI_DISABLE_SPARSE BIT_ULL(39) to BIT_ULL(38)

drivers/usb/host/xhci.h:1878: warning: "XHCI_SKIP_PHY_INIT" redefined

fix: e9623875ad0b("Merge branch 'v5.4/standard/base' into 
v5.4/standard/nxp-imx8")
Signed-off-by: Jun Miao 
---
 drivers/usb/host/xhci.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h
index e09754154e80..9178cb786759 100644
--- a/drivers/usb/host/xhci.h
+++ b/drivers/usb/host/xhci.h
@@ -1875,8 +1875,7 @@ struct xhci_hcd {
 #define XHCI_SNPS_BROKEN_SUSPENDBIT_ULL(35)
 #define XHCI_CDNS_HOST BIT_ULL(36)
 #define XHCI_SKIP_PHY_INIT BIT_ULL(37)
-#define XHCI_SKIP_PHY_INIT BIT_ULL(38)
-#define XHCI_DISABLE_SPARSEBIT_ULL(39)
+#define XHCI_DISABLE_SPARSEBIT_ULL(38)
 
unsigned intnum_active_eps;
unsigned intlimit_active_eps;
-- 
2.25.1


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



[linux-yocto][yocto-kernel-cache yocto-5.4][PATCH] nxp-imx8: correct and optimze the CONFIGS to avoid warning

2021-02-04 Thread jmiao1
Delete the duplicated options:
CONFIG_IMX_LCDIF_CORE=y
CONFIG_DRM_IMX_SEC_DSIM=y
CONFIG_USB_GADGET=m (features/usb/usb-gadgets.scc)

Delete the nonexistent options:
CONFIG_MXC_EMVSIM=y
CONFIG_MXC_SIM=y

The options are y selected by our dependencies:
change CONFIG_DRM_TTM to =y
change CONFIG_USB_VIDEO_CLASS to =y

Signed-off-by: Jun Miao 
---
 bsp/nxp-imx8/nxp-imx8.cfg | 8 ++--
 bsp/nxp-imx8/nxp-imx8.scc | 1 -
 2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/bsp/nxp-imx8/nxp-imx8.cfg b/bsp/nxp-imx8/nxp-imx8.cfg
index 65114274..8127348c 100644
--- a/bsp/nxp-imx8/nxp-imx8.cfg
+++ b/bsp/nxp-imx8/nxp-imx8.cfg
@@ -303,7 +303,7 @@ CONFIG_VIDEOBUF2_MEMOPS=y
 CONFIG_VIDEOBUF2_DMA_CONTIG=y
 CONFIG_VIDEOBUF2_VMALLOC=y
 CONFIG_MEDIA_USB_SUPPORT=y
-CONFIG_USB_VIDEO_CLASS=m
+CONFIG_USB_VIDEO_CLASS=y
 CONFIG_V4L_PLATFORM_DRIVERS=y
 CONFIG_VIDEO_MX8_CAPTURE=y
 CONFIG_VIDEO_MXC_CAPTURE=y
@@ -321,7 +321,6 @@ CONFIG_IMX8_PRG=y
 CONFIG_IMX8_DPRC=y
 CONFIG_IMX8_PC=y
 CONFIG_IMX_DPU_BLIT=y
-CONFIG_IMX_LCDIF_CORE=y
 CONFIG_IMX_DPU_CORE=y
 CONFIG_DRM=y
 CONFIG_DRM_MIPI_DSI=y
@@ -329,7 +328,7 @@ CONFIG_DRM_KMS_HELPER=y
 CONFIG_DRM_KMS_FB_HELPER=y
 CONFIG_DRM_FBDEV_EMULATION=y
 CONFIG_DRM_FBDEV_OVERALLOC=100
-CONFIG_DRM_TTM=m
+CONFIG_DRM_TTM=y
 CONFIG_DRM_VRAM_HELPER=m
 CONFIG_DRM_GEM_CMA_HELPER=y
 CONFIG_DRM_KMS_CMA_HELPER=y
@@ -373,7 +372,6 @@ CONFIG_DRM_IMX8QM_LDB=y
 CONFIG_IMX8MP_HDMI_PAVI=y
 CONFIG_DRM_IMX_HDMI=y
 CONFIG_DRM_IMX_DCSS=y
-CONFIG_DRM_IMX_SEC_DSIM=y
 CONFIG_DRM_IMX_LCDIF=y
 CONFIG_DRM_IMX_DPU=y
 CONFIG_DRM_IMX_CDNS_MHDP=y
@@ -498,8 +496,6 @@ CONFIG_TYPEC_SWITCH_GPIO=y
 CONFIG_TYPEC_TCPM=y
 CONFIG_TYPEC_TCPCI=y
 CONFIG_EXTCON_PTN5150=y
-CONFIG_MXC_SIM=y
-CONFIG_MXC_EMVSIM=y
 CONFIG_MXC_MLB150=y
 CONFIG_RESET_CONTROLLER=y
 CONFIG_BACKLIGHT_PWM=y
diff --git a/bsp/nxp-imx8/nxp-imx8.scc b/bsp/nxp-imx8/nxp-imx8.scc
index 557f3472..5ab69a06 100644
--- a/bsp/nxp-imx8/nxp-imx8.scc
+++ b/bsp/nxp-imx8/nxp-imx8.scc
@@ -7,5 +7,4 @@ include cfg/usb-mass-storage.scc
 include arch/arm/32bit-compat.scc
 include features/mac80211/mac80211.scc
 include features/bluetooth/bluetooth.scc
-include features/usb/usb-gadgets.scc
 include features/hugetlb/hugetlb.scc
-- 
2.29.2


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



[linux-yocto][yocto-kernel-cache][yocto-5.4][PATCH] nxp-imx8: add USB support

2021-01-27 Thread jmiao1
Enable the CONFIGS for ChipIdea Highspeed Dual Role Controller support, and the
USB connector is on the imx8qmmek Base Board(MCIMX8-8X-BB).

Signed-off-by: Jun Miao 
---
 bsp/nxp-imx8/nxp-imx8.cfg | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/bsp/nxp-imx8/nxp-imx8.cfg b/bsp/nxp-imx8/nxp-imx8.cfg
index 42e4c6a5..65114274 100644
--- a/bsp/nxp-imx8/nxp-imx8.cfg
+++ b/bsp/nxp-imx8/nxp-imx8.cfg
@@ -66,6 +66,9 @@ CONFIG_USB_ULPI=y
 CONFIG_USB_ULPI_VIEWPORT=y
 CONFIG_USB_SNP_CORE=y
 CONFIG_USB_SNP_UDC_PLAT=y
+CONFIG_USB_CHIPIDEA=y
+CONFIG_USB_CHIPIDEA_UDC=y
+CONFIG_USB_CHIPIDEA_HOST=y
 
 #
 ## Random Number Generation
-- 
2.25.1


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



[linux-yocto][linux-yocto v5.4/standard/nxp-imx8][PATCH 1/2] arm64: link with -z norelro for LLD or aarch64-elf

2021-01-25 Thread jmiao1
From: Nick Desaulniers 

commit 311bea3cb9ee20ef150ca76fc60a592bf6b159f5 upstream

With GNU binutils 2.35+, linking with BFD produces warnings for vmlinux:
aarch64-linux-gnu-ld: warning: -z norelro ignored

BFD can produce this warning when the target emulation mode does not
support RELRO program headers, and -z relro or -z norelro is passed.

Alan Modra clarifies:
  The default linker emulation for an aarch64-linux ld.bfd is
  -maarch64linux, the default for an aarch64-elf linker is
  -maarch64elf.  They are not equivalent.  If you choose -maarch64elf
  you get an emulation that doesn't support -z relro.

The ARCH=arm64 kernel prefers -maarch64elf, but may fall back to
-maarch64linux based on the toolchain configuration.

LLD will always create RELRO program header regardless of target
emulation.

To avoid the above warning when linking with BFD, pass -z norelro only
when linking with LLD or with -maarch64linux.

Fixes: 3b92fa7485eb ("arm64: link with -z norelro regardless of 
CONFIG_RELOCATABLE")
Fixes: 3bbd3db86470 ("arm64: relocatable: fix inconsistencies in linker script 
and options")
Cc:  # 5.0.x-
Reported-by: kernelci.org bot 
Reported-by: Quentin Perret 
Signed-off-by: Nick Desaulniers 
Reviewed-by: Nathan Chancellor 
Acked-by: Ard Biesheuvel 
Cc: Alan Modra 
Cc: Fāng-ruì Sòng 
Link: https://lore.kernel.org/r/20201218002432.788499-1-ndesaulni...@google.com
Signed-off-by: Catalin Marinas 
Signed-off-by: Jun Miao 
---
 arch/arm64/Makefile | 10 +++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile
index cd8f3cdabfd0..d227cf87c48f 100644
--- a/arch/arm64/Makefile
+++ b/arch/arm64/Makefile
@@ -10,7 +10,7 @@
 #
 # Copyright (C) 1995-2001 by Russell King
 
-LDFLAGS_vmlinux:=--no-undefined -X -z norelro
+LDFLAGS_vmlinux:=--no-undefined -X
 CPPFLAGS_vmlinux.lds = -DTEXT_OFFSET=$(TEXT_OFFSET)
 GZFLAGS:=-9
 
@@ -82,17 +82,21 @@ CHECKFLAGS  += -D__AARCH64EB__
 AS += -EB
 # Prefer the baremetal ELF build target, but not all toolchains include
 # it so fall back to the standard linux version if needed.
-KBUILD_LDFLAGS += -EB $(call ld-option, -maarch64elfb, -maarch64linuxb)
+KBUILD_LDFLAGS += -EB $(call ld-option, -maarch64elfb, -maarch64linuxb -z 
norelro)
 UTS_MACHINE:= aarch64_be
 else
 KBUILD_CPPFLAGS+= -mlittle-endian
 CHECKFLAGS += -D__AARCH64EL__
 AS += -EL
 # Same as above, prefer ELF but fall back to linux target if needed.
-KBUILD_LDFLAGS += -EL $(call ld-option, -maarch64elf, -maarch64linux)
+KBUILD_LDFLAGS += -EL $(call ld-option, -maarch64elf, -maarch64linux -z 
norelro)
 UTS_MACHINE:= aarch64
 endif
 
+ifeq ($(CONFIG_LD_IS_LLD), y)
+KBUILD_LDFLAGS += -z norelro
+endif
+
 CHECKFLAGS += -D__aarch64__
 
 ifeq ($(CONFIG_ARM64_MODULE_PLTS),y)
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#9422): 
https://lists.yoctoproject.org/g/linux-yocto/message/9422
Mute This Topic: https://lists.yoctoproject.org/mt/80099136/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 master] ti-am65x: add am65x soc ethernet driver support

2020-09-24 Thread jmiao1
The TI AM65x SoCs Gigabit Ethernet Switch subsystem (CPSW2G NUSS) has
two ports - One Ethernet port (port 1) with selectable RGMII and RMII
interfaces and an internal Communications Port Programming Interface (CPPI)
port (Host port 0) and with ALE in between. It also contains
 - Management Data Input/Output (MDIO) interface for physical layer device 
(PHY) management;
 - Updated Address Lookup Engine (ALE) module;
 - (TBD) New version of Common platform time sync (CPTS) module;

Signed-off-by: Jun Miao 
---
 bsp/ti-am65x/ti-am65x.cfg | 11 +++
 1 file changed, 11 insertions(+)

diff --git a/bsp/ti-am65x/ti-am65x.cfg b/bsp/ti-am65x/ti-am65x.cfg
index 008d388b..4d628d36 100644
--- a/bsp/ti-am65x/ti-am65x.cfg
+++ b/bsp/ti-am65x/ti-am65x.cfg
@@ -158,6 +158,8 @@ CONFIG_SPI_CADENCE_QUADSPI=y
 CONFIG_DMADEVICES=y
 CONFIG_DMA_ENGINE=y
 CONFIG_DMA_OF=y
+CONFIG_TI_K3_UDMA=y
+CONFIG_TI_K3_UDMA_GLUE_LAYER=y
 
 #
 # Common Clock Framework
@@ -165,6 +167,7 @@ CONFIG_DMA_OF=y
 CONFIG_TI_SCI_CLK=y
 CONFIG_TI_SCI_PROTOCOL=y
 CONFIG_TI_SCI_CLK_PROBE_FROM_FW=y
+CONFIG_PTP_1588_CLOCK=y
 
 #
 # Qualcomm SoC drivers
@@ -194,3 +197,11 @@ CONFIG_PHY_AM654_SERDES=y
 CONFIG_PHYLIB=y
 CONFIG_NETDEVICES=y
 CONFIG_DP83867_PHY=y
+
+#
+# NET Support
+#
+CONFIG_TI_K3_RINGACC=y
+CONFIG_TI_K3_AM65_CPSW_NUSS=y
+CONFIG_TI_CPSW_PHY_SEL=y
+CONFIG_TI_K3_AM65_CPTS=y
-- 
2.22.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#9085): 
https://lists.yoctoproject.org/g/linux-yocto/message/9085
Mute This Topic: https://lists.yoctoproject.org/mt/77054137/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]: ti-am335x: enable sdhci-omap driver for SD Card

2020-08-19 Thread jmiao1
Because of the commit 0b4edf111870 ("dts: Move am33xx and am43xx mmc nodes to
sdhci-omap driver") in kernel Linux 5.8-rc3, open the sdhci-omap driver config
fragment to support SD Card.

Signed-off-by: Jun Miao 
---
 bsp/ti-am335x/ti-am335x.cfg | 4 
 1 file changed, 4 insertions(+)

diff --git a/bsp/ti-am335x/ti-am335x.cfg b/bsp/ti-am335x/ti-am335x.cfg
index d091279c..7dbc28ac 100644
--- a/bsp/ti-am335x/ti-am335x.cfg
+++ b/bsp/ti-am335x/ti-am335x.cfg
@@ -217,6 +217,10 @@ CONFIG_MMC_BLOCK_MINORS=8
 CONFIG_MMC_OMAP=y
 CONFIG_MMC_OMAP_HS=y
 
+CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_PLTFM=y
+CONFIG_MMC_SDHCI_OMAP=y
+
 #
 # I2C RTC drivers
 #
-- 
2.26.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8979): 
https://lists.yoctoproject.org/g/linux-yocto/message/8979
Mute This Topic: https://lists.yoctoproject.org/mt/76302690/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-dev standard/base][PATCH 2/2] arm64: dts: ti: k3-am654-base-board: Add Support for SD card

2020-07-24 Thread jmiao1
From: Faiz Abbas 

commit 4a77a43537ba1aa31ac8792095e9e35253cabff7 from branch ti-linux-4.19.y:
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git

The 2nd sdhci instance is connected to an SD card on am654-evm. Add
board specific properties and pinmux for the same.

Signed-off-by: Faiz Abbas 
Signed-off-by: Sekhar Nori 
Signed-off-by: Jun Miao 
---
 .../arm64/boot/dts/ti/k3-am654-base-board.dts | 19 +++
 1 file changed, 19 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts 
b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
index 2f3d3316a1cf..1d00411d6e99 100644
--- a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
+++ b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
@@ -167,6 +167,19 @@ AM65X_IOPAD(0x01b0, PIN_INPUT, 0) /* (C25) MMC0_DS */
>;
};
 
+   main_mmc1_pins_default: main_mmc1_pins_default {
+   pinctrl-single,pins = <
+   AM65X_IOPAD(0x02d4, PIN_INPUT_PULLDOWN, 0) /* (C27) 
MMC1_CLK */
+   AM65X_IOPAD(0x02d8, PIN_INPUT_PULLUP, 0) /* (C28) 
MMC1_CMD */
+   AM65X_IOPAD(0x02d0, PIN_INPUT_PULLUP, 0) /* (D28) 
MMC1_DAT0 */
+   AM65X_IOPAD(0x02cc, PIN_INPUT_PULLUP, 0) /* (E27) 
MMC1_DAT1 */
+   AM65X_IOPAD(0x02c8, PIN_INPUT_PULLUP, 0) /* (D26) 
MMC1_DAT2 */
+   AM65X_IOPAD(0x02c4, PIN_INPUT_PULLUP, 0) /* (D27) 
MMC1_DAT3 */
+   AM65X_IOPAD(0x02dc, PIN_INPUT_PULLUP, 0) /* (B24) 
MMC1_SDCD */
+   AM65X_IOPAD(0x02e0, PIN_INPUT, 0) /* (C24) MMC1_SDWP */
+   >;
+   };
+
usb1_pins_default: usb1_pins_default {
pinctrl-single,pins = <
AM65X_IOPAD(0x02c0, PIN_OUTPUT, 0) /* (AC8) 
USB1_DRVVBUS */
@@ -300,6 +313,12 @@  {
disable-wp;
 };
 
+ {
+   pinctrl-names = "default";
+   pinctrl-0 = <_mmc1_pins_default>;
+   ti,driver-strength-ohm = <50>;
+};
+
 _1 {
status = "okay";
 };
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8870): 
https://lists.yoctoproject.org/g/linux-yocto/message/8870
Mute This Topic: https://lists.yoctoproject.org/mt/75762474/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-dev standard/base][PATCH 1/2] arm64: dts: ti: k3-am65-main: Enable support for sdhci1

2020-07-24 Thread jmiao1
From: Faiz Abbas 

commit bb40213e83549b52e46baac3979046dc17e6b58a from branch ti-linux-4.19.y:
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git

Add support for the 2nd Secure Digital Host controller instance present
in TI's am654 SoC.

Signed-off-by: Faiz Abbas 
Signed-off-by: Sekhar Nori 
Signed-off-by: Jun Miao 
---
 arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 14 ++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi 
b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
index 11887c72f23a..8c198a40de24 100644
--- a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
@@ -249,6 +249,20 @@ sdhci0: sdhci@4f8 {
dma-coherent;
};
 
+   sdhci1: sdhci@4fa {
+   compatible = "ti,am654-sdhci-5.1";
+   reg = <0x0 0x4fa 0x0 0x260>, <0x0 0x4fb 0x0 0x134>;
+   power-domains = <_pds 48 TI_SCI_PD_EXCLUSIVE>;
+   clocks = <_clks 48 0>, <_clks 48 1>;
+   clock-names = "clk_ahb", "clk_xin";
+   interrupts = ;
+   ti,otap-del-sel = <0x2>;
+   ti,trm-icp = <0x8>;
+   wp-inverted = <0x1>;
+   no-1-8-v;
+   dma-coherent;
+   };
+
scm_conf: scm_conf@10 {
compatible = "syscon", "simple-mfd";
reg = <0 0x0010 0 0x1c000>;
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8869): 
https://lists.yoctoproject.org/g/linux-yocto/message/8869
Mute This Topic: https://lists.yoctoproject.org/mt/75762470/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[linux-yocto][linux-yocto v5.4/standard/base][PATCH] arm64: dts: ti: k3-am65-main: add sd wp-invert into k3-am65 dtb

2020-07-10 Thread jmiao1
Fix a VFS: unable to mount roofs because of SD card is read only.
The error value(-30) means that the sd card is read only, but in fact the card 
isn't
write-protect. We add the wr-inverted into k3-am65-dts to change the return 
value for
getting the correct state, so that we can mount the rootfs normally and it 
works well.

Error log:
mmcblk1: p1 p2
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
VFS: Cannot open root device "mmcblk1p2" or unknown-block(179,26): error -30
Please append a correct "root=" boot option; here are the available partitions:
0100 4096 ram0
(driver?)
0101 4096 ram1
(driver?)
0102 4096 ram2

Signed-off-by: Jun Miao 
---
 arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi 
b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
index 670796a933fa..967d54ff9684 100644
--- a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
@@ -255,6 +255,7 @@
mmc-hs200-1_8v;
ti,otap-del-sel = <0x2>;
ti,trm-icp = <0x8>;
+   wp-inverted = <0x1>;
dma-coherent;
};
 
@@ -267,6 +268,7 @@
interrupts = ;
ti,otap-del-sel = <0x2>;
ti,trm-icp = <0x8>;
+   wp-inverted = <0x1>;
no-1-8-v;
dma-coherent;
};
-- 
2.26.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8817): 
https://lists.yoctoproject.org/g/linux-yocto/message/8817
Mute This Topic: https://lists.yoctoproject.org/mt/75416269/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[linux-yocto][kernel-cache master][PATCH] feathures/stm: Add support for System Trace Module

2020-04-27 Thread jmiao1
A System Trace Module (STM) is a device exporting data in System Trace Protocol
(STP) format as defined by MIPI STP standards.Examples of such devices are
Intel(R) Trace Hub and Coresight STM.
And the Intel(R) Software Trace Hub uses stm class device to interface with its
sources.


Signed-off-by: Jun Miao 
---
 bsp/intel-x86/intel-x86.scc | 1 +
 features/stm/stm.cfg| 7 +++
 features/stm/stm.scc| 4 
 3 files changed, 12 insertions(+)
 create mode 100644 features/stm/stm.cfg
 create mode 100644 features/stm/stm.scc

diff --git a/bsp/intel-x86/intel-x86.scc b/bsp/intel-x86/intel-x86.scc
index 6e94ef9f..7b606078 100644
--- a/bsp/intel-x86/intel-x86.scc
+++ b/bsp/intel-x86/intel-x86.scc
@@ -43,6 +43,7 @@ include features/intel-pinctrl/intel-pinctrl.scc
 include features/mgag200/mgag200.scc
 include features/thunderbolt/thunderbolt.scc
 include features/intel-th/intel-th.scc
+include features/stm/stm.scc
 
 kconf hardware intel-x86.cfg
 kconf hardware intel-x86-mga.cfg
diff --git a/features/stm/stm.cfg b/features/stm/stm.cfg
new file mode 100644
index ..83fe45a9
--- /dev/null
+++ b/features/stm/stm.cfg
@@ -0,0 +1,7 @@
+CONFIG_STM=m
+CONFIG_STM_PROTO_BASIC=m
+CONFIG_STM_PROTO_SYS_T=m
+CONFIG_STM_DUMMY=m
+CONFIG_STM_SOURCE_CONSOLE=m
+CONFIG_STM_SOURCE_HEARTBEAT=m
+CONFIG_STM_SOURCE_FTRACE=m
diff --git a/features/stm/stm.scc b/features/stm/stm.scc
new file mode 100644
index ..1e340623
--- /dev/null
+++ b/features/stm/stm.scc
@@ -0,0 +1,4 @@
+# SPDX-License-Identifier: MIT
+define KFEATURE_DESCRIPTION "A System Trace Module support"
+
+kconf hardware stm.cfg
-- 
2.24.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8623): 
https://lists.yoctoproject.org/g/linux-yocto/message/8623
Mute This Topic: https://lists.yoctoproject.org/mt/73301268/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[linux-yocto][kernel-cache master][PATCH] feathures/intel-th: Add support for Intel Trace Hub

2020-04-22 Thread jmiao1
Intel Trace Hub is a new concept/mechanism, used to transport messages from the
SoC to external monitor through a USB connector.
Add the Intel Trace Hub support on Tiger Lake UP3/UP4 Platform.

Signed-off-by: Jun Miao 
---
 bsp/intel-x86/intel-x86.scc| 1 +
 features/intel-th/intel-th.cfg | 8 
 features/intel-th/intel-th.scc | 4 
 3 files changed, 13 insertions(+)
 create mode 100644 features/intel-th/intel-th.cfg
 create mode 100644 features/intel-th/intel-th.scc

diff --git a/bsp/intel-x86/intel-x86.scc b/bsp/intel-x86/intel-x86.scc
index c4dad375..6e94ef9f 100644
--- a/bsp/intel-x86/intel-x86.scc
+++ b/bsp/intel-x86/intel-x86.scc
@@ -42,6 +42,7 @@ include features/mmc/mmc-realtek.scc
 include features/intel-pinctrl/intel-pinctrl.scc
 include features/mgag200/mgag200.scc
 include features/thunderbolt/thunderbolt.scc
+include features/intel-th/intel-th.scc
 
 kconf hardware intel-x86.cfg
 kconf hardware intel-x86-mga.cfg
diff --git a/features/intel-th/intel-th.cfg b/features/intel-th/intel-th.cfg
new file mode 100644
index ..a74438fa
--- /dev/null
+++ b/features/intel-th/intel-th.cfg
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: MIT
+CONFIG_INTEL_TH=m
+CONFIG_INTEL_TH_PCI=m
+CONFIG_INTEL_TH_ACPI=m
+CONFIG_INTEL_TH_GTH=m
+CONFIG_INTEL_TH_STH=m
+CONFIG_INTEL_TH_MSU=m
+CONFIG_INTEL_TH_PTI=m
diff --git a/features/intel-th/intel-th.scc b/features/intel-th/intel-th.scc
new file mode 100644
index ..8b971982
--- /dev/null
+++ b/features/intel-th/intel-th.scc
@@ -0,0 +1,4 @@
+# SPDX-License-Identifier: MIT
+define KFEATURE_DESCRIPTION "Intel Trace Hub support"
+
+kconf hardware intel-th.cfg
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8618): 
https://lists.yoctoproject.org/g/linux-yocto/message/8618
Mute This Topic: https://lists.yoctoproject.org/mt/73211776/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[linux-yocto][kernel-cache master][PATCH] features/thunderbolt: Add support for WMI interface and networking over thunderbolt

2020-04-19 Thread jmiao1
In the new kernel version, CONFIG_THUNDERBOLT be replaced by CONFIG_USB4.
Meanwhile, enable WMI interface support.

Signed-off-by: Jun Miao 
---
 features/thunderbolt/thunderbolt.cfg | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/features/thunderbolt/thunderbolt.cfg 
b/features/thunderbolt/thunderbolt.cfg
index 2408da5b..b110f956 100644
--- a/features/thunderbolt/thunderbolt.cfg
+++ b/features/thunderbolt/thunderbolt.cfg
@@ -1,2 +1,4 @@
 # SPDX-License-Identifier: MIT
-CONFIG_THUNDERBOLT=m
+CONFIG_USB4=m
+CONFIG_INTEL_WMI_THUNDERBOLT=m
+CONFIG_USB4_NET=m
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8613): 
https://lists.yoctoproject.org/g/linux-yocto/message/8613
Mute This Topic: https://lists.yoctoproject.org/mt/73142752/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[linux-yocto][yocto-kernel-cache yocto-5.4/master] [PATCH 1/1] bsp/ti-am335x: drop PRUSS invalid cfg option

2020-03-23 Thread jmiao1
There isn`t PRUSS(Programmable Real-Time Units) driver in kernel. So removed it 
support under the basic support to avoid kernel_configcheck build warning.

Signed-off-by: Jun Miao 
---
 cfg/remoteproc.cfg | 1 -
 1 file changed, 1 deletion(-)

diff --git a/cfg/remoteproc.cfg b/cfg/remoteproc.cfg
index d02a7947..b4f13fd7 100644
--- a/cfg/remoteproc.cfg
+++ b/cfg/remoteproc.cfg
@@ -1,4 +1,3 @@
 # SPDX-License-Identifier: MIT
 CONFIG_REMOTEPROC=m
 CONFIG_WKUP_M3_RPROC=m
-CONFIG_PRUSS_REMOTEPROC=m
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8547): 
https://lists.yoctoproject.org/g/linux-yocto/message/8547
Mute This Topic: https://lists.yoctoproject.org/mt/72488581/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[linux-yocto] [PATCH 1/2] arm64: dts: ti: k3-am65-main: Enable support for sdhci1

2020-03-16 Thread jmiao1
From: Faiz Abbas 

commit bb40213e83549b52e46baac3979046dc17e6b58a from branch ti-linux-4.19.y:
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git

Add support for the 2nd Secure Digital Host controller instance present
in TI's am654 SoC.

Signed-off-by: Faiz Abbas 
Signed-off-by: Sekhar Nori 
Signed-off-by: Jun Miao 
---
 arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 13 +
 1 file changed, 13 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi 
b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
index e5df20a..9361da8 100644
--- a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
@@ -247,6 +247,19 @@
dma-coherent;
};
 
+   sdhci1: sdhci@4fa {
+   compatible = "ti,am654-sdhci-5.1";
+   reg = <0x0 0x4fa 0x0 0x260>, <0x0 0x4fb 0x0 0x134>;
+   power-domains = <_pds 48 TI_SCI_PD_EXCLUSIVE>;
+   clocks = <_clks 48 0>, <_clks 48 1>;
+   clock-names = "clk_ahb", "clk_xin";
+   interrupts = ;
+   ti,otap-del-sel = <0x2>;
+   ti,trm-icp = <0x8>;
+   no-1-8-v;
+   dma-coherent;
+   };
+
scm_conf: scm_conf@10 {
compatible = "syscon", "simple-mfd";
reg = <0 0x0010 0 0x1c000>;
-- 
2.7.4

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8488): 
https://lists.yoctoproject.org/g/linux-yocto/message/8488
Mute This Topic: https://lists.yoctoproject.org/mt/71991888/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[linux-yocto] [PATCH 2/2] arm64: dts: ti: k3-am654-base-board: Add Support for SD card

2020-03-16 Thread jmiao1
From: Faiz Abbas 

commit 4a77a43537ba1aa31ac8792095e9e35253cabff7 from branch ti-linux-4.19.y:
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git

The 2nd sdhci instance is connected to an SD card on am654-evm. Add
board specific properties and pinmux for the same.

Signed-off-by: Faiz Abbas 
Signed-off-by: Sekhar Nori 
Signed-off-by: Jun Miao 
---
 arch/arm64/boot/dts/ti/k3-am654-base-board.dts | 19 +++
 1 file changed, 19 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts 
b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
index 1700996..154e768 100644
--- a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
+++ b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
@@ -143,6 +143,19 @@
>;
};
 
+   main_mmc1_pins_default: main_mmc1_pins_default {
+   pinctrl-single,pins = <
+   AM65X_IOPAD(0x02d4, PIN_INPUT_PULLDOWN, 0) /* (C27) 
MMC1_CLK */
+   AM65X_IOPAD(0x02d8, PIN_INPUT_PULLUP, 0) /* (C28) 
MMC1_CMD */
+   AM65X_IOPAD(0x02d0, PIN_INPUT_PULLUP, 0) /* (D28) 
MMC1_DAT0 */
+   AM65X_IOPAD(0x02cc, PIN_INPUT_PULLUP, 0) /* (E27) 
MMC1_DAT1 */
+   AM65X_IOPAD(0x02c8, PIN_INPUT_PULLUP, 0) /* (D26) 
MMC1_DAT2 */
+   AM65X_IOPAD(0x02c4, PIN_INPUT_PULLUP, 0) /* (D27) 
MMC1_DAT3 */
+   AM65X_IOPAD(0x02dc, PIN_INPUT_PULLUP, 0) /* (B24) 
MMC1_SDCD */
+   AM65X_IOPAD(0x02e0, PIN_INPUT, 0) /* (C24) MMC1_SDWP */
+   >;
+   };
+
usb1_pins_default: usb1_pins_default {
pinctrl-single,pins = <
AM65X_IOPAD(0x02c0, PIN_OUTPUT, 0) /* (AC8) 
USB1_DRVVBUS */
@@ -276,6 +289,12 @@
disable-wp;
 };
 
+ {
+   pinctrl-names = "default";
+   pinctrl-0 = <_mmc1_pins_default>;
+   ti,driver-strength-ohm = <50>;
+};
+
 _1 {
status = "okay";
 };
-- 
2.7.4

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8487): 
https://lists.yoctoproject.org/g/linux-yocto/message/8487
Mute This Topic: https://lists.yoctoproject.org/mt/71991882/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-dev]: [kernel standard/base] ti-am65x: add SD card support

2020-03-16 Thread jmiao1
Hi Bruce,

I am working on BSP ti-am65x platform, and intend to merge this BSP supporting 
into yocto community.
Below 2 patches are used to improve SD card.


Faiz Abbas (2):
  arm64: dts: ti: k3-am65-main: Enable support for sdhci1
  arm64: dts: ti: k3-am654-base-board: Add Support for SD card

 arch/arm64/boot/dts/ti/k3-am65-main.dtsi   | 13 +
 arch/arm64/boot/dts/ti/k3-am654-base-board.dts | 19 +++
 2 files changed, 32 insertions(+)

-- 
2.7.4

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8486): 
https://lists.yoctoproject.org/g/linux-yocto/message/8486
Mute This Topic: https://lists.yoctoproject.org/mt/71991878/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[linux-yocto] [PATCH 3/4] arm64: dts: ti: k3-am654-base-board: Add OSPI entry

2020-02-28 Thread jmiao1
From: Vignesh R 

commit 3a004451c7652bb9f6f2476ac4a1f3a070e8ed46 from
https://git.ti.com/git/processor-sdk/processor-sdk-linux.git branch: 
processor-sdk-linux-4.19.y

Add OSPI node and flash device entry

Reviewed-by: Roger Quadros 
Signed-off-by: Vignesh R 
Signed-off-by: Sekhar Nori 
Signed-off-by: Jun Miao 
---
 .../arm64/boot/dts/ti/k3-am654-base-board.dts | 38 +++
 1 file changed, 38 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts 
b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
index 019e3f632f17..069d6f48b188 100644
--- a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
+++ b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
@@ -69,6 +69,22 @@
AM65X_WKUP_IOPAD(0x003c, PIN_INPUT, 7) /* (P2) 
WKUP_GPIO0_27 */
>;
};
+
+   mcu_fss0_ospi0_pins_default: mcu-fss0-ospi0-pins_default {
+   pinctrl-single,pins = <
+   AM65X_WKUP_IOPAD(0x, PIN_OUTPUT, 0) /* (V1) 
MCU_OSPI0_CLK */
+   AM65X_WKUP_IOPAD(0x0008, PIN_INPUT, 0)   /* (U2) 
MCU_OSPI0_DQS */
+   AM65X_WKUP_IOPAD(0x000c, PIN_INPUT, 0)  /* (U4) 
MCU_OSPI0_D0 */
+   AM65X_WKUP_IOPAD(0x0010, PIN_INPUT, 0)  /* (U5) 
MCU_OSPI0_D1 */
+   AM65X_WKUP_IOPAD(0x0014, PIN_INPUT, 0)  /* (T2) 
MCU_OSPI0_D2 */
+   AM65X_WKUP_IOPAD(0x0018, PIN_INPUT, 0)  /* (T3) 
MCU_OSPI0_D3 */
+   AM65X_WKUP_IOPAD(0x001c, PIN_INPUT, 0)  /* (T4) 
MCU_OSPI0_D4 */
+   AM65X_WKUP_IOPAD(0x0020, PIN_INPUT, 0)  /* (T5) 
MCU_OSPI0_D5 */
+   AM65X_WKUP_IOPAD(0x0024, PIN_INPUT, 0)  /* (R2) 
MCU_OSPI0_D6 */
+   AM65X_WKUP_IOPAD(0x0028, PIN_INPUT, 0)  /* (R3) 
MCU_OSPI0_D7 */
+   AM65X_WKUP_IOPAD(0x002c, PIN_OUTPUT, 0) /* (R4) 
MCU_OSPI0_CSn0 */
+   >;
+   };
 };
 
 _pmx0 {
@@ -276,6 +292,28 @@
};
 };
 
+ {
+   pinctrl-names = "default";
+   pinctrl-0 = <_fss0_ospi0_pins_default>;
+
+   flash@0{
+   compatible = "jedec,spi-nor";
+   reg = <0x0>;
+   spi-tx-bus-width = <1>;
+   spi-rx-bus-width = <8>;
+   spi-max-frequency = <5000>;
+   spi-dqs;
+   cdns,tshsl-ns = <60>;
+   cdns,tsd2d-ns = <60>;
+   cdns,tchsh-ns = <60>;
+   cdns,tslch-ns = <60>;
+   cdns,read-delay = <2>;
+   cdns,phy-mode;
+   #address-cells = <1>;
+   #size-cells = <1>;
+   };
+};
+
  {
status = "disabled";
 };
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8417): 
https://lists.yoctoproject.org/g/linux-yocto/message/8417
Mute This Topic: https://lists.yoctoproject.org/mt/71610970/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[linux-yocto] [PATCH 2/4] arm64: dts: ti: k3-am65-main: Enable support for sdhci1

2020-02-28 Thread jmiao1
From: Faiz Abbas 

commit bb40213e83549b52e46baac3979046dc17e6b58a from branch ti-linux-4.19.y:
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git

Add support for the 2nd Secure Digital Host controller instance present
in TI's am654 SoC.

Signed-off-by: Faiz Abbas 
Signed-off-by: Sekhar Nori 
Signed-off-by: Jun Miao 
---
 arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 13 +
 1 file changed, 13 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi 
b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
index 799c75fa7981..794454cfb9ba 100644
--- a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
@@ -258,6 +258,19 @@
dma-coherent;
};
 
+   sdhci1: sdhci@4fa {
+   compatible = "ti,am654-sdhci-5.1";
+   reg = <0x0 0x4fa 0x0 0x260>, <0x0 0x4fb 0x0 0x134>;
+   power-domains = <_pds 48 TI_SCI_PD_EXCLUSIVE>;
+   clocks = <_clks 48 0>, <_clks 48 1>;
+   clock-names = "clk_ahb", "clk_xin";
+   interrupts = ;
+   ti,otap-del-sel = <0x2>;
+   ti,trm-icp = <0x8>;
+   no-1-8-v;
+   dma-coherent;
+   };
+
scm_conf: scm_conf@10 {
compatible = "syscon", "simple-mfd";
reg = <0 0x0010 0 0x1c000>;
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8416): 
https://lists.yoctoproject.org/g/linux-yocto/message/8416
Mute This Topic: https://lists.yoctoproject.org/mt/71610969/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[linux-yocto] [PATCH 1/4] arm64: dts: ti: k3-am654-base-board: Add Support for SD card

2020-02-28 Thread jmiao1
From: Faiz Abbas 

commit 4a77a43537ba1aa31ac8792095e9e35253cabff7 from branch ti-linux-4.19.y:
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git

The 2nd sdhci instance is connected to an SD card on am654-evm. Add
board specific properties and pinmux for the same.

Signed-off-by: Faiz Abbas 
Signed-off-by: Sekhar Nori 
Signed-off-by: Jun Miao 
---
 .../arm64/boot/dts/ti/k3-am654-base-board.dts | 19 +++
 1 file changed, 19 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts 
b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
index 1102b84f853d..019e3f632f17 100644
--- a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
+++ b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
@@ -114,6 +114,19 @@
>;
};
 
+   main_mmc1_pins_default: main_mmc1_pins_default {
+   pinctrl-single,pins = <
+   AM65X_IOPAD(0x02d4, PIN_INPUT_PULLDOWN, 0) /* (C27) 
MMC1_CLK */
+   AM65X_IOPAD(0x02d8, PIN_INPUT_PULLUP, 0) /* (C28) 
MMC1_CMD */
+   AM65X_IOPAD(0x02d0, PIN_INPUT_PULLUP, 0) /* (D28) 
MMC1_DAT0 */
+   AM65X_IOPAD(0x02cc, PIN_INPUT_PULLUP, 0) /* (E27) 
MMC1_DAT1 */
+   AM65X_IOPAD(0x02c8, PIN_INPUT_PULLUP, 0) /* (D26) 
MMC1_DAT2 */
+   AM65X_IOPAD(0x02c4, PIN_INPUT_PULLUP, 0) /* (D27) 
MMC1_DAT3 */
+   AM65X_IOPAD(0x02dc, PIN_INPUT_PULLUP, 0) /* (B24) 
MMC1_SDCD */
+   AM65X_IOPAD(0x02e0, PIN_INPUT, 0) /* (C24) MMC1_SDWP */
+   >;
+   };
+
usb1_pins_default: usb1_pins_default {
pinctrl-single,pins = <
AM65X_IOPAD(0x02c0, PIN_OUTPUT, 0) /* (AC8) 
USB1_DRVVBUS */
@@ -223,6 +236,12 @@
ti,driver-strength-ohm = <50>;
 };
 
+ {
+   pinctrl-names = "default";
+   pinctrl-0 = <_mmc1_pins_default>;
+   ti,driver-strength-ohm = <50>;
+};
+
 _1 {
status = "okay";
 };
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8413): 
https://lists.yoctoproject.org/g/linux-yocto/message/8413
Mute This Topic: https://lists.yoctoproject.org/mt/71610950/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[linux-yocto][linux-yocto v5.4/standard/base] ti-am65x: dts: SPI-NOR SD support

2020-02-28 Thread jmiao1
Hi Bruce,

  There are not the following four patches from linux-yocto-dev to linux-yocto.
  Could you help me merge to linux-yocto v5.4/standard/base branch?

Thanks
Jun



Faiz Abbas (2):
  arm64: dts: ti: k3-am654-base-board: Add Support for SD card
  arm64: dts: ti: k3-am65-main: Enable support for sdhci1

Vignesh R (2):
  arm64: dts: ti: k3-am654-base-board: Add OSPI entry
  arm64: dts: k3-am6: Add FSS and OSPI nodes

 arch/arm64/boot/dts/ti/k3-am65-main.dtsi  | 13 +
 arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi   | 41 +
 arch/arm64/boot/dts/ti/k3-am65.dtsi   | 10 +++-
 .../arm64/boot/dts/ti/k3-am654-base-board.dts | 57 +++
 4 files changed, 119 insertions(+), 2 deletions(-)

-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8414): 
https://lists.yoctoproject.org/g/linux-yocto/message/8414
Mute This Topic: https://lists.yoctoproject.org/mt/71610951/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[linux-yocto] [PATCH 4/4] arm64: dts: k3-am6: Add FSS and OSPI nodes

2020-02-28 Thread jmiao1
From: Vignesh R 

commit 32bad8b7367310ee86270f3c67f444d3c5bcff76 from
https://git.ti.com/git/processor-sdk/processor-sdk-linux.git branch: 
processor-sdk-linux-4.19.y

AM654 SoC has a Flash Subsystem(FSS) with two Cadence Octal SPI(OSPI)
controllers. Add DT entries for the same.

Reviewed-by: Roger Quadros 
Signed-off-by: Vignesh R 
Signed-off-by: Sekhar Nori 
Signed-off-by: Jun Miao 
---
 arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi | 41 +
 arch/arm64/boot/dts/ti/k3-am65.dtsi | 10 --
 2 files changed, 49 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi 
b/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi
index 7bdf5342f58f..e32a7d13a72e 100644
--- a/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi
@@ -95,4 +95,45 @@
compatible = "ti,am654-adc", "ti,am3359-adc";
};
};
+
+   fss: fss@4700 {
+   compatible = "simple-bus";
+   #address-cells = <2>;
+   #size-cells = <2>;
+   ranges;
+
+   ospi0: spi@4704 {
+   compatible = "ti,am654-ospi", "cdns,qspi-nor";
+   reg = <0x0 0x4704 0x0 0x100>,
+   <0x5 0x 0x1 0x000>;
+   interrupts = ;
+   cdns,fifo-depth = <256>;
+   cdns,fifo-width = <4>;
+   cdns,trigger-address = <0x5000>;
+   cdns,delay-elem-ps = <80>;
+   clocks = <_clks 55 5>;
+   assigned-clocks = <_clks 55 5>;
+   assigned-clock-parents = <_clks 55 7>;
+   assigned-clock-rates = <1>;
+   power-domains = <_pds 55>;
+   #address-cells = <1>;
+   #size-cells = <0>;
+   dma-coherent;
+   };
+
+   ospi1: spi@4705 {
+   compatible = "ti,am654-ospi", "cdns,qspi-nor";
+   reg = <0x0 0x4705 0x0 0x100>,
+   <0x7 0x 0x1 0x>;
+   interrupts = ;
+   cdns,fifo-depth = <256>;
+   cdns,fifo-width = <4>;
+   cdns,trigger-address = <0x5800>;
+   clocks = <_clks 55 16>;
+   power-domains = <_pds 55>;
+   #address-cells = <1>;
+   #size-cells = <0>;
+   dma-coherent;
+   };
+   };
 };
diff --git a/arch/arm64/boot/dts/ti/k3-am65.dtsi 
b/arch/arm64/boot/dts/ti/k3-am65.dtsi
index 6dfccd5d56c8..5efac52acffe 100644
--- a/arch/arm64/boot/dts/ti/k3-am65.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am65.dtsi
@@ -80,7 +80,10 @@
 <0x00 0x4204 0x00 0x4204 0x00 0x03ac2400>,
 <0x00 0x4510 0x00 0x4510 0x00 0x00c24000>,
 <0x00 0x4600 0x00 0x4600 0x00 0x0020>,
-<0x00 0x4700 0x00 0x4700 0x00 0x00068400>;
+<0x00 0x4700 0x00 0x4700 0x00 0x00068400>,
+<0x00 0x5000 0x00 0x5000 0x00 0x800>,
+<0x05 0x 0x05 0x 0x01 0x000>,
+<0x07 0x 0x07 0x 0x01 0x000>;
 
cbass_mcu: interconnect@2838 {
compatible = "simple-bus";
@@ -94,7 +97,10 @@
 <0x00 0x4204 0x00 0x4204 0x00 
0x03ac2400>, /* WKUP */
 <0x00 0x4510 0x00 0x4510 0x00 
0x00c24000>, /* MMRs, remaining NAVSS */
 <0x00 0x4600 0x00 0x4600 0x00 
0x0020>, /* CPSW */
-<0x00 0x4700 0x00 0x4700 0x00 
0x00068400>; /* OSPI space 1 */
+<0x00 0x4700 0x00 0x4700 0x00 
0x00068400>, /* OSPI space 1 */
+<0x00 0x5000 0x00 0x5000 0x00 
0x800>, /*  FSS OSPI0 data region 1 */
+<0x05 0x 0x05 0x 0x01 
0x000>, /* FSS OSPI0 data region 3*/
+<0x07 0x 0x07 0x 0x01 
0x000>; /* FSS OSPI1 data region 3*/
 
cbass_wakeup: interconnect@4204 {
compatible = "simple-bus";
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8415): 
https://lists.yoctoproject.org/g/linux-yocto/message/8415
Mute This Topic: https://lists.yoctoproject.org/mt/71610963/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  

[linux-yocto] [PATCH 2/4] arm64: dts: ti: k3-am65-main: Enable support for sdhci1

2020-01-18 Thread jmiao1
From: Faiz Abbas 

commit bb40213e83549b52e46baac3979046dc17e6b58a from branch ti-linux-4.19.y:
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git

Add support for the 2nd Secure Digital Host controller instance present
in TI's am654 SoC.

Signed-off-by: Faiz Abbas 
Signed-off-by: Sekhar Nori 
Signed-off-by: Jun Miao 
---
 arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 13 +
 1 file changed, 13 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi 
b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
index efb24579922c..4be898db0347 100644
--- a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
@@ -258,6 +258,19 @@
dma-coherent;
};
 
+   sdhci1: sdhci@4fa {
+   compatible = "ti,am654-sdhci-5.1";
+   reg = <0x0 0x4fa 0x0 0x260>, <0x0 0x4fb 0x0 0x134>;
+   power-domains = <_pds 48 TI_SCI_PD_EXCLUSIVE>;
+   clocks = <_clks 48 0>, <_clks 48 1>;
+   clock-names = "clk_ahb", "clk_xin";
+   interrupts = ;
+   ti,otap-del-sel = <0x2>;
+   ti,trm-icp = <0x8>;
+   no-1-8-v;
+   dma-coherent;
+   };
+
scm_conf: scm_conf@10 {
compatible = "syscon", "simple-mfd";
reg = <0 0x0010 0 0x1c000>;
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8338): 
https://lists.yoctoproject.org/g/linux-yocto/message/8338
Mute This Topic: https://lists.yoctoproject.org/mt/69903840/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[linux-yocto] [PATCH 4/4] arm64: dts: k3-am6: Add FSS and OSPI nodes

2020-01-18 Thread jmiao1
From: Vignesh R 

commit 32bad8b7367310ee86270f3c67f444d3c5bcff76 from
https://git.ti.com/git/processor-sdk/processor-sdk-linux.git branch: 
processor-sdk-linux-4.19.y

AM654 SoC has a Flash Subsystem(FSS) with two Cadence Octal SPI(OSPI)
controllers. Add DT entries for the same.

Reviewed-by: Roger Quadros 
Signed-off-by: Vignesh R 
Signed-off-by: Sekhar Nori 
Signed-off-by: Jun Miao 
---
 arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi | 41 +
 arch/arm64/boot/dts/ti/k3-am65.dtsi | 10 --
 2 files changed, 49 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi 
b/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi
index 7bdf5342f58f..e32a7d13a72e 100644
--- a/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi
@@ -95,4 +95,45 @@
compatible = "ti,am654-adc", "ti,am3359-adc";
};
};
+
+   fss: fss@4700 {
+   compatible = "simple-bus";
+   #address-cells = <2>;
+   #size-cells = <2>;
+   ranges;
+
+   ospi0: spi@4704 {
+   compatible = "ti,am654-ospi", "cdns,qspi-nor";
+   reg = <0x0 0x4704 0x0 0x100>,
+   <0x5 0x 0x1 0x000>;
+   interrupts = ;
+   cdns,fifo-depth = <256>;
+   cdns,fifo-width = <4>;
+   cdns,trigger-address = <0x5000>;
+   cdns,delay-elem-ps = <80>;
+   clocks = <_clks 55 5>;
+   assigned-clocks = <_clks 55 5>;
+   assigned-clock-parents = <_clks 55 7>;
+   assigned-clock-rates = <1>;
+   power-domains = <_pds 55>;
+   #address-cells = <1>;
+   #size-cells = <0>;
+   dma-coherent;
+   };
+
+   ospi1: spi@4705 {
+   compatible = "ti,am654-ospi", "cdns,qspi-nor";
+   reg = <0x0 0x4705 0x0 0x100>,
+   <0x7 0x 0x1 0x>;
+   interrupts = ;
+   cdns,fifo-depth = <256>;
+   cdns,fifo-width = <4>;
+   cdns,trigger-address = <0x5800>;
+   clocks = <_clks 55 16>;
+   power-domains = <_pds 55>;
+   #address-cells = <1>;
+   #size-cells = <0>;
+   dma-coherent;
+   };
+   };
 };
diff --git a/arch/arm64/boot/dts/ti/k3-am65.dtsi 
b/arch/arm64/boot/dts/ti/k3-am65.dtsi
index 6dfccd5d56c8..5efac52acffe 100644
--- a/arch/arm64/boot/dts/ti/k3-am65.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am65.dtsi
@@ -80,7 +80,10 @@
 <0x00 0x4204 0x00 0x4204 0x00 0x03ac2400>,
 <0x00 0x4510 0x00 0x4510 0x00 0x00c24000>,
 <0x00 0x4600 0x00 0x4600 0x00 0x0020>,
-<0x00 0x4700 0x00 0x4700 0x00 0x00068400>;
+<0x00 0x4700 0x00 0x4700 0x00 0x00068400>,
+<0x00 0x5000 0x00 0x5000 0x00 0x800>,
+<0x05 0x 0x05 0x 0x01 0x000>,
+<0x07 0x 0x07 0x 0x01 0x000>;
 
cbass_mcu: interconnect@2838 {
compatible = "simple-bus";
@@ -94,7 +97,10 @@
 <0x00 0x4204 0x00 0x4204 0x00 
0x03ac2400>, /* WKUP */
 <0x00 0x4510 0x00 0x4510 0x00 
0x00c24000>, /* MMRs, remaining NAVSS */
 <0x00 0x4600 0x00 0x4600 0x00 
0x0020>, /* CPSW */
-<0x00 0x4700 0x00 0x4700 0x00 
0x00068400>; /* OSPI space 1 */
+<0x00 0x4700 0x00 0x4700 0x00 
0x00068400>, /* OSPI space 1 */
+<0x00 0x5000 0x00 0x5000 0x00 
0x800>, /*  FSS OSPI0 data region 1 */
+<0x05 0x 0x05 0x 0x01 
0x000>, /* FSS OSPI0 data region 3*/
+<0x07 0x 0x07 0x 0x01 
0x000>; /* FSS OSPI1 data region 3*/
 
cbass_wakeup: interconnect@4204 {
compatible = "simple-bus";
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8337): 
https://lists.yoctoproject.org/g/linux-yocto/message/8337
Mute This Topic: https://lists.yoctoproject.org/mt/69903833/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  

[linux-yocto] [PATCH 3/4] arm64: dts: ti: k3-am654-base-board: Add OSPI entry

2020-01-18 Thread jmiao1
From: Vignesh R 

commit 3a004451c7652bb9f6f2476ac4a1f3a070e8ed46 from
https://git.ti.com/git/processor-sdk/processor-sdk-linux.git branch: 
processor-sdk-linux-4.19.y

Add OSPI node and flash device entry

Reviewed-by: Roger Quadros 
Signed-off-by: Vignesh R 
Signed-off-by: Sekhar Nori 
Signed-off-by: Jun Miao 
---
 .../arm64/boot/dts/ti/k3-am654-base-board.dts | 38 +++
 1 file changed, 38 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts 
b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
index 7572b131990a..744974d02a5f 100644
--- a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
+++ b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
@@ -69,6 +69,22 @@
AM65X_WKUP_IOPAD(0x003c, PIN_INPUT, 7) /* (P2) 
WKUP_GPIO0_27 */
>;
};
+
+   mcu_fss0_ospi0_pins_default: mcu-fss0-ospi0-pins_default {
+   pinctrl-single,pins = <
+   AM65X_WKUP_IOPAD(0x, PIN_OUTPUT, 0) /* (V1) 
MCU_OSPI0_CLK */
+   AM65X_WKUP_IOPAD(0x0008, PIN_INPUT, 0)   /* (U2) 
MCU_OSPI0_DQS */
+   AM65X_WKUP_IOPAD(0x000c, PIN_INPUT, 0)  /* (U4) 
MCU_OSPI0_D0 */
+   AM65X_WKUP_IOPAD(0x0010, PIN_INPUT, 0)  /* (U5) 
MCU_OSPI0_D1 */
+   AM65X_WKUP_IOPAD(0x0014, PIN_INPUT, 0)  /* (T2) 
MCU_OSPI0_D2 */
+   AM65X_WKUP_IOPAD(0x0018, PIN_INPUT, 0)  /* (T3) 
MCU_OSPI0_D3 */
+   AM65X_WKUP_IOPAD(0x001c, PIN_INPUT, 0)  /* (T4) 
MCU_OSPI0_D4 */
+   AM65X_WKUP_IOPAD(0x0020, PIN_INPUT, 0)  /* (T5) 
MCU_OSPI0_D5 */
+   AM65X_WKUP_IOPAD(0x0024, PIN_INPUT, 0)  /* (R2) 
MCU_OSPI0_D6 */
+   AM65X_WKUP_IOPAD(0x0028, PIN_INPUT, 0)  /* (R3) 
MCU_OSPI0_D7 */
+   AM65X_WKUP_IOPAD(0x002c, PIN_OUTPUT, 0) /* (R4) 
MCU_OSPI0_CSn0 */
+   >;
+   };
 };
 
 _pmx0 {
@@ -301,6 +317,28 @@
status = "disabled";
 };
 
+ {
+   pinctrl-names = "default";
+   pinctrl-0 = <_fss0_ospi0_pins_default>;
+
+   flash@0{
+   compatible = "jedec,spi-nor";
+   reg = <0x0>;
+   spi-tx-bus-width = <1>;
+   spi-rx-bus-width = <8>;
+   spi-max-frequency = <5000>;
+   spi-dqs;
+   cdns,tshsl-ns = <60>;
+   cdns,tsd2d-ns = <60>;
+   cdns,tchsh-ns = <60>;
+   cdns,tslch-ns = <60>;
+   cdns,read-delay = <2>;
+   cdns,phy-mode;
+   #address-cells = <1>;
+   #size-cells = <1>;
+   };
+};
+
 _cluster0 {
interrupts = <164 0>;
 
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8336): 
https://lists.yoctoproject.org/g/linux-yocto/message/8336
Mute This Topic: https://lists.yoctoproject.org/mt/69903831/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-dev] [kernel standard/base] ti-am65x: dts: SPI-NOR SD support

2020-01-18 Thread jmiao1
Hi Bruce,

I am working on BSP ti-am65x platform, and intend to merge these four dts
patches into yocto community kernel: branch standard/base


Faiz Abbas (2):
  arm64: dts: ti: k3-am654-base-board: Add Support for SD card
  arm64: dts: ti: k3-am65-main: Enable support for sdhci1

Vignesh R (2):
  arm64: dts: ti: k3-am654-base-board: Add OSPI entry
  arm64: dts: k3-am6: Add FSS and OSPI nodes

 arch/arm64/boot/dts/ti/k3-am65-main.dtsi  | 13 +
 arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi   | 41 +
 arch/arm64/boot/dts/ti/k3-am65.dtsi   | 10 +++-
 .../arm64/boot/dts/ti/k3-am654-base-board.dts | 57 +++
 4 files changed, 119 insertions(+), 2 deletions(-)

-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8334): 
https://lists.yoctoproject.org/g/linux-yocto/message/8334
Mute This Topic: https://lists.yoctoproject.org/mt/69903821/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[linux-yocto] [PATCH 1/4] arm64: dts: ti: k3-am654-base-board: Add Support for SD card

2020-01-18 Thread jmiao1
From: Faiz Abbas 

commit 4a77a43537ba1aa31ac8792095e9e35253cabff7 from branch ti-linux-4.19.y:
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git

The 2nd sdhci instance is connected to an SD card on am654-evm. Add
board specific properties and pinmux for the same.

Signed-off-by: Faiz Abbas 
Signed-off-by: Sekhar Nori 
Signed-off-by: Jun Miao 
---
 .../arm64/boot/dts/ti/k3-am654-base-board.dts | 19 +++
 1 file changed, 19 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts 
b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
index 8a85b482ad31..7572b131990a 100644
--- a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
+++ b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
@@ -114,6 +114,19 @@
>;
};
 
+   main_mmc1_pins_default: main_mmc1_pins_default {
+   pinctrl-single,pins = <
+   AM65X_IOPAD(0x02d4, PIN_INPUT_PULLDOWN, 0) /* (C27) 
MMC1_CLK */
+   AM65X_IOPAD(0x02d8, PIN_INPUT_PULLUP, 0) /* (C28) 
MMC1_CMD */
+   AM65X_IOPAD(0x02d0, PIN_INPUT_PULLUP, 0) /* (D28) 
MMC1_DAT0 */
+   AM65X_IOPAD(0x02cc, PIN_INPUT_PULLUP, 0) /* (E27) 
MMC1_DAT1 */
+   AM65X_IOPAD(0x02c8, PIN_INPUT_PULLUP, 0) /* (D26) 
MMC1_DAT2 */
+   AM65X_IOPAD(0x02c4, PIN_INPUT_PULLUP, 0) /* (D27) 
MMC1_DAT3 */
+   AM65X_IOPAD(0x02dc, PIN_INPUT_PULLUP, 0) /* (B24) 
MMC1_SDCD */
+   AM65X_IOPAD(0x02e0, PIN_INPUT, 0) /* (C24) MMC1_SDWP */
+   >;
+   };
+
usb1_pins_default: usb1_pins_default {
pinctrl-single,pins = <
AM65X_IOPAD(0x02c0, PIN_OUTPUT, 0) /* (AC8) 
USB1_DRVVBUS */
@@ -224,6 +237,12 @@
disable-wp;
 };
 
+ {
+   pinctrl-names = "default";
+   pinctrl-0 = <_mmc1_pins_default>;
+   ti,driver-strength-ohm = <50>;
+};
+
 _1 {
status = "okay";
 };
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8335): 
https://lists.yoctoproject.org/g/linux-yocto/message/8335
Mute This Topic: https://lists.yoctoproject.org/mt/69903822/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[linux-yocto] [PATCH 2/2] arm64: dts: k3-am6: Add FSS and OSPI nodes

2020-01-02 Thread jmiao1
From: Vignesh R 

commit 32bad8b7367310ee86270f3c67f444d3c5bcff76 from
https://git.ti.com/git/processor-sdk/processor-sdk-linux.git branch: 
processor-sdk-linux-4.19.y

AM654 SoC has a Flash Subsystem(FSS) with two Cadence Octal SPI(OSPI)
controllers. Add DT entries for the same.

Reviewed-by: Roger Quadros 
Signed-off-by: Vignesh R 
Signed-off-by: Sekhar Nori 
Signed-off-by: Jun Miao 
---
 arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi | 41 +
 arch/arm64/boot/dts/ti/k3-am65.dtsi | 10 --
 2 files changed, 49 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi 
b/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi
index 7bdf5342f58f..e32a7d13a72e 100644
--- a/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi
@@ -95,4 +95,45 @@
compatible = "ti,am654-adc", "ti,am3359-adc";
};
};
+
+   fss: fss@4700 {
+   compatible = "simple-bus";
+   #address-cells = <2>;
+   #size-cells = <2>;
+   ranges;
+
+   ospi0: spi@4704 {
+   compatible = "ti,am654-ospi", "cdns,qspi-nor";
+   reg = <0x0 0x4704 0x0 0x100>,
+   <0x5 0x 0x1 0x000>;
+   interrupts = ;
+   cdns,fifo-depth = <256>;
+   cdns,fifo-width = <4>;
+   cdns,trigger-address = <0x5000>;
+   cdns,delay-elem-ps = <80>;
+   clocks = <_clks 55 5>;
+   assigned-clocks = <_clks 55 5>;
+   assigned-clock-parents = <_clks 55 7>;
+   assigned-clock-rates = <1>;
+   power-domains = <_pds 55>;
+   #address-cells = <1>;
+   #size-cells = <0>;
+   dma-coherent;
+   };
+
+   ospi1: spi@4705 {
+   compatible = "ti,am654-ospi", "cdns,qspi-nor";
+   reg = <0x0 0x4705 0x0 0x100>,
+   <0x7 0x 0x1 0x>;
+   interrupts = ;
+   cdns,fifo-depth = <256>;
+   cdns,fifo-width = <4>;
+   cdns,trigger-address = <0x5800>;
+   clocks = <_clks 55 16>;
+   power-domains = <_pds 55>;
+   #address-cells = <1>;
+   #size-cells = <0>;
+   dma-coherent;
+   };
+   };
 };
diff --git a/arch/arm64/boot/dts/ti/k3-am65.dtsi 
b/arch/arm64/boot/dts/ti/k3-am65.dtsi
index 6dfccd5d56c8..5efac52acffe 100644
--- a/arch/arm64/boot/dts/ti/k3-am65.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am65.dtsi
@@ -80,7 +80,10 @@
 <0x00 0x4204 0x00 0x4204 0x00 0x03ac2400>,
 <0x00 0x4510 0x00 0x4510 0x00 0x00c24000>,
 <0x00 0x4600 0x00 0x4600 0x00 0x0020>,
-<0x00 0x4700 0x00 0x4700 0x00 0x00068400>;
+<0x00 0x4700 0x00 0x4700 0x00 0x00068400>,
+<0x00 0x5000 0x00 0x5000 0x00 0x800>,
+<0x05 0x 0x05 0x 0x01 0x000>,
+<0x07 0x 0x07 0x 0x01 0x000>;
 
cbass_mcu: interconnect@2838 {
compatible = "simple-bus";
@@ -94,7 +97,10 @@
 <0x00 0x4204 0x00 0x4204 0x00 
0x03ac2400>, /* WKUP */
 <0x00 0x4510 0x00 0x4510 0x00 
0x00c24000>, /* MMRs, remaining NAVSS */
 <0x00 0x4600 0x00 0x4600 0x00 
0x0020>, /* CPSW */
-<0x00 0x4700 0x00 0x4700 0x00 
0x00068400>; /* OSPI space 1 */
+<0x00 0x4700 0x00 0x4700 0x00 
0x00068400>, /* OSPI space 1 */
+<0x00 0x5000 0x00 0x5000 0x00 
0x800>, /*  FSS OSPI0 data region 1 */
+<0x05 0x 0x05 0x 0x01 
0x000>, /* FSS OSPI0 data region 3*/
+<0x07 0x 0x07 0x 0x01 
0x000>; /* FSS OSPI1 data region 3*/
 
cbass_wakeup: interconnect@4204 {
compatible = "simple-bus";
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8275): 
https://lists.yoctoproject.org/g/linux-yocto/message/8275
Mute This Topic: https://lists.yoctoproject.org/mt/69377348/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  

[linux-yocto][linux-yocto-dev][kernel standard/base][PATH 0/2]: bsp/ti-am65x: dts: spi-nor support

2020-01-02 Thread jmiao1
Hi Bruce,
Support the spi-nor flash add nodes on ti-am65x bsp board.
Could you help me add the 2 patches to branch standard/base ?
Thanks 

-
Vignesh R (2):
  arm64: dts: ti: k3-am654-base-board: Add OSPI entry
  arm64: dts: k3-am6: Add FSS and OSPI nodes

 arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi   | 41 +++
 arch/arm64/boot/dts/ti/k3-am65.dtsi   | 10 -
 .../arm64/boot/dts/ti/k3-am654-base-board.dts | 38 +
 3 files changed, 87 insertions(+), 2 deletions(-)

-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8273): 
https://lists.yoctoproject.org/g/linux-yocto/message/8273
Mute This Topic: https://lists.yoctoproject.org/mt/69377340/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[linux-yocto] [PATCH 1/2] arm64: dts: ti: k3-am654-base-board: Add OSPI entry

2020-01-02 Thread jmiao1
From: Vignesh R 

commit 3a004451c7652bb9f6f2476ac4a1f3a070e8ed46 from
https://git.ti.com/git/processor-sdk/processor-sdk-linux.git branch: 
processor-sdk-linux-4.19.y

Add OSPI node and flash device entry

Reviewed-by: Roger Quadros 
Signed-off-by: Vignesh R 
Signed-off-by: Sekhar Nori 
Signed-off-by: Jun Miao 
---
 .../arm64/boot/dts/ti/k3-am654-base-board.dts | 38 +++
 1 file changed, 38 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts 
b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
index 019e3f632f17..8a88b497afb7 100644
--- a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
+++ b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
@@ -69,6 +69,22 @@
AM65X_WKUP_IOPAD(0x003c, PIN_INPUT, 7) /* (P2) 
WKUP_GPIO0_27 */
>;
};
+
+   mcu_fss0_ospi0_pins_default: mcu-fss0-ospi0-pins_default {
+   pinctrl-single,pins = <
+   AM65X_WKUP_IOPAD(0x, PIN_OUTPUT, 0) /* (V1) 
MCU_OSPI0_CLK */
+   AM65X_WKUP_IOPAD(0x0008, PIN_INPUT, 0)   /* (U2) 
MCU_OSPI0_DQS */
+   AM65X_WKUP_IOPAD(0x000c, PIN_INPUT, 0)  /* (U4) 
MCU_OSPI0_D0 */
+   AM65X_WKUP_IOPAD(0x0010, PIN_INPUT, 0)  /* (U5) 
MCU_OSPI0_D1 */
+   AM65X_WKUP_IOPAD(0x0014, PIN_INPUT, 0)  /* (T2) 
MCU_OSPI0_D2 */
+   AM65X_WKUP_IOPAD(0x0018, PIN_INPUT, 0)  /* (T3) 
MCU_OSPI0_D3 */
+   AM65X_WKUP_IOPAD(0x001c, PIN_INPUT, 0)  /* (T4) 
MCU_OSPI0_D4 */
+   AM65X_WKUP_IOPAD(0x0020, PIN_INPUT, 0)  /* (T5) 
MCU_OSPI0_D5 */
+   AM65X_WKUP_IOPAD(0x0024, PIN_INPUT, 0)  /* (R2) 
MCU_OSPI0_D6 */
+   AM65X_WKUP_IOPAD(0x0028, PIN_INPUT, 0)  /* (R3) 
MCU_OSPI0_D7 */
+   AM65X_WKUP_IOPAD(0x002c, PIN_OUTPUT, 0) /* (R4) 
MCU_OSPI0_CSn0 */
+   >;
+   };
 };
 
 _pmx0 {
@@ -299,3 +315,25 @@
 _ep {
status = "disabled";
 };
+
+ {
+   pinctrl-names = "default";
+   pinctrl-0 = <_fss0_ospi0_pins_default>;
+
+   flash@0{
+   compatible = "jedec,spi-nor";
+   reg = <0x0>;
+   spi-tx-bus-width = <1>;
+   spi-rx-bus-width = <8>;
+   spi-max-frequency = <5000>;
+   spi-dqs;
+   cdns,tshsl-ns = <60>;
+   cdns,tsd2d-ns = <60>;
+   cdns,tchsh-ns = <60>;
+   cdns,tslch-ns = <60>;
+   cdns,read-delay = <2>;
+   cdns,phy-mode;
+   #address-cells = <1>;
+   #size-cells = <1>;
+   };
+};
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8274): 
https://lists.yoctoproject.org/g/linux-yocto/message/8274
Mute This Topic: https://lists.yoctoproject.org/mt/69377341/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[linux-yocto] [PATCH 1/1] ti-am65x: Add spi-nor flash support

2020-01-02 Thread jmiao1
Two types spi-nor flash support on TI's AM654 EVM:
ospi-nor: mt35xu512aba Octal flash with 512-Mbit
spi-nor : mt25ql128aba SPI NOR Flash with 128-Mbit

Signed-off-by: Jun Miao 
---
 bsp/ti-am65x/ti-am65x.cfg | 12 
 1 file changed, 12 insertions(+)

diff --git a/bsp/ti-am65x/ti-am65x.cfg b/bsp/ti-am65x/ti-am65x.cfg
index e6d31f44..99f1f9a0 100644
--- a/bsp/ti-am65x/ti-am65x.cfg
+++ b/bsp/ti-am65x/ti-am65x.cfg
@@ -118,6 +118,12 @@ CONFIG_SERIAL_OF_PLATFORM=y
 CONFIG_SERIAL_8250_OMAP=y
 
 #
+# Pin Control subsystem
+#
+CONFIG_PINCTRL=y
+CONFIG_PINCTRL_SINGLE=y
+
+#
 # Memory mapped GPIO drivers
 #
 CONFIG_GPIOLIB=y
@@ -141,6 +147,12 @@ CONFIG_SPI_MEM=y
 CONFIG_SPI_OMAP24XX=y
 
 #
+# SPI-NOR Flash drivers
+#
+CONFIG_MTD_SPI_NOR=y
+CONFIG_SPI_CADENCE_QUADSPI=y
+
+#
 # DMA Devices
 #
 CONFIG_DMADEVICES=y
-- 
2.13.3

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8272): 
https://lists.yoctoproject.org/g/linux-yocto/message/8272
Mute This Topic: https://lists.yoctoproject.org/mt/69377249/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 master] ti-am65x: add spi-nor flash support

2020-01-02 Thread jmiao1
Hi Bruce,

   Although the NOR-SPI function is same to yocto-5.2, it has context conflict 
and m25p80.c be moved. So i pull requeset again on master branch for CICD. 
   Could you help to merge this single path to yocto-kernel-cache master branch 
?


Thanks
--


Jun Miao (1):
  ti-am65x: Add spi-nor flash support

 bsp/ti-am65x/ti-am65x.cfg | 12 
 1 file changed, 12 insertions(+)

-- 
2.13.3

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8271): 
https://lists.yoctoproject.org/g/linux-yocto/message/8271
Mute This Topic: https://lists.yoctoproject.org/mt/69377238/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[linux-yocto][kernel v5.2/standard/base][PATH 0/2]: bsp/ti-am65x: dts: spi-nor support

2020-01-01 Thread jmiao1
Hi Bruce,
Support the spi-nor flash add nodes on ti-am65x bsp board.
Could you help me add the 2 patches to branch v5.2/standard/base ?

Thanks
--


Vignesh R (2):
  arm64: dts: ti: k3-am654-base-board: Add OSPI entry
  arm64: dts: k3-am6: Add FSS and OSPI nodes

 arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi   | 41 +++
 arch/arm64/boot/dts/ti/k3-am65.dtsi   | 10 -
 .../arm64/boot/dts/ti/k3-am654-base-board.dts | 38 +
 3 files changed, 87 insertions(+), 2 deletions(-)

-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8270): 
https://lists.yoctoproject.org/g/linux-yocto/message/8270
Mute This Topic: https://lists.yoctoproject.org/mt/69376442/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[linux-yocto] [PATCH 2/2] arm64: dts: k3-am6: Add FSS and OSPI nodes

2020-01-01 Thread jmiao1
From: Vignesh R 

commit 32bad8b7367310ee86270f3c67f444d3c5bcff76 from
https://git.ti.com/git/processor-sdk/processor-sdk-linux.git branch: 
processor-sdk-linux-4.19.y

AM654 SoC has a Flash Subsystem(FSS) with two Cadence Octal SPI(OSPI)
controllers. Add DT entries for the same.

Reviewed-by: Roger Quadros 
Signed-off-by: Vignesh R 
Signed-off-by: Sekhar Nori 
Signed-off-by: Jun Miao 
---
 arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi | 41 +
 arch/arm64/boot/dts/ti/k3-am65.dtsi | 10 --
 2 files changed, 49 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi 
b/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi
index 6f7d2b316ded..a409622da769 100644
--- a/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi
@@ -87,4 +87,45 @@
compatible = "ti,am654-adc", "ti,am3359-adc";
};
};
+
+   fss: fss@4700 {
+   compatible = "simple-bus";
+   #address-cells = <2>;
+   #size-cells = <2>;
+   ranges;
+
+   ospi0: spi@4704 {
+   compatible = "ti,am654-ospi", "cdns,qspi-nor";
+   reg = <0x0 0x4704 0x0 0x100>,
+   <0x5 0x 0x1 0x000>;
+   interrupts = ;
+   cdns,fifo-depth = <256>;
+   cdns,fifo-width = <4>;
+   cdns,trigger-address = <0x5000>;
+   cdns,delay-elem-ps = <80>;
+   clocks = <_clks 55 5>;
+   assigned-clocks = <_clks 55 5>;
+   assigned-clock-parents = <_clks 55 7>;
+   assigned-clock-rates = <1>;
+   power-domains = <_pds 55>;
+   #address-cells = <1>;
+   #size-cells = <0>;
+   dma-coherent;
+   };
+
+   ospi1: spi@4705 {
+   compatible = "ti,am654-ospi", "cdns,qspi-nor";
+   reg = <0x0 0x4705 0x0 0x100>,
+   <0x7 0x 0x1 0x>;
+   interrupts = ;
+   cdns,fifo-depth = <256>;
+   cdns,fifo-width = <4>;
+   cdns,trigger-address = <0x5800>;
+   clocks = <_clks 55 16>;
+   power-domains = <_pds 55>;
+   #address-cells = <1>;
+   #size-cells = <0>;
+   dma-coherent;
+   };
+   };
 };
diff --git a/arch/arm64/boot/dts/ti/k3-am65.dtsi 
b/arch/arm64/boot/dts/ti/k3-am65.dtsi
index 50f4be2047a9..e49e52c7e8f5 100644
--- a/arch/arm64/boot/dts/ti/k3-am65.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am65.dtsi
@@ -74,7 +74,10 @@
 <0x00 0x4204 0x00 0x4204 0x00 0x03ac2400>,
 <0x00 0x4510 0x00 0x4510 0x00 0x00c24000>,
 <0x00 0x4600 0x00 0x4600 0x00 0x0020>,
-<0x00 0x4700 0x00 0x4700 0x00 0x00068400>;
+<0x00 0x4700 0x00 0x4700 0x00 0x00068400>,
+<0x00 0x5000 0x00 0x5000 0x00 0x800>,
+<0x05 0x 0x05 0x 0x01 0x000>,
+<0x07 0x 0x07 0x 0x01 0x000>;
 
cbass_mcu: interconnect@2838 {
compatible = "simple-bus";
@@ -85,7 +88,10 @@
 <0x00 0x4204 0x00 0x4204 0x00 
0x03ac2400>, /* WKUP */
 <0x00 0x4510 0x00 0x4510 0x00 
0x00c24000>, /* MMRs, remaining NAVSS */
 <0x00 0x4600 0x00 0x4600 0x00 
0x0020>, /* CPSW */
-<0x00 0x4700 0x00 0x4700 0x00 
0x00068400>; /* OSPI space 1 */
+<0x00 0x4700 0x00 0x4700 0x00 
0x00068400>, /* OSPI space 1 */
+<0x00 0x5000 0x00 0x5000 0x00 
0x800>, /*  FSS OSPI0 data region 1 */
+<0x05 0x 0x05 0x 0x01 
0x000>, /* FSS OSPI0 data region 3*/
+<0x07 0x 0x07 0x 0x01 
0x000>; /* FSS OSPI1 data region 3*/
 
cbass_wakeup: interconnect@4204 {
compatible = "simple-bus";
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8269): 
https://lists.yoctoproject.org/g/linux-yocto/message/8269
Mute This Topic: https://lists.yoctoproject.org/mt/69376441/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  

[linux-yocto] [PATCH 1/2] arm64: dts: ti: k3-am654-base-board: Add OSPI entry

2020-01-01 Thread jmiao1
From: Vignesh R 

commit 3a004451c7652bb9f6f2476ac4a1f3a070e8ed46 from
https://git.ti.com/git/processor-sdk/processor-sdk-linux.git branch: 
processor-sdk-linux-4.19.y

Add OSPI node and flash device entry

Reviewed-by: Roger Quadros 
Signed-off-by: Vignesh R 
Signed-off-by: Sekhar Nori 
Signed-off-by: Jun Miao 
---
 .../arm64/boot/dts/ti/k3-am654-base-board.dts | 38 +++
 1 file changed, 38 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts 
b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
index 286393e8e357..db60fc29a424 100644
--- a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
+++ b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
@@ -42,6 +42,22 @@
AM65X_WKUP_IOPAD(0x00e4, PIN_INPUT, 0) /* (AD6) 
WKUP_I2C0_SDA */
>;
};
+
+   mcu_fss0_ospi0_pins_default: mcu-fss0-ospi0-pins_default {
+   pinctrl-single,pins = <
+   AM65X_WKUP_IOPAD(0x, PIN_OUTPUT, 0) /* (V1) 
MCU_OSPI0_CLK */
+   AM65X_WKUP_IOPAD(0x0008, PIN_INPUT, 0)   /* (U2) 
MCU_OSPI0_DQS */
+   AM65X_WKUP_IOPAD(0x000c, PIN_INPUT, 0)  /* (U4) 
MCU_OSPI0_D0 */
+   AM65X_WKUP_IOPAD(0x0010, PIN_INPUT, 0)  /* (U5) 
MCU_OSPI0_D1 */
+   AM65X_WKUP_IOPAD(0x0014, PIN_INPUT, 0)  /* (T2) 
MCU_OSPI0_D2 */
+   AM65X_WKUP_IOPAD(0x0018, PIN_INPUT, 0)  /* (T3) 
MCU_OSPI0_D3 */
+   AM65X_WKUP_IOPAD(0x001c, PIN_INPUT, 0)  /* (T4) 
MCU_OSPI0_D4 */
+   AM65X_WKUP_IOPAD(0x0020, PIN_INPUT, 0)  /* (T5) 
MCU_OSPI0_D5 */
+   AM65X_WKUP_IOPAD(0x0024, PIN_INPUT, 0)  /* (R2) 
MCU_OSPI0_D6 */
+   AM65X_WKUP_IOPAD(0x0028, PIN_INPUT, 0)  /* (R3) 
MCU_OSPI0_D7 */
+   AM65X_WKUP_IOPAD(0x002c, PIN_OUTPUT, 0) /* (R4) 
MCU_OSPI0_CSn0 */
+   >;
+   };
 };
 
 _pmx0 {
@@ -247,3 +263,25 @@
ti,adc-channels = <0 1 2 3 4 5 6 7>;
};
 };
+
+ {
+   pinctrl-names = "default";
+   pinctrl-0 = <_fss0_ospi0_pins_default>;
+
+   flash@0{
+   compatible = "jedec,spi-nor";
+   reg = <0x0>;
+   spi-tx-bus-width = <1>;
+   spi-rx-bus-width = <8>;
+   spi-max-frequency = <5000>;
+   spi-dqs;
+   cdns,tshsl-ns = <60>;
+   cdns,tsd2d-ns = <60>;
+   cdns,tchsh-ns = <60>;
+   cdns,tslch-ns = <60>;
+   cdns,read-delay = <2>;
+   cdns,phy-mode;
+   #address-cells = <1>;
+   #size-cells = <1>;
+   };
+};
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8268): 
https://lists.yoctoproject.org/g/linux-yocto/message/8268
Mute This Topic: https://lists.yoctoproject.org/mt/69376440/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[linux-yocto][yocto-kernel-cache yocto-5.2] ti-am65x: add spi-nor flash support

2020-01-01 Thread jmiao1
Hi Bruce,

Could you please help to merge this single path to yocto-kernel-cache yocto-5.2
branch ?


Jun Miao (1):
  ti-am65x: Add spi-nor flash support

 bsp/ti-am65x/ti-am65x.cfg | 13 +
 1 file changed, 13 insertions(+)

-- 
2.17.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8266): 
https://lists.yoctoproject.org/g/linux-yocto/message/8266
Mute This Topic: https://lists.yoctoproject.org/mt/69376407/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[linux-yocto] [PATCH 2/2] arm64: dts: ti: k3-am65-main: Enable support for sdhci1

2019-11-26 Thread jmiao1
From: Faiz Abbas 

commit bb40213e83549b52e46baac3979046dc17e6b58a from branch ti-linux-4.19.y:
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git

Add support for the 2nd Secure Digital Host controller instance present
in TI's am654 SoC.

Signed-off-by: Faiz Abbas 
Signed-off-by: Sekhar Nori 
Signed-off-by: Jun Miao 
---
 arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 13 +
 1 file changed, 13 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi 
b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
index 752455269fab..21981b82e1b0 100644
--- a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
@@ -226,6 +226,19 @@
dma-coherent;
};
 
+   sdhci1: sdhci@4fa {
+   compatible = "ti,am654-sdhci-5.1";
+   reg = <0x0 0x4fa 0x0 0x260>, <0x0 0x4fb 0x0 0x134>;
+   power-domains = <_pds 48>;
+   clocks = <_clks 48 0>, <_clks 48 1>;
+   clock-names = "clk_ahb", "clk_xin";
+   interrupts = ;
+   ti,otap-del-sel = <0x2>;
+   ti,trm-icp = <0x8>;
+   no-1-8-v;
+   dma-coherent;
+   };
+
scm_conf: scm_conf@10 {
compatible = "syscon", "simple-mfd";
reg = <0 0x0010 0 0x1c000>;
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8109): 
https://lists.yoctoproject.org/g/linux-yocto/message/8109
Mute This Topic: https://lists.yoctoproject.org/mt/61958288/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-5.2]: [kernel v5.2/standard/base]: ti-am65x: add SD support

2019-11-26 Thread jmiao1
Hi Bruce,

About BSP ti-am65x platform, there are conflict in k3-am65-main.dtsi between 
v5.4.
Below 2 patches are used to SD card.

Could you please help to merge the 2 patches into branch v5.2/standard/base, 
linux-ycoto kernel.


Faiz Abbas (2):
  arm64: dts: ti: k3-am654-base-board: Add Support for SD card
  arm64: dts: ti: k3-am65-main: Enable support for sdhci1

 arch/arm64/boot/dts/ti/k3-am65-main.dtsi  | 13 +
 .../arm64/boot/dts/ti/k3-am654-base-board.dts | 19 +++
 2 files changed, 32 insertions(+)

-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8108): 
https://lists.yoctoproject.org/g/linux-yocto/message/8108
Mute This Topic: https://lists.yoctoproject.org/mt/61958287/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[linux-yocto] [PATCH 1/2] arm64: dts: ti: k3-am654-base-board: Add Support for SD card

2019-11-26 Thread jmiao1
From: Faiz Abbas 

commit 4a77a43537ba1aa31ac8792095e9e35253cabff7 from branch ti-linux-4.19.y:
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git

The 2nd sdhci instance is connected to an SD card on am654-evm. Add
board specific properties and pinmux for the same.

Signed-off-by: Faiz Abbas 
Signed-off-by: Sekhar Nori 
Signed-off-by: Jun Miao 
---
 .../arm64/boot/dts/ti/k3-am654-base-board.dts | 19 +++
 1 file changed, 19 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts 
b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
index cf1aa276a1ea..286393e8e357 100644
--- a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
+++ b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
@@ -87,6 +87,19 @@
>;
};
 
+   main_mmc1_pins_default: main_mmc1_pins_default {
+   pinctrl-single,pins = <
+   AM65X_IOPAD(0x02d4, PIN_INPUT_PULLDOWN, 0) /* (C27) 
MMC1_CLK */
+   AM65X_IOPAD(0x02d8, PIN_INPUT_PULLUP, 0) /* (C28) 
MMC1_CMD */
+   AM65X_IOPAD(0x02d0, PIN_INPUT_PULLUP, 0) /* (D28) 
MMC1_DAT0 */
+   AM65X_IOPAD(0x02cc, PIN_INPUT_PULLUP, 0) /* (E27) 
MMC1_DAT1 */
+   AM65X_IOPAD(0x02c8, PIN_INPUT_PULLUP, 0) /* (D26) 
MMC1_DAT2 */
+   AM65X_IOPAD(0x02c4, PIN_INPUT_PULLUP, 0) /* (D27) 
MMC1_DAT3 */
+   AM65X_IOPAD(0x02dc, PIN_INPUT_PULLUP, 0) /* (B24) 
MMC1_SDCD */
+   AM65X_IOPAD(0x02e0, PIN_INPUT, 0) /* (C24) MMC1_SDWP */
+   >;
+   };
+
usb1_pins_default: usb1_pins_default {
pinctrl-single,pins = <
AM65X_IOPAD(0x02c0, PIN_OUTPUT, 0) /* (AC8) 
USB1_DRVVBUS */
@@ -195,6 +208,12 @@
ti,driver-strength-ohm = <50>;
 };
 
+ {
+   pinctrl-names = "default";
+   pinctrl-0 = <_mmc1_pins_default>;
+   ti,driver-strength-ohm = <50>;
+};
+
 _1 {
status = "okay";
 };
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8107): 
https://lists.yoctoproject.org/g/linux-yocto/message/8107
Mute This Topic: https://lists.yoctoproject.org/mt/61917157/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[linux-yocto] [PATCH] ti-am65x: add the basic scc/cfg enablement

2019-11-26 Thread jmiao1
Add scc/cfg kernel fragment to build and boot AM65X GP EVM board with am6548 
soc.

Signed-off-by: Jun Miao 
---
 bsp/ti-am65x/ti-am65x-standard.scc |   8 ++
 bsp/ti-am65x/ti-am65x.cfg  | 182 +
 bsp/ti-am65x/ti-am65x.scc  |   8 ++
 3 files changed, 198 insertions(+)
 create mode 100644 bsp/ti-am65x/ti-am65x-standard.scc
 create mode 100644 bsp/ti-am65x/ti-am65x.cfg
 create mode 100644 bsp/ti-am65x/ti-am65x.scc

diff --git a/bsp/ti-am65x/ti-am65x-standard.scc 
b/bsp/ti-am65x/ti-am65x-standard.scc
new file mode 100644
index ..d3ca7696
--- /dev/null
+++ b/bsp/ti-am65x/ti-am65x-standard.scc
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: MIT
+define KMACHINE ti-am65x
+define KTYPE standard
+define KARCH arm64
+
+include ktypes/standard/standard.scc
+
+include ti-am65x.scc
diff --git a/bsp/ti-am65x/ti-am65x.cfg b/bsp/ti-am65x/ti-am65x.cfg
new file mode 100644
index ..e6d31f44
--- /dev/null
+++ b/bsp/ti-am65x/ti-am65x.cfg
@@ -0,0 +1,182 @@
+#
+#  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
+
+#
+# DesignWare PCI Core Support
+CONFIG_PCI=y
+CONFIG_PCI_MSI=y
+CONFIG_PCI_MSI_IRQ_DOMAIN=y
+CONFIG_PCI_KEYSTONE=y
+CONFIG_PCI_KEYSTONE_HOST=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
+
+#
+# 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_XHCI_HCD=y
+CONFIG_USB_DWC3=y
+CONFIG_USB_DWC3_OF_SIMPLE=y
+CONFIG_HAS_DMA=y
+CONFIG_OMAP_USB2=y
+CONFIG_USB_DWC3_KEYSTONE=y
+
+#
+# USB for net
+#
+CONFIG_USB_NET_DRIVERS=y
+CONFIG_USB_USBNET=y
+CONFIG_NETDEVICES=y
+CONFIG_USB_NET_AX8817X=y
+
+#
+# Input device support
+#
+CONFIG_INPUT=y
+CONFIG_INPUT_MATRIXKMAP=y
+CONFIG_INPUT_EVDEV=y
+CONFIG_INPUT_KEYBOARD=y
+CONFIG_KEYBOARD_GPIO=y
+CONFIG_INPUT_MOUSE=y
+CONFIG_INPUT_MISC=y
+
+#
+# Serial drivers
+#
+CONFIG_SERIAL_CORE=y
+CONFIG_SERIAL_8250=y
+CONFIG_SERIAL_8250_CONSOLE=y
+CONFIG_SERIAL_OF_PLATFORM=y
+CONFIG_SERIAL_8250_OMAP=y
+
+#
+# Memory mapped GPIO drivers
+#
+CONFIG_GPIOLIB=y
+
+#
+# I2C support
+#
+CONFIG_I2C=y
+CONFIG_I2C_BOARDINFO=y
+CONFIG_I2C_COMPAT=y
+CONFIG_I2C_CHARDEV=y
+CONFIG_I2C_MUX=y
+CONFIG_I2C_OMAP=y
+
+#
+# SPI Master Controller Drivers
+#
+CONFIG_SPI=y
+CONFIG_SPI_MASTER=y
+CONFIG_SPI_MEM=y
+CONFIG_SPI_OMAP24XX=y
+
+#
+# DMA Devices
+#
+CONFIG_DMADEVICES=y
+CONFIG_DMA_ENGINE=y
+CONFIG_DMA_OF=y
+
+#
+# Common Clock Framework
+#
+CONFIG_TI_SCI_CLK=y
+CONFIG_TI_SCI_PROTOCOL=y
+
+#
+# Qualcomm SoC drivers
+#
+CONFIG_SOC_TI=y
+CONFIG_TI_SCI_PM_DOMAINS=y
+
+#
+# IRQ chip support
+#
+CONFIG_IRQCHIP=y
+CONFIG_ARM_GIC_V3=y
+CONFIG_ARM_GIC_V3_ITS=y
+CONFIG_ARM_GIC_V3_ITS_PCI=y
+CONFIG_TI_SCI_INTR_IRQCHIP=y
+CONFIG_TI_SCI_INTA_IRQCHIP=y
+CONFIG_RESET_CONTROLLER=y
+CONFIG_RESET_TI_SCI=y
+CONFIG_RESET_TI_SYSCON=y
+
+#
+# PHY Subsystem
+#
+CONFIG_GENERIC_PHY=y
+CONFIG_PHY_XGENE=y
+CONFIG_PHY_AM654_SERDES=y
+CONFIG_PHYLIB=y
+CONFIG_DP83867_PHY=y
diff --git a/bsp/ti-am65x/ti-am65x.scc b/bsp/ti-am65x/ti-am65x.scc
new file mode 100644
index ..d7cb767c
--- /dev/null
+++ b/bsp/ti-am65x/ti-am65x.scc
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: MIT
+include cfg/usb-mass-storage.scc
+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
+
+kconf hardware ti-am65x.cfg
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8106): 
https://lists.yoctoproject.org/g/linux-yocto/message/8106
Mute This Topic: https://lists.yoctoproject.org/mt/61957571/21656
Group Owner: 

[linux-yocto] [linux-yocto-dev]: [kernel standard/base]: ti-am65x: add SD Card support

2019-11-25 Thread jmiao1
Hi Bruce,

I am working on BSP ti-am65x platform, and intend to merge this BSP supporting 
into yocto community.
Below 2 patches are used to SD card.

0001-arm64-dts-ti-k3-am654-base-board-Add-Support-for-SD-.patch
0002-arm64-dts-ti-k3-am65-main-Enable-support-for-sdhci1.patch

Could you please merge the 2 patches into linux-yocto-dev, branch is 
standard/base?


Faiz Abbas (2):
  arm64: dts: ti: k3-am654-base-board: Add Support for SD card
  arm64: dts: ti: k3-am65-main: Enable support for sdhci1

 arch/arm64/boot/dts/ti/k3-am65-main.dtsi  | 13 +
 .../arm64/boot/dts/ti/k3-am654-base-board.dts | 19 +++
 2 files changed, 32 insertions(+)

-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8095): 
https://lists.yoctoproject.org/g/linux-yocto/message/8095
Mute This Topic: https://lists.yoctoproject.org/mt/61917156/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[linux-yocto] [PATCH 2/2] arm64: dts: ti: k3-am65-main: Enable support for sdhci1

2019-11-25 Thread jmiao1
From: Faiz Abbas 

commit bb40213e83549b52e46baac3979046dc17e6b58a from branch ti-linux-4.19.y:
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git

Add support for the 2nd Secure Digital Host controller instance present
in TI's am654 SoC.

Signed-off-by: Faiz Abbas 
Signed-off-by: Sekhar Nori 
Signed-off-by: Jun Miao 
---
 arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 13 +
 1 file changed, 13 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi 
b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
index 799c75fa7981..794454cfb9ba 100644
--- a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
@@ -258,6 +258,19 @@
dma-coherent;
};
 
+   sdhci1: sdhci@4fa {
+   compatible = "ti,am654-sdhci-5.1";
+   reg = <0x0 0x4fa 0x0 0x260>, <0x0 0x4fb 0x0 0x134>;
+   power-domains = <_pds 48 TI_SCI_PD_EXCLUSIVE>;
+   clocks = <_clks 48 0>, <_clks 48 1>;
+   clock-names = "clk_ahb", "clk_xin";
+   interrupts = ;
+   ti,otap-del-sel = <0x2>;
+   ti,trm-icp = <0x8>;
+   no-1-8-v;
+   dma-coherent;
+   };
+
scm_conf: scm_conf@10 {
compatible = "syscon", "simple-mfd";
reg = <0 0x0010 0 0x1c000>;
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8097): 
https://lists.yoctoproject.org/g/linux-yocto/message/8097
Mute This Topic: https://lists.yoctoproject.org/mt/61917158/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[linux-yocto] [PATCH 1/2] arm64: dts: ti: k3-am654-base-board: Add Support for SD card

2019-11-25 Thread jmiao1
From: Faiz Abbas 

commit 4a77a43537ba1aa31ac8792095e9e35253cabff7 from branch ti-linux-4.19.y:
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git

The 2nd sdhci instance is connected to an SD card on am654-evm. Add
board specific properties and pinmux for the same.

Signed-off-by: Faiz Abbas 
Signed-off-by: Sekhar Nori 
Signed-off-by: Jun Miao 
---
 .../arm64/boot/dts/ti/k3-am654-base-board.dts | 19 +++
 1 file changed, 19 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts 
b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
index 1102b84f853d..019e3f632f17 100644
--- a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
+++ b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
@@ -114,6 +114,19 @@
>;
};
 
+   main_mmc1_pins_default: main_mmc1_pins_default {
+   pinctrl-single,pins = <
+   AM65X_IOPAD(0x02d4, PIN_INPUT_PULLDOWN, 0) /* (C27) 
MMC1_CLK */
+   AM65X_IOPAD(0x02d8, PIN_INPUT_PULLUP, 0) /* (C28) 
MMC1_CMD */
+   AM65X_IOPAD(0x02d0, PIN_INPUT_PULLUP, 0) /* (D28) 
MMC1_DAT0 */
+   AM65X_IOPAD(0x02cc, PIN_INPUT_PULLUP, 0) /* (E27) 
MMC1_DAT1 */
+   AM65X_IOPAD(0x02c8, PIN_INPUT_PULLUP, 0) /* (D26) 
MMC1_DAT2 */
+   AM65X_IOPAD(0x02c4, PIN_INPUT_PULLUP, 0) /* (D27) 
MMC1_DAT3 */
+   AM65X_IOPAD(0x02dc, PIN_INPUT_PULLUP, 0) /* (B24) 
MMC1_SDCD */
+   AM65X_IOPAD(0x02e0, PIN_INPUT, 0) /* (C24) MMC1_SDWP */
+   >;
+   };
+
usb1_pins_default: usb1_pins_default {
pinctrl-single,pins = <
AM65X_IOPAD(0x02c0, PIN_OUTPUT, 0) /* (AC8) 
USB1_DRVVBUS */
@@ -223,6 +236,12 @@
ti,driver-strength-ohm = <50>;
 };
 
+ {
+   pinctrl-names = "default";
+   pinctrl-0 = <_mmc1_pins_default>;
+   ti,driver-strength-ohm = <50>;
+};
+
 _1 {
status = "okay";
 };
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8096): 
https://lists.yoctoproject.org/g/linux-yocto/message/8096
Mute This Topic: https://lists.yoctoproject.org/mt/61917157/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[linux-yocto] [PATCH 1/1] ti-am65x: add the basic scc/cfg enablement

2019-11-21 Thread jmiao1
Add scc/cfg kernel fragment to build and boot AM65X GP EVM board with am6548 
soc.

Signed-off-by: Jun Miao 
---
 bsp/ti-am65x/ti-am65x-standard.scc |   8 ++
 bsp/ti-am65x/ti-am65x.cfg  | 185 +
 bsp/ti-am65x/ti-am65x.scc  |   8 ++
 3 files changed, 201 insertions(+)
 create mode 100644 bsp/ti-am65x/ti-am65x-standard.scc
 create mode 100644 bsp/ti-am65x/ti-am65x.cfg
 create mode 100644 bsp/ti-am65x/ti-am65x.scc

diff --git a/bsp/ti-am65x/ti-am65x-standard.scc 
b/bsp/ti-am65x/ti-am65x-standard.scc
new file mode 100644
index ..d3ca7696
--- /dev/null
+++ b/bsp/ti-am65x/ti-am65x-standard.scc
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: MIT
+define KMACHINE ti-am65x
+define KTYPE standard
+define KARCH arm64
+
+include ktypes/standard/standard.scc
+
+include ti-am65x.scc
diff --git a/bsp/ti-am65x/ti-am65x.cfg b/bsp/ti-am65x/ti-am65x.cfg
new file mode 100644
index ..bfb24ec8
--- /dev/null
+++ b/bsp/ti-am65x/ti-am65x.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.
+#
+#.
+
+#
+#
+# Platform selection
+#
+CONFIG_ARM64=y
+CONFIG_ARCH_K3=y
+
+#
+# DesignWare PCI Core Support
+CONFIG_PCI=y
+CONFIG_PCI_MSI=y
+CONFIG_PCI_MSI_IRQ_DOMAIN=y
+CONFIG_PCI_KEYSTONE=y
+CONFIG_PCI_KEYSTONE_HOST=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
+
+#
+# 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_XHCI_HCD=y
+CONFIG_USB_DWC3=y
+CONFIG_USB_DWC3_OF_SIMPLE=y
+CONFIG_HAS_DMA=y
+CONFIG_OMAP_USB2=y
+CONFIG_USB_DWC3_KEYSTONE=y
+
+#
+# USB for net
+#
+CONFIG_USB_NET_DRIVERS=y
+CONFIG_USB_USBNET=y
+CONFIG_NETDEVICES=y
+CONFIG_USB_NET_AX8817X=y
+
+#
+# Input device support
+#
+CONFIG_INPUT=y
+CONFIG_INPUT_MATRIXKMAP=y
+CONFIG_INPUT_EVDEV=y
+CONFIG_INPUT_KEYBOARD=y
+CONFIG_KEYBOARD_GPIO=y
+CONFIG_INPUT_MOUSE=y
+CONFIG_INPUT_MISC=y
+
+#
+# Serial drivers
+#
+CONFIG_SERIAL_CORE=y
+CONFIG_SERIAL_8250=y
+CONFIG_SERIAL_8250_CONSOLE=y
+CONFIG_SERIAL_OF_PLATFORM=y
+CONFIG_SERIAL_8250_OMAP=y
+
+#
+# Memory mapped GPIO drivers
+#
+CONFIG_GPIOLIB=y
+CONFIG_GPIO_DAVINCI=y
+
+#
+# I2C support
+#
+CONFIG_I2C=y
+CONFIG_I2C_BOARDINFO=y
+CONFIG_I2C_COMPAT=y
+CONFIG_I2C_CHARDEV=y
+CONFIG_I2C_MUX=y
+CONFIG_I2C_OMAP=y
+
+#
+# SPI Master Controller Drivers
+#
+CONFIG_SPI=y
+CONFIG_SPI_MASTER=y
+CONFIG_SPI_MEM=y
+CONFIG_SPI_OMAP24XX=y
+
+#
+# DMA Devices
+#
+CONFIG_DMADEVICES=y
+CONFIG_DMA_ENGINE=y
+CONFIG_DMA_OF=y
+
+#
+# Common Clock Framework
+#
+CONFIG_TI_SCI_CLK=y
+CONFIG_TI_SCI_PROTOCOL=y
+CONFIG_TI_SCI_CLK_PROBE_FROM_FW=y
+
+#
+# Qualcomm SoC drivers
+#
+CONFIG_SOC_TI=y
+CONFIG_TI_SCI_PM_DOMAINS=y
+
+#
+# IRQ chip support
+#
+CONFIG_IRQCHIP=y
+CONFIG_ARM_GIC_V3=y
+CONFIG_ARM_GIC_V3_ITS=y
+CONFIG_ARM_GIC_V3_ITS_PCI=y
+CONFIG_TI_SCI_INTR_IRQCHIP=y
+CONFIG_TI_SCI_INTA_IRQCHIP=y
+CONFIG_RESET_CONTROLLER=y
+CONFIG_RESET_TI_SCI=y
+CONFIG_RESET_TI_SYSCON=y
+
+#
+# PHY Subsystem
+#
+CONFIG_GENERIC_PHY=y
+CONFIG_PHY_XGENE=y
+CONFIG_PHY_AM654_SERDES=y
+CONFIG_PHYLIB=y
+CONFIG_NETDEVICES=y
+CONFIG_DP83867_PHY=y
diff --git a/bsp/ti-am65x/ti-am65x.scc b/bsp/ti-am65x/ti-am65x.scc
new file mode 100644
index ..d7cb767c
--- /dev/null
+++ b/bsp/ti-am65x/ti-am65x.scc
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: MIT
+include cfg/usb-mass-storage.scc
+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
+
+kconf hardware ti-am65x.cfg
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8091): 
https://lists.yoctoproject.org/g/linux-yocto/message/8091
Mute 

Re: [linux-yocto] [yocto-kernel-cache master]: ti-am654x

2019-11-21 Thread jmiao1

Hi Bruce,

Please ignore this patch, withdraw.

I need to change the file name ti-am654x -> ti-am65x

Sorry,thanks!

Thanks
Jun

On 11/21/19 5:47 PM, Jun Miao wrote:

Hi Bruce,

 I am working ti AM65x GP EVM Board with am654x soc.
 Could you help me add this scc/cfg patch to yocto-kernel-cache master 
branch ?

Thanks


Jun Miao (1):
   ti-am654x: add the basic scc/cfg enablement

  bsp/ti-am654x/ti-am654x-standard.scc |   9 ++
  bsp/ti-am654x/ti-am654x.cfg  | 185 +++
  bsp/ti-am654x/ti-am654x.scc  |   8 ++
  3 files changed, 202 insertions(+)
  create mode 100644 bsp/ti-am654x/ti-am654x-standard.scc
  create mode 100644 bsp/ti-am654x/ti-am654x.cfg
  create mode 100644 bsp/ti-am654x/ti-am654x.scc

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8089): 
https://lists.yoctoproject.org/g/linux-yocto/message/8089
Mute This Topic: https://lists.yoctoproject.org/mt/61249194/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-