Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp206462imp; Tue, 19 Feb 2019 21:56:10 -0800 (PST) X-Google-Smtp-Source: AHgI3IYZYmItiHsGwI+Qg9ubPWZzVfuWHm52t2Aw1EXUXgn6qiZxWpeuvRdfliaVeMv3L5J8b19p X-Received: by 2002:a62:1212:: with SMTP id a18mr33129278pfj.177.1550642170434; Tue, 19 Feb 2019 21:56:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550642170; cv=none; d=google.com; s=arc-20160816; b=at1xfxaQvSYXUQiGvr+S76nE5xGaYHGA2DjU0o+UYc4rdQMkrnZMGhJxsoiotvs4O8 MiBe9OrJM4Bzb7VU5FyO3pO/qF4mOLdLVkmMsR5OlwK6uiKmKzGlhuFwmn+3TfAwYAQW t801RpPH+aasuUHqKAUUOkD0+B1I/us8xJ3KKpLJOgDvWeaRgVnPbLE0WXZNlWj8mrMZ vzx10tklnHpk3QnTuvOM5j1dXmQA5hMHOMIKO4uBzYncR/s9iPTa9RXJgKSMoQdR6rSn h+2054vz6bzrsk5E9GGXMEz85VtddIMdUfPHNc8W2GBrdWpsLEiMXpj70Mnnd9ioii9N kNXQ== 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=sz7cGng5/KGycFJZzxpMVGsRKEFdiA/HXVdfQSBlvYQ=; b=BGugQqPKXJAFLL/WKQcttmeFw5BvCZxFAMfLw2l9z+U3TotV2YU5WejShhfpC7Bzox VwvZW+mdhFWtjnaI9Dmav6WsFIYcFqkcnr+yYTxACjA6AWcPIv0O0ZpXqpswhU7M+kmj jFsR4lfMkGAVAaAguvhO/SxUp0euH/4fguaOugPmAqsj89fk4zeVNfNW3EoICndW9CDz YxMYAZeMQZaYDzDDAdtcMIPxAe1Wf7c4eAsbd6XAa7yygtAPivMlb2NKYRlAA25Ay1V2 xGqzSJef85eg2bu0N93O2DsmqChtibv9+wxo6HysLTTeqbFAIVleTXOtH0sfnbIPE/6Q Sg9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=SRD0XwD+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id x17si13367211plr.435.2019.02.19.21.55.53; Tue, 19 Feb 2019 21:56:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=SRD0XwD+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726903AbfBTFyh (ORCPT + 99 others); Wed, 20 Feb 2019 00:54:37 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:41740 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725922AbfBTFyh (ORCPT ); Wed, 20 Feb 2019 00:54:37 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x1K5sIOZ019096; Tue, 19 Feb 2019 23:54:18 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1550642058; bh=sz7cGng5/KGycFJZzxpMVGsRKEFdiA/HXVdfQSBlvYQ=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=SRD0XwD+qiZlm16rvhAjKUOTx9ypLmSGQoptxLQGzMoya0EjpLoxx/tiV219uN5// FpSYjHkZ6P1Khsrdaa9nZRT3IQockvxRA/PDkn9V+Ms/qwxjeFvJZE3oRERyTRN2u5 rCmfnDsdq67rhc8pyFqNkeT04g0gg6RFOqrxhGuQ= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x1K5sIsM099366 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 19 Feb 2019 23:54:18 -0600 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Tue, 19 Feb 2019 23:54:18 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Tue, 19 Feb 2019 23:54:17 -0600 Received: from [172.24.190.117] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id x1K5sDjN023318; Tue, 19 Feb 2019 23:54:14 -0600 Subject: Re: [PATCH v5 05/10] dt-bindings: irqchip: Introduce TISCI Interrupt router bindings To: Tony Lindgren CC: Nishanth Menon , Device Tree Mailing List , , Peter Ujfalusi , , Sekhar Nori , , Tero Kristo , Rob Herring , Santosh Shilimkar , , Linux ARM Mailing List References: <20190214174612.GF5720@atomide.com> <171e8597-2156-747d-d024-7b4bfc6f9186@ti.com> <20190215161629.GK5720@atomide.com> <2369739e-3bc8-257a-99e0-db2951c6777d@ti.com> <20190218143245.GC15711@atomide.com> <84b3ec21-9ce9-b9a8-80a9-75001db43a90@ti.com> <20190219153537.GJ15711@atomide.com> <6aa37276-0833-fdf5-575b-c3ca14f776a6@ti.com> <20190219171104.GM15711@atomide.com> <20190219175651.GN15711@atomide.com> From: Lokesh Vutla Message-ID: <884a59a0-81e8-738e-9f26-c2b66ec71af1@ti.com> Date: Wed, 20 Feb 2019 11:23:56 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20190219175651.GN15711@atomide.com> Content-Type: text/plain; charset="utf-8" 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 Tony, On 19/02/19 11:26 PM, Tony Lindgren wrote: > * Tony Lindgren [190219 17:11]: >> * Lokesh Vutla [190219 16:19]: >>> yes. How different is this from any of the above mentioned drivers using >>> firmware specific ids. Like sci pm domain[1] driver utilizes the same >>> device id for enabling any device in the system. Similarly clock >>> driver[2] uses the same device ids and clock ids specified by firmware. >>> There are more which similarly represents firmware ids from DT. >>> >>> [1] Documentation/devicetree/bindings/soc/ti/sci-pm-domain.txt >>> [2] Documentation/devicetree/bindings/clock/ti,sci-clk.txt >> >> That's horrible. We really must not use any firmware invented >> numbers in the device as they do not describe hardware. > > No firmware invented numbers in the device tree I mean naturally. > Drivers do whatever they need to do to deal with the firmware. Let's look at these similar other examples available inside Linux: 1: ./Documentation/devicetree/bindings/arm/arm,scmi.txt mentions the following: - #clock-cells : Should be 1. Contains the Clock ID value used by SCMI commands. - #power-domain-cells : Should be 1. Contains the device or the power domain ID value used by SCMI commands. 2: Documentation/devicetree/bindings/arm/arm,scpi.txt mentions the following: - #power-domain-cells : Should be 1. Contains the device or the power domain ID value used by SCPI commands. 3: Documentation/devicetree/bindings/firmware/nvidia,tegra186-bpmp.txt the firmware specified identifier are defined in the following header files: include/dt-bindings/clock/tegra186-clock.h include/dt-bindings/power/tegra186-powergate.h include/dt-bindings/reset/tegra186-reset.h 4. Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.txt mentions the following: "Output clocks are registered based on clock information received from firmware. Output clocks indexes are mentioned in include/dt-bindings/clock/xlnx,zynqmp-clk.h." 5. Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt mentions the following: - #power-domain-cells: Must be 1. Contains the Resource ID used by SCU commands. See detailed Resource ID list from: include/dt-bindings/firmware/imx/rsrc.h - The clock consumer should specify the desired clock by having the clock ID in its "clocks" phandle cell. See the full list of clock IDs from: include/dt-bindings/clock/imx8qxp-clock. 6. Documentation/devicetree/bindings/arm/psci.txt have the following properties: - cpu_suspend : Function ID for CPU_SUSPEND operation - cpu_off : Function ID for CPU_OFF operation - cpu_on : Function ID for CPU_ON operation - migrate : Function ID for MIGRATE operation All the above examples uses the firmware identifiers for devices/clocks or for other functionalities and use them directly in DT. These are all somewhat similar to TI sysfw which runs on a micro-controller and tries to abstract certain functionalities from HLOS. There are many more such examples but I listed only a few users. The feedback you are providing is not going to work for any of the above listed firmware interfaces. Thanks and regards, Lokesh