mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
spi: rzv2h-rspi: Add support for RZ/G3L (R9A08G046)
Add support for RZ/G3L RSPI. The RZ/G3L variant requires only 2 clocks (pclk + tclk), unlike the RZ/V2H which needs 3. Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Link: https://patch.msgid.link/20260408085418.18770-3-biju.das.jz@bp.renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
@@ -811,6 +811,13 @@ static const struct rzv2h_rspi_info rzv2h_info = {
|
||||
.num_clks = 3,
|
||||
};
|
||||
|
||||
static const struct rzv2h_rspi_info rzg3l_info = {
|
||||
.find_tclk_rate = rzv2h_rspi_find_rate_fixed,
|
||||
.tclk_name = "tclk",
|
||||
.fifo_size = 16,
|
||||
.num_clks = 2,
|
||||
};
|
||||
|
||||
static const struct rzv2h_rspi_info rzt2h_info = {
|
||||
.find_tclk_rate = rzv2h_rspi_find_rate_variable,
|
||||
.find_pclk_rate = rzv2h_rspi_find_rate_fixed,
|
||||
@@ -820,6 +827,7 @@ static const struct rzv2h_rspi_info rzt2h_info = {
|
||||
};
|
||||
|
||||
static const struct of_device_id rzv2h_rspi_match[] = {
|
||||
{ .compatible = "renesas,r9a08g046-rspi", &rzg3l_info },
|
||||
{ .compatible = "renesas,r9a09g057-rspi", &rzv2h_info },
|
||||
{ .compatible = "renesas,r9a09g077-rspi", &rzt2h_info },
|
||||
{ /* sentinel */ }
|
||||
|
||||
Reference in New Issue
Block a user