Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp902829ybi; Wed, 3 Jul 2019 06:25:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqws8/FoSYd+qc6EMXi4yWgKVXYqa6VfbrhFR6cS6JbAEsvXAwcAmw8AQ8FYCsdRDIyYHyab X-Received: by 2002:a17:90b:d8b:: with SMTP id bg11mr12863703pjb.30.1562160356148; Wed, 03 Jul 2019 06:25:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562160356; cv=none; d=google.com; s=arc-20160816; b=FyflD+irgBANH+ap4pHUmvZ7sU9CVzYlCIlClr6fiim9F7Orok/wRE/fUKN6NLVqkH os4faV9lv8/1NtVo6pPWK0i7Xf3LyvRTfNWnT2TkEKulHyI+p9Cx4XesvPctvawidhng WkiQESDYsJXTqf4+P9ctsMgvmn32x7hMa2lZUtUkmT25XSgKaK+YahJz+26OL5xfzS/k kJWqxRS6yHVgX/6eTYpeY8DmAPzmbJx6i2Zvxe+Hgk55hxwMXWim5YgUG6PTH8VYnawn GJpDEWXFPyNfSvvfNaAo/NnUVftCKLD55Z4Fr+6wCRozT84y0pJszlyvAn7e3O2HBUKl 1ATQ== 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=1CnJq6NkqWYEs1ruGzMwmNLcIBHv6zPAkChT0nRK2uI=; b=ziO2z9lzeIv/zWdc6OAatYRUUwvTwdZTS6O+qTLuAicHGHBs2SorplQHZJToSTJKqx 6VT0vwbMW9+M4Por5h5A+rAu2eZXVYSqB6iLzSugJSCAUtHnGS0yFq/hejy57/jy5uoY jlsJwIhS4xjOo4U6ozKcQg8L+LXpDMOMrkmlw93DGR7fasa6gQUM6z7gfUNpYm5vKyNM HRYs2gh0udkC+9GzWZcX9leoON3sFc5FdjjBjXxLBNvgAG5Ejan+pI38PQr8tHpewA4c 618DN3WGScpTz21EHNyX0WytdqkFD/3UU758vOya8QFQhVQbHhl8Cfzway565U5ylcCI 28ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iOYguXOS; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h1si2431185pgv.67.2019.07.03.06.25.40; Wed, 03 Jul 2019 06:25:56 -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=@kernel.org header.s=default header.b=iOYguXOS; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727028AbfGCNZQ (ORCPT + 99 others); Wed, 3 Jul 2019 09:25:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:40016 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726621AbfGCNZQ (ORCPT ); Wed, 3 Jul 2019 09:25:16 -0400 Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com [209.85.160.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3D033218AD; Wed, 3 Jul 2019 13:25:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562160315; bh=hPIgAF/RwH+87CC48ngdy/pc35EBUqps7G9X6Sfz/Rk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=iOYguXOSn1KvEZ75OL682DZzYwsj4Dd/lxMdTTt7oxy3O57i3wga0yD86dARW7o8v lW4fZBAD94lrViCzfj97n+Ubn24osyQPzRt+6h7Qlxb/I+mgmWkfwo28hj12GU4yCk tnWhbHnM+Vwhnhe3gb4cuoQ5+qrsDzzfNeI1Az24= Received: by mail-qt1-f178.google.com with SMTP id d17so1627475qtj.8; Wed, 03 Jul 2019 06:25:15 -0700 (PDT) X-Gm-Message-State: APjAAAU4ejyYhb05AiV7wl9Y8bxHh3rFPLJN+EYY3g1oLAGTj7itFknq gs9J6VuIU0aWl2VOPIXCygXji7W6Yuk+vvK3UQ== X-Received: by 2002:a0c:b627:: with SMTP id f39mr32762815qve.72.1562160314468; Wed, 03 Jul 2019 06:25:14 -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: Rob Herring Date: Wed, 3 Jul 2019 07:25:02 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/4] dt-bindings: phy: add binding for the Lantiq VRX200 and ARX300 PCIe PHYs To: Martin Blumenstingl 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 On Tue, Jul 2, 2019 at 5:37 PM Martin Blumenstingl wrote: > > 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? It's not a default target: make dt_binding_check Rob