From: Alim Akhtar <alim.akhtar@samsung.com>
To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org
Cc: devicetree@vger.kernel.org, linus.walleij@linaro.org,
robh+dt@kernel.org, krzysztof.kozlowski@canonical.com,
linux-samsung-soc@vger.kernel.org, pankaj.dubey@samsung.com,
broonie@kernel.org, andi@etezian.org, linux-spi@vger.kernel.org,
Alim Akhtar <alim.akhtar@samsung.com>,
linux-fsd@tesla.com, Aswani Reddy <aswani.reddy@samsung.com>
Subject: [PATCH v3 2/3] spi: s3c64xx: Add spi port configuration for Tesla FSD SoC
Date: Tue, 25 Jan 2022 08:46:03 +0530 [thread overview]
Message-ID: <20220125031604.76009-3-alim.akhtar@samsung.com> (raw)
In-Reply-To: <20220125031604.76009-1-alim.akhtar@samsung.com>
Add compatible and port configuration for spi controller
for Tesla Full Self-Driving SoC.
Cc: linux-fsd@tesla.com
Signed-off-by: Aswani Reddy <aswani.reddy@samsung.com>
Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Reviewed-by: Andi Shyti <andi@etezian.org>
---
drivers/spi/spi-s3c64xx.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c
index 386550fca81c..423518bf0270 100644
--- a/drivers/spi/spi-s3c64xx.c
+++ b/drivers/spi/spi-s3c64xx.c
@@ -1440,6 +1440,16 @@ static const struct s3c64xx_spi_port_config exynos5433_spi_port_config = {
.quirks = S3C64XX_SPI_QUIRK_CS_AUTO,
};
+static struct s3c64xx_spi_port_config fsd_spi_port_config = {
+ .fifo_lvl_mask = { 0x7f, 0x7f, 0x7f, 0x7f, 0x7f},
+ .rx_lvl_offset = 15,
+ .tx_st_done = 25,
+ .high_speed = true,
+ .clk_from_cmu = true,
+ .clk_ioclk = false,
+ .quirks = S3C64XX_SPI_QUIRK_CS_AUTO,
+};
+
static const struct platform_device_id s3c64xx_spi_driver_ids[] = {
{
.name = "s3c2443-spi",
@@ -1470,6 +1480,9 @@ static const struct of_device_id s3c64xx_spi_dt_match[] = {
{ .compatible = "samsung,exynos5433-spi",
.data = (void *)&exynos5433_spi_port_config,
},
+ { .compatible = "tesla,fsd-spi",
+ .data = (void *)&fsd_spi_port_config,
+ },
{ },
};
MODULE_DEVICE_TABLE(of, s3c64xx_spi_dt_match);
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2022-01-25 3:30 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20220125032811epcas5p3ef7b2f4e4906c1da8ccb4a0b3ed9a591@epcas5p3.samsung.com>
2022-01-25 3:16 ` [PATCH v3 0/3] Add FSD SPI support Alim Akhtar
2022-01-25 3:16 ` [PATCH v3 1/3] spi: dt-bindings: samsung: Add fsd spi compatible Alim Akhtar
2022-01-28 0:26 ` Linus Walleij
2022-02-07 20:42 ` Rob Herring
2022-01-25 3:16 ` Alim Akhtar [this message]
2022-01-28 0:28 ` [PATCH v3 2/3] spi: s3c64xx: Add spi port configuration for Tesla FSD SoC Linus Walleij
2022-01-25 3:16 ` [PATCH v3 3/3] arm64: dts: fsd: Add SPI device nodes Alim Akhtar
2022-01-29 11:29 ` (subset) " Krzysztof Kozlowski
2022-01-25 13:54 ` [PATCH v3 0/3] Add FSD SPI support Mark Brown
2022-03-08 12:11 ` Alim Akhtar
2022-03-08 20:09 ` (subset) " Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220125031604.76009-3-alim.akhtar@samsung.com \
--to=alim.akhtar@samsung.com \
--cc=andi@etezian.org \
--cc=aswani.reddy@samsung.com \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski@canonical.com \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-fsd@tesla.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=pankaj.dubey@samsung.com \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).