Received: by 10.213.65.16 with SMTP id m16csp116182imf; Sun, 11 Mar 2018 18:52:13 -0700 (PDT) X-Google-Smtp-Source: AG47ELu0SMlkLWjGEHefZ84Zp6hy8/6sKDwnkC3pMRxDL/PT18AOldZU+dxMnaq4tWU3mzcKpS26 X-Received: by 2002:a17:902:d202:: with SMTP id t2-v6mr3755263ply.216.1520819533515; Sun, 11 Mar 2018 18:52:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520819533; cv=none; d=google.com; s=arc-20160816; b=klmhp6HnKd0Y6O2TyUOGQ1UwOFrnHq2DhTuBpoNePhk2cYrkUetJrcNCC2q2I9+k0q Ue0N+zL2v5F1kneoyLI3G9H72KWX9JT9Y5RolU2aw+vsSuzk4z+1aIIuYE9ljM2j/kFw DzdMc0Btf6hSQL+XgmH4LKyuc+5Qn9hn59lj1kT6PDw0U/vCJQ23dlqEyllhQ8RxgUwp 1wqUvrXt3RCGQ4xAYnL9ia5GWburW3FKmtbIrrWCtw5Bi/A23WIUYpUUJsPmYO2TTmZm 2/ppka3YCnLnXqL24rkRzbX8QiOkk3DR+ToG0LNkKFr7mX5V7rycMEk405fB+s8LrJy+ 35nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=LeG08X+WDSGNp+n3o3xoinetA27vRNMwbtiXGSXNg8c=; b=UM5FPCUyg/qzPyYr7vrxR94fMk2fU58DGUO+3gILn2BetYeXs26Al0E55sqQUyQ/3v p5mxsDPwspA3VQx/V24UJWMAIZGSkLel+Mqi/xfDByYtZzSfzhHVQbbB3iyCYc8ZLYPQ 937LeirippQiCkbShRnUg347R6g1/EgM2X3ie30OwtYzptxi4Bzf40CVStsZenHj+TVS j/FU1s7FhJf43wgkHBDoIbOyb9XdwFGY0URXTM6zuM9TlBHhLI4pzY8AnyNoMUTQnCXm vy1V3PRqJ7qRMXEEZHDSTQL9Z7NBdVdaF0gLkyXaDJI1PRgNGpHZKse1WODrA8YbFbhI AWHA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d126si4288478pgc.385.2018.03.11.18.51.58; Sun, 11 Mar 2018 18:52:13 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932516AbeCLBvH (ORCPT + 99 others); Sun, 11 Mar 2018 21:51:07 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:32795 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932419AbeCLBvF (ORCPT ); Sun, 11 Mar 2018 21:51:05 -0400 Received: by mail-pg0-f67.google.com with SMTP id g12so5890657pgs.0; Sun, 11 Mar 2018 18:51:05 -0700 (PDT) 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; bh=LeG08X+WDSGNp+n3o3xoinetA27vRNMwbtiXGSXNg8c=; b=e1Frjwtm8Ye0P+e93ShW84KAO4dY6Y+mjIiQTrlu0mAgB2euPcsm5fdNu7LiIZxtql S0jK2Xa2YoUj7ZPykCns/GFEE+cD2zqhTc5XQsVdzjY3AxVHLnNPwj12kLGNsSyezs83 ZUaJ6CZQOCud7S8sL4OYCcksp61lb18abSvOGGzoitdZToCWqwn/G5sIKj/FystgpL42 YwOfZMzn+1yBSYfAkGmFc4D7LX0Yhd+TYrEwt7AX/PfPRomigXcD4nKqXpRLds9fP0uL QaGayR2RsnLf67nXynxeBdrDRW/JGCcZbiwzWZxbeNK+IB6HqyIcSpzoSWPl1vJEQeci 2VMA== X-Gm-Message-State: AElRT7FNfVFVktX1qU4+j/cazVOrW2PuuQszkyDB/aEKZKA73D5WW9cx MZ2fjlIgD4ovbPC04eq4bA0= X-Received: by 10.98.202.23 with SMTP id n23mr6303176pfg.52.1520819465318; Sun, 11 Mar 2018 18:51:05 -0700 (PDT) Received: from SHUNQIAN-W530.example.org ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id c7sm14361447pfg.36.2018.03.11.18.51.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 11 Mar 2018 18:51:04 -0700 (PDT) From: Shunqian Zheng To: heiko@sntech.de Cc: linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dianders@chromium.org, Shunqian Zheng Subject: [PATCH] arm64: dts: rockchip: assign clock rate for ACLK_VIO Date: Mon, 12 Mar 2018 09:50:48 +0800 Message-Id: <1520819448-8316-1-git-send-email-zhengsq@rock-chips.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The ACLK_VIO is a parent clock used by a several children, its suggested clock rate is 400MHz. Right now it gets 400MHz because it sources from CPLL(800M) and divides by 2 after reset. It's good not to rely on default values like this, so let's explicitly set it. NOTE: it's expected that at least one board may override cru node and set the CPLL to 1.6 GHz. On that board it will be very important to be explicit about aclk-vio being 400 MHz. Signed-off-by: Shunqian Zheng --- arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 6 ++++-- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi index 199a511..7d8d5de 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi @@ -580,7 +580,8 @@ <&cru PCLK_PERIHP>, <&cru ACLK_PERILP0>, <&cru HCLK_PERILP0>, <&cru PCLK_PERILP0>, <&cru ACLK_CCI>, - <&cru HCLK_PERILP1>, <&cru PCLK_PERILP1>; + <&cru HCLK_PERILP1>, <&cru PCLK_PERILP1>, + <&cru ACLK_VIO>; assigned-clock-rates = <600000000>, <800000000>, <1000000000>, @@ -588,7 +589,8 @@ <37500000>, <100000000>, <100000000>, <50000000>, <800000000>, - <100000000>, <50000000>; + <100000000>, <50000000>, + <400000000>; }; &emmc_phy { diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index d79e9b3..91ee951 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -1259,7 +1259,8 @@ <&cru PCLK_PERIHP>, <&cru ACLK_PERILP0>, <&cru HCLK_PERILP0>, <&cru PCLK_PERILP0>, <&cru ACLK_CCI>, - <&cru HCLK_PERILP1>, <&cru PCLK_PERILP1>; + <&cru HCLK_PERILP1>, <&cru PCLK_PERILP1>, + <&cru ACLK_VIO>; assigned-clock-rates = <594000000>, <800000000>, <1000000000>, @@ -1267,7 +1268,8 @@ <37500000>, <100000000>, <100000000>, <50000000>, <600000000>, - <100000000>, <50000000>; + <100000000>, <50000000>, + <400000000>; }; grf: syscon@ff770000 { -- 1.9.1