Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp927155pxf; Thu, 1 Apr 2021 18:22:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyazJV6odD50wyC4sVG8eam1Fz2zxpanqxeOY/LtUg6ma2hmDqjfwk5aW0FNZeqop7YhjEB X-Received: by 2002:a17:907:d1f:: with SMTP id gn31mr11840965ejc.536.1617326521059; Thu, 01 Apr 2021 18:22:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617326521; cv=none; d=google.com; s=arc-20160816; b=NVFmCxmMYp+uRn3v2xxVqen136fwlXpfsc6b9cHalQ5upLqRWm+iIgsgb9QjXa8THx LdT+s93ovgppaKnExq4q/13bGYwZi/Q2/Q8pCVEq9kjIzm5IpQq4WRkKrnZpX8HfG1+O 6+JrcZf/AT/DHr3q7Q0aIHqgSKwHKSXwk139O5jrXEeicM7JO5wRWGNQvst2+fuFezd2 T4CaFgtKIvKbfxZjpuB/YI8Ixe14Ds0owmyffONkhnqkiMioEgFBBI3xn9PZNu53hJ+b RjLUGSUZhrFlDPBvFz+mtEdydk/wQOrsB38jPj5qjbgnxkfDGN+WAMt2DVHDAp8UCXiT TT5g== 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=G8rBZRZvYmpd8o2JnBLz+E9kxXF/0mTp2nuOMD0ePt4=; b=QS5EHNTiZ2uIj01CjY7AiRsAi6afmNn1k0iIrdj4kXkjcUQ09/f1R7VfuQNJCHGdlB ittZz0Ma01Rsf8qPgG2KcoXuaABkew9692bNtWdkrD1CXGIG1xKU8DjNC0mKsqTYB6bf QGxtSulD7la+Y+OCGXJsJfmYK3BqLHkCvJSikbQORIlItuoRr9ozI/agdHvitI6OlZNM Y7oW9u7499tvGdWf02FiVMZrqAvDLzzn+XVMtoNHMLiIZcpGY/ZW2Hcb+DwtQNKYG/sN x0Sss1SexxyIh6JBYurspAgJIAa1jFamYe0PILXXMuH3+MPcbR0noPZEoJtysKuvVYzT gIng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b=HfKFGPOy; 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 y22si5317114edc.181.2021.04.01.18.21.37; Thu, 01 Apr 2021 18:22:01 -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=HfKFGPOy; 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 S234264AbhDBBTv (ORCPT + 99 others); Thu, 1 Apr 2021 21:19:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233786AbhDBBTu (ORCPT ); Thu, 1 Apr 2021 21:19:50 -0400 Received: from thorn.bewilderbeest.net (thorn.bewilderbeest.net [IPv6:2605:2700:0:5::4713:9cab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B23BC0613E6; Thu, 1 Apr 2021 18:19:50 -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 077D4198; Thu, 1 Apr 2021 18:19:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bewilderbeest.net; s=thorn; t=1617326389; bh=G8rBZRZvYmpd8o2JnBLz+E9kxXF/0mTp2nuOMD0ePt4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HfKFGPOy/jqFi/BvkNmXkrnBaEFVbosfT3gvTTCGAShQzSfVHKvS8LGi909Oo6cjT DjdjMlrA7IeRZLDE0t4Xq0nZrycHq1uarkkOLR+Z213w1EOBcqy1QseADj3NDeigjE DnygHZ1rUPTyHGMr6FPzHpWt9aM8ljyDbZuG9XjQ= Date: Thu, 1 Apr 2021 20:19:47 -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 v3 4/4] dt-bindings: serial: 8250: add aspeed,lpc-address and aspeed,sirq Message-ID: References: <20210402004716.15961-1-zev@bewilderbeest.net> <20210402004716.15961-5-zev@bewilderbeest.net> <639f957f-a0d7-4a06-8598-90da0e17820b@beta.fastmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <639f957f-a0d7-4a06-8598-90da0e17820b@beta.fastmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 01, 2021 at 08:14:39PM CDT, Andrew Jeffery wrote: > > >On Fri, 2 Apr 2021, at 11:17, Zev Weiss wrote: >> These correspond to the existing lpc_address, sirq, and sirq_polarity >> sysfs attributes; the second element of aspeed,sirq provides a >> replacement for the deprecated aspeed,sirq-polarity-sense property. >> >> Signed-off-by: Zev Weiss >> --- >> .../devicetree/bindings/serial/8250.yaml | 27 ++++++++++++++++--- >> 1 file changed, 24 insertions(+), 3 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/serial/8250.yaml >> b/Documentation/devicetree/bindings/serial/8250.yaml >> index 491b9297432d..a6e01f9b745f 100644 >> --- a/Documentation/devicetree/bindings/serial/8250.yaml >> +++ b/Documentation/devicetree/bindings/serial/8250.yaml >> @@ -12,8 +12,13 @@ maintainers: >> allOf: >> - $ref: /schemas/serial.yaml# >> - if: >> - required: >> - - aspeed,sirq-polarity-sense >> + anyOf: >> + - required: >> + - aspeed,lpc-address > >Why not aspeed,lpc-io-reg like the KCS binding? > >There are some things we can do to improve it, but we shouldn't go and invent something different. I prefer aspeed,lpc-io-reg because it's name derives from the generic 'reg' property as does it's behaviour (if you assume a related `#size-cells = 0`). > >> + - required: >> + - aspeed,sirq > >Why not aspeed,lpc-interrupts like the KCS binding? > >The generic IRQ property is 'interrupts', so like aspeed,lpc-io-reg the interrupts proposal for KCS follows in name and form. I'm hiding it behind the aspeed vendor prefix for now while I'm not satisfied that I understand the requirements of non-aspeed parts. Similarly, I added the lpc prefix because we don't tend to describe the host devicetree in the BMC devicetree (and so there's no parent interrupt controller that we can reference via a phandle) and we need a way to differentiate from the local interrupts property. > >I don't see a reason for either of them to differ from what we already have for KCS, and I don't see any reason to continue the sysfs naming scheme in the binding. > Ah, OK -- I was aiming for consistency with the existing vuart sysfs attributes, but if that's not a worthwhile concern I'm fine with aspeed,lpc-io-reg & aspeed,lpc-interrupts. Zev