Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp910087pxf; Thu, 1 Apr 2021 17:48:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqMlxL7puYRM1scayI7cg6afAdkXJc0Rrqz3i6gWwB961/CQ31fd03ZzScDXdOwd+LYQeJ X-Received: by 2002:a92:7d11:: with SMTP id y17mr8989954ilc.93.1617324483729; Thu, 01 Apr 2021 17:48:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617324483; cv=none; d=google.com; s=arc-20160816; b=WBAE8Bmjsj1cg2YBxtLUUgm8h4wEvhdy2h7gljdDC4LB0FtCzTC9strz/+C+wfJKGX gnbABR72uWm3O6eIYJ3pmzXW/AQEz8QsXDTpbYWzlEY1fB5SGZDUdoF4ZpM5G6MokpcJ AKv21IfZh+D+rc3ZRn64wUhsf6pKxHvmMWIJxvI/KheQF/3/9BqjgZsO3OJwnnZ/KccR C2+NuXYMFazfKddKKnlqICV/7oEtTjvUjSdtRrZoAAkOx3jd5eC0wJ09FUsb8KEaBAKL vZ8ycLl7nU2zGEesGYc3TIncu+SCM0FlK/rsV1OQUrdgBy9D1udoudgF0loQLW9JUqZO dTlg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=PYdZ582Vtu5uaxo3rYLZYV0ksOW+VIQtUyPSDHJWw9U=; b=xBYKDU6owuxwKBoj+bAqjekigdV+vrh8QXhlropEcNaaYCePoFkWZlqinALqidCJVV X/o7RBzSceK70+BzfOaSqVa+PXQ7T11QRkLaLyw7fI1Df/cpR6xemG0SmVm4PlKAjPNx JGiMsshRcspMt/LH8jgbzDoXJMhh7qBaSeb1It4TDK+midmCEufFm0/mhofr84iC3nj0 Oz/SM+fkFwaJ8nSisgvjt9c52csK6OQeyPQFNdWcnyWOsciv9NtaZvaD/1Wqb9AMWjM4 mJ+vok9e8wFGT8OVf3s7DKS6FqGyZsMoN1KfYfiMmDd+N6wNPwT5iQqmlYhVsXRIz9Fy gv7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b=R8mzpnKt; 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=NONE dis=NONE) header.from=bewilderbeest.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y6si6846528ill.40.2021.04.01.17.47.49; Thu, 01 Apr 2021 17:48:03 -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=@bewilderbeest.net header.s=thorn header.b=R8mzpnKt; 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=NONE dis=NONE) header.from=bewilderbeest.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233786AbhDBAra (ORCPT + 99 others); Thu, 1 Apr 2021 20:47:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231168AbhDBAr3 (ORCPT ); Thu, 1 Apr 2021 20:47:29 -0400 Received: from thorn.bewilderbeest.net (thorn.bewilderbeest.net [IPv6:2605:2700:0:5::4713:9cab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6B3AC0613E6 for ; Thu, 1 Apr 2021 17:47:27 -0700 (PDT) Received: from hatter.bewilderbeest.net (unknown [IPv6:2600:6c44:7f:ba20::7c6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: zev) by thorn.bewilderbeest.net (Postfix) with ESMTPSA id DBD03198; Thu, 1 Apr 2021 17:47:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bewilderbeest.net; s=thorn; t=1617324447; bh=PYdZ582Vtu5uaxo3rYLZYV0ksOW+VIQtUyPSDHJWw9U=; h=From:To:Cc:Subject:Date:From; b=R8mzpnKtfiG/wHUiNQeVX2pglbX/y08wf2vydxHOQi10L4Vi8OIsV7MeoXl4Zixq2 zOErFABuz7GOOm0qwYV6z+eZUB5tgd7pFQL6nnb61bPrPPxOw5Yei6/irsSmVovlBf FM2KyMsYZ3PQBPf+l7m5bEk43slB7Y4ZWNADcG2s= From: Zev Weiss To: Joel Stanley Cc: openbmc@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, Andrew Jeffery , Zev Weiss Subject: [PATCH v3 0/4] aspeed-vuart: generalized DT properties Date: Thu, 1 Apr 2021 19:47:12 -0500 Message-Id: <20210402004716.15961-1-zev@bewilderbeest.net> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series generalizes the aspeed-vuart driver's device tree properties to cover all the attributes it currently exposes via sysfs. The aspeed,sirq-polarity-sense property was a bit of a design mistake in that it ties Aspeed VUART SIRQ polarity to SCU register bits that aren't really inherently related to it; the first patch in this series deprecates it (though we hope to eventually remove it). The rest of the series adds two new properties, aspeed,lpc-address and aspeed,sirq. The latter allows describing the SIRQ polarity (along with the interrupt number) directly, providing a simpler replacement for aspeed,sirq-polarity-sense. Changes since v2 [0]: - expanded to also handle sirq number and lpc address in addition to sirq polarity - added default settings if DT properties not specified - refactored existing sysfs code slightly, adding range checks - cleaned up 'make dt_binding_check' warnings Changes since v1 [1]: - deprecate and retain aspeed,sirq-polarity-sense instead of removing it - drop e3c246d4i dts addition from this series [0] https://lore.kernel.org/openbmc/20210401005702.28271-1-zev@bewilderbeest.net/ [1] https://lore.kernel.org/openbmc/20210330002338.335-1-zev@bewilderbeest.net/ Zev Weiss (4): dt-bindings: serial: 8250: deprecate aspeed,sirq-polarity-sense drivers/tty/serial/8250: refactor sirq and lpc address setting code drivers/tty/serial/8250: add aspeed,lpc-address and aspeed,sirq DT properties dt-bindings: serial: 8250: add aspeed,lpc-address and aspeed,sirq .../devicetree/bindings/serial/8250.yaml | 28 +++++- drivers/tty/serial/8250/8250_aspeed_vuart.c | 95 +++++++++++++++---- 2 files changed, 103 insertions(+), 20 deletions(-) -- 2.31.1