Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3927860rdb; Thu, 28 Dec 2023 05:00:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IGqJrhPr2z2YVyuNfLQJo4euAIbY9xchEaDSD41UfjNzGJC2z/mTk81qu9u6Sa7cl58JdhQ X-Received: by 2002:a17:906:1097:b0:a23:67d2:c546 with SMTP id u23-20020a170906109700b00a2367d2c546mr4625984eju.80.1703768401472; Thu, 28 Dec 2023 05:00:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703768401; cv=none; d=google.com; s=arc-20160816; b=z/SC/iG//nmytP3JROwE8SG/JiTljEOeEUOv7Y13akh+WQNxeyPqXd0izqeP7LJl4p zTH+A4UtDKu41Ah/Oae+FJjRRhLK5TVdIVq3FNqnojh4L2ytahyU6yNd7PvzdPQvk8He ywxpuCXHZ756YQ8flQIW8TsS1Z5wrPKa58lms//Y8pGtTtvcyO+DHwRdYICbjZhFATiT iCl/VWqZ1mKu2kp2rqoqPD+YHKWGn7zWFxMpwHGRi8KNs0KtUmkftaFGuMG2pddSAqxj fT+3b+bx20yN57rxEM31conqODFk8mu3CbWYC60ifztyFfrkhO6iXQ8S92RqKnBl0Rk2 ntUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=XX8RT8/KwRnpjqmauq2VuiREugBeuTfdnmzmXRQSLkY=; fh=nWlCePkpcllO+vKFQygjujkY+gVFca0fYRfPkdb3OoE=; b=O040AWjKRkeAWZcDw037d2/umvLFvzqHvjNbICEUjdI1bszQBbG9Iue3zT2yoRH+zN l/ZJAhwQAVMlZr2ZUZ4zQauzEE2H6wlNbpmm9kKbFN/LZErWFl1cKL5ao18l695eIwFA 5Kc1j1HSewJEy3wF1OR68J8yjwkPlZ9uO0kYN6+t0nsg20O4jAnQfpO/K5s0Y5VIlJXs bzEAtB2b2PT9iyrny9RObvvSOevmpiQuXYvFATb7d+lCWeZe4lbA8KOprIYpOlVGOOTj V1u1xEyWRxBDFR8cj77+IBmXT3O/bk7GmrCQ9VsyBZAMZxrUtIK/0blF4nqET+lMdliZ Fk9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LkHzgZxh; spf=pass (google.com: domain of linux-kernel+bounces-12650-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12650-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id p27-20020a1709060ddb00b00a2374901189si6850351eji.628.2023.12.28.05.00.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 05:00:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12650-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LkHzgZxh; spf=pass (google.com: domain of linux-kernel+bounces-12650-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12650-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 37EEA1F242D7 for ; Thu, 28 Dec 2023 13:00:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E1C0107B0; Thu, 28 Dec 2023 12:58:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="LkHzgZxh" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C910DEAF8 for ; Thu, 28 Dec 2023 12:58:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-40d5ae89c7bso16124575e9.2 for ; Thu, 28 Dec 2023 04:58:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703768296; x=1704373096; darn=vger.kernel.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=XX8RT8/KwRnpjqmauq2VuiREugBeuTfdnmzmXRQSLkY=; b=LkHzgZxhMS7RFnaXfOWocaAkiaPopljttZfgzA4qZ0DTYCGY9z6Ci15SSTFHnLhmiL ZXHCT+0V/k91HeKo0SLYciIqVLfG98glh6w+nqt4E8GK0NRGM9FbFwPthVe2Bwka7lnv Nv0AEiY//J5AjXORjw81TXD/cKhm4jFOW+Snn1CoK5F5C9scRXLbp80Nw+b3ikQMRLEL EZ3W9agXdnpQ9SrM+UxS+h/g95XkPbvO3IldMkeL4j2Tb75wUt/hp2D9X6tmUENqFuSC QpwlAj0Dt4pgN32yAE2+GiKp0XqaxGyPJnMIQtoeXkAsatPSGLDdAsmPpL/DL9IALzN5 Q18g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703768296; x=1704373096; 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=XX8RT8/KwRnpjqmauq2VuiREugBeuTfdnmzmXRQSLkY=; b=WijNOJ2c700ltfjuZJmvzmw4rUNIrbz8PUwAI3wR1dP4B+BTpwmT3s8JW5Lh/hbfpq RXZWoWStbrt/qnGat2+Ers5+UmkVt5inqLCjJ2Q8jEgdTnGVqb5JdVwFjTSDM7rABCYC 4bIxcCU/0UkJYFEzBoc7wbDzgU38Fx3lrweI/ZvjODKlG2ppXiaQzajt5WtSbhEIHgA/ jYF+iCUYE6iuFpaRHg4EvuO/0gzKNEYhVA8ispZkCGRmqzqxNH8EgZH0pLKhF1G6G3ls k3EhXl/mj02NLL9Rd988q77n9v1rOWFBC94E/SDcnBV0v5ddIP1L+ZmY3x2ivH1uBjUF fijg== X-Gm-Message-State: AOJu0YzSXzRjLFL12awhnAI1zJhz2yvT/IcNdvj7uLl/dhFDej7UFnre Icl4q2E8aenZOzhaAHGsI4wXhxAQQ48MpQ== X-Received: by 2002:a05:600c:4f83:b0:40d:5d82:d0f4 with SMTP id n3-20020a05600c4f8300b0040d5d82d0f4mr1363489wmq.61.1703768296198; Thu, 28 Dec 2023 04:58:16 -0800 (PST) Received: from ta2.c.googlers.com.com (216.131.76.34.bc.googleusercontent.com. [34.76.131.216]) by smtp.gmail.com with ESMTPSA id h9-20020a05600c350900b0040d5aca25f1sm8615807wmq.17.2023.12.28.04.58.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 04:58:15 -0800 (PST) From: Tudor Ambarus To: peter.griffin@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, conor+dt@kernel.org, andi.shyti@kernel.org, alim.akhtar@samsung.com, gregkh@linuxfoundation.org, jirislaby@kernel.org, s.nawrocki@samsung.com, tomasz.figa@gmail.com, cw00.choi@samsung.com, arnd@arndb.de, semen.protsenko@linaro.org Cc: andre.draszik@linaro.org, saravanak@google.com, willmcvicker@google.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-serial@vger.kernel.org, kernel-team@android.com, Tudor Ambarus Subject: [PATCH v2 06/12] tty: serial: samsung: add gs101 earlycon support Date: Thu, 28 Dec 2023 12:57:59 +0000 Message-ID: <20231228125805.661725-7-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog In-Reply-To: <20231228125805.661725-1-tudor.ambarus@linaro.org> References: <20231228125805.661725-1-tudor.ambarus@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The entire bus (PERIC) on which the GS101 serial resides only allows 32-bit register accesses. The reg-io-width dt property is disallowed for the "google,gs101-uart" compatible and instead the iotype is inferred from the compatible. Always set UPIO_MEM32 iotype for the gs101 earlycon. Signed-off-by: Tudor Ambarus --- v2: update commit message drivers/tty/serial/samsung_tty.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/tty/serial/samsung_tty.c b/drivers/tty/serial/samsung_tty.c index 938127179acf..2fbaaf0e756b 100644 --- a/drivers/tty/serial/samsung_tty.c +++ b/drivers/tty/serial/samsung_tty.c @@ -2812,6 +2812,17 @@ OF_EARLYCON_DECLARE(exynos4210, "samsung,exynos4210-uart", OF_EARLYCON_DECLARE(artpec8, "axis,artpec8-uart", s5pv210_early_console_setup); +static int __init gs101_early_console_setup(struct earlycon_device *device, + const char *opt) +{ + /* gs101 always expects MMIO32 register accesses. */ + device->port.iotype = UPIO_MEM32; + + return s5pv210_early_console_setup(device, opt); +} + +OF_EARLYCON_DECLARE(gs101, "google,gs101-uart", gs101_early_console_setup); + /* Apple S5L */ static int __init apple_s5l_early_console_setup(struct earlycon_device *device, const char *opt) -- 2.43.0.472.g3155946c3a-goog