[linux-yocto] [PATCH] dts: s32g: remove the #interrupt-cells property from non interrupt controller nodes
According to devicetree binding document for interrupts, the "#interrupt-cells" should be a property of a interrupt-controller, for non-interrupt-controller dts nodes, the "#interrupt-cells" should not exist, or else the interrupt parse flow may be affacted and undefined behaviours may happen. So remove the "#interrupt-cells" property of non-interrupt-controller for S32G platforms to fix irq parse errors, as following: hse-uio 4021.mu0b: failed to register hse-mu0b-rx irq, line -517 Signed-off-by: Zhantao Tang --- arch/arm64/boot/dts/freescale/s32cc.dtsi | 2 -- arch/arm64/boot/dts/freescale/s32g.dtsi | 1 - 2 files changed, 3 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/s32cc.dtsi b/arch/arm64/boot/dts/freescale/s32cc.dtsi index f94bb2ff532f..35cc892fb8b0 100644 --- a/arch/arm64/boot/dts/freescale/s32cc.dtsi +++ b/arch/arm64/boot/dts/freescale/s32cc.dtsi @@ -200,7 +200,6 @@ soc { rtc0: rtc@4006 { compatible = "nxp,s32cc-rtc"; - #interrupt-cells = <3>; reg = <0x0 0x4006 0x0 0x1000>; interrupts = ; // RTC irq - GIC 153 clocks = < S32CC_SCMI_CLK_RTC_REG>, @@ -597,7 +596,6 @@ hse: crypto { compatible = "simple-bus"; #address-cells = <2>; #size-cells = <2>; - #interrupt-cells = <3>; memory-region = <_reserved>; ranges; diff --git a/arch/arm64/boot/dts/freescale/s32g.dtsi b/arch/arm64/boot/dts/freescale/s32g.dtsi index 53ea7ad23f09..0508ab860f47 100644 --- a/arch/arm64/boot/dts/freescale/s32g.dtsi +++ b/arch/arm64/boot/dts/freescale/s32g.dtsi @@ -518,7 +518,6 @@ llce: llce@43a0 { #address-cells = <2>; #size-cells = <2>; - #interrupt-cells = <3>; llce_mb: llce_mb@43a0 { compatible = "nxp,s32g-llce-mailbox"; -- 2.44.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14220): https://lists.yoctoproject.org/g/linux-yocto/message/14220 Mute This Topic: https://lists.yoctoproject.org/mt/107764584/21656 Mute #interrupt-cells:https://lists.yoctoproject.org/g/linux-yocto/mutehashtag/interrupt-cells 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 std kernel v6.6]: nxp-s32g: dts: s32g: remove the #interrupt-cells property from non interrupt controller nodes
Hi Bruce, There is a patch for v6.6 kernel to fix a irq parse issue. Would you please help to merge it to following branches? v6.6/standard/nxp-sdk-6.6/nxp-s32g v6.6/standard/preempt-rt/nxp-sdk-6.6/nxp-s32g Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14219): https://lists.yoctoproject.org/g/linux-yocto/message/14219 Mute This Topic: https://lists.yoctoproject.org/mt/107764583/21656 Mute #interrupt-cells:https://lists.yoctoproject.org/g/linux-yocto/mutehashtag/interrupt-cells Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [PATCH] arm64: tlbflush: add vae2is and vale2is ops under CONFIG_NXP_S32CC_ERRATUM_ERR050481
Now the KVM configure is enabled by default, but when using the following macro: #define __tlbi(op, ...) __tlbi_##op(__VA_ARGS__) which is controlled by CONFIG_NXP_S32CC_ERRATUM_ERR050481, to define the tlbi instructions, there will be following error: arch/arm64/include/asm/tlbflush.h:80:25: error: implicit declaration of function '__tlbi_vae2is' [-Werror=implicit-function-declaration] |80 | #define __tlbi(op, ...) __tlbi_##op(__VA_ARGS__) | | ^~~ This is because there is lack of definitions of __tlbi_vae2is and __tlbi_vale2is under CONFIG_NXP_S32CC_ERRATUM_ERR050481, so define them to fix the above error. The new added definitions refer to section "2.81 ERR050481" of the ERRATA document "S32G2_0P77B.pdf", which is from vendor's website. Signed-off-by: Zhantao Tang --- arch/arm64/include/asm/tlbflush.h | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/arch/arm64/include/asm/tlbflush.h b/arch/arm64/include/asm/tlbflush.h index df84cab38af3..0d9a5a0a345c 100644 --- a/arch/arm64/include/asm/tlbflush.h +++ b/arch/arm64/include/asm/tlbflush.h @@ -54,19 +54,24 @@ #define IS_ERR050481_ADDR(addr_shr_12) \ (((addr_shr_12) & GENMASK_ULL(36, 29)) != 0) -#define S32CC_TLBI_ALT(OP, ADDR) do {\ +#define S32CC_TLBI_ALT(OP, ADDR, EL) do {\ unsigned long __temp_050481 = (ADDR);\ if (cpu_has_nxp_err050481() && IS_ERR050481_ADDR(__temp_050481))\ - __TLBI_0(vmalle1is, 0);\ + if ((EL) == 1)\ + __TLBI_0(vmalle1is, 0);\ + else\ + __TLBI_0(alle2is, 0);\ else\ __TLBI_1(OP, __temp_050481);\ } while (0) -#define __tlbi_vaae1is(ADDR, ...) S32CC_TLBI_ALT(vaae1is, ADDR) -#define __tlbi_vaae1is(ADDR, ...) S32CC_TLBI_ALT(vaae1is, ADDR) -#define __tlbi_vaale1is(ADDR, ...) S32CC_TLBI_ALT(vaale1is, ADDR) -#define __tlbi_vae1is(ADDR, ...) S32CC_TLBI_ALT(vae1is, ADDR) -#define __tlbi_vale1is(ADDR, ...) S32CC_TLBI_ALT(vale1is, ADDR) +#define __tlbi_vaae1is(ADDR, ...) S32CC_TLBI_ALT(vaae1is, ADDR, 1) +#define __tlbi_vaae1is(ADDR, ...) S32CC_TLBI_ALT(vaae1is, ADDR, 1) +#define __tlbi_vaale1is(ADDR, ...) S32CC_TLBI_ALT(vaale1is, ADDR, 1) +#define __tlbi_vae1is(ADDR, ...) S32CC_TLBI_ALT(vae1is, ADDR, 1) +#define __tlbi_vale1is(ADDR, ...) S32CC_TLBI_ALT(vale1is, ADDR, 1) +#define __tlbi_vae2is(ADDR, ...) S32CC_TLBI_ALT(vae2is, ADDR, 2) +#define __tlbi_vale2is(ADDR, ...) S32CC_TLBI_ALT(vale2is, ADDR, 2) #define __tlbi_vmalle1() __TLBI_0(vmalle1, 0) #define __tlbi_vmalle1is() __TLBI_0(vmalle1is, 0) #define __tlbi_alle1is() __TLBI_0(alle1is, 0) -- 2.35.5 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14190): https://lists.yoctoproject.org/g/linux-yocto/message/14190 Mute This Topic: https://lists.yoctoproject.org/mt/107501106/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 std kernel v6.1]: nxp-s32g: arm64: tlbflush: add vae2is and vale2is ops under CONFIG_NXP_S32CC_ERRATUM_ERR050481
Hi Bruce, There is a patch for v6.1 kernel updating to fix build failure. Would you please help to create the following branches: v6.1/standard/nxp-sdk-5.15/nxp-s32g v6.1/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g and merge the patch? Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14189): https://lists.yoctoproject.org/g/linux-yocto/message/14189 Mute This Topic: https://lists.yoctoproject.org/mt/107501105/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] aptiv: enable NVMEM_S32CC_OCOTP
The NVMEM_S32CC_OCOTP configure is needed by TMU sensors, or else, the TMU driver probe will be added to deffered list and can not work normally. In result, the sensors command can get nothing messages as following: ~# sensors -f No sensors found! So drop the line: "# CONFIG_NVMEM_S32CC_OCOTP is not set" to enable the configure by default to fix the above issue. Signed-off-by: Zhantao Tang --- bsp/aptiv-s32g/aptiv-cvc.cfg | 1 - 1 file changed, 1 deletion(-) diff --git a/bsp/aptiv-s32g/aptiv-cvc.cfg b/bsp/aptiv-s32g/aptiv-cvc.cfg index fd095f3d..cf949aad 100644 --- a/bsp/aptiv-s32g/aptiv-cvc.cfg +++ b/bsp/aptiv-s32g/aptiv-cvc.cfg @@ -32,4 +32,3 @@ CONFIG_S32CC_ADC=m CONFIG_PWM_FSL_FTM=m CONFIG_I2C_IMX=m -# CONFIG_NVMEM_S32CC_OCOTP is not set -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14159): https://lists.yoctoproject.org/g/linux-yocto/message/14159 Mute This Topic: https://lists.yoctoproject.org/mt/107270771/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 kernel v6.6]: aptiv: enable NVMEM_S32CC_OCOTP
Hi Bruce, There is a patch to add NVMEM_S32CC_OCOTP support for v6.6 kernel for aptiv-s32g bsp, would you please help to merge the following patch into yocto-6.6 branch? Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14160): https://lists.yoctoproject.org/g/linux-yocto/message/14160 Mute This Topic: https://lists.yoctoproject.org/mt/107270772/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [linux-yocto] [linux-yocto std kernel v6.6]: nxp-s32g: pinctrl: s32cc: use devm_kzalloc() to alloc pinctrl_desc struct to avoid random value
On 2024/7/9 21:11, Bruce Ashfield wrote: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. In message: Re: [linux-yocto] [linux-yocto std kernel v6.6]: nxp-s32g: pinctrl: s32cc: use devm_kzalloc() to alloc pinctrl_desc struct to avoid random value on 09/07/2024 zhantao.tang wrote: On 2024/7/9 11:19, Bruce Ashfield wrote: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. In message: [linux-yocto] [linux-yocto std kernel v6.6]: nxp-s32g: pinctrl: s32cc: use devm_kzalloc() to alloc pinctrl_desc struct to avoid random value on 09/07/2024 Zhantao Tang wrote: Hi Bruce, There is a patch for v6.6 kernel to fix one pinctrl issue. Would you please help to merge it to the following branches? v6.6/standard/nxp-sdk-6.6/nxp-s32g v6.6/standard/preempt-rt/nxp-sdk-6.6/nxp-s32g merged. Hi Bruce, Thanks for your merging. I checked the codes, but it seems that you pushed the commit a0089d1f("irq: imx: irqsteer: Unset data->domain->dev"), which is for v6.6/standard/preempt-rt/nxp-sdk-6.6/nxp-soc and v6.1/standard/ preempt-rt/nxp-sdk-6.1/nxp-soc branches, to s32g branches. I think it is because the branch names are so similar for S32G and other NXP soc branch, And the patch "pinctrl: s32cc: use devm_kzalloc() to alloc pinctrl_desc struct to avoid random value" is the right one for S32G branches: v6.6/standard/nxp-sdk-6.6/nxp-s32g v6.6/standard/preempt-rt/nxp-sdk-6.6/nxp-s32g So would you please help to correct it? I've reverted the patch and grabbed yours, everything should be fixed now. It wasn't the similarity of the branch names, I don't actually type the branches in, I have scripts that process the mbox by extracting the patch and then applying it to the branches .. but your patch and the incorrectly patch have the same starting prefix for the patch so my scripts overwrote the correct patch with the second and applied it! OK, got it. Very appreciate for your quick and hard work. Thanks, Zhantao Bruce Thanks, Zhantao Bruce Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14132): https://lists.yoctoproject.org/g/linux-yocto/message/14132 Mute This Topic: https://lists.yoctoproject.org/mt/107116486/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 std kernel v6.6]: nxp-s32g: pci: dwc: s32cc: use the dedicated msi_irq[0] to fix compile warning
Hi Bruce, There is a patch for v6.6 kernel to fix pci compile warning. Would you please help to merge it to the following branches? v6.6/standard/nxp-sdk-6.6/nxp-s32g v6.6/standard/preempt-rt/nxp-sdk-6.6/nxp-s32g Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14126): https://lists.yoctoproject.org/g/linux-yocto/message/14126 Mute This Topic: https://lists.yoctoproject.org/mt/107119572/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] pci: dwc: s32cc: use the dedicated msi_irq[0] to fix compile warning
This patch is to fix the following compile warning: pci-s32cc-ep.c:504:21: warning: the comparison will always evaluate as 'true' for the address of 'msi_irq' will never be NULL [-Waddress] The reason it that, the variable pp->msi_irq is always true, since it is a array, so change to use pp->msi_irq[0], which is the real used irq for s32g pci driver, to fix the above warning. Signed-off-by: Zhantao Tang --- drivers/pci/controller/dwc/pci-s32cc-ep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pci-s32cc-ep.c b/drivers/pci/controller/dwc/pci-s32cc-ep.c index 37f649ce83e1..7ddf12e64682 100644 --- a/drivers/pci/controller/dwc/pci-s32cc-ep.c +++ b/drivers/pci/controller/dwc/pci-s32cc-ep.c @@ -501,7 +501,7 @@ static int s32cc_pcie_config_ep(struct s32cc_pcie *s32cc_pp, if (ret) dev_err(dev, "Unable to setup MSI domain for EP\n"); - if (pp->msi_irq) + if (pp->msi_irq[0]) irq_set_chained_handler_and_data(pp->msi_irq[0], dw_ep_chained_msi_isr, pp); -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14127): https://lists.yoctoproject.org/g/linux-yocto/message/14127 Mute This Topic: https://lists.yoctoproject.org/mt/107119573/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] nxp-s32g: add PCA953X support
The PCA953X is needed by S32G and which is enabled in SDK BSP41 by default, so enable it to keep align with SDK. Signed-off-by: Zhantao Tang --- bsp/nxp-s32g/nxp-s32g.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/bsp/nxp-s32g/nxp-s32g.cfg b/bsp/nxp-s32g/nxp-s32g.cfg index 57ac3a18..27be9899 100644 --- a/bsp/nxp-s32g/nxp-s32g.cfg +++ b/bsp/nxp-s32g/nxp-s32g.cfg @@ -77,6 +77,7 @@ CONFIG_GPIO_CDEV=y CONFIG_GPIO_S32CC=y CONFIG_GPIO_SCMI=y CONFIG_SENSORS_INA2XX=y +CONFIG_GPIO_PCA953X=y #PCIE CONFIG_PCI=y -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14125): https://lists.yoctoproject.org/g/linux-yocto/message/14125 Mute This Topic: https://lists.yoctoproject.org/mt/107119567/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 kernel v6.6]: nxp-s32g: add PCA953X support
Hi Bruce, There is a patch to add PCA953X support for v6.6 kernel for nxp-s32g bsp, would you please help to merge the following patch into yocto-6.6 branch? Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14124): https://lists.yoctoproject.org/g/linux-yocto/message/14124 Mute This Topic: https://lists.yoctoproject.org/mt/107119566/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [linux-yocto] [linux-yocto std kernel v6.6]: nxp-s32g: pinctrl: s32cc: use devm_kzalloc() to alloc pinctrl_desc struct to avoid random value
On 2024/7/9 11:19, Bruce Ashfield wrote: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. In message: [linux-yocto] [linux-yocto std kernel v6.6]: nxp-s32g: pinctrl: s32cc: use devm_kzalloc() to alloc pinctrl_desc struct to avoid random value on 09/07/2024 Zhantao Tang wrote: Hi Bruce, There is a patch for v6.6 kernel to fix one pinctrl issue. Would you please help to merge it to the following branches? v6.6/standard/nxp-sdk-6.6/nxp-s32g v6.6/standard/preempt-rt/nxp-sdk-6.6/nxp-s32g merged. Hi Bruce, Thanks for your merging. I checked the codes, but it seems that you pushed the commit a0089d1f("irq: imx: irqsteer: Unset data->domain->dev"), which is for v6.6/standard/preempt-rt/nxp-sdk-6.6/nxp-soc and v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc branches, to s32g branches. I think it is because the branch names are so similar for S32G and other NXP soc branch, And the patch "pinctrl: s32cc: use devm_kzalloc() to alloc pinctrl_desc struct to avoid random value" is the right one for S32G branches: v6.6/standard/nxp-sdk-6.6/nxp-s32g v6.6/standard/preempt-rt/nxp-sdk-6.6/nxp-s32g So would you please help to correct it? Thanks, Zhantao Bruce Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14123): https://lists.yoctoproject.org/g/linux-yocto/message/14123 Mute This Topic: https://lists.yoctoproject.org/mt/107116486/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 std kernel v6.6]: nxp-s32g: pinctrl: s32cc: use devm_kzalloc() to alloc pinctrl_desc struct to avoid random value
Hi Bruce, There is a patch for v6.6 kernel to fix one pinctrl issue. Would you please help to merge it to the following branches? v6.6/standard/nxp-sdk-6.6/nxp-s32g v6.6/standard/preempt-rt/nxp-sdk-6.6/nxp-s32g Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14118): https://lists.yoctoproject.org/g/linux-yocto/message/14118 Mute This Topic: https://lists.yoctoproject.org/mt/107116486/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] pinctrl: s32cc: use devm_kzalloc() to alloc pinctrl_desc struct to avoid random value
For S32G, the num_custom_params for pinctrl desc struct should be 0, because there is no driver-specific custom parameters at all. But if this member is not set to 0 explicitly, the value may be a unexpected random value, which may cause the following boot failure: [ cut here ] WARNING: CPU: 1 PID: 1 at /mm/page_alloc.c:4403 __alloc_pages+0x2ac/0x458 Modules linked in: CPU: 1 PID: 1 Comm: swapper/0 Not tainted 6.6.36-yocto-standard #1 Hardware name: NXP S32G3 Reference Design Board (S32G-VNP-RDB3) (DT) pstate: 2005 (nzCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __alloc_pages+0x2ac/0x458 lr : __kmalloc_large_node+0x8c/0x190 sp : ffc0834fb770 x29: ffc0834fb7a0 x28: ffc08177e000 x27: ffc08177f2f0 x26: ffc08177f2e8 x25: ffc0834fb8ec x24: ffc0834fb8f0 x23: ff8804f3b400 x22: 00040dc0 x21: x20: 0016 x19: x18: x17: ffc080bf9a10 x16: ffc080a25008 x15: ffc080a1fbcc x14: x13: 0ea2 x12: ffc082aa6c60 x11: 00f9 x10: 00f9 x9 : ffc0802f12fc x8 : ffc0834fb758 x7 : x6 : 0001 x5 : x4 : x3 : x2 : ff8800c90040 x1 : 0001 x0 : ffc08230bdf4 Call trace: __alloc_pages+0x2ac/0x458 __kmalloc_large_node+0x8c/0x190 __kmalloc+0x9c/0xf8 pinconf_generic_parse_dt_config+0x70/0x1c8 s32_dt_node_to_map+0x11c/0x258 pinctrl_dt_to_map+0x22c/0x360 create_pinctrl+0x68/0x258 pinctrl_enable+0x28/0x160 devm_pinctrl_register+0x7c/0xd8 s32_pinctrl_probe+0x150/0x208 platform_probe+0x70/0xd8 really_probe+0x184/0x390 __driver_probe_device+0xb0/0x168 driver_probe_device+0x44/0x120 __driver_attach+0xb0/0x1d0 bus_for_each_dev+0x84/0xf0 driver_attach+0x2c/0x40 bus_add_driver+0x104/0x230 driver_register+0x64/0x138 __platform_driver_register+0x30/0x48 s32cc_pinctrl_driver_init+0x24/0x38 do_one_initcall+0xbc/0x398 do_initcalls+0x13c/0x258 kernel_init_freeable+0x1a0/0x280 kernel_init+0x30/0x1f8 ret_from_fork+0x10/0x20 irq event stamp: 1878486 hardirqs last enabled at (1878485): [] _raw_spin_unlock_irqrestore+0x70/0xb0 hardirqs last disabled at (1878486): [] el1_dbg+0x24/0x90 softirqs last enabled at (1861648): [] handle_softirqs+0x4f4/0x520 softirqs last disabled at (1861643): [] __do_softirq+0x1c/0x28 ---[ end trace ]--- s32cc-siul2-pinctrl 4009c240.siul2-pinctrl: /soc/siul2@4009c000/siul2-pinctrl@4009c240/jtag_pins/jtag_grp0: could not parse node property s32cc-siul2-pinctrl 4009c240.siul2-pinctrl: error claiming hogs: -12 s32cc-siul2-pinctrl 4009c240.siul2-pinctrl: could not claim hogs: -12 s32cc-siul2-pinctrl 4009c240.siul2-pinctrl: error -ENOMEM: could not register s32 pinctrl driver s32cc-siul2-pinctrl: probe of 4009c240.siul2-pinctrl failed with error -12 So change to use devm_kzalloc() to alloc pinctrl_desc struct, then the related members are all initialised to 0, then the above issue can be fixed. Signed-off-by: Zhantao Tang --- drivers/pinctrl/nxp/pinctrl-s32cc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/nxp/pinctrl-s32cc.c b/drivers/pinctrl/nxp/pinctrl-s32cc.c index d00382b671b4..0c4e1cf838a2 100644 --- a/drivers/pinctrl/nxp/pinctrl-s32cc.c +++ b/drivers/pinctrl/nxp/pinctrl-s32cc.c @@ -962,7 +962,7 @@ static int s32_pinctrl_probe(struct platform_device *pdev) spin_lock_init(>gpio_configs_lock); s32_pinctrl_desc = - devm_kmalloc(>dev, sizeof(*s32_pinctrl_desc), GFP_KERNEL); + devm_kzalloc(>dev, sizeof(*s32_pinctrl_desc), GFP_KERNEL); if (!s32_pinctrl_desc) return -ENOMEM; -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14119): https://lists.yoctoproject.org/g/linux-yocto/message/14119 Mute This Topic: https://lists.yoctoproject.org/mt/107116487/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][PATCH 1/1] aptiv: update v6.6 kernel cache support
This patch is to add kernel cache support for aptiv cvc bsp of LTS24, and the related .scc and .cfg files refer to the files of yocto-6.1 branch. To make it easier for updating to new SDKs, the nxp-s32g.cfg file is included into cvc's .scc file, and then the different configure settings can be overridden in cvc's own .cfg file. Moreover, as Aptiv required, driver options should be "m" as many as possible, so the related configures are all set to "m". Signed-off-by: Zhantao Tang --- bsp/aptiv-s32g/aptiv-cvc-fl-preempt-rt.scc | 7 + bsp/aptiv-s32g/aptiv-cvc.cfg | 35 ++ bsp/aptiv-s32g/aptiv-cvc.scc | 8 + 3 files changed, 50 insertions(+) create mode 100644 bsp/aptiv-s32g/aptiv-cvc-fl-preempt-rt.scc create mode 100644 bsp/aptiv-s32g/aptiv-cvc.cfg create mode 100644 bsp/aptiv-s32g/aptiv-cvc.scc diff --git a/bsp/aptiv-s32g/aptiv-cvc-fl-preempt-rt.scc b/bsp/aptiv-s32g/aptiv-cvc-fl-preempt-rt.scc new file mode 100644 index ..0819f79f --- /dev/null +++ b/bsp/aptiv-s32g/aptiv-cvc-fl-preempt-rt.scc @@ -0,0 +1,7 @@ +# SPDX-License-Identifier: MIT +define KMACHINE aptiv-cvc-131 +define KTYPE preempt-rt +define KARCH arm64 + +include ktypes/preempt-rt +include aptiv-cvc.scc diff --git a/bsp/aptiv-s32g/aptiv-cvc.cfg b/bsp/aptiv-s32g/aptiv-cvc.cfg new file mode 100644 index ..fd095f3d --- /dev/null +++ b/bsp/aptiv-s32g/aptiv-cvc.cfg @@ -0,0 +1,35 @@ +# SPDX-License-Identifier: MIT +.. +.WARNING +. +. This file is a kernel configuration fragment, and not a full kernel +. configuration file. The final kernel configuration is made up of +. an assembly of processed fragments, each of which is designed to +. capture a specific part of the final configuration (e.g. platform +. configuration, feature configuration, and board specific hardware +. configuration). For more information on kernel configuration, please +. consult the product documentation. +. +.. +# CONFIG_PINCTRL_SCMI is not set +CONFIG_CAN_FLEXCAN=m + +CONFIG_GPIO_PCA953X=y +# CONFIG_GPIO_SCMI is not set + +CONFIG_USB_CHIPIDEA_IMX=m + +CONFIG_USB_ACM=y +CONFIG_USB_WDM=y +CONFIG_USB_SERIAL=y +CONFIG_USB_SERIAL_FTDI_SIO=y +CONFIG_USB_SERIAL_CP210X=m +CONFIG_USB_SERIAL_PL2303=m +CONFIG_USB_SERIAL_WWAN=y +CONFIG_USB_SERIAL_OPTION=y + +CONFIG_S32CC_ADC=m +CONFIG_PWM_FSL_FTM=m +CONFIG_I2C_IMX=m + +# CONFIG_NVMEM_S32CC_OCOTP is not set diff --git a/bsp/aptiv-s32g/aptiv-cvc.scc b/bsp/aptiv-s32g/aptiv-cvc.scc new file mode 100644 index ..6baded6d --- /dev/null +++ b/bsp/aptiv-s32g/aptiv-cvc.scc @@ -0,0 +1,8 @@ +# SPDX-License-Identifier: MIT + +include cfg/usb-mass-storage.scc + +include features/hugetlb/hugetlb.scc +include arch/arm/32bit-compat.scc +kconf hardware bsp/nxp-s32g/nxp-s32g.cfg +kconf hardware aptiv-cvc.cfg -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14107): https://lists.yoctoproject.org/g/linux-yocto/message/14107 Mute This Topic: https://lists.yoctoproject.org/mt/106921140/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 kernel v6.6]: aptiv-s32g: add kernel cache support for v6.6 kernel
Hi Bruce, There is a patch to add kernel cache support for v6.6 kernel for aptiv-s32g bsp, would you please help to merge the following patch into yocto-6.6 branch? Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14106): https://lists.yoctoproject.org/g/linux-yocto/message/14106 Mute This Topic: https://lists.yoctoproject.org/mt/106921139/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] nxp-s32g: add kernel cache support for v6.6 kernel
This patch is to add v6.6 kernel cache support for nxp-s32g bsp. And the .scc and .cfg files are all based on v6.1 kernel cache's and SDK BSP41's kernel configures. Signed-off-by: Zhantao Tang --- bsp/nxp-s32g/nxp-s32g-preempt-rt.scc | 8 ++ bsp/nxp-s32g/nxp-s32g-standard.scc | 8 ++ bsp/nxp-s32g/nxp-s32g.cfg| 195 +++ bsp/nxp-s32g/nxp-s32g.scc| 7 + 4 files changed, 218 insertions(+) create mode 100755 bsp/nxp-s32g/nxp-s32g-preempt-rt.scc create mode 100755 bsp/nxp-s32g/nxp-s32g-standard.scc create mode 100644 bsp/nxp-s32g/nxp-s32g.cfg create mode 100755 bsp/nxp-s32g/nxp-s32g.scc diff --git a/bsp/nxp-s32g/nxp-s32g-preempt-rt.scc b/bsp/nxp-s32g/nxp-s32g-preempt-rt.scc new file mode 100755 index ..8a3bad77 --- /dev/null +++ b/bsp/nxp-s32g/nxp-s32g-preempt-rt.scc @@ -0,0 +1,8 @@ +# SPDX-License-Identifier: MIT +define KMACHINE nxp-s32g +define KTYPE preempt-rt +define KARCH arm64 + +include ktypes/preempt-rt + +include nxp-s32g.scc diff --git a/bsp/nxp-s32g/nxp-s32g-standard.scc b/bsp/nxp-s32g/nxp-s32g-standard.scc new file mode 100755 index ..0614ad55 --- /dev/null +++ b/bsp/nxp-s32g/nxp-s32g-standard.scc @@ -0,0 +1,8 @@ +# SPDX-License-Identifier: MIT +define KMACHINE nxp-s32g +define KTYPE standard +define KARCH arm64 + +include ktypes/standard + +include nxp-s32g.scc diff --git a/bsp/nxp-s32g/nxp-s32g.cfg b/bsp/nxp-s32g/nxp-s32g.cfg new file mode 100644 index ..57ac3a18 --- /dev/null +++ b/bsp/nxp-s32g/nxp-s32g.cfg @@ -0,0 +1,195 @@ +# SPDX-License-Identifier: MIT +.. +.WARNING +. +. This file is a kernel configuration fragment, and not a full kernel +. configuration file. The final kernel configuration is made up of +. an assembly of processed fragments, each of which is designed to +. capture a specific part of the final configuration (e.g. platform +. configuration, feature configuration, and board specific hardware +. configuration). For more information on kernel configuration, please +. consult the product documentation. +. +.. + +CONFIG_ARM64=y +CONFIG_ARCH_NXP=y +CONFIG_ARCH_S32=y +CONFIG_SOC_S32CC=y +CONFIG_SCHED_MC=y +CONFIG_ARM_SMMU=y + +CONFIG_NXP_GLOBAL_TIME_STM=y + +CONFIG_PINCTRL_S32CC=y +CONFIG_PINCTRL_SCMI=y + +CONFIG_CPU_IDLE=y +CONFIG_ARM_PSCI_CPUIDLE=y +CONFIG_CPU_FREQ=y +CONFIG_CPU_FREQ_STAT=y +CONFIG_CPU_FREQ_GOV_POWERSAVE=y +CONFIG_CPU_FREQ_GOV_USERSPACE=y +CONFIG_CPU_FREQ_GOV_ONDEMAND=y +CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y +CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y +CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y +CONFIG_ARM_SCMI_CPUFREQ=y + +CONFIG_ARM_SCMI_TRANSPORT_SMC_ATOMIC_ENABLE=y +#To keep align with SDK, unset the ARM_SCMI_POWER_DOMAIN config +# CONFIG_ARM_SCMI_POWER_DOMAIN is not set + +#CAN +CONFIG_CAN=y +CONFIG_CAN_VCAN=y +CONFIG_CAN_SLCAN=y +CONFIG_CAN_FLEXCAN=y + +#Ethernet +CONFIG_STMMAC_ETH=y +CONFIG_DWMAC_DWC_QOS_ETH=y +CONFIG_AT803X_PHY=y +CONFIG_MICREL_PHY=y +CONFIG_AQUANTIA_PHY=y +CONFIG_BRIDGE=y +CONFIG_NET_DSA=y +CONFIG_NET_DSA_TAG_SJA1105=y +CONFIG_NXP_TJA11XX_PHY=y +CONFIG_NXP_C45_TJA11XX_PHY=y +CONFIG_NXP_CBTX_PHY=y +CONFIG_NET_DSA_SJA1105=y +CONFIG_NET_DSA_SJA1105_PTP=y +CONFIG_BRIDGE_VLAN_FILTERING=y + +#Serial +CONFIG_SERIAL_AMBA_PL011=y +CONFIG_SERIAL_AMBA_PL011_CONSOLE=y +CONFIG_SERIAL_FSL_LINFLEXUART=y +CONFIG_SERIAL_FSL_LINFLEXUART_CONSOLE=y + +#SPI +CONFIG_SPI=y +CONFIG_SPI_FSL_DSPI=y +CONFIG_SPI_FSL_LPSPI=y +CONFIG_SPI_SPIDEV=y +CONFIG_GPIO_CDEV=y +CONFIG_GPIO_S32CC=y +CONFIG_GPIO_SCMI=y +CONFIG_SENSORS_INA2XX=y + +#PCIE +CONFIG_PCI=y +CONFIG_PCI_S32CC=y +CONFIG_PCIE_DW=y +CONFIG_PCIE_DW_PLAT_HOST=y +CONFIG_PCI_ENDPOINT=y +CONFIG_PCIE_DW_PLAT_EP=y +CONFIG_PCIEAER=y + +#USB +CONFIG_USB=y +CONFIG_USB_OTG=y +CONFIG_USB_OTG_FSM=y +CONFIG_USB_EHCI_HCD=y +CONFIG_USB_CHIPIDEA=y +CONFIG_USB_CHIPIDEA_UDC=y +CONFIG_USB_CHIPIDEA_HOST=y +CONFIG_NOP_USB_XCEIV=y +CONFIG_USB_ULPI=y +CONFIG_USB_GADGET=y +CONFIG_USB_CONFIGFS=y +CONFIG_USB_CONFIGFS_MASS_STORAGE=y +CONFIG_USB_ULPI_GENERIC=y + +#MMC +CONFIG_MMC=y +CONFIG_MMC_SDHCI=y +CONFIG_MMC_SDHCI_PLTFM=y +CONFIG_MMC_SDHCI_ESDHC_IMX=y +CONFIG_DMADEVICES=y +CONFIG_FSL_EDMA=y +CONFIG_CMA=y +CONFIG_DMA_CMA=y +CONFIG_CMA_SIZE_MBYTES=128 + +CONFIG_MTD=y +CONFIG_MTD_CMDLINE_PARTS=y +CONFIG_MTD_BLOCK=y +CONFIG_MTD_CFI=y +CONFIG_MTD_PHYSMAP=y +CONFIG_MTD_PHYSMAP_OF=y +CONFIG_MTD_DATAFLASH=y +CONFIG_MTD_SPI_NOR=y +# In order to support UBI filesystem +# CONFIG_MTD_SPI_NOR_USE_4K_SECTORS is not set + +CONFIG_INPUT_EVDEV=y +CONFIG_INPUT_MISC=y +CONFIG_INPUT_UINPUT=y + + +# Thermal +CONFIG_THERMAL=y +CONFIG_QORIQ_THERMAL=y +CONFIG_CPU_THERMAL=y + +# ADC +CONFIG_IIO=y +CONFIG_S32CC_ADC=y + +# PWM +CONFIG_PWM=y +CONFIG_PWM_FSL_FTM=y + +CONFIG_S32CC_FCCU=y +CONFIG_GPIOLIB=y +CONFIG_OF_GPIO=y + +CONFIG_MDIO_DEVICE=y +CONFIG_PHYLIB=y + +#QSPI +CONFIG_SPI_FSL_QUADSPI=y + +#RTC
[linux-yocto] [yocto-kernel-cache kernel v6.6]: nxp-s32g: add kernel cache support for v6.6 kernel
Hi Bruce, There is a patch to add kernel cache support for v6.6 kernel for nxp-s32g bsp, would you please help to merge the following patch into yocto-6.6 branch? Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14079): https://lists.yoctoproject.org/g/linux-yocto/message/14079 Mute This Topic: https://lists.yoctoproject.org/mt/106775992/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 std kernel v6.6]: nxp-s32g: create v6.6 branch and update to compatible with SDK BSP41 release
Hi Bruce, There are 830 patches for v6.6 kernel updating to SDK BSP41 release. Would you please help to create the following branch, based on v6.6/standard/base: v6.6/standard/nxp-sdk-6.6/nxp-s32g and merge the patches into it? The following changes since commit f89b9d4afceae8d6b0245f51a4fbdfdc1711c9b9: Merge tag 'v6.6.34' into v6.6/standard/base (2024-06-17 10:17:13 -0400) are available in the Git repository at: https://github.com/zhantaotang/linux-yocto-std v6.6/standard/nxp-sdk-6.6/nxp-s32g for you to fetch changes up to 59729fd72acf7b4beb74f3d59b8c9c459d6d1f28: drivers: nvmem: set add_legacy_fixed_of_cells member to true to fix nvmem node non-exist issue (2024-06-20 01:37:28 +) Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14077): https://lists.yoctoproject.org/g/linux-yocto/message/14077 Mute This Topic: https://lists.yoctoproject.org/mt/106775923/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 preempt-rt kernel v6.6]: nxp-s32g: create v6.6 branch and update to compatible with SDK BSP41 release
Hi Bruce, There are 830 patches for v6.6 kernel updating to SDK BSP41 release. Would you please help to create the following branch, based on v6.6/standard/preempt-rt/base: v6.6/standard/preempt-rt/nxp-sdk-6.6/nxp-s32g and merge the patches into it? The following changes since commit 503270fa58af9fed989815965f474149f27a5ad2: Merge branch 'v6.6/standard/base' into v6.6/standard/preempt-rt/base (2024-06-17 10:18:10 -0400) are available in the Git repository at: https://github.com/zhantaotang/linux-yocto-std v6.6/standard/preempt-rt/nxp-sdk-6.6/nxp-s32g for you to fetch changes up to c2a176d73b9691759e23aec8629347f87e85dfaa: drivers: nvmem: set add_legacy_fixed_of_cells member to true to fix nvmem node non-exist issue (2024-06-20 01:56:05 +) Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14078): https://lists.yoctoproject.org/g/linux-yocto/message/14078 Mute This Topic: https://lists.yoctoproject.org/mt/106775924/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 kernel v6.1]: aptiv-s32g: update to compatible with SDK BSP40
Hi Bruce, There is a patch to update v6.1 kernel cache for aptiv-s32g bsp, would you please help to merge the following patch into yocto-6.1 branch? Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13927): https://lists.yoctoproject.org/g/linux-yocto/message/13927 Mute This Topic: https://lists.yoctoproject.org/mt/106032784/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] aptiv-s32g: update to compatible with SDK BSP40
There are some new configs enabled in SDK BSP40 release, so update kernel cache to be compatible with SDK. Signed-off-by: Zhantao Tang --- bsp/aptiv-s32g/aptiv-cvc.cfg | 6 ++ 1 file changed, 6 insertions(+) diff --git a/bsp/aptiv-s32g/aptiv-cvc.cfg b/bsp/aptiv-s32g/aptiv-cvc.cfg index 71a96fd8..68552808 100644 --- a/bsp/aptiv-s32g/aptiv-cvc.cfg +++ b/bsp/aptiv-s32g/aptiv-cvc.cfg @@ -29,6 +29,9 @@ CONFIG_CPU_FREQ_GOV_POWERSAVE=y CONFIG_CPU_FREQ_GOV_USERSPACE=y CONFIG_CPU_FREQ_GOV_ONDEMAND=y CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y +CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y +CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y +CONFIG_ARM_SCMI_CPUFREQ=y CONFIG_ARM_SCMI_TRANSPORT_SMC_ATOMIC_ENABLE=y #To keep align with SDK, unset the ARM_SCMI_POWER_DOMAIN config @@ -53,6 +56,7 @@ CONFIG_SERIAL_FSL_LINFLEXUART_CONSOLE=y #SPI CONFIG_SPI=y CONFIG_SPI_FSL_DSPI=y +CONFIG_SPI_FSL_LPSPI=y CONFIG_SPI_SPIDEV=y #GPIO @@ -121,6 +125,7 @@ CONFIG_INPUT_UINPUT=y # Thermal CONFIG_THERMAL=y CONFIG_QORIQ_THERMAL=y +CONFIG_CPU_THERMAL=y # ADC CONFIG_IIO=y @@ -158,6 +163,7 @@ CONFIG_S32CC_WDT=y CONFIG_BLK_DEV_NVME=y CONFIG_NVME_TARGET=y CONFIG_NVMEM_S32CC_SIUL2=y +CONFIG_NVMEM_S32CC_GPR=y #LLCE CONFIG_CAN_LLCE=y -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13928): https://lists.yoctoproject.org/g/linux-yocto/message/13928 Mute This Topic: https://lists.yoctoproject.org/mt/106032785/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] gpio: fix pinctrl_gpio_get_mux_owner
From: Quanyang Wang The commit 4ce1995313ecb ("gpio: use pinctrl_gpio_get_mux_owner") intends to call pinctrl_gpio_get_mux_owner to mark the muxed pin as "used" and copy "mux_owner" or "gpio_owner" to "info->consumer". So that when calling gpioinfo at userspace, the "mux_owner" is printed as "label" in the output of console: root@nxp-s32g:~# gpioinfo gpiochip0 gpiochip0 - 191 lines: ... line 5: "PA_05" unused input active-high line 6: "PA_06" "401d8000.spi" input active-high [used] line 7: "PA_07" "401d8000.spi" input active-high [used] ... But there are 3 problems with the current implementation: 1. The parameter "gpio" of the function pinctrl_gpio_get_mux_owner should be "gc->base + info->offset" rather than "info->offset". 2. The member "strict" of s32cc_pmx_ops can be used to mark the flag GPIO_V2_LINE_FLAG_USED, so there is no need to use the funciton pinctrl_gpio_get_mux_owner to do that. 3. The function pinctrl_gpio_get_mux_owner takes mutex so it must be called before taking the spinlock, or else it triggers the following calltrace: [ 4640.017246] BUG: sleeping function called from invalid context at kernel/locking/rtmutex_api.c:510 [ 4640.017264] in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 11395, name: gpioinfo [ 4640.017271] preempt_count: 0, expected: 0 [ 4640.017276] RCU nest depth: 1, expected: 0 [ 4640.017281] INFO: lockdep is turned off. [ 4640.017290] CPU: 3 PID: 11395 Comm: gpioinfo Tainted: GW O 5.15.147-rt72-yocto-preempt-rt #1 [ 4640.017297] Hardware name: Freescale S32G399A (DT) [ 4640.017302] Call trace: [ 4640.017304] dump_backtrace+0x0/0x1c0 [ 4640.017319] show_stack+0x20/0x30 [ 4640.017325] dump_stack_lvl+0xb0/0xf4 [ 4640.017335] dump_stack+0x18/0x34 [ 4640.017342] __might_resched+0x15c/0x1e0 [ 4640.017351] __might_sleep+0x50/0xa0 [ 4640.017357] mutex_lock_nested+0x58/0xe0 [ 4640.017367] pinctrl_get_device_gpio_range+0x48/0x11c [ 4640.017378] pinctrl_gpio_get_mux_owner+0x48/0x110 [ 4640.017386] gpio_desc_to_lineinfo+0x2a8/0x2dc [ 4640.017396] lineinfo_get_v1+0x144/0x260 [ 4640.017405] gpio_ioctl_unlocked+0xf4/0x3d0 [ 4640.017410] gpio_ioctl+0x4c/0x74 [ 4640.017415] __arm64_sys_ioctl+0xb0/0xf4 [ 4640.017424] invoke_syscall+0x5c/0x130 [ 4640.017437] el0_svc_common.constprop.0+0x68/0x124 [ 4640.017445] do_el0_svc+0x4c/0xb0 [ 4640.017452] el0_svc+0x54/0x110 [ 4640.017458] el0t_64_sync_handler+0xa4/0x12c [ 4640.017464] el0t_64_sync+0x1a0/0x1a4 Signed-off-by: Quanyang Wang --- drivers/gpio/gpiolib-cdev.c| 10 +++--- drivers/pinctrl/freescale/pinctrl-s32cc-core.c | 1 + 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/gpio/gpiolib-cdev.c b/drivers/gpio/gpiolib-cdev.c index c175dbeb5d65..e0238bb772a4 100644 --- a/drivers/gpio/gpiolib-cdev.c +++ b/drivers/gpio/gpiolib-cdev.c @@ -2240,7 +2240,6 @@ static void gpio_desc_to_lineinfo(struct gpio_desc *desc, unsigned long flags; u32 debounce_period_us; unsigned int num_attrs = 0; - int ret; memset(info, 0, sizeof(*info)); info->offset = gpio_chip_hwgpio(desc); @@ -2255,6 +2254,9 @@ static void gpio_desc_to_lineinfo(struct gpio_desc *desc, ok_for_pinctrl = pinctrl_gpio_can_use_line(gc->base + info->offset); + pinctrl_gpio_get_mux_owner(gc->base + info->offset, info->consumer, +sizeof(info->consumer)); + spin_lock_irqsave(_lock, flags); if (desc->name) @@ -2268,12 +2270,6 @@ static void gpio_desc_to_lineinfo(struct gpio_desc *desc, if (desc->label) strscpy(info->consumer, desc->label, sizeof(info->consumer)); - else { - ret = pinctrl_gpio_get_mux_owner(gc->base + info->offset, info->consumer, -sizeof(info->consumer)); - if (!ret) - info->flags |= GPIO_V2_LINE_FLAG_USED; - } if (test_bit(FLAG_REQUESTED, >flags) || test_bit(FLAG_IS_HOGGED, >flags) || diff --git a/drivers/pinctrl/freescale/pinctrl-s32cc-core.c b/drivers/pinctrl/freescale/pinctrl-s32cc-core.c index e1d0cc817b65..a711242dc626 100644 --- a/drivers/pinctrl/freescale/pinctrl-s32cc-core.c +++ b/drivers/pinctrl/freescale/pinctrl-s32cc-core.c @@ -553,6 +553,7 @@ static const struct pinmux_ops s32cc_pmx_ops = { .gpio_request_enable = s32cc_pmx_gpio_request_enable, .gpio_disable_free = s32cc_pmx_gpio_disable_free, .gpio_set_direction = s32cc_pmx_gpio_set_direction, + .strict = true, }; static int s32cc_pinconf_get(struct pinctrl_dev *pctldev, -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13893): https://lists.yoctoproject.org/g/linux-yocto/message/13893 Mute This Topic: https://lists.yoctoproject.org/mt/105953227/21656
[linux-yocto] [linux-yocto std/rt kernel v6.1]: nxp-s32g: gpio: fix pinctrl_gpio_get_mux_owner
Hi Bruce, There is a patch to fix pinctrl_gpio_get_mux_owner issue. Would you please help to merge it into v6.1/standard/nxp-sdk-5.15/nxp-s32g, v6.1/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g branches? Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13892): https://lists.yoctoproject.org/g/linux-yocto/message/13892 Mute This Topic: https://lists.yoctoproject.org/mt/105953225/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] nxp-s32g: update to compatible with SDK BSP40
There are some new configs enabled in SDK BSP40 release, so update kernel cache to be compatible with SDK. Signed-off-by: Zhantao Tang --- bsp/nxp-s32g/nxp-s32g.cfg | 8 1 file changed, 8 insertions(+) diff --git a/bsp/nxp-s32g/nxp-s32g.cfg b/bsp/nxp-s32g/nxp-s32g.cfg index fd95c31a..b486b137 100644 --- a/bsp/nxp-s32g/nxp-s32g.cfg +++ b/bsp/nxp-s32g/nxp-s32g.cfg @@ -32,6 +32,9 @@ CONFIG_CPU_FREQ_GOV_POWERSAVE=y CONFIG_CPU_FREQ_GOV_USERSPACE=y CONFIG_CPU_FREQ_GOV_ONDEMAND=y CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y +CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y +CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y +CONFIG_ARM_SCMI_CPUFREQ=y CONFIG_ARM_SCMI_TRANSPORT_SMC_ATOMIC_ENABLE=y #To keep align with SDK, unset the ARM_SCMI_POWER_DOMAIN config @@ -53,6 +56,8 @@ CONFIG_BRIDGE=y CONFIG_NET_DSA=y CONFIG_NET_DSA_TAG_SJA1105=y CONFIG_NXP_TJA11XX_PHY=y +CONFIG_NXP_C45_TJA11XX_PHY=y +CONFIG_NXP_CBTX_PHY=y CONFIG_NET_DSA_SJA1105=y CONFIG_NET_DSA_SJA1105_PTP=y CONFIG_BRIDGE_VLAN_FILTERING=y @@ -66,6 +71,7 @@ CONFIG_SERIAL_FSL_LINFLEXUART_CONSOLE=y #SPI CONFIG_SPI=y CONFIG_SPI_FSL_DSPI=y +CONFIG_SPI_FSL_LPSPI=y CONFIG_SPI_SPIDEV=y CONFIG_GPIO_CDEV=y CONFIG_GPIO_S32CC=y @@ -126,6 +132,7 @@ CONFIG_INPUT_UINPUT=y # Thermal CONFIG_THERMAL=y CONFIG_QORIQ_THERMAL=y +CONFIG_CPU_THERMAL=y # ADC CONFIG_IIO=y @@ -163,6 +170,7 @@ CONFIG_BLK_DEV_NVME=y CONFIG_NVME_TARGET=y CONFIG_NVMEM_S32CC_SIUL2=y CONFIG_NVMEM_S32CC_OCOTP=y +CONFIG_NVMEM_S32CC_GPR=y # CONFIG_NVMEM_SCMI is not set #LLCE -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13846): https://lists.yoctoproject.org/g/linux-yocto/message/13846 Mute This Topic: https://lists.yoctoproject.org/mt/105665222/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 kernel v6.1]: nxp-s32g: update to compatible with SDK BSP40
Hi Bruce, There is a patch to update v6.1 kernel cache for nxp-s32g bsp, would you please help to merge the following patch into yocto-6.1 branch? Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13845): https://lists.yoctoproject.org/g/linux-yocto/message/13845 Mute This Topic: https://lists.yoctoproject.org/mt/105665221/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [linux-yocto] [yocto-kernel-cache kernel v6.1]: nxp-s32g: update to compatible with SDK BSP40
Hi Bruce, Please ignore this request, I will send a new one later. Thanks, Zhantao From: linux-yocto@lists.yoctoproject.org on behalf of Zhantao Tang via lists.yoctoproject.org Sent: Sunday, April 14, 2024 7:24:58 AM To: bruce.ashfi...@gmail.com Cc: linux-yocto@lists.yoctoproject.org Subject: [linux-yocto] [yocto-kernel-cache kernel v6.1]: nxp-s32g: update to compatible with SDK BSP40 Hi Bruce, There is a patch to update v6.1 kernel cache for nxp-s32g bsp, would you please help to merge the following patch into yocto-6.1 branch? Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13810): https://lists.yoctoproject.org/g/linux-yocto/message/13810 Mute This Topic: https://lists.yoctoproject.org/mt/105509335/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] nxp-s32g: update to compatible with SDK BSP40
There are some new configs enabled in SDK BSP40 release, so update kernel cache to be compatible with SDK. Signed-off-by: Zhantao Tang --- bsp/nxp-s32g/nxp-s32g.cfg | 8 1 file changed, 8 insertions(+) diff --git a/bsp/nxp-s32g/nxp-s32g.cfg b/bsp/nxp-s32g/nxp-s32g.cfg index fd95c31a..b486b137 100644 --- a/bsp/nxp-s32g/nxp-s32g.cfg +++ b/bsp/nxp-s32g/nxp-s32g.cfg @@ -32,6 +32,9 @@ CONFIG_CPU_FREQ_GOV_POWERSAVE=y CONFIG_CPU_FREQ_GOV_USERSPACE=y CONFIG_CPU_FREQ_GOV_ONDEMAND=y CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y +CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y +CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y +CONFIG_ARM_SCMI_CPUFREQ=y CONFIG_ARM_SCMI_TRANSPORT_SMC_ATOMIC_ENABLE=y #To keep align with SDK, unset the ARM_SCMI_POWER_DOMAIN config @@ -53,6 +56,8 @@ CONFIG_BRIDGE=y CONFIG_NET_DSA=y CONFIG_NET_DSA_TAG_SJA1105=y CONFIG_NXP_TJA11XX_PHY=y +CONFIG_NXP_C45_TJA11XX_PHY=y +CONFIG_NXP_CBTX_PHY=y CONFIG_NET_DSA_SJA1105=y CONFIG_NET_DSA_SJA1105_PTP=y CONFIG_BRIDGE_VLAN_FILTERING=y @@ -66,6 +71,7 @@ CONFIG_SERIAL_FSL_LINFLEXUART_CONSOLE=y #SPI CONFIG_SPI=y CONFIG_SPI_FSL_DSPI=y +CONFIG_SPI_FSL_LPSPI=y CONFIG_SPI_SPIDEV=y CONFIG_GPIO_CDEV=y CONFIG_GPIO_S32CC=y @@ -126,6 +132,7 @@ CONFIG_INPUT_UINPUT=y # Thermal CONFIG_THERMAL=y CONFIG_QORIQ_THERMAL=y +CONFIG_CPU_THERMAL=y # ADC CONFIG_IIO=y @@ -163,6 +170,7 @@ CONFIG_BLK_DEV_NVME=y CONFIG_NVME_TARGET=y CONFIG_NVMEM_S32CC_SIUL2=y CONFIG_NVMEM_S32CC_OCOTP=y +CONFIG_NVMEM_S32CC_GPR=y # CONFIG_NVMEM_SCMI is not set #LLCE -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13804): https://lists.yoctoproject.org/g/linux-yocto/message/13804 Mute This Topic: https://lists.yoctoproject.org/mt/105509334/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 kernel v6.1]: nxp-s32g: update to compatible with SDK BSP40
Hi Bruce, There is a patch to update v6.1 kernel cache for nxp-s32g bsp, would you please help to merge the following patch into yocto-6.1 branch? Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13805): https://lists.yoctoproject.org/g/linux-yocto/message/13805 Mute This Topic: https://lists.yoctoproject.org/mt/105509335/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 std kernel v6.1]: nxp-s32g: update to compatible with SDK BSP40 release
Hi Bruce, There are 211 patches to update to compatible with SDK BSP39 release. Would you please help to merge the patches to: v6.1/standard/nxp-sdk-5.15/nxp-s32g branch? The following changes since commit c35789c18149bed4d149a893a16ba61f589a3d20: Merge branch 'v6.1/standard/base' into v6.1/standard/nxp-sdk-5.15/nxp-s32g (2024-04-09 12:30:40 -0400) are available in the Git repository at: https://github.com/zhantaotang/linux-yocto-std v6.1/standard/nxp-sdk-5.15/nxp-s32g for you to fetch changes up to e3c1d80279e6fe930a99bcec75fb3179ab0f1adf: thermal: qoriq: Fix deadlock between irq and tmu_get_temp (2024-04-10 21:15:51 +0800) Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13789): https://lists.yoctoproject.org/g/linux-yocto/message/13789 Mute This Topic: https://lists.yoctoproject.org/mt/105454683/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 preempt-rt kernel v6.1]: nxp-s32g: update to compatible with SDK BSP40 release
Hi Bruce, There are 211 patches to update to compatible with SDK BSP40 release. Would you please help to merge the following patches into v6.1/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g branch? The following changes since commit acda2a279d8f9e5f60c19e47d6ae70e207e751e1: Merge branch 'v6.1/standard/preempt-rt/base' into v6.1/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g (2024-04-09 12:37:43 -0400) are available in the Git repository at: https://github.com/zhantaotang/linux-yocto-std v6.1/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g for you to fetch changes up to d49e6f8ff7060fa5478362aee50fa5b81566fc45: thermal: qoriq: Fix deadlock between irq and tmu_get_temp (2024-04-10 21:43:22 +0800) Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13790): https://lists.yoctoproject.org/g/linux-yocto/message/13790 Mute This Topic: https://lists.yoctoproject.org/mt/105454685/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] nxp-s32g: update to compatible with SDK BSP39
There are some new configs enabled in SDK BSP39 release, so update kernel cache to be compatible with SDK. Signed-off-by: Zhantao Tang --- bsp/nxp-s32g/nxp-s32g.cfg | 8 1 file changed, 8 insertions(+) diff --git a/bsp/nxp-s32g/nxp-s32g.cfg b/bsp/nxp-s32g/nxp-s32g.cfg index 714fe362..17e208d0 100644 --- a/bsp/nxp-s32g/nxp-s32g.cfg +++ b/bsp/nxp-s32g/nxp-s32g.cfg @@ -31,6 +31,9 @@ CONFIG_CPU_FREQ_GOV_POWERSAVE=y CONFIG_CPU_FREQ_GOV_USERSPACE=y CONFIG_CPU_FREQ_GOV_ONDEMAND=y CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y +CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y +CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y +CONFIG_ARM_SCMI_CPUFREQ=y CONFIG_ARM_SCMI_TRANSPORT_SMC_ATOMIC_ENABLE=y #To keep align with SDK, unset the ARM_SCMI_POWER_DOMAIN config @@ -52,6 +55,8 @@ CONFIG_BRIDGE=y CONFIG_NET_DSA=y CONFIG_NET_DSA_TAG_SJA1105=y CONFIG_NXP_TJA11XX_PHY=y +CONFIG_NXP_C45_TJA11XX_PHY=y +CONFIG_NXP_CBTX_PHY=y CONFIG_NET_DSA_SJA1105=y CONFIG_NET_DSA_SJA1105_PTP=y CONFIG_BRIDGE_VLAN_FILTERING=y @@ -65,6 +70,7 @@ CONFIG_SERIAL_FSL_LINFLEXUART_CONSOLE=y #SPI CONFIG_SPI=y CONFIG_SPI_FSL_DSPI=y +CONFIG_SPI_FSL_LPSPI=y CONFIG_SPI_SPIDEV=y CONFIG_GPIO_CDEV=y CONFIG_GPIO_S32CC=y @@ -125,6 +131,7 @@ CONFIG_INPUT_UINPUT=y # Thermal CONFIG_THERMAL=y CONFIG_QORIQ_THERMAL=y +CONFIG_CPU_THERMAL=y # ADC CONFIG_IIO=y @@ -162,6 +169,7 @@ CONFIG_BLK_DEV_NVME=y CONFIG_NVME_TARGET=y CONFIG_NVMEM_S32CC_SIUL2=y CONFIG_NVMEM_S32CC_OCOTP=y +CONFIG_NVMEM_S32CC_GPR=y # CONFIG_NVMEM_SCMI is not set #LLCE -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13461): https://lists.yoctoproject.org/g/linux-yocto/message/13461 Mute This Topic: https://lists.yoctoproject.org/mt/103593253/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 kernel v5.15]: nxp-s32g: update to compatible with SDK BSP39
Hi Bruce, There is a patch to update v5.15 kernel cache for nxp-s32g bsp, would you please help to merge the following patch into yocto-5.15 branch? Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13460): https://lists.yoctoproject.org/g/linux-yocto/message/13460 Mute This Topic: https://lists.yoctoproject.org/mt/103593252/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 std kernel v5.15]: nxp-s32g: update to compatible with SDK BSP39
Hi Bruce, There are 154 patches to update to compatible with SDK BSP39 release. Would you please help to merge the patches to: v5.15/standard/nxp-sdk-5.15/nxp-s32g branch? The following changes since commit b7fdb2ed24cc1364df382090a76ac492cf736e11: Merge branch 'v5.15/standard/base' into v5.15/standard/nxp-sdk-5.15/nxp-s32g (2023-12-27 21:15:07 -0500) are available in the Git repository at: https://github.com/zhantaotang/linux-yocto-std v5.15/standard/nxp-sdk-5.15/nxp-s32g for you to fetch changes up to 32dac696eb5072ba0b43d773d54fdd65f23d960d: s32cc: ddr: Upgrade DDR FW to S32CT 1.7 Update 4 (2024-01-06 20:25:18 +0800) Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13458): https://lists.yoctoproject.org/g/linux-yocto/message/13458 Mute This Topic: https://lists.yoctoproject.org/mt/103593229/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 preempt-rt kernel v5.15]: nxp-s32g: update to compatible with SDK BSP39 release
Hi Bruce, There are 154 patches to update to compatible with SDK BSP39 release. Would you please help to merge the following patches into v5.15/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g branch? The following changes since commit a0063c1641706939e97363893289552757ce74df: Merge branch 'v5.15/standard/base' into v5.15/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g (2023-12-27 21:23:06 -0500) are available in the Git repository at: https://github.com/zhantaotang/linux-yocto-std v5.15/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g for you to fetch changes up to 766e399f4b42aba2777866d1a8b666b30a84df3c: s32cc: ddr: Upgrade DDR FW to S32CT 1.7 Update 4 (2024-01-06 20:33:26 +0800) Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13459): https://lists.yoctoproject.org/g/linux-yocto/message/13459 Mute This Topic: https://lists.yoctoproject.org/mt/103593230/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] nxp-s32g: update to compatile with SDK BSP38
This patch updates v6.1 kernel cache for nxp-s32g to compatible with SDK BSP38, and the related configs refers to both LTS22 and SDK BSP38. Moreover, the CONFIG_NVMEM_SCMI is added to support SCMI protocol/transport style, but now the ATF transport side is not ready, and it will cause the following panic when STR: Unable to handle kernel paging request at virtual address ffe8 Mem abort info: ESR = 0x9605 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x05: level 1 translation fault Data abort info: ISV = 0, ISS = 0x0005 CM = 0, WnR = 0 swapper pgtable: 4k pages, 39-bit VAs, pgdp=8b83e000 [ffe8] pgd=, p4d=, pud= Internal error: Oops: 9605 [#1] PREEMPT SMP Modules linked in: 8021q llce_can llce_mailbox pfeng(O) llce_core sch_fq_codel openvswitch nsh nf_conncount nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 CPU: 1 PID: 961 Comm: rtcwake Tainted: G O 5.15.129-yocto-standard #1 Hardware name: NXP S32G274A-RDB2 (DT) pstate: 0005 (nzcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : scmi_dev_suspend+0xc/0x40 lr : __device_suspend+0x2bc/0x444 sp : ffc00d13ba90 x29: ffc00d13ba90 x28: ffc008ad78c4 x27: ff880ba2a260 x26: 0002 x25: ffc009d4619c x24: ffc008d5b6e0 x23: ff880ba28930 x22: x21: 0002 x20: ffc00b299d60 x19: ff880ba28810 x18: x17: 203a7367616c6620 x16: 7265766972642064 x15: ffc00aa968c2 x14: x13: 30203a7367616c66 x12: 2072657669726420 x11: 00f2 x10: ffc009d46d78 x9 : ffc008ad773c x8 : f287 x7 : ffc009d9ed78 x6 : 0001 x5 : ff880ba28810 x4 : 0001 x3 : ffc009769008 x2 : x1 : 0002 x0 : ff880ba28810 Call trace: scmi_dev_suspend+0xc/0x40 dpm_suspend+0x184/0x26c dpm_suspend_start+0x84/0xa0 suspend_devices_and_enter+0x148/0x20c enter_state+0x148/0x1dc pm_suspend+0x60/0xf0 state_store+0x94/0x120 kobj_attr_store+0x18/0x30 sysfs_kf_write+0x54/0x80 kernfs_fop_write_iter+0x128/0x1c0 new_sync_write+0xf0/0x18c vfs_write+0x1c4/0x220 ksys_write+0x70/0x100 __arm64_sys_write+0x24/0x30 invoke_syscall+0x5c/0x130 el0_svc_common.constprop.0+0x68/0x124 do_el0_svc+0x4c/0xb0 el0_svc+0x54/0x110 el0t_64_sync_handler+0xa4/0x130 el0t_64_sync+0x1a0/0x1a4 Code: d503201f aa1e03e9 d503201f f9403402 (f85e8042) ---[ end trace b5605e874e1249c4 ]--- Kernel panic - not syncing: Oops: Fatal exception SMP: stopping secondary CPUs Kernel Offset: disabled CPU features: 0x9,2001,2842 Memory Limit: none ---[ end Kernel panic - not syncing: Oops: Fatal exception ]--- So disable this config by default to fix the above issues, and it will be enabled when related codes all ready. Signed-off-by: Zhantao Tang --- bsp/nxp-s32g/nxp-s32g.cfg | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bsp/nxp-s32g/nxp-s32g.cfg b/bsp/nxp-s32g/nxp-s32g.cfg index 1b8eae74..df6458b8 100644 --- a/bsp/nxp-s32g/nxp-s32g.cfg +++ b/bsp/nxp-s32g/nxp-s32g.cfg @@ -19,7 +19,10 @@ CONFIG_SOC_S32CC=y CONFIG_SCHED_MC=y CONFIG_ARM_SMMU=y +CONFIG_NXP_GLOBAL_TIME_STM=y + CONFIG_PINCTRL_S32CC=y +CONFIG_PINCTRL_SCMI=y CONFIG_CPU_IDLE=y CONFIG_ARM_PSCI_CPUIDLE=y @@ -52,6 +55,7 @@ CONFIG_NET_DSA_TAG_SJA1105=y CONFIG_NXP_TJA11XX_PHY=y CONFIG_NET_DSA_SJA1105=y CONFIG_NET_DSA_SJA1105_PTP=y +CONFIG_BRIDGE_VLAN_FILTERING=y #Serial CONFIG_SERIAL_AMBA_PL011=y @@ -65,6 +69,8 @@ CONFIG_SPI_FSL_DSPI=y CONFIG_SPI_SPIDEV=y CONFIG_GPIO_CDEV=y CONFIG_GPIO_S32CC=y +CONFIG_GPIO_SCMI=y +CONFIG_SENSORS_INA2XX=y #PCIE CONFIG_PCI=y @@ -119,7 +125,7 @@ CONFIG_INPUT_UINPUT=y # Thermal CONFIG_THERMAL=y -CONFIG_S32CC_THERMAL=y +CONFIG_QORIQ_THERMAL=y # ADC CONFIG_IIO=y @@ -156,6 +162,8 @@ CONFIG_S32CC_WDT=y CONFIG_BLK_DEV_NVME=y CONFIG_NVME_TARGET=y CONFIG_NVMEM_S32CC_SIUL2=y +CONFIG_NVMEM_S32CC_OCOTP=y +# CONFIG_NVMEM_SCMI is not set #LLCE CONFIG_CAN_LLCE=y -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13264): https://lists.yoctoproject.org/g/linux-yocto/message/13264 Mute This Topic: https://lists.yoctoproject.org/mt/102359525/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 kernel v6.1]: nxp-s32g: update to compatile with SDK BSP38
Hi Bruce, There is a patch to update v6.1 kernel cache for nxp-s32g bsp, would you please help to merge the following patch into yocto-6.1 branch? Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13263): https://lists.yoctoproject.org/g/linux-yocto/message/13263 Mute This Topic: https://lists.yoctoproject.org/mt/102359524/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 preempt-rt kernel v6.1]: nxp-s32g: update to compatible with SDK BSP38 release
Hi Bruce, There are 191 patches to update to compatible with SDK BSP38 release. Would you please help to merge the following patches into v6.1/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g branch? The following changes since commit 1e88292d2a8589aff7afbd6076292082eb3edff1: Merge branch 'v6.1/standard/base' into v6.1/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g (2023-10-27 15:48:25 -0400) are available in the Git repository at: https://github.com/zhantaotang/linux-yocto-std v6.1/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g for you to fetch changes up to 200261c430cd9b4d07eefaf9c5bca6e7be144112: dts: s32g: add trips nodes for thermal zones to make thermal system works (2023-11-02 21:39:13 +0800) Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13256): https://lists.yoctoproject.org/g/linux-yocto/message/13256 Mute This Topic: https://lists.yoctoproject.org/mt/102342279/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 std kernel v6.1]: nxp-s32g: update to compatible with SDK BSP38 release
Hi Bruce, There are 191 patches to update to compatible with SDK BSP38 release. Would you please help to merge them into v6.1/standard/nxp-sdk-5.15/nxp-s32g branch? The following changes since commit e2e26b90ca3b00d9c382682841c9f4077a7d411e: Merge branch 'v6.1/standard/base' into v6.1/standard/nxp-sdk-5.15/nxp-s32g (2023-10-27 15:46:38 -0400) are available in the Git repository at: https://github.com/zhantaotang/linux-yocto-std v6.1/standard/nxp-sdk-5.15/nxp-s32g for you to fetch changes up to ed57c391805a7dc37f70f4aa9eb3bb341fa0ee30: dts: s32g: add trips nodes for thermal zones to make thermal system works (2023-11-01 13:24:56 +0800) Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13255): https://lists.yoctoproject.org/g/linux-yocto/message/13255 Mute This Topic: https://lists.yoctoproject.org/mt/102342278/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] driver: llce-core: correct the value of CORES_TS_OFFSET
The default value of CORES_TS_OFFSET will cause the following known issue: # cat /sys/kernel/debug/llce_core/core1_ts Unable to handle kernel paging request at virtual address ffc00ced0870 Mem abort info: ESR = 0x9607 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x07: level 3 translation fault Data abort info: ISV = 0, ISS = 0x0007 CM = 0, WnR = 0 swapper pgtable: 4k pages, 39-bit VAs, pgdp=8b84f000 [ffc00ced0870] pgd=1008d003, p4d=1008d003, pud=1008d003, pmd=100889aeb003, pte= Internal error: Oops: 9607 1 PREEMPT SMP Modules linked in: 8021q llce_mailbox llce_core llce_can pfeng(O) sch_fq_codel openvswitch nsh nf_conncount nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 [last unloaded: llce_core] CPU: 1 PID: 781 Comm: cat Tainted: G O 5.15.135-yocto-standard #1 Hardware name: NXP S32G399A-RDB3 (DT) pstate: 6005 (nZCv daif PAN -UAO -TCO -DIT -SSBS BTYPE=-) pc : debugfs_readl_get+0xc/0x30 [llce_core] lr : simple_attr_read+0x7c/0x130 sp : ffc00d23bcd0 x29: ffc00d23bce0 x28: ff88142e0040 x27: x26: x25: x24: 007fb45bf000 x23: 0002 x22: ff8820da7150 x21: x20: ffc00d23bda0 x19: ff8820da7100 x18: x17: x16: x15: x14: x13: x12: x11: 0001 x10: 0101010101010101 x9 : ffc00836968c x8 : ffc009fb6c18 x7 : x6 : 0001 x5 : ffc009d31000 x4 : ffc009d31808 x3 : x2 : ffc00117 x1 : ffc00d23bcd0 x0 : ffc00ced0870 Call trace: debugfs_readl_get+0xc/0x30 [llce_core] debugfs_attr_read+0x54/0x9c vfs_read+0xb4/0x1ec ksys_read+0x74/0x104 __arm64_sys_read+0x24/0x30 invoke_syscall+0x5c/0x130 el0_svc_common.constprop.0+0x68/0x124 do_el0_svc+0x4c/0xb0 el0_svc+0x54/0x110 el0t_64_sync_handler+0xa4/0x130 el0t_64_sync+0x1a0/0x1a4 Code: bad PC value --[ end trace feb346f6b33a6527 ]-- Kernel panic - not syncing: Oops: Fatal exception SMP: stopping secondary CPUs Kernel Offset: disabled CPU features: 0x8,2001,2842 Memory Limit: none --[ end Kernel panic - not syncing: Oops: Fatal exception ]-- This patch changing the CORES_TS_OFFSET to 0x13730, which is from the "Release Note" of BSP38 and given as a workaround, will fix the above issue. The value of CORES_TS_OFFSET may be changed in future BSP versions, and we will update it accordingly. Signed-off-by: Zhantao Tang --- drivers/mfd/llce-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/llce-core.c b/drivers/mfd/llce-core.c index 212bf99283dc1..e7a798324f9f8 100644 --- a/drivers/mfd/llce-core.c +++ b/drivers/mfd/llce-core.c @@ -36,7 +36,7 @@ #define LLCE_MGR_TX_BOOT_END (0x0F00U) #define LLCE_MGR_FRPE_BOOT_END (0xF000U) #define LLCE_MGR_BOOT_END_ALL_CORES_MASK (0xU) -#define CORES_TS_OFFSET(0x13FD0) +#define CORES_TS_OFFSET(0x13730) struct sram_node { const char *name; -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13203): https://lists.yoctoproject.org/g/linux-yocto/message/13203 Mute This Topic: https://lists.yoctoproject.org/mt/102074006/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 std/preempt-rt kernel v5.15]: driver: llce-core: correct the value of CORES_TS_OFFSET
Hi Bruce, There is one patch to correct the value of CORES_TS_OFFSET. Would you please help to merge it into v5.15/standard/nxp-sdk-5.15/nxp-s32g v5.15/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g branches? Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13202): https://lists.yoctoproject.org/g/linux-yocto/message/13202 Mute This Topic: https://lists.yoctoproject.org/mt/102074003/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] nxp-s32g: revert QORIQ_THERMAL to S32CC_THERMAL
This reverts commit 31a63478a981 "nxp-s32g: change S32CC_THERMAL to QORIQ_THERMAL", which wrongly replaced the config S32CC_THERMAL by QORIQ_THERMAL, and this will cause kernel compile warning. So revert it to fix the issue. Signed-off-by: Zhantao Tang --- bsp/nxp-s32g/nxp-s32g.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsp/nxp-s32g/nxp-s32g.cfg b/bsp/nxp-s32g/nxp-s32g.cfg index 5e914758..1b8eae74 100644 --- a/bsp/nxp-s32g/nxp-s32g.cfg +++ b/bsp/nxp-s32g/nxp-s32g.cfg @@ -119,7 +119,7 @@ CONFIG_INPUT_UINPUT=y # Thermal CONFIG_THERMAL=y -CONFIG_QORIQ_THERMAL=y +CONFIG_S32CC_THERMAL=y # ADC CONFIG_IIO=y -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13185): https://lists.yoctoproject.org/g/linux-yocto/message/13185 Mute This Topic: https://lists.yoctoproject.org/mt/101988894/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 kernel v6.1]: nxp-s32g: revert QORIQ_THERMAL to S32CC_THERMAL
Hi Bruce, There is a patch to fix v6.1 kernel compile warning, because the S32CC_THERMAL kernel config in kernel cache wrongly replaced by QORIQ_THERMAL in yocto-6.1 branch. So would you please help to merge the following patch into yocto-6.1 branch to fix kernel build warning? Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13184): https://lists.yoctoproject.org/g/linux-yocto/message/13184 Mute This Topic: https://lists.yoctoproject.org/mt/101988893/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [linux-yocto] [linux-yocto std/rt kernel v5.15]: nxp-s32g: update to compatible with SDK BSP38 RC9
On 2023/9/27 11:37, Bruce Ashfield wrote: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. In message: [linux-yocto] [linux-yocto std/rt kernel v5.15]: nxp-s32g: update to compatible with SDK BSP38 RC9 on 26/09/2023 Zhantao Tang wrote: Hi Bruce, There are 92 patches, which are all from S32G SDK BSP38 RC9 v5.15 kernel branch. Would you please help to merge the patches to: v5.15/standard/nxp-sdk-5.15/nxp-s32g v5.15/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g branches? merged. But note that the single pull request branch creates conflicts with preempt-rt based branches. But I was able to rebase the patches onto the preempt-rt BSP and complete the merge. Hi Bruce, Thanks for your efficient work. And I am sorry for the inconvenience for this pull request, I will sent pull requests for standard and preempt-rt branches respectively in future. Regards, Zhantao Cheers, Bruce Thanks, Zhantao The following changes since commit ed5dd45da70714c7bd75e1d472e7769143c53a72: Merge branch 'v5.15/standard/base' into v5.15/standard/nxp-sdk-5.15/nxp-s32g (2023-09-14 15:45:01 -0400) are available in the Git repository at: https://github.com/zhantaotang/linux-yocto-std/tree/v5.15/standard/nxp-sdk-5.15/nxp-s32g for you to fetch changes up to 8d15f696310357bd5db5c6ee963e8909d3adeeb8: uio: hse: suspend/resume support (2023-09-25 13:30:22 +0800) -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13125): https://lists.yoctoproject.org/g/linux-yocto/message/13125 Mute This Topic: https://lists.yoctoproject.org/mt/101591517/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] nxp-s32g: change S32CC_THERMAL to QORIQ_THERMAL
The latest SDK BSP38 RC9 drops the S32CC_THERMAL config and changes to use QORIQ_THERMAL instead, so update kernel cache to compatible with it. Signed-off-by: Zhantao Tang --- bsp/nxp-s32g/nxp-s32g.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsp/nxp-s32g/nxp-s32g.cfg b/bsp/nxp-s32g/nxp-s32g.cfg index 98610651..dd270cbb 100644 --- a/bsp/nxp-s32g/nxp-s32g.cfg +++ b/bsp/nxp-s32g/nxp-s32g.cfg @@ -122,7 +122,7 @@ CONFIG_INPUT_UINPUT=y # Thermal CONFIG_THERMAL=y -CONFIG_S32CC_THERMAL=y +CONFIG_QORIQ_THERMAL=y # ADC CONFIG_IIO=y -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13114): https://lists.yoctoproject.org/g/linux-yocto/message/13114 Mute This Topic: https://lists.yoctoproject.org/mt/101591558/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 v5.15]: nxp-s32g: change S32CC_THERMAL to QORIQ_THERMAL
Hi Bruce, There is a patch to update kernel cache for nxp-s32g bsp. Would you please help to merge the patch into yocto-5.15 branch? Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13115): https://lists.yoctoproject.org/g/linux-yocto/message/13115 Mute This Topic: https://lists.yoctoproject.org/mt/101591560/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 std/rt kernel v5.15]: nxp-s32g: update to compatible with SDK BSP38 RC9
Hi Bruce, There are 92 patches, which are all from S32G SDK BSP38 RC9 v5.15 kernel branch. Would you please help to merge the patches to: v5.15/standard/nxp-sdk-5.15/nxp-s32g v5.15/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g branches? Thanks, Zhantao The following changes since commit ed5dd45da70714c7bd75e1d472e7769143c53a72: Merge branch 'v5.15/standard/base' into v5.15/standard/nxp-sdk-5.15/nxp-s32g (2023-09-14 15:45:01 -0400) are available in the Git repository at: https://github.com/zhantaotang/linux-yocto-std/tree/v5.15/standard/nxp-sdk-5.15/nxp-s32g for you to fetch changes up to 8d15f696310357bd5db5c6ee963e8909d3adeeb8: uio: hse: suspend/resume support (2023-09-25 13:30:22 +0800) -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13113): https://lists.yoctoproject.org/g/linux-yocto/message/13113 Mute This Topic: https://lists.yoctoproject.org/mt/101591517/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] nxp-s32g: disable the NVMEM_SCMI config to fix STR failure
When update to SDK BSP37 SRM release, there is a new added kernel config NVMEM_SCMI, it is to add SCMI NVMEM support, but now the ATF transport side is not ready, and this config will cause the following panic when STR: Unable to handle kernel paging request at virtual address ffe8 Mem abort info: ESR = 0x9605 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x05: level 1 translation fault Data abort info: ISV = 0, ISS = 0x0005 CM = 0, WnR = 0 swapper pgtable: 4k pages, 39-bit VAs, pgdp=8b83e000 [ffe8] pgd=, p4d=, pud= Internal error: Oops: 9605 [#1] PREEMPT SMP Modules linked in: 8021q llce_can llce_mailbox pfeng(O) llce_core sch_fq_codel openvswitch nsh nf_conncount nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 CPU: 1 PID: 961 Comm: rtcwake Tainted: G O 5.15.129-yocto-standard #1 Hardware name: NXP S32G274A-RDB2 (DT) pstate: 0005 (nzcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : scmi_dev_suspend+0xc/0x40 lr : __device_suspend+0x2bc/0x444 sp : ffc00d13ba90 x29: ffc00d13ba90 x28: ffc008ad78c4 x27: ff880ba2a260 x26: 0002 x25: ffc009d4619c x24: ffc008d5b6e0 x23: ff880ba28930 x22: x21: 0002 x20: ffc00b299d60 x19: ff880ba28810 x18: x17: 203a7367616c6620 x16: 7265766972642064 x15: ffc00aa968c2 x14: x13: 30203a7367616c66 x12: 2072657669726420 x11: 00f2 x10: ffc009d46d78 x9 : ffc008ad773c x8 : f287 x7 : ffc009d9ed78 x6 : 0001 x5 : ff880ba28810 x4 : 0001 x3 : ffc009769008 x2 : x1 : 0002 x0 : ff880ba28810 Call trace: scmi_dev_suspend+0xc/0x40 dpm_suspend+0x184/0x26c dpm_suspend_start+0x84/0xa0 suspend_devices_and_enter+0x148/0x20c enter_state+0x148/0x1dc pm_suspend+0x60/0xf0 state_store+0x94/0x120 kobj_attr_store+0x18/0x30 sysfs_kf_write+0x54/0x80 kernfs_fop_write_iter+0x128/0x1c0 new_sync_write+0xf0/0x18c vfs_write+0x1c4/0x220 ksys_write+0x70/0x100 __arm64_sys_write+0x24/0x30 invoke_syscall+0x5c/0x130 el0_svc_common.constprop.0+0x68/0x124 do_el0_svc+0x4c/0xb0 el0_svc+0x54/0x110 el0t_64_sync_handler+0xa4/0x130 el0t_64_sync+0x1a0/0x1a4 Code: d503201f aa1e03e9 d503201f f9403402 (f85e8042) ---[ end trace b5605e874e1249c4 ]--- Kernel panic - not syncing: Oops: Fatal exception SMP: stopping secondary CPUs Kernel Offset: disabled CPU features: 0x9,2001,2842 Memory Limit: none ---[ end Kernel panic - not syncing: Oops: Fatal exception ]--- So disable this config by default to fix the above issues, and it is will be enabled again when related codes all ready. Signed-off-by: Zhantao Tang --- bsp/nxp-s32g/nxp-s32g.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsp/nxp-s32g/nxp-s32g.cfg b/bsp/nxp-s32g/nxp-s32g.cfg index 977ee918..98610651 100644 --- a/bsp/nxp-s32g/nxp-s32g.cfg +++ b/bsp/nxp-s32g/nxp-s32g.cfg @@ -159,7 +159,7 @@ CONFIG_S32CC_WDT=y CONFIG_BLK_DEV_NVME=y CONFIG_NVME_TARGET=y CONFIG_NVMEM_S32CC_SIUL2=y -CONFIG_NVMEM_SCMI=y +# CONFIG_NVMEM_SCMI is not set #LLCE CONFIG_CAN_LLCE=y -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13100): https://lists.yoctoproject.org/g/linux-yocto/message/13100 Mute This Topic: https://lists.yoctoproject.org/mt/101494736/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 v5.15]: nxp-s32g: disable the NVMEM_SCMI config to fix STR failure
Hi Bruce, There is a patch to fix a STR failure issue, Would you please help to merge the following patches into: yocto-5.15 branch? Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13099): https://lists.yoctoproject.org/g/linux-yocto/message/13099 Mute This Topic: https://lists.yoctoproject.org/mt/101494735/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: V2 [linux-yocto] [linux-yocto std kernel v5.15]: nxp-s32g: update to compatible with SDK BSP37 srm release
On 2023/9/4 11:02, Bruce Ashfield wrote: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. In message: V2 [linux-yocto] [linux-yocto std kernel v5.15]: nxp-s32g: update to compatible with SDK BSP37 srm release on 01/09/2023 Zhantao Tang wrote: Hi Bruce, Please ignore the privous pull request for nxp-s32g BSP37 update, because there are 3 patches are not needed actually. In this request, there are 109 patches from S32G SDK BSP37 v5.15 kernel branch. Would you please help to merge the patches to: v5.15/standard/nxp-sdk-5.15/nxp-s32g v5.15/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g merged. I had to pick the 109 patches onto the preempt-rt BSP, since I can't merge the branch without conflicts. If I missed a patch, send follow up pull request. Hi Bruce, Thanks for your nice work. I checked the preempt-rt branch, all 109 patches applied. Thanks, Zhantao Bruce branches? Thanks, Zhantao The following changes since commit e010f47a17961513811035046865b0eb2ef1545b: Merge branch 'v5.15/standard/base' into v5.15/standard/nxp-sdk-5.15/nxp-s32g (2023-08-27 21:46:18 -0400) are available in the Git repository at: https://github.com/zhantaotang/linux-yocto-std v5.15/standard/nxp-sdk-5.15/nxp-s32g for you to fetch changes up to 5dda12ea19780ec61de42c8c81f194d8a49e3897: mailbox: llce: Update headers to firmware version 1.0.7 (2023-09-01 14:15:25 +0800) -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13033): https://lists.yoctoproject.org/g/linux-yocto/message/13033 Mute This Topic: https://lists.yoctoproject.org/mt/101089893/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
V2 [linux-yocto] [linux-yocto std kernel v5.15]: nxp-s32g: update to compatible with SDK BSP37 srm release
Hi Bruce, Please ignore the privous pull request for nxp-s32g BSP37 update, because there are 3 patches are not needed actually. In this request, there are 109 patches from S32G SDK BSP37 v5.15 kernel branch. Would you please help to merge the patches to: v5.15/standard/nxp-sdk-5.15/nxp-s32g v5.15/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g branches? Thanks, Zhantao The following changes since commit e010f47a17961513811035046865b0eb2ef1545b: Merge branch 'v5.15/standard/base' into v5.15/standard/nxp-sdk-5.15/nxp-s32g (2023-08-27 21:46:18 -0400) are available in the Git repository at: https://github.com/zhantaotang/linux-yocto-std v5.15/standard/nxp-sdk-5.15/nxp-s32g for you to fetch changes up to 5dda12ea19780ec61de42c8c81f194d8a49e3897: mailbox: llce: Update headers to firmware version 1.0.7 (2023-09-01 14:15:25 +0800) -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13029): https://lists.yoctoproject.org/g/linux-yocto/message/13029 Mute This Topic: https://lists.yoctoproject.org/mt/101089893/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [linux-yocto] [yocto-kernel-cache yocto-5.15]: nxp-s32g: update to compatible with SDK BSP37 srm release
在 2023/8/31 21:35, Bruce Ashfield 写道: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. On Wed, Aug 30, 2023 at 9:50 PM Zhantao Tang wrote: Hi Bruce, There is one patch to update yocto-kernel-cache to compatible with SDK BSP37 srm release. Would you please help to merge the patch to yocto-5.15 branch? The changes look fine to me, but I'm out of the office on vacation and have lost access to my development machine. So this will take until Monday to get merged. It is alright. Thanks for your kindly remind. Have a good vacation. Regards, Zhantao Bruce Thanks, Zhantao -- - Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13028): https://lists.yoctoproject.org/g/linux-yocto/message/13028 Mute This Topic: https://lists.yoctoproject.org/mt/101066246/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] nxp-s32g: add configs to keep align with SDK BSP37
There are some new configs enabled in SDK BSP37 release, so update kernel cache to be compatible with SDK. Signed-off-by: Zhantao Tang --- bsp/nxp-s32g/nxp-s32g.cfg | 5 + 1 file changed, 5 insertions(+) diff --git a/bsp/nxp-s32g/nxp-s32g.cfg b/bsp/nxp-s32g/nxp-s32g.cfg index c7f1e430..977ee918 100644 --- a/bsp/nxp-s32g/nxp-s32g.cfg +++ b/bsp/nxp-s32g/nxp-s32g.cfg @@ -19,6 +19,7 @@ CONFIG_SCHED_MC=y CONFIG_ARM_SMMU=y CONFIG_PINCTRL_S32CC=y +CONFIG_PINCTRL_SCMI=y CONFIG_CPU_IDLE=y CONFIG_ARM_CPUIDLE=y @@ -51,6 +52,7 @@ CONFIG_NET_DSA_TAG_SJA1105=y CONFIG_NXP_TJA11XX_PHY=y CONFIG_NET_DSA_SJA1105=y CONFIG_NET_DSA_SJA1105_PTP=y +CONFIG_BRIDGE_VLAN_FILTERING=y #Serial CONFIG_SERIAL_AMBA_PL011=y @@ -64,6 +66,8 @@ CONFIG_SPI_FSL_DSPI=y CONFIG_SPI_SPIDEV=y CONFIG_GPIO_CDEV=y CONFIG_GPIO_S32CC=y +CONFIG_GPIO_SCMI=y +CONFIG_SENSORS_INA2XX=y #PCIE CONFIG_PCI=y @@ -155,6 +159,7 @@ CONFIG_S32CC_WDT=y CONFIG_BLK_DEV_NVME=y CONFIG_NVME_TARGET=y CONFIG_NVMEM_S32CC_SIUL2=y +CONFIG_NVMEM_SCMI=y #LLCE CONFIG_CAN_LLCE=y -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13026): https://lists.yoctoproject.org/g/linux-yocto/message/13026 Mute This Topic: https://lists.yoctoproject.org/mt/101066248/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [yocto-kernel-cache yocto-5.15]: nxp-s32g: update to compatible with SDK BSP37 srm release
Hi Bruce, There is one patch to update yocto-kernel-cache to compatible with SDK BSP37 srm release. Would you please help to merge the patch to yocto-5.15 branch? Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13025): https://lists.yoctoproject.org/g/linux-yocto/message/13025 Mute This Topic: https://lists.yoctoproject.org/mt/101066246/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 std kernel v5.15]: nxp-s32g: update to compatible with SDK BSP37 srm release
Hi Bruce, There are 112 patches from S32G SDK BSP37 v5.15 kernel branch. Would you please help to merge the patches to: v5.15/standard/nxp-sdk-5.15/nxp-s32g v5.15/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g branches? Thanks, Zhantao The following changes since commit e010f47a17961513811035046865b0eb2ef1545b: Merge branch 'v5.15/standard/base' into v5.15/standard/nxp-sdk-5.15/nxp-s32g (2023-08-27 21:46:18 -0400) are available in the Git repository at: https://github.com/zhantaotang/linux-yocto-std v5.15/standard/nxp-sdk-5.15/nxp-s32g for you to fetch changes up to 9581ff05213a0d41f30c6e40eecb3e01a648cd62: mailbox: llce: Update headers to firmware version 1.0.7 (2023-08-30 11:08:29 +0800) -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13024): https://lists.yoctoproject.org/g/linux-yocto/message/13024 Mute This Topic: https://lists.yoctoproject.org/mt/101066245/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] dts: evb: add sja1105 delay params
This patch is to add delay params for S32G EVB boards, or else, there will be following warning messages: sja1105 spi5.0: Probed switch chip: SJA1105Q sja1105 spi5.0: Port 0 interpreting RGMII delay settings based on "phy-mode" property, please update device tree to specify "rx-internal-delay-ps" and "tx-internal-delay-ps" --- arch/arm64/boot/dts/freescale/s32gxxxa-evb.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/s32gxxxa-evb.dtsi b/arch/arm64/boot/dts/freescale/s32gxxxa-evb.dtsi index d6c2463bc424..75486d696b99 100644 --- a/arch/arm64/boot/dts/freescale/s32gxxxa-evb.dtsi +++ b/arch/arm64/boot/dts/freescale/s32gxxxa-evb.dtsi @@ -1097,6 +1097,8 @@ ports { port@0 { label = "sw0-p0"; phy-mode = "rgmii-id"; + rx-internal-delay-ps = <2000>; + tx-internal-delay-ps = <2000>; ethernet = <_netif2>; reg = <0>; @@ -1123,6 +1125,8 @@ enet_p2@2 { enet_p3@3 { label = "enet_p3"; phy-mode = "rgmii-id"; + rx-internal-delay-ps = <2000>; + tx-internal-delay-ps = <2000>; phy-handle = <_mdio_a_phy2>; reg = <3>; }; @@ -1130,6 +1134,8 @@ enet_p3@3 { enet_p4@4 { label = "enet_p4"; phy-mode = "rgmii-id"; + rx-internal-delay-ps = <2000>; + tx-internal-delay-ps = <2000>; phy-handle = <_mdio_a_phy3>; reg = <4>; }; -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12790): https://lists.yoctoproject.org/g/linux-yocto/message/12790 Mute This Topic: https://lists.yoctoproject.org/mt/99749565/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] mtd: spi-nor: add late_init callback for mx25uw51245g
In commit 5273cc6df984 ("mtd: spi-nor: core: Call spi_nor_post_sfdp_fixups() only when SFDP is defined"), the spi_nor_post_sfdp_fixups() is moved into spi_nor_parse_sfdp() function, and will be called after the SFDP header getted. But for S32G EVB boards, there is no valid SFDP header, then the post_sfdp() callback can not be called to set the correct command extension type. So we need late_init() callback setting to resolve this situation, and for current issue, we just set the late_init to mx25uw51245g_post_sfdp_fixup to ensure same settings as SDK for the flash chip. Signed-off-by: Zhantao Tang --- drivers/mtd/spi-nor/macronix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index 39e5fa95714b..ffcaaf89ed36 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -131,6 +131,7 @@ static struct spi_nor_fixups mx25uw51245g_fixups = { .default_init = mx25uw51245g_default_init, .post_bfpt = mx25uw51245g_post_bfpt_fixup, .post_sfdp = mx25uw51245g_post_sfdp_fixup, + .late_init = mx25uw51245g_post_sfdp_fixup, }; static const struct flash_info macronix_nor_parts[] = { -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12788): https://lists.yoctoproject.org/g/linux-yocto/message/12788 Mute This Topic: https://lists.yoctoproject.org/mt/99749562/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [std/rt kernel v6.1]: nxp-s32g: fix spi-nor flash and sja1105 issues
Hi Bruce, The following two patches are to fix spi-nor flash and sja1105 issues. Would you please help to merge them into the following: v6.1/standard/nxp-sdk-5.15/nxp-s32g v6.1/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g branches? Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12789): https://lists.yoctoproject.org/g/linux-yocto/message/12789 Mute This Topic: https://lists.yoctoproject.org/mt/99749563/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] serial: linflexuart: drop the unneeded stack variable
In commit a78233959f79 ("tty: serial: linflexuart: UART support for FIFO with DMA"), the second param of linflex_console_putchar() has been updated to "unsigned char" to compatible with v6.1 kernel, then the ich variable in linflex_poll_putchar() is not needed anymore, so drop it. Signed-off-by: Zhantao Tang --- drivers/tty/serial/fsl_linflexuart.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/tty/serial/fsl_linflexuart.c b/drivers/tty/serial/fsl_linflexuart.c index b092c93df472..1b518808dcf4 100644 --- a/drivers/tty/serial/fsl_linflexuart.c +++ b/drivers/tty/serial/fsl_linflexuart.c @@ -1204,7 +1204,6 @@ static int linflex_poll_init(struct uart_port *port) static void linflex_poll_putchar(struct uart_port *port, unsigned char ch) { - int ich = ch; unsigned long flags; struct linflex_port *sport = container_of(port, struct linflex_port, port); @@ -1216,7 +1215,7 @@ static void linflex_poll_putchar(struct uart_port *port, unsigned char ch) linflex_poll_init(port); } - linflex_console_putchar(port, ich); + linflex_console_putchar(port, ch); spin_unlock_irqrestore(>port.lock, flags); } -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12755): https://lists.yoctoproject.org/g/linux-yocto/message/12755 Mute This Topic: https://lists.yoctoproject.org/mt/99519835/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [std/rt kernel v6.1]: nxp-s32g: serial: linflexuart: fix STR failure issue
Hi Bruce, The following two patches are to fix STR failure issue. Would you please help to merge them into the following: v6.1/standard/nxp-sdk-5.15/nxp-s32g v6.1/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g branches? Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12753): https://lists.yoctoproject.org/g/linux-yocto/message/12753 Mute This Topic: https://lists.yoctoproject.org/mt/99519833/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] serial: linflexuart: correct dma operations to fix Sleep-To-RAM failure
The commit a78233959f79 ("tty: serial: linflexuart: UART support for FIFO with DMA") put the dma operations in wrong place, causing Sleep-To-RAM failure from resume, so correct the location of these operations to fix the issue. Signed-off-by: Zhantao Tang --- drivers/tty/serial/fsl_linflexuart.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/tty/serial/fsl_linflexuart.c b/drivers/tty/serial/fsl_linflexuart.c index 51475d92c998..b092c93df472 100644 --- a/drivers/tty/serial/fsl_linflexuart.c +++ b/drivers/tty/serial/fsl_linflexuart.c @@ -1615,6 +1615,12 @@ static int linflex_remove(struct platform_device *pdev) clk_disable_unprepare(lfport->clk_ipg); #endif + if (lfport->dma_tx_chan) + dma_release_channel(lfport->dma_tx_chan); + + if (lfport->dma_rx_chan) + dma_release_channel(lfport->dma_rx_chan); + return 0; } @@ -1629,12 +1635,6 @@ static int linflex_suspend(struct device *dev) clk_disable_unprepare(lfport->clk); clk_disable_unprepare(lfport->clk_ipg); - if (lfport->dma_tx_chan) - dma_release_channel(lfport->dma_tx_chan); - - if (lfport->dma_rx_chan) - dma_release_channel(lfport->dma_rx_chan); - return 0; } -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12754): https://lists.yoctoproject.org/g/linux-yocto/message/12754 Mute This Topic: https://lists.yoctoproject.org/mt/99519834/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 v6.1/v5.15]: nxp-s32g: disable the 4K sector setting for mtd device
Hi Bruce, The following patch is to disable the 4K sector setting for mtd device, would you please help to merge it into yocto-6.1 and yocto-5.15 branches? Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12737): https://lists.yoctoproject.org/g/linux-yocto/message/12737 Mute This Topic: https://lists.yoctoproject.org/mt/99477480/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] nxp-s32g: disable the 4K sector setting for mtd device
The config MTD_SPI_NOR_USE_4K_SECTORS is to "Use small 4096 B erase sectors", but for UBI file system, the 4096 erase size is too small, and will cause the UBI file system attaches failure, so disable this config to compatible with UBI file system. Signed-off-by: Zhantao Tang --- bsp/nxp-s32g/nxp-s32g.cfg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bsp/nxp-s32g/nxp-s32g.cfg b/bsp/nxp-s32g/nxp-s32g.cfg index c97eaeed..c7f1e430 100644 --- a/bsp/nxp-s32g/nxp-s32g.cfg +++ b/bsp/nxp-s32g/nxp-s32g.cfg @@ -108,6 +108,8 @@ CONFIG_MTD_PHYSMAP=y CONFIG_MTD_PHYSMAP_OF=y CONFIG_MTD_DATAFLASH=y CONFIG_MTD_SPI_NOR=y +# In order to support UBI filesystem +# CONFIG_MTD_SPI_NOR_USE_4K_SECTORS is not set CONFIG_INPUT_EVDEV=y CONFIG_INPUT_MISC=y -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12738): https://lists.yoctoproject.org/g/linux-yocto/message/12738 Mute This Topic: https://lists.yoctoproject.org/mt/99477481/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/3] gpio: s32: don't run callbacks in some callbacks
From: Quanyang Wang The functions "siul2_gpio_dir_in" and "siul2_gpio_free" have been registered to be callbacks as "gc->direction_input" and "gc->free". When the callbacks "irq_chip->irq_set_type/irq_unmask/irq_mask" are called, the caller should guarantee that it will call gc->direction_input and gc->free explicitly instead of counting on irq_set_type/irq_unmask/irq_mask to do this. So let's remove calling of the callbacks from callbacks to avoid calling them multiple times. This patch fixes the calltrace as below: [ 904.363150] BUG: sleeping function called from invalid context at kernel/locking/rtmutex_api.c:510 [ 904.363174] in_atomic(): 1, irqs_disabled(): 128, non_block: 0, pid: 1246, name: gpiomon [ 904.363181] preempt_count: 1, expected: 0 [ 904.363186] RCU nest depth: 0, expected: 0 [ 904.363190] 2 locks held by gpiomon/1246: [ 904.363195] #0: ff8812162ac8 (request_class){..}-{3:3}, at: __setup_irq+0xbc/0x754 [ 904.363232] #1: ff8812162900 (lock_class){}-{2:2}, at: _raw_spin_lock_irqsave+0x1c/0x30 [ 904.363256] irq event stamp: 23554 [ 904.363259] hardirqs last enabled at (23553): [] _raw_spin_unlock_irqrestore+0xb8/0xe0 [ 904.363270] hardirqs last disabled at (23554): [] __raw_spin_lock_irqsave+0x114/0x15c [ 904.363283] softirqs last enabled at (15992): [] __local_bh_enable_ip+0xa4/0x2a0 [ 904.363297] softirqs last disabled at (15980): [] release_sock+0xc/0x100 [ 904.363311] Preemption disabled at: [ 904.363314] [] __raw_spin_lock_irqsave+0x3c/0x15c [ 904.363329] CPU: 2 PID: 1246 Comm: gpiomon Not tainted 5.15.58-rt48-yocto-preempt-rt #1 [ 904.363339] Hardware name: Aptiv S32G274 CVC (DT) [ 904.363343] Call trace: [ 904.363346] dump_backtrace+0x0/0x1b4 [ 904.363354] show_stack+0x24/0x30 [ 904.363361] dump_stack_lvl+0xb0/0xf4 [ 904.363371] dump_stack+0x18/0x34 [ 904.363378] __might_resched+0x18c/0x22c [ 904.363389] __might_sleep+0x54/0x90 [ 904.363396] mutex_lock_nested+0x5c/0xd0 [ 904.363406] pinctrl_get_device_gpio_range+0x48/0x120 [ 904.363418] pinctrl_gpio_direction+0x40/0xd0 [ 904.363426] pinctrl_gpio_direction_input+0x20/0x30 [ 904.363434] siul2_gpio_dir_in+0x34/0x90 [ 904.363443] siul2_gpio_irq_set_type+0x40/0x1a4 [ 904.363450] __irq_set_trigger+0x6c/0x190 [ 904.363456] __setup_irq+0x2b8/0x754 [ 904.363462] request_threaded_irq+0xf8/0x1bc [ 904.363469] lineevent_create+0x294/0x3e0 [ 904.363480] gpio_ioctl+0x31c/0x3a0 [ 904.363489] __arm64_sys_ioctl+0xb4/0xfc [ 904.363500] invoke_syscall+0x5c/0x130 [ 904.363511] el0_svc_common.constprop.0+0x68/0x124 [ 904.363520] do_el0_svc+0x50/0xbc [ 904.363529] el0_svc+0x54/0x130 [ 904.363536] el0t_64_sync_handler+0xa4/0x130 [ 904.363544] el0t_64_sync+0x1a0/0x1a4 Signed-off-by: Quanyang Wang Signed-off-by: Zhantao Tang --- drivers/gpio/gpio-siul2-s32cc.c | 17 - 1 file changed, 17 deletions(-) diff --git a/drivers/gpio/gpio-siul2-s32cc.c b/drivers/gpio/gpio-siul2-s32cc.c index 3011ff5ab662..668eab91859f 100644 --- a/drivers/gpio/gpio-siul2-s32cc.c +++ b/drivers/gpio/gpio-siul2-s32cc.c @@ -372,13 +372,6 @@ static int siul2_gpio_irq_set_type(struct irq_data *d, unsigned int type) int ret = 0; u32 mask; - ret = siul2_gpio_dir_in(gc, gpio); - if (ret) { - dev_err(gc->parent, "Failed to configure GPIO %lu as input\n", - gpio); - return ret; - } - /* SIUL2 GPIO doesn't support level triggering */ if ((irq_type & IRQ_TYPE_LEVEL_HIGH) || (irq_type & IRQ_TYPE_LEVEL_LOW)) { @@ -469,7 +462,6 @@ static void siul2_gpio_irq_unmask(struct irq_data *data) int index = siul2_irq_gpio_index(platdata, gpio); unsigned long flags; u32 mask; - int ret; if (index < 0) return; @@ -498,13 +490,6 @@ static void siul2_gpio_irq_unmask(struct irq_data *data) regmap_write(gpio_dev->eirqimcrsmap, SIUL2_EIRQ_REG(platdata->irqs[index].eirq), platdata->irqs[index].imscr_conf); - - /* Configure GPIO as input */ - ret = siul2_gpio_dir_in(gc, gpio); - if (ret) { - dev_err(gc->parent, "Failed to configure GPIO %d as input\n", - ret); - } } static void siul2_gpio_irq_mask(struct irq_data *data) @@ -541,8 +526,6 @@ static void siul2_gpio_irq_mask(struct irq_data *data) regmap_write(gpio_dev->eirqimcrsmap, SIUL2_EIRQ_REG(platdata->irqs[index].eirq), 0); - - siul2_gpio_free(gc, gpio); } static const struct regmap_config siul2_regmap_conf = { -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12721): https://lists.yoctoproject.org/g/linux-yocto/message/12721 Mute This Topic: https://lists.yoctoproject.org/mt/99407593/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub
[linux-yocto] [PATCH 2/3] gpio: s32: switch the spinlock of siul2_gpio_dev to raw spinlock
From: Quanyang Wang The irq functions "siul2_gpio_irq_unmask" and "siul2_gpio_irq_mask" use spin_lock in preempt-rt kernel, it will cause the error that calling a sleeping function in an atomic context. Use raw spinlock to fix this issue. Signed-off-by: Quanyang Wang Signed-off-by: Zhantao Tang --- drivers/gpio/gpio-siul2-s32cc.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/gpio/gpio-siul2-s32cc.c b/drivers/gpio/gpio-siul2-s32cc.c index d93704af3eef..3011ff5ab662 100644 --- a/drivers/gpio/gpio-siul2-s32cc.c +++ b/drivers/gpio/gpio-siul2-s32cc.c @@ -156,7 +156,7 @@ struct siul2_gpio_dev { struct irq_chip irq; /* Mutual access to SIUL2 registers. */ - spinlock_t lock; + raw_spinlock_t lock; }; /* We will use the following variable names: @@ -208,14 +208,14 @@ static inline void gpio_set_direction(struct siul2_gpio_dev *dev, int gpio, { unsigned long flags; - spin_lock_irqsave(>lock, flags); + raw_spin_lock_irqsave(>lock, flags); if (dir == IN) bitmap_clear(dev->pin_dir_bitmap, gpio, 1); else bitmap_set(dev->pin_dir_bitmap, gpio, 1); - spin_unlock_irqrestore(>lock, flags); + raw_spin_unlock_irqrestore(>lock, flags); } static inline enum gpio_dir gpio_get_direction(struct siul2_gpio_dev *dev, @@ -490,9 +490,9 @@ static void siul2_gpio_irq_unmask(struct irq_data *data) /* Enable Interrupt */ regmap_update_bits(gpio_dev->irqmap, SIUL2_DIRER0, mask, mask); - spin_lock_irqsave(_dev->lock, flags); + raw_spin_lock_irqsave(_dev->lock, flags); bitmap_set(_dev->eirqs_bitmap, platdata->irqs[index].eirq, 1); - spin_unlock_irqrestore(_dev->lock, flags); + raw_spin_unlock_irqrestore(_dev->lock, flags); /* Set IMCR */ regmap_write(gpio_dev->eirqimcrsmap, @@ -534,9 +534,9 @@ static void siul2_gpio_irq_mask(struct irq_data *data) /* Clean status flag */ regmap_update_bits(gpio_dev->irqmap, SIUL2_DISR0, mask, mask); - spin_lock_irqsave(_dev->lock, flags); + raw_spin_lock_irqsave(_dev->lock, flags); bitmap_clear(_dev->eirqs_bitmap, platdata->irqs[index].eirq, 1); - spin_unlock_irqrestore(_dev->lock, flags); + raw_spin_unlock_irqrestore(_dev->lock, flags); regmap_write(gpio_dev->eirqimcrsmap, SIUL2_EIRQ_REG(platdata->irqs[index].eirq), @@ -1154,7 +1154,7 @@ static int siul2_gpio_probe(struct platform_device *pdev) platform_set_drvdata(pdev, gpio_dev); - spin_lock_init(_dev->lock); + raw_spin_lock_init(_dev->lock); for (i = 0; i < ARRAY_SIZE(gpio_dev->siul2); ++i) { err = siul2_get_gpio_pinspec(pdev, , i); -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12720): https://lists.yoctoproject.org/g/linux-yocto/message/12720 Mute This Topic: https://lists.yoctoproject.org/mt/99407591/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [std/rt kernel v6.1]: nxp-s32g: gpio: fix gpio work abnormally issue
Hi Bruce, The following three patches are to fix s32cc gpio work abnormally issue. Would you please help to merge them into the following: v6.1/standard/nxp-sdk-5.15/nxp-s32g v6.1/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g branches? Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12718): https://lists.yoctoproject.org/g/linux-yocto/message/12718 Mute This Topic: https://lists.yoctoproject.org/mt/99407588/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/3] gpio: s32: force regmap use raw spinlock
From: Quanyang Wang The regmap subsystem use mutex lock as its default lock but this will cause the error that calling sleeping functions in an atomic context since the irq callbacks "irq_set_type/irq_mask/irq_unmask" for siul2-s32cc are all using regmap_update_bits. Add use_raw_spinlock flag to the regmap_config structure siul2_regmap_conf can switch mutex lock to raw spinlock. Signed-off-by: Quanyang Wang Signed-off-by: Zhantao Tang --- drivers/gpio/gpio-siul2-s32cc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/gpio-siul2-s32cc.c b/drivers/gpio/gpio-siul2-s32cc.c index e41bc337921a..d93704af3eef 100644 --- a/drivers/gpio/gpio-siul2-s32cc.c +++ b/drivers/gpio/gpio-siul2-s32cc.c @@ -550,6 +550,7 @@ static const struct regmap_config siul2_regmap_conf = { .reg_bits = 32, .reg_stride = 4, .cache_type = REGCACHE_FLAT, + .use_raw_spinlock = true, }; static struct regmap *common_regmap_init(struct platform_device *pdev, -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12719): https://lists.yoctoproject.org/g/linux-yocto/message/12719 Mute This Topic: https://lists.yoctoproject.org/mt/99407589/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] spi-nor: macronix: update to fix warning when buffers on stack
Because the commit 8868c03f3ca5 ("spi: spi-mem: check if data buffers are on stack") introduced new check to warn when buffers on stack. So use nor->bouncebuf to replace the stack variable for buf to fix the warning: [ cut here ] WARNING: CPU: 3 PID: 1 at drivers/spi/spi-mem.c:242 spi_mem_check_op+0x118/0x124 Modules linked in: CPU: 3 PID: 1 Comm: swapper/0 Not tainted 6.1.32-yocto-standard #1 Hardware name: NXP S32G399A-RDB3 (DT) pstate: 8005 (Nzcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : spi_mem_check_op+0x118/0x124 lr : spi_mem_check_op+0x88/0x124 sp : ffc00984b2d0 x29: ffc00984b2d0 x28: 0012 x27: ff8801034800 x26: ffc008e47f78 x25: ffc00901bed0 x24: ffc00984b358 x23: ffc008e47fb8 x22: ff8801069d80 x21: ffc00984b3c8 x20: ff8801035080 x19: ffc00984b660 x18: x17: 2868746469777375 x16: 625f6b636568635f x15: ffc00984b250 x14: 0001 x13: 202928706f5f6b63 x12: 6568635f6d656d5f x11: 697073206c6c6163 x10: ffc0095a17e8 x9 : ffc0088991c8 x8 : efff x7 : ffc0095a17e8 x6 : 8000f000 x5 : bff4 x4 : x3 : x2 : ffc00984b65f x1 : ffc00984c000 x0 : Call trace: spi_mem_check_op+0x118/0x124 spi_mem_exec_op+0xa0/0x49c spi_nor_macronix_octal_dtr_enable+0x80/0x170 spi_nor_init+0x94/0x14c spi_nor_scan+0x4e8/0xc70 spi_nor_probe+0x108/0x320 spi_mem_probe+0x74/0xc4 spi_probe+0x8c/0xec really_probe+0xc4/0x2e0 __driver_probe_device+0x80/0x120 driver_probe_device+0x48/0x120 __device_attach_driver+0xc0/0x13c bus_for_each_drv+0x84/0xe0 __device_attach+0xa4/0x1a0 device_initial_probe+0x1c/0x2c bus_probe_device+0xa4/0xb0 device_add+0x378/0x780 __spi_add_device+0x74/0x114 spi_add_device+0x68/0xa0 spi_register_controller+0x5b0/0xaa0 devm_spi_register_controller+0x54/0xb0 fsl_qspi_probe+0x260/0x390 platform_probe+0x70/0xcc really_probe+0xc4/0x2e0 __driver_probe_device+0x80/0x120 driver_probe_device+0x48/0x120 __driver_attach+0x9c/0x1a4 bus_for_each_dev+0x7c/0xe0 driver_attach+0x2c/0x40 bus_add_driver+0x15c/0x210 driver_register+0x80/0x13c __platform_driver_register+0x30/0x40 fsl_qspi_driver_init+0x24/0x30 do_one_initcall+0x78/0x2c0 kernel_init_freeable+0x224/0x294 kernel_init+0x30/0x140 ret_from_fork+0x10/0x20 ---[ end trace ]--- Signed-off-by: Zhantao Tang --- drivers/mtd/spi-nor/macronix.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index ce1c0d15d872..39e5fa95714b 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -36,15 +36,16 @@ static const struct spi_nor_fixups mx25l25635_fixups = { static int spi_nor_macronix_octal_dtr_enable(struct spi_nor *nor, bool enable) { struct spi_mem_op op; - u8 buf = 0xff; + u8 *buf = nor->bouncebuf; u8 addr_width = 4; int ret; + *buf = 0xff; op = (struct spi_mem_op) SPI_MEM_OP(SPI_MEM_OP_CMD(SPINOR_OP_RDCR2, 1), SPI_MEM_OP_ADDR(addr_width, 0x0, 1), SPI_MEM_OP_NO_DUMMY, - SPI_MEM_OP_DATA_IN(1, , 1)); + SPI_MEM_OP_DATA_IN(1, buf, 1)); ret = spi_mem_exec_op(nor->spimem, ); if (ret) { @@ -62,14 +63,14 @@ static int spi_nor_macronix_octal_dtr_enable(struct spi_nor *nor, bool enable) if (ret) return ret; - buf &= ~CR2_STR_OPI_EN; - buf |= CR2_DTR_OPI_EN; + *buf &= ~CR2_STR_OPI_EN; + *buf |= CR2_DTR_OPI_EN; op = (struct spi_mem_op) SPI_MEM_OP(SPI_MEM_OP_CMD(SPINOR_OP_WRCR2, 1), SPI_MEM_OP_ADDR(addr_width, 0x0, 1), SPI_MEM_OP_NO_DUMMY, - SPI_MEM_OP_DATA_OUT(1, , 1)); + SPI_MEM_OP_DATA_OUT(1, buf, 1)); ret = spi_mem_exec_op(nor->spimem, ); if (ret) { dev_err(nor->dev, "Failed to enable octal DTR mode\n"); -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12716): https://lists.yoctoproject.org/g/linux-yocto/message/12716 Mute This Topic: https://lists.yoctoproject.org/mt/99398806/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [std/rt kernel v6.1]: nxp-s32g: spi: fix fsl-qspi nor flash work abnormally issue
Hi Bruce, The following two patches is to fix s32cc fsl-qspi nor flash work abnormally issue. Would you please help to merge them into the following: v6.1/standard/nxp-sdk-5.15/nxp-s32g v6.1/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g branches? Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12714): https://lists.yoctoproject.org/g/linux-yocto/message/12714 Mute This Topic: https://lists.yoctoproject.org/mt/99398804/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] spi: fsl-qspi: add mem_caps definition to fix "Software reset failed" issue
Since commit 4a3cc7fb6e63 ("spi: spi-mem: Introduce a capability structure") introduced a new struct spi_controller_mem_caps to indicate the DTR mode is supportd or not. For S32G fsl-qspi, it uses DTR mode, so set it to true to tell that the DTR mode is enabled, or else, there will be following error: # dmesg | grep nor spi-nor spi6.0: Software reset failed: -524 Signed-off-by: Zhantao Tang --- drivers/spi/spi-fsl-qspi.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/spi/spi-fsl-qspi.c b/drivers/spi/spi-fsl-qspi.c index b74573b6bf84..5ac50921a014 100644 --- a/drivers/spi/spi-fsl-qspi.c +++ b/drivers/spi/spi-fsl-qspi.c @@ -1446,6 +1446,10 @@ static const struct spi_controller_mem_ops fsl_qspi_mem_ops = { .get_name = fsl_qspi_get_name, }; +static const struct spi_controller_mem_caps fsl_qspi_mem_caps = { + .dtr = true, +}; + static int fsl_qspi_probe(struct platform_device *pdev) { struct spi_controller *ctlr; @@ -1535,6 +1539,7 @@ static int fsl_qspi_probe(struct platform_device *pdev) ctlr->bus_num = -1; ctlr->num_chipselect = 4; ctlr->mem_ops = _qspi_mem_ops; + ctlr->mem_caps = _qspi_mem_caps; q->from_str = false; fsl_qspi_default_setup(q); -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12715): https://lists.yoctoproject.org/g/linux-yocto/message/12715 Mute This Topic: https://lists.yoctoproject.org/mt/99398805/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] thermal: s32cc: use new API hwmon_device_register_for_thermal() to fix probe error
In s32cc thermal driver, the current used hwmon_device_register_with_info() API, is not suitable for s32cc anymore, due to the commit ddaefa209c4a ("hwmon: Make chip parameter for with_info API mandatory"), or else, there will be probe error when load the driver. And for thermal subsystem, commit e5d21072054f ("hwmon: Introduce hwmon_device_register_for_thermal") introduced a new API, so update the driver to use the new hwmon_device_register_for_thermal() API to fix the probe issue. Signed-off-by: Zhantao Tang --- drivers/thermal/s32cc_thermal.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/thermal/s32cc_thermal.c b/drivers/thermal/s32cc_thermal.c index c8ea449990d4..6a544a6fce23 100644 --- a/drivers/thermal/s32cc_thermal.c +++ b/drivers/thermal/s32cc_thermal.c @@ -499,8 +499,7 @@ static int tmu_probe(struct platform_device *pd) tmu_init_hw(dev, tmu_chip); tmu_dd->hwmon_device = - hwmon_device_register_with_info(dev, DRIVER_NAME, - tmu_dd, NULL, NULL); + hwmon_device_register_for_thermal(dev, DRIVER_NAME, tmu_dd); if (IS_ERR(tmu_dd->hwmon_device)) { ret = PTR_ERR(tmu_dd->hwmon_device); dev_err(dev, "Cannot register hwmon device: %d\n", ret); -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12643): https://lists.yoctoproject.org/g/linux-yocto/message/12643 Mute This Topic: https://lists.yoctoproject.org/mt/99081984/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [std/rt kernel v6.1]: thermal: s32cc: use new API hwmon_device_register_for_thermal() to fix probe error
Hi Bruce, The following patch is to fix s32cc thermal driver probing error issue. Would you please help to merge it into the following: v6.1/standard/nxp-sdk-5.15/nxp-s32g v6.1/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g branches? Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12642): https://lists.yoctoproject.org/g/linux-yocto/message/12642 Mute This Topic: https://lists.yoctoproject.org/mt/99081983/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] dts: s32g: rdb2: update dts to keep align with SDK BSP36 release
The commit 3686673dc30d ("arm64: dts: s32g2: add VNP-EVB and VNP-RDB2 support") added rdb2 dts support. Given the SDK BSP36 has been released, and the dts file need to update to compatible with it. So update rdb2 dts file and drop the unneeded contents. Signed-off-by: Zhantao Tang --- .../boot/dts/freescale/s32g274a-rdb2.dts | 42 +++ 1 file changed, 6 insertions(+), 36 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts b/arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts index e05ee854cdf5..fa579134532a 100644 --- a/arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts +++ b/arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts @@ -1,40 +1,10 @@ -// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +// SPDX-License-Identifier: GPL-2.0-or-later /* - * Copyright (c) 2021 SUSE LLC - * Copyright (c) 2019-2021 NXP + * Device Tree file for S32G274ARDB Board Rev C. + * + * Copyright 2020-2022 NXP + * */ /dts-v1/; - -#include "s32g2.dtsi" - -/ { - model = "NXP S32G2 Reference Design Board 2 (S32G-VNP-RDB2)"; - compatible = "nxp,s32g274a-rdb2", "nxp,s32g2"; - - aliases { - serial0 = - serial1 = - }; - - chosen { - stdout-path = "serial0:115200n8"; - }; - - /* 4GiB RAM */ - memory@8000 { - device_type = "memory"; - reg = <0x0 0x8000 0 0x8000>, - <0x8 0x8000 0 0x8000>; - }; -}; - -/* UART (J2) to Micro USB port */ - { - status = "okay"; -}; - -/* UART (J1) to Micro USB port */ - { - status = "okay"; -}; +#include "s32g274a-rdb2.dtsi" -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12609): https://lists.yoctoproject.org/g/linux-yocto/message/12609 Mute This Topic: https://lists.yoctoproject.org/mt/98923003/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[linux-yocto] [std/rt kernel v6.1]: nxp-s32g: update rdb2 dts to keep align with SDK BSP36 release
Hi Bruce, The following patch is to update rdb2 dts to keep align with SDK BSP36 release. Would you please help to merge it into the following: v6.1/standard/nxp-sdk-5.15/nxp-s32g v6.1/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g branches? Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12608): https://lists.yoctoproject.org/g/linux-yocto/message/12608 Mute This Topic: https://lists.yoctoproject.org/mt/98923002/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 std/rt kernel v6.1]: nxp-s32g: update kernel to v6.1 based on SDK BSP36 v5.15 release kernel
Hi Bruce, The following patches are to update kernel to v6.1 based on SDK BSP36 v5.15 release kernel. Would you please help to create branches: v6.1/standard/nxp-sdk-5.15/nxp-s32g v6.1/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g based on v6.1/standard/base and v6.1/standard/preempt-rt/base, and merge the following patches into the new branches? The patches info as following: The following changes since commit 5595b9b98df96b1ef27dc5879d19b9b512cc5c14: Merge tag 'v6.1.27' into v6.1/standard/base (2023-05-02 21:39:51 -0400) are available in the Git repository at: https://github.com/zhantaotang/linux-yocto-std v6.1/standard/nxp-sdk-5.15/nxp-s32g for you to fetch changes up to c003347331cdd516939224989cc6a45cd578c4f4: nxp-s32g: usb: chipedea: add ulpi usb phy support (2023-05-09 15:47:54 +0800) Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12480): https://lists.yoctoproject.org/g/linux-yocto/message/12480 Mute This Topic: https://lists.yoctoproject.org/mt/98780707/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] nxp-s32g: add scc and cfg files for S32G platform
Refer to scc and cfg files on branch yocto-5.15, add new scc and cfg files for BSP nxp-s32g on branch yocto-6.1. Both standard and preempt-rt are supported. Signed-off-by: Zhantao Tang --- bsp/nxp-s32g/nxp-s32g-preempt-rt.scc | 8 ++ bsp/nxp-s32g/nxp-s32g-standard.scc | 8 ++ bsp/nxp-s32g/nxp-s32g.cfg| 173 +++ bsp/nxp-s32g/nxp-s32g.scc| 7 ++ 4 files changed, 196 insertions(+) create mode 100755 bsp/nxp-s32g/nxp-s32g-preempt-rt.scc create mode 100755 bsp/nxp-s32g/nxp-s32g-standard.scc create mode 100644 bsp/nxp-s32g/nxp-s32g.cfg create mode 100755 bsp/nxp-s32g/nxp-s32g.scc diff --git a/bsp/nxp-s32g/nxp-s32g-preempt-rt.scc b/bsp/nxp-s32g/nxp-s32g-preempt-rt.scc new file mode 100755 index ..8a3bad77 --- /dev/null +++ b/bsp/nxp-s32g/nxp-s32g-preempt-rt.scc @@ -0,0 +1,8 @@ +# SPDX-License-Identifier: MIT +define KMACHINE nxp-s32g +define KTYPE preempt-rt +define KARCH arm64 + +include ktypes/preempt-rt + +include nxp-s32g.scc diff --git a/bsp/nxp-s32g/nxp-s32g-standard.scc b/bsp/nxp-s32g/nxp-s32g-standard.scc new file mode 100755 index ..0614ad55 --- /dev/null +++ b/bsp/nxp-s32g/nxp-s32g-standard.scc @@ -0,0 +1,8 @@ +# SPDX-License-Identifier: MIT +define KMACHINE nxp-s32g +define KTYPE standard +define KARCH arm64 + +include ktypes/standard + +include nxp-s32g.scc diff --git a/bsp/nxp-s32g/nxp-s32g.cfg b/bsp/nxp-s32g/nxp-s32g.cfg new file mode 100644 index ..c63ce6a8 --- /dev/null +++ b/bsp/nxp-s32g/nxp-s32g.cfg @@ -0,0 +1,173 @@ +# SPDX-License-Identifier: MIT +.. +.WARNING +. +. This file is a kernel configuration fragment, and not a full kernel +. configuration file. The final kernel configuration is made up of +. an assembly of processed fragments, each of which is designed to +. capture a specific part of the final configuration (e.g. platform +. configuration, feature configuration, and board specific hardware +. configuration). For more information on kernel configuration, please +. consult the product documentation. +. +.. + +CONFIG_ARM64=y +CONFIG_ARCH_NXP=y +CONFIG_ARCH_S32=y +CONFIG_SOC_S32CC=y +CONFIG_SCHED_MC=y +CONFIG_ARM_SMMU=y + +CONFIG_PINCTRL_S32CC=y + +CONFIG_CPU_IDLE=y +CONFIG_ARM_PSCI_CPUIDLE=y +CONFIG_CPU_FREQ=y +CONFIG_CPU_FREQ_STAT=y +CONFIG_CPU_FREQ_GOV_POWERSAVE=y +CONFIG_CPU_FREQ_GOV_USERSPACE=y +CONFIG_CPU_FREQ_GOV_ONDEMAND=y +CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y + +CONFIG_ARM_SCMI_TRANSPORT_SMC_ATOMIC_ENABLE=y +#To keep align with SDK, unset the ARM_SCMI_POWER_DOMAIN config +# CONFIG_ARM_SCMI_POWER_DOMAIN is not set + +#CAN +CONFIG_CAN=y +CONFIG_CAN_VCAN=y +CONFIG_CAN_SLCAN=y +CONFIG_CAN_FLEXCAN=y + +#Ethernet +CONFIG_STMMAC_ETH=y +CONFIG_DWMAC_DWC_QOS_ETH=y +CONFIG_AT803X_PHY=y +CONFIG_MICREL_PHY=y +CONFIG_AQUANTIA_PHY=y +CONFIG_BRIDGE=y +CONFIG_NET_DSA=y +CONFIG_NET_DSA_TAG_SJA1105=y +CONFIG_NXP_TJA11XX_PHY=y +CONFIG_NET_DSA_SJA1105=y +CONFIG_NET_DSA_SJA1105_PTP=y + +#Serial +CONFIG_SERIAL_AMBA_PL011=y +CONFIG_SERIAL_AMBA_PL011_CONSOLE=y +CONFIG_SERIAL_FSL_LINFLEXUART=y +CONFIG_SERIAL_FSL_LINFLEXUART_CONSOLE=y + +#SPI +CONFIG_SPI=y +CONFIG_SPI_FSL_DSPI=y +CONFIG_SPI_SPIDEV=y +CONFIG_GPIO_CDEV=y +CONFIG_GPIO_S32CC=y + +#PCIE +CONFIG_PCI=y +CONFIG_PCI_S32CC=y +CONFIG_PCIE_DW=y +CONFIG_PCIE_DW_PLAT_HOST=y +CONFIG_PCI_ENDPOINT=y +CONFIG_PCIE_DW_PLAT_EP=y +CONFIG_PCIEAER=y + +#USB +CONFIG_USB=y +CONFIG_USB_OTG=y +CONFIG_USB_OTG_FSM=y +CONFIG_USB_EHCI_HCD=y +CONFIG_USB_CHIPIDEA=y +CONFIG_USB_CHIPIDEA_UDC=y +CONFIG_USB_CHIPIDEA_HOST=y +CONFIG_NOP_USB_XCEIV=y +CONFIG_USB_ULPI=y +CONFIG_USB_GADGET=y +CONFIG_USB_CONFIGFS=y +CONFIG_USB_CONFIGFS_MASS_STORAGE=y +CONFIG_USB_ULPI_GENERIC=y + +#MMC +CONFIG_MMC=y +CONFIG_MMC_SDHCI=y +CONFIG_MMC_SDHCI_PLTFM=y +CONFIG_MMC_SDHCI_ESDHC_IMX=y +CONFIG_DMADEVICES=y +CONFIG_FSL_EDMA=y +CONFIG_CMA=y +CONFIG_DMA_CMA=y +CONFIG_CMA_SIZE_MBYTES=128 + +CONFIG_MTD=y +CONFIG_MTD_CMDLINE_PARTS=y +CONFIG_MTD_BLOCK=y +CONFIG_MTD_CFI=y +CONFIG_MTD_PHYSMAP=y +CONFIG_MTD_PHYSMAP_OF=y +CONFIG_MTD_DATAFLASH=y +CONFIG_MTD_SPI_NOR=y + +CONFIG_INPUT_EVDEV=y +CONFIG_INPUT_MISC=y +CONFIG_INPUT_UINPUT=y + + +# Thermal +CONFIG_THERMAL=y +CONFIG_S32CC_THERMAL=y + +# ADC +CONFIG_IIO=y +CONFIG_S32CC_ADC=y + +# PWM +CONFIG_PWM=y +CONFIG_PWM_FSL_FTM=y + +CONFIG_S32CC_FCCU=y +CONFIG_GPIOLIB=y +CONFIG_OF_GPIO=y + +CONFIG_MDIO_DEVICE=y +CONFIG_PHYLIB=y + +#QSPI +CONFIG_SPI_FSL_QUADSPI=y + +#RTC +CONFIG_RTC_CLASS=y +CONFIG_RTC_DRV_S32CC=y +CONFIG_RTC_DRV_PCF85063=y + +#I2C +CONFIG_I2C=y +CONFIG_I2C_CHARDEV=y +CONFIG_I2C_IMX=y + +#Watchdog +CONFIG_S32CC_WDT=y + +#NVME +CONFIG_BLK_DEV_NVME=y +CONFIG_NVME_TARGET=y +CONFIG_NVMEM_S32CC_SIUL2=y + +#LLCE +CONFIG_CAN_LLCE=y +CONFIG_CAN_LLCE_CONTROLLER=m + +# Regulator configuration +CONFIG_REGULATOR=y + +#HSE UIO +CONFIG_UIO=y +CONFIG_CRYPTO_DEV_NXP_HSE=y +CONFIG_UIO_NXP_HSE=y
[linux-yocto] [yocto-kernel-cache v6.1]: nxp-s32g: add scc and cfg files for S32G platform
Hi Bruce, The following patch is to add scc and cfg files for S32G platform, would you please help to merge it into yocto-6.1 branch? Thanks, Zhantao -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12478): https://lists.yoctoproject.org/g/linux-yocto/message/12478 Mute This Topic: https://lists.yoctoproject.org/mt/98780559/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-