From patchwork Thu Jun 13 18:52:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 550 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 106DF3F033 for ; Thu, 13 Jun 2019 20:54:04 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id x9sf15068589pfm.16 for ; Thu, 13 Jun 2019 11:54:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1560452042; cv=pass; d=google.com; s=arc-20160816; b=0biy8xEeZ8AeHzzv0lsJ9qFbu+OduYnOxYj5XE6luoFgMHVocjH/l9ZYzIETE77CUz qlwxybbnlUyD97RHT8S2+i+i631BOzLxvkM/xigC7CUAYci+k7b5zthocR9QmwN9cQTD z0UjqRGS37AT33jb2r1WVIkFXGBsKAn7ivLeMH5X5Iv8aZHIibYz66jBALwEO5OT8qE+ rYWbtfnajN6DRieVkTEvkW5g+8515h2P+UTZKjknzUTcu9l+EUHtXtCOAy7ITWWnXDtQ 6cqAlynrNNl1kDmEW8d7DSWs2Lbz1bIPrGWI/DetP44GvjemEPFqmyPpwo4bIAxkb6E0 H0Kg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=rZlIjxZrTZ2wgDNDAFj/Lx5rlDCGDz2ADGqnAdeLLQM=; b=GQIlZC3KK/iwSClFFva9i8jYqd8LLLB9yahC+PDCHDvVnYwxXK1dWVBIVnFjb7Evnv 3234PrM5RLyU9jg7e3tA/vwDnENGxBdS9Av6lB2xxgLcXuFSUY38Yc/Hk57wegOjufbn xY5lx2iXCyQixfK3FNe42A6byr9FD+Bk9q1zTcwVPCpWaqTGvyUiN7HySbMJ15cqxTpa sT8G3suHq5SLgiRo1kIUgjotR0TRl8gzC1O6eD+Kd+Jbtm0tKtZx3vFtEx4F4N5getdL 3RS2p+9Mg2HpPR8SiknaSqUnePTZyH6Sg5jBd8OFClycSE934TOvn+PndtFqGUurKUDU IC1A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Kume8Qo4; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=rZlIjxZrTZ2wgDNDAFj/Lx5rlDCGDz2ADGqnAdeLLQM=; b=hfBInN+D66W3XmxXYKZPje3//SIjGqdRtgo5fDSi5VNsMME0dTz5xxCZdEpyd+iE23 hJWWZprMbGIQa6w5vjELCNjHU+XmFjGDCz01G+B2OMLPw5pBf+xk88MpzHn3fozHGolR 2/vATjkB3OwR89E/Di2eDDV+mbIZGTbKLWWl8= 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:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=rZlIjxZrTZ2wgDNDAFj/Lx5rlDCGDz2ADGqnAdeLLQM=; b=Qb+JEj+6egBiTjM1+SOAQdVShru/opl8+6oTCF3+wcOjMvwC4Q2XtzX4bmquUYPrsg DYQWHdF+RdlBJ9M5lUoxKUk4l2UmZGRwgjaIO9i0tcqJwxgvCVi264Yx0LuehYsXvuzF UAueNjWsN9JBI7IxEck4+lGh+/VLduYEEUuYrH093qwXHNpk2IwnRg0vbrkGxq8qm+dS 5cgx41kVf2bWXypwwLb7soBuvRdzcTo9P42ZSi6AM5hteBf+kkic9XhDlFRbvinIYzKh wMjJwRe6TPXzjKtxdA4i5zUXq8eBRKGx/CnHIw5AMbTksX0+zS5rg4K9+qJG+6aLgfOy I/ew== X-Gm-Message-State: APjAAAXJm6wxlYL2/XyGKxqtYgfH+aCRcyopt9vg7QSOBIwMvP9zjGjp DqygioiYIEwATr74LIp4YjNIa1yX X-Google-Smtp-Source: APXvYqyJJ9+z0NjYWOx6+qJxLKW01HBecpEspJfwJ5bdo2oGY52IOriD83bPSl/bLo/Txasvhwo5ZQ== X-Received: by 2002:a17:90a:a601:: with SMTP id c1mr6800022pjq.24.1560452042821; Thu, 13 Jun 2019 11:54:02 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:de4d:: with SMTP id y13ls1419961pgi.12.gmail; Thu, 13 Jun 2019 11:54:02 -0700 (PDT) X-Received: by 2002:a63:5247:: with SMTP id s7mr14095087pgl.29.1560452042225; Thu, 13 Jun 2019 11:54:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560452042; cv=none; d=google.com; s=arc-20160816; b=0tJEQ0uLdQMm3cPUumy/RfDyVXtlAesR9eXzC9pPfADfkNBQDH1lCfmLJUzFrsl5EB xF+M9usvJ3OS2bL36GTq4DyC/cuoIo7WpEFHQ4OeDX8n/SMbEiddqfJS7aMfOSCGiX82 spnvWP/dhYEiDrQY7SaEqnJc3iUWYGhr6sztoFXw8AA83Hvbr/rSSBFv+mDgA/0Wijmf /cJV5oaVikbVqdgyp0zZSfQBY1Ihj4McFg2rZ2YRF7UnhgkG6kvFKkdJ3juvnYP+5D4B 6HglGZsg5JAfkLWTVLqXYuHIAFerWHbZXvCguL64SbbzfOkUVFowSCiRCyogUeJa83E3 7wNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=MxUBHxdyKSzAEkz8czOIEFewVHEPOOsCs5aBdAtPCog=; b=lSg+ffGFG7tT0ZRf488YGcz5g4MdJKwIFEyx+8PwzChbBZQoPUIoZUQMxuJx8TEIPi 28F0ekTolxDl/+zK3c0CO7asSt4gu96iIbcVgX9OZHPHj0i7ErPO1S/8ZP5JucMKrh7T FYHQyLi4IRAGaq0E+qRZyZszPBfZynEiYWaAMukhE5HRpW5N0+Trzs1xfGtdpbyH+JNV 33WlPcSbUCGCsqef0JAZBqrlo920sFh5EkRglNIC54U1Y91XkQIwiKDpl7jNDpqpxniX npf5K8buV4fO7AB+2ahK0umC3hU5ZREWac0Ald6f5OB7e/Iw10nOufko3tKI45kIOqi1 7Ofg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Kume8Qo4; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id 21sor774327pgl.77.2019.06.13.11.54.02 for (Google Transport Security); Thu, 13 Jun 2019 11:54:02 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a63:9142:: with SMTP id l63mr14357491pge.185.1560452041895; Thu, 13 Jun 2019 11:54:01 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.18]) by smtp.gmail.com with ESMTPSA id p43sm946314pjp.4.2019.06.13.11.53.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Jun 2019 11:54:01 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , David Airlie , Daniel Vetter , Chen-Yu Tsai , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Jernej Skrabec Cc: Michael Trimarchi , linux-sunxi@googlegroups.com, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 3/9] ARM: dts: sun8i: r40: Use tcon top clock index macros Date: Fri, 14 Jun 2019 00:22:35 +0530 Message-Id: <20190613185241.22800-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190613185241.22800-1-jagan@amarulasolutions.com> References: <20190613185241.22800-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Kume8Qo4; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , tcon_tv0, tcon_tv1 nodes have a clock names of tcon-ch0, tcon-ch1 which are referring tcon_top clocks via index numbers like 0, 1 with CLK_TCON_TV0 and CLK_TCON_TV1 respectively. Use the macro in place of index numbers, for more code readability. Signed-off-by: Jagan Teki Reviewed-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-r40.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/sun8i-r40.dtsi b/arch/arm/boot/dts/sun8i-r40.dtsi index bb856e53b806..219d2dca16b3 100644 --- a/arch/arm/boot/dts/sun8i-r40.dtsi +++ b/arch/arm/boot/dts/sun8i-r40.dtsi @@ -44,6 +44,7 @@ #include #include #include +#include #include #include @@ -704,7 +705,7 @@ compatible = "allwinner,sun8i-r40-tcon-tv"; reg = <0x01c73000 0x1000>; interrupts = ; - clocks = <&ccu CLK_BUS_TCON_TV0>, <&tcon_top 0>; + clocks = <&ccu CLK_BUS_TCON_TV0>, <&tcon_top CLK_TCON_TOP_TV0>; clock-names = "ahb", "tcon-ch1"; resets = <&ccu RST_BUS_TCON_TV0>; reset-names = "lcd"; @@ -747,7 +748,7 @@ compatible = "allwinner,sun8i-r40-tcon-tv"; reg = <0x01c74000 0x1000>; interrupts = ; - clocks = <&ccu CLK_BUS_TCON_TV1>, <&tcon_top 1>; + clocks = <&ccu CLK_BUS_TCON_TV1>, <&tcon_top CLK_TCON_TOP_TV1>; clock-names = "ahb", "tcon-ch1"; resets = <&ccu RST_BUS_TCON_TV1>; reset-names = "lcd";