From patchwork Mon Sep 24 18:33:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 10612783 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9BC4F1390 for ; Mon, 24 Sep 2018 18:33:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8CE50285E3 for ; Mon, 24 Sep 2018 18:33:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 80F7A2866F; Mon, 24 Sep 2018 18:33:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 22175285E3 for ; Mon, 24 Sep 2018 18:33:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729075AbeIYAgb (ORCPT ); Mon, 24 Sep 2018 20:36:31 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:40944 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729144AbeIYAgb (ORCPT ); Mon, 24 Sep 2018 20:36:31 -0400 Received: by mail-lj1-f193.google.com with SMTP id r83-v6so1181967ljr.7 for ; Mon, 24 Sep 2018 11:33:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:cc:references:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=HUmQ+6Uh5A/7nm2VTtMZxMa0T/2lrJrJp8Eg7s6QwNI=; b=xuYbRFeL63V+TBEmADLly8wt37KhGBOROuc0eGdoUkKk8IZxAYlz1yMOreVr2HWivY gTKZsnOj7r97s/MMRwkOKVqYE7BMcmatedmHmqCFMq+PhVEDTdGgIu/afIBK9BrtXr7c BmZmqjbF42wZW4dXNfgcwF5hWemjSANWLGvoxzgN6mh+MWN+dIhCcoVsU2tr0+HQsSWs vKRF0e3SG8dpIeLOAfQv8+/qPiCBMVoytjaLkURbvBLUjrKWfWe+qqV4UzcZOw163GYd xT/BpcFIFjAvOVD89raWS/UXqeuyWOE34QiT0DAOvZnVjy4yTIq0HG8vCRLmCGxg3ty6 lENA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=HUmQ+6Uh5A/7nm2VTtMZxMa0T/2lrJrJp8Eg7s6QwNI=; b=HM0C2K48oolH7NYeNB11MsA4G1x9eNDkcjCSMFuYcTv6aKVbe977bgczoMSu/sUNIJ Me+isPa1oNVtML8O/723GKy9fzTn5uPmLbMSZVRrvvzCicNFNXyto7prpEUq60D6rZkS Lcotmf+i9ni2YKVkaMOCW6XwOvbZ6cMa8n2HP9/f4zNX9jrwCQ8NE2+DYGfLO4jL7UCY bI87VgWm2WK+f1zpCMBK+INoBzawrhi+CKdnxVABg59SfOMGVKYZPBRqF2CDxqJ6QxDP e6B7s6sowQm43rOXOpl4TmZkj2VoExmCD+H4sK40/SqW/eMBJbBPahs2bEMZgYSKIPiX WeVw== X-Gm-Message-State: ABuFfoipMg2iR39SJel6MRHQbULdIVeWWZn1Lb3BPVXft1s/oamho9FN f7ilPhqb+JriMFr20/JDL8Ou+g== X-Google-Smtp-Source: ACcGV603Z1TWsrxom0aJBcOzmiAwr5af+YeBSjLwfCzUwYgE2It4vi1mLlDUR5b5VO2Dz6tfO+uwIw== X-Received: by 2002:a2e:44d:: with SMTP id 74-v6mr67974lje.146.1537813982168; Mon, 24 Sep 2018 11:33:02 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.87.133]) by smtp.gmail.com with ESMTPSA id p9-v6sm9874ljh.0.2018.09.24.11.33.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Sep 2018 11:33:01 -0700 (PDT) From: Sergei Shtylyov Subject: [PATCH v3] arm64: dts: renesas: r8a779{7|8}0: add TPU support To: Simon Horman , Rob Herring , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: Magnus Damm , Mark Rutland References: Organization: Cogent Embedded Message-ID: <841a2957-dcf6-a7ec-88c1-245c360f01d5@cogentembedded.com> Date: Mon, 24 Sep 2018 21:33:00 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-MW Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Describe TPU in the R8A779{7|8}0 device trees. Based on the original (and large) patches by Vladimir Barinov. Signed-off-by: Vladimir Barinov Signed-off-by: Sergei Shtylyov Reviewed-by: Geert Uytterhoeven --- This patch is against the 'renesas-devel-20180924-v4.19-rc5' branch of Simon Horman's 'renesas.git' repo. Changes in version 3: - added the "interrupts" and "resets" properties. Changes in version 2: - fixed up the size cells in the "regs" properties; - fixed up the "#pwm-cells" properties; - fixed up the R8A77980's "compatible" property. arch/arm64/boot/dts/renesas/r8a77970.dtsi | 10 ++++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 11 +++++++++++ 2 files changed, 21 insertions(+) Index: renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi =================================================================== --- renesas.orig/arch/arm64/boot/dts/renesas/r8a77970.dtsi +++ renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi @@ -614,6 +614,16 @@ status = "disabled"; }; + tpu: pwm@e6e80000 { + compatible = "renesas,tpu-r8a77970", "renesas,tpu"; + reg = <0 0xe6e80000 0 0x148>; + interrupts = ; + clocks = <&cpg CPG_MOD 304>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 304>; + #pwm-cells = <3>; + status = "disabled"; + }; vin0: video@e6ef0000 { compatible = "renesas,vin-r8a77970"; Index: renesas/arch/arm64/boot/dts/renesas/r8a77980.dtsi =================================================================== --- renesas.orig/arch/arm64/boot/dts/renesas/r8a77980.dtsi +++ renesas/arch/arm64/boot/dts/renesas/r8a77980.dtsi @@ -666,6 +666,17 @@ status = "disabled"; }; + tpu: pwm@e6e80000 { + compatible = "renesas,tpu-r8a77980", "renesas,tpu"; + reg = <0 0xe6e80000 0 0x148>; + interrupts = ; + clocks = <&cpg CPG_MOD 304>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 304>; + #pwm-cells = <3>; + status = "disabled"; + }; + vin0: video@e6ef0000 { compatible = "renesas,vin-r8a77980"; reg = <0 0xe6ef0000 0 0x1000>;