Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp7857pxf; Wed, 7 Apr 2021 18:19:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymqBb6i58SU7GNGsjiizDwKc9wKyfyKed1YlqT9btE/XBRe5nDLOFIUTgOIRHoGW1Etj7/ X-Received: by 2002:a17:906:8a7a:: with SMTP id hy26mr4288237ejc.509.1617844754113; Wed, 07 Apr 2021 18:19:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617844754; cv=none; d=google.com; s=arc-20160816; b=KcAaE0emPTwbaNSlZsIHCV5pxVoVXHmgxt8V0AwJLDrC7K2kJa88CaqYUVmCf8Kwuq pqMEKAK7RqBmzfw87yyg6cVsVyfBr5MbGSL76djJnWfYH8bQNntDFind5vg55Vqg7nFb RpYjI84glSpADtimgwnDp4pFz2dgxykzYzI8fdMYXtAjkh1VEtlKTd+iEZqNtAi2Dk1A brmevEhXeYKvABuELDVVHfp3eviJm8gWutZNpEsvN0547uvrUXKyw/DkmrDevFK0oYVf cXXHi5sVbcsdNsn3a4VWhxf/vI5gIbTIumM20xJ08yALlI/N894eE3jWs7WPS4rlCfij M4sg== 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=lv6dSEb+gNqLacuzTAbQWm1YjEzPaAvYLlGcphHDA3k=; b=0sSxIcfFH4Jx2k5Le/Cc02qTVGS2RfvdeBLIN77b+g3egV+HhuWQbnhLcPm11nwsv/ ug5CHDEJksuOeKZwNcLjajE3IaHQJGpqVVg4UEJiMLD46j+MVQntrRuLNxP3eQWCpT1l cZe/ZLzb6XGRgsUZzEq9KzlLQofKxaZFrvPTNSHi0eGv4rdSB61LQDHPCorSDdwNEbDZ 1MWYabPPB0vSUKWeAniW8Y5pDGVvLj2XVxI7bQQyBF388NTblO99R2u6HbcGjkhgRoqH QcmVNnSEKKtwrh2mVQ7vTYEdU935189vASDZ4FlkEHcK2EUPLfFhu/Etz4Ze66+SjBrp Udpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b=DGlDwafZ; 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 de37si12466001ejc.603.2021.04.07.18.18.34; Wed, 07 Apr 2021 18:19:14 -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=DGlDwafZ; 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 S229937AbhDHBRE (ORCPT + 99 others); Wed, 7 Apr 2021 21:17:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbhDHBRE (ORCPT ); Wed, 7 Apr 2021 21:17:04 -0400 Received: from thorn.bewilderbeest.net (thorn.bewilderbeest.net [IPv6:2605:2700:0:5::4713:9cab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2D28C061760; Wed, 7 Apr 2021 18:16:53 -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 F0C771D2; Wed, 7 Apr 2021 18:16:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bewilderbeest.net; s=thorn; t=1617844613; bh=lv6dSEb+gNqLacuzTAbQWm1YjEzPaAvYLlGcphHDA3k=; h=From:To:Cc:Subject:Date:From; b=DGlDwafZ5MxolFOE2tuY5dRV5FzRzQaaYgCG2/Hi3cvLqiORHuqevUJmg7GDA7pT3 QH0kiX6th506pOFNtJKepeOkKFvwcQCNMsD2IrLzA5m2C8oecqigTOj8/E3/RtzmzA D0MP9AhBgc83ARz3Vtgcj5OGuEUh29s9zVdDW1TA= 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 , Greg Kroah-Hartman , Jiri Slaby , Lubomir Rintel , Rob Herring , devicetree@vger.kernel.org, linux-serial@vger.kernel.org Subject: [PATCH v5 0/4] serial: 8250_aspeed_vuart: generalized DT properties Date: Wed, 7 Apr 2021 20:16:33 -0500 Message-Id: <20210408011637.5361-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-io-reg and aspeed,lpc-interrupts. The latter allows describing the SIRQ polarity (along with the interrupt number) directly, providing a simpler replacement for aspeed,sirq-polarity-sense. Changes since v4 [3]: - fixed commit reference formatting in commit message Changes since v3 [2]: - renamed properties to match aspeed,ast2400-kcs-bmc 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/ [2] https://lore.kernel.org/openbmc/20210402004716.15961-1-zev@bewilderbeest.net/ [3] https://lore.kernel.org/openbmc/20210402182724.20848-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-io-reg and aspeed,lpc-interrupts DT properties dt-bindings: serial: 8250: add aspeed,lpc-io-reg and aspeed,lpc-interrupts .../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