Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp37216ybh; Tue, 21 Jul 2020 15:45:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZj7vq0Wi4gV+ToZmQg/psT30ECOfMgrxXopuHz+6MgRlhApRegJAU51ErvSTxKiMc+J8h X-Received: by 2002:a05:6402:1c07:: with SMTP id ck7mr28364066edb.297.1595371546928; Tue, 21 Jul 2020 15:45:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595371546; cv=none; d=google.com; s=arc-20160816; b=RDMvPVJ9jwbHSvsuR/qWLEatercVCCPTjzTUmyuSW9MdK9/cRm1A/iAK0bwkVZE36d jq/PqjytY+8bIZiKDU5dcdXLoFBLyhw3KMc3LV2b0BEDDENZrB7ZdEaJrget9ODJjfRI 7VGEzUMWdtZPJELYkgRrOVJTSm16MC5wOKEWo4548cznhugnmK6Pw92dXpTe8APjcWDy J4V9dDqjMVsTcjd98VL7CSPUtgF9FdWGCSTsizS6SFdglH2AqZzJ36MAaLOkwUrlZeid TxxBFg4cQcRzfSpfYO7a24O71+r9AY34nv1ZU6X64Pqb1gfMWwwadlVNMBoMLbdPODIg OgEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature; bh=o5pfuOZQ3v8bqEF5rP8SfpEUPbWc47QiCm/8pv3TAyE=; b=AdELgCeqlpNqOXSB/F35qXBiYfoAm3XNDuYJkSrHV/oIAx53JmEjYF0PFmONq1Ih42 490f2Uitco8cuUJ4v9bnkVBhSm+K0CPpEsUwhkhgpQRK4TN8S5h06qpe+lw/sO1zLI/c ekfLgkVxJ1e/BrKFIWgTAImdZ6590//81zDeqwRmZTqNoyOoGZFo26bC+5lZFqZUEk0j ljRSQ5tkKWIwkPv+GON4yaUBhzzUMLPpsG3XhzwWLYGrEi0mqpbCTYLg8ccTUFSD5JKg 6/14DNb7FpWNgdczdUghKEnP1GEp0pSV9nl1WE3HQaTbzzAJqeSmgPcAEaBci4cp8HLF niVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=vHj4iN6V; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rl28si12484089ejb.353.2020.07.21.15.45.24; Tue, 21 Jul 2020 15:45:46 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=vHj4iN6V; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731348AbgGUWoK (ORCPT + 99 others); Tue, 21 Jul 2020 18:44:10 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:39932 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728893AbgGUWoK (ORCPT ); Tue, 21 Jul 2020 18:44:10 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 06LMi57v102668; Tue, 21 Jul 2020 17:44:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1595371445; bh=o5pfuOZQ3v8bqEF5rP8SfpEUPbWc47QiCm/8pv3TAyE=; h=Subject:From:To:CC:References:Date:In-Reply-To; b=vHj4iN6ViSlXKMm/c8wbLFymdX0NvGMIN5Jr3YL1BjqHK7w7jjnAD9DsAges+dtUi IzkyB2YDAnQzCjzxjH5hIBa5ETJK6K+58RApTwxs0f2+BFkxt32VyPcoMhGgSuL8rr S6X4xBE0vYoc0iYQeCBGvSYvubw7OnNwXvfGsXjw= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 06LMi5g5067639 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 21 Jul 2020 17:44:05 -0500 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Tue, 21 Jul 2020 17:44:04 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Tue, 21 Jul 2020 17:44:05 -0500 Received: from [10.250.34.248] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 06LMi45V028193; Tue, 21 Jul 2020 17:44:04 -0500 Subject: Re: [PATCH v4 3/6] dt-bindings: remoteproc: Add common TI SCI rproc bindings From: Suman Anna To: Rob Herring , Lokesh Vutla CC: Bjorn Andersson , Mathieu Poirier , "open list:REMOTE PROCESSOR (REMOTEPROC) SUBSYSTEM" , , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "linux-kernel@vger.kernel.org" References: <20200717234800.9423-1-s-anna@ti.com> <20200717234800.9423-4-s-anna@ti.com> <647642d5-5021-363f-c9c9-3714a826436c@ti.com> Message-ID: Date: Tue, 21 Jul 2020 17:44:04 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <647642d5-5021-363f-c9c9-3714a826436c@ti.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On 7/21/20 11:40 AM, Suman Anna wrote: > Hi Rob, > > On 7/21/20 10:53 AM, Rob Herring wrote: >> On Fri, Jul 17, 2020 at 5:48 PM Suman Anna wrote: >>> >>> Add a bindings document that lists the common TI SCI properties >>> used by the K3 R5F and DSP remoteproc devices. >>> >>> Signed-off-by: Suman Anna >>> --- >>> v4: Addressed both of Rob's review comments on ti,sci-proc-ids property >>> v3: https://patchwork.kernel.org/patch/11602317/ >>> >>>   .../bindings/remoteproc/ti,k3-sci-proc.yaml   | 48 +++++++++++++++++++ >>>   1 file changed, 48 insertions(+) >>>   create mode 100644 >>> Documentation/devicetree/bindings/remoteproc/ti,k3-sci-proc.yaml >>> >>> diff --git >>> a/Documentation/devicetree/bindings/remoteproc/ti,k3-sci-proc.yaml >>> b/Documentation/devicetree/bindings/remoteproc/ti,k3-sci-proc.yaml >>> new file mode 100644 >>> index 000000000000..0dca2ffdbc48 >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/remoteproc/ti,k3-sci-proc.yaml >>> @@ -0,0 +1,48 @@ >>> +# SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause) >>> +%YAML 1.2 >>> +--- >>> +$id: http://devicetree.org/schemas/remoteproc/ti,k3-sci-proc.yaml# >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>> + >>> +title: Common TI K3 remote processor device bindings >>> + >>> +maintainers: >>> +  - Suman Anna >>> + >>> +description: | >>> +  The TI K3 family of SoCs usually have one or more remote processor >>> sub-systems >>> +  like the dual-core R5F sub-system or a C66x or C71x DSP processor >>> subsystem. >>> +  The device management of these remote processors is managed by a >>> dedicated >>> +  System Processor, and the communication with that processor is >>> managed through >>> +  the TI-SCI protocol. >>> + >>> +  Each remote processor device node should define a common set of >>> properties >>> +  that allows the System Processor firmware to perform the device >>> management >>> +  such as powering the IPs, asserting/deasserting the resets for >>> each of these >>> +  processors. >>> + >>> +properties: >>> +  ti,sci: >>> +    $ref: /schemas/types.yaml#/definitions/phandle >>> +    description: >>> +      Should be a phandle to the TI-SCI System Controller node >>> + >>> +  ti,sci-dev-id: >>> +    $ref: /schemas/types.yaml#/definitions/uint32 >>> +    description: | >>> +      Should contain the TI-SCI device id corresponding to the >>> remote processor >>> +      core. Please refer to the corresponding System Controller >>> documentation >>> +      for valid values. >> >> These also apply on Lokesh's series converting ti,sci-int[ra] >> bindings. Please rework to use for both. > > OK. OK, I have reworked for this and posted it [1] as part of v5 of this series. regards Suman [1] https://patchwork.kernel.org/patch/11676821/ > >> >>> + >>> +  ti,sci-proc-ids: >>> +    description: Should contain a single tuple of . >>> +    $ref: /schemas/types.yaml#/definitions/uint32-array >>> +    items: >>> +      - description: TI-SCI processor id for the remote processor >>> device >>> +      - description: TI-SCI host id to which processor control >>> ownership >>> +                     should be transferred to > > This property is not required for the ti,sci-int[ra]. > > I can plan to move this to a common location like > Documentation/devicetree/bindings/arm/keystone/ and let the individual > bindings define the required properties. Does that sound ok to you? > > regards > Suman > >>> + >>> +required: >>> +  - ti,sci >>> +  - ti,sci-dev-id >>> +  - ti,sci-proc-ids >>> -- >>> 2.26.0 >>> >