From mboxrd@z Thu Jan 1 00:00:00 1970 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 42315C77B6F for ; Wed, 12 Apr 2023 14:29:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231167AbjDLO3P (ORCPT ); Wed, 12 Apr 2023 10:29:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230148AbjDLO3O (ORCPT ); Wed, 12 Apr 2023 10:29:14 -0400 Received: from mail-oo1-f54.google.com (mail-oo1-f54.google.com [209.85.161.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AF9A7EC9; Wed, 12 Apr 2023 07:29:05 -0700 (PDT) Received: by mail-oo1-f54.google.com with SMTP id s19-20020a4adb93000000b00540fa505f2dso5152339oou.7; Wed, 12 Apr 2023 07:29:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681309745; x=1683901745; 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=k176WWn9jx2u9/R85lUvqY1542CwXWfLfbsNq5SxUZA=; b=WAEoo10EWeC1aTXu+75mqlZHrXkBVH3Cdzpy7HQP8NjHc+4BmggcstgyFrJFXssniZ EFtMRmXE1Sxh4kVle0RkfWJdsNBNxJCSYzhr0CvzgotYS8d5FRoVBLIt9Br7pozWli+Y 07Zr821IdPWJlN9q4hB3jAfOBEW0n1dIbPUcdWJQAi9OIC8VazYraon+vyMO+Xk+NZ0m gJVus5wcjadtrMaEJtSElHxge7IGk5CDQ6ls34wCeJ98j6KGf8o0294zhMuuW0KZQoGz UHeHUMfia4ncVQIMfED+SaW+PS+O+bipddDD+kGByKkS/afgthPWNJC3/XN8mtMX0DaH fyoQ== X-Gm-Message-State: AAQBX9eyT1TzmjPMKzl4MGTfcthrZFeO5BDVKsE4tHOZFsfEoPyg+dJD KJJmadsQwk2q6aFfaPwEyA== X-Google-Smtp-Source: AKy350aF8ET7xIUWcuvk3rOrrw4hKxuH7IjNvt/FtHfQ6zrFgjNr7B6n7Hn/lJZWMWfntV16LOmy/w== X-Received: by 2002:a4a:8902:0:b0:541:f866:7548 with SMTP id f2-20020a4a8902000000b00541f8667548mr1040877ooi.1.1681309744774; Wed, 12 Apr 2023 07:29:04 -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 j41-20020a4a88ac000000b0053b88b03e24sm7061927ooa.18.2023.04.12.07.29.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Apr 2023 07:29:04 -0700 (PDT) Received: (nullmailer pid 2318194 invoked by uid 1000); Wed, 12 Apr 2023 14:29:03 -0000 Date: Wed, 12 Apr 2023 09:29:03 -0500 From: Rob Herring To: Dipen Patel Cc: thierry.reding@gmail.com, jonathanh@nvidia.com, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, linux-gpio@vger.kernel.org, linus.walleij@linaro.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, timestamp@lists.linux.dev, krzysztof.kozlowski+dt@linaro.org, brgl@bgdev.pl, corbet@lwn.net, gregkh@linuxfoundation.org Subject: Re: [V5 04/10] dt-bindings: timestamp: Add nvidia,gpio-controller Message-ID: <20230412142903.GA2313008-robh@kernel.org> References: <20230406171837.11206-1-dipenp@nvidia.com> <20230406171837.11206-5-dipenp@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230406171837.11206-5-dipenp@nvidia.com> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Thu, Apr 06, 2023 at 10:18:31AM -0700, Dipen Patel wrote: > The tegra always-on (AON) GPIO HTE/GTE provider depends on the AON > GPIO controller where it needs to do namespace conversion between GPIO > line number (belonging to AON GPIO controller instance) and the GTE > slice bits. The patch introduces nvidia,gpio-controller property to > represent that dependency. > > Signed-off-by: Dipen Patel > Reviewed-by: Linus Walleij > --- > .../timestamp/nvidia,tegra194-hte.yaml | 36 ++++++++++++++++--- > 1 file changed, 31 insertions(+), 5 deletions(-) > > diff --git a/Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml b/Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml > index 855dad3f2023..66eaa3fab8cc 100644 > --- a/Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml > +++ b/Documentation/devicetree/bindings/timestamp/nvidia,tegra194-hte.yaml > @@ -51,6 +51,12 @@ properties: > LIC instance has 11 slices and Tegra234 LIC has 17 slices. > enum: [3, 11, 17] > > + nvidia,gpio-controller: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: > + The phandle to AON gpio controller instance. This is required to handle > + namespace conversion between GPIO and GTE. > + > '#timestamp-cells': > description: > This represents number of line id arguments as specified by the > @@ -59,6 +65,12 @@ properties: > mentioned in the nvidia GPIO device tree binding document. > const: 1 > > +required: > + - compatible > + - reg > + - interrupts > + - "#timestamp-cells" > + > allOf: > - if: > properties: > @@ -94,11 +106,15 @@ allOf: > nvidia,slices: > const: 17 > > -required: > - - compatible > - - reg > - - interrupts > - - "#timestamp-cells" > + - if: > + properties: > + compatible: > + contains: > + enum: > + - nvidia,tegra234-gte-aon > + then: > + required: > + - nvidia,gpio-controller Adding a new required property is an ABI break. But you just added this in patch 2. If this is required as part of nvidia,tegra234-gte-aon support, then it should all be 1 patch. > > additionalProperties: false > > @@ -112,6 +128,16 @@ examples: > #timestamp-cells = <1>; > }; > > + - | > + tegra234_hte_aon: timestamp@c1e0000 { > + compatible = "nvidia,tegra234-gte-aon"; > + reg = <0xc1e0000 0x10000>; > + interrupts = <0 13 0x4>; > + nvidia,int-threshold = <1>; > + nvidia,gpio-controller = <&gpio_aon>; > + #timestamp-cells = <1>; > + }; > + Really need a whole other example for 1 property? > - | > tegra_hte_lic: timestamp@3aa0000 { > compatible = "nvidia,tegra194-gte-lic"; > -- > 2.17.1 >