From patchwork Thu Jul 2 21:28:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Ceresoli X-Patchwork-Id: 11640469 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 832F914E3 for ; Thu, 2 Jul 2020 22:39:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6BDDD20884 for ; Thu, 2 Jul 2020 22:39:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726376AbgGBWjZ (ORCPT ); Thu, 2 Jul 2020 18:39:25 -0400 Received: from hostingweb31-40.netsons.net ([89.40.174.40]:50667 "EHLO hostingweb31-40.netsons.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726163AbgGBWjY (ORCPT ); Thu, 2 Jul 2020 18:39:24 -0400 Received: from [88.147.89.201] (port=34632 helo=melee.dev.aim) by hostingweb31.netsons.net with esmtpa (Exim 4.93) (envelope-from ) id 1jr6lL-000AXd-46; Thu, 02 Jul 2020 23:28:55 +0200 From: Luca Ceresoli To: linux-clk@vger.kernel.org Cc: Luca Ceresoli , Michael Turquette , Stephen Boyd , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Marek Vasut Subject: [PATCH 4/5] dt-bindings: clk: versaclock5: add output drive mode property Date: Thu, 2 Jul 2020 23:28:35 +0200 Message-Id: <20200702212837.10657-4-luca@lucaceresoli.net> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200702212837.10657-1-luca@lucaceresoli.net> References: <20200702212837.10657-1-luca@lucaceresoli.net> MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hostingweb31.netsons.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lucaceresoli.net X-Get-Message-Sender-Via: hostingweb31.netsons.net: authenticated_id: luca+lucaceresoli.net/only user confirmed/virtual account not confirmed X-Authenticated-Sender: hostingweb31.netsons.net: luca@lucaceresoli.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Add a node with properties for each output port, and a property inside it to describe the output drive mode. Signed-off-by: Luca Ceresoli --- .../bindings/clock/idt,versaclock5.yaml | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/idt,versaclock5.yaml b/Documentation/devicetree/bindings/clock/idt,versaclock5.yaml index d8b8e35f16d2..f0ee612f573b 100644 --- a/Documentation/devicetree/bindings/clock/idt,versaclock5.yaml +++ b/Documentation/devicetree/bindings/clock/idt,versaclock5.yaml @@ -50,6 +50,35 @@ properties: '#clock-cells': const: 1 + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +patternProperties: + "^out@[1-4]$": + type: object + description: + Description of one of the outputs (OUT1..OUT4). + properties: + idt,drive-mode: + description: + The output drive mode. See "Clock1 Output Configuration" in the + Versaclock 5/6/6E Family Register Description and Programming + Guide. + Allowed values are:- + * 0 = LVPECL + * 1 = CMOS + * 2 = HCSL33 + * 3 = LVDS + * 4 = CMOS2 + * 5 = CMOSD + * 6 = HCSL25 + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 6 + required: - compatible - reg @@ -107,6 +136,19 @@ examples: /* Connect XIN input to 25MHz reference */ clocks = <&ref25m>; clock-names = "xin"; + + #address-cells = <1>; + #size-cells = <0>; + + out@1 { + reg = <1>; /* OUT1 */ + idt,drive-mode = <5>; /* CMOSD */ + }; + + out@4 { + reg = <4>; /* OUT4 */ + idt,drive-mode = <3>; /* LVDS */ + }; }; };