Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21267945ybl; Mon, 6 Jan 2020 01:01:41 -0800 (PST) X-Google-Smtp-Source: APXvYqynqTSDyt1QShoWmI0PsBlArthsbLNwaPCY/fIsVrSJkG38Wsa/gvVuF8Wr7qyTXGok0iP6 X-Received: by 2002:a05:6830:18e9:: with SMTP id d9mr104635378otf.332.1578301301002; Mon, 06 Jan 2020 01:01:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578301300; cv=none; d=google.com; s=arc-20160816; b=FZtqRVct11M92/E7adJ24BM1scVaF1wvHnT8jOXAxOh4GYQH35/HQvyRE1VHoU2n9Z AUlem5H/hjRtbnUcorcNl1lb6YBfAS2VfryqOf2l9iV/8SFz/7ghb3wQvFWHH2h6Y85x xY/eP5KhoHX6LT6zef+XogWmXbG9hOeUjzDeRDfdI0Zb/Bpj6bKOvx1tpCmYxpOVtdyM aCUruOG4+IPf1lll8o0QG6I/yxKRAz1Bg7a67+PLzVik1VGV4N8C2MVuGbPM7d+Nrmx0 cSv6Xu/j5CL0UJ/uNlBqqDf//CKgAr3dFvE6lB6ca3yK6njPfJh+7n9Lh3xQ+yFumQ4q rCNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=9nkmLSPaCNEFeY2JOH7OraB/Ahxi3DmlxFFfSgszo8g=; b=h38zBLv90SCPUMVu1hDpVlK+N2XNAv4XtjCrDIZoT1ZVNZ9Un4CYV4IUPmjsXsfF4J poYfOER4hRDogLPY7VwUTT2iSjj4VVC+6XAXH7eyIg33vIR8Rm64jnOhoPT+77yzXMMV iKDlAi2tCO0TQYeZVsqThYXDS8i1FIhuu2a1cxb5GeyKebgAEO6Z9xI6Q8hpx6vybJ/E i9C01vMwcVuxw+pEEf8wn+vNlEj4yQxDtrURfVMmpne0NBydCaB5eNzS25hI4rtywawb mRNykS32x2V8JpBa43g8AWbfl870DGbBWFYZHbUTirdciZthA/+NuuR2SS3KAyePnO9+ VKmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=w46tN5kA; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w18si29335950otj.148.2020.01.06.01.01.27; Mon, 06 Jan 2020 01:01:40 -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=@kernel.org header.s=default header.b=w46tN5kA; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726446AbgAFJAe (ORCPT + 99 others); Mon, 6 Jan 2020 04:00:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:37370 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725821AbgAFJAe (ORCPT ); Mon, 6 Jan 2020 04:00:34 -0500 Received: from wens.tw (mirror2.csie.ntu.edu.tw [140.112.30.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F17F320848; Mon, 6 Jan 2020 09:00:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578301234; bh=vQyBywdReqFFBKgdcXyrug3COE2qkfjhTUa8UfiyK4o=; h=From:To:Cc:Subject:Date:From; b=w46tN5kAiqSuaX0ajqvmx8wQw/Nx2eAOWF4NO+0j4/P9Y8otmSdz/PqG2VV15OIOP zD19L0rsREe3T8cVPZYxFKXNPElV4HTcQxAkDQ0jlI3/NY/LGJaM8I9BzvVeUiOyCa NAAjcCvEwgIfcdvZQrAPxykh4kpMcCSl8nqUm1/4= Received: by wens.tw (Postfix, from userid 1000) id A9E705FC12; Mon, 6 Jan 2020 17:00:32 +0800 (CST) From: Chen-Yu Tsai To: Maxime Ripard Cc: Chen-Yu Tsai , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: allwinner: sun50i-a64: Use macros for newly exported clocks Date: Mon, 6 Jan 2020 17:00:30 +0800 Message-Id: <20200106090030.9165-1-wens@kernel.org> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chen-Yu Tsai A few clocks from the CCU were exported later, and references to them in the device tree were using raw numbers. Now that the DT binding header changes are in as well, switch to the macros for more clarity. Signed-off-by: Chen-Yu Tsai --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 92688b89c2a4..293059ffbbf6 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -590,7 +590,7 @@ pio: pinctrl@1c20800 { interrupts = , , ; - clocks = <&ccu 58>, <&osc24M>, <&rtc 0>; + clocks = <&ccu CLK_BUS_PIO>, <&osc24M>, <&rtc 0>; clock-names = "apb", "hosc", "losc"; gpio-controller; #gpio-cells = <3>; @@ -1091,7 +1091,7 @@ hdmi_phy: hdmi-phy@1ef0000 { compatible = "allwinner,sun50i-a64-hdmi-phy"; reg = <0x01ef0000 0x10000>; clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_DDC>, - <&ccu 7>; + <&ccu CLK_PLL_VIDEO0>; clock-names = "bus", "mod", "pll-0"; resets = <&ccu RST_BUS_HDMI0>; reset-names = "phy"; @@ -1121,7 +1121,8 @@ r_intc: interrupt-controller@1f00c00 { r_ccu: clock@1f01400 { compatible = "allwinner,sun50i-a64-r-ccu"; reg = <0x01f01400 0x100>; - clocks = <&osc24M>, <&rtc 0>, <&rtc 2>, <&ccu 11>; + clocks = <&osc24M>, <&rtc 0>, <&rtc 2>, + <&ccu CLK_PLL_PERIPH0>; clock-names = "hosc", "losc", "iosc", "pll-periph"; #clock-cells = <1>; #reset-cells = <1>; -- 2.24.1