Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp110317pxa; Fri, 31 Jul 2020 07:37:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyN26Q0YVqeRTfanOn1SJ5SdgA4DlnBjcK3uR8AMcWIRifjyF1VWh1l8oZfwzhOccL4A0yg X-Received: by 2002:aa7:d7d7:: with SMTP id e23mr3979715eds.347.1596206242974; Fri, 31 Jul 2020 07:37:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596206242; cv=none; d=google.com; s=arc-20160816; b=Qk3DLwa4ZTb8H66Q0WAOAFxlZpSM7yZTrehQ/FCO/pJ/fKUOiHlJhaptholpRMXBXM w2dIiZeNQF6VShSkM9Coyi35dQ61ifiBbrcwzA5l0jY3JbvqtXE8xl+b5Luvt3CmUenK gYV6yJ8bwd0vEyNeyiiOwvjdOI7SbVSyZh9eUb7saH3K4hInB3LmV5c9bTjRYZAkCZiY 7Hg8SwNbrPvwIDudlJazIqugYdHhRo1HQYcx2GbM5m9gZZhWu3GNRhBb11W0AuhNlCMT j6MNPA1mIVLe7Z2SN022ShgJtWYllbHzbZPRj+eKjtG3Q5ESu1m4p7DEp2rTIcVcfTDb Pd0g== 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:from:references:cc:to:subject:dkim-signature; bh=GRu9XzAMRe4+pci8Uhro7LyH72wWLts+VnuOKHzpVv8=; b=FJ0punhFmhQiC3EPG3cNB9gNnntd8Uy4B6H7JvpAERgO1uRI98wJlsGDICV97cAqUW WSlPaafisSO4YxY0Iw0Mgi+Uf97ugbREfheVwrPUs6tVV5XxiOcvG2i2cI8BMUf6Vg4t 5eY9CKPuXpzgdMCcvl7n2kFm8vYocorO301eepwgWGmLPa23viRdWZATqbQ5NNsTXggZ /R+j49LZtwjCLjQYvqDHbM+VmM609q8uj3EBYgUBXEZMJ6ZSTj1jakRPW5jKNdG18Nz9 6c4tl9BH2n7YR6DTWXJghBCsY50+DbSa0s2fi8FEdGajwfbi7p8raVwqlj6JKZuMvOdU sFaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=WoRuLYGX; 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 x23si2800962eju.37.2020.07.31.07.37.00; Fri, 31 Jul 2020 07:37:22 -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=WoRuLYGX; 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 S1729511AbgGaOgj (ORCPT + 99 others); Fri, 31 Jul 2020 10:36:39 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:51630 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728961AbgGaOgi (ORCPT ); Fri, 31 Jul 2020 10:36:38 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 06VEZUqm112601; Fri, 31 Jul 2020 09:35:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1596206130; bh=GRu9XzAMRe4+pci8Uhro7LyH72wWLts+VnuOKHzpVv8=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=WoRuLYGXbjzuuoqKVAWXrgHgTQTEY7FKptdrHeOuhCdEEDSnEh5Uvs1P1yMO11DKa 7KJZxf8ZxVKQ/knSJ3RkD9zxrm63AJqFcaeEvvhtn5PQjTW7bjdzywXVFDILttLDwa waJCyQdaKkEevxWywh0ZYVyvUjRGLhxU4oBG2zsE= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 06VEZUdk110843 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 31 Jul 2020 09:35:30 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Fri, 31 Jul 2020 09:35:30 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE103.ent.ti.com (10.64.6.24) 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; Fri, 31 Jul 2020 09:35:30 -0500 Received: from [10.250.34.248] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 06VEZTnO047666; Fri, 31 Jul 2020 09:35:29 -0500 Subject: Re: [PATCH v4 1/5] dt-bindings: irqchip: Add PRU-ICSS interrupt controller bindings To: Grzegorz Jaszczyk , David Lechner CC: , , Marc Zyngier , , Lee Jones , , , , , "Bajjuri, Praneeth" , "Andrew F . Davis" , Roger Quadros References: <1595927918-19845-1-git-send-email-grzegorz.jaszczyk@linaro.org> <1595927918-19845-2-git-send-email-grzegorz.jaszczyk@linaro.org> <01bac597-c1a0-1851-b630-a79929777a16@lechnology.com> <19fbf4f6-ea75-3eb7-7e95-c7c9ce987996@lechnology.com> From: Suman Anna Message-ID: <36a1157e-4f59-9de5-c9d8-05bcdd67e125@ti.com> Date: Fri, 31 Jul 2020 09:35:29 -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: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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 David, On 7/31/20 9:16 AM, Grzegorz Jaszczyk wrote: > On Fri, 31 Jul 2020 at 16:09, David Lechner wrote: >> >> On 7/31/20 6:48 AM, Grzegorz Jaszczyk wrote: >>> On Wed, 29 Jul 2020 at 19:34, David Lechner wrote: >>>> It is not clear what the meaning of each cell is. Looking at later patches, it >>>> looks like the first cell is the PRU system event number, the second cell is the >>>> channel and the third cell is the host event number. >>> >>> Ok, how about updating above description like this: >>> Client users shall use the PRU System event number (the interrupt source >>> that the client is interested in) [cell 1], PRU channel [cell 2] and PRU >>> host_intr (target) [cell 3] as the value of the interrupts property in their >>> node. The system events can be mapped to some output host interrupts through 2 >>> levels of many-to-one mapping i.e. events to channel mapping and channels to >>> host interrupts so through this property entire mapping is provided. >> >> Cell 3 is host_intr0-7? How would we map to other host events? > > Again this is due to misleading TRM nomenclature: host_intr vs host > interrupts (one that we discuss in patch #2). I will use "and PRU host > event (target) [cell 3]...". Sorry for my mistake. Idea is to do the event mapping for other host interrupts using the irq_create_fwspec_mapping() function from the PRU remoteproc driver. We can't use DT to represent them, or atleast can't use "interrupts" property for them since they are not targeted towards the Linux host processor. regards Suman