Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2265764rdb; Fri, 8 Dec 2023 03:21:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IFPbQ8FE/kzQ5KKs26SLRKo1ltkPHKYVKRbwzZAirj+meE/zQWOYtWI3KwFm9QiWDGxgqKN X-Received: by 2002:a05:6a20:3b29:b0:190:f53:210c with SMTP id c41-20020a056a203b2900b001900f53210cmr647376pzh.6.1702034494520; Fri, 08 Dec 2023 03:21:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702034494; cv=none; d=google.com; s=arc-20160816; b=n1rYaWDB0mxVO8MziGw41ZH9ztjOZzBJ0L/81EaR3AjL6a+4g6SUr8uQukPFYt2A8s nbKYYS8lCBHujoSWIGkCfTgbhS5tuFTFNkW6iJGAtovQiE59A0tHDXjKPNvU9a0jTYgO hjJ/tv/LPefOI9PmPVHeS+1N1hjPLpKWgYoj5HaSfH1P6kg7rb0J3pWYvW1axlN06RuV Aj+B48w8eagmcknBQaVfpg56ZbKE4D16RTjOck5ROeOb1sTjg+sEGJHo701CeDKg6U2v mpThMS7xpHNWPt4IW7iF/VcQuk56SVL8gzPfxt5tpMcvGnjxQsKinDXK1QLalRHFOmfM DB9Q== 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=2PEUKU4RsP0giZMZ/KrfzmNAgaL4v7lal6pj/aFK5ok=; fh=n/7IIMEPNzp8MW81ND8IieOthIwlJjNyqWfdSXDNTbM=; b=c+sQmMpZw1LHXnbgn5zpj+G4x9Ak+5VsmOa2CHgbRf8hXzs5fb/DQR3V4ZRC5UTUs0 zvYOXpd1JkgBgsbA8UEo1gPdqXMnxHB0D/TR4qm5Tp+evIos98DMwx/LH9Q1VlXEkHTt SzlgTf+ljOCQhJyQizOT5RsKp0biFp/4OGOweW2FMYqqoOvooPnpZ0qWWqUquaH+wx3J 0dVzVPcOUoyKVeQfk7gXkkZI+XP4lHMd2sMKeBOQPRmt2f9+kEOWzd6Od/l9e1iMsclN 7n0/8cjTOgARm6uHrKAgcvmSQNRMepzNj1VsK4K3/2dIg+49n6W3fWiJNTdXlc30/I2S UiXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bo39MrV6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id 8-20020a631748000000b00565dd108fd4si1373747pgx.115.2023.12.08.03.21.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 03:21:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bo39MrV6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 0B3E08061B53; Fri, 8 Dec 2023 03:20:51 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573572AbjLHLUN (ORCPT + 99 others); Fri, 8 Dec 2023 06:20:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233345AbjLHLUI (ORCPT ); Fri, 8 Dec 2023 06:20:08 -0500 Received: from mail-oi1-x234.google.com (mail-oi1-x234.google.com [IPv6:2607:f8b0:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9181210F8; Fri, 8 Dec 2023 03:20:14 -0800 (PST) Received: by mail-oi1-x234.google.com with SMTP id 5614622812f47-3b8952b8066so1438234b6e.1; Fri, 08 Dec 2023 03:20:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702034414; x=1702639214; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=2PEUKU4RsP0giZMZ/KrfzmNAgaL4v7lal6pj/aFK5ok=; b=bo39MrV6ixg+FyNnNatPV6NNiRPj8FY6U9wk69IqZqiKiKTVRXOc9iWxzuu0LAiDxa 61jX8cOAUwSAzudeNE6tyTeLikODrbgACAw5PC+sP+StFTi2OdH0vDVeQWYG7N2K32Iv VJuc+g8teUJx5q6oPbPJ78uU9TXQUTz4d1zyEgNsGUoZx8TYyTBRFqroOZi22PEzNBql woqj0epjWK0eUQX+bXq9rnEJGZVclv7MyUVd7zIxelInqhTcRIqFDGd9jc0xfR+f/Q13 bskZ5chgEUMk6ipVQyo8nwq9KbA4GjhqfqeKmml8i2R9gKLXZPIaD5PSSSM3x+Bjjf54 LhEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702034414; x=1702639214; h=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=2PEUKU4RsP0giZMZ/KrfzmNAgaL4v7lal6pj/aFK5ok=; b=i1tLc/eaB1saYnzJNEqcSv646MDw10fF8LBBtdeoKhh6nuhnFqtSW2Em88W/ryalXA +YRt00E0mvZFBHnKM+09jjV+6lWO1AlNSpBcUczGZElaJdvfMMpKUg5pmCfuRDqr6UqR Nd62V5xCfwf9AkRHmrIRDsDiYkrntC3zFyDIvsWRkclVo2TaaVRSqz+VhQaG0JrNAgX8 gBnKXMP2Ei9LRe/3kciMEJ5nWLBSU5siJ2uis4U0Xph6EbkTZMhDzyW0vAZidT8NN11/ sr8gMTrywTJd8HSKRcdrLYc31DE2bRfJrqCn59UeGQXE40utWE9ebLZg6cfF/FSZjZwd JHTg== X-Gm-Message-State: AOJu0YwBTVOIZFbiRZC5eBd9d3aGQKP+S7FThhu/HcKbDXY7zYpylA2I o/gF/xx008Jnlu090fnXvR1Jniko3xy5ZkPOoHg= X-Received: by 2002:a05:6808:640c:b0:3b9:d2ea:4d2 with SMTP id fg12-20020a056808640c00b003b9d2ea04d2mr327428oib.22.1702034413856; Fri, 08 Dec 2023 03:20:13 -0800 (PST) MIME-Version: 1.0 References: <20231204144429.45197-1-linux.amoon@gmail.com> <20231204144429.45197-2-linux.amoon@gmail.com> <20231206135311.GA2043711-robh@kernel.org> <21673bfd-bb87-4c7d-a53f-337c263f3a00@linaro.org> <604e653d-c1e2-45c7-b121-8a6b4be5c6bb@linaro.org> <1a78d453-62a2-410a-a40f-1ff0c2b62e86@linaro.org> In-Reply-To: <1a78d453-62a2-410a-a40f-1ff0c2b62e86@linaro.org> From: Anand Moon Date: Fri, 8 Dec 2023 16:49:57 +0530 Message-ID: Subject: Re: [PATCH v6 1/2] dt-bindings: usb: Add the binding example for the Genesys Logic GL3523 hub To: Krzysztof Kozlowski Cc: Rob Herring , Greg Kroah-Hartman , Krzysztof Kozlowski , Conor Dooley , Icenowy Zheng , Neil Armstrong , linux-amlogic@lists.infradead.org, Conor Dooley , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 08 Dec 2023 03:20:51 -0800 (PST) Hi Krzysztof, On Fri, 8 Dec 2023 at 13:14, Krzysztof Kozlowski wrote: > > On 08/12/2023 01:24, Anand Moon wrote: > >>>>> > >>>>> If I move reset-gpios to required, I observe the below warning. > >>>>> > >>>>> DTC_CHK Documentation/devicetree/bindings/usb/maxim,max33359.example.dtb > >>>>> /home/alarm/linux-amlogic-5.y-devel/Documentation/devicetree/bindings/usb/usb-device.example.dtb: > >>>>> hub@1: 'reset-gpio' is a required property > >>>>> from schema $id: http://devicetree.org/schemas/usb/genesys,gl850g.yaml# > >>>> > >>>> Where are the properties defined? If you open the binding you see: > >>>> nowhere. You cannot define properties in some variant with "true". > >>>> Please define all of them in top-level and only narrow/constrain when > >>>> applicable. > >>>> > >>> What I meant is the example below, required meant applicable for both > >>> the binding > >>> But it shows me the above warning. > >> > >> My explanation stands... So again: > >> > >>>> Please define all of them in top-level and only narrow/constrain when > >>>> applicable. > >> > > Apologies, But I have tried this multiple times but have not been able > > to fix the device tree warning > > Did you document all properties in top-level "properties:" block? > Yes, I have, Can you suggest a couple of examples to follow? I looked at some of the YAML files but could not fix my issue. Thanks -Anand