Received: by 10.213.65.68 with SMTP id h4csp397108imn; Tue, 20 Mar 2018 06:10:01 -0700 (PDT) X-Google-Smtp-Source: AG47ELvDd54zkVMqtNLRezxknDZLwJ6R/xG4G6LNn2oqSr8OPC/ZlA6QQwqkcWixuBwz8nLPZFSa X-Received: by 10.99.175.79 with SMTP id s15mr4232699pgo.388.1521551401932; Tue, 20 Mar 2018 06:10:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521551401; cv=none; d=google.com; s=arc-20160816; b=v9TWUtxGMfz7qQAOi5XVT9oGMAGfzPuGZDs1wLugZRGZTv+d7/n9IrxblCWu9FK2jW sg1g5ytSb7ZINGA/glY3qChY31XBzhx8bSNQ/yVZjMmKgWLyWK5g/4BcWFGTeuZWBila INm9Y550IXFafWsw5dr8TkTjyZfh52Z5IRqf4+q9F9BNisYP1tFU96Fg6ss9QxynGDcP IsKMQXMneCa8HAuiPVUuhZGZV8yyDU7IM2BHqBy3IjGTl67TxgxCultdOYydY5S19/qY Khhjgx9W6B++9I9Se1Wj2ERGRYuzDvXRUbxcbedRhoGfeFlI1tJCLyB72yiUdFWewIuM eQhA== 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:arc-authentication-results; bh=0ZGeB1jvZyvDKVz2JbsDCY2DR6FQilJiYiXlA3h/Vas=; b=Ml+XSIfOKUUaK/EJrxuPsvpYIXP4eI8mmIERyUIU33J2tmmVPS+FktXYNwHzVvvy/t G6xA24zlNUmCd+RMh/V/3UhNDWN28c/ea4rq6P84Oh2Gp1lhkW3fZC7qiu4479l0LFGs kwI1Gg28IoqBVYqqhG1r0pvJaEbwKqsO18ylxxyuy7ojSJ3XiroQJLaorXEN9DnOB9oe CfVtdScM4Qqm9FBU/NAi72NHS64rtceodEYm2EnwZPED07539Zn8JKd5C7v5YYv3w7vl 1b5uJUP3pLpJunJHLcJjCjnqTSZjWoIYnfpDadVH1zAJA6d4EMlowV6tTicy7tMGGQem b1Lg== 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 o3si503357pgs.465.2018.03.20.06.09.47; Tue, 20 Mar 2018 06:10:01 -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; 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 S1753490AbeCTNIT (ORCPT + 99 others); Tue, 20 Mar 2018 09:08:19 -0400 Received: from mail.bootlin.com ([62.4.15.54]:42741 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753305AbeCTNIP (ORCPT ); Tue, 20 Mar 2018 09:08:15 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 88F35207E5; Tue, 20 Mar 2018 14:08:12 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (unknown [37.71.171.242]) by mail.bootlin.com (Postfix) with ESMTPSA id 2646E2082C; Tue, 20 Mar 2018 14:08:02 +0100 (CET) From: Alexandre Belloni To: James Hogan , Ralf Baechle Cc: Allan Nielsen , linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, Alexandre Belloni , Rob Herring , devicetree@vger.kernel.org Subject: [PATCH v6 3/6] MIPS: mscc: add ocelot dtsi Date: Tue, 20 Mar 2018 14:07:58 +0100 Message-Id: <20180320130801.9247-4-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180320130801.9247-1-alexandre.belloni@bootlin.com> References: <20180320130801.9247-1-alexandre.belloni@bootlin.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a device tree include file for the Microsemi Ocelot SoC. Cc: Rob Herring Cc: devicetree@vger.kernel.org Signed-off-by: Alexandre Belloni --- arch/mips/boot/dts/Makefile | 1 + arch/mips/boot/dts/mscc/Makefile | 1 + arch/mips/boot/dts/mscc/ocelot.dtsi | 117 ++++++++++++++++++++++++++++++++++++ 3 files changed, 119 insertions(+) create mode 100644 arch/mips/boot/dts/mscc/Makefile create mode 100644 arch/mips/boot/dts/mscc/ocelot.dtsi diff --git a/arch/mips/boot/dts/Makefile b/arch/mips/boot/dts/Makefile index e2c6f131c8eb..1e79cab8e269 100644 --- a/arch/mips/boot/dts/Makefile +++ b/arch/mips/boot/dts/Makefile @@ -4,6 +4,7 @@ subdir-y += cavium-octeon subdir-y += img subdir-y += ingenic subdir-y += lantiq +subdir-y += mscc subdir-y += mti subdir-y += netlogic subdir-y += ni diff --git a/arch/mips/boot/dts/mscc/Makefile b/arch/mips/boot/dts/mscc/Makefile new file mode 100644 index 000000000000..dd08e63a10ba --- /dev/null +++ b/arch/mips/boot/dts/mscc/Makefile @@ -0,0 +1 @@ +obj-y += $(patsubst %.dtb, %.dtb.o, $(dtb-y)) diff --git a/arch/mips/boot/dts/mscc/ocelot.dtsi b/arch/mips/boot/dts/mscc/ocelot.dtsi new file mode 100644 index 000000000000..dd239cab2f9d --- /dev/null +++ b/arch/mips/boot/dts/mscc/ocelot.dtsi @@ -0,0 +1,117 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* Copyright (c) 2017 Microsemi Corporation */ + +/ { + #address-cells = <1>; + #size-cells = <1>; + compatible = "mscc,ocelot"; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu@0 { + compatible = "mips,mips24KEc"; + device_type = "cpu"; + clocks = <&cpu_clk>; + reg = <0>; + }; + }; + + aliases { + serial0 = &uart0; + }; + + cpuintc: interrupt-controller { + #address-cells = <0>; + #interrupt-cells = <1>; + interrupt-controller; + compatible = "mti,cpu-interrupt-controller"; + }; + + cpu_clk: cpu-clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <500000000>; + }; + + ahb_clk: ahb-clk { + compatible = "fixed-factor-clock"; + #clock-cells = <0>; + clocks = <&cpu_clk>; + clock-div = <2>; + clock-mult = <1>; + }; + + ahb@70000000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0x70000000 0x2000000>; + + interrupt-parent = <&intc>; + + cpu_ctrl: syscon@0 { + compatible = "mscc,ocelot-cpu-syscon", "syscon"; + reg = <0x0 0x2c>; + }; + + intc: interrupt-controller@70 { + compatible = "mscc,ocelot-icpu-intr"; + reg = <0x70 0x70>; + #interrupt-cells = <1>; + interrupt-controller; + interrupt-parent = <&cpuintc>; + interrupts = <2>; + }; + + uart0: serial@100000 { + pinctrl-0 = <&uart_pins>; + pinctrl-names = "default"; + compatible = "ns16550a"; + reg = <0x100000 0x20>; + interrupts = <6>; + clocks = <&ahb_clk>; + reg-io-width = <4>; + reg-shift = <2>; + + status = "disabled"; + }; + + uart2: serial@100800 { + pinctrl-0 = <&uart2_pins>; + pinctrl-names = "default"; + compatible = "ns16550a"; + reg = <0x100800 0x20>; + interrupts = <7>; + clocks = <&ahb_clk>; + reg-io-width = <4>; + reg-shift = <2>; + + status = "disabled"; + }; + + reset@1070008 { + compatible = "mscc,ocelot-chip-reset"; + reg = <0x1070008 0x4>; + }; + + gpio: pinctrl@1070034 { + compatible = "mscc,ocelot-pinctrl"; + reg = <0x1070034 0x68>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&gpio 0 0 22>; + + uart_pins: uart-pins { + pins = "GPIO_6", "GPIO_7"; + function = "uart"; + }; + + uart2_pins: uart2-pins { + pins = "GPIO_12", "GPIO_13"; + function = "uart2"; + }; + }; + }; +}; -- 2.16.2