Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp172945imu; Wed, 12 Dec 2018 14:24:12 -0800 (PST) X-Google-Smtp-Source: AFSGD/VrNByq3gqiwc7QtXWh3DYmRNvHAkQNaQuPQMhNb7m45+fIwTVmnRKJCqXpnA0HgZ3lYAgK X-Received: by 2002:a62:9419:: with SMTP id m25mr22938918pfe.147.1544653452110; Wed, 12 Dec 2018 14:24:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544653452; cv=none; d=google.com; s=arc-20160816; b=qSj8ycfA66RX86JRHhY1yMGTBw9twsdMj1D47J6/HOaXwXBCXNzn8/tZKYWPdBiKx9 bqnuxoxY41Q7BzU3mDPtl7tFeqi232w8RMuylnQQpV0BYbGIZagG4bxxfbs0IozKFVho z8WZC3qVH71KL4b9ROGpPIghLhFcK8eUOYJv6GnaKirBj4eAyfLRUCE9Dy8LFndiQddw VjB9NsUjlt9YYPJnA4AXeyj1Is2nrJajxvUqxxAreT3QdouzU0XBllr2Juw6r/KJXqsd 4+Lj3+hemyos4p77ppZ0L8XaoWXGqli72JTTrp+DhqlBGWLawQdE3b5buWh6lT0yK5id anSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:references:in-reply-to :message-id:date:subject:cc:to:from; bh=ksfFjOlJNPrs7C6s/v/Mewpebdp4w24yVLtWOe3+U9s=; b=Xf7VKXX5C30BMZFK69zqx0LLrXmJBwvDVWr/LdbEZyyvbsiIUcni7FsBBta5brnlpV TTfhQ+zqv33YyoN7OrF/c+K8+9wMO3B5jd1B+4UfoerP8o6riliY+FjtcZn4AsYh5Mc/ CxSVXiXKpj0rtWAn7FyVRGL8fedVcWYbbMWPl6xM/9MV4dqGg7jS9g/x3deyVB1mVzLV jw7NJLEgtmzZ9enNA7OvmfKjIcZaQj8USYdYy8D9Xz0EiAmGecVIBN7mFExDeP3PIe9W 3RN1UGksgRgNxvUfRbDTN8stPav7CCD9yHg5AeiJu6O2lAMTr0piUMO/BZE8yBQlY2JG ma0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=CAY+Q2YP; 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=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w61si8204plb.309.2018.12.12.14.23.57; Wed, 12 Dec 2018 14:24:12 -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=@crapouillou.net header.s=mail header.b=CAY+Q2YP; 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=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728609AbeLLWVz (ORCPT + 99 others); Wed, 12 Dec 2018 17:21:55 -0500 Received: from outils.crapouillou.net ([89.234.176.41]:44934 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727061AbeLLWVm (ORCPT ); Wed, 12 Dec 2018 17:21:42 -0500 From: Paul Cercueil To: Thierry Reding , Rob Herring , Mark Rutland , Daniel Lezcano , Thomas Gleixner , Ralf Baechle , Paul Burton , James Hogan , Jonathan Corbet Cc: Mathieu Malaterre , Ezequiel Garcia , PrasannaKumar Muralidharan , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-mips@vger.kernel.org, linux-doc@vger.kernel.org, linux-clk@vger.kernel.org, od@zcrc.me, Paul Cercueil Subject: [PATCH v8 23/26] MIPS: GCW0: Move clocksource to TCU channel 2 Date: Wed, 12 Dec 2018 23:13:17 +0100 Message-Id: <20181212221317.19335-1-paul@crapouillou.net> In-Reply-To: <20181212220922.18759-1-paul@crapouillou.net> References: <20181212220922.18759-1-paul@crapouillou.net> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1544652805; bh=ksfFjOlJNPrs7C6s/v/Mewpebdp4w24yVLtWOe3+U9s=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=CAY+Q2YPio5G6HRWCc0vfgwV+iOCcsbipiUDvNv+zzRmC7sXv6i+5sl1pC2OZTbraIRztKZCOXJEvlrXtt+6mSf7unpP0AvhSGjUq4P7J83G4645COcbAhWQORNXjaGVDmjEeeQTtxWpRgxX9rfqjD83f04Zqdfj2l/hfRHlZqk= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The TCU channel 1, which is the default for the clocksource, is used as PWM on the GCW Zero as it drives the backlight. Therefore we must use a different TCU channel for the clocksource. Signed-off-by: Paul Cercueil --- Notes: v8: New patch arch/mips/boot/dts/ingenic/gcw0.dts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/mips/boot/dts/ingenic/gcw0.dts b/arch/mips/boot/dts/ingenic/gcw0.dts index 35f0291e8d38..8abab14eb852 100644 --- a/arch/mips/boot/dts/ingenic/gcw0.dts +++ b/arch/mips/boot/dts/ingenic/gcw0.dts @@ -60,3 +60,14 @@ /* The WiFi module is connected to the UHC. */ status = "okay"; }; + +&pwm { + /* Channels 1 and 3-7 are for PWM use */ + reg = <0x50 0x10>, <0x70 0x50>; +}; + +&clocksource { + /* Use channel 2 for the clocksource */ + reg = <0x60 0x10>; + clocks = <&tcu TCU_CLK_TIMER2>; +}; -- 2.11.0