From patchwork Sat Jan 5 07:28: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: 10749165 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 E4A3A14E5 for ; Sat, 5 Jan 2019 07:29:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CC9F828643 for ; Sat, 5 Jan 2019 07:29:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C0B1E2879C; Sat, 5 Jan 2019 07:29:38 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 63F952877B for ; Sat, 5 Jan 2019 07:29:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726263AbfAEH3b (ORCPT ); Sat, 5 Jan 2019 02:29:31 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:34441 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726255AbfAEH3b (ORCPT ); Sat, 5 Jan 2019 02:29:31 -0500 Received: by mail-pg1-f193.google.com with SMTP id j10so18445079pga.1 for ; Fri, 04 Jan 2019 23:29:30 -0800 (PST) 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=ZLG0p6pOlEKJqG/ydnT1Alp81sx/m3rHMuhpQtuwbbQ=; b=EJZ0d7pU3z4gJ3luqtxOqm0cnFR6Y/svP6seHeGrN6D5WenFUCJxOKk0VJGRiqC0bB p7pssvPaglrTPqs6h3o7FM6BRLrQL5yM5PbDTgzI7TjyZIi+DUdkIhUxxvHiXXiWOez0 tmtExd9B9GDOVDttEHfFoS2oGg2IIVmEIGfFw= 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=ZLG0p6pOlEKJqG/ydnT1Alp81sx/m3rHMuhpQtuwbbQ=; b=dKPFOoibyVPYnx67ezzaz3RZEZcrOwZmCZB/Q9vam3ME0OmjfzT8ni0NSvee1ib44C jcwhyIX6/GfwXOmn+YzScgd1kLWAtHMDBmqiDrnl+IagQe6+AB7IZQbdFa1nZvLxBGk7 xYyoK+3GkyNt9Qyo1aL/KqiWAqWq1Zhiem9yY/BrHI7hhder0pjnLZcjYmZLotlyhlBq DZKr1JyM4cCRvj8aMbZ6PCv/AhvOtPqTmHsHhqoBBS89NdZgQmlUpshNyzVNa42q27X3 DNqNzi1z89dQzqYQhtl1zb+ahrh5Z0vRFbCrWjSUuBXDNrWItk8D4OdJ/77qXcxp3iFh PDHw== X-Gm-Message-State: AJcUukeqNCqMjxXE+TBTckn9xFOob1GWguBkwdARwy2t/zRrCMFanIO3 7fXBJxlVHdjz61HjJ95y8T6C X-Google-Smtp-Source: ALg8bN50gCEXbBa9oALpY2+83PONnRD9xIfyJUuHRcn8QixT5tbYVu/aCEF9gRtHJ+dXNUQY3SYgsg== X-Received: by 2002:a63:5723:: with SMTP id l35mr22381883pgb.228.1546673370470; Fri, 04 Jan 2019 23:29:30 -0800 (PST) Received: from localhost.localdomain ([2405:204:72cb:a88d:406c:3ac8:e78f:4779]) by smtp.gmail.com with ESMTPSA id k24sm90677367pfj.13.2019.01.04.23.29.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Jan 2019 23:29:29 -0800 (PST) From: Manivannan Sadhasivam To: vinholikatti@gmail.com, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, liwei213@huawei.com, robh+dt@kernel.org Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, john.stultz@linaro.org, amit.kucheria@linaro.org, guodong.xu@linaro.org, Manivannan Sadhasivam Subject: [PATCH v2 2/3] arm64: dts: hisilicon: hi3670: Add UFS controller support Date: Sat, 5 Jan 2019 12:58:58 +0530 Message-Id: <20190105072859.9134-3-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190105072859.9134-1-manivannan.sadhasivam@linaro.org> References: <20190105072859.9134-1-manivannan.sadhasivam@linaro.org> Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add UFS controller support for HiSilicon HI3670 SoC. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/hisilicon/hi3670.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3670.dtsi b/arch/arm64/boot/dts/hisilicon/hi3670.dtsi index 6ccdf5040ffd..285219dd657f 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3670.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi3670.dtsi @@ -654,6 +654,24 @@ clock-names = "apb_pclk"; }; + /* UFS */ + ufs: ufs@ff3c0000 { + compatible = "hisilicon,hi3670-ufs", "jedec,ufs-2.1"; + /* 0: HCI standard */ + /* 1: UFS SYS CTRL */ + reg = <0x0 0xff3c0000 0x0 0x1000>, + <0x0 0xff3e0000 0x0 0x1000>; + interrupt-parent = <&gic>; + interrupts = ; + clocks = <&crg_ctrl HI3670_CLK_GATE_UFSIO_REF>, + <&crg_ctrl HI3670_CLK_GATE_UFS_SUBSYS>; + clock-names = "ref_clk", "phy_clk"; + freq-table-hz = <0 0>, <0 0>; + /* offset: 0x84; bit: 12 */ + resets = <&crg_rst 0x84 12>; + reset-names = "rst"; + }; + /* SD */ dwmmc1: dwmmc1@ff37f000 { compatible = "hisilicon,hi3670-dw-mshc";