Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3694492pxb; Sun, 24 Oct 2021 08:44:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3ygUtDtBTJFerNYH1dNIrrzEkejdVCApJaxxqX1a6aIfCHncQYDvrIBpoTKJOy61cuERH X-Received: by 2002:a17:90b:4d82:: with SMTP id oj2mr29039446pjb.232.1635090279360; Sun, 24 Oct 2021 08:44:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635090279; cv=none; d=google.com; s=arc-20160816; b=zpKH5Qrd4X0v9hgfNlNcdei2qCrlsXlHMqC7eyIiz5fNA0U07XWSocHGzubCwDlDZI RC/uupWUPlPZDMlSK3jUDu9yQCGXtjvjHOkw0G0/SsjKuSWLVPhnvKutcq/aByGYtiML M8eSe6F1UU5OrYy+qFVPvlKFblb//OKOMmFGJV8Pwfy+pcf0pKzDFrATchJAoBWKUd6k GUDMCW6Uozv70sK2cBEvz6+TAMyRZBTbBlGFGU68L0mW0cUvO7DNwl16BIEHPhOHcRAh nKKtU4dTrpAyDsz+60BXEJ18riKKmdHzWXSlonP8k2A6eOZkM1zwt7XG6tg+eLT0O3b/ BZZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fG7/U26JTr2Go8waG37i/rnBfZKJjV/c/9+8XoMI6dY=; b=xuAbWz2peahjFO6jR+STlcxXQFZmkN1Q4GzsZT40RZ+xkDFTebOtfwsMIvo8yxc6sG N+Tp/IITZQlkp7TMGSJmVM3Y5vaeBuT3ehkFM8jfQ2zTHS5aCUHPCaFPHH6Q7wrr10yV OVgYjTZGAwyw/py79eM2tlMIrXUJe2uPFahhIR9Bog5xXIOCyjf5HGiSHxLLNrpGJrjJ TcwYQlVbwpWTiO/aKiZkc+UNytBxh4tO12eHHmocMaKlyHbYuUak5muxdlDn9A5hgjuJ X7KrtrNTMo4xzrw2ud391RCRoT9m20rOiQA4NpBc+ZXWz7Ibyqp4FcyGN9Hak7KgoLtU uFCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Nq+do2nP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p8si25357081pfh.25.2021.10.24.08.44.27; Sun, 24 Oct 2021 08:44:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Nq+do2nP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232174AbhJXPoV (ORCPT + 99 others); Sun, 24 Oct 2021 11:44:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232532AbhJXPng (ORCPT ); Sun, 24 Oct 2021 11:43:36 -0400 Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E5E7C061224; Sun, 24 Oct 2021 08:40:53 -0700 (PDT) Received: by mail-qt1-x82a.google.com with SMTP id i1so8148849qtr.6; Sun, 24 Oct 2021 08:40:53 -0700 (PDT) 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=fG7/U26JTr2Go8waG37i/rnBfZKJjV/c/9+8XoMI6dY=; b=Nq+do2nPPMzN5qL2FehSoU59KbwnTZaV4tDSRuu7xgPg612txv/xyobFSEZEYrv5XB I/yKStecPVuyJSP94SsOnV8xmNV6avy3mBbdQ4Lqo9iha8loWGek8cIMXn1AeoroHU6q VgTVI51VvVk5m02iq2FpYQL+WBtvKm0c/QYNj2ML44pYbwGpIRU1o75Ia3uRwYYAyy3R IFI8A4SFAxR8Ai2iCVQ9r+dkz/Nijxt+4bqQ/t/KSS62Xppyu73H78r/5TmBbI2ahjsy zLV4qE+eWpb8Ssuu7iLUNiT33P145h/t4KZLOY6LIGVrQ1t2ukzoj9TDYpt7IEW3up/C 7UTg== 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=fG7/U26JTr2Go8waG37i/rnBfZKJjV/c/9+8XoMI6dY=; b=3ZuUXdJOFGS1WAU5KYNcR4h/ezA1zVMIxSmwiyMSfFCywWdPNNphCBUkY3+sh/FKVG kEjxPQmdR5VorkCL3OFGDbmKA3Rp3vu3in+pMOigLBSqEhsQitp96n0zKxyZvuQR0C7s MGLPT8s5DmJ7Y69AWjE1Ka3s+G3svHRuSWR5W8pTnxNkStL54+JQTk1G11XLjT8WMz1r ehMgiIE0brOHpEQxTou6Hr1Mw+B2L8CGl5TDovG0tR/elD/IgLH1ErIjkwEDc0CrRGHD d2mt1RqRmJmvD+Of5EPircXxPSsY2bQ2al/frLMyb+Gyzu0Ak7uGeOBun/MUlV8PedYq OsWQ== X-Gm-Message-State: AOAM533F2t0Utq55/0DDsP28yreea6DQa7i5XQB7heZ+C4mqqW+ylRsZ JlEAAaG+vGX4hnCSJ4NluOM= X-Received: by 2002:a05:622a:1a8c:: with SMTP id s12mr12121146qtc.303.1635090052549; Sun, 24 Oct 2021 08:40:52 -0700 (PDT) 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 x9sm7291731qtw.84.2021.10.24.08.40.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Oct 2021 08:40:52 -0700 (PDT) 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, leonard.crestez@nxp.com, b20788@freescale.com, Mr.Bossman075@gmail.com, fugang.duan@nxp.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 Subject: [PATCH 09/13] tty: serial: fsl_lpuart: add i.MXRT support Date: Sun, 24 Oct 2021 11:40:23 -0400 Message-Id: <20211024154027.1479261-10-Mr.Bossman075@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211024154027.1479261-1-Mr.Bossman075@gmail.com> References: <20211024154027.1479261-1-Mr.Bossman075@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for i.MXRT1050's uart. Cc: Giulio Benetti Signed-off-by: Jesse Taube --- 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..1db083905d75 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, + IMXRT_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 imxrt_data = { + .devtype = IMXRT_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,imxrt-lpuart", .data = &imxrt_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,imxrt-lpuart", lpuart32_imx_early_console_setup); EARLYCON_DECLARE(lpuart, lpuart_early_console_setup); EARLYCON_DECLARE(lpuart32, lpuart32_early_console_setup); -- 2.33.0