Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2135420pxb; Wed, 9 Feb 2022 11:35:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJzIzSGKykuLk8zBuaajtVrIL/H3jh6HxyTYk5Mt56Pr8YPrA3wOAQkTeTrqZG2uqPs3t0OF X-Received: by 2002:a62:5383:: with SMTP id h125mr3983023pfb.30.1644435339970; Wed, 09 Feb 2022 11:35:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644435339; cv=none; d=google.com; s=arc-20160816; b=cxWtskWMZpgOxARJy3Gbh/YvSSR52sWvYkV9Dc5nD/UryYXVafHtwohpkJDyOr9XFi qFey18Mlzv6guifUohPkWxGNap/7/kueqjpvnIJ8dmd+77jmf9sbcZqoChG66Xw1T61R ufvbGWFdjleD7nE1D5VybAR3Rfk4SSaH99RxFW3uKCjJ+xIBf2brnk4QUILV69WNuBd4 bF9sXvifv7YYNzXLV/pgqjdeLo4hrfXvvsH/iLYWQVYkOmLrcC/wVQxI++w/wc/QnIAL GliqyULVGgbuOpKRjoxyJXjtTqf+xuASwLLiCkTfF0MKdtXUPMdbnADRDObJVYakhBd+ 35dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=++8mApk7RkWt9IYMQQmWE9VHiPI6DBwLCpnWFPssygI=; b=tP10oAd8VnCQZlG9CtN6H5QOtwdDShGVbwTqH51+ephxdsHfLxr4bcmplJHosisFQ4 VHQPvhAAw6HQoxYuDZBcSoLL2Icsu5/LbdmvOEqaq+k+5k5gHlCyDY6oXThGa2aRakey iay/Z8WajF95w8yDdld53HxNjUdjIWByfH+LRnFYfgOY1GyIIzSktvOoI9m0ouAiRGQW b8pXGxl7OdvNJl9kPmg4dmYcQ756+O1Xw5KfCs1AWITjEtDqR5eM0QlUJCEfIeUBtJFr 6hA47qb5BKgkMvKCG5Ta3Nyd2YWlwpt/hVG2DtlyfTSoyMR1Y2eytKDnt4n8Ee5t/6wG N4Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qGy++wR4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id bm10si7082301pgb.446.2022.02.09.11.35.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 11:35:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qGy++wR4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2C401C0DE7D1; Wed, 9 Feb 2022 11:35:37 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240688AbiBISrj (ORCPT + 99 others); Wed, 9 Feb 2022 13:47:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240825AbiBISpy (ORCPT ); Wed, 9 Feb 2022 13:45:54 -0500 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B368C03F938; Wed, 9 Feb 2022 10:43:27 -0800 (PST) Received: by mail-pf1-x42e.google.com with SMTP id i21so4332857pfd.13; Wed, 09 Feb 2022 10:43:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=++8mApk7RkWt9IYMQQmWE9VHiPI6DBwLCpnWFPssygI=; b=qGy++wR4TC8B3MD+skcOoU0Rz0NlIDn//t1PfiTRzziEWiC1QzxRUkyF3jiknY45eG MVQ1DwUkKDi3GRrni4fQawxf3YkxOlRs64seslgvIUD3L0SeJOyAGvrCse0s5u6wfwL6 oG5fIm+bBQ4JYQC80X97WqYBXewbVESuOD3ySzW1MD9KHJQ71miaauYI01NuBqL8sX0w AOM9pD6xeYX5HlmeErEWysd++M+ebcvTQJnfVFrBc13ZBRbCGljmQth2gKDJaW9rOyLd jN8qOtjLjM/3TQ2yST8qk0H34cgEevysDmnCEi2YjnKnvn9lQWK/Uq/Zd9lConzXy+oo /cSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=++8mApk7RkWt9IYMQQmWE9VHiPI6DBwLCpnWFPssygI=; b=NahHbVmPIsJL4R7rcRWaf2Mce3piCOgOs/P6uNW088XRkYc4uvhccdQXpSsNajrtRy 5ROjxyfuQcx8Ww7iHOWFEtvyfeTbLtdt10bTG9SW7ErwDSOSTkvameW7V9UtzWyOth4x FXcy29OI2naOiSCmxmouh4XuOgQoaHH7M8GywnPBO+pRYUI5Q0wbSV37wDECEYd/sPc4 xh3BBqhcX3e8CdmOZPmAfHTe1hnPzI5nAstXmUoUjyTUglF4XEFAVqYeILFjsULe9QE/ zoqAYjUrtsU34KaY7etvj7A2oFi/Q7kEj25ADxbz8Ex7G5/lKToJC4TgCKk/4I0Y/OJl cv6w== X-Gm-Message-State: AOAM533nkqijhXfn4m3cKwN5GDOOfGrYZDqnyRSIfJKUckaVU2Gl8boO 99PrysjkJxpVeFpB8liA4VicweWJV5gWMC4IGZ0nJ2r0K7GgOR4s X-Received: by 2002:a63:6c01:: with SMTP id h1mr2996139pgc.118.1644432206694; Wed, 09 Feb 2022 10:43:26 -0800 (PST) MIME-Version: 1.0 References: <20211228072645.32341-1-luizluca@gmail.com> <87zgn0gf3k.fsf@bang-olufsen.dk> In-Reply-To: From: Luiz Angelo Daros de Luca Date: Wed, 9 Feb 2022 15:43:15 -0300 Message-ID: Subject: Re: [PATCH] dt-bindings: net: dsa: realtek-smi: convert to YAML schema To: Andrew Lunn Cc: =?UTF-8?Q?Alvin_=C5=A0ipraga?= , Rob Herring , Linus Walleij , "devicetree@vger.kernel.org" , Arnd Bergmann , Olof Johansson , =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= , Florian Fainelli , Stephen Rothwell , Vivien Didelot , Vladimir Oltean , "David S . Miller" , Jakub Kicinski , "open list:NETWORKING DRIVERS" , open list Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > However, the linux driver today does not care about any of these > > interruptions but INT_TYPE_LINK_STATUS. So it simply multiplex only > > this the interruption to each port, in a n-cell map (n being number of > > ports). > > I don't know what to describe here as device-tree should be something > > independent of a particular OS or driver. > > You shouldn't need to know what Linux does to figure this out. The Linux driver is masquerading all those interruptions into a single "link status changed". If interrupts property is about what the HW sends to us, it is a single pin. interrupt-controller: type: object description: | This defines an interrupt controller with an IRQ line (typically a GPIO) that will demultiplex and handle the interrupt from the single interrupt line coming out of one of the Realtek switch chips. It most importantly provides link up/down interrupts to the PHY blocks inside the ASIC. properties: interrupt-controller: true interrupts: maxItems: 1 description: A single IRQ line from the switch, either active LOW or HIGH '#address-cells': const: 0 '#interrupt-cells': const: 1 required: - interrupt-controller - '#address-cells' - '#interrupt-cells' Now as it is also an interrupt-controller, shouldn't I document what it emits? I've just sent the new version and we can discuss it there. > > - one interrupt for the switch > > - the switch is an interrupt-controller > > - ... and is the interrupt-parent for the phy nodes. > > This pattern is pretty common for DSA switches, which have internal > PHYs. You can see this in the mv88e6xxx binding for example. The issue is that those similar devices are still not in yaml format. > Andrew