Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp849156pxv; Wed, 14 Jul 2021 17:25:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxe3RMsc6LkxD9hOllHdQUqCAIvcrUXv17bGJApQZOfnR+bzVIhLFXyNrlEstzKUTCgr/6 X-Received: by 2002:a02:628b:: with SMTP id d133mr762864jac.27.1626308734105; Wed, 14 Jul 2021 17:25:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626308734; cv=none; d=google.com; s=arc-20160816; b=vH0vHWTIoooVQmg+at2r6Oa5kryspyBbf7mSFPAW7gOJibuq+n+0Cv4n0pLE9GTIuV y5tGJzMZ8xjzWrzP7k2C9jg84YA2LkZVciAzoI1bJY0EXUBczLRXGoeyH5m8+6USag1s rACusc53EIS2Lp4FrSUaYhLk1hPEGscB6RTwZNaYKJfhnSyVRFovXhEVhtHFtos5cGAG WLM0r86tsmh8MY8kSlE+h9jXsxTTM8sxgyVKPpCjGDskeRqEbOw3WfkyRmvVfkJzjk8s p5K6Dg1ENrfI7tdTO7aW9GvFQeEr7+ZV2z6YlfCz2b0l+wdK2m8cqDintSy8Qlt0d1yv MTaA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=YLUvGWBUmjKSetxSon9JscWVz0P9qvwgt8I5+BcK8F0=; b=DOOhrkP9Cmd0mnTMzqH3yTP7zM8hEVtrMJD85jAd6jeIsHW1ctq/p51YdrLTQVYoCU BxI7lWRDclPF6W7lDg+FUjVCII3LDIYxswTd6iyOdAcUK4bLBcId03YHYRNFa5FNJ8tR /EpCxpNQVDJPNlSuVwqxxXESF9EWev2+EihDKAwZh/Ikqaq0epZkxf+rBIFwbnSc3W/4 smblFXhfS7qWux5KjI4ipBRb5iLlduSlrDLWJ1uEy5u8H106Y54PEI+2mjaf1XASsOZz QyKim/rRVKp2uSDwgm/IwzcBGVrrzFKBCUd3Mv/ks0Onovt+T4S7/b1Wl2zYWkj6TrTP FPcQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id t11si4731932jan.92.2021.07.14.17.25.22; Wed, 14 Jul 2021 17:25:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S237425AbhGNXM5 (ORCPT + 99 others); Wed, 14 Jul 2021 19:12:57 -0400 Received: from mail-io1-f43.google.com ([209.85.166.43]:41771 "EHLO mail-io1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229928AbhGNXM4 (ORCPT ); Wed, 14 Jul 2021 19:12:56 -0400 Received: by mail-io1-f43.google.com with SMTP id z9so4145489iob.8; Wed, 14 Jul 2021 16:10:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=YLUvGWBUmjKSetxSon9JscWVz0P9qvwgt8I5+BcK8F0=; b=sUYyjKG7LNGsMOJri5o1pFOak7pByiK8+rEKFE46hVgTu5MPLkL72pzdyaF6zbWlfC A2bQsq6CnscZV1GL94Qc71dkv8Y9cZFM8RbhrATmaEP9ex88n71wwBrV17KsjtmxS7xt R6MxwTjbm/IdCpuj/ipo2ohE12BuprdBLMr6BhzHoUa9CTLcKsIMSNf5xoN/0U4vE5SF YYjZHZMJU8qS+Od81VboGd9HFANUIQ9BQ0zi6Ow/ZWl5l/M4DPs9NdlH1F0uOHCTHMW9 WYSvx1FQojOAtFPNdFuoc7h5cK28FqfTzpFsrraH4mdslu0G8PW+V17x2G6YZzOH93XK +fXg== X-Gm-Message-State: AOAM530OhwWiVtn0IIzvZXLfqVqZIuzWz1aw5dVnvjPbo6c7ICdgVUEW 738H961slHD+RQC6MABsGg== X-Received: by 2002:a05:6638:289:: with SMTP id c9mr571973jaq.14.1626304202707; Wed, 14 Jul 2021 16:10:02 -0700 (PDT) Received: from robh.at.kernel.org ([64.188.179.248]) by smtp.gmail.com with ESMTPSA id u13sm1964286iot.29.2021.07.14.16.10.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jul 2021 16:10:02 -0700 (PDT) Received: (nullmailer pid 3713794 invoked by uid 1000); Wed, 14 Jul 2021 23:10:00 -0000 Date: Wed, 14 Jul 2021 17:10:00 -0600 From: Rob Herring To: Dmitry Osipenko Cc: Thierry Reding , Jonathan Hunter , Mark Brown , Sebastian Reichel , Peter Chen , Greg Kroah-Hartman , Felipe Balbi , David Heidelberg , devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org Subject: Re: [PATCH v3 02/12] dt-bindings: phy: tegra20-usb-phy: Document properties needed for OTG mode Message-ID: <20210714231000.GB3697673@robh.at.kernel.org> References: <20210704225433.32029-1-digetx@gmail.com> <20210704225433.32029-3-digetx@gmail.com> <20210712154139.GB1980362@robh.at.kernel.org> <8fe56e89-9e1e-f5e2-5a47-242b5b3d085a@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8fe56e89-9e1e-f5e2-5a47-242b5b3d085a@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 13, 2021 at 02:33:11AM +0300, Dmitry Osipenko wrote: > 12.07.2021 18:41, Rob Herring пишет: > >> + nvidia,pmc: > >> + $ref: /schemas/types.yaml#/definitions/phandle > >> + description: > >> + Phandle to Power Management controller. > >> + > > Add a cell to this for the PHY reg offset and then get rid of the index: > > > >> + nvidia,phy-instance: > >> + $ref: /schemas/types.yaml#/definitions/uint32 > >> + minimum: 0 > >> + maximum: 2 > >> + description: Unique hardware ID. > > The instance ID belongs to the USB h/w and not to PMC. It may look like > I added the ID just to get offsets within PMC, but it's not like that. > The Tegra documentation explicitly assigns unique IDs to the USB > controllers and PHYs. Hence this ID should be the property of the PHY > hardware, IMO. It looks like the use is calculating register offsets in a PMC register. That's quite common and including that with the phandle is the preferred way to describe it. Lots of docs have UART1, UART2, UART3, etc. module numbering. We don't copy that into DT. Rob