Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp757002pxk; Thu, 3 Sep 2020 11:46:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOuwy13j3l/HbFHtGuLkYoe/QQr3pN61HRJvBfrZV6Xcr+dOp+C75CQlo5S0H2tWHFSOZi X-Received: by 2002:aa7:dd0d:: with SMTP id i13mr4696794edv.314.1599158773644; Thu, 03 Sep 2020 11:46:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599158773; cv=none; d=google.com; s=arc-20160816; b=HX9n3DpaLO7HnW0xUHPFHnI+UNAkhECmNxxd/30NSU2UQqgBdK//tK2Td3cbO3DZQ4 hofzeuBM+gD1bwyGDSaTSOD1/eSZc1k1T02X3UosKm8Rqe8yAuDZw6a2XoiOcRVZu/3c 95PTHiWOhQIOdbXvbrkVnNVKhIXRdOAFbcf6kshiLJEbXWMfu4a8eB+ol+HI9G/JiJzL +8nVru1+eqbybMosT3ScoZ+veFZSsWS49boaLtraAkL42VEC9xF3dKU4C0+hVsTaKhg3 FOaFqOyZnJh2PMqdoL6TU50EBLKxKPVb232Y1VXNlUx5pt60w9I3MgzfAuJ7UXyk/pS0 MHFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=la3rayP+shNhCjAj+vlh2ZfEe6vHZcwR5ouMWRq/FdU=; b=HsNzxWZrPasXGvgecAgEe8Pqr3J0Mn9cILRVeyo64zTsADiIsYvtbn3Tt9yDo8skOg dFGNbhiXyY1kHaIsCyjyhpCfAXzeIdJF79GqwoIj5wdfJHeQnVsjfZ9Fvl2Xm/cT1yQu bLvp9rwmCapRokFXUrRQJG1xrQAZ6fJ+onMd/1dYl0oQeQvtPvK0vvcUf12zEv5Wxbz/ aNrXMZ5qjfZ+5mgzVxzNqmXYb5jHc9F3xUnbuAoMr0VZVcm4BA2MmLhnZV64b4rxY1cC a0/17Kec35YtWDoV39wRvIAvKcU+ZGHD3YE7rqhpAkj5FQwqYWGMiAOySf1R8aNXQozW BL8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=q786MTMU; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f14si2405351ejq.98.2020.09.03.11.45.50; Thu, 03 Sep 2020 11:46:13 -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=@linaro.org header.s=google header.b=q786MTMU; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729249AbgICSmO (ORCPT + 99 others); Thu, 3 Sep 2020 14:42:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729223AbgICSmG (ORCPT ); Thu, 3 Sep 2020 14:42:06 -0400 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1476BC061246 for ; Thu, 3 Sep 2020 11:42:06 -0700 (PDT) Received: by mail-lf1-x142.google.com with SMTP id y2so2452893lfy.10 for ; Thu, 03 Sep 2020 11:42:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=la3rayP+shNhCjAj+vlh2ZfEe6vHZcwR5ouMWRq/FdU=; b=q786MTMUmpFS5XzxSh74G7fb0nr6/VnChNjVh2MAP/CZsWEtlLlCy3Q3GfZL8gzqtI 66CiHBZGAjmzzwfXm6MaTdLYP/ZHXkNwLhqPFX/ILH/hqzxyZCEY5oU6JnqtLUFjQeJz Lpwaz3dkXMk9V7YWM/ILguAgDIafvUEN6F/PRmIyiBptf2MofCMjiwM0wxOtOh7UDHm2 z1fcteIbp9YIUijTtFco8UT+Jolg+QMoZoog5zzDyU+0k00fyr/wMDQH6LooMPm7HNlV Wljycwo3jzqCaaP3NtwEzYtL4+LqMBRg5XdCCDOFqhV1hww8sjxe29QAsvzsHz3A+uKF kmNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=la3rayP+shNhCjAj+vlh2ZfEe6vHZcwR5ouMWRq/FdU=; b=KetG5O/JLwitaMjm0iaddsrz1hFCDYsiBZ5quzbb5MIA3s0MAiOSjopvrFrfJqdBL8 3cnDUx3STZgfW4Xv1KnAnjRwt78OoaLJghLUqRFwZkoeb2lb04XWbzM8k4Blh396ezF3 QxrfkPLV79p3XcLl32YWdGCwukthgTrzIyTEO939RrIqso0TsNsrhlsezmBlViAJbBNf XH0JD4FmyeyMPVC/ys4aWoPNN3PFJoVDsWqCkpwVlPRWiXkaCFADeK1gqlJY8NZoAyQh WKelCy83Dvtxqwo7S/nJOekO4bkYeZwHpjntb0ceZeirEsnxGCd2SaC7OR2Ew2vtBM26 w5hA== X-Gm-Message-State: AOAM530JiN8DS6IBSbwz6efxW3gt2vWrRz5pAHLVA0wAmLy7vXpPgl/t WK+X3QjdHhHSRzNrgBEwVsNHpQ== X-Received: by 2002:a19:834a:: with SMTP id f71mr2000398lfd.59.1599158523970; Thu, 03 Sep 2020 11:42:03 -0700 (PDT) Received: from gilgamesh.semihalf.com (193-106-246-138.noc.fibertech.net.pl. [193.106.246.138]) by smtp.gmail.com with ESMTPSA id r8sm754854lfm.42.2020.09.03.11.42.02 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Sep 2020 11:42:03 -0700 (PDT) From: Grzegorz Jaszczyk To: ssantosh@kernel.org, s-anna@ti.com Cc: grzegorz.jaszczyk@linaro.org, santosh.shilimkar@oracle.com, robh+dt@kernel.org, lee.jones@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, praneeth@ti.com, tony@atomide.com Subject: [PATCH 1/2] dt-bindings: soc: ti: Update TI PRUSS bindings regarding clock-muxes Date: Thu, 3 Sep 2020 20:41:40 +0200 Message-Id: <1599158501-8302-2-git-send-email-grzegorz.jaszczyk@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1599158501-8302-1-git-send-email-grzegorz.jaszczyk@linaro.org> References: <1599158501-8302-1-git-send-email-grzegorz.jaszczyk@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ICSS/ICSSG modules have an IEP clock mux that allow selection of internal IEP clock from 2 clock sources. ICSSG module has a CORE clock mux that allows selection of internal CORE clock from 2 clock sources. Add binding information for these 2 clock muxes. Signed-off-by: Grzegorz Jaszczyk --- .../devicetree/bindings/soc/ti/ti,pruss.yaml | 121 ++++++++++++++++++++- 1 file changed, 120 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml b/Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml index a13e4df..037c51b 100644 --- a/Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml +++ b/Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml @@ -132,10 +132,99 @@ patternProperties: - const: ti,pruss-cfg - const: syscon + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + reg: maxItems: 1 - additionalProperties: false + ranges: + maxItems: 1 + + clocks: + type: object + + properties: + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + patternProperties: + coreclk-mux@[a-f0-9]+$: + description: | + This is applicable only for ICSSG (K3 SoCs). The ICSSG modules + core clock can be set to one of the 2 sources: ICSSG_CORE_CLK or + ICSSG_ICLK. This node models this clock mux and should have the + name "coreclk-mux". + + type: object + + properties: + '#clock-cells': + const: 0 + + clocks: + items: + - description: ICSSG_CORE Clock + - description: ICSSG_ICLK Clock + + assigned-clocks: + maxItems: 1 + + assigned-clock-parents: + maxItems: 1 + description: | + Standard assigned-clocks-parents definition used for selecting + mux parent (one of the mux input). + + reg: + maxItems: 1 + + required: + - clocks + + additionalProperties: false + + iepclk-mux@[a-f0-9]+$: + description: | + The IEP module can get its clock from 2 sources: ICSSG_IEP_CLK or + CORE_CLK (OCP_CLK in older SoCs). This node models this clock + mux and should have the name "iepclk-mux". + + type: object + + properties: + '#clock-cells': + const: 0 + + clocks: + items: + - description: ICSSG_IEP Clock + - description: Core Clock (OCP Clock in older SoCs) + + assigned-clocks: + maxItems: 1 + + assigned-clock-parents: + maxItems: 1 + description: | + Standard assigned-clocks-parents definition used for selecting + mux parent (one of the mux input). + + reg: + maxItems: 1 + + required: + - clocks + + additionalProperties: false + + additionalProperties: false iep@[a-f0-9]+$: description: | @@ -259,7 +348,22 @@ examples: pruss_cfg: cfg@26000 { compatible = "ti,pruss-cfg", "syscon"; + #address-cells = <1>; + #size-cells = <1>; reg = <0x26000 0x2000>; + ranges = <0x00 0x26000 0x2000>; + + clocks { + #address-cells = <1>; + #size-cells = <0>; + + pruss_iepclk_mux: iepclk-mux@30 { + reg = <0x30>; + #clock-cells = <0>; + clocks = <&l3_gclk>, /* icss_iep */ + <&pruss_ocp_gclk>; /* icss_ocp */ + }; + }; }; pruss_mii_rt: mii-rt@32000 { @@ -298,7 +402,22 @@ examples: pruss1_cfg: cfg@26000 { compatible = "ti,pruss-cfg", "syscon"; + #address-cells = <1>; + #size-cells = <1>; reg = <0x26000 0x2000>; + ranges = <0x00 0x26000 0x2000>; + + clocks { + #address-cells = <1>; + #size-cells = <0>; + + pruss1_iepclk_mux: iepclk-mux@30 { + reg = <0x30>; + #clock-cells = <0>; + clocks = <&sysclk_div>, /* icss_iep */ + <&pruss_ocp_gclk>; /* icss_ocp */ + }; + }; }; pruss1_mii_rt: mii-rt@32000 { -- 2.7.4