From patchwork Thu Feb 8 12:20:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Yan X-Patchwork-Id: 10207047 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B012D602D8 for ; Thu, 8 Feb 2018 12:21:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A039028909 for ; Thu, 8 Feb 2018 12:21:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 94939294CE; Thu, 8 Feb 2018 12:21:00 +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=-2.7 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 2083328909 for ; Thu, 8 Feb 2018 12:21:00 +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=/oUPMh2xl6x0Kayh3WmuEiYZGvFDHgcSHrTE4n3kSyM=; b=VY2VWPCiPU4TpCb4PC6uHNYTVy /rR2RlTQfCh1KWs70KI+o7EWp5W/Dp8l5x0Bh56NfSY3lknEuz/hY4TPvC6O6WVsuRmHdJQTD0GHg 3lE3sStGlW8YNO1BaaDwZwdP+2Bh8bAizIfgSrGMOtD1SRQX2XBTdOWPBAdcBG9tvtLouolFWOxq9 +fwxP7XKL/A9KYVULDbst5fTZB+hdhSuD5YpO4EMUxkGJQD0EFe1In9lTwI9mGjmPAz6zjP6uZmMD 77N/zUvzq7WpSiP17QbJ+pPkysXf80G5MU0vF0sVpQT1T9ewbqLZGdqt/+NoXtMVNqdGXq0fCo6/2 SV7uo45A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1ejlCF-0004Uq-Cd; Thu, 08 Feb 2018 12:20:59 +0000 Received: from lucky1.263xmail.com ([211.157.147.130]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ejlCB-0004UD-NY for linux-arm-kernel@lists.infradead.org; Thu, 08 Feb 2018 12:20:57 +0000 Received: from andy.yan?rock-chips.com (unknown [192.168.167.16]) by lucky1.263xmail.com (Postfix) with ESMTP id E20AF1F59EE; Thu, 8 Feb 2018 20:20:39 +0800 (CST) X-263anti-spam: KSV:0; X-MAIL-GRAY: 1 X-MAIL-DELIVERY: 0 X-KSVirus-check: 0 X-ABS-CHECKED: 4 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.263.net (Postfix) with ESMTPA id A1A9136E; Thu, 8 Feb 2018 20:20:40 +0800 (CST) X-RL-SENDER: andy.yan@rock-chips.com X-FST-TO: robh+dt@kernel.org X-SENDER-IP: 58.22.7.114 X-LOGIN-NAME: andy.yan@rock-chips.com X-UNIQUE-TAG: <7c028d2e0f72b760144530f71dd451f3> X-ATTACHMENT-NUM: 0 X-SENDER: yxj@rock-chips.com X-DNS-TYPE: 0 Received: from localhost.localdomain (unknown [58.22.7.114]) by smtp.263.net (Postfix) whith ESMTP id 2327SG1IPC; Thu, 08 Feb 2018 20:20:41 +0800 (CST) From: Andy Yan To: robh+dt@kernel.org, shawn.lin@rock-chips.com, heiko@sntech.de Subject: [PATCH v8 3/3] ARM: dts: rockchip: enable sfc for rv1108 evb Date: Thu, 8 Feb 2018 20:20:33 +0800 Message-Id: <1518092433-3893-1-git-send-email-andy.yan@rock-chips.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518091958-3672-1-git-send-email-andy.yan@rock-chips.com> References: <1518091958-3672-1-git-send-email-andy.yan@rock-chips.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Andy Yan MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Enable the sfc support for rv1108 evaluation board. Signed-off-by: Andy Yan --- Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/boot/dts/rv1108-evb.dts | 10 ++++++++++ arch/arm/boot/dts/rv1108.dtsi | 13 +++++++++++++ 2 files changed, 23 insertions(+) diff --git a/arch/arm/boot/dts/rv1108-evb.dts b/arch/arm/boot/dts/rv1108-evb.dts index ac27e11..5d0ebe3 100644 --- a/arch/arm/boot/dts/rv1108-evb.dts +++ b/arch/arm/boot/dts/rv1108-evb.dts @@ -239,6 +239,16 @@ }; }; +&sfc { + status = "okay"; + spi-nor@0 { + compatible = "jedec,spi-nor"; + spi-max-frequency = <100000000>; + m25p,fast-read; + reg = <0>; + }; +}; + &uart0 { status = "okay"; }; diff --git a/arch/arm/boot/dts/rv1108.dtsi b/arch/arm/boot/dts/rv1108.dtsi index 76ea246..30435fc 100644 --- a/arch/arm/boot/dts/rv1108.dtsi +++ b/arch/arm/boot/dts/rv1108.dtsi @@ -554,6 +554,19 @@ status = "disabled"; }; + sfc: sfc@301c0000 { + compatible = "rockchip,rv1108-sfc", "rockchip,sfc"; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&cru SCLK_SFC>, <&cru HCLK_SFC>; + clock-names = "sfc", "hsfc"; + interrupts = ; + reg = <0x301c0000 0x1000>; + /* If you want to use PIO mode, activate this */ + /*rockchip,sfc-no-dma;*/ + status = "disabled"; + }; + gic: interrupt-controller@32010000 { compatible = "arm,gic-400"; interrupt-controller;