From patchwork Sun Jul 22 21:20:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 142520 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp5357199ljj; Sun, 22 Jul 2018 14:21:13 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdrdoOnP5dmQblBC20kQIKr2NUQlVC6xZYcku3yjm46Ncholx/xoD4MQzk427AX3o9gco9c X-Received: by 2002:a65:4cc5:: with SMTP id n5-v6mr9724504pgt.451.1532294473323; Sun, 22 Jul 2018 14:21:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532294473; cv=none; d=google.com; s=arc-20160816; b=q7AO6wzWIC4BmX3OhTXykmKlvD6iq0SJ29jvw2l31TLNF6N+Q3K0paF30GVxJESfds rbS4K1mt7o8feiWscMBcGXykQNQbWqsutX7QXuWLI1z5MiAEcEwzxL9+v1XQrq1hXiiv uWj1k5PFzNfsNbWVLOhnU9TAzhnQBHi3X02AsLMtz5YnHpFCrGBZ1lw1rKHrpHjsQ/jL tJL4OKmExhCSzlrnds4ZiNz2cP+aZ5KN01BiGV6lomoPbOGQRuCnxAnRGkskzEBFrQc3 VErcH9O1J82FFVudV9vntB3+MmnYclwV5oHIUzgLKQOPGYEakkoEIVG4nEilRgjju43p azdQ== 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 82-v6si6838303pfo.229.2018.07.22.14.21.13; Sun, 22 Jul 2018 14:21:13 -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 S2387956AbeGVWTM (ORCPT + 31 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_F=C3=A4rber?= To: linux-mips@linux-mips.org Cc: Ralf Baechle , Paul Burton , James Hogan , linux-kernel@vger.kernel.org, =?utf-8?q?Andreas_F=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 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(+) -- 2.16.4 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";