Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp943933rdg; Fri, 13 Oct 2023 06:04:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFRi53P2MZd+dW0vCJMhXaisHBgc836Bkl/1qVadKzUqmcewIQSevY3aqNgPc56zwZP02a9 X-Received: by 2002:a05:6a21:35c9:b0:173:29c:3228 with SMTP id ba9-20020a056a2135c900b00173029c3228mr7628378pzc.33.1697202284340; Fri, 13 Oct 2023 06:04:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697202284; cv=none; d=google.com; s=arc-20160816; b=J79marvJaT8QxRAdXWybUJ6+WuqkDojoYErcVE/0irLovbw7x97hH6s3JUR7UefVgm EUrib0Jq9SEW3eksFGjbV4CRv7gbHP0z8Xgk/X/TfI9WTeuc8ri1FLJ9mD6mr8Jb6sE/ x6TjotekxHTeBAtYZQLbaXg8KKWXLk1Q5BbxUcyJNbJF+fjYGqskAQ64aRlEbuIeal7z SxcUKgd5SwcAaBJbrMt+y9vXb0ilbY6tKDJebtVqR/zP+VU3W6vnMm8WPpUKqMTJ2rtJ TziGVK7lR2bwV8VP9GsBav8BYDhp84gnbqYk1b2DNSSyUOIAsg4QfzwTiPlGEprIxZFI Jrcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=zTDB06WuV7DXLenpqB3BP0igc3WK0O/XPFiYBVmb3IU=; fh=u02wDYa08diHOg+44v2X06bQh9RU3ttbrD5a1vWMZ14=; b=Ao00J6MsvPf1sPHmRk4D3PoZfLegNg80PlFv/cAIIvYel7zNek8e+Et1QTUi/yDvRW o4QFtPVFlRCJR3Uo3RzIBBBXErX84t5U12Xciumffwr6mom+uaIraO7gEKM1LlOo3LiR rC8wJa/051ygX68NqrQ9Ug+ckoOSgp4IFS9Bf8F28iramZhM85Gp+P9O1ohCinSB6vvI nf3gU159JFUkGYcQ7pjadxuTx8u/TXycfmnAruT2Wz0CoYr4oNIRGbs7rtMxZ4d7yG3z XIj33PDdz1y3b2PczC+tDNwsMEf1uxeeQR+bNUzHcaRbQcIhyCzSmPmmFmFELL0Q+xFF pVyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JCy9AsMh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id 23-20020a631957000000b0056a1a149034si4499436pgz.650.2023.10.13.06.04.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 06:04:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JCy9AsMh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id AFECD8032398; Fri, 13 Oct 2023 06:04:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231898AbjJMNEb (ORCPT + 99 others); Fri, 13 Oct 2023 09:04:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231893AbjJMNE1 (ORCPT ); Fri, 13 Oct 2023 09:04:27 -0400 Received: from mail-yw1-x112b.google.com (mail-yw1-x112b.google.com [IPv6:2607:f8b0:4864:20::112b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3EEFE0 for ; Fri, 13 Oct 2023 06:04:22 -0700 (PDT) Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-5a2536adaf3so27691907b3.2 for ; Fri, 13 Oct 2023 06:04:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697202261; x=1697807061; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=zTDB06WuV7DXLenpqB3BP0igc3WK0O/XPFiYBVmb3IU=; b=JCy9AsMhCsEJpZNLPuzbxfnYI5o/ucSnolkreMMh8kvmLAYgwppmTzYB8GmjDfSAj0 2RssITkwLF3FShl5r7I0drYyO++Ea/+CmWaCD8hm/CzQmLqIUJdfKoX0rcivhPs/d+7m OWrhdZ5vfCDS99xOUscuzWm8MIlSuc36mdlpTZxeZsWB630kyvHu3T+HSu/cjVos0EYG qlQnKnvZp0aYud9mXQKivhC1EQd0On6KDEsxeifr/vy5zXrKBzC3P5rIXteujSHN/8FM /JdOdn+A/6j+5rPYWA22KxJ1AqhV858YslVI5S2Hora6ubk+34RFeqwT7A+bbLAFRe33 xh/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697202261; x=1697807061; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zTDB06WuV7DXLenpqB3BP0igc3WK0O/XPFiYBVmb3IU=; b=MQHYtXaSH0TU4epGTmRp5WaLWlkWgKaPiKx0Upv+nQ9l3eNAGMJ93UxPfVnEGcH3aq V1B7Tkk6LaUCUvqaVOIV0cFdX+okNadwi9e2QhYciQn4VkrsrYnV9xfi71AACEdwO4sO DXX2R1K+qiXMk3AXB5VElf10uzPiW2WNa3PhUgO+zaoQbEEbGCw2+VycB17889WJPc9z GLEjRwRZVLh9CXxKmgOn+3YbwTLkxXMLWKC5CnV70GVeo57q4Rc7bSKFvOj8PdbOlIAl 14Lxm2dn8lCsOOW2X/GjAP1QXyNoCONUnXSh4UdhkXGWZ6kf1iviJFivYpLl4lrMWTxp hQeA== X-Gm-Message-State: AOJu0YzcnvGxozMeaV7+EBq1f8cBQUVJIhLvYfu1bH/pPmmNcET+tUWT B8SqI4KWHQUbJ6I+o7BlQiIuGnFZbBxxgsGDCr7i2A== X-Received: by 2002:a0d:d183:0:b0:59b:5170:a0f3 with SMTP id t125-20020a0dd183000000b0059b5170a0f3mr30546187ywd.36.1697202261559; Fri, 13 Oct 2023 06:04:21 -0700 (PDT) MIME-Version: 1.0 References: <20231013-marvell-88e6152-wan-led-v1-0-0712ba99857c@linaro.org> <20231013-marvell-88e6152-wan-led-v1-2-0712ba99857c@linaro.org> In-Reply-To: From: Linus Walleij Date: Fri, 13 Oct 2023 15:04:10 +0200 Message-ID: Subject: Re: [PATCH 2/3] RFC: dt-bindings: marvell: Rewrite in schema To: Andrew Lunn 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 fry.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 (fry.vger.email [0.0.0.0]); Fri, 13 Oct 2023 06:04:40 -0700 (PDT) Hi Andrew, thanks for reviewing! On Fri, Oct 13, 2023 at 2:43=E2=80=AFPM 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. > > + '#interrupt-cells': > > + description: The internal interrupt controller only supports trigg= ering > > + on IRQ_TYPE_LEVEL_HIGH > > + # FIXME: what is this? this should be one cell should it not? > > + # the Linux mv88e6xxx driver does not implement .irq_set_type in= its irq_chip > > + # so at least in that implementation the type is flat out ignore= d. > > + const: 2 > > This interrupt controller is for the embedded PHYs. Its is hard wired > active high. Hmm.... I need feedback from the DT people here. It does have a polarity, but the polarity cannot be changed. So shall we encode this always the same polarity in the flags cell or skip it altogether? I'm uncertain. The currens scheme does reflect a reality. > > + mdio1: > > + $ref: /schemas/net/mdio.yaml# > > + unevaluatedProperties: false > > + description: Older version of mdio-external > > + deprecated: true > > + properties: > > + compatible: > > + const: marvell,mv88e6xxx-mdio-external > > The driver only looks at the compatible. It does not care what the > node is called. So you are going to need to change the driver if you > want this in the schema. Yeah, thats what patch 3/3 does :D Yours, Linus Walleij