Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6083875ybe; Tue, 10 Sep 2019 13:15:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCU02GeTI19AmsE2pPnXdvXHhFVPzyjBRXDz0qpmeSTwKA6HPHvJQmjyVuepe1MFqJYOA3 X-Received: by 2002:a50:ab49:: with SMTP id t9mr29408284edc.301.1568146554867; Tue, 10 Sep 2019 13:15:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568146554; cv=none; d=google.com; s=arc-20160816; b=nQDqHBPiRSpoh7izcgbW+7hzspxpBqIYFIlfW+CpyfxEwOL7C4LycDXRE3OhxDHel2 fTlzR/y5R1k/vyWP+tTbTMGM3IVxPh73Y1AwDKK3LDYx5f2DfKpTRwK4nm8iapfszbf1 dRAkevpXMay4jzyaanqI44EBBSDWmnQI0ABLGT1TiLOpIDST8NnSOfhXA+f5dGREIRh+ sKlOhNqhsfXKJe6kJtIGp42/y7NP01gvEPFdGG9TBb0JzFEWP0arIYPycY5VN8ni/8Cv KvmwyXUTnxpkqoKRflelnJFY97GzjtJ4w0qeaw8gAf+xBbbDsw6u7CuBIURNnByMu++R vSKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:ironport-sdr; bh=ZIQDVXoLatwUN5SJbjPWYMkFBRbGnWpmk3B9EZNOWd8=; b=qLogMDM9Z8k4Vp4coLQW039m5mH4QQiZYO83S49OdjsiV1L9GaYA026M9vzbPwcnyT cB0O5LWYl1R5zBYCcIoTlqwU9ERVKFVzXzxtyetrHb23AeCiHLnWRLU2DoOYVB1MqKb6 prfruePU+lqITu/2EvtqFmSiivGNw5qFToPJsClG7bi6kVhRW3JEjiQBpLqQ3swiTlJK cVCL+cxjx+0YhNYbhGqX+FybJUebYeB9VZ137eT5JJ8mAw9+QReAIgc2cA2O1eyJ1ukg 8nz9RbCteubwLPnfeABWHBgLXgdCWdNh63bEjcw6xCFJNO9+sZ8IWg2ManevOg5x+rE6 EUHQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e25si11036121edb.308.2019.09.10.13.15.30; Tue, 10 Sep 2019 13:15:54 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387503AbfIJNtb (ORCPT + 99 others); Tue, 10 Sep 2019 09:49:31 -0400 Received: from esa1.microchip.iphmx.com ([68.232.147.91]:26183 "EHLO esa1.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726613AbfIJNta (ORCPT ); Tue, 10 Sep 2019 09:49:30 -0400 Received-SPF: Pass (esa1.microchip.iphmx.com: domain of Claudiu.Beznea@microchip.com designates 198.175.253.82 as permitted sender) identity=mailfrom; client-ip=198.175.253.82; receiver=esa1.microchip.iphmx.com; envelope-from="Claudiu.Beznea@microchip.com"; x-sender="Claudiu.Beznea@microchip.com"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 mx a:ushub1.microchip.com a:smtpout.microchip.com a:mx1.microchip.iphmx.com a:mx2.microchip.iphmx.com include:servers.mcsv.net include:mktomail.com include:spf.protection.outlook.com ~all" Received-SPF: None (esa1.microchip.iphmx.com: no sender authenticity information available from domain of postmaster@email.microchip.com) identity=helo; client-ip=198.175.253.82; receiver=esa1.microchip.iphmx.com; envelope-from="Claudiu.Beznea@microchip.com"; x-sender="postmaster@email.microchip.com"; x-conformance=spf_only Authentication-Results: esa1.microchip.iphmx.com; dkim=none (message not signed) header.i=none; spf=Pass smtp.mailfrom=Claudiu.Beznea@microchip.com; spf=None smtp.helo=postmaster@email.microchip.com; dmarc=pass (p=none dis=none) d=microchip.com IronPort-SDR: b75I1LzCCu1/54dRZDZYIr5KSzjKbnrmgj6SHlBobZRrbpldI3euWWShMFFRXiwY5IaK2xmvSJ Cow5bZF5wc6jsyPXZ3XRjGIiMw1CCqtQIsrnqiNHMgZkyBh2RjuqjC9EjyLC6IjzcpmFVFypHa QUbjmyqCeeuTKlgffpbCLva/QhVmsXoFKiDyIS7LtMrmZvViO+3V1SNhJux1dXzQKratBoFAj/ 2u29RQufIBygo+W5hSn6h3vHkPYZrG9nAS/1rcAwqZVO8YdHoydtCqmTM4RRhrg2I5g/Hl380p 7XM= X-IronPort-AV: E=Sophos;i="5.64,489,1559545200"; d="scan'208";a="49899008" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 10 Sep 2019 06:49:26 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 10 Sep 2019 06:49:19 -0700 Received: from m18063-ThinkPad-T460p.mchp-main.com (10.10.85.251) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.1713.5 via Frontend Transport; Tue, 10 Sep 2019 06:48:58 -0700 From: Claudiu Beznea To: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , CC: , , , , , , , , , , , , , , , , , , , "Claudiu Beznea" Subject: [PATCH 4/7] dt-bindings: chosen: Add clocksource and clockevent selection Date: Tue, 10 Sep 2019 16:47:13 +0300 Message-ID: <1568123236-767-5-git-send-email-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1568123236-767-1-git-send-email-claudiu.beznea@microchip.com> References: <1568123236-767-1-git-send-email-claudiu.beznea@microchip.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alexandre Belloni Some timer drivers may behave either as clocksource or clockevent or both. Until now, in case of platforms with multiple hardware resources of the same type, the drivers were chosing the first registered hardware resource as clocksource/clockevent and the next one as clockevent/clocksource. Other were using different compatibles (one for each functionality, although its about the same hardware). Add DT bindings to be able to choose the functionality of a timer. Signed-off-by: Alexandre Belloni Signed-off-by: Claudiu Beznea --- Documentation/devicetree/bindings/chosen.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Documentation/devicetree/bindings/chosen.txt b/Documentation/devicetree/bindings/chosen.txt index 45e79172a646..aad3034cdbdf 100644 --- a/Documentation/devicetree/bindings/chosen.txt +++ b/Documentation/devicetree/bindings/chosen.txt @@ -135,3 +135,23 @@ e.g. linux,initrd-end = <0x82800000>; }; }; + +linux,clocksource and linux,clockevent +-------------------------------------- + +Those nodes have a timer property. This property is a phandle to the timer to be +chosen as the clocksource or clockevent. This is only useful when the platform +has multiple identical timers and it is not possible to let linux make the +correct choice. + +/ { + chosen { + linux,clocksource { + timer = <&timer0>; + }; + + linux,clockevent { + timer = <&timer1>; + }; + }; +}; -- 2.7.4