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 BB820C433EF for ; Thu, 9 Dec 2021 23:30:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234404AbhLIXeC (ORCPT ); Thu, 9 Dec 2021 18:34:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229760AbhLIXeB (ORCPT ); Thu, 9 Dec 2021 18:34:01 -0500 Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2294C0617A1 for ; Thu, 9 Dec 2021 15:30:26 -0800 (PST) Received: by mail-ot1-x32d.google.com with SMTP id a23-20020a9d4717000000b0056c15d6d0caso7890789otf.12 for ; Thu, 09 Dec 2021 15:30:26 -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=FepkuaMI2E0UPC3u5jnuq0Z4zznACFIsmRE29I20zT4=; b=vA+YadHRzPiZ920qQWf6itnhO6cSlzRKGuvpku8VZtT0Uqiz+NwyEt4u1SNE8hc5Gd 3fiOKtPTqIImMKKkKPlIFip3/X4egE1tGJeZoJ67NcKvNMeeSGF9du3e7p3Xec16v58R s2GL9rbaQTK18Xzy4IVsoqNNwxN5vshCpTT5Lzp+BeL3lnsJLo6YB7rExN13MZsG7/CQ W4UVAda0tc0DjmKQcJTcVVKRGspWmgL9hLwh9q6vO1pvXvtV8GI8SA3rhzN1P9Rw5zZY 31eU62nQV2RnUvTT6cH3UjtGs9kB497qC1Q6CJw0PMTTCUfLj4RYtCGSkn33rxBGS3I1 l3OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FepkuaMI2E0UPC3u5jnuq0Z4zznACFIsmRE29I20zT4=; b=dOetmI6PYbbHnomx22YMINeJBB+YqTCFC4XBLKXfsZuAFxmSwedqAFwTr7tbxlgITM N+a1rP6pfh5Vm5fxqq30zn7cRD7Z3gmo5QBh/KrlmyJKNE4IBBKjh+VDZJPbJaMvV35S uIwWLz1mdNbfK2cmI4T5BN2Ii8owi8TL0lzeNZJphkpBJxmiPiNQKyfFJ3c0PMhkAsGx +Yey8hD6J4EoHZbkn6NBTI/ouvUp2JsLN+Z7k9qtJrliEJ+f1jjnLMDSvrXmGTNCmRz1 0BNSk8Kp5QSZvwzH0Evj6yu9rrDJJx2TjmhmOnu29QtagQ9BrL0C+UvTd1kGFvDb8W0w 7OGA== X-Gm-Message-State: AOAM532mS2rHQTsHO0zxsbX/6yllURQC02oYgEKaZFT9iaNwXNIR9o5j qnN39qoE+58PO6N5guy/emSchcAMpmEps/rjWirgNA== X-Google-Smtp-Source: ABdhPJzSklHE2PEylrgMnWrf65WLYMvroWGO2JaHYj9wv9SCkHxG+y59KeRCyqzJbEZxRSlsELsaDB97OqqkhPeFuuI= X-Received: by 2002:a9d:a42:: with SMTP id 60mr8513360otg.179.1639092625198; Thu, 09 Dec 2021 15:30:25 -0800 (PST) MIME-Version: 1.0 References: <1638850665-9474-1-git-send-email-wellslutw@gmail.com> <1638850665-9474-2-git-send-email-wellslutw@gmail.com> In-Reply-To: <1638850665-9474-2-git-send-email-wellslutw@gmail.com> From: Linus Walleij Date: Fri, 10 Dec 2021 00:30:13 +0100 Message-ID: Subject: Re: [PATCH v3 1/2] dt-bindings: pinctrl: Add dt-bindings for Sunplus SP7021 To: Wells Lu Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, wells.lu@sunplus.com, dvorkin@tibbo.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 7, 2021 at 5:17 AM Wells Lu wrote: > Add dt-bindings header files and documentation for Sunplus SP7021 SoC. > > Signed-off-by: Wells Lu > +patternProperties: > + '-pins$': > + if: > + type: object > + then: > + description: | > + A pinctrl node should contain at least one subnodes representing the > + pins or function-pins group available on the machine. Each subnode > + will list the pins it needs, and how they should be configured. > + > + Pinctrl node's client devices use subnodes for desired pin > + configuration. Client device subnodes use below standard properties. I don't understand this if type object stuff here, Rob, help... > + properties: > + pins: > + description: | > + Define pins which are used by pinctrl node's client device. (...) > + $ref: /schemas/types.yaml#/definitions/uint32-array Why can this not $ref the standard binings in Documentation/devicetree/bindings/pinctrl/pinmux-node.yaml See for example Documentation/devicetree/bindings/pinctrl/actions,s500-pinctrl.yaml for a nice example of how to use this. Yours, Linus Walleij