From nobody Fri Nov 22 22:56:59 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=quarantine dis=none) header.from=ti.com ARC-Seal: i=1; a=rsa-sha256; t=1712579253; cv=none; d=zohomail.com; s=zohoarc; b=d6sCGo1zILcW8A+nKjLs8pmq9R1OTaUysWelez8Mvcpzl2mYyIiJPjumZ8i6bWg3uGHcjwppD8xdTzutcJWWF6CXNHKZE/kP8XjJHH6hV43XbIazQAjLrnTL8m6hjtgQSaOHb3U2hsZyfkTsfyylNUhDelun8aBPuuhpPUX3Xew= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1712579253; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=aSMqRJ2j9Oj/aL7vf35DSF9DWG1/fdTVGo+Fl4r7hXI=; b=aNUUKbx0QZO/CmvBSzPlAVlTO9zO1hKBWAPYYb6cE0d0XAoT9iN0kB/T1zUHtuQ6+1zktNoG05OifBavK/7TsXgj02xvGmAONjgYxDd28RSr2lzUN6cW9x7GlF/+IcCThm/Xj/pKbTjCJ7U8uHrqceOP0DnZmXzaCAsN1Jrz+zY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1712579253703503.07291647633565; Mon, 8 Apr 2024 05:27:33 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.701925.1096547 (Exim 4.92) (envelope-from ) id 1rto5U-0001sv-OD; Mon, 08 Apr 2024 12:27:00 +0000 Received: by outflank-mailman (output) from mailman id 701925.1096547; Mon, 08 Apr 2024 12:27:00 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rto5U-0001so-K1; Mon, 08 Apr 2024 12:27:00 +0000 Received: by outflank-mailman (input) for mailman id 701925; Mon, 08 Apr 2024 12:12:10 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rtnr8-0008CY-E7 for xen-devel@lists.xenproject.org; Mon, 08 Apr 2024 12:12:10 +0000 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 37456c56-f5a1-11ee-afe6-a90da7624cb6; Mon, 08 Apr 2024 14:12:08 +0200 (CEST) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 438CBu2a074968; Mon, 8 Apr 2024 07:11:56 -0500 Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 438CBuEV025223 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 8 Apr 2024 07:11:56 -0500 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 8 Apr 2024 07:11:56 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 8 Apr 2024 07:11:56 -0500 Received: from uda0490681.. ([10.24.69.142]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 438CBqbQ109088; Mon, 8 Apr 2024 07:11:53 -0500 X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 37456c56-f5a1-11ee-afe6-a90da7624cb6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1712578316; bh=aSMqRJ2j9Oj/aL7vf35DSF9DWG1/fdTVGo+Fl4r7hXI=; h=From:To:CC:Subject:Date; b=mQM0EX4/KflwpFx6Lx5JvDwmN34155HBcjkXDc2hu5JHWzC602W1rpVHW80x02aDe rfbQOiqZdo7fuJS/hcP65KxrPuqqh3I191GVLN9rQriFMOen5Tsa68ZBpZLxkvLDiR deMHWaHgau4/K2gHBUslxwYDIyyUMoIh5PyYamA8= From: Vaishnav Achath To: , , , , , , , CC: , Subject: [PATCH] drivers: char: Enable OMAP UART driver for TI K3 devices Date: Mon, 8 Apr 2024 17:41:52 +0530 Message-ID: <20240408121152.1302364-1-vaishnav.a@ti.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-ZohoMail-DKIM: pass (identity @ti.com) X-ZM-MESSAGEID: 1712579254224100001 Content-Type: text/plain; charset="utf-8" TI K3 devices (J721E, J721S2, AM62X .etc) has the same variant of UART as OMAP4. Add the compatible used in Linux device tree, "ti,am654-uart" to the omap-uart dt_match so that the driver can be used with these devices. Also enable the driver for ARM64 platforms. Signed-off-by: Vaishnav Achath Reviewed-by: Michal Orzel --- Xen logs from J721E EVM: https://gist.github.com/vaishnavachath/8185e237898= 1705e1deb121f109f46b5 xen/drivers/char/Kconfig | 2 +- xen/drivers/char/omap-uart.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/drivers/char/Kconfig b/xen/drivers/char/Kconfig index e18ec3788c..dcb9e85853 100644 --- a/xen/drivers/char/Kconfig +++ b/xen/drivers/char/Kconfig @@ -55,7 +55,7 @@ config HAS_EXYNOS4210 config HAS_OMAP bool "Texas Instruments OMAP UART driver" default y - depends on ARM_32 + depends on ARM_32 || ARM_64 help This selects the Texas Instruments OMAP UART. If you have a Texas Instruments based CPU, say Y. diff --git a/xen/drivers/char/omap-uart.c b/xen/drivers/char/omap-uart.c index f4368c158c..03b5b66e7a 100644 --- a/xen/drivers/char/omap-uart.c +++ b/xen/drivers/char/omap-uart.c @@ -372,6 +372,7 @@ static int __init omap_uart_init(struct dt_device_node = *dev, static const struct dt_device_match omap_uart_dt_match[] __initconst =3D { DT_MATCH_COMPATIBLE("ti,omap4-uart"), + DT_MATCH_COMPATIBLE("ti,am654-uart"), { /* sentinel */ }, }; =20 --=20 2.34.1