From patchwork Thu Nov 25 21:14:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jesse Taube X-Patchwork-Id: 12693703 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 24AA8C433EF for ; Thu, 25 Nov 2021 21:20:51 +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=uyxxcLh/RLbLsdj7npHq9MqQ9yaQdWdz8+30MS2e5D8=; b=U3ewBCg+DCgzFP jICe+sGDCLnY9L2K5ZwTGwYzv5KfUbX5KrpBEDSyFF4+IglBmRuFLTrwYshIBkrw6uOyZ5E2k/odz srv0S/xre63ps+YkCcAf5xe0N0D+tjpVDZmPoBmz/GjQ8raEwAw2MbB4ZzkiO2Za2ubGRmwgGlJNG B182BhzfwCKMUEaqnVF8hw+yHshpEzwy1okBjVTnZA3iixpNZNRbmCkRlJefg4/TChc6uOkWx+Tn2 QIxGiAJWTlzeNh9NrQBobXeGUMxuBoKFt9lHxw46CNZjitgKWJmuUMP5jIx/wzVRxuN3YWda3W/LQ YrAFHjne3dsV+ydaR15g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqM8s-008gmX-34; Thu, 25 Nov 2021 21:18:56 +0000 Received: from mail-qv1-xf30.google.com ([2607:f8b0:4864:20::f30]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqM5A-008fK4-TU for linux-arm-kernel@lists.infradead.org; Thu, 25 Nov 2021 21:15:06 +0000 Received: by mail-qv1-xf30.google.com with SMTP id s9so5572993qvk.12 for ; Thu, 25 Nov 2021 13:15:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0JRLJYcXhrRDBJKcmXD2oBmy6Smq5NLEEE+jpKeaTQI=; b=ayiajLyqzIPTbCHpYFE1SobpZRGlIBCDMQZ6RoHtdG5Pd37d8/IekvcM7HUxV7bHn1 23kogyCN9TYxZRAHGs1OE+0jKmUjrOLcUYCTTjRHhRmanvW5v3ucCjr6aegauJmInzV8 qlockAnccpJdiziY/WBnvjlI4vK2SZV7+3o5oCGstD5L6orPrD8ewS2srHYNi/nKwyVn 5rPQBKSwvginPTpL6GdyJfjOYi9+q8sIjMwIjPZOwTF1/22IKg0S0SVuVpK2rc645775 DTNzNgj4TRJTr5RhKK1W0gPaRY2Nldix/TWKGdVpMXH+BUzVTSmrBYzAi6X8/2dLLgNj sBBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0JRLJYcXhrRDBJKcmXD2oBmy6Smq5NLEEE+jpKeaTQI=; b=THpGAvm80KMXs7AW5b8GyNwyMOgwkrZ8Q1UNFhN2ALeyv4Jok8a4CWQOBxqyHhm5bQ T2Cn4vvApH9VxCrn02a0547uhZzwJ7arLjW24AB0sYhyZftTy8sb2z+Q67gyReTNSUMS te+GVN2mgA9T8cYFEeEfaLt42VSfhrOde2umjHWpSHqCyhgH71/yJyHQSg8VCyBrHRBi AFY1UGkBW4oBYZ3VsCLYnjtEqxwvvUGdyvCCCYNPelSlCv1KRB0HAEDJPez+AsVQ3iol UgKlL5L8q3q7iZA4Noez9nSNrL3DdEX9WvrjTJ3kLeO4ohXZnxahtqtcHuQhzfGuPrnV /ngA== X-Gm-Message-State: AOAM533hbRhK2PMaVOohmzOtiJ0yhkv4H5VpKbeOb9Vr+aLQIThWB8Ki fV/f9EItQSzz6Bbc0OkYH8w= X-Google-Smtp-Source: ABdhPJymL+1A7frhrmMGWXzMvIs4AYDhLZD6/fPrF5GhvkDZOAMnhWK/bEqQTwFmsCUrgBjVxw1cjg== X-Received: by 2002:a05:6214:27c6:: with SMTP id ge6mr9473113qvb.103.1637874902745; Thu, 25 Nov 2021 13:15:02 -0800 (PST) Received: from jesse-desktop.jtp-bos.lab (146-115-144-188.s4282.c3-0.nwt-cbr1.sbo-nwt.ma.cable.rcncustomer.com. [146.115.144.188]) by smtp.gmail.com with ESMTPSA id j22sm2068175qko.68.2021.11.25.13.15.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Nov 2021 13:15:01 -0800 (PST) From: Jesse Taube X-Google-Original-From: Jesse Taube To: linux-imx@nxp.com Cc: mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, ulf.hansson@linaro.org, aisheng.dong@nxp.com, stefan@agner.ch, linus.walleij@linaro.org, gregkh@linuxfoundation.org, arnd@arndb.de, olof@lixom.net, soc@kernel.org, linux@armlinux.org.uk, abel.vesa@nxp.com, adrian.hunter@intel.com, jirislaby@kernel.org, giulio.benetti@benettiengineering.com, nobuhiro1.iwamatsu@toshiba.co.jp, Mr.Bossman075@gmail.com, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-gpio@vger.kernel.org, linux-serial@vger.kernel.org, Jesse Taube Subject: [PATCH v3 09/13] tty: serial: fsl_lpuart: add i.MXRT support Date: Thu, 25 Nov 2021 16:14:39 -0500 Message-Id: <20211125211443.1150135-10-Mr.Bossman075@gmail.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20211125211443.1150135-1-Mr.Bossman075@gmail.com> References: <20211125211443.1150135-1-Mr.Bossman075@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211125_131504_980393_0E77C817 X-CRM114-Status: GOOD ( 12.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 From: Jesse Taube Add support for i.MXRT1050's uart. Cc: Giulio Benetti Signed-off-by: Jesse Taube Reviewed-by: Fabio Estevam --- V1->V2: * Nothing done V2->V3: * Rename imxrt to imxrt1050 --- drivers/tty/serial/fsl_lpuart.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c index b1e7190ae483..884bc4e70d70 100644 --- a/drivers/tty/serial/fsl_lpuart.c +++ b/drivers/tty/serial/fsl_lpuart.c @@ -247,6 +247,7 @@ enum lpuart_type { LS1028A_LPUART, IMX7ULP_LPUART, IMX8QXP_LPUART, + IMXRT1050_LPUART, }; struct lpuart_port { @@ -310,6 +311,11 @@ static struct lpuart_soc_data imx8qxp_data = { .iotype = UPIO_MEM32, .reg_off = IMX_REG_OFF, }; +static struct lpuart_soc_data imxrt1050_data = { + .devtype = IMXRT1050_LPUART, + .iotype = UPIO_MEM32, + .reg_off = IMX_REG_OFF, +}; static const struct of_device_id lpuart_dt_ids[] = { { .compatible = "fsl,vf610-lpuart", .data = &vf_data, }, @@ -317,6 +323,7 @@ static const struct of_device_id lpuart_dt_ids[] = { { .compatible = "fsl,ls1028a-lpuart", .data = &ls1028a_data, }, { .compatible = "fsl,imx7ulp-lpuart", .data = &imx7ulp_data, }, { .compatible = "fsl,imx8qxp-lpuart", .data = &imx8qxp_data, }, + { .compatible = "fsl,imxrt1050-lpuart", .data = &imxrt1050_data}, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, lpuart_dt_ids); @@ -2625,6 +2632,7 @@ OF_EARLYCON_DECLARE(lpuart, "fsl,vf610-lpuart", lpuart_early_console_setup); OF_EARLYCON_DECLARE(lpuart32, "fsl,ls1021a-lpuart", lpuart32_early_console_setup); OF_EARLYCON_DECLARE(lpuart32, "fsl,ls1028a-lpuart", ls1028a_early_console_setup); OF_EARLYCON_DECLARE(lpuart32, "fsl,imx7ulp-lpuart", lpuart32_imx_early_console_setup); +OF_EARLYCON_DECLARE(lpuart32, "fsl,imxrt1050-lpuart", lpuart32_imx_early_console_setup); EARLYCON_DECLARE(lpuart, lpuart_early_console_setup); EARLYCON_DECLARE(lpuart32, lpuart32_early_console_setup);