Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5143210imm; Sun, 22 Jul 2018 14:22:43 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfqLd6nCvoCa83i3uwmy1v9z3F1wp7rNtyIBe7ex+VvKva72kszggs2SqLuvH947/wZV3kF X-Received: by 2002:a63:1c13:: with SMTP id c19-v6mr9831202pgc.332.1532294563337; Sun, 22 Jul 2018 14:22:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532294563; cv=none; d=google.com; s=arc-20160816; b=zPxtjetLsCi0A4+VC3XYZawgUHmWH7KoiduSb+VCs8Gv4S76Ea3trf1UAnZdgK1CWp 5Kw7sUsRYIwovJSTX4dIaYKgywWvqJxUYQq/MQatDXvEecApgs0bjmU2d7mH2Lsw252w 0moStpgYl8P4JeBZu9lIOEby3DVa7PXmYd0FT4k5Ob51nXQZtbOKwtYXViClXGEBJ1/J uwequHc91VASHZQCk+gvlfrVbx8IZjixs8bg+fhu9p29hA15ItEOAWM8LQ17/CF3YTDL Vx57hIVeOdrBwvCFc4ZNRcA8aooLAlAuGK2R0VcS47bUDEnmOhm9u9bUVSZo6WHJOsYp eOSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=hO2ZV4OZwi62DLhUT3SAAxZDscDvJFkWgbvappCx0DY=; b=EtgxKFycHUxdJOC2UuL+gW7AGIWyX9dHon5WKi8Fn0E0DiHwYLOjLvaq7LszfhHX38 mkJm05DG7enL7TrJVARjj5kt2vn/TVaSeDsFAv5Uoln/qjD0LyfHEF4ZW7JaUWfRQw0R Tr9VPE/eBZGYUICZCkhR9d/D2Tr6eoH3W8gR4uOzHi0/aNLJv7KkqoP7gCk8sPFDLoes DFQEvaZb1cOGU2Qp5YkzbY7hcVLCYTSD/NnpoCE/guxhmdnxHB3MI9RNmT7ogy+zDUqy MEMjWoNPfNz3gYvuL6BdrGdGdgE+82TJ3aJcgCQxFxyZ8oKfSH4oreNRzm6V1kc6zdwA VGWQ== 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 r81-v6si7416667pfg.305.2018.07.22.14.22.29; Sun, 22 Jul 2018 14:22:43 -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 S2387953AbeGVWTM (ORCPT + 99 others); Sun, 22 Jul 2018 18:19:12 -0400 Received: from mx2.suse.de ([195.135.220.15]:38772 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730715AbeGVWSW (ORCPT ); Sun, 22 Jul 2018 18:18:22 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 3347FAFCA; Sun, 22 Jul 2018 21:20:20 +0000 (UTC) From: =?UTF-8?q?Andreas=20F=C3=A4rber?= To: linux-mips@linux-mips.org Cc: Ralf Baechle , Paul Burton , James Hogan , linux-kernel@vger.kernel.org, =?UTF-8?q?Andreas=20F=C3=A4rber?= , Rahul Bedarkar , James Hartley , Rob Herring , Mark Rutland , devicetree@vger.kernel.org Subject: [PATCH 05/15] MIPS: dts: img: pistachio_marduk: Enable SPIM0 Date: Sun, 22 Jul 2018 23:20:00 +0200 Message-Id: <20180722212010.3979-6-afaerber@suse.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20180722212010.3979-1-afaerber@suse.de> References: <20180722212010.3979-1-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SPIM0 supplies SPI pins on the mikroBUS and Raspberry Pi B+ connectors. Signed-off-by: Andreas Färber --- arch/mips/boot/dts/img/pistachio_marduk.dts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/mips/boot/dts/img/pistachio_marduk.dts b/arch/mips/boot/dts/img/pistachio_marduk.dts index 5557a6ad61c3..d723b68084c9 100644 --- a/arch/mips/boot/dts/img/pistachio_marduk.dts +++ b/arch/mips/boot/dts/img/pistachio_marduk.dts @@ -123,6 +123,14 @@ pins = "mfio17", "mfio18", "mfio19", "mfio20"; }; +&pin_spim0 { + drive-strength = <2>; +}; + +&pin_spim0_clk { + drive-strength = <2>; +}; + &pwm { status = "okay"; @@ -137,6 +145,21 @@ disable-wp; }; +&spfi0 { + status = "okay"; + + pinctrl-0 = <&spim0_pins>, + <&spim0_cs0_alt_pin>, + <&spim0_cs2_alt_pin>, + <&spim0_cs3_alt_pin>, + <&spim0_cs4_alt_pin>; + pinctrl-names = "default"; + cs-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>, <0>, + <&gpio1 12 GPIO_ACTIVE_HIGH>, + <&gpio1 13 GPIO_ACTIVE_HIGH>, + <&gpio1 14 GPIO_ACTIVE_HIGH>; +}; + &spfi1 { status = "okay"; -- 2.16.4