Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1046037rdg; Fri, 13 Oct 2023 08:41:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGDIyrTJSvervLA0ZfOrH12Nbu5fOwAymKrxCl7734g64OqvpjriI5SwHQjdpN9s/zmACrD X-Received: by 2002:a05:6a00:280f:b0:68f:a92a:8509 with SMTP id bl15-20020a056a00280f00b0068fa92a8509mr580798pfb.7.1697211689524; Fri, 13 Oct 2023 08:41:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697211689; cv=none; d=google.com; s=arc-20160816; b=ixVqLysuG8yC5wCdrhQ8ajGVudrLZ+5FrfkLBZ/UfQ6AZd4DE7IWAdkBoRfWLK5pYV NYFr2J9qo5wH1E7aSh+u8uC637FhyRlHP5wa91BvuZbVMTxKT1x3Tm6r2KplRN0H5wp2 xFaAqUr+PZ7AMvLEyTjFW4ttic/gN0T0uTR1X//H98zCUw0nxs2gpHPSt8iU4ohchu3O ITbYhYAc9NxFHorKfXGl9QmoBH7SErcWHrrPsVH9Iorlq56w6cY3HK3fjQfTjOOpFC+S p6hWCS3ncflihZsuArqyzefOKwsln4nrm0RxtwqlxlST3Jfpt41tJa3OOFoixQyp2FJJ vC+A== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=AfBFoBaUMyUga0dX/cinZPk6S2n8duwEaG/WLcvim9s=; fh=v4rhVmxRB1ysXB5NFItJFAO75AJhQiOH344WFaLSz+A=; b=DRDY9HLM4J6AJzC+qMpuFJz3AWEw7HItWpEPbAvutiE9T/ncM8sWxPEhz08kB5Y9og p9B84lJzkLavluuIePTcYORosVHhZza/qec36u+MPkCA9ECqaoOtsGJGB+fhYBp6WVIT 9KyjyBgcdlB+xp7xVzLJVwJ+CiMxiFn/5hWZkMLvHeUhFxQh32RPi+L90kkua/02gLNn 6vkNgNuicK6qde0czcgjCOaEs9dlO9DWBGeE3XQD43EmWSUUnEcieKF5rKq4at7e612b VbtT1bhEeVQdJzcfqlJu8PZlMRZYYaOhxR3TqklQlWtIvn3MvYAv4+/YOwwVntZsrG3K RZhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=51TazhTg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id n15-20020a63ee4f000000b0059b85f72144si4921929pgk.372.2023.10.13.08.41.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 08:41:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=51TazhTg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 5DD9880ACEC2; Fri, 13 Oct 2023 08:41:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232429AbjJMPk6 (ORCPT + 99 others); Fri, 13 Oct 2023 11:40:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232270AbjJMPk4 (ORCPT ); Fri, 13 Oct 2023 11:40:56 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBA7BB7; Fri, 13 Oct 2023 08:40:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Disposition: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:From: Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Content-Disposition: In-Reply-To:References; bh=AfBFoBaUMyUga0dX/cinZPk6S2n8duwEaG/WLcvim9s=; b=51 TazhTgjAYk9QxOl2q//WchftDn7G9zs/Aw6T9S6HyofI/H6dnmz2lkFOQYo3xq0VMKxpDKQBeFMBS 8yh6vhKZqp/9UU8NcRuVD4ATjUuXiEqUoB7iOTrfXkhdGucviCJYYf7ehzFXfce4BviInU9nn/G+C 7BZCI5ODGUDWvHk=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qrKHB-0026de-TM; Fri, 13 Oct 2023 17:40:33 +0200 Date: Fri, 13 Oct 2023 17:40:33 +0200 From: Andrew Lunn To: Linus Walleij Cc: Gregory Clement , Sebastian Hesselbarth , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Russell King , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Christian Marangi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH 2/3] RFC: dt-bindings: marvell: Rewrite in schema Message-ID: <7dd3839a-73da-4fa2-8f0f-e9384a2f0541@lunn.ch> References: <20231013-marvell-88e6152-wan-led-v1-0-0712ba99857c@linaro.org> <20231013-marvell-88e6152-wan-led-v1-2-0712ba99857c@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 13 Oct 2023 08:41:11 -0700 (PDT) On Fri, Oct 13, 2023 at 03:04:10PM +0200, Linus Walleij wrote: > Hi Andrew, > > thanks for reviewing! > > On Fri, Oct 13, 2023 at 2:43 PM Andrew Lunn wrote: > > > > +properties: > > > + compatible: > > > + oneOf: > > > + - enum: > > > + - marvell,mv88e6060 > > > > The 6060 is a separate driver. Its not part of mv88e6xxx. So it should > > have a binding document of its own. > > It really doesn't matter to the DT bindings. > It is not the job of DT to reflect the state of Linux. > > In another operating system they might all be the same driver. > Or all four variants have their own driver. > > If the hardware is distinctly different so a lot of the properties > are unique then it may be warranted with a separate DT > binding, for the sake of keeping bindings simpler and > coherent. What i want to avoid is giving the impression that the mv88e6060 implements something when in fact it does not. That device does not have the interrupt controller, so all the interrupt properties are invalid for it. The hardware does not allow access to the EEPROM, so the EEPROM length property is not valid, etc. If you do want to make it part of the binding, it would be good to add constraints based on the compatible to indicate which properties are actually valid for the hardware. The 88e6060 actually has an open datasheet. https://www.insidegadgets.com/wp-content/uploads/2014/07/88E6060.pdf Andrew