From patchwork Mon Feb 11 09:21:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mesih Kilinc X-Patchwork-Id: 10805341 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 C06AC746 for ; Mon, 11 Feb 2019 09:24:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AF0D32640A for ; Mon, 11 Feb 2019 09:24:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A06DB2841F; Mon, 11 Feb 2019 09:24:12 +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=-3.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB 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 871482640A for ; Mon, 11 Feb 2019 09:24:11 +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=ypcjKBuT2w48wzEoOtDVcvj6duqIAcSD2dL+PbAqhx4=; b=s/e4wltMtnjrAGh6iZ01ci8ROI 8BJYbXuonkf/VWTpskYNagKvFYzUMIU9LZNL5BTYx+MB1At8uP4nVyKSKzGRC4a23P796IE/iyFsi Xr1fFiPNKn/BUWwTF8J+pR+08sKm2a4ze+4K2tPfvuJRDxgM8RMIOBrWplGgu+kMU2gNa7AZDjPOa /f0VJwxqNEXmrrbOFEGhN3VidR4UWNwPkJsonwTFSsDmjoGX/bHysAaXrFuTodpzImrAfWECb3aIh cB9B4njeG7eD0wuocCGwOBNfcIJqO406li80lXu8PL2r8mwe3VTOClrpzTgUTls3DlYYYTP+oB4bz 64SgHPCA==; 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 1gt7op-0000qU-J2; Mon, 11 Feb 2019 09:24:03 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gt7mk-0007dp-Ss for linux-arm-kernel@lists.infradead.org; Mon, 11 Feb 2019 09:21:59 +0000 Received: by mail-wm1-x344.google.com with SMTP id x10so10325924wmg.2 for ; Mon, 11 Feb 2019 01:21:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=fwD0w9cY6pAqgprkGqKHjvaIM0lWzxAak4iqngIDanE=; b=QyTJPG/Bx/k2DgyeqFolci5TCnumOLVhB6okYdjDW2ie1kneDcXMMhJEOneqSRvWwP DldyUsX+E0iI5swA+sWqYeikX8sAeCbzFUjALZBe8i1S8Ihj9J2Ai8v8eI6q7Be4HNmO vHoZtXAUI+90kaxejbRrKJcZMLF7Tj7GyruKxNPN7otIlmWRV5BSwelqHhWUVmEeM4zK 47LS+vurw1O4EHF2GLuFPhWxxj3inkzkxLLeicprL7sDXknvKJxbXHMyPub1VWM6Ddwj I1zRR/LchiJ7EqGZC0dtdYSjTNXme1B+ProKtjbWTYZnew08nXjt/NldLTTZO8NB+bRc W1Tw== 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=fwD0w9cY6pAqgprkGqKHjvaIM0lWzxAak4iqngIDanE=; b=jhPy2nlA37rvIc6QBnj6c6ffM0+ETz9fMuESWZP3E73gdPfFqYjxuoSaEVixHMbQDo Z/n+fjv1HWekQtBphCNo3eZjTqoXOj30DvRxyF7cg2xcyiLW6MZgCS9UczakdG9w5Ioy UCQtpzvZm9Eh4b3z7cDUMP2Hz4RpoyGVvXIo4VW4M7zZgV40Dp2MY3qkfJTEWIz/4D0/ 0xbiqUqEbY3YeJW4HshJMCwEBO8FPIGC1Tsl6xhIY1NJQrsXhNIc55scb8dHFChpFUO6 YIt3egFjU/sJ2SYCoPce+zc0/qIovxX0KJPfLEfgXCwoUmNhnhRd9keOMSDo6Ssi7oUR xTpg== X-Gm-Message-State: AHQUAuaeNVap1oT9sLmXjkZNfTZ+gOw4oc9oIcrH2maaaYkCDF00BQj5 RsCnWDMDtOCaWzVXysjNXPQ= X-Google-Smtp-Source: AHgI3IbI8Pp3O5chVjMuKPKEycPJpQtScjVPz5GgOvT4cXuGkW8JSB+BgetdDfEqZniD2hysWJ0lXQ== X-Received: by 2002:a05:6000:8a:: with SMTP id m10mr25834299wrx.79.1549876913504; Mon, 11 Feb 2019 01:21:53 -0800 (PST) Received: from ThinkPad.gtu.edu.tr ([193.140.134.118]) by smtp.gmail.com with ESMTPSA id o7sm11388979wmc.44.2019.02.11.01.21.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Feb 2019 01:21:53 -0800 (PST) From: Mesih Kilinc To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH 5/7] ARM: dts: suniv: Add SPI device-tree nodes Date: Mon, 11 Feb 2019 12:21:11 +0300 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190211_012155_802738_FF7E2C97 X-CRM114-Status: GOOD ( 12.48 ) 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: Mesih Kilinc , Linus Walleij , Chen-Yu Tsai , Rob Herring , Maxime Ripard , Icenowy Zheng 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 Allwinner suniv F1C100s has similar SPI controller as sun8i H3. F1C100s has no dedicated mod clock, instead it uses AHB bus clock. Add support for both SPI0 and SPI1. Signed-off-by: Mesih Kilinc --- arch/arm/boot/dts/suniv-f1c100s.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/boot/dts/suniv-f1c100s.dtsi b/arch/arm/boot/dts/suniv-f1c100s.dtsi index 953228c..1b332d9 100644 --- a/arch/arm/boot/dts/suniv-f1c100s.dtsi +++ b/arch/arm/boot/dts/suniv-f1c100s.dtsi @@ -143,5 +143,31 @@ resets = <&ccu RST_BUS_UART2>; status = "disabled"; }; + + spi0: spi@1c05000 { + compatible = "allwinner,suniv-f1c100s-spi", + "allwinner,sun8i-h3-spi"; + reg = <0x01c05000 0x1000>; + interrupts = <10>; + clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_BUS_SPI0>; + clock-names = "ahb", "mod"; + resets = <&ccu RST_BUS_SPI0>; + status = "disabled"; + #address-cells = <1>; + #size-cells = <0>; + }; + + spi1: spi@1c06000 { + compatible = "allwinner,suniv-f1c100s-spi", + "allwinner,sun8i-h3-spi"; + reg = <0x01c06000 0x1000>; + interrupts = <11>; + clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_BUS_SPI1>; + clock-names = "ahb", "mod"; + resets = <&ccu RST_BUS_SPI1>; + status = "disabled"; + #address-cells = <1>; + #size-cells = <0>; + }; }; };