Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 50B65C6FD1D for ; Fri, 17 Mar 2023 09:05:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229758AbjCQJFu (ORCPT ); Fri, 17 Mar 2023 05:05:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232048AbjCQJFY (ORCPT ); Fri, 17 Mar 2023 05:05:24 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A3F2E63F3 for ; Fri, 17 Mar 2023 02:04:02 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id eh3so17574417edb.11 for ; Fri, 17 Mar 2023 02:04:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679043840; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=F+9q32H5maQAY7+Dr81+RVllp8r8V/8Ihh6QFteXqFU=; b=monslhkk1VBvMFaXE+OmJpTJ7739bvnwzQ1nH76yBk0x2FvUZw9b+Eu8kFOwfvJDyQ EMTxv3ziUDzdDYeevUA8okud/BGIBN7JVK/57Q4RaX3SKWkBwygjKPH64x0bG5c0Lgqa A4kqEOuXntc2b9UGi+QJj3o814dpeuwV6GV3vpJZSFwr9wuXSnXECIYc+19S8HR2pI/T rmOFjTzUfN7KMBXlFGr0glqk4sooxMJ1UYIRmKssQXUXE5z8QSUU/sa5wbNDkK6eDj4P bPD/AR27HeaDD9i0DFNqnyU1ZBJnP6W2m6M/Sic6cDta89U0qQxoIDpf8pVcDSlRm+/7 KR3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679043840; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=F+9q32H5maQAY7+Dr81+RVllp8r8V/8Ihh6QFteXqFU=; b=xxVsEtaLTVQ8+cy3Jrxjzg2tQ6krjetQf1wQz0tX7LPtkaguooY3jh2IgXzbWn5NBA LXSovmvqkUg5sG4rs/FXh2Y8Tcy6NzzvDRcSN69gRWNPuWufMpJvytDss4RHCqRFRC/6 iqs47tmDfmVTkKKEu3nQroPw4bxbWksA/1p88W6aqZSTBGNQzmbl5sdxA2oF3U6aC+qk DKDSjbcnXLLJPivSfLS20cAfPF84kcGi01+4phbZcN58P7N9EptXCvhSF2lpx+uVaWdg //faZ+1Mx5nvb/3ruJ9v2CaOS1i74UpiHW3ndmIy0U36n4uDRyvNRjD8Liy6x8ZrV/PZ F6HA== X-Gm-Message-State: AO0yUKWB0l9JhmatWaZ2YoW42Ck7bX4aNVRE93BSjwXSuwfSNC0G6xBJ qele3bADkxmDNJmdP1k16w33lA== X-Google-Smtp-Source: AK7set8bTjVCu5fhcJEjLTpRFEkjqV3j8SkNDWaEpR82X2mKS8ejahTe3YQClj1j5CUX+i8qaGJ3Tw== X-Received: by 2002:a17:907:9622:b0:932:35b1:47fa with SMTP id gb34-20020a170907962200b0093235b147famr601376ejc.64.1679043840103; Fri, 17 Mar 2023 02:04:00 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:848a:1971:93e0:b465? ([2a02:810d:15c0:828:848a:1971:93e0:b465]) by smtp.gmail.com with ESMTPSA id lg10-20020a170906f88a00b008cc920469b5sm744608ejb.18.2023.03.17.02.03.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Mar 2023 02:03:59 -0700 (PDT) Message-ID: <4027714e-b4e8-953b-68e2-f74f7a7f0e8e@linaro.org> Date: Fri, 17 Mar 2023 10:03:58 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v29 1/7] dt-bindings: mediatek: add ethdr definition for mt8195 Content-Language: en-US To: =?UTF-8?B?TmFuY3kgTGluICjmnpfmrKPonqIp?= , "p.zabel@pengutronix.de" , "matthias.bgg@gmail.com" , "angelogioacchino.delregno@collabora.com" , "chunkuang.hu@kernel.org" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" Cc: "linux-kernel@vger.kernel.org" , "linux-mediatek@lists.infradead.org" , =?UTF-8?B?U2luZ28gQ2hhbmcgKOW8teiIiOWciyk=?= , "nathan@kernel.org" , "devicetree@vger.kernel.org" , "daniel@ffwll.ch" , =?UTF-8?B?Q0sgSHUgKOiDoeS/iuWFiSk=?= , "dri-devel@lists.freedesktop.org" , Project_Global_Chrome_Upstream_Group , "linux-arm-kernel@lists.infradead.org" , "clang-built-linux@googlegroups.com" , "ndesaulniers@google.com" References: <20221227081011.6426-1-nancy.lin@mediatek.com> <20221227081011.6426-2-nancy.lin@mediatek.com> <4aff6a7a3b606f26ec793192d9c75774276935e0.camel@mediatek.com> <2700bd6c-f00d-fa99-b730-2fcdf89089fa@linaro.org> <1d65e8b2de708db18b5f7a0faaa53834e1002d9f.camel@mediatek.com> <0ebf187d-972e-4228-d8a0-8c0ce02f642d@linaro.org> <72cf6344a1c5942bff0872d05dce82b787b49b76.camel@mediatek.com> From: Krzysztof Kozlowski In-Reply-To: <72cf6344a1c5942bff0872d05dce82b787b49b76.camel@mediatek.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/03/2023 08:55, Nancy Lin (林欣螢) wrote: > On Thu, 2023-03-16 at 12:36 +0100, Krzysztof Kozlowski wrote: >> On 16/03/2023 10:53, AngeloGioacchino Del Regno wrote: >> >>> Hello Krzysztof, Nancy, >>> >>> Since this series has reached v29, can we please reach an agreement >>> on the bindings >>> to use here, so that we can get this finally upstreamed? >>> >>> I will put some examples to try to get this issue resolved. >>> >>> ### Example 1: Constrain the number of GCE entries to *seven* array >>> elements (7x4!) >>> >>> mediatek,gce-client-reg: >>> $ref: /schemas/types.yaml#/definitions/phandle-array >>> maxItems: 1 >>> description: The register of display function block to be set >>> by gce. >>> There are 4 arguments in this property, gce node, subsys id, >>> offset and >>> register size. The subsys id is defined in the gce header of >>> each chips >>> include/dt-bindings/gce/-gce.h, mapping to the >>> register of display >>> function block. >>> items: >>> minItems: 28 >>> maxItems: 28 >>> items: <----- this block doesn't seem to >>> get checked :\ >>> - description: phandle of GCE >>> - description: GCE subsys id >>> - description: register offset >>> - description: register size >> >> This is what we would like to have but it requires exception in >> dtschema. Thus: >> >>> >>> >>> ### Example 2: Don't care about constraining the number of >>> arguments >>> >>> mediatek,gce-client-reg: >>> $ref: /schemas/types.yaml#/definitions/phandle-array >>> maxItems: 1 >>> description: The register of display function block to be set >>> by gce. >>> There are 4 arguments in this property, gce node, subsys id, >>> offset and >>> register size. The subsys id is defined in the gce header of >>> each chips >>> include/dt-bindings/gce/-gce.h, mapping to the >>> register of display >>> function block. >> >> use this. >> >> Best regards, >> Krzysztof > > > Hi Krzysztof, Angelo, > > Thanks for the comment. > The Example 2 can pass dt_binding_check. > > But the example in the binding has 7 items [1] and dts [2]. Does the > "maxItems: 1" affect any other schema or dts check? Ah, then it should be maxItems: 7, not 1. Best regards, Krzysztof