From patchwork Tue Feb 19 07:31:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 158685 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3360335jaa; Mon, 18 Feb 2019 23:32:00 -0800 (PST) X-Google-Smtp-Source: AHgI3IYjDzADNpdY986zvMTnG4L6QlmTLFPImDJVAk+3JrkY2o35xTCd8NJbIJwynqJTZjRgvWT9 X-Received: by 2002:a63:305:: with SMTP id 5mr16535736pgd.57.1550561520603; Mon, 18 Feb 2019 23:32:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550561520; cv=none; d=google.com; s=arc-20160816; b=YczEu/X1t/HNhd3WkL8b7Hjl2qW9bk9q/UZiLdndlmDmOrQhaeJ0fyrv9smzDy+CUe 8UbjgzZwqEc2dq9N+2Ls3V7eCk24daqkmmOdauPaoUajYd2Yt+WNY3JRGLi37WyMHqPq +IlXQdMiaWFculP2umrScXEFTrzLqM8gnmZA0IgYrAplcmpGScddHvocY/OIZqPUjfa2 YNEA63HjVT2VrepOz9AOekbFkkfLspc7GmTh8VXTFWM8j4bC4eVFqG30xuzA6gsTnX4P zScO7aNxg05QbPVzSKiNUpEJBLOX9kOax8aYmU1GIC7h8pINqTjMnnAgxb1nXTCaxhF4 cTMA== 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:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=yyLHgf/fg0UKT/vKQ5XRuE7/YcLw7WJlhicYn1jLCNw=; b=MKwQ38qs8fiFy+tAY6KTRWMVIUCmVt9C0HgsItePWu7XD6rHl1++1NjotCU1U5vdlD EHbk4yzfWC6yNS6apyjqNpOuIawyPJHCeF2HaVK8r76qPATgmhKfw6lfgnCKN6M0FHNA bB51cOZzyHenvx9dl9BuhKLoI1fjDy8vwyVRpb1y1aHwf9+TxQxRiUZrKbF5rreUnBrb jQxUN6Uy/f4wnz5rN+28MwTsQV+PMSpMnpycSJ+0Xa/j0yXNID6B+wJcLld8HGGIO53T /B0VdLCB1IlitxVVrwm+yhIsyRgY1I0K+nAgoJeQHIbqAV1jws1mqsYE+ZY+pY+sz+KU RSaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="R/T95oDK"; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 25si12857911pgz.309.2019.02.18.23.32.00; Mon, 18 Feb 2019 23:32:00 -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=@linaro.org header.s=google header.b="R/T95oDK"; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727027AbfBSHb6 (ORCPT + 32 others); Tue, 19 Feb 2019 02:31:58 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:37231 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725767AbfBSHb4 (ORCPT ); Tue, 19 Feb 2019 02:31:56 -0500 Received: by mail-pl1-f195.google.com with SMTP id q3so2627330pll.4 for ; Mon, 18 Feb 2019 23:31:55 -0800 (PST) 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 :in-reply-to:references; bh=yyLHgf/fg0UKT/vKQ5XRuE7/YcLw7WJlhicYn1jLCNw=; b=R/T95oDKjrZuBgj/s9/l0Ok04YZ1LfuEY+5bc/RCjr/FhhohsJVD7Wdi8/TCiKOjzp dLB9L19bqz43sU+M1WUOHrDm6CYgFLgQOMWW8te5c/1X+dlsnzdunOlbWsejqGotKoEj nbbnueQzHAGvhBLG5YCIOH6CU0R2O+lp+KjBXfMZR5pv+sTk6P1eSqe9A7oo1Bvhj0YW 9rfgWGnnRym0pdOig+pwXpgfb8mdc7RBQzbSHwavE4vMIXT0oWf8PBdZk6OycdLG4h2P +Das0nfAupMhubdzLC9rB4b9QQx8BWA5QL5Xh33UOL99UdFxJyjiJ1RWzi/GVdec9kob Sx9g== 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:in-reply-to:references; bh=yyLHgf/fg0UKT/vKQ5XRuE7/YcLw7WJlhicYn1jLCNw=; b=mMGxqU4XMaSus0snkVOOkfxRGDUEKA7ZNzB6CUuF5MqaE5GIQvt3lUTk4nATXyCppz B/Cz8lKjEZChsRKuqa5Ski+/xiBXXP5P+P8VJRWbHNpxo8oB7a7Md8dbGCUnz07XD39G cxR0d1UA76u85/VtYy44Z2VURzuln1nOHf3DNF/ywCIgENNKnrK2L0DzYWCBHn/acPHY RZ3Vb+FgMabE6Q/c1sEE1xU8AWu5ijzOxYrvGixHsl9efgQNx0r2QSVa5EGih/4o1RpZ xLTO6aeMVtERVdpF/DB1C0CnnbVZNCUSJvhT7bmqVEWz5Piauj0AzydvPte5KEVYRF0o 3Mrg== X-Gm-Message-State: AHQUAuajBm7tDIvIaquQ2Oc59Wn0P57SNSksjmdTUYygHl3bWjrqsdhk Ersgham1y60zpiWVXnNABeFYBw== X-Received: by 2002:a17:902:7c98:: with SMTP id y24mr11632179pll.191.1550561515473; Mon, 18 Feb 2019 23:31:55 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id n27sm31556569pfb.8.2019.02.18.23.31.51 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Feb 2019 23:31:54 -0800 (PST) From: Baolin Wang To: gregkh@linuxfoundation.org, jslaby@suse.com, robh+dt@kernel.org, mark.rutland@arm.com, orsonzhai@gmail.com, zhang.lyra@gmail.com Cc: baolin.wang@linaro.org, broonie@kernel.org, lanqing.liu@unisoc.com, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/5] dt-bindings: serial: sprd: Add clocks and clocks-names properties Date: Tue, 19 Feb 2019 15:31:12 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lanqing Liu This patch adds clocks and clocks-names properties, which are used to do power management for our UART driver. Signed-off-by: Lanqing Liu Signed-off-by: Baolin Wang --- .../devicetree/bindings/serial/sprd-uart.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) -- 1.7.9.5 diff --git a/Documentation/devicetree/bindings/serial/sprd-uart.txt b/Documentation/devicetree/bindings/serial/sprd-uart.txt index cab40f0..6eb5863 100644 --- a/Documentation/devicetree/bindings/serial/sprd-uart.txt +++ b/Documentation/devicetree/bindings/serial/sprd-uart.txt @@ -7,7 +7,13 @@ Required properties: - reg: offset and length of the register set for the device - interrupts: exactly one interrupt specifier -- clocks: phandles to input clocks. +- clock-names: Should contain following entries: + "enable" for UART module enable clock, + "uart" for UART clock, + "source" for UART source (parent) clock. +- clocks: Should contain a clock specifier for each entry in clock-names. + UART clock and source clock are optional properties, but enable clock + is required. Example: uart0: serial@0 { @@ -15,5 +21,6 @@ Example: "sprd,sc9836-uart"; reg = <0x0 0x100>; interrupts = ; - clocks = <&ext_26m>; + clock-names = "enable", "uart", "source"; + clocks = <&clk_ap_apb_gates 9>, <&clk_uart0>, <&ext_26m>; };