From patchwork Fri Apr 2 00:47:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zev Weiss X-Patchwork-Id: 12180089 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5C126C433ED for ; Fri, 2 Apr 2021 00:49:42 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F0CBC61104 for ; Fri, 2 Apr 2021 00:49:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F0CBC61104 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=bewilderbeest.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References:List-Owner; bh=5FyTCxBODEYwQy93KW70KlwAL11PNXVKy/2d3lSRdlw=; b=ny7iUi9QqCQ7xL3GjLY9j0N2BA VsPMRKd5b7cV4eZz5mV48Z5emd3VxwTfdOl7UxGvnKWyb59oEEmLI8j5pB4Zm5sj0FXG4Gx80Tq52 CJ+ApboGR/YJ3A4q4+dvosfPqp7VN7LeNRGO9eTIJF36D1FFD5f3xdnTAanLTonqljycKrCawfyDX mFfx3Nz8+3KT43mJrm+u1YiTDO+3Z1I2hGE+X8OFQDnnJdyU0yuLwFfv3KEJencV28TgJAgi9MKFx TnJcpM/RP/xzbOihnQeQz+eDBqOPDJ+gVa6XB0fLN8uVQrjYZ0R5fu63C8rANQSaE0vUSIrrb/oCF QvHRlwNg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lS7yV-00BXUs-MR; Fri, 02 Apr 2021 00:47:47 +0000 Received: from thorn.bewilderbeest.net ([71.19.156.171]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lS7yH-00BXBP-Sr for linux-arm-kernel@lists.infradead.org; Fri, 02 Apr 2021 00:47:36 +0000 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210402_014734_293256_F84A58CA X-CRM114-Status: UNSURE ( 8.91 ) 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 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(-)