From patchwork Wed Mar 10 11:27:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 396693 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp292887jai; Wed, 10 Mar 2021 03:28:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJxmQaSuy+5EbEpqisAIn+jbDkClovbWhb9ITwxeduypmuJ3fc+P5BUR5NRzft8s632MI406 X-Received: by 2002:a17:906:f9d8:: with SMTP id lj24mr3131565ejb.200.1615375727928; Wed, 10 Mar 2021 03:28:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615375727; cv=none; d=google.com; s=arc-20160816; b=HrS5zpBkYuu+JrQnIszxNo2iUI1uai++H7+P22WllHdd9ZoblKgsnOicl4jbfRqOMQ ESSg3x5wvn6u/jsC2Nrhvaxt9mR+vdWaAw27UEzKnUPz1XHP+VdYA1QQ4pZtmwARqUty LLqP/Ksj+bifjn6pD2evxC3O36at1lOyUkiBpfFAc00o2tbBqErp9M48GP0LxlyHvy5K iymZdM7bf6PUPkTameQRBBUMb3Mp8XOqnQuh2/vH782wD01xYGibbg847y9WkFi7dj1c 1XPV1Yja/5mGR58bs23ixHYlWr3JuZM6JJsqk4ONqTnquJX9cGo706X3r0UXnBKU8grX 3P6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=cg9W4wq6kP43qgPR1Y0OmcHp/RkeePsLyslThe/SZ5s=; b=q4FvnjT+6zF8caL4dmcbEHgH7a0a6P7sDnR5b/MvG4QOrz3/5CoatDACLSX1qfXBLb Ami5bEXyG6EsZ5XjrB4vTJFmLWRJCkurvK6eCPvpsn7v5WiULes/2B/3g1Kx3aaB+c2M 6OwO5TIZnrzzRPNAEYyk/t7ghavznhkGqXzssXMucrnjD+/Dt4gs/ABceKcbAoaOF4rc LiUdBw3M3o/6WYyw+LyQzOMZN3K3DEwJXYJ9Jm+d7pbl5KFQoYgpT2rk8dnIFH6meb7I EdMTo9JX6/fHqLlWF0fIhd14z5DLTf2BVQ5N9ZAhaEDrdSTUjiDf91QuxuMOQlcOm7Tm hRQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ipqh62xG; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 cf26si11287160ejb.702.2021.03.10.03.28.47; Wed, 10 Mar 2021 03:28:47 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-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=ipqh62xG; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S232793AbhCJL2P (ORCPT + 6 others); Wed, 10 Mar 2021 06:28:15 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:36374 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231788AbhCJL2H (ORCPT ); Wed, 10 Mar 2021 06:28:07 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 12ABS09T017835; Wed, 10 Mar 2021 05:28:00 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1615375680; bh=cg9W4wq6kP43qgPR1Y0OmcHp/RkeePsLyslThe/SZ5s=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ipqh62xGY7YJJ6kFC5BzRiJTRR+6SBGOZW2NWlJ0bew52Ldhicl2PmPmoKn0Nv/OL spLyjeXITdwwCi/qrtFK3WWYAG09mOfAMrcgUD6I6qynUuhxEm9rwVC8iQIBNIECV8 kuLfswiDdOgoh/xGDZjiIvH3pKNHSyGyn2XKFhbw= Received: from DFLE107.ent.ti.com (dfle107.ent.ti.com [10.64.6.28]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 12ABS0dj010980 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 10 Mar 2021 05:28:00 -0600 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Wed, 10 Mar 2021 05:27:59 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) 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.2176.2 via Frontend Transport; Wed, 10 Mar 2021 05:27:59 -0600 Received: from a0393678-ssd.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 12ABRkvY075949; Wed, 10 Mar 2021 05:27:56 -0600 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Vinod Koul , Rob Herring , Peter Rosin , Swapnil Jakhade CC: , , Aswath Govindraju , Nishanth Menon , Lokesh Vutla Subject: [PATCH 2/3] dt-bindings: phy: cadence-torrent: Add binding for refclk driver Date: Wed, 10 Mar 2021 16:57:44 +0530 Message-ID: <20210310112745.3445-3-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210310112745.3445-1-kishon@ti.com> References: <20210310112745.3445-1-kishon@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add binding for refclk driver used to route the refclk out of torrent SERDES. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Rob Herring --- .../bindings/phy/phy-cadence-torrent.yaml | 20 ++++++++++++++++--- include/dt-bindings/phy/phy-cadence-torrent.h | 2 ++ 2 files changed, 19 insertions(+), 3 deletions(-) -- 2.17.1 diff --git a/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml b/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml index e266ade53d87..4608599a31d8 100644 --- a/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml +++ b/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml @@ -28,13 +28,27 @@ properties: '#size-cells': const: 0 + '#clock-cells': + const: 1 + clocks: - maxItems: 1 + minItems: 1 + maxItems: 2 description: - PHY reference clock. Must contain an entry in clock-names. + PHY reference clock for 1 item. Must contain an entry in clock-names. + Optional Parent to enable output reference clock. clock-names: - const: refclk + minItems: 1 + items: + - const: refclk + - const: phy_en_refclk + + assigned-clocks: + maxItems: 3 + + assigned-clock-parents: + maxItems: 3 reg: minItems: 1 diff --git a/include/dt-bindings/phy/phy-cadence-torrent.h b/include/dt-bindings/phy/phy-cadence-torrent.h index e387b6a95741..3c92c6192493 100644 --- a/include/dt-bindings/phy/phy-cadence-torrent.h +++ b/include/dt-bindings/phy/phy-cadence-torrent.h @@ -10,4 +10,6 @@ #define TORRENT_SERDES_EXTERNAL_SSC 1 #define TORRENT_SERDES_INTERNAL_SSC 2 +#define CDNS_TORRENT_REFCLK_DRIVER 0 + #endif /* _DT_BINDINGS_TORRENT_SERDES_H */