Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp28577rwi; Wed, 2 Nov 2022 09:01:47 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4GDVodxgMcjtPMBUhuG/N+nX+X9OhHDO+owOlvjA5hnrhxNfYNSXfqT+WiOUM38HKCjgim X-Received: by 2002:a17:907:2dab:b0:78d:fc4b:7e31 with SMTP id gt43-20020a1709072dab00b0078dfc4b7e31mr23291335ejc.531.1667404906970; Wed, 02 Nov 2022 09:01:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667404906; cv=none; d=google.com; s=arc-20160816; b=SceMS3P3oV2Zd09kHtJCtnHgsD4jQr+m/6Q4OlsTg/K2ZZ9gNl24s7RLpv1iPbKI4q b4KRDR1ZMAzd/YnVIW2979w5afmOEaHJbO7HseCWC103pDJEl1vVanmgg4Amjp++wjBw TFcRHOsE/Zo+aGcX8AnWOciY9vHq6TcCqWCSx8l6BoUMGVcJitOOh0NgPE7kaEi585vD mbFThwNYAOw0lmb7Y1evEgdT2fe9911bovdsQrEd35It6we1uVCWpB5vyysEYY6Wa3mu AQztB5gwI+0IYRU+hiZXh80DlLDyGJeNUgnp0ygqjkrO76aAbKeqMXGXvKlrMwtoSiJt peAg== 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=MK3UVrAsoEazhaDhY6mHs9+uO9hdI5iIrEDX4RIM6wM=; b=nKjnleYhUenUFnSHeFsJfXZRhX0UVXI3eXDbqLJlRPlNfZ2Atrk3jy+OOeTr0bUxiJ RRhlIzwXdqX3SVaZypEKVtaowS1i0VSCX3u5oFz5mNMkcJPcshkDE6Ha8dqt/Mj6MWfZ XwvwrhpLECCnnrgBrB7K2YIWBy8xXUIawEiv0x/wqOkAhQ2582frRpwYCUPA226r5dnL C27MY3ok68U9kGy5O+OO8tJcCFcXNAWf1ekdwzQr5PoPz+Qa0K826Ofc2EtF/dLvgPpY FopGJfAkWKOHPSpP6v0r4RVfVnkgrr7GwVRlRMVhl9Zmi9fa51wIZPTJqOKDjCUl1GZf NjXA== 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:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p34-20020a056402502200b0045217702054si14154391eda.501.2022.11.02.09.01.04; Wed, 02 Nov 2022 09:01:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230296AbiKBPtF (ORCPT + 98 others); Wed, 2 Nov 2022 11:49:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229591AbiKBPtD (ORCPT ); Wed, 2 Nov 2022 11:49:03 -0400 Received: from mail-oi1-f180.google.com (mail-oi1-f180.google.com [209.85.167.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9ECB828705; Wed, 2 Nov 2022 08:49:02 -0700 (PDT) Received: by mail-oi1-f180.google.com with SMTP id v81so10927056oie.5; Wed, 02 Nov 2022 08:49:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=MK3UVrAsoEazhaDhY6mHs9+uO9hdI5iIrEDX4RIM6wM=; b=gigAia1dXed5tVm23HK58GhQBgTWX1ZGiuJoXn5yrPCP+yCtqedpADr3akfnRw+qDG SqGyOW/ElttBLJDVCk3MjpOZ4WahAYYjFhNKjqPGYEH4qs1+ghPD0z+OBMZSdZvd7I0s 7BnDKF5SYhQV8iCgmzqKUd8IqQMhuM0PeMrFBmev/XPWu+pueh3W0q2O2Y9SkRVvqC1A XSjGQs4wozgrNNeDsrnO3XfTUKoeqo8pRXk3XhkvDM5+vJ0SYhTh1EVjBVNymzcM4Vhn 7UOmuLwN+DU7r2sebG6jq8A68jDlLNOVgD6ZwI5yLn0nD5q+sG+CWN55p21G2P6pg2H2 GHDg== X-Gm-Message-State: ACrzQf3s2CU28PocR6tfcFAVAqMlBdeRxPfyG3NTIXMfbkHJcSI9RFRG vLeElxmnTe/66YqywfVLNw== X-Received: by 2002:a05:6808:41:b0:359:fe9f:49d8 with SMTP id v1-20020a056808004100b00359fe9f49d8mr10334426oic.148.1667404141774; Wed, 02 Nov 2022 08:49:01 -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 d1-20020a4aeb81000000b00480fd9f311esm4606347ooj.13.2022.11.02.08.49.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Nov 2022 08:49:01 -0700 (PDT) Received: (nullmailer pid 3959461 invoked by uid 1000); Wed, 02 Nov 2022 15:49:03 -0000 Date: Wed, 2 Nov 2022 10:49:03 -0500 From: Rob Herring To: Chester Lin Cc: Linus Walleij , Krzysztof Kozlowski , s32@nxp.com, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Larisa Grigore , Ghennadi Procopciuc , Andreas =?iso-8859-1?Q?F=E4rber?= , Matthias Brugger Subject: Re: [PATCH 1/2] dt-bindings: pinctrl: add schema for NXP S32 SoCs Message-ID: <20221102154903.GA3726664-robh@kernel.org> References: <20221031100843.14579-1-clin@suse.com> <20221031100843.14579-2-clin@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221031100843.14579-2-clin@suse.com> X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS 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, Oct 31, 2022 at 06:08:42PM +0800, Chester Lin wrote: > Add DT schema for the pinctrl driver of NXP S32 SoC family. > > Signed-off-by: Larisa Grigore > Signed-off-by: Ghennadi Procopciuc > Signed-off-by: Chester Lin > --- > .../pinctrl/nxp,s32cc-siul2-pinctrl.yaml | 91 +++++++++++++++++++ > 1 file changed, 91 insertions(+) > create mode 100644 Documentation/devicetree/bindings/pinctrl/nxp,s32cc-siul2-pinctrl.yaml > > diff --git a/Documentation/devicetree/bindings/pinctrl/nxp,s32cc-siul2-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/nxp,s32cc-siul2-pinctrl.yaml > new file mode 100644 > index 000000000000..eafb9091cbf7 > --- /dev/null > +++ b/Documentation/devicetree/bindings/pinctrl/nxp,s32cc-siul2-pinctrl.yaml > @@ -0,0 +1,91 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +# Copyright (c) 2022 NXP > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/pinctrl/nxp,s32cc-siul2-pinctrl.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: NXP S32 Common Chassis SIUL2 iomux controller > + > +maintainers: > + - Ghennadi Procopciuc > + - Chester Lin > + > +description: | > + Core driver for the pin controller found on S32 Common Chassis SoC. > + > +properties: > + compatible: > + enum: > + - nxp,s32g-siul2-pinctrl > + > + reg: > + minItems: 5 > + maxItems: 6 > + description: A list of register regions to be reserved. Need to be explicit about what each entry is. > + > + nxp,pins: > + $ref: /schemas/types.yaml#/definitions/uint32-array > + description: > + A list of [start, end] pin ID boundaries that correspond to each of > + the register regions reserved. Looks like a matrix rather than an array. > + > +required: > + - compatible > + - reg > + - nxp,pins > + > +patternProperties: > + '_pins$': s/_/-/ > + type: object additionalProperties: false (and a blank line after) > + patternProperties: > + '_grp[0-9]$': s/_/-/ > + type: object > + allOf: > + - $ref: pinmux-node.yaml# > + - $ref: pincfg-node.yaml# unevaluatedProperties: false > + description: > + Pinctrl node's client devices specify pin muxes using subnodes, > + which in turn use the standard properties below. > + > +additionalProperties: false > + > +examples: > + - | > + > + pinctrl: siul2-pinctrl@4009c240 { pinctrl@... > + compatible = "nxp,s32g-siul2-pinctrl"; > + > + /* MSCR range */ > + reg = <0x4009c240 0x198>, > + <0x44010400 0x2c>, > + <0x44010480 0xbc>, > + /* MSCR range */ > + <0x4009ca40 0x150>, > + <0x44010c1c 0x45c>, > + <0x440110f8 0x108>; What is in these holes in the memory map? Is this part of some larger block? If so, that block needs to be described. > + > + /* MSCR range */ > + nxp,pins = <0 101>, > + <112 122>, > + <144 190>, > + /* IMCR range */ > + <512 595>, > + <631 909>, > + <942 1007>; > + > + llce_can0_pins { > + llce_can0_grp0 { > + pinmux = <0x2b0>; > + input-enable; > + slew-rate = <0x00>; > + }; > + > + llce_can0_grp1 { > + pinmux = <0x2c2>; > + output-enable; > + slew-rate = <0x00>; > + }; > + }; > + }; > +... > -- > 2.37.3 > >