From patchwork Thu Mar 24 12:43:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 554197 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B0CF2C433EF for ; Thu, 24 Mar 2022 12:44:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350258AbiCXMp7 (ORCPT ); Thu, 24 Mar 2022 08:45:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350254AbiCXMp4 (ORCPT ); Thu, 24 Mar 2022 08:45:56 -0400 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39E7839147 for ; Thu, 24 Mar 2022 05:44:25 -0700 (PDT) Received: by mail-pg1-x536.google.com with SMTP id q19so3738035pgm.6 for ; Thu, 24 Mar 2022 05:44:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SLVt+LP5JlIBRjXydemyTJQgjjrmA7sE29HqyrFPgYU=; b=o1iPt0Kzh/aZygLvoGUzfUh5P2m2ASuWdnPFEclHMemAGBXk45lP+UiRZNctpixQMf 1tm1akMN40R10d41d30DU3Jhs2ftnoEUInbHz08qMk1soQTQlFq7rmoshpDbmJNNDHmF lU3QaqQepvZYNdKmuHD/3/SaBvWWAxutuJkeM= 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=SLVt+LP5JlIBRjXydemyTJQgjjrmA7sE29HqyrFPgYU=; b=QxYxUWYl3Ks+LW2U/qHIMGNHX3mkgd8huM65YLmDdhigE7RcpS0gNNHEkJKBKvYNgs lj/vSXJqf39vWIuKBFmvu5pdPrGAH9wts6daIBg+2FuiJGORxeSqybG7jI0C9EFcCk+z RcNq6xC72vlb59x9uGcrBGh6Iv2aNJ8Gf/l8oleWqSnSn/z3AEMGbneU9RNbAUb1r/v3 UON7yCKcoXTW69EzWkHioAd+8BFJovqy3T6nAS065Ih/3i3TtQOcEs8udqEMOJzdq5F4 FV9uLEHgDltuvw5yvR0xJYG1hoZEBey4KMKjfQa30bM9PVD6E4yU60/RjHcYC0s9ZHzy 0pIA== X-Gm-Message-State: AOAM532ARCPNVNI2Jr0gE+RUYEX1ru0DgIEqH9cuDeZ8y6QO0eDsFWZb gJuYWAGTqzw2olCELkUe2QAPkw== X-Google-Smtp-Source: ABdhPJxCHkBGZ3KgXajz2GetPxKcpCh8kcbeG4/uD1RX7HLgooBcQxqBPmxkrHhsygwWEJZzCdpNtg== X-Received: by 2002:a05:6a00:2354:b0:4fa:f195:b0c9 with SMTP id j20-20020a056a00235400b004faf195b0c9mr2365161pfj.33.1648125864708; Thu, 24 Mar 2022 05:44:24 -0700 (PDT) Received: from shiro.work ([2400:4162:2428:2f01:7285:c2ff:fe8e:66d7]) by smtp.googlemail.com with ESMTPSA id t10-20020a056a00138a00b004fa9c9fda44sm3786924pfg.89.2022.03.24.05.44.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Mar 2022 05:44:24 -0700 (PDT) From: Daniel Palmer To: devicetree@vger.kernel.org, linux-serial@vger.kernel.org, robh+dt@kernel.org, andriy.shevchenko@linux.intel.com, jirislaby@kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, romain.perier@gmail.com, Daniel Palmer Subject: [PATCH 1/4] dt-bindings: serial: snps-dw-apb-uart: Add MStar MSC313 uarts Date: Thu, 24 Mar 2022 21:43:59 +0900 Message-Id: <20220324124402.3631379-2-daniel@0x0f.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220324124402.3631379-1-daniel@0x0f.com> References: <20220324124402.3631379-1-daniel@0x0f.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Add compatible for the MStar MSC313 uarts. Signed-off-by: Daniel Palmer Acked-by: Rob Herring --- Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml index 12137fe80acf..486e9deaef0f 100644 --- a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml +++ b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml @@ -45,6 +45,9 @@ properties: - starfive,jh7100-hsuart - starfive,jh7100-uart - const: snps,dw-apb-uart + - items: + - const: mstar,msc313-uart + - const: snps,dw-apb-uart - const: snps,dw-apb-uart reg: From patchwork Thu Mar 24 12:44:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 554000 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 18661C433F5 for ; Thu, 24 Mar 2022 12:44:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350254AbiCXMqA (ORCPT ); Thu, 24 Mar 2022 08:46:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350262AbiCXMp7 (ORCPT ); Thu, 24 Mar 2022 08:45:59 -0400 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5EF0387AE for ; Thu, 24 Mar 2022 05:44:27 -0700 (PDT) Received: by mail-pg1-x533.google.com with SMTP id o13so3716897pgc.12 for ; Thu, 24 Mar 2022 05:44:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ek2lZBtUjkC3pnGqt+RBhxkpe48kew374lr6zTExP6Q=; b=VBtLwBophOkXYa3sjzk54y3KqNxAuQ229WfiaEN1R1te9C9LR6qu145jvFeTUWrYVk KVpm88luvBK2bpn4sG/eUBfnGu/cxGM1941ufMCcDo/0I8+X0QF2cFQWv9L1UkU201m5 7T/Ui6EdP3+zuWnw7pWXVyNUjpjlc8wOUEWMI= 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=ek2lZBtUjkC3pnGqt+RBhxkpe48kew374lr6zTExP6Q=; b=kBeyqmCxK5leGOJ39bdf0HMO2X2/2Npv7aUZCI8A0AbHkIhbKXaKESqf5qVtnS4/Pz yzXBNmrZr81DpzcUiGJlaARr/U5MFmkfyuo4N1g61A60o6IYartGkWbaop/JYM3uAi0S wt+yi/0AaLC8pYR1yYkL+gQ3tYFVHMgWST8qYj/00wnsnKBxIJRC1IOjIhvvbBk12GQ7 XqPpQ+zzC3/l2uvVROPsDmDHUD4cohmxLEjMFd+1hrLz+7dcWJp98xNQjDHbWvlOZbNa C6G3HWUwkYAI9EcOtJlQ+lkT28LPl+3Ml043JTZaRV30Ky2TCX1DwfD86rOEem+7/lx2 rCIw== X-Gm-Message-State: AOAM530nlz6Y4+Bh6vR++718XlWgCk/3NkAgcNgf3tpqOzxgYjz3Ewjz cI3nC+zQZsa+0Xubvp1TdSENMQ== X-Google-Smtp-Source: ABdhPJxE9rk71v/iZm8H2lR14hvHWEvXaS7otrzLAMDM+Yy8zoArKBz8EzsuScDPwRmORi2z7rJgeA== X-Received: by 2002:a05:6a00:2310:b0:4fa:7eb1:e855 with SMTP id h16-20020a056a00231000b004fa7eb1e855mr5055729pfh.14.1648125867265; Thu, 24 Mar 2022 05:44:27 -0700 (PDT) Received: from shiro.work ([2400:4162:2428:2f01:7285:c2ff:fe8e:66d7]) by smtp.googlemail.com with ESMTPSA id t10-20020a056a00138a00b004fa9c9fda44sm3786924pfg.89.2022.03.24.05.44.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Mar 2022 05:44:27 -0700 (PDT) From: Daniel Palmer To: devicetree@vger.kernel.org, linux-serial@vger.kernel.org, robh+dt@kernel.org, andriy.shevchenko@linux.intel.com, jirislaby@kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, romain.perier@gmail.com, Daniel Palmer Subject: [PATCH 2/4] serial: 8250_dw: Add MStar MSC313 quirk Date: Thu, 24 Mar 2022 21:44:00 +0900 Message-Id: <20220324124402.3631379-3-daniel@0x0f.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220324124402.3631379-1-daniel@0x0f.com> References: <20220324124402.3631379-1-daniel@0x0f.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org The version of the IP used on the MStar MSC313 and later MStar and SigmaStar SoCs has the USR register at a different location. Add a quirk for this. Signed-off-by: Daniel Palmer --- drivers/tty/serial/8250/8250_dw.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c index 1769808031c5..01737e5706a5 100644 --- a/drivers/tty/serial/8250/8250_dw.c +++ b/drivers/tty/serial/8250/8250_dw.c @@ -416,6 +416,10 @@ static void dw8250_quirks(struct uart_port *p, struct dw8250_data *data) p->serial_out = dw8250_serial_out38x; if (of_device_is_compatible(np, "starfive,jh7100-uart")) p->set_termios = dw8250_do_set_termios; + if (of_device_is_compatible(np, "mstar,msc313-uart")) { + data->usr_reg = 0x7; + data->skip_autocfg = true; + } } else if (acpi_dev_present("APMC0D08", NULL, -1)) { p->iotype = UPIO_MEM32; @@ -699,6 +703,7 @@ static const struct of_device_id dw8250_of_match[] = { { .compatible = "marvell,armada-38x-uart" }, { .compatible = "renesas,rzn1-uart" }, { .compatible = "starfive,jh7100-uart" }, + { .compatible = "mstar,msc313-uart" }, { /* Sentinel */ } }; MODULE_DEVICE_TABLE(of, dw8250_of_match); From patchwork Thu Mar 24 12:44:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 554196 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 99F37C433F5 for ; Thu, 24 Mar 2022 12:44:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350268AbiCXMqI (ORCPT ); Thu, 24 Mar 2022 08:46:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350255AbiCXMqC (ORCPT ); Thu, 24 Mar 2022 08:46:02 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55F253A730 for ; Thu, 24 Mar 2022 05:44:30 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id g9-20020a17090ace8900b001c7cce3c0aeso558809pju.2 for ; Thu, 24 Mar 2022 05:44:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jMLkcxx+n1ArS2RqcTBzK629rFDC4Wj9OjjlSjnYeys=; b=TokHDTdXWsgf05xnA8MYSVPp7G5Lzf+SJZt0QibiGJOAYLYCIcGmjK1uLCSRNecipc ZRwI0W2W8QtfWWYJVRmBCdYL4BKx/3czhJDLsRAj22xBPu2dK/lhTHcR9HAarFkfaoDx ARy/sd1AgCWOKhfu2ix0doMBpL212yCzvirB8= 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=jMLkcxx+n1ArS2RqcTBzK629rFDC4Wj9OjjlSjnYeys=; b=eahOeh2v2fe1RHZORyenlOtz6/CKkQO2RcZZSwceq5u5ye116NJFCQcWl3N4F3mkYw KZHijDFVlxGuZ160xA7ToBgEN+TNupeyD9KoX6LSLtKhZZGcAjtLr6CinBHAHy/ItfFs WcnqhPldkRhFtuJ298bwWEay4ea6LA2VsQO85aituIAAvQrEpYuiRpxvUlUFP3hEuZgr i0pjiYWSwILXfELgDW811rZx72ACEPznN7LUt/JbE4gCcPbpSCf0DOzPBETDxeiaW6HQ G6KoutScsEJuk685rOLrLbfs8xgQ5yzHNoTNQr+CWnLGZWeZ1FaR7vOJUkkwPbp83/HB wj5Q== X-Gm-Message-State: AOAM5317uTgqaO09Rj78aFLK8rxAb4Tu9U1K+1J+SsW4xQpc7kVy3Le5 r+a9+ornz5topmhrwLhhyx6PFQ== X-Google-Smtp-Source: ABdhPJxR5oI994cwYDr7DiON56A05ru42hSIYYblDm7LVcmMi8P8kvbt2WLe9fswPW8g+j8z9VdW2g== X-Received: by 2002:a17:902:c40c:b0:154:837c:5b2 with SMTP id k12-20020a170902c40c00b00154837c05b2mr5779342plk.46.1648125869833; Thu, 24 Mar 2022 05:44:29 -0700 (PDT) Received: from shiro.work ([2400:4162:2428:2f01:7285:c2ff:fe8e:66d7]) by smtp.googlemail.com with ESMTPSA id t10-20020a056a00138a00b004fa9c9fda44sm3786924pfg.89.2022.03.24.05.44.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Mar 2022 05:44:29 -0700 (PDT) From: Daniel Palmer To: devicetree@vger.kernel.org, linux-serial@vger.kernel.org, robh+dt@kernel.org, andriy.shevchenko@linux.intel.com, jirislaby@kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, romain.perier@gmail.com, Daniel Palmer Subject: [PATCH 3/4] ARM: dts: mstar: Switch pm_uart to mstar,msc313-uart Date: Thu, 24 Mar 2022 21:44:01 +0900 Message-Id: <20220324124402.3631379-4-daniel@0x0f.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220324124402.3631379-1-daniel@0x0f.com> References: <20220324124402.3631379-1-daniel@0x0f.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org The UART used in these SoCs is actually a variant of the dw apb uart. Now there is a compatible string in that driver to handle the quirks switch the compatible for pm_uart over to mstar,msc313-uart. Signed-off-by: Daniel Palmer Reviewed-by: Romain Perier --- arch/arm/boot/dts/mstar-v7.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/mstar-v7.dtsi b/arch/arm/boot/dts/mstar-v7.dtsi index c26ba9b7b6dd..8464a8f1b136 100644 --- a/arch/arm/boot/dts/mstar-v7.dtsi +++ b/arch/arm/boot/dts/mstar-v7.dtsi @@ -175,7 +175,7 @@ gpio: gpio@207800 { }; pm_uart: uart@221000 { - compatible = "ns16550a"; + compatible = "mstar,msc313-uart", "snps,dw-apb-uart"; reg = <0x221000 0x100>; reg-shift = <3>; interrupts-extended = <&intc_irq GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>; From patchwork Thu Mar 24 12:44:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 553999 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D8943C433EF for ; Thu, 24 Mar 2022 12:44:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350325AbiCXMqR (ORCPT ); Thu, 24 Mar 2022 08:46:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350296AbiCXMqP (ORCPT ); Thu, 24 Mar 2022 08:46:15 -0400 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A8CD3B542 for ; Thu, 24 Mar 2022 05:44:33 -0700 (PDT) Received: by mail-pl1-x636.google.com with SMTP id x2so4576706plm.7 for ; Thu, 24 Mar 2022 05:44:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=V3tFbH35BFupdR5bw1hQ7Wrji66feBlGYcQAWCV7aQM=; b=ceyT+O0AlPmogMlbBEf0jmw/Z26cnyOFpgkiYjvQXlXJoHkP8J4lAjcaMJIqY+EBTY y5AYcKxoM0O+vEtt4C60iahHShQ9MeHn7EVXj4LTs4JIfw9c9et361Uhy/nUAXJW+/xT +sbe0c9Tzke8XuUiPnnO6pXrp0TwLsjlFskgA= 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=V3tFbH35BFupdR5bw1hQ7Wrji66feBlGYcQAWCV7aQM=; b=eOQL5ONyY5hbKSUhCPdI4oMD3eqaxXPAVqaUjyOaHECKhx8VZCBZ/fsBCKaa2d8AK4 h/ynA5kgIf3ho0FBq8On6CLas5R+qr05V9SoG93ZQqUmay+YM0QlOax6NInIeY5RxjZd rWAq0pTTOhCVwAQTR7mwfi2k4cgC7tROcKS0yd1SBn2+uLCL6sewNXTWMw9D5PV/Ke77 wOowC5ROJgTJ9uqvQT6MNObIRMrv+v790o4PF6YFBKYkb+2dAvOfcQ/sSjtgHrqpULGh dPBLP6Y/iifSfKQM8a2N0NYvvDbltdq2AQR2JpscxYE3hfR5uDFurigx9H5JPlvRADf8 AtwA== X-Gm-Message-State: AOAM531jRhz+cGTRRSDHUTz74vobvvp1Boo9b229Cc/a0aTt+WNvsnYo LJWeprqhV/jfkBzmdQNQYQJXVw== X-Google-Smtp-Source: ABdhPJxP42NMb0GQrTrXWtdr66SfCJdveNo9QEKIWJol7H+ZIpB+Eao3a8ALGd36qKQJGXCtv+cUHA== X-Received: by 2002:a17:902:f291:b0:153:caaf:17fd with SMTP id k17-20020a170902f29100b00153caaf17fdmr5655877plc.89.1648125872376; Thu, 24 Mar 2022 05:44:32 -0700 (PDT) Received: from shiro.work ([2400:4162:2428:2f01:7285:c2ff:fe8e:66d7]) by smtp.googlemail.com with ESMTPSA id t10-20020a056a00138a00b004fa9c9fda44sm3786924pfg.89.2022.03.24.05.44.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Mar 2022 05:44:32 -0700 (PDT) From: Daniel Palmer To: devicetree@vger.kernel.org, linux-serial@vger.kernel.org, robh+dt@kernel.org, andriy.shevchenko@linux.intel.com, jirislaby@kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, romain.perier@gmail.com, Daniel Palmer Subject: [PATCH 4/4] ARM: dts: mstar: Add second UART to base dtsi. Date: Thu, 24 Mar 2022 21:44:02 +0900 Message-Id: <20220324124402.3631379-5-daniel@0x0f.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220324124402.3631379-1-daniel@0x0f.com> References: <20220324124402.3631379-1-daniel@0x0f.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Add the second UART to the base dtsi. Signed-off-by: Daniel Palmer Reviewed-by: Romain Perier --- arch/arm/boot/dts/mstar-v7.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/mstar-v7.dtsi b/arch/arm/boot/dts/mstar-v7.dtsi index 8464a8f1b136..baf2422b9854 100644 --- a/arch/arm/boot/dts/mstar-v7.dtsi +++ b/arch/arm/boot/dts/mstar-v7.dtsi @@ -182,6 +182,14 @@ pm_uart: uart@221000 { clock-frequency = <172000000>; status = "disabled"; }; + + uart1: uart@221200 { + compatible = "mstar,msc313-uart", "snps,dw-apb-uart"; + reg = <0x221200 0x100>; + reg-shift = <3>; + interrupts-extended = <&intc_irq GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>; + status = "disabled"; + }; }; imi: sram@a0000000 {