Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp133758ybi; Tue, 2 Jul 2019 17:42:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqzC+JqfJwxdcgi4ddLc5xVLhjEiJKjZclBiTf/7hsHh9vuBkRdq/HE0BtLVG/dvDErw0NVC X-Received: by 2002:a63:188:: with SMTP id 130mr24755766pgb.231.1562114526324; Tue, 02 Jul 2019 17:42:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562114526; cv=none; d=google.com; s=arc-20160816; b=SO+yuw/CG9wua2C8Xck83MRBkEAdQmaDziqh6N5uHHYfFFYH7/iJYOPWh5KyknuJIi W5c5Gbw40oVgRaEQV6R49dlL3py/gVln5qTQIa1WWkRKDh5t2AFCG8BR4biWCYaEezzS FuqurU2POBHsZQ7epZV0prYJLvTmH7D6m54Q1zmS1L2JdNDEZ1Gkk7QO8gHK0ji2ctvU vJL3bgPHpx8T6G5WbJitev5HATusVi6Asd68hfaeUH15vzDLhZ620b7MFzSTCmyynBej VtEjKrjRsQCITfmfN2JxpRdCKi8RVvehEMSGd10JehS3orOzUz7r376S7YQtH4iArkoT Vutg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=bSOqYii7ZBXl1VimAzOsNXyArtOqUO8Ub/4ZYTA1j8c=; b=LGAHQz3Icv/y6/PKWUWoyrEhA4vHQwjc0yKQCJdbILJb4VZ7TgS47KgSx+7biC0gVU NrALsOd7QW0KJfRS/mIEYqdctSrV32iSY2aTuGZsk5+VCe0fdZieWmP59ZJhV21Lljcw QkbEIjXkS11z8Sxnu3AGfMbGMEndJOdBFEJZrQzJomeJMRDatOBdnDFwyGPygA0pa2NN miidaVVpJooNsZY/ez7mM84rC/AxGw7rt6GCMdN/EDwUQZAHdL1Y9sRZ8gxA+84QA5EN ONkDh5LSQh074V3ruASKbiUEfqYp2PxtXu9oYlOC1QjGRig1fSL5XGv0WY+SdRAq9l45 yRug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=q99GRcsX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bg11si169487pjb.72.2019.07.02.17.41.45; Tue, 02 Jul 2019 17:42:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=q99GRcsX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727311AbfGCAlP (ORCPT + 99 others); Tue, 2 Jul 2019 20:41:15 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:35817 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727132AbfGCAlN (ORCPT ); Tue, 2 Jul 2019 20:41:13 -0400 Received: by mail-ot1-f67.google.com with SMTP id j19so510177otq.2; Tue, 02 Jul 2019 17:41:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bSOqYii7ZBXl1VimAzOsNXyArtOqUO8Ub/4ZYTA1j8c=; b=q99GRcsXbET72JhVUP+W09DtQ82pAEbhghUwbJjJUv1NS9OSrA+MEhNfDcpH+tiBXp TWM8sf7tC+y68iDzSrV8xAphAUbgEiXEbjxqmQerxymKzbfMd6mtcqWLXOIzK2JBLbPY H2d/98y/oTDU6E9MlkrvWQH7fJGN1h1mIQSYvw+yBtsZEJi/cdOYWvcP3guzN8MOawfO lnHMNcGRonLGQO2LvHfcsG2x8fevU3l6viLz4gb8JZUHjw9NtQb9O4TVOCIXHIgk1z5K B6Ga3y+dBjjB0K2+cFK4Nm2+qdFszmUnMo6t5zefToiJMhrFq5WwfBwpzDPxDvk1S/HM mpMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bSOqYii7ZBXl1VimAzOsNXyArtOqUO8Ub/4ZYTA1j8c=; b=P+kifVX8X3EnAmrAQUuo7dg859nWf4L4yRTu2dkHHV1kIobfMJKzyIL5plltujhzG2 nvlaU2AFWavNW7lDse3Od3OG9ZhKjL+ZCRhBfRRWfciG+44Kj5CMpCDk0ET8MpjXfqjo Bo6sWPwB6yyEUlWbVCAiSt/y1aYUFsWQLeviqBipogI2ElxiPb037GYA+hxQvPQUtQdH 7/ADC5Hx4TdzWzY3EVuqCr0q6ivKC65yKLX8QWqPz7+avwZAZpjYrSJF1Ihn4tHoaEcV eExIcdoP01ICGRws1whv6I19yG7K3Ddt8WsydmwUY96ZWByNJX6RrnaLi4yDVqjcwYoT Vy2w== X-Gm-Message-State: APjAAAXK6aLgqT6jx/OW+WOOu1sXfMINGDchSfkvMAyHekhW6y+2biyb vpIKZBQVCnWahkmWQv71OgQLfVyddjx2bWtemRZd9MXX X-Received: by 2002:a9d:39a6:: with SMTP id y35mr27422788otb.81.1562110657449; Tue, 02 Jul 2019 16:37:37 -0700 (PDT) MIME-Version: 1.0 References: <20190702203523.2412-1-martin.blumenstingl@googlemail.com> <20190702203523.2412-2-martin.blumenstingl@googlemail.com> In-Reply-To: From: Martin Blumenstingl Date: Wed, 3 Jul 2019 01:37:26 +0200 Message-ID: Subject: Re: [PATCH 1/4] dt-bindings: phy: add binding for the Lantiq VRX200 and ARX300 PCIe PHYs To: Rob Herring Cc: linux-mips@vger.kernel.org, devicetree@vger.kernel.org, John Crispin , Kishon Vijay Abraham I , "linux-kernel@vger.kernel.org" , Hauke Mehrtens , Paul Burton , Ralf Baechle , Mark Rutland , Martin Schiller Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On Wed, Jul 3, 2019 at 1:34 AM Rob Herring wrote: [...] > > + lantiq,rcu: > > + maxItems: 1 > > + description: phandle to the RCU syscon > > You need to define the type (and drop maxItems): > > $ref: /schemas/types.yaml#/definitions/phandle thank you for this hint - the examples I used didn't have it > > + > > + lantiq,rcu-endian-offset: > > + $ref: /schemas/types.yaml#/definitions/uint32 > > + description: the offset of the endian registers for this PHY instance in the RCU syscon > > + > > + lantiq,rcu-big-endian-mask: > > + $ref: /schemas/types.yaml#/definitions/uint32 > > + description: the mask to set the PDI (PHY) registers for this PHY instance to big endian > > + > > +required: > > + - "#phy-cells" > > + - compatible > > + - reg > > + - clocks > > + - clock-names > > + - resets > > + - reset-names > > + - lantiq,rcu > > + - lantiq,rcu-endian-offset > > + - lantiq,rcu-big-endian-mask > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + pcie0_phy: phy@106800 { > > + compatible = "lantiq,vrx200-pcie-phy"; > > + reg = <0x106800 0x100>; > > + lantiq,rcu = <&rcu0>; > > + lantiq,rcu-endian-offset = <0x4c>; > > + lantiq,rcu-big-endian-mask = <0x80>; /* bit 7 */ > > + big-endian; > > The example will fail to validate because big-endian is not listed as > a property and you have 'additionalProperties: false'. So you have to > either list big-endian or drop additionalProperties. good catch, thank you. I'll add big-endian and little-endian as allowed (but optional) properties > Note that the examples are validated against the schema in linux-next now. I tested this with yesterday's linux-next tree and it didn't fail for me do you have any hint how I can run this validation myself? Martin