From patchwork Wed Oct 11 18:48:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 13417798 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 E19A4CDB480 for ; Wed, 11 Oct 2023 18:50:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=tbLhnDnfmUGLG7P8u0OEU+FsRbvgPL1EMkcWwMkUxQo=; b=1A28buEEUGGeHP SNmQ5ISezfmM3dZGrn9jzxqUBxPer1eGgxiV2X9QLVYD5nK+bhuj6Oy1SrwPxDXVPLdzOkVSeozoH Opz0wAu+DflGhSvHXjxZDbMjmYXIIAdc0NMoY2Gw/Qq+rqzUaaqggLQd8fAOi60shS/08TRemUNyf W6uHCrailgKWqySF/zTZa/V/r71hygU07QcQua8LJ1auF8VzRL7CjIrNCF2oK1hgc24EPGl8wuLuZ 2wvtqES+JaEgzCy6QNmRjXClk2tvZ7g8Fnl1N/yac3NQkb3l9nE+MDQSDNZKMBWn++lLAK5CinEyb HO1HyBF5Xndmm78A9TKA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qqeHK-00GTMP-25; Wed, 11 Oct 2023 18:49:54 +0000 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qqeH3-00GT5r-2y for linux-arm-kernel@lists.infradead.org; Wed, 11 Oct 2023 18:49:40 +0000 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-405361bba99so2120465e9.2 for ; Wed, 11 Oct 2023 11:49:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697050174; x=1697654974; 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=tn/hubDRHoceh4+bRLROPNwFC8WSZYf0eD2X8sEh5eo=; b=AVJn4ldzVt0BBAWx5/fZoQlwfQy3bZjO/PNrXVa2HuThDAaWmPWHyYxjP2iEbVm/Xb +Y6jiAP7o/1I8B/rnECuSk8FyQFHFwRf3GMFVn5mtlkEF53HhSAvT4s7ZTkrZdaP09hh fMkNcqIC/LB8HsPXE2E3A/j7OtXqVOWZ1miG/9btxTkhnrbQCmgNNBtDPVjp3mXqn3/N 1k1+0V+IkVeZUP98x6J4IoL4aPGYy+miWhC+ozCC2Zk6dnI5odpXuFsne3izLWy+/Q3P JfsVs+OH8XdfqbTihQhB2+p4gTXCl/vBQPsMkIw1ZovIuoH4jsQuX8zm/WMTr2+S/XDT OPPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697050174; x=1697654974; 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=tn/hubDRHoceh4+bRLROPNwFC8WSZYf0eD2X8sEh5eo=; b=hwo0sPnaEpPUDqDYRIpGcZq0qRs9XW+1BoWhJuuduOkwJo9es2EJFTQrJ82RNos6dJ d8r5uJ1djyIA/9g/EeZOViKEHyvCK/jXmr7iNyy0BgEXxSvuHzrG35zjE280X3qzgwzp SjBM20Jt8ZHzGYkLv7v/eqJ7y+xH5sEUBxRRJgX3f+bRadjMWS36cIbLsnVZI4gWAdr1 stNXYIv5K8LancoI3NR74WLQKQBnFl9+nFzjYfpLgMuM1RCzlPd6mDDDZpfYbjUhk0ox CCyceYQE2ent1iTWFcubvFpW1303AmXrLXYNIwxb+vQkDwMaXXcHYL/PXb12TNLQN/Pp aBuw== X-Gm-Message-State: AOJu0YwMyPlUjkCIlCEXPlYzkEba04WfO619auWeE5UkxoF9bNH8gg+v n8iahvG3esawUwIcFqZtbiE2Fw== X-Google-Smtp-Source: AGHT+IHW9386VXpmqzDlaPxSkIQn53/ePvUVUCDgQrjJjB/fufpo5Qz6HfgBBh0a6HufjVjZL3AVIw== X-Received: by 2002:a5d:44cd:0:b0:32d:885f:3f8d with SMTP id z13-20020a5d44cd000000b0032d885f3f8dmr1809992wrr.52.1697050174611; Wed, 11 Oct 2023 11:49:34 -0700 (PDT) Received: from gpeter-l.lan (host-92-12-225-146.as13285.net. [92.12.225.146]) by smtp.gmail.com with ESMTPSA id v6-20020adff686000000b0031980294e9fsm16003875wrp.116.2023.10.11.11.49.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 11:49:34 -0700 (PDT) From: Peter Griffin To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, conor+dt@kernel.org, sboyd@kernel.org, tomasz.figa@gmail.com, s.nawrocki@samsung.com, linus.walleij@linaro.org, wim@linux-watchdog.org, linux@roeck-us.net, catalin.marinas@arm.com, will@kernel.org, arnd@arndb.de, olof@lixom.net, gregkh@linuxfoundation.org, cw00.choi@samsung.com Cc: peter.griffin@linaro.org, tudor.ambarus@linaro.org, andre.draszik@linaro.org, semen.protsenko@linaro.org, saravanak@google.com, willmcvicker@google.com, soc@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org, kernel-team@android.com, linux-serial@vger.kernel.org Subject: [PATCH v3 16/20] tty: serial: samsung: Add gs101 compatible and SoC data Date: Wed, 11 Oct 2023 19:48:19 +0100 Message-ID: <20231011184823.443959-17-peter.griffin@linaro.org> X-Mailer: git-send-email 2.42.0.655.g421f12c284-goog In-Reply-To: <20231011184823.443959-1-peter.griffin@linaro.org> References: <20231011184823.443959-1-peter.griffin@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231011_114937_997045_09CD092B X-CRM114-Status: GOOD ( 12.39 ) 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 Google Tensor gs101 SoC. Signed-off-by: Peter Griffin Tested-by: Will McVicker Reviewed-by: Sam Protsenko Reviewed-by: Arnd Bergmann --- 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 07fb8a9dac63..26bc52e681a4 100644 --- a/drivers/tty/serial/samsung_tty.c +++ b/drivers/tty/serial/samsung_tty.c @@ -2597,14 +2597,22 @@ static const struct s3c24xx_serial_drv_data exynos850_serial_drv_data = { .fifosize = { 256, 64, 64, 64 }, }; +static const struct s3c24xx_serial_drv_data gs101_serial_drv_data = { + EXYNOS_COMMON_SERIAL_DRV_DATA(), + /* rely on samsung,uart-fifosize DT property for fifosize */ + .fifosize = { 0 }, +}; + #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 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 GS101_SERIAL_DRV_DATA NULL #endif #ifdef CONFIG_ARCH_APPLE @@ -2688,6 +2696,9 @@ static const struct platform_device_id s3c24xx_serial_driver_ids[] = { }, { .name = "artpec8-uart", .driver_data = (kernel_ulong_t)ARTPEC8_SERIAL_DRV_DATA, + }, { + .name = "gs101-uart", + .driver_data = (kernel_ulong_t)GS101_SERIAL_DRV_DATA, }, { }, }; @@ -2709,6 +2720,8 @@ static const struct of_device_id s3c24xx_uart_dt_match[] = { .data = EXYNOS850_SERIAL_DRV_DATA }, { .compatible = "axis,artpec8-uart", .data = ARTPEC8_SERIAL_DRV_DATA }, + { .compatible = "google,gs101-uart", + .data = GS101_SERIAL_DRV_DATA }, {}, }; MODULE_DEVICE_TABLE(of, s3c24xx_uart_dt_match);