From patchwork Tue Feb 2 23:25:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Franklin Cooper X-Patchwork-Id: 8196491 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 334EBBEEE5 for ; Tue, 2 Feb 2016 23:27:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3D9F1202E9 for ; Tue, 2 Feb 2016 23:27:36 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 567662027D for ; Tue, 2 Feb 2016 23:27:35 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aQkKT-0001jN-5y; Tue, 02 Feb 2016 23:25:49 +0000 Received: from mail-ob0-f194.google.com ([209.85.214.194]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aQkK3-0000d9-H2 for linux-arm-kernel@lists.infradead.org; Tue, 02 Feb 2016 23:25:24 +0000 Received: by mail-ob0-f194.google.com with SMTP id wg8so232542obc.3 for ; Tue, 02 Feb 2016 15:25:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ns6aEGFSOzpJzM7ivrml+/UuzVzYUZ6op/zXHWFroYg=; b=QUdyhSwsmz32kbhOKDMsnMbUmPYDnL6hUWP0Q0QdnytJ7nJvgYAlp5u4TYB0w2i7Ue NI8FVaFgouVphPwRCzzLmfRBG4TKkN3Qhfd/pDR9lgtvRZ36LTn4Z9fbvKhv8adSSO++ 6E6f5uIHUxTajSrkEnpoYjECh1643UBx/SBgo1jl7KvAsevhn58J5dUJNtbxsQBKaw0d BCTueFW4CwdyHI3MBXphJ5NcVI2g9InE991X7c+Mlsu/E+BzAlcXJEoomo12QgFZ1srR 2U5gzqs/3l8RNSgxNnQri6YefM6Gy+eqrHz2GuCPko82CIJ/xJgQYA/opbwwiu0oTChD Q0aA== X-Gm-Message-State: AG10YOSMFit2d8eRpVWI5qm47lta3wPn68r6k9rDZQ3295G/dDTxf8l/HKbgYPEZENoLhw== X-Received: by 10.60.62.243 with SMTP id b19mr26307824oes.28.1454455502725; Tue, 02 Feb 2016 15:25:02 -0800 (PST) Received: from localhost.localdomain (pool-71-164-206-129.dllstx.fios.verizon.net. [71.164.206.129]) by smtp.gmail.com with ESMTPSA id q8sm1944657oep.2.2016.02.02.15.25.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 02 Feb 2016 15:25:02 -0800 (PST) From: Franklin S Cooper Jr To: nm@ti.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, ssantosh@kernel.org Subject: [PATCH 2/3] ARM: dts: keystone: Add Initial DT support for TI K2G SoC family Date: Tue, 2 Feb 2016 17:25:16 -0600 Message-Id: <1454455517-7360-3-git-send-email-fcooper@ti.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1454455517-7360-1-git-send-email-fcooper@ti.com> References: <1454455517-7360-1-git-send-email-fcooper@ti.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160202_152523_740636_4586B756 X-CRM114-Status: GOOD ( 15.83 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Franklin S Cooper Jr , Vitaly Andrianov MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Vitaly Andrianov K2G is the newest addition of TI's Keystone 2 product family. It is a single core Cortex A15 and a C66x DSP. K2G supports standard peripherals such as SPI, UART, MMC and USB 2.0. Includes two dual-core Programmable Real-time Unit and Industrial Communication Subsystems (PRU-ICSS). The technical reference manual for K2G can be found here: http://www.ti.com/lit/ug/spruhy8/spruhy8.pdf This device is targeted for a variety of applications which include, but are not limited to: Home audio Professional audio Industrial Programmable Logic Control The peripheral nodes that have been included in this patch have been tested during bring-up. Since all peripherals will not necessarily be used on all boards, disable all peripherals by default. This allow the board dts to selectively choose which peripherals it wants to enable. This SoC now uses the next generation of power management architecture with the PM functionality located in a microcontroller embedded in the SOC. Support for this new PM architecture along with other peripherals will be added in future patches. Signed-off-by: Vitaly Andrianov Signed-off-by: Franklin S Cooper Jr --- arch/arm/boot/dts/k2g.dtsi | 89 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 arch/arm/boot/dts/k2g.dtsi diff --git a/arch/arm/boot/dts/k2g.dtsi b/arch/arm/boot/dts/k2g.dtsi new file mode 100644 index 0000000..7ff2796 --- /dev/null +++ b/arch/arm/boot/dts/k2g.dtsi @@ -0,0 +1,89 @@ +/* + * Device Tree Source for K2G SOC + * + * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/ + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed "as is" WITHOUT ANY WARRANTY of any + * kind, whether express or implied; without even the implied warranty + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include +#include "skeleton.dtsi" + +/ { + compatible = "ti,k2g","ti,keystone"; + model = "Texas Instruments K2G SoC"; + #address-cells = <2>; + #size-cells = <2>; + interrupt-parent = <&gic>; + + aliases { + serial0 = &uart0; + }; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu@0 { + compatible = "arm,cortex-a15"; + device_type = "cpu"; + reg = <0>; + }; + }; + + gic: interrupt-controller@02561000 { + compatible = "arm,cortex-a15-gic"; + #interrupt-cells = <3>; + interrupt-controller; + reg = <0x0 0x02561000 0x0 0x1000>, + <0x0 0x02562000 0x0 0x2000>, + <0x0 0x02564000 0x0 0x1000>, + <0x0 0x02566000 0x0 0x2000>; + interrupts = ; + }; + + timer { + compatible = "arm,armv7-timer"; + interrupts = + , + , + , + ; + }; + + pmu { + compatible = "arm,cortex-a15-pmu"; + interrupts = ; + }; + + soc { + #address-cells = <1>; + #size-cells = <1>; + compatible = "ti,keystone","simple-bus"; + ranges = <0x0 0x0 0x0 0xc0000000>; + dma-ranges = <0x80000000 0x8 0x00000000 0x80000000>; + + uart0: serial@02530c00 { + compatible = "ns16550a"; + current-speed = <115200>; + reg-shift = <2>; + reg-io-width = <4>; + reg = <0x02530c00 0x100>; + interrupts = ; + clock-frequency = <200000000>; + status = "disabled"; + }; + }; +};