Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp125846lqt; Thu, 18 Apr 2024 10:06:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXGtK6FJ4oyP8JDfQakuC86rk67ZTtIKvw6mG+fC9oczo3j/g8BWWxIGWFZKtoq3Q/qkNk2UBjRQIGRAweLJbVCxYO9BvUZaF/ev0anKw== X-Google-Smtp-Source: AGHT+IGmJUACtPYbv1MGLzsuXcNgLeO7aAX9sc8YGjVhCScD10Q9k6VMCL1Fgb4+I+T0RWX+MOyt X-Received: by 2002:a05:6a00:a0d:b0:6ea:c04c:a899 with SMTP id p13-20020a056a000a0d00b006eac04ca899mr4614629pfh.20.1713460011892; Thu, 18 Apr 2024 10:06:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713460011; cv=pass; d=google.com; s=arc-20160816; b=Pb5SpeY/IAFuL2Y5nzwZCcr3xsAQh0uKnzQW4cyvTVEgGt/YeS8nAVc76DCnPK2iJB ltYv28/fADjcTpgzEHf3vuhMCXic28WDKz2UvOPm6BGNSiPbMHW/ISTprdDOlnPSFiAI nypBE1K2wSHwgtQzcjlSDI2e0Buo41On50SG6A2bX1yNnxO3WUmaWKfk8WlGHa9Unodq 3jW4fVAwkHHjx2dzvVTRVyhrltLvhP7mxWktSO+24CNCg9Yf7PZeGzrUd8JcTDJsQkLG AOdk2WQAYJsmg7oQyM6wVRqgk9O+I+LMf0N/nVSRgBipXjvacKuxSuHqAkjocnkvvScP jPpw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=Linf+kVK6y/ZgKvcMKej4Dz6kiLTbngwEJFfajgKgYw=; fh=VenEdBSFRXInPYJlmcOSh6P/Z5cmgH8E/xAYaD0W9RA=; b=UgigzVnWO5Txmq0DHBKuMgXuVccUj/3yoCwxiP0sfHyPVM4e4qZ9Pskbc4OYZhyAQ/ tj0tH26g1Rt+W68c+iY7sxZpZZGtmxftjmiFF2o8cO+DgvT0DLMPNrlYVnqfxqN848gU yaNPWGWtqpO5BdDBPM3CeLGhw4CN9Gm6SH8FGwuLY+Kko5Pnp3PbITQ+Se+aHp3pPWqy 1+rpS+wpxbARiVqjLzDApt1oOLVya9oBuU91ILah9DoOBoT35QcdR/38XJWzd7DSZOue uIMZ0rBSVptBf1Ob+N+fb+wWVxcRKHy1o6CfpVPjsxQ0y+9AjSzZLtkEQ9uXSEOyRj3g zJ3A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ya.ru header.s=mail header.b=lWsXwBeY; arc=pass (i=1 spf=pass spfdomain=ya.ru dkim=pass dkdomain=ya.ru dmarc=pass fromdomain=ya.ru); spf=pass (google.com: domain of linux-kernel+bounces-150539-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150539-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ya.ru Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h2-20020a056a00170200b006e629ca2803si1875802pfc.180.2024.04.18.10.06.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 10:06:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150539-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ya.ru header.s=mail header.b=lWsXwBeY; arc=pass (i=1 spf=pass spfdomain=ya.ru dkim=pass dkdomain=ya.ru dmarc=pass fromdomain=ya.ru); spf=pass (google.com: domain of linux-kernel+bounces-150539-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150539-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ya.ru Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 671E0283A60 for ; Thu, 18 Apr 2024 17:06:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 24A85171E55; Thu, 18 Apr 2024 17:06:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ya.ru header.i=@ya.ru header.b="lWsXwBeY" Received: from forward401a.mail.yandex.net (forward401a.mail.yandex.net [178.154.239.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CF8B543AA2; Thu, 18 Apr 2024 17:06:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.154.239.94 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713460004; cv=none; b=pnvx2hYV6KEM9hb8htljT/RKsO2qtoaZoHs+FtZKb01ACgJ87JyOEeyKFDdNgm551/VqgBvIVJhnXK5GDzs6ctY6612jaEWNbel5gpXPA8U+0Zc489xcqPm0b+w26B/4fWFhepN1H82JPqW5HCRKn7q7+NLwMfBDDgwGczXoo9w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713460004; c=relaxed/simple; bh=bTGTC2b2ikJQMVlDSeZIfpkVxKwxgckKEtIc7PIXIus=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=UzYQroSRYWgH5y4bLXzebhnYO6Qxi+7FtRkQExuKeAyv3yI/ru6XiH4PwAIqGczdawxI1jsVTWMxee5bS8i5Pgx35ZHLMO0RkZPZuJAaAJYjyCbYtBhZO4btQLHGqsf/6KbZL86GsSlgQPjLmYtpXMoeufUaM/GZVgMLVBDGXDo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ya.ru; spf=pass smtp.mailfrom=ya.ru; dkim=pass (1024-bit key) header.d=ya.ru header.i=@ya.ru header.b=lWsXwBeY; arc=none smtp.client-ip=178.154.239.94 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ya.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ya.ru Received: from mail-nwsmtp-smtp-production-main-67.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-67.vla.yp-c.yandex.net [IPv6:2a02:6b8:c1d:2c01:0:640:acf3:0]) by forward401a.mail.yandex.net (Yandex) with ESMTPS id BFD5860DFE; Thu, 18 Apr 2024 20:06:24 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-67.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id M6JHjm3m3Gk0-xfkrvejs; Thu, 18 Apr 2024 20:06:24 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ya.ru; s=mail; t=1713459984; bh=Linf+kVK6y/ZgKvcMKej4Dz6kiLTbngwEJFfajgKgYw=; h=Message-Id:Date:Cc:Subject:To:From; b=lWsXwBeYWx01buT3Aiv7K5MzIJol2uof7H295aERZxzpw+1xA5RDqF92srdPimBUH duz2mphU+LcYPUiEn48YlFSSmN4PDd7bX4Qsms+5GRq/SQdc9ZKA6n1Sny26vMOrnQ vji59BLhE0LT+GKi2AxQ9nl28Djni7fVS/Z9ogNI= Authentication-Results: mail-nwsmtp-smtp-production-main-67.vla.yp-c.yandex.net; dkim=pass header.i=@ya.ru From: Konstantin Pugin To: Cc: Konstantin Pugin , Greg Kroah-Hartman , Jiri Slaby , Hugo Villeneuve , Andy Shevchenko , Lech Perczak , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Thomas Gleixner , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: [PATCH v3 0/3] add support for EXAR XR20M1172 UART Date: Thu, 18 Apr 2024 20:06:04 +0300 Message-Id: <20240418170610.759838-1-rilian.la.te@ya.ru> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Konstantin Pugin EXAR XR20M1172 UART is mostly SC16IS762-compatible, but it has additional register which can change UART multiplier to 4x and 8x, similar to UPF_MAGIC_MULTIPLIER does. So, I used this flag to guard access to its specific DLD register. It seems than other EXAR SPI UART modules also have this register, but I tested only XR20M1172. Yes, in datasheet this register is called "DLD - Divisor Fractional" or "DLD - Divisor Fractional Register", calling depends on datasheet version. Changes in v2: - use full name in git authorship Changes in v3: - change formatting of commit messages to unify width - rework commit messages according to code review - add XR20M117X namespace for EXAR-specific register - do not use UPF_MAGIC_MULTIPLIER for checking EXAR chip, use s->devtype directly - replace while loop to fls function and expanded check - sort compatibles - reformat multiline comment. Konstantin Pugin (3): serial: sc16is7xx: announce support of SER_RS485_RTS_ON_SEND dt-bindings: sc16is7xx: Add compatible line for XR20M1172 UART serial: sc16is7xx: add support for EXAR XR20M1172 UART .../bindings/serial/nxp,sc16is7xx.yaml | 1 + drivers/tty/serial/sc16is7xx.c | 57 +++++++++++++++++-- 2 files changed, 53 insertions(+), 5 deletions(-) -- 2.34.1