From patchwork Thu Aug 30 19:01:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 145573 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp252218ljw; Thu, 30 Aug 2018 12:01:47 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYGkvTrl7vAd54sOUxpdwLVt2Cxbsj3xu39HHWMvgMK//Rz5G+y4yuOQYxlEGflv0GEVJfW X-Received: by 2002:a65:6292:: with SMTP id f18-v6mr10774655pgv.85.1535655706900; Thu, 30 Aug 2018 12:01:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535655706; cv=none; d=google.com; s=arc-20160816; b=CtSKz8/sYJgujcl8uziPipCC1hhC8yhrJfmwjb+bXjbkyBttScw8V6QfzCvvnnnAIq L5ImNjpzryxh2+3+b7IxTceBEP2YD3qGvu+iGQvft6ylqbS9Nm1omf6QZ1BrI1YcIQYo fTdJPlAZuwLjxlumYviHgP6pdPah7jDyFZ5Gd9cHQfcPpa+8SNhtEg40GrhbvHhzeVmq dNehmoG8xlKe3BS5V/bhk4RrXy6vb+LEh2YqrJAht911BLOxVgIZs/prwbGpt96akYBh ETEO53P4U7X5botowQGcsRxje96byK0cM33sVGeROA8E20UvmC+Vu92xsLAJBfG5IWTO +EvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=qpn+V0z5TaoK+rCQvEV6gj7EtBpctPHnnDY7C6IV55A=; b=dA8sUBCGwHgB1ZMzVugYOHMAs5kNmZDMeLnX5S6eyxmjccjyTNmNHvGGYw9NxiaiyC TcW1JymBxIMsjpvkn2Hn/wc/43Xl8qgQXxpv8PGMSNCgub7fJIYWct4pamPJDz8BBdio E3/qTF7cRE6IzbUOhSSBnmLzY18oUXCfwt8SKOFWJ60krDs5WRfwDk9YJrvZdPy77XB+ QVmEMzvcaqagoaw5fCbgXBE8YADfDUr8/0GZMxZYuRuYhhhEGTAsFOUT/Om8QGU/J/4E PALKjbPEugi2Dx2opA37naR3NFyqvkbXWsiGRBMnkVQZyUGof1YMB5AWz5bv8oT6EmI/ ouUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="MKu/E/VK"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 59-v6si7116114plp.87.2018.08.30.12.01.46; Thu, 30 Aug 2018 12:01:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="MKu/E/VK"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728220AbeH3XFU (ORCPT + 32 others); Thu, 30 Aug 2018 19:05:20 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:40396 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727177AbeH3XFU (ORCPT ); Thu, 30 Aug 2018 19:05:20 -0400 Received: by mail-wm0-f65.google.com with SMTP id 207-v6so3042557wme.5; Thu, 30 Aug 2018 12:01:43 -0700 (PDT) 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=qpn+V0z5TaoK+rCQvEV6gj7EtBpctPHnnDY7C6IV55A=; b=MKu/E/VKoTesFb4kDZjoXvEWLAK1SkUckVuiZ0xKt1zIFShbUEFE8aXAGfqIMlUeAq vsDkhu7VV9xNPStOe5WBw52JEN51Jy6u/0X7neLjIqRNfzElirChtpRQwZgogweYjLME 3r/ktmQC5RSh3lidLvcKbCL7d+IKD1KRGnKOPa7faD/wI1COTLegDW1XjIKa8tUrwp48 Yc6Mx0DLWNWBSKeplX956Om2LAem1kozSaBVRGaOkeFUQzQuLVpWc93Hd5rLuJ69R5bp DcrOMRjzhUulVPVQmIdE/ygC91NvzHT6HUj1dxf2G2Flqh6+v6k4CNAitJ/3U0Ce+kxe XlEg== 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=qpn+V0z5TaoK+rCQvEV6gj7EtBpctPHnnDY7C6IV55A=; b=Tnlpj2tj+uIQ5vGmVa+IWAs6WsqJg+QT05bqxp1CaXxJFUty7JMRSmjbyBRC0+7BQZ Qzn4PQ29szpCJ7UITyAKn9EWMr4GjjH8gtiQ5HVLOyM7p85Rq80AiYMgrt2suRwTRrkf a8nxMH73ns/VMFJBCRY2ckVn9yOd5JWkiVhiaZ03raT4PMUFU6kUne05IxR6uRbcduzA IlKH50jaGVkKfEkLlnhN2Pdc5ElMICcqNywhTyvkV5a3KRavBjTIU4pgbB2C1Zm7m3j9 79euHE0ZLHS8DSD/M2famgprI4FAMYATTvJQTtEqzDVOFhWkp/IiHgcb9UPw+f1nhnxc b2FA== X-Gm-Message-State: APzg51B8ljl9ihn4quEDmFgXuQcjI3NG6+0Y2lWgzXU9E26npGzE3WWe I7zDSmWbwqBfZmccWwFAITQ= X-Received: by 2002:a1c:a401:: with SMTP id n1-v6mr2828082wme.125.1535655702588; Thu, 30 Aug 2018 12:01:42 -0700 (PDT) Received: from Red.localdomain ([2a01:cb1d:147:7200:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id w17-v6sm2937095wmc.43.2018.08.30.12.01.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Aug 2018 12:01:41 -0700 (PDT) From: Corentin Labbe To: axboe@kernel.dk, hdegoede@redhat.com, kishon@ti.com, mark.rutland@arm.com, maxime.ripard@bootlin.com, robh+dt@kernel.org, wens@csie.org, clabbe.montjoie@gmail.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Icenowy Zheng Subject: [PATCH v4 09/13] ARM: dts: sun8i: r40: add sata node Date: Thu, 30 Aug 2018 21:01:16 +0200 Message-Id: <20180830190120.722-10-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20180830190120.722-1-clabbe.montjoie@gmail.com> References: <20180830190120.722-1-clabbe.montjoie@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org R40 have a sata controller which is the same as A20. This patch adds a DT node for it. Signed-off-by: Icenowy Zheng Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-r40.dtsi | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) -- 2.16.4 diff --git a/arch/arm/boot/dts/sun8i-r40.dtsi b/arch/arm/boot/dts/sun8i-r40.dtsi index 852c2ccc3268..d6b5820da850 100644 --- a/arch/arm/boot/dts/sun8i-r40.dtsi +++ b/arch/arm/boot/dts/sun8i-r40.dtsi @@ -550,6 +550,29 @@ #size-cells = <0>; }; + ahci: sata@1c18000 { + compatible = "allwinner,sun8i-r40-ahci"; + reg = <0x01c18000 0x1000>; + interrupts = ; + clocks = <&ccu CLK_BUS_SATA>, <&ccu CLK_SATA>; + resets = <&ccu RST_BUS_SATA>; + resets-name = "ahci"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + + sata_port: sata-port@0 { + reg = <0>; + phys = <&sata_phy>; + }; + }; + + sata_phy: sata-phy@1c180c0 { + compatible = "allwinner,sun8i-r40-sata-phy"; + reg = <0x1c180c0 0x200>; + #phy-cells = <0>; + }; + gmac: ethernet@1c50000 { compatible = "allwinner,sun8i-r40-gmac"; syscon = <&ccu>;