Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4432044ybl; Mon, 13 Jan 2020 13:40:00 -0800 (PST) X-Google-Smtp-Source: APXvYqxertj631gb6fzNwhN+Fhsp1LTXddeJpXaa/duIZ467ctZm3a13Ya8MImOekodXjSXjh4e4 X-Received: by 2002:aca:d6c4:: with SMTP id n187mr14684959oig.29.1578951600631; Mon, 13 Jan 2020 13:40:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578951600; cv=none; d=google.com; s=arc-20160816; b=agnepeMNSQEvhgzwOO+uXdSEsxuSvdGoGbrmaHrBQ9W1H9k/XR6gC/6EOi09kmO0gP S195CsHH74YHwNukppQyjEFRES30X/JlFYqRYVTHgPQipjN1m6ZwKQjWm8rttZoYhd7Z RXM62ZoQhpnb3szzQozQnvGRuFttBuRM9jfvNWc8XlzsSYXwEb5UOIYIQ+ARy8ycuKHQ uBHZMfZUhxdP2Iu4TKoDvYbzY9tBH5ThLYoEd3pgjqzwKjlyKejBnRR4t4SYOXyRaTOq 0fUwechVMkJj1o27Ht6le2s9Mt3YcDOUJeIUptie++fmryKPCkChUgxbHlmO2Zgy+grd MvxA== 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=2ADbsyh1UnrFaJzN4/5ee9XK8MuVx4vuWzhJdbRNFOc=; b=0POGvpuOkQq/mmd8XtZ1YJDfQgpUBdiaExJKSRk4/lYhNa9w6TwmYl9mKby7SttAsh wSQ+6TuRhLUgFF0rZi9GqRrwfB3InRfoQ6X5k/E/4JpVl527jPOjRTEi8rha5GK4Rs0I AJiQ7O4i1RVMX1y4jPQQcCQxTm+P5WFlSHP7vVWNNOtDmoSEc5O9OLNqQMwYFIKQ2EnY FlMlcIZt8LbFUg2wzThZn/Buh+2POVqoVPiswFKyw3SRTkCImxZUc39hb8yjne+USPli ZtmuAKXJwD4oSHlqXe/ZUm+gbfs83k0szeRfOLK5SK9SQuo2qwVWhL+LaUzPG0VTMs11 ZFcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="gHmKwf/1"; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y18si6784167oix.27.2020.01.13.13.39.45; Mon, 13 Jan 2020 13:40:00 -0800 (PST) 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=@linaro.org header.s=google header.b="gHmKwf/1"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728775AbgAMVZg (ORCPT + 99 others); Mon, 13 Jan 2020 16:25:36 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:38980 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728755AbgAMVZe (ORCPT ); Mon, 13 Jan 2020 16:25:34 -0500 Received: by mail-lj1-f196.google.com with SMTP id l2so11780638lja.6 for ; Mon, 13 Jan 2020 13:25:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2ADbsyh1UnrFaJzN4/5ee9XK8MuVx4vuWzhJdbRNFOc=; b=gHmKwf/1P5072vi4YjvtTnpBXeLlOOrhasMBORZykUjtiG4jqt91oyWhDSiZK5Gy9e yaquTq+dwvwcA7zI5OtuwMlgVuCkGwEFmzBZndA004gBbuTPd8+2z5aVh1vDwiscMtHr O5ytAkMYoaTVaCkv8gNbavXV9Mn0DS6pI1PfocvsFf8igE5cUKMyMMKHGkciWUJ0y8P3 AOGw0MH0C12/rXuYD1ES/QG8qtBPfKsM4tu49YG44LAfUZQ+0myj5RGOo2rhBq6BANAk 3so7c21y3XSuzLYwZLB+QLkKpk1qJD1tU+Cu/b63YgqKsbwoYzfPaQi0cnC5PqUsY7eC E+lQ== 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=2ADbsyh1UnrFaJzN4/5ee9XK8MuVx4vuWzhJdbRNFOc=; b=dJpomBFfSyyKwSqkRsDgDNeWKz/vQFyHPOO7gVWKqiUYdLem/oDDHvLU2yxuRbdDrp VcutZpWLuqq4MD3NNgqd/667AR6l0LYBhOxBnKqclEnqGnc3f73ldT9VZFm+TduJoX6f raJ6CE/a/Ru6OjjuhyMd2CJwKFFvyh6CGqwIh26MIOPG5mFtvgrwxDh3DZ+EdYqL9S67 7gOsGHsq4xgLxrTpbu9/T1FI8MRjbDyL8FNA+vhYCJw55+iRyxHJ6I4ug3dIu6b4uslZ oT9sEm1uLFwExMhDNrlop4hDkwpquyjNIFa8nJHig06ghAFzIW64K7GfclFpAMvM3Scw PhLw== X-Gm-Message-State: APjAAAWq8Wc+s05E9EnnmAlNo4Ewru++uAB8yJ30cfwYYBIT68kGewCz 3O5FKG/ieguYeXsYN1Fm02f/f5IQv8tlTqPdOqSs+g== X-Received: by 2002:a05:651c:111c:: with SMTP id d28mr12600380ljo.32.1578950732136; Mon, 13 Jan 2020 13:25:32 -0800 (PST) MIME-Version: 1.0 References: <20191218062024.25475-1-rahul.tanwar@linux.intel.com> In-Reply-To: From: Linus Walleij Date: Mon, 13 Jan 2020 22:25:20 +0100 Message-ID: Subject: Re: [PATCH] dt-bindings: pinctrl: intel: Update to use generic bindings To: Rob Herring Cc: Rahul Tanwar , Mark Rutland , "open list:GPIO SUBSYSTEM" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "linux-kernel@vger.kernel.org" , yixin zhu , qi-ming.wu@intel.com, cheol.yong.kim@intel.com 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 Mon, Jan 13, 2020 at 6:38 PM Rob Herring wrote: > > +$id: http://devicetree.org/schemas/bindings/pinctrl/intel,lgm-io.yaml# > > Drop 'bindings' from the path. I fixed this. > > +allOf: > > + - $ref: pincfg-node.yaml# > > + - $ref: pinmux-node.yaml# > > This 'allOf' is at the wrong level... (...) > > +# Client device subnode's properties > > +patternProperties: > > + '-pins$': > > + type: object > > ...It should be here. I moved this. > > + properties: > > + function: true > > + group: true This should have both groups and group. > > + pins: true > > + pinmux: true > > + bias-pull-up: true > > + bias-pull-down: true > > + drive-strength: true > > + slew-rate: true > > + drive-open-drain: true > > + output-enable: true > > + > > + required: > > + - function > > + - group This should have groups as compulsory. > > + uart0-pins { > > + pins = <64>, /* UART_RX0 */ > > + <65>; /* UART_TX0 */ > > + function = "CONSOLE_UART0"; > > + pinmux = <1>, > > + <1>; > > + groups = "CONSOLE_UART0"; > > 'groups' is not a defined property. Should be 'group'. Actually not in this case. There was an error in commit 3af50e548019f6ee26d0ed4340f4ab980f884696 "dt-bindings: pinctrl: Convert generic pin mux and config properties to schema" A function has a 1-to-many relationship to groups so it should be "groups" for the multiplexing (pluralis). A pin config on the other hand, such as "set slewrate for all the pins in this pin group" has a 1-to-1 relationship to a group (singularis). I am trying to fix it all up in one patch. Yours, Linus Walleij