From patchwork Sun Oct 20 18:02:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivaylo Ivanov X-Patchwork-Id: 13843186 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 69B8AD3C92A for ; Sun, 20 Oct 2024 18:06:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=yJOU40KbragVWiu4TEFCg8jUPIOwe0Dmrqxh8YGBid0=; b=Kxi3meoQnNEKhWarV7Pkk1bSuq MWpdWT21NP8Eg34QDLpvhP6mFrZGAWXj5d2akpjqtSOhV9q/QXDyFYU0s6BnVao0PVUxKtvNvVebR 0Y8BUEi/gGrVBrQfTREG1vZwaITQ64m5ipjXmQwgJKbo7TxUbk5kk3w9xjx2gZRTKA9O6XYznnPhn kfE4fUEj/B4gpGfJs85WyQLWs2lUXMPAdhNfSR3n2GDTmTA25pvbihPF1MHhWZIlgE+ImHQofciQO M3MJzXUo2Hsyba6yw8XSNa8NPbPc9hRyXplXnoxJIvAc6hiB6ZJCPqQ45NCbjzFdD+hZhWzbTsgw4 pmkkJH/Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2aK3-00000005EME-0hV8; Sun, 20 Oct 2024 18:06:35 +0000 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2aFk-00000005DtA-1SWK for linux-arm-kernel@lists.infradead.org; Sun, 20 Oct 2024 18:02:09 +0000 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-4315baec681so36789835e9.2 for ; Sun, 20 Oct 2024 11:02:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729447327; x=1730052127; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=yJOU40KbragVWiu4TEFCg8jUPIOwe0Dmrqxh8YGBid0=; b=KNEEODGv2IyC5ISPdmESRAsqCmFFMYu+SEJV86LljodLx81RseSwBPVyZE97NPhvpu YraGWhurPwic0Y/oBFgJyJEgdlYkTLjWY/hRp+yq4A4V3Fmvh2GgiUt04lvYApmllvFG XGdEKgZT9Xdw7xBUfs95bClG7ZQ1f86rSI5PYUuSrHuz6o8tpOxsKKfRfSpq1QwUI4IL sl6jbn1OrGVIzh0xdRJMi+W2Pvifnkkg1w/txISItKup9MEvvWX+PKqk1CUPlhVuFFG1 yXDtv4REzfrOTTCGEJ0NhhIxxaT5Hq+gmCA1Nyky5s3g9qvD0FqaB4Z6x7MDQi9pc7zI EbjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729447327; x=1730052127; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yJOU40KbragVWiu4TEFCg8jUPIOwe0Dmrqxh8YGBid0=; b=neELveZrGUvWkxvafdiFWLJVnR8rR427z72DgQN+SigXl88Nw89K/+CrMhNCoaJnIt dCBa41HkgKlTHcbshHqt8AVIS7CCWWshtTeUkNZF9vJf2WeHDmS/CTuDy7r8u7Fv+msk 1afr8D/HT+qEigAXrWb+1eQx1t2cOcO2vpjCEkobKgnDrT5fzjGEoXvGREZbMSJWeplB /kNWx+c4KOeB8pinYPIQ0zRHBYjKDwUPrzpr8Z8BCvgb97PhkKKWEtFG3bCsrDRVtvO3 cTdIgB1T4h3H6xdDFb62cFPWGEI0qNu3bMpJDYruFARUUI+cMmRB0lkvO4fmmuVFWU8M 8crw== X-Forwarded-Encrypted: i=1; AJvYcCXcIFB8yumn4wBIMhPduC8RlIXfKCwMgYI9dP3hAAgrZXPOnF637n4WBCcGeUJw7bHxfc22JyctrPYYbynEaQWS@lists.infradead.org X-Gm-Message-State: AOJu0YxEx+33Feqzlc+4Eis+UhOkGgSUlC4b8/UBbilFdQDYd3HWBZ3z o/8Fl8F337Pf4u+fyQoRhMfYYvodK5i3D4fPl17a46TFoGlGmT/i X-Google-Smtp-Source: AGHT+IFS9pdpUSEUR+qkGnO2/A0qQ4nF7fipBIDcXd+fdyWcNedtFnw6FCqFhh0YpSzNJh64nHDomA== X-Received: by 2002:a05:600c:1c29:b0:431:5df7:b337 with SMTP id 5b1f17b1804b1-4316163b55emr64740305e9.8.1729447326671; Sun, 20 Oct 2024 11:02:06 -0700 (PDT) Received: from ivaylo-T580.. (91-139-201-119.stz.ddns.bulsat.com. [91.139.201.119]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4316f5cc57esm29922105e9.48.2024.10.20.11.02.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Oct 2024 11:02:06 -0700 (PDT) From: Ivaylo Ivanov To: Krzysztof Kozlowski , Greg Kroah-Hartman , Jiri Slaby , Alim Akhtar , Rob Herring , Conor Dooley Cc: linux-samsung-soc@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 2/2] tty: serial: samsung: Add Exynos8895 compatible Date: Sun, 20 Oct 2024 21:02:01 +0300 Message-ID: <20241020180201.376151-3-ivo.ivanov.ivanov1@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241020180201.376151-1-ivo.ivanov.ivanov1@gmail.com> References: <20241020180201.376151-1-ivo.ivanov.ivanov1@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241020_110208_407712_5A3C73A0 X-CRM114-Status: GOOD ( 13.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add serial driver data for Exynos8895 SoC. The main difference from other platforms is that fifosize is only specified via the samsung,uart-fifosize DT property. Signed-off-by: Ivaylo Ivanov Reviewed-by: Krzysztof Kozlowski --- drivers/tty/serial/samsung_tty.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/tty/serial/samsung_tty.c b/drivers/tty/serial/samsung_tty.c index 0d184ee2f..ce3c3ec34 100644 --- a/drivers/tty/serial/samsung_tty.c +++ b/drivers/tty/serial/samsung_tty.c @@ -2498,6 +2498,12 @@ static const struct s3c24xx_serial_drv_data exynos850_serial_drv_data = { .fifosize = { 256, 64, 64, 64 }, }; +static const struct s3c24xx_serial_drv_data exynos8895_serial_drv_data = { + EXYNOS_COMMON_SERIAL_DRV_DATA, + /* samsung,uart-fifosize must be specified in the device tree. */ + .fifosize = { 0 }, +}; + static const struct s3c24xx_serial_drv_data gs101_serial_drv_data = { .info = { .name = "Google GS101 UART", @@ -2528,12 +2534,14 @@ static const struct s3c24xx_serial_drv_data gs101_serial_drv_data = { #define EXYNOS4210_SERIAL_DRV_DATA (&exynos4210_serial_drv_data) #define EXYNOS5433_SERIAL_DRV_DATA (&exynos5433_serial_drv_data) #define EXYNOS850_SERIAL_DRV_DATA (&exynos850_serial_drv_data) +#define EXYNOS8895_SERIAL_DRV_DATA (&exynos8895_serial_drv_data) #define GS101_SERIAL_DRV_DATA (&gs101_serial_drv_data) #else #define EXYNOS4210_SERIAL_DRV_DATA NULL #define EXYNOS5433_SERIAL_DRV_DATA NULL #define EXYNOS850_SERIAL_DRV_DATA NULL +#define EXYNOS8895_SERIAL_DRV_DATA NULL #define GS101_SERIAL_DRV_DATA NULL #endif @@ -2623,6 +2631,9 @@ static const struct platform_device_id s3c24xx_serial_driver_ids[] = { }, { .name = "gs101-uart", .driver_data = (kernel_ulong_t)GS101_SERIAL_DRV_DATA, + }, { + .name = "exynos8895-uart", + .driver_data = (kernel_ulong_t)EXYNOS8895_SERIAL_DRV_DATA, }, { }, }; @@ -2646,6 +2657,8 @@ static const struct of_device_id s3c24xx_uart_dt_match[] = { .data = ARTPEC8_SERIAL_DRV_DATA }, { .compatible = "google,gs101-uart", .data = GS101_SERIAL_DRV_DATA }, + { .compatible = "samsung,exynos8895-uart", + .data = EXYNOS8895_SERIAL_DRV_DATA }, {}, }; MODULE_DEVICE_TABLE(of, s3c24xx_uart_dt_match);