Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp992974rdg; Fri, 13 Oct 2023 07:18:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHsAjpBi4ssLSLAJ94h1MyKKs1oQ2+FqlyTWGliNIIFmsiX1TLD3arpS5PqKcJ2PUeezIAL X-Received: by 2002:a05:6a20:441d:b0:153:353e:5e39 with SMTP id ce29-20020a056a20441d00b00153353e5e39mr31986856pzb.51.1697206721834; Fri, 13 Oct 2023 07:18:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697206721; cv=none; d=google.com; s=arc-20160816; b=lTQ7CHAr0xnGnXB+Vo1nfsq2ICbWaMgWnYXyE6/Fd/khVawNKqeehuXwPBu30pMbrY Lh/wr/RdPkSglHR+5P1ze8lRYnZu9+DOmQUQc9PI9qxeKarlQTFGIZxe01PMSnYXGmdC 0/u3mLtyh78xIok6MMFlYUKX7lwksDfzsZyEpleHK58MWxO2z01ACdIAaU/B2iLHuPhX Ae0bDYE/p7RwO2IF3AdAHifsbPd4Sfb8Dz5PRktrJKC0UGRcJtKDv6RDbqvpsQ6ZjSP8 +h07JAJ1PLnIshNGmRdpEouZQtmlinViO3rl44X9oZGVyYod7U5sjh2tS5nVE5GRdzoc KO+w== 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; bh=HPd5fv0hVWwxKT/C0R4CUUe47AKhFbW/BHGeFdYUt7c=; fh=2buEcg5c3S58BvcJ6+rCIwnSBwfHiiV4u0IlZjL8eMU=; b=uC6AqMj6PknB8uMSkYN/T8tbAoR3sDG/8eSRIrr9Mj90InwIJf9ZOxww38uhtR/wP1 R+bjo1ZONToeykaocWfWJMfkhBlH2zmWxSoqzeh+TmGAk9fnJxy+/u7cApuKX9WhyDiQ DnjgiXU3UBaAfxH1S9iUIO8HV5xuYOeNMEDwL4VwudUSv1eYF02+fmESksAnlc+CbzMA yQ/nMN5FKjQfOzGn+1hXYF+xpfwVZVcF7k4uUNGUpRsMIlpaH+0CvplZe1J6FAdvYHgT wvNLHDMXlstklQsQFwr3nE3+K80Y+jYIVmFiDxm8OCBt+GVGObkFRKCEhJ3QoEjvl1DN xT7w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id y10-20020a17090322ca00b001c5f5153e41si4548744plg.535.2023.10.13.07.18.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 07:18:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 3951A823579A; Fri, 13 Oct 2023 07:18:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232037AbjJMOSX (ORCPT + 99 others); Fri, 13 Oct 2023 10:18:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232024AbjJMOSV (ORCPT ); Fri, 13 Oct 2023 10:18:21 -0400 Received: from mail-oo1-f48.google.com (mail-oo1-f48.google.com [209.85.161.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB87CBD; Fri, 13 Oct 2023 07:18:20 -0700 (PDT) Received: by mail-oo1-f48.google.com with SMTP id 006d021491bc7-57b811a6ce8so1082944eaf.3; Fri, 13 Oct 2023 07:18:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697206700; x=1697811500; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HPd5fv0hVWwxKT/C0R4CUUe47AKhFbW/BHGeFdYUt7c=; b=Z3uzYBkRU0Monn0GM8NJl6OK8ihPq7qW6gzzs2QVUzQZ7BydIDdJwTAhvv3AF9dDLJ kviVIgUTioY3ENsS7i8hu3Tgtn0vHgUck6aL35fzMWg1L/RbilwbzDR63TXaZzkQPcV8 Jc0d5lSKWjVjPLa0cAGzdsQAguF9UHh/hHtbniKA5JcrvZUedrJXEZhZ32xkeXaICnAC ViEBRuy3QuPUB+Rz4RPOa+wMeHDK+gdupTw2RX+MvCoHgn1T/sRJdcxgYxrTCyGZdzvf qYcABHOAqcAQBg7A0Qz/9oo7AVtPEhEnJe2tDZQbOoL4jJKKlYbH3dgnFjzr7lJpOfJY t2og== X-Gm-Message-State: AOJu0YzXLFeWAvIRLgOdvWnfAmhU5QQM/pLJ+e0h6zRnn6lKeTyMFUHB cBQfV+ShxgE4N/5kLOBYjQ== X-Received: by 2002:a05:6871:5288:b0:1e9:ccec:645a with SMTP id hu8-20020a056871528800b001e9ccec645amr3696691oac.44.1697206699939; Fri, 13 Oct 2023 07:18:19 -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 dy40-20020a056870c7a800b001e1754b9fc1sm653219oab.24.2023.10.13.07.18.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 07:18:19 -0700 (PDT) Received: (nullmailer pid 3802821 invoked by uid 1000); Fri, 13 Oct 2023 14:18:17 -0000 Date: Fri, 13 Oct 2023 09:18:17 -0500 From: Rob Herring To: Linus Walleij Cc: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , 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: <20231013141817.GB3793553-robh@kernel.org> 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=-1.0 required=5.0 tests=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 groat.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 (groat.vger.email [0.0.0.0]); Fri, 13 Oct 2023 07:18:39 -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. Exactly. > > > > + '#interrupt-cells': > > > + description: The internal interrupt controller only supports triggering > > > + 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 ignored. > > > + 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. Either way is fine. If users are already doing 2 cells, then I'd probably just keep that and state that the flags cell is ignored/unused. Rob