From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 76B01C433EF for ; Wed, 6 Apr 2022 14:22:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=gDKABOeGGajOYGtpDHb0zzD9JOKW+zfKlLKwGFJDDu8=; b=xdWunmr5BZSc6Q s+UBmLkdpmRVshXsB4zHh/+rx6gCBblY7DJSVt4nvHW3bmz/Hft2cQQv8p8ep9f5F08FNIIx1RXIW JCFaaaDfvvq7Iw45VxtXyBiJvbsYBGdRiUa1KkT8W4R3DWUu1ed0WKfqv/uThuspQIb5WpiY6YIwD cX0Ovvnhw6WsuImwjSstPc64ypmzN5EmgJjdwqBN9qoN7IAv6thdVszTUai/NG7q+VZAvWPitwZ90 dRfM0DzMpckZ5NZXxV5HH+SgZQgs0+QeU8kH+8Qsghbiy6o6ZUwEmndgSUXYdri/fo3VHqOdP5Fif LmbM6ETU6kbYMcNCjRlg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nc6X4-006T7p-PV; Wed, 06 Apr 2022 14:21:14 +0000 Received: from mail-oa1-f52.google.com ([209.85.160.52]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nc6X1-006T6T-Fk for linux-arm-kernel@lists.infradead.org; Wed, 06 Apr 2022 14:21:13 +0000 Received: by mail-oa1-f52.google.com with SMTP id 586e51a60fabf-dacc470e03so3041513fac.5 for ; Wed, 06 Apr 2022 07:21:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ymW19zUY7oY1JfREVvUkLaLO/tdDA37oLJ1DxforImQ=; b=tehHmugllcmKjxKseEqQtzPAkPrm3quTi7I3zaK6KiLzmZ5e1gZUm5q/TwAqlr9imu sUO0ZkCXbCwLbrD7Si4KXsN8v/c/hyW73uGT5So/SyuHyCdrehRu/qoVzS86f6Lo4iUr dOMxRbibKqcyQ1u+7G5to1JFW6lEGX62Kcj9AkZO6+8Z93hsK3Vzx5TEmSHYQ+9uLuXx EmOfMev7PZu9TiKe0fA6NIszX1A9pvDgsUkO1IcRyo6yKkw5d6Qs33y2kWZcJqOlaErQ BlDLFqYL+//PBwTC0TuNstqNPCuQu13839Ccjsr6oEW71obLePbEU5MbN4oyeRU0HeRB QPFg== X-Gm-Message-State: AOAM530fJYeWlzfn9zSQNCteyJ8QbBm3wQa4LiCl/TdrYEJ+Bp5+K/S2 Zx10FZOKk8hjw7KJIc2/DA== X-Google-Smtp-Source: ABdhPJzyNqrep7gR9T3glPA0f7KfAeNUoXLxUF+2MeeRX/DKjskq/qPwG7ysp3IJ8gwf7j2Q5/18wQ== X-Received: by 2002:a05:6870:207:b0:db:f749:2936 with SMTP id j7-20020a056870020700b000dbf7492936mr4125176oad.274.1649254869433; Wed, 06 Apr 2022 07:21:09 -0700 (PDT) Received: from robh.at.kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id u22-20020a4ae696000000b0032158ab4ce9sm6151796oot.26.2022.04.06.07.21.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 07:21:08 -0700 (PDT) Received: (nullmailer pid 2189962 invoked by uid 1000); Wed, 06 Apr 2022 14:21:08 -0000 Date: Wed, 6 Apr 2022 09:21:08 -0500 From: Rob Herring To: Rui Miguel Silva Cc: Andre Przywara , Liviu Dudau , Sudeep Holla , Lorenzo Pieralisi , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: Re: [PATCH v3 1/3] dt-bindings: net: smsc, lan91c111 convert to schema Message-ID: References: <20220330131053.1122502-1-rui.silva@linaro.org> <20220330131053.1122502-2-rui.silva@linaro.org> <20220331164452.094a9308@donnerap.cambridge.arm.com> <20220331201146.5auaglrviyco24cr@arch-thunder> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220331201146.5auaglrviyco24cr@arch-thunder> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220406_072111_565260_508937BF X-CRM114-Status: GOOD ( 27.10 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Mar 31, 2022 at 09:11:46PM +0100, Rui Miguel Silva wrote: > Hi Andre, > Thanks for your review. > > On Thu, Mar 31, 2022 at 04:44:52PM +0100, Andre Przywara wrote: > > On Wed, 30 Mar 2022 14:10:51 +0100 > > Rui Miguel Silva wrote: > > > > Hi, > > > > > Convert the smsc lan91c9x and lan91c1xx controller device tree > > > bindings documentation to json-schema. > > > > > > Signed-off-by: Rui Miguel Silva > > > --- > > > .../bindings/net/smsc,lan91c111.yaml | 61 +++++++++++++++++++ > > > .../bindings/net/smsc-lan91c111.txt | 17 ------ > > > 2 files changed, 61 insertions(+), 17 deletions(-) > > > create mode 100644 Documentation/devicetree/bindings/net/smsc,lan91c111.yaml > > > delete mode 100644 Documentation/devicetree/bindings/net/smsc-lan91c111.txt > > > > > > diff --git a/Documentation/devicetree/bindings/net/smsc,lan91c111.yaml b/Documentation/devicetree/bindings/net/smsc,lan91c111.yaml > > > new file mode 100644 > > > index 000000000000..1730284430bc > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/net/smsc,lan91c111.yaml > > > @@ -0,0 +1,61 @@ > > > +# SPDX-License-Identifier: GPL-2.0 > > > +%YAML 1.2 > > > +--- > > > +$id: http://devicetree.org/schemas/net/smsc,lan91c111.yaml# > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > + > > > +title: Smart Mixed-Signal Connectivity (SMSC) LAN91C9x/91C1xx Controller > > > + > > > +maintainers: > > > + - Nicolas Pitre > > > + > > > +allOf: > > > + - $ref: ethernet-controller.yaml# > > > + > > > +properties: > > > + compatible: > > > + const: smsc,lan91c111 > > > + > > > + reg: > > > + maxItems: 1 > > > + > > > + interrupts: > > > + maxItems: 1 > > > + > > > + reg-shift: true > > > + > > > + reg-io-width: > > > + enum: [ 1, 2, 4 ] > > > > The old binding spoke of a possible mask, so you could have "6" here to > > signify that your hardware can do both 16 and 32-bit accesses, IIUC. > > And from quickly glancing through the Linux driver it seems to support > > this idea as well. > > So shall this be: > > minimum: 1 > > maximum: 7 > > instead? > > I see your point, but going down that rabbit hole, in the smc91x.h > which define the macros for register access, I see, IIUC: > 1. 8 or 16 bit access are mandatory (means value 4 only for > reg-io-width is not valid) > 2. All 8 and 16 bit are exclusive, so I think value 3 and 7 here > don't make sense either. > > So, possible values enum: [ 1, 2, 5, 6 ] > > let me know your thoughts on this 'reg-io-width' is a common property and treating it as a mask would be a change. We also have 0 cases of doing that in in-tree dts files. So I would keep this as it was and revisit it if and when needed. Rob _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel