Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2796421rda; Wed, 25 Oct 2023 12:31:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH63qNOxVRZnoo1K48HuFg9O9qLHR3zMLphtwSVWTClwVocNanUnzyVRpmLZqIId6l6xuYt X-Received: by 2002:a9d:4d88:0:b0:6c6:4a8d:da98 with SMTP id u8-20020a9d4d88000000b006c64a8dda98mr16692435otk.24.1698262289682; Wed, 25 Oct 2023 12:31:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698262289; cv=none; d=google.com; s=arc-20160816; b=kK4gLsyalUx18xkAIKp+8xka6SiewEWkaQ4AZa51tO4yHqIJxk+OUDa19YwzupS3Ne qP1PSH+yJBci6DTDOY5k7j0tHrC/oiJCWnjOOQ7C5cKSiWmiCzFKHwJHfjuPEOWWHyrn GbZsfS8plAro8PUH0kMvcUIVI/Z4WH6RQWjWzEKvlVURepsMQ8Z41N89OhlhSHp4+Jnd JjehLTof7gGnU3F7Y+yhtTM+FQVia8IzBwdCNgleYBq5WRGyiWo2YzcAZy1VLDuIz2Vt nzLveWRDOn2qtrXdluBhalRj75y/omAKZmOB+sF4DwXDS8Ymuh5gELfFo4yTYl3mb11E 3jtQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=BULHmGVlpE9lA4m1uLl0w75mKoeV83pmpBJtjeqEY5Y=; fh=YY8o1QqZvd2+AdZoggiCtvvfI47qRcL7XOJhE6oi6ls=; b=CpesQLVVEgBCUS697HwCCSpiI+lh1L1x3kfyJIwSQkosgWAQ5LQl779M55K4lxAI9p TI38iHWadzHmRd7ZhnDm3SCjU6KTpXCnXLyDXkrp6RTgfjl+kBRAO5u+IYsCrCWV3EyD /PZ82wcaW43CWydpr6XUkLmVllr29mBg9KaLDpkoGwQJzxObA5haN8aosl2HHOYq+UwE mWBBMLbCDeMG6FD5aIvoaW+lyNiULgjP9PUEmbK7suXxslpquFITU6ndWfbuCEJMdLDw f0EJGBSJdIjptnwB+TsO/trLRbpeDz5I2HKosJ8VaLFxkvTCk0h4pJtQBZmVisAnFZEd O7Cw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id h68-20020a0df747000000b0059290308f8bsi12293241ywf.11.2023.10.25.12.31.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 12:31:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 8D2F280234CA; Wed, 25 Oct 2023 12:31:26 -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 S229598AbjJYTbS (ORCPT + 99 others); Wed, 25 Oct 2023 15:31:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229557AbjJYTbR (ORCPT ); Wed, 25 Oct 2023 15:31:17 -0400 Received: from mail-oo1-f49.google.com (mail-oo1-f49.google.com [209.85.161.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F49B137; Wed, 25 Oct 2023 12:31:15 -0700 (PDT) Received: by mail-oo1-f49.google.com with SMTP id 006d021491bc7-586753b0ab0so92742eaf.0; Wed, 25 Oct 2023 12:31:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698262274; x=1698867074; h=in-reply-to: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=BULHmGVlpE9lA4m1uLl0w75mKoeV83pmpBJtjeqEY5Y=; b=xM5H8kvGk6D+3QGCSUShBEiNGa8RonqjmBzoMRgAsgWxd4KKE3SLi/FuZVhhO0eiIB J7VETrNs8TK7gtNfGoODcWLuYqRJVelB3md6UkfRup8Hug/371V55e4wCmUB9Q12uzQN 5W/nXvZ8kwPjBgi+5hC8wOHWzNyrG1kptmFbVPY50P/5dITgjaf9WQQANUN7bORzH8oE msKQ/0WMJ3XOygH49ZsfXepIEF7bfA2D+uGgtLUVUeDYbyHyrLavtz18Mhi58VZp/pA4 ygk3JrbAoAHU1aIv52pdlzhc8jEVbdza5TPrTotURZ39O8viGf1MwUHoUE71gr5aNGAI fXkw== X-Gm-Message-State: AOJu0YzkQammM9zWPJrHBuJILYBasMK3FAdBOBpPIYkfpX6Ijbu8YQik YgYkbLL6Spo6/lKYdUaEmA== X-Received: by 2002:a05:6871:522b:b0:1ea:7bd1:c495 with SMTP id ht43-20020a056871522b00b001ea7bd1c495mr19869975oac.27.1698262274627; Wed, 25 Oct 2023 12:31:14 -0700 (PDT) Received: from herring.priv (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id a21-20020a056870b21500b001e9dabc3224sm2717937oam.50.2023.10.25.12.31.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 12:31:14 -0700 (PDT) Received: (nullmailer pid 1027831 invoked by uid 1000); Wed, 25 Oct 2023 19:31:13 -0000 Date: Wed, 25 Oct 2023 14:31:13 -0500 From: Rob Herring To: Aradhya Bhatia Cc: Frank Rowand , Devicetree List , Linux Kernel List , Andrew Davis , Nishanth Menon , Vignesh Raghavendra , Devarsh Thakkar , Jai Luthra , Jayesh Choudhary Subject: Re: [PATCH] scripts/dtc: Allow ports to have a single port@0 child Message-ID: <20231025193113.GA994152-robh@kernel.org> References: <20231013085424.7137-1-a-bhatia1@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231013085424.7137-1-a-bhatia1@ti.com> 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 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]); Wed, 25 Oct 2023 12:31:26 -0700 (PDT) On Fri, Oct 13, 2023 at 02:24:24PM +0530, Aradhya Bhatia wrote: > Exempt 'ports' from the rule which asserts that nodes with single child > node having reg = 0, should not have the '#size-cells' and > '#address-cells' properties. > > Ports of certain hardware do need to be described as only having a > single child node 'port@0', especially when hardware has multiple ports, > and the other ports 'port@x' are planned to be added subsequently. In > such cases, just using 'port', would be an inaccurate hardware > description. > > For example, Texas Instruments' DSS (display-subsystem), which has 2 or > 4 video ports depending on the SoC. Describing the first video port with > just 'port' under ports would be inaccurate and even slightly > misleading. Simply using port@0 (when other ports are not added) > produces the following warning, while making dtbs with W=1 flag set[0]. There's a reason this is behind W=1. In general, if you only have a single 'port' it should be just 'port' which is equivalent to port 0. There's exceptions to that, so the warning is off by default. > code-block :: > > Warning (graph_child_address): /bus@100000/dss@4a00000/ports: > graph node has single child node 'port@0', > #address-cells/#size-cells are not necessary > > Signed-off-by: Aradhya Bhatia > > [0]: https://lore.kernel.org/all/570903b6-8239-d44a-5fac-71700804cb5d@ti.com/ > --- > scripts/dtc/checks.c | 11 ++++++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) This is a copy of upstream dtc. We don't take patches for it (except in emergency). Look at the commit history. Rob