Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp208634pxf; Wed, 31 Mar 2021 22:01:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTi/2ENn2qKM2Pg9hYDApDxElEqRlv632VrYosIi6l4SZVwY4yd9mznzK2o5UW9u7QQwA2 X-Received: by 2002:a50:fe81:: with SMTP id d1mr7930342edt.308.1617253271408; Wed, 31 Mar 2021 22:01:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617253271; cv=none; d=google.com; s=arc-20160816; b=Eimj/GLKKF5bRoJswfC0buMFvmmbEZbTfkAMfCT4aEh2bYFrVQS/FeEgAbo+0QeFs0 kkZtUf2aaVwsCX6fY+2yaO9H5eXLRL19BwdyW33GyexRcHi4cE0hrEJf9clLJiuTTWp0 z1sTizEewMBfn+whEc9PCng/mBltZ/0ff00g64rp7HGMp7QFihBqu0fdHo7zdWKKMk8q EsZquVr+b8K0Sk/zB6N4b1jo3jouAgTmUGxxVEWPMtv1RGSnoXmYSSTER6X1rafoBbyK a07CQ+TKcpDGVsK/QXMiRGAseS8dmaC997RiwCrFNu6cSvD3viL2cclwAfxVdd2ksDtY oDCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/OFrumQsIOz4iJCnXsvYbRHkqc1dbRe2/tQBo/d/ldk=; b=iTTwXr3uJopN2YwWx+kj7VHKCYN8mYtDF48bEKwsr6Bbf4wSovm7DNZwTodM5sMSPn SVGWvMPwgTQWDjVuDYvfbOENGqQbNiu1d6NzO7vdvI6v+ZxX51mAdLNzaqHXZIam06gS MTVMCtQbuAPA3I4arYfbgKJzL+NH+MxdbJ5ZElnNklqp9niFGXILXQYP/AoHn03QyW5V QhB656T4UaYVIxYWdd3U3AxxNGLKcX0IEVDocTTkax/HkTLZ4rYCa5Cd1CgF6SMPygjZ doeH90hO8EssYV42usZZfEfRIvepOdf+U314XrVPP3zvrMU/y45bD93TL1J8k/zdM0xx N8uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b=KqKIFjoQ; 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 n16si3480340edo.395.2021.03.31.22.00.49; Wed, 31 Mar 2021 22:01:11 -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=KqKIFjoQ; 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 S232672AbhDAE53 (ORCPT + 99 others); Thu, 1 Apr 2021 00:57:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232491AbhDAE5T (ORCPT ); Thu, 1 Apr 2021 00:57:19 -0400 Received: from thorn.bewilderbeest.net (thorn.bewilderbeest.net [IPv6:2605:2700:0:5::4713:9cab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17E83C0613E6; Wed, 31 Mar 2021 21:57:19 -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 EDFBF6F; Wed, 31 Mar 2021 21:57:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bewilderbeest.net; s=thorn; t=1617253038; bh=/OFrumQsIOz4iJCnXsvYbRHkqc1dbRe2/tQBo/d/ldk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KqKIFjoQeMd0usXeCOewSZVXGqKTaqxtdO2A065RaVsCHjr1ulhCW6cC1/2FEXt1D 69deZT8CjP6UHfihlRbLw2aAt/sMx4M9AsG/OC0Ek/DDuK2h860pIPpdRlPI9qKxjg oSrrcgzqgDZiFNcAH82msjTMpyIZSaEMKyE92tpo= Date: Wed, 31 Mar 2021 23:57:16 -0500 From: Zev Weiss To: Andrew Jeffery Cc: Joel Stanley , openbmc@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Rob Herring , Lubomir Rintel , - , linux-serial@vger.kernel.org Subject: Re: [PATCH v2 3/3] dt-bindings: serial: 8250: add aspeed,sirq-active-high Message-ID: References: <20210401005702.28271-1-zev@bewilderbeest.net> <20210401005702.28271-4-zev@bewilderbeest.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 31, 2021 at 11:04:44PM CDT, Andrew Jeffery wrote: > > >On Thu, 1 Apr 2021, at 11:27, Zev Weiss wrote: >> This provides a simpler, more direct alternative to the deprecated >> aspeed,sirq-polarity-sense property for indicating the polarity of >> the Aspeed VUART's SIRQ line. >> >> Signed-off-by: Zev Weiss >> --- >> Documentation/devicetree/bindings/serial/8250.yaml | 13 ++++++++++--- >> 1 file changed, 10 insertions(+), 3 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/serial/8250.yaml >> b/Documentation/devicetree/bindings/serial/8250.yaml >> index 491b9297432d..e79bb6ab9d2c 100644 >> --- a/Documentation/devicetree/bindings/serial/8250.yaml >> +++ b/Documentation/devicetree/bindings/serial/8250.yaml >> @@ -12,8 +12,9 @@ maintainers: >> allOf: >> - $ref: /schemas/serial.yaml# >> - if: >> - required: >> - - aspeed,sirq-polarity-sense >> + anyOf: >> + - required: [ aspeed,sirq-active-high ] > >Do you think we could make use of the approach I put forward here? > >https://lore.kernel.org/openbmc/20210319062752.145730-18-andrew@aj.id.au/T/#u > >Andrew If you mean using a u32 property (say aspeed,sirq-polarity) with an explicit IRQ_TYPE_LEVEL_{LOW,HIGH} instead of a present/absent bool, sure, I guess that seems like a somewhat clearer, more orthogonal arrangement. Zev