From patchwork Tue Oct 10 22:49:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 13416261 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 32495CD98CC for ; Tue, 10 Oct 2023 22:51:17 +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=SCK9RmHljF9mvjqQDrvDrupxpBLifFQ2KpltqzBc8r4=; b=0ZmbvJQQOtMv5O 5bl/ff/mhJWN5u3xOIbtkxUVgaawGUtWKm3KteqjBj/gB5Xr8/dgeLLRnA98JyQyKLp6SsQclrJI0 EkWfYBtqkVDVlz7Ij1Qn9r+QZoSHn6EQ5s8eYObDS6tLGfv9IAUPWVbIKwOKMuMBmnY/WGgxvuTyL M2ZkbevyP5xJ+VfCep+6l+yC41e1VOIbOhHa6AuhfSdH8NjNXdjtx7ewF0NtxGjeSJoRvfwHyk9PY t16+ANcIHJ/OWckyDHwywcrzS4HFbzkZBn8SKdCHtMHPxdBHFe+QswjIpozaWTK9mr4Q9uUth37vx 9Q0RjizUV/V6/bGJ8tIQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qqLYv-00EJ7J-2U; Tue, 10 Oct 2023 22:50:49 +0000 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qqLYL-00EIcf-2b for linux-arm-kernel@lists.infradead.org; Tue, 10 Oct 2023 22:50:15 +0000 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-3247d69ed2cso5931386f8f.0 for ; Tue, 10 Oct 2023 15:50:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696978209; x=1697583009; 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=xYprZVFUFFzXb/GEC6qC9cNPUPhkcdvlPZq1XksyVt4=; b=Pdn7I/uNmG8M47xclSUZOcbfVc0NXXDJBfPoJ3gVcnGu/W6k758d3LJQkHF1wC5AKx 6KGFuCSKt8j1/f4YKt3iumcW8JblcwTHlJdHllk/YijzKn7yJAs7aPdB1HyREzWsrt1u sB5kfjPkM7rqAEwfQLXL6KHQS/RNn3CD5n2eDlePvTwKx0qNl2fDSXT6yELZuhzj5i8R SLexZOZ5/iBq+ljmEWlCFsJBZ5aVToFDEqXRbhzDnpiIudpsKXwS8TYR5VImg9fwO7Pa iZnkg9Xl1tEQkVpZXnH7rE/SSzaOxEQ5Q2Fj4twPNiSRUun0aE7F7XEfqWak34ivbKPr Xzzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696978209; x=1697583009; 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=xYprZVFUFFzXb/GEC6qC9cNPUPhkcdvlPZq1XksyVt4=; b=UFfqviOdEBN3rwD8iKku7GF5O7TLAraBrRvPkPKZeRBYH4GPOYcKNfeLMPp2eJ0QNr ewAQCPg3gpyUFTAcJ3RXEDtbFgK/GTpZvJ9/8GWan2aePK2Gg/j+b6xSLbgY4SgYHVSN TzLBTLhFDdT81h2SaAMJWrZ1NZRlmaVh6+Mkl5RAKAX8WWVC+mWN1ljXW2lpG1wpmD8L hrWCe526aKUtp6KRbHgzr6lUaVMzXCIjNKRNmJsOtI8jinjsFAT3ImmuCBpGRIkchh3k 6wntmjn2C8XzpBUKQdj+mO8dnGtMW4x08UmqRI31MkcXQDfVuBLWhXbtXXUtZ51BmgVW lrcA== X-Gm-Message-State: AOJu0YztqHgZjnRWKYc2MQEMI03OYuRQvecRh+iTXdB2YmJe+CrTuY0E fDpfDdhQ3BxRQaFZs4cIraikmQ== X-Google-Smtp-Source: AGHT+IEeJhcbODxR8zPSq9gFQ6GybH3mc0pCQwSXlhSaLpJWvK2exY4QzZL5mkQKp2rXpPf5/YjZIA== X-Received: by 2002:a05:6000:1c5:b0:32d:83b7:bdb4 with SMTP id t5-20020a05600001c500b0032d83b7bdb4mr244753wrx.9.1696978209476; Tue, 10 Oct 2023 15:50:09 -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 j13-20020adfe50d000000b003196b1bb528sm13689547wrm.64.2023.10.10.15.50.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 15:50:08 -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, 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 v2 16/20] tty: serial: samsung: Add gs101 compatible and SoC data Date: Tue, 10 Oct 2023 23:49:24 +0100 Message-ID: <20231010224928.2296997-17-peter.griffin@linaro.org> X-Mailer: git-send-email 2.42.0.609.gbb76f46606-goog In-Reply-To: <20231010224928.2296997-1-peter.griffin@linaro.org> References: <20231010224928.2296997-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-20231010_155013_873547_19D9927A X-CRM114-Status: GOOD ( 11.94 ) 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 --- drivers/tty/serial/samsung_tty.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/tty/serial/samsung_tty.c b/drivers/tty/serial/samsung_tty.c index 07fb8a9dac63..79a1a184d5c1 100644 --- a/drivers/tty/serial/samsung_tty.c +++ b/drivers/tty/serial/samsung_tty.c @@ -2597,14 +2597,21 @@ 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(), + .fifosize = { 256, 64, 64, 64 }, +}; + #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 +2695,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 +2719,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);