Commit Graph

7 Commits

Author SHA1 Message Date
Steve Best 777848aa61 PM / devfreq: imx: Register i.MX8MP interconnect device
Bugzilla: http://bugzilla.redhat.com/2184175

commit 9760660e866d643817c3bf21e6dc20837a1052c4
Author: Peng Fan <peng.fan@nxp.com>
Date:   Sun Jul 3 17:11:31 2022 +0800

    PM / devfreq: imx: Register i.MX8MP interconnect device

    Same to i.MX8MM/N/Q, register i.MX8MP interconnect device to make
    i.MX8MP Interconnect driver work.

    Signed-off-by: Peng Fan <peng.fan@nxp.com>
    Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
    Link: https://lore.kernel.org/r/20220703091132.1412063-10-peng.fan@oss.nxp.com
    Signed-off-by: Georgi Djakov <djakov@kernel.org>

Signed-off-by: Steve Best <sbest@redhat.com>
2023-04-03 18:58:18 -04:00
Steve Best 8f3589dc3b PM / devfreq: imx-bus: use NULL to pass a null pointer rather than zero
Bugzilla: http://bugzilla.redhat.com/2184175

commit 2472934e36b51bbdf0a7cdd5e351910d9002c6ac
Author: Colin Ian King <colin.i.king@gmail.com>
Date:   Thu Jun 23 19:00:54 2022 +0100

    PM / devfreq: imx-bus: use NULL to pass a null pointer rather than zero

    The 3rd argument to the function of_get_property is a pointer and it is
    being passed using 0. Use NULL instead.

    Cleans up sparse warning:
    warning: Using plain integer as NULL pointer

    Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
    Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>

Signed-off-by: Steve Best <sbest@redhat.com>
2023-04-03 18:58:11 -04:00
Dong Aisheng 7dbc0d2468 PM / devfreq: imx-bus: Remove imx_bus_get_dev_status
Current driver actually does not support simple ondemand governor
as it's unable to provide device load information. So removing
the unnecessary callback to avoid confusing.
Right now the driver is using userspace governor by default.

polling_ms was also dropped as it's not needed for non-ondemand
governor.

Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2021-05-21 13:16:10 +09:00
Fabio Estevam ca948312e0 PM / devfreq: imx-bus: Remove unneeded of_match_ptr()
i.MX is a DT-only platform, so of_match_ptr() can be safely
removed.

Remove the unneeded of_match_ptr().

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2021-04-08 13:14:51 +09:00
Gustavo A. R. Silva 48bbf63751 PM / devfreq: imx-bus: Fix inconsistent IS_ERR and PTR_ERR
Fix inconsistent IS_ERR and PTR_ERR in imx_bus_init_icc().

The proper pointer to be passed as argument to PTR_ERR() is
priv->icc_pdev.

This bug was detected with the help of Coccinelle.

Fixes: 16c1d2f1b0bd ("PM / devfreq: imx: Register interconnect device")
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
[cw00.choi: Edit the patch title from 'imx' to 'imx-bus']
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2020-05-28 18:02:40 +09:00
Leonard Crestez 02355216b4 PM / devfreq: imx: Register interconnect device
There is no single device which can represent the imx interconnect.
Instead of adding a virtual one just make the main &noc act as the
global interconnect provider.

The imx interconnect provider driver will scale the NOC and DDRC based
on bandwidth request. More scalable nodes can be added in the future,
for example for audio/display/vpu/gpu NICs.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Tested-by: Martin Kepplinger <martin.kepplinger@puri.sm>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2020-05-28 18:02:39 +09:00
Leonard Crestez 5173a9756c PM / devfreq: Add generic imx bus scaling driver
Add initial support for dynamic frequency switching on pieces of the imx
interconnect fabric.

All this driver does is set a clk rate based on an opp table, it does
not map register areas.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Tested-by: Martin Kepplinger <martin.kepplinger@puri.sm>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2020-05-28 18:02:39 +09:00