Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp603227iob; Wed, 18 May 2022 08:59:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuEXwNr+JkeRv/oZ00Db8c0Tyj2ub68Cw3yuHwO1jWFAq+S0w7QeijJySSu2Cxv/7BR7xR X-Received: by 2002:a63:7d48:0:b0:3db:33fd:b227 with SMTP id m8-20020a637d48000000b003db33fdb227mr169300pgn.194.1652889581138; Wed, 18 May 2022 08:59:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652889581; cv=none; d=google.com; s=arc-20160816; b=E5qRiSpb34iHpeDBjCSVpII+FAgGHP/jBVAa96eiqQpGk4LS/5kt/A1g04Jr9fCG++ Jv3h5lNPbvVaKQUkoQArcwCXN9PCQ4cMvZ+Z9hJ/EP11K324pmp0vOBssFoZ+tbdLDVx AwhLcFRIrtOrSkwzCy2JtkqhGnihjiusTeaIjMDKbuYh7sWc9+8P+AU58HnGCyAd9sh6 I+SI6eYwiFv48dT+L4teZx8er6tSrgHShv4Ligw4WNpA6iBJ9hRdDQ1Axsr6XfpnKQ3h Sz9p2GT4wMkr84VmaH50WjdgKRmI7ZmU0q3vEnUFUIUKL1/AoseHqjMG3q50GOtIS4dK y38w== 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=pL9sXlkxO4wUxq+I5961tw5THWjp2m8gWvZxMl5uTTs=; b=CrW3RjvOMc5mL7iBEpjoPt5VBlJaFCSMAtYS6PM+/iG9+0rbhnL2fLMYMj7i8w3Gfu BeOiikgyd8eEvjrla2V5U6zdLyyL1R3Ux5CUh2CiJfHBUgaN9n3Q0YvPbLAmvyVg5N3M ng1yXjOa/RI7IQV+LlW4WHPKBQloHsO5YqBo8yhTPGeU3nc0LNhgt0nC0Z9I8HoAlTUo jWCquN2BWiWlxLG3FwFxngavaFveYqcDp8D2zUjEAGxEcYJKi0PeVNeKDyY3gLXqmR4Y by3aSPm3N9+hrrETN7lzLGfCK4PY8DQBrj8ZDgT6m5oMTqb8hmeKDlTdF976KbMOCZm7 EioA== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id x17-20020a656ab1000000b003c606c33460si3237490pgu.666.2022.05.18.08.59.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 08:59:41 -0700 (PDT) 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; 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=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 70EDE68318; Wed, 18 May 2022 08:56:35 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239770AbiERP4P (ORCPT + 99 others); Wed, 18 May 2022 11:56:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239766AbiERPz6 (ORCPT ); Wed, 18 May 2022 11:55:58 -0400 Received: from mail-ot1-f48.google.com (mail-ot1-f48.google.com [209.85.210.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AC9021AB; Wed, 18 May 2022 08:55:54 -0700 (PDT) Received: by mail-ot1-f48.google.com with SMTP id s12-20020a0568301e0c00b00605f30530c2so1625271otr.9; Wed, 18 May 2022 08:55:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=pL9sXlkxO4wUxq+I5961tw5THWjp2m8gWvZxMl5uTTs=; b=RL9/c3i+0A9E+zy69T9HBDzadzzlYVGGcrzdaqkbV8GvBu1o6y9zQmXinjBydOndQq COZGi0bjdjbLkgArzoEPv4yhd0ZGNXvqwPVLgeJoCx1qO6vwSnUfeZpd6dOg2SJ4Ypce C+1hgcwLMHZQ73G3/ndj3kroNZV8nqJlJCHwqqR0RQQxt3wskxajac1SSdXrujqFII00 CdcSORKWxasGWGoz6wyAsaMIvFPk2qh0e0yc8aRK9zInU7TNFTRZKB8ZMDf2isS34Cch XHzbqGKEoH5bSBMlxv9bK30piLGKEdrLc5Q9Z9xgEMKsHISgKqMjAHEENwLPqFA6c3j/ /TPQ== X-Gm-Message-State: AOAM5331HbV7kzCOkQk+0uHyiS+hG227hJU946VZjMXZLc7QMADQwGnZ MobdFSwx1vd9rxoGyY3C5A== X-Received: by 2002:a05:6830:2387:b0:606:4470:133 with SMTP id l7-20020a056830238700b0060644700133mr120520ots.133.1652889353575; Wed, 18 May 2022 08:55:53 -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 i131-20020acaea89000000b00325cda1ffbasm846556oih.57.2022.05.18.08.55.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 08:55:52 -0700 (PDT) Received: (nullmailer pid 3393244 invoked by uid 1000); Wed, 18 May 2022 15:55:51 -0000 Date: Wed, 18 May 2022 10:55:51 -0500 From: Rob Herring To: Frank Wunderlich Cc: Frank Wunderlich , Michael Riesch , Vinod Koul , Johan Jonker , linux-rockchip@lists.infradead.org, linux-pci@vger.kernel.org, Kishon Vijay Abraham I , linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, Bjorn Helgaas , Philipp Zabel , Lorenzo Pieralisi , Peter Geis , Heiko Stuebner , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= Subject: Re: Re: [RFC v3 1/5] dt-bindings: phy: rockchip: add PCIe v3 phy Message-ID: <20220518155551.GB3302100-robh@kernel.org> References: <20220514115946.8858-1-linux@fw-web.de> <20220514115946.8858-2-linux@fw-web.de> <1652570081.002742.3276245.nullmailer@robh.at.kernel.org> <20220516173537.GA2942634-robh@kernel.org> <9496CAFB-6CB6-4BDA-A539-3A6E1B562299@public-files.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9496CAFB-6CB6-4BDA-A539-3A6E1B562299@public-files.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,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 On Mon, May 16, 2022 at 09:21:31PM +0200, Frank Wunderlich wrote: > Am 16. Mai 2022 19:35:37 MESZ schrieb Rob Herring : > >On Sun, May 15, 2022 at 01:49:47PM +0200, Frank Wunderlich wrote: > >> Hi > >> > >> > Gesendet: Sonntag, 15. Mai 2022 um 01:14 Uhr > >> > Von: "Rob Herring" > >> > >> > On Sat, 14 May 2022 13:59:42 +0200, Frank Wunderlich wrote: > > >Documentation/devicetree/bindings/phy/rockchip,pcie3-phy.yaml > >> > > > >> > > >> > My bot found errors running 'make DT_CHECKER_FLAGS=-m > >dt_binding_check' > >> > on your patch (DT_CHECKER_FLAGS is new in v5.13): > >> > > >> > yamllint warnings/errors: > >> > > >> > dtschema/dtc warnings/errors: > >> > > >/builds/robherring/linux-dt-review/Documentation/devicetree/bindings/phy/rockchip,pcie3-phy.yaml: > >properties:clock-names: 'oneOf' conditional failed, one must be fixed: > >> > [{'const': 'refclk_m'}, {'const': 'refclk_n'}, {'const': 'pclk'}] > >is too long > >> > [{'const': 'refclk_m'}, {'const': 'refclk_n'}, {'const': 'pclk'}] > >is too short > >> > False schema does not allow 3 > >> > 1 was expected > >> > 3 is greater than the maximum of 2 > >> > hint: "minItems" is only needed if less than the "items" list > >length > >> > from schema $id: http://devicetree.org/meta-schemas/items.yaml# > >> > > >/builds/robherring/linux-dt-review/Documentation/devicetree/bindings/phy/rockchip,pcie3-phy.yaml: > >ignoring, error in schema: properties: clock-names > >> > > >Documentation/devicetree/bindings/phy/rockchip,pcie3-phy.example.dtb:0:0: > >/example-0/phy@fe8c0000: failed to match any schema with compatible: > >['rockchip,rk3568-pcie3-phy'] > >> > >> seems this is fixed when i remove the "minItems: 3" from clock names > >> (which is already fixed length because of the list). > > > >Yes. > > > >> needed to change type of lane-map to this: > >> > >> $ref: /schemas/types.yaml#/definitions/uint8-array > > > >Why? That's not a standard property though, so needs a 'rockchip' > >prefix. Though maybe a common property would be appropriate here. > > Originally it was a bool property named "rockchip,bifurcation" and we > changed it (after comments) to be a more generic property "lane-map" > that can be re-used on other vendors/controllers/phys. Fair enough. The type needs to be defined in a common binding though. phy/phy-provider.yaml in dtschema probably. We already have clock-lanes and data-lanes for other serdes interfaces. Maybe data-lanes works here? > Driver reads as u8 array and range is small enough for u8 even if > used for larger controllers (e.g. PCIe x16). Not arguing that it shouldn't be, just confused how the type was related to warnings. > > >> then it looks clean for it.... > >> > >> -m causes many errors unrelated to this schema-file even if i pass > >> > >DT_SCHEMA_FILES=Documentation/devicetree/bindings/phy/rockchip,pcie3-phy.yaml > > > >The fix is fixing the remaining 40 or so '-m' errors. > > So now clean for you(r bot), too? Did only get a bunch of other unrelated messages. No, the bot does a baseline build and extracts the diff in warnings. Still too many warnings popping up frequently... :( Rob