From patchwork Sun Jul 22 21:19:56 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: 142508 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp5356664ljj; Sun, 22 Jul 2018 14:20:22 -0700 (PDT) X-Google-Smtp-Source: AAOMgpczMpiSaWF6RDnaTdWLHCvRuZC4DEwRVhYOMLOcKQCSKQoJYDTQiuYnG4RQIFqMjDlGXjG/ X-Received: by 2002:a62:ce81:: with SMTP id y123-v6mr10703589pfg.95.1532294422105; Sun, 22 Jul 2018 14:20:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532294422; cv=none; d=google.com; s=arc-20160816; b=fPtOMPuXU+sdcrxb9w6pvTZUEETsN4fel68qsGa3qbl5+tjCPDX42lA5LBDac03mkx jhDleODj4NyGxeTMspsksBAzooAxSi1IiJ/56DIcFePN1DGIbOqZOkdkra3CYXO0kn4H GUYYXHThxCIIzCIeocisvIbLm5VdYkdMIEKNgQmlqze5Pg/geMFcHQoTcYMRJGVfOV+U GtM4yWAtGF52Iu5fxKd9YsNNvYNick73tCBJHuZLczGRH4vz+06F/AuKMALb/vmx2Zko 1TXJTAw46LRM/ZVrJK3/mg2R7EdMC+DgsnONBBcyAIGBjX5emN0blqT0HhZ/+b6Kbnqe Y39Q== 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=HB82bioiVC67r546p21snSF/ym2JnX4t7okQhEYFJ/M=; b=Q56+vZzSymoQiAsGDMUzc76G6B/6mjfGs0Hi7DFqpA+NN5yUjghMKMrl+ssI1tMQQM tm1Z7Megt5o7XKQUVo5hwz4rZyQeRGw+8TYaiUo8gq0bI/cwAvL8w+A+lUvfkpZyFBbg lRa0wTCrt4Smg+rZLuW8HtdCmWXXAHWW+CZ7TRAnRJ1ikGrwASB/EPiSnFrnREAkzPUr nSoyPQobB6weMePZYhwhye7VuxGStFPXcoQfATvREPCL5K4bCRH7Xb9swYlFUbGt71TH qsE91J9UBD7rRlTaGhB1UeKVbsEkwp2CQKchAYy0Usz7SGXPb/ODgReQkWXqpAicqInS OWfQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 m68-v6si7560243pgm.637.2018.07.22.14.20.21; Sun, 22 Jul 2018 14:20:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730404AbeGVWSV (ORCPT + 5 others); Sun, 22 Jul 2018 18:18:21 -0400 Received: from mx2.suse.de ([195.135.220.15]:38668 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730261AbeGVWSV (ORCPT ); Sun, 22 Jul 2018 18:18:21 -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 93A2DADDF; Sun, 22 Jul 2018 21:20:18 +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?= , James Hartley , Rahul Bedarkar , Rob Herring , Mark Rutland , devicetree@vger.kernel.org Subject: [PATCH 01/15] MIPS: dts: img: pistachio_marduk: Reorder nodes Date: Sun, 22 Jul 2018 23:19:56 +0200 Message-Id: <20180722212010.3979-2-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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Consistently order nodes referenced by label alphabetically. No functional changes. This prepares for adding nodes. Signed-off-by: Andreas Färber --- arch/mips/boot/dts/img/pistachio_marduk.dts | 76 ++++++++++++++--------------- 1 file changed, 38 insertions(+), 38 deletions(-) -- 2.16.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/mips/boot/dts/img/pistachio_marduk.dts b/arch/mips/boot/dts/img/pistachio_marduk.dts index cf9cebd52294..f03f4114e645 100644 --- a/arch/mips/boot/dts/img/pistachio_marduk.dts +++ b/arch/mips/boot/dts/img/pistachio_marduk.dts @@ -74,40 +74,34 @@ }; }; -&internal_dac { - VDD-supply = <&internal_dac_supply>; -}; - -&spfi1 { +&adc { status = "okay"; - - pinctrl-0 = <&spim1_pins>, <&spim1_quad_pins>, <&spim1_cs0_pin>, - <&spim1_cs1_pin>; - pinctrl-names = "default"; - cs-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>, <&gpio0 1 GPIO_ACTIVE_HIGH>; - - flash@0 { - compatible = "spansion,s25fl016k", "jedec,spi-nor"; - reg = <0>; - spi-max-frequency = <50000000>; - }; + vref-supply = <®_1v8>; + adc-reserved-channels = <0x10>; }; -&uart0 { +&enet { status = "okay"; - assigned-clock-rates = <114278400>, <1843200>; }; -&uart1 { +&i2c2 { status = "okay"; + clock-frequency = <400000>; + + tpm@20 { + compatible = "infineon,slb9645tt"; + reg = <0x20>; + }; + }; -&usb { +&i2c3 { status = "okay"; + clock-frequency = <400000>; }; -&enet { - status = "okay"; +&internal_dac { + VDD-supply = <&internal_dac_supply>; }; &pin_enet { @@ -118,12 +112,6 @@ drive-strength = <2>; }; -&sdhost { - status = "okay"; - bus-width = <4>; - disable-wp; -}; - &pin_sdhost_cmd { drive-strength = <2>; }; @@ -140,24 +128,36 @@ pinctrl-names = "default"; }; -&adc { +&sdhost { status = "okay"; - vref-supply = <®_1v8>; - adc-reserved-channels = <0x10>; + bus-width = <4>; + disable-wp; }; -&i2c2 { +&spfi1 { status = "okay"; - clock-frequency = <400000>; - tpm@20 { - compatible = "infineon,slb9645tt"; - reg = <0x20>; + pinctrl-0 = <&spim1_pins>, <&spim1_quad_pins>, <&spim1_cs0_pin>, + <&spim1_cs1_pin>; + pinctrl-names = "default"; + cs-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>, <&gpio0 1 GPIO_ACTIVE_HIGH>; + + flash@0 { + compatible = "spansion,s25fl016k", "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <50000000>; }; +}; +&uart0 { + status = "okay"; + assigned-clock-rates = <114278400>, <1843200>; }; -&i2c3 { +&uart1 { + status = "okay"; +}; + +&usb { status = "okay"; - clock-frequency = <400000>; }; From patchwork Sun Jul 22 21:19:58 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: 142509 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp5356671ljj; Sun, 22 Jul 2018 14:20:22 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcNAGs8Lmqy2GAN4yiz4LXO3N9stxk2AqvhJnw/gl2nXJcECgQ4M2jRl7CDtwtDRIGjPrku X-Received: by 2002:a63:41c6:: with SMTP id o189-v6mr9936070pga.323.1532294422368; Sun, 22 Jul 2018 14:20:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532294422; cv=none; d=google.com; s=arc-20160816; b=ELrWlVMNELdsci7qd+uZokE5BKaRUgPzz9C4yhVxgBr1J0DZDe8jA4+bfO0vwJipIZ /a/5JIjtGRLRG2RUQtjPTM0zzR0mYpbP+AcnhIN752oO1lGg00k1UNSOrUgSMENU3jVw TEiWFoCI6TWR2Of7mc3jkz6sKAmGEvXyhRuB6KJOwyP07OVvQZGwrfhdScnvDgX+V8HM S7TIgHNs+CGgwSn19cCR66CvdX8g3COaiTR12JVoXbBhuug0WvsnVJfsdSXJtrpmekZj vz5uH/SjC/A2NS5Hn+F5uzbeDwgt720mbhp83JETr4Owy6m74uUHBUdB5UgCdng2XpXI VuPQ== 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=72inQHg5vOasWVj16AfdjsvZRqEhmSEGjOxJImzwY1g=; b=w7dvt0SZQjIN+KIcXlqFxeg3lX9h3hwX5Vij+iSM/LYHe9g2mHHWozS1FcLkACYUug AnBxHZUmD/i7Msv6tb6buE4hOuu2d+rT3cv5i1gnEvVEdz5R5p2RsNJ/dEOEEy1pbDwj JBLyfy2vfSoz/PANFmt+VX7veF7v2AdQDn+b8gMbB4DgqzvmhCXGs7/psUo1vu3ASARY AQLS6uxD2prRJZblRCX1lbkU0LQoFTPjU7RChYCFXl9ToGBlrkJvRvk6dm0Zl1dXocF2 ldqYXVJmI+RpX2J1Eh5JtyazhwTr39seTeY6EcV8kR8FBft2LEvV1Lm37O/htaU/NoTi 6rDw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 m68-v6si7560243pgm.637.2018.07.22.14.20.22; Sun, 22 Jul 2018 14:20:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730720AbeGVWSV (ORCPT + 5 others); Sun, 22 Jul 2018 18:18:21 -0400 Received: from mx2.suse.de ([195.135.220.15]:38730 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730327AbeGVWSV (ORCPT ); Sun, 22 Jul 2018 18:18:21 -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 499DFAFC7; Sun, 22 Jul 2018 21:20:19 +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?= , James Hartley , Rob Herring , Mark Rutland , devicetree@vger.kernel.org Subject: [PATCH 03/15] MIPS: dts: img: pistachio: Rename spim0-clk pin node label Date: Sun, 22 Jul 2018 23:19:58 +0200 Message-Id: <20180722212010.3979-4-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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Renaming will allow consistent ordering when referenced. Signed-off-by: Andreas Färber --- arch/mips/boot/dts/img/pistachio.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.16.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/mips/boot/dts/img/pistachio.dtsi b/arch/mips/boot/dts/img/pistachio.dtsi index f8d7e6f622cb..1adef5bc740d 100644 --- a/arch/mips/boot/dts/img/pistachio.dtsi +++ b/arch/mips/boot/dts/img/pistachio.dtsi @@ -406,7 +406,7 @@ function = "spim0"; drive-strength = <4>; }; - spim0_clk: spim0-clk { + pin_spim0_clk: spim0-clk { pins = "mfio8"; function = "spim0"; drive-strength = <4>; From patchwork Sun Jul 22 21:20:02 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: 142511 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp5356779ljj; Sun, 22 Jul 2018 14:20:33 -0700 (PDT) X-Google-Smtp-Source: AAOMgpecbvdKVMVw2lF4uYGvIqojmTKauM/1CrXCrUkvGjaVy1xJKWhucB1lzMvuI6WvJZmB02lD X-Received: by 2002:a63:da04:: with SMTP id c4-v6mr9347297pgh.398.1532294433453; Sun, 22 Jul 2018 14:20:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532294433; cv=none; d=google.com; s=arc-20160816; b=RWgUe1Q0afaCEBxFJQQADjMGz0lHzJ7UdWuQJw6iYztjbAZXmAknw0dTPzH+UJsaoY fJ4syZuxJ0zA1GbyyBawYpggtaZQv3P0wsk7vZnuIxoJP1jbPaz8elgkvhuakB/U3WQP N3sktndIHg7MuuF1sfYlABLBb8ms/neHeGnazH9LnmsmldcwWQ341fb6RS/Nprct26wP uhQIps6Vr85b+h+dFo4CGvAYnkOmnTtgbcsh0L9WmcCVykdjijaKhcinlzTF2szPBSyz 4bErJBlsAFECMVCAr2nHiz4IN/dI3KR0wJ3UCgq2NxsUfb7DczQrI4AJFS7yvaekI+jq Uzhg== 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=0grAUuA3B34ad7hXV7B5qB3rchZtPCoafXCiDFlZyEw=; b=lSpj9ATrSN4pfWpxAIRIuV8FuohmLSQlopSazMK1ESSezkzkkPdaVAEzP8oU0E7Qk7 paG+63IQcreh1a2yD6f27KOu05qPfPv+VMlW9oH/yOz0XOsmb1pbyYQ3WmfITvRYY8qM why+GfCtBvKBfRI+2V0oh2DELXxJQdpZ/GygIVnnqgGtbpDTE6D3KAPUIf78+kyxafgm DEtpj2+ybz5KgvO10hTSMwJGqH8QYpRH5NpWgaVhqA5al5Zne+m60iPahelMGqCM2MOh 5xgv8YwoofLCKNMtbXQycbLcx3MthHwd3ZH6wXuuIROS7ymAQMHGJDww9ft0s+YaEkiz BVYA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 k23-v6si7074765pgl.633.2018.07.22.14.20.33; Sun, 22 Jul 2018 14:20:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387736AbeGVWSX (ORCPT + 5 others); Sun, 22 Jul 2018 18:18:23 -0400 Received: from mx2.suse.de ([195.135.220.15]:38792 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730327AbeGVWSX (ORCPT ); Sun, 22 Jul 2018 18:18:23 -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 150E2AFCC; Sun, 22 Jul 2018 21:20:21 +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 07/15] MIPS: dts: img: pistachio_marduk: Add SPI UART node Date: Sun, 22 Jul 2018 23:20:02 +0200 Message-Id: <20180722212010.3979-8-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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The mikroBUS and Raspberry Pi B+ connector UARTs are behind an SC16IS752 SPI-UART bridge. Add it in order to be able to use these connectors. Note: For UART flow control two pairs of jumpers need to be configured. Signed-off-by: Andreas Färber --- arch/mips/boot/dts/img/pistachio_marduk.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) -- 2.16.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/mips/boot/dts/img/pistachio_marduk.dts b/arch/mips/boot/dts/img/pistachio_marduk.dts index b0b6b534a41f..f682d0a5a3d9 100644 --- a/arch/mips/boot/dts/img/pistachio_marduk.dts +++ b/arch/mips/boot/dts/img/pistachio_marduk.dts @@ -159,6 +159,18 @@ <&gpio1 13 GPIO_ACTIVE_HIGH>, <&gpio1 14 GPIO_ACTIVE_HIGH>; + sc16is752: uart@0 { + compatible = "nxp,sc16is752"; + reg = <0>; + spi-max-frequency = <4000000>; + interrupt-parent = <&gpio0>; + interrupts = <11 IRQ_TYPE_EDGE_FALLING>; + clocks = <&ca8210>; + + gpio-controller; + #gpio-cells = <2>; + }; + ca8210: sixlowpan@4 { compatible = "cascoda,ca8210"; reg = <4>;