From patchwork Mon May 6 12:04:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10930907 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A1177912 for ; Mon, 6 May 2019 12:05:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E9F12854F for ; Mon, 6 May 2019 12:05:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 82C3828563; Mon, 6 May 2019 12:05:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 387132854F for ; Mon, 6 May 2019 12:05:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=V9KaUPImNfjbi4eIfhzXQu+0h/AhwC9FkcHGbPpXXco=; b=Kwu g7NLC5QysWwQTf+O1SZkQCygCV/3wB9AWT/eDnD0nzUO2TE6PYNiYTc2YtzH5o2lhH2YAff3tY7/m WlS6Srax+gjKrcHQLYMgsKjpZwY3az/x9iXME/+YcGb279S1FKCNeVwC0hvSi5clwW/G106JRAjxq Gz1X2srsltEh3xuK86DDI70aWv5+q1nNjzcC+OxulDR90Z0zmm2l1KNgQt4hO+bnJnSMxOEYHpMyK N495qUrBBYxQKStsLzT3lwA2paSxQJBPG87gCD/JfQPxbkLy325qMJUuJHJ4vZbbeN3WfDDY/AyKQ 2vwv7730pg9tw446DTbc0kjf1e1jIbQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hNcN8-0004TX-1s; Mon, 06 May 2019 12:05:30 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hNcN4-0004St-DV for linux-rockchip@lists.infradead.org; Mon, 06 May 2019 12:05:27 +0000 Received: by mail-pg1-x542.google.com with SMTP id t187so2239477pgb.13 for ; Mon, 06 May 2019 05:05:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=HNEnwk6bTyI+OdxTHxmPibg++VUvhYqw1S30xXcVZwM=; b=f/5+htOyvjkdDYEDCOaeUK7pb2MKXpEDjDcB9ympoEJwxl8lLpuo+/Do9n529BCo7G fy3eB+/l9rwfBf35NTTLyd4TCsrhybdKdrUmOODARQue/Kl8V9U1fbSn2sLxnTzw7s3e rxvR+cKHuYXhsWa76q/R17RMzgAGDDZba8esw+/oste9ySRMomylMMQfpYM+Kb7ZMBWH HWPlkCsTmWxd7DTrh9JACEnS1o0WoP/ds6ehK3ObZBcW0Rd1oi++HcOT5Z10RlWrxV0b t/Y/JBqtVTOHxVRFjsKFuthtsgL1WcoBvbOg6muXU6Ikd7MmXAftmvnsbp5YbwZnBIcV KXlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=HNEnwk6bTyI+OdxTHxmPibg++VUvhYqw1S30xXcVZwM=; b=KdskSrrLdj+8iZ0K4VEdA0ydGH06AGhRndj58V+Tf9X6e/8bqJkoE4omrpS21HPztA KrA8xmiqyQuuc5HjjTEu9T5BDSEyTW09K+NxWTmFnxJ7vqfd6c1ylF3BlGuWCWctmLKO TVoMbrVMAE2SH+S/CUIWadPFOWOnBKuoJQCGZIsGxqTZQmgX0rfKnAvmNgs9hfy2Mted IVu0JhPpMSXV5ISmgdQcRLQPVUcd5yNFraY433jZBCIUeQPv0ZtfZ/DuIaSt6gl+vdbq GjQkOzn2dTG+pXtrzwVBaGOSN2lvRPeT6/MHgiBinrNGXcsIKx5G97nfWOtkFpOfz6MT lNKA== X-Gm-Message-State: APjAAAWVjvE28qJV6L0ejGQLV+hzwlWXoI5RhsYzp93MK64US9IFL9+2 30kmEdMLPFUZk4O73I0Hu8N9 X-Google-Smtp-Source: APXvYqwFs/Zc/eWEWDAECt5UzKf54ZygzFhrTr+07TNz+PDBlMsTsn8Aof9hCZQDwHTJxr0qMFJQeQ== X-Received: by 2002:a63:9dc8:: with SMTP id i191mr30660274pgd.91.1557144325309; Mon, 06 May 2019 05:05:25 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:611b:55a4:e119:3b84:2d86:5b07]) by smtp.gmail.com with ESMTPSA id q17sm26482318pfi.185.2019.05.06.05.05.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 May 2019 05:05:24 -0700 (PDT) From: Manivannan Sadhasivam To: heiko@sntech.de Subject: [PATCH 1/2] arm64: dts: rockchip: Enable SPI0 and SPI4 on Rock960 Date: Mon, 6 May 2019 17:34:57 +0530 Message-Id: <20190506120458.25842-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190506_050526_498520_B908FDC9 X-CRM114-Status: UNSURE ( 9.66 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: tom@vamrs.com, linux-kernel@vger.kernel.org, dev@vamrs.com, linux-rockchip@lists.infradead.org, Manivannan Sadhasivam , ezequiel@collabora.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Enable SPI0 and SPI4 exposed on the Low and High speed expansion connectors of Rock960. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/rockchip/rk3399-rock960.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock960.dts b/arch/arm64/boot/dts/rockchip/rk3399-rock960.dts index 12285c51cceb..7498344d4a73 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rock960.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock960.dts @@ -114,6 +114,18 @@ }; }; +&spi0 { + /* On Low speed expansion */ + label = "LS-SPI0"; + status = "okay"; +}; + +&spi4 { + /* On High speed expansion */ + label = "HS-SPI1"; + status = "okay"; +}; + &usbdrd_dwc3_0 { dr_mode = "otg"; }; From patchwork Mon May 6 12:04:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10930913 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8645B1390 for ; Mon, 6 May 2019 12:05:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 734272853E for ; Mon, 6 May 2019 12:05:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6744A2854F; Mon, 6 May 2019 12:05:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2316F2855A for ; Mon, 6 May 2019 12:05:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=bfBOAmHQUmNCAr2JnOJYRj6DJQIkmUGAhYw4LQlmR08=; b=hffMQKdvMrIBWZpIiCtOuBcBEV DnHs9w7btZFJdzvn1+H0utHOJ01MnaguEory393IRZkbyX3GZ/WL+LTebT7nhvmUpTbfJzQRbx6bd UaKohlwRzcEptL6rzk12c4UL+yX3vu4JoEvsjNKb13Uy6BGC4fUdkPXmn7qVbOj9LyVEIk9pHD0l9 SpXsPfptUI3T7lc8+WkwpvG9Q9eDn6+5whoIqyn2q4jpTN54c2RIioI6Kt/Di/aNbFs69ZIGEeaL9 2G75I8fUze6oxlJSUntDSa0Co5ODtVohyQuivEYCc5Bnlj4Z8m6R/xAo6VRYLIfLaVwgmGEvF2rjd OBrUSYcA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hNcNP-0004ra-0g; Mon, 06 May 2019 12:05:47 +0000 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hNcN8-0004Tr-Sk for linux-rockchip@lists.infradead.org; Mon, 06 May 2019 12:05:33 +0000 Received: by mail-pl1-x644.google.com with SMTP id ck18so6287799plb.1 for ; Mon, 06 May 2019 05:05:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=OlDYrQagoRRgIUanTTiaH0xI7ydpH4Phsvkhb6Hldvk=; b=QZmNCGD8utu44MaRa3SN0Q0GcNmFA99KuHhZxTOd2VZMnVKc59yjcdQ/pRtA57LPED tnD9fTyyuHB439p746gDr0wxz8EYTiLTZyxVPqEqRVXl0aJttq/xKBHLPNGsJI94+UTw oRNDEWKsskTZyOpdFjppaLtL/JmS/Suj2k7T9nGi1PBfbDv3eKtg7vQ9JLDXK8qwmFxn tlC5BvDMHGqYwksGbUV9PT6PFNgD3ag1yScw2DFJHR+QLPcEgaj/9/PZ9r3gugaKhoi6 j7jgIZJPDbotWYsn3ZwlWCyxp2A96hsPxfVvqg0zGFR0QFOTc77kRJb/TL5X7ASQDUl+ eRpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=OlDYrQagoRRgIUanTTiaH0xI7ydpH4Phsvkhb6Hldvk=; b=Q81ayfRa7HWa+yuIWvq61I8Au8IZ+lphYhw/0TdwMtFJ0bv4XkjlRk9mz+zrB8UJEq WasJZk/aLC/4E6IFBuNvPp/KIu8qxgoBvQGvvR0jAVjp8hpDq/LPrGyjyPSngZUoPyzr CHxM2soVGwC2PjwNKlJ02DKPw6Mg8JOXYmze6oJ2+78UBUqpoWdYQBjoY+vhuMtT1UJF XPva71JCcJGqKo0BnJvl2ZFhP9yRiZpZwOuA+9hX2djC3wOU3jOTk2Aftt2k3ReUmdNs vetdgvoDqpHT7XSwZOB8e1PCLUoqwipPLpezbxRel4d6Y2SI8aEjeaIoxj1JsefdSj/V 4llw== X-Gm-Message-State: APjAAAXq+fuC6WsUyPgBKxOJhKkb/Trw5KIy0MEuWOeEfsAPXDzmZ3UJ GzWzSx+tLfScdgP81nROvJCB X-Google-Smtp-Source: APXvYqxAN92qtTThzTYGnaJj3GjkLg+pVGzJHyzT5l3HLI6BdbkS+ocPCrKkEwXf1Pjbn44N2iNjcg== X-Received: by 2002:a17:902:183:: with SMTP id b3mr31792924plb.267.1557144330073; Mon, 06 May 2019 05:05:30 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:611b:55a4:e119:3b84:2d86:5b07]) by smtp.gmail.com with ESMTPSA id q17sm26482318pfi.185.2019.05.06.05.05.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 May 2019 05:05:29 -0700 (PDT) From: Manivannan Sadhasivam To: heiko@sntech.de Subject: [PATCH 2/2] arm64: dts: rockchip: Enable SPI1 on Ficus Date: Mon, 6 May 2019 17:34:58 +0530 Message-Id: <20190506120458.25842-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190506120458.25842-1-manivannan.sadhasivam@linaro.org> References: <20190506120458.25842-1-manivannan.sadhasivam@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190506_050531_159024_3A1441A2 X-CRM114-Status: GOOD ( 10.63 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: tom@vamrs.com, linux-kernel@vger.kernel.org, dev@vamrs.com, linux-rockchip@lists.infradead.org, Manivannan Sadhasivam , ezequiel@collabora.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Enable SPI1 exposed on both Low and High speed expansion connectors of Ficus. SPI1 has 3 different chip selects wired as below: CS0 - Serial Flash (unpopulated) CS1 - Low Speed expansion CS2 - High Speed expansion Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/rockchip/rk3399-ficus.dts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-ficus.dts b/arch/arm64/boot/dts/rockchip/rk3399-ficus.dts index 027d428917b8..9baa378fc770 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-ficus.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-ficus.dts @@ -146,6 +146,12 @@ }; }; +&spi1 { + /* On both Low speed and High speed expansion */ + cs-gpios = <0>, <&gpio4 6 0>, <&gpio4 7 0>; + status = "okay"; +}; + &usbdrd_dwc3_0 { dr_mode = "host"; };