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: 12790660 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 B3A40C433FE for ; Thu, 24 Mar 2022 12:45:58 +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=Ww5pyQ/o+4GQvZNnkgZussy7gUj6+KncyLzdo4OK6v0=; b=S6aLR4Lbv6DRvy S8oxbx40TAnPrqjme1cbDVBkH6/J0a1sRcRX2GT3qR6xOYwke1SDNl+v1gbFKJB8mfmNqw6sQ3Q/M 9eAamdGE3hbQnTjInh5+LNKOM1bV75bCrxIk9d+fTkKzTfhr3Dza7aFFm7z3OOfQc4HmQvpNj5vO+ jUV8g/3S7Ao3l7FxJcxSu7eri8qpnaaVUMgGsFbsHyKVAJMHw0kAA7yZnB9pRFaXWLNZn0N/g56gh rdM7ZR9CYVPv0g7buXze5EguuvtDURlK9PCKxCKgzUPDJOuTjQF/3bgierdE3iBl31T7I10XBIa2R sI1qf7Dvatb9EyN27kzw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nXMpU-00Gc0o-2x; Thu, 24 Mar 2022 12:44:40 +0000 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nXMpF-00GbvV-T3 for linux-arm-kernel@lists.infradead.org; Thu, 24 Mar 2022 12:44:27 +0000 Received: by mail-pg1-x52f.google.com with SMTP id s72so3732228pgc.5 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=s7sNPg82GhBVGXjlWuuM/DynFe4ZxGiRD9Ty89fTW6oy+VXhhgBXkcWa20ihDV1txs pAPSIssIIAHe9XvbZfc6Z+oGMfgTPPwuPQklroo4gxf6q9SA7XAZalS0zh5MUnwnLtsm d0oadcqpoxNXcdnfyyC+a5engrh3J2m9RqmCaWZULKLufueQvgjV/m5mpD0qLdxfkeyz 9FP9cEHHdSjMV/vEh0rIBj5lSblbgt8ctyK3MWzIhKIOE04BBWlDEsWO0WWAxP4Qfqa0 +i2PhPB5aPQIah1X9ykXn8nCLS4cUATfGjWiB9HICEIUhDtT1dHR5PjxBqWfGTg6clKn /otQ== X-Gm-Message-State: AOAM531CP2TJSENUrWg/FdcD3f6U2Q982fAAXz7+uJMygDeJG/jG58Nj Q50cLDg+5zkQwzCODZUOHB/Enw== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220324_054425_984545_BC69FA45 X-CRM114-Status: UNSURE ( 9.58 ) X-CRM114-Notice: Please train this message. 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 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: 12790661 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 3DDF7C433F5 for ; Thu, 24 Mar 2022 12:46:02 +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=5FPWyNlDL9f2JxNb8LJs5aBSSsjwNytMdKfeeSjpSCo=; b=17tnYRd5zSA97m ApsS3ecNZ4QULZCznkUr/2+qaAQc48tDCyoznlEP6MzFKEhsSvJK4lEjZGvohelFdKdvhw7X2we63 Wq03At1LYEU52u2rEvZt3oJwK4xwFlq+Tup4l7EW+Oywac4Ow+NI/u0PJ6qFc5xnsWnAznvZf7Kg3 bw2r8ov067IMpTFzhL2dBbunYoHUAQRE2pBbIg9Yhay6+w5RSWStMAbIuUWcU5XPz92LK24Vdy/yT eZ8sVmnfe8oDXnefp795INOxcRyXuPZ1kLzDz4QQBnQ0hwemJ4f8QS4FFmm4gB9nVXkITTS6qhmWW dYQUrioYvO+1DQL0hAfQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nXMpg-00Gc4l-R5; Thu, 24 Mar 2022 12:44:53 +0000 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nXMpI-00Gbwi-8r for linux-arm-kernel@lists.infradead.org; Thu, 24 Mar 2022 12:44:29 +0000 Received: by mail-pg1-x534.google.com with SMTP id s72so3732307pgc.5 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=dgqoOhau5ABVcqXBRIDJfT7BJx5LQR6cj0amsATXBRZ29tbQF+Bwz0GbgKogJ7osq9 Mos5OqKO1zZF4kac0f9UiuRaArcWbyCWlZ7Vy6lFpnDtN43oSu6Q11ccYctoIx7/JI9Z CHMJ4gcEtxJ9uxKbnrWXyK7clyBdg+P/OWp5dXD30JW9ELdagmgFsNYmFvLkWdrVaVVI buXRnqp9lcLIfFfxL50LzIwwGth2d7+Prh97++Q5QDiNXp0jUf0nRvEdRpL10gMtgk0e MQ4z0h9GkCsJzvIXD9XDcGYirxGjzIc9ChGerZvOfNsS0Rxp+zX/oDW6VDNseAy1sZ/J ER4Q== X-Gm-Message-State: AOAM532yOq7FnsprAnS26jUJmq2UXeQcO1ooe3SE84j1jX80qgWYosJa fQTyjqPQgf14cAqCG3UjXEsO3w== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220324_054428_385021_61DA548D X-CRM114-Status: GOOD ( 14.09 ) 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 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: 12790662 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 C3416C433EF for ; Thu, 24 Mar 2022 12:46:22 +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=fhK15Ev3azJzUV7zRtCOp1GdFtzBwe0/mcEztu4QEzQ=; b=kQ2rUcx93aWBai mf1MA2Sc3V3n53X5cDkIk0uenlHuJqiY8hJ/j3qa7DnaOi90qjs1mBbOlDdvSKc8vmbSo1fNBaXvB yat26idoHhRIhyh/NU78Z1BrP2zyCL1ubdiMjZSHg7xBoXKRExtNYTG9tV/gO0PHXANBC4AaLiNyf gaJiytKTkENUaOjeCXLPEquzwk0cX3svyf7guJS2fxxzMfnu/V6hizjoE1QhRF69KUljJIE8zp9S1 FaLT7ZyEWTWxiv23SRDCSNX5x5gldb4x2VtiTgk5TNK70hpoDBYhhx9vVDKroIajePfUyeeVIJXza hXt0OV1re2J4OP9m0O7Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nXMpx-00GcAE-Ub; Thu, 24 Mar 2022 12:45:10 +0000 Received: from mail-pj1-x1036.google.com ([2607:f8b0:4864:20::1036]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nXMpK-00Gbxo-Rd for linux-arm-kernel@lists.infradead.org; Thu, 24 Mar 2022 12:44:32 +0000 Received: by mail-pj1-x1036.google.com with SMTP id b8so4612465pjb.4 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=gZc7gdECrtW1LsuV2ywK5cSmzG3EVugNqJzeicRhCd6tY/Sb1zhK5ejb2WRbHiowUa NkPY2Xe8+QVV+27nkBQ942Ccx8QS9w36IkoK++p89WXvcJD+g6SecedKR3/cNqWKeEN1 AdteqGydKpvf1ZxE/UOb0YrpzYb8lBXFN+WAU4Y0CaJUVwLN0sabfWoAw1U04V+Zg4RW 4263QgKg5oIi3l+NKOvx5TbW8WbCbY80Rl94IrFa3WfmEgdB0hoWfwYPXl7FLp4kkxfD 6PrdT1aG24BSWHfF1qXFfVBifcXyu3R1qZ5ptAmmmMEoRfLjS7+viIQkkfjUErlx/Cmc h5Og== X-Gm-Message-State: AOAM531WQ2AQJhuK2x/837aLow35+etM3D+AeS2Df4cHw3fpVqFCnhch bgHPbe1Byg8XLhQblr7BI6ERDA== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220324_054430_925949_F1C4465C X-CRM114-Status: GOOD ( 13.62 ) 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 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: 12790663 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 83AE7C433EF for ; Thu, 24 Mar 2022 12:46:38 +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=zPdn80rM2B4SVN0ATKitOvy/WmsH6PaWCKgvwKi1pbg=; b=12JZkaLTdU5ySB 9TiTxVm8BxW6HnJ2FBOOrfpYKjiw82Z2IHHytaNzl6HIsbP3SmHJ+l4fzYoWFYzr+R+HyYEHkmugf WwHQ3/G3p4RRa6m6xC5g86WGAkNJWn9cjgnQ5vmGDrRFKB+e8Z1ZOeWTpmAZVIksvMfd5aLawnNw3 Z293/MODUgPnXUqCMwcqDJG/NqlUHxrmD/fQadjKnoysf7dwG+e26ycjsyN8ZYqKjwMIinF/c04pQ Cs/d04311gL9/axbPCMyo9/Cx04OAZ3/1TwpksdDTA1LO5zcnkaIbmsqYM0cChYpcYjdxNcvEYwia F8/jMGO7RaI2bqvESrBg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nXMqF-00GcGA-Oa; Thu, 24 Mar 2022 12:45:28 +0000 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nXMpN-00Gbyv-Gq for linux-arm-kernel@lists.infradead.org; Thu, 24 Mar 2022 12:44:35 +0000 Received: by mail-pl1-x629.google.com with SMTP id g3so4577712plo.6 for ; Thu, 24 Mar 2022 05:44:32 -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=UghUpcBJvn3fcdJtiQGL4PuAWaZGIbiexPOkpgKhDU8uNfKPpDGUP1lLo++MGK9zJc cQIXcxIwVj5LAg+1gzwgqo5pF/g7SrSfDl+x4iqHMHgf1G89iT8/o9cvUoUB44npvnw9 X364L8X3qWTp9HsQFwzO73daPiTILVrPVeGJ9Yvm60d9jq/eS0hFlPlTjYiWuJ5WrhhW p/bvptJSLJEDurFkg5bd8m5P3Pnk9Vjgh8uEW46uJiQOmuxICN8w9miX29zLK2HOng4n ejV9u+DaA1M5JlsRV/vNeV9Ebf0jxOzPEdXC0Y8m/tOVY1U6fpJmcjOCZ/LobAVVbCOi F3zg== X-Gm-Message-State: AOAM532dzntMNTisQDsmdJMf3mkzRAtYBn3sl/u60gmD1Pvaa0R7gAIV 1fqnH4XaoazT0gSmHBWbpXmW4w== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220324_054433_605591_A61C0576 X-CRM114-Status: GOOD ( 10.54 ) 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 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 {