Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3204636imm; Sun, 17 Jun 2018 13:49:38 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJljyoWYLcMSOFC47nQ7WQll1ZEqC+vV7WuhyW6/1jyJkcGdB3oJo3pmrat85NKvAeTFIbL X-Received: by 2002:a65:450c:: with SMTP id n12-v6mr8870785pgq.242.1529268578705; Sun, 17 Jun 2018 13:49:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529268578; cv=none; d=google.com; s=arc-20160816; b=BtRb0jLikiLkBKbA6PGQ2B/Hg/ZemwlLNgqODnDpTeoEmFrB46UIyC+V7USRYJa7xZ KUj2rOWpHButjyOFZR7GHGaw7VWvzbjH3J/P84LTPkzKbxIzgE2/1/SSoHdGSY2n2fhh 3eRn+AzFWpgXkvZorXwi68xFWTl1oIYB350Gxpm3XX0fBOqYiBdR4ljMFylijnnOFEwC tlR9NgXNGWrdj17w2tFHuX7QDKqFKTRStQ9deoR9t1Sp7ip167ubklgFZ7KMQTLQ6SRk TxeCXuM5gxh69SNkhdoiM3GkOC7SvStVIOyLMCAX7GI5wwF+8APFrbX9w33kXACaASPA nhtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=oofkGP10r8IjuLpXcj0c4x/aJYaNe8KtYGXmfTFU5sU=; b=F2EnLTqD14yOlUsCHUBjHi2E0T39Att5TYw25qU89/8lVKUakl1dU4xFuszv32v0yj n+7yBxgmDtih+pllCE0wmpz5u6BjnceYWzg47KaX67V6suRZRXg2tvUqtZVaYz7VgDPm S3bmuFTZhEcID/PAfDXCA7BZXpDlgJxaDXUuKNzeKjuWPtCR1ye6m3B+ZpNoSIOnm7Dg tFIful8xokW/M84kUkwfiZtaZ+Yx8MkRJG3/E01iqn1ajem6ZIgSaQ7teRNOO5Tq6we8 /6bDNbUmFYc1NxyA347f8P2UEXHz2UM1gNG8C8Q0ZsqjUuNAq1axbElLmNu5FXmZcbxv M2SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=UircZIie; 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 f4-v6si10840850pgc.522.2018.06.17.13.49.24; Sun, 17 Jun 2018 13:49:38 -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; dkim=pass header.i=@agner.ch header.s=dkim header.b=UircZIie; 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 S934673AbeFQUrE (ORCPT + 99 others); Sun, 17 Jun 2018 16:47:04 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:50382 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754256AbeFQUqK (ORCPT ); Sun, 17 Jun 2018 16:46:10 -0400 Received: from trochilidae.lan (unknown [37.17.239.3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 154AB5C1531; Sun, 17 Jun 2018 22:46:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1529268367; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oofkGP10r8IjuLpXcj0c4x/aJYaNe8KtYGXmfTFU5sU=; b=UircZIie7bfZ+uZZ4/P2nsNdE7ofVrHF5rspiMeWrGVuaEDqBGiGutF/R/sUjS9hx3IK8k 4UyCnZ2OPV7NP47rKAhLPdidgi7mgHjxb5lVrYOTrGoWpRa5mX3oGQ0nNM00KhqQni2AiV aMqtbRkjpfQF61VTbjYiGKFT3DiF0dE= From: Stefan Agner To: boris.brezillon@bootlin.com, dwmw2@infradead.org, computersforpeace@gmail.com, marek.vasut@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, thierry.reding@gmail.com Cc: dev@lynxeye.de, miquel.raynal@bootlin.com, richard@nod.at, marcel@ziswiler.com, krzk@kernel.org, digetx@gmail.com, benjamin.lindqvist@endian.se, jonathanh@nvidia.com, pdeschrijver@nvidia.com, pgaikwad@nvidia.com, mirza.krak@gmail.com, gaireg@gaireg.de, linux-mtd@lists.infradead.org, linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Stefan Agner Subject: [PATCH v5 5/6] ARM: dts: tegra: add Tegra20 NAND flash controller node Date: Sun, 17 Jun 2018 22:46:04 +0200 Message-Id: <20180617204605.4648-6-stefan@agner.ch> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180617204605.4648-1-stefan@agner.ch> References: <20180617204605.4648-1-stefan@agner.ch> X-Spamd-Result: default: False [-2.10 / 15.00]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_TWELVE(0.00)[24]; BAYES_HAM(-3.00)[100.00%]; TAGGED_RCPT(0.00)[dt]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_SIGNED(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; MID_CONTAINS_FROM(1.00)[]; ASN(0.00)[asn:13030, ipnet:37.17.238.0/23, country:CH]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lucas Stach Add basic controller device tree node to be extended by individual boards. Use the assigned-clocks mechanism to set NDFLASH clock to a sensible default rate of 150MHz. Signed-off-by: Lucas Stach Signed-off-by: Stefan Agner --- arch/arm/boot/dts/tegra20.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi index 983dd5c147945..a75fe7fec7912 100644 --- a/arch/arm/boot/dts/tegra20.dtsi +++ b/arch/arm/boot/dts/tegra20.dtsi @@ -425,6 +425,21 @@ status = "disabled"; }; + nand-controller@70008000 { + compatible = "nvidia,tegra20-nand"; + reg = <0x70008000 0x100>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + clocks = <&tegra_car TEGRA20_CLK_NDFLASH>; + clock-names = "nand"; + resets = <&tegra_car 13>; + reset-names = "nand"; + assigned-clocks = <&tegra_car TEGRA20_CLK_NDFLASH>; + assigned-clock-rates = <150000000>; + status = "disabled"; + }; + pwm: pwm@7000a000 { compatible = "nvidia,tegra20-pwm"; reg = <0x7000a000 0x100>; -- 2.17.1