Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp193744imu; Mon, 26 Nov 2018 09:38:38 -0800 (PST) X-Google-Smtp-Source: AJdET5fcrPuuKD6T4kut9+bPIKJ/Omt0WQnUiDAUtBGv6lFnGD+17ZFupRVZdLY17YgWFTgyTnYr X-Received: by 2002:a62:9989:: with SMTP id t9-v6mr28681534pfk.179.1543253918143; Mon, 26 Nov 2018 09:38:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543253918; cv=none; d=google.com; s=arc-20160816; b=pA4VPuizvcCvhQdGhykqVPJwOdZqZt1/GeLsGXQBQX6i1vhaBt6wHhO+WaA4wxD/Wp eNlUGiSl8w1NTKiHvTi/vicfoiH0N46DKakAp4P97Jsd1RTfHHg21eQzAg7F6zZPn2HE x8drjb2oYQQL783EGoq6G/h35/ZIehNBJ6CZhmGZACHfnLMdlTNH4VdFnHx/Sykhv92k Yhq0aUQATe8S0HklmagDvMHVQLzVLitW2sDMsroUJSneZGzea64CgPHr3uRUktdoIGxb S09/qEcT3cn5srlrm1cOaTze2KqnJ8AOy5iaeIA6teoV2tqabDSQ+0dlcM3TNQ3oFmAy aopQ== 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:organization :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=bG2RSG/eMmogT9zLKeSpesOwSTJMB/bL447og4JLn/g=; b=cWsp9qi9ckhF8mXOPPCM3F6wxv6vfyRytZfB8x4aYyK9zk7yaYjszE8cJi3LNicZ5o jX2S8WQTxyvLsJbPE4ryTS/mUgJjTiWFDNPn1rnSs3LfTqxmwJSEW4Yv9RqIbhGnOl+l guH0ItT4cBPuISeO1S120B8CzVzrF52wthn5TX9zXVWKhqo+y2ApTNhh/KtiNk8ReEfz EoUs6Sm5RcXWR6qEj3Rw/syIl6ahPwpqADJ27EP1efM5TxCGrMQE980e+ZF8B23IaOk0 08slksIN8zjG340DSe+0COLZPlpa9zC++PzbDYJdaMAYynHc5cff2znhv8UItptwguxa b8SQ== 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 37si893454plv.243.2018.11.26.09.37.59; Mon, 26 Nov 2018 09:38:38 -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; 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 S1727323AbeK0EaZ (ORCPT + 99 others); Mon, 26 Nov 2018 23:30:25 -0500 Received: from mail-qt1-f196.google.com ([209.85.160.196]:37405 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727230AbeK0EaY (ORCPT ); Mon, 26 Nov 2018 23:30:24 -0500 Received: by mail-qt1-f196.google.com with SMTP id z16so18494522qtq.4; Mon, 26 Nov 2018 09:35:36 -0800 (PST) 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:organization:content-transfer-encoding; bh=bG2RSG/eMmogT9zLKeSpesOwSTJMB/bL447og4JLn/g=; b=YElhiznN5hC73rS1A2zVqESqKXEPhpbVH3atOTUiBurTOLjTl9ShbRZOqbSFPzcu73 B3HmcJfzDtNglfPeFTWOzvarNw2/1+BRTtBKBfYZR5Oq/V4iK+Fy40Td84xL4uGsQ0Vx XsiJS9sqv8X7jx1Fki0vA34f+lFhQG9atfxhiCDXR5Dad9Uip6JikUk820BQ0/TdOtyD QwOLt/IAw4zlXSe8mcs1ydYONS7dZ6TKW8OXNMmB66rf+YQJ76/YbCwlcK+C6vkl+IhT ndUEUvVLG+/ioaxyLkBlq9FPNRiX9XmMZFmJ+8a2UvWyEIDNMm4drslQ9/leM3sSq0pJ DpWA== X-Gm-Message-State: AA+aEWZ/4stm54kf1jBI7md9K/pRSxsZmDEm/0RCgrutkl5oWGFhXc+g JSh/H0AUIAO7tU5sOXZ9Hs8F7YWL X-Received: by 2002:a0c:d2f7:: with SMTP id x52mr27044363qvh.35.1543253735871; Mon, 26 Nov 2018 09:35:35 -0800 (PST) Received: from localhost.localdomain ([181.220.65.91]) by smtp.gmail.com with ESMTPSA id x7sm397238qti.76.2018.11.26.09.35.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Nov 2018 09:35:35 -0800 (PST) Received: by localhost.localdomain (sSMTP sendmail emulation); Mon, 26 Nov 2018 15:35:29 -0200 From: Otavio Salvador To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Heiko Stuebner Cc: Otavio Salvador , devicetree@vger.kernel.org, Thomas Gleixner , Rob Herring , Mark Rutland , Daniel Lezcano Subject: [PATCH v2 4/4] ARM: dts: rockchip: Add internal timer support for rv1108 Date: Mon, 26 Nov 2018 15:35:06 -0200 Message-Id: <20181126173506.24068-4-otavio@ossystems.com.br> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181126173506.24068-1-otavio@ossystems.com.br> References: <20181126173506.24068-1-otavio@ossystems.com.br> MIME-Version: 1.0 Organization: O.S. Systems Software LTDA. Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for the internal timer peripheral on RV1108. Signed-off-by: Otavio Salvador --- Changes in v2: - add binding to doc - fixup commit log .../devicetree/bindings/timer/rockchip,rk-timer.txt | 1 + arch/arm/boot/dts/rv1108.dtsi | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/timer/rockchip,rk-timer.txt b/Documentation/devicetree/bindings/timer/rockchip,rk-timer.txt index 16a5f4577a61..d65fdce7c7f0 100644 --- a/Documentation/devicetree/bindings/timer/rockchip,rk-timer.txt +++ b/Documentation/devicetree/bindings/timer/rockchip,rk-timer.txt @@ -2,6 +2,7 @@ Rockchip rk timer Required properties: - compatible: should be: + "rockchip,rv1108-timer", "rockchip,rk3288-timer": for Rockchip RV1108 "rockchip,rk3036-timer", "rockchip,rk3288-timer": for Rockchip RK3036 "rockchip,rk3066-timer", "rockchip,rk3288-timer": for Rockchip RK3066 "rockchip,rk3188-timer", "rockchip,rk3288-timer": for Rockchip RK3188 diff --git a/arch/arm/boot/dts/rv1108.dtsi b/arch/arm/boot/dts/rv1108.dtsi index 23ac4b10d690..9683f3b00d9d 100644 --- a/arch/arm/boot/dts/rv1108.dtsi +++ b/arch/arm/boot/dts/rv1108.dtsi @@ -293,6 +293,14 @@ }; }; + timer: timer@10350000 { + compatible = "rockchip,rv1108-timer", "rockchip,rk3288-timer"; + reg = <0x10350000 0x20>; + interrupts = ; + clocks = <&xin24m>, <&cru PCLK_TIMER>; + clock-names = "timer", "pclk"; + }; + watchdog: wdt@10360000 { compatible = "snps,dw-wdt"; reg = <0x10360000 0x100>; -- 2.19.2