Subject: RFC: imx8qm: imx-scu-clk: probe of clk failed

From: Oliver Graute <[email-masked]>
Date: Thu, 27 Feb 2020 13:57:43 +0100

Hello Aisheng,
Hello Anson,

I get the following imx-scu errors when using Linux version
5.6.0-rc1-next-20200214 with scfw Build 3353, Commit 494c97f3

It seems that important clocks are off somehow and that lpspi isn't
working because of that. What is the best way to debug such issues?

[    1.103799] imx-scu scu: NXP i.MX SCU Initialized
[    1.111383] a35_clk: failed to get clock rate -22
[    1.122843]  lcd0-pwm0: failed to power up resource 188 ret -22
[    1.128438] imx-scu-clk: probe of pwm_clk failed with error -22
[    1.134746]  lcd0: failed to power up resource 187 ret -22
[    1.139898] imx-scu-clk: probe of lcd_clk failed with error -22
[    1.151177] mipi_csi0_core_clk: failed to attached the power domain -2
[    1.157581] mipi_csi0_esc_clk: failed to attached the power domain -2
[    1.163985] mipi_csi0_i2c0_clk: failed to attached the power domain -2
[    1.170524] mipi_csi0_pwm0_clk: failed to attached the power domain -2
[    1.181817] imx8qm-pinctrl scu:pinctrl: initialized IMX pinctrl driver
[    1.211140] random: fast init done
[    1.216039] 5a060000.serial: ttyLP0 at MMIO 0x5a060000 (irq = 8, base_baud = 5000000) is a FSL_LPUAR[    1.225100] printk: console [ttyLP0] enabled
[    1.225100] printk: console [ttyLP0] enabled
[    1.233543] printk: bootconsole [lpuart32] disabled
[    1.233543] printk: bootconsole [lpuart32] disabled
[    1.243549] fsl-lpuart 5a060000.serial: DMA tx channel request failed, operating without tx DMA
[    1.252275] fsl-lpuart 5a060000.serial: DMA rx channel request failed, operating without rx DMA
[    1.261868] 5a070000.serial: ttyLP1 at MMIO 0x5a070000 (irq = 9, base_baud = 0) is a FSL_LPUART
[    1.270767] fsl-lpuart 5a070000.serial: DMA tx channel request failed, operating without tx DMA
[    1.279481] fsl-lpuart 5a070000.serial: DMA rx channel request failed, operating without rx DMA
[    1.289310] fb_st7789v spi0.0: fbtft_property_value: buswidth = 9
[    1.296105] fsl_lpspi 5a010000.lpspi: failed to enable clock
[    1.301771] spi_master spi0: failed to prepare transfer hardware: -13
[    1.308231] fb_st7789v spi0.0: write() failed and returned -13

Best regards,

Oliver

_______________________________________________
linux-arm-kernel mailing list
[email-masked]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel