From patchwork Tue Dec 31 13:05:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 988 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id BCB1D3F077 for ; Tue, 31 Dec 2019 14:05:59 +0100 (CET) Received: by mail-pf1-f197.google.com with SMTP id b188sf6191067pfg.16 for ; Tue, 31 Dec 2019 05:05:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1577797558; cv=pass; d=google.com; s=arc-20160816; b=V1HpxX8iL9eham+eKRAVcRWbGQDEFdpqVE27gG/d+iTIG9daZVN7a8nfR8v2BPxWIi XirOC9Wjg1tk3macVIpxlkEq7HROhiqDAQ/xejvveW4YZppg9OtXQkHEfHGprzKAhxMO 7yaH9ecgYzZxzQLCaSIv6gTaAfndiKVluLdngm4STOpKAKl+RByXf/P5Zn51RpFPl7dR KJ4GaiKjX79YlxvKrjpcYPRsJwX5txvZsKQbsZCpu2v4I0m9IK2mc78obJ8HBgfLBBYG 8LTW8BP57qFYbIlJJpRuzCkJzE929E79bJrokorIifrnmExLNZAZkMKIH8yPSdZ5ciU1 /YDg== 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=WBdN9rkVVsppw/KrLkyzL2Ejtc4inpL+4gK7eAjHi+A=; b=aHwdbU4W2wLOiaM/fdhJSjYDugvdxDQcMoFikitmdZdyZcMme3gV+Zo/0QQ5fgFBvG esKTB3c51OZ7f7aAvunE0GZHXvWP101lXvmg/xUZuETS1Usim7anVizryA9zQRS/c+1e 4I0G5XgUrnhTIXUfP0WjszyTGJnsTX3HLRnRpJjJ6By20v3RcqafqxA95waJO6RcP10c 4okelmJESs53EaOt2T7Xu/DfQ3IQfmBIUyoYRWVNGNPsW/g7gBZntlhEqoQYWYqwUhng hVNTaZ8FuZSbp7ADMBGb1agom6yvnvxtUrpVlDHlI6D2ohoSzV/f/GmGTkUpCHKSvM9b yGmA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=U1gmKyx8; 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=WBdN9rkVVsppw/KrLkyzL2Ejtc4inpL+4gK7eAjHi+A=; b=YjjnJ/vjuMF7oc4Pe2XfKmjB3yzmxo0CPZdnfwW0DBtgMlNwR29/YMNCygFLkiHHrt uXCaD/5TbM34SX2L2JDKXPv70JZj5ve/fbkfhlRXPOv3Ct3sRwNqb+Hn1LaiEVaYvc3M /5d2G2t9VTgQcetd47dTQplIbnj3j2SO+35x8= 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=WBdN9rkVVsppw/KrLkyzL2Ejtc4inpL+4gK7eAjHi+A=; b=umX66RIEjW3bWa8kGhlQ5GZXQeMZiTDdbcGQnTCPt9K+EnLCAsTkNDqsLzezKQlCtA wHr8IiMKdZsTYMqxpCTqursJ5rEN8B1HBG4JvyJRRgekI0iTDpW8xSSFJLnXuHCC7KnD 7xFZe9kVMh+7grN34Et1LH7b05qva7VqjNP7yRcjTxd5Nat1GUL9s/jjtHsfkCnt8KJn Ef1BO5OQ024oIRK8WM4braWVgpsDqqCnxyk94fKhHmw7JEUwg4IoARVgOt3q5i9PY7L1 VY1/Y/3Y/QhETORdHB0Nz5GkU3zjYCOHUcfzgY4ViPGBRGHrjYRvOAjAL/UrUcSyIKwP FFgg== X-Gm-Message-State: APjAAAV+OaAlI3E/ETJ4Sx3qSSKj0f54BfonaMXmUOUyPYmCIuqpd90M jkAO60qr7pRD6dnK8JghMmo3IH3S X-Google-Smtp-Source: APXvYqx9SQgJYjJl8VVgK6eAcnKX/fIUmy2yormr3VVk031baNUPdnFhfrHJNuG7m8h++J7Ozzre/A== X-Received: by 2002:a63:a43:: with SMTP id z3mr78267863pgk.232.1577797558391; Tue, 31 Dec 2019 05:05:58 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:8303:: with SMTP id bd3ls10336880plb.3.gmail; Tue, 31 Dec 2019 05:05:58 -0800 (PST) X-Received: by 2002:a17:902:7890:: with SMTP id q16mr67509146pll.105.1577797557859; Tue, 31 Dec 2019 05:05:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577797557; cv=none; d=google.com; s=arc-20160816; b=VZKMi17DKMD25qIaB7LxEJX3M98FCP90zTP2RD1l9BYff4eebjQvDgLsNTCx9HwTdK C8EjVojzekqBwqEdAUt65pAOT7VtQJtKdy8fL/z+8D4qIC2VbW4CgUG1YXXbLFt3wmmf btqpps0MLkrA+ZKPEAJpBCC5s+T3RNW7A/IrJxWsdwGunWjIoZrq/xmvOWDbXxy5VmBz tfff1wodNAUBIUtRbUlpn93K+KitKbnVfwIU+ExY/Okybvp/2pU+wGcgt0hPvQOYKFiR UXY+jzagFGtrqNk2NogI4GlPj36vTLnPKV1k3m9wILG4SWfTSgk7MxkiCHYFNNgkp8RH MAhA== 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=J4bPo8ZUsPUay4xqO2AMjOfE/DZ5OrDO5jUkRoUY2VY=; b=Kh9V1nNaY3p0v4qdcOGauvtSjipkrbV1Ts8U9eZ0MqlvRKBF5DYhjhfuNguZBOujIJ 7x6r6gqkavRA4pI6jpAcuyihKK9KWQ6jNtEQNnovJQOmtjl0EcvAce2CX0dQ3mnwiDlv jPwRyb4rvupx0YbgnCz/8IwSgAWqJXRzmTNan4W9sic195x73C8693hjd/YKwwXDW/z0 y5iqFrE4rbjOYtxpqkqebjCjlUlGR8YuGaJrL0hiModgdz5JKGcloqsu4kQgLVvVv8EX r49ELlFG3Hjsn6bEYr2hAQwD6aiG7QemBqblR1y6bKSUm5Aglv4vt3UCPwjDwO68/bxw MGPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=U1gmKyx8; 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 t21sor48754318plo.57.2019.12.31.05.05.57 for (Google Transport Security); Tue, 31 Dec 2019 05:05:57 -0800 (PST) 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:a17:902:b611:: with SMTP id b17mr74759458pls.210.1577797557554; Tue, 31 Dec 2019 05:05:57 -0800 (PST) Received: from localhost.localdomain ([49.206.202.115]) by smtp.gmail.com with ESMTPSA id i3sm55204089pfg.94.2019.12.31.05.05.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Dec 2019 05:05:57 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , Rob Herring Cc: David Airlie , Daniel Vetter , Mark Rutland , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-sunxi , linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v3 3/9] ARM: dts: sun8i: r40: Use tcon top clock index macros Date: Tue, 31 Dec 2019 18:35:22 +0530 Message-Id: <20191231130528.20669-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191231130528.20669-1-jagan@amarulasolutions.com> References: <20191231130528.20669-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=U1gmKyx8; 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 --- Changes for v3: - none 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 c9c2688db66d..3faa35d43afa 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 @@ -709,7 +710,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"; @@ -752,7 +753,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";