Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp316808imm; Fri, 31 Aug 2018 01:00:39 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYOCTb0MtQ/NCmed/SyEmO+LwTxc/7Hmp4gBAqotn+29Km4zAvPUHSPcXIMjlz7L9oYToqd X-Received: by 2002:a62:1f11:: with SMTP id f17-v6mr14590233pff.168.1535702439330; Fri, 31 Aug 2018 01:00:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535702439; cv=none; d=google.com; s=arc-20160816; b=lsBrb66DjXKGa91OO71oyjyZR6P7zUXsQTVxaoygHWAa5h+2V0EDEgY1iChmKE7R8x 0HTGDsV/iZD71KRX6+2D00RUKTFtQpzxJ2oBvCMLN8yICPPi/3MqlkcZldUllZAHrcqE B4+wfPhzSa+gG1j6UlwDQ7vrfY0S+KC4xfVrtEMDzeZmIVCyMTfCSvQmMMRri3T0Awq/ mXEqdvFfkbKOuk3s5hm+1prybvci0L7xkDpdRNhEu+urTY1e5LOhLmLbqqbDzFNTzeQ3 v8SCdvR9TsFeRPvNjcus0yiU2ALNx7+DhjJlM5SEL5kkvx3bvlKJp1SHccpDsDVip7gu azlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:arc-authentication-results; bh=G9Vi850Vp2KqVRL9vE3PU+DhowXo0fb0rVWa5qawSKQ=; b=cWXLqCiEDcZWWMk/Shu+tE78sM+4Hi3mCi7wEi0RK0F8mAv0+VAyS3AgoMSgvDi/fA NbOsNG0jHdE5fzv/ykrMgIZdzq47WsL5fXOoISyJJq2xO5ZMHUfRHRnCXos+h5nJ5t56 t9oLN2YdcsHDSngy1UOH4NxnEoAnSfMryB7vlppMyxRHdqXw/57RoyTAMhbn5y1FgIh8 CzCu+jFa6IjiLjwDW159zthhuGQjl9dKipEqRImqOQW0FIzT5kNwkPrm3xw+AtoBvM45 X7qbKJTzzuJ2h49bDZrUwo3coyVwxuy9tUZ0u1v4GOlmQ6k7W++Hqd1BPnVEMWcDSgMS Uzew== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x22-v6si8526714pfh.84.2018.08.31.01.00.24; Fri, 31 Aug 2018 01:00:39 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727677AbeHaMFD (ORCPT + 99 others); Fri, 31 Aug 2018 08:05:03 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:42820 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727178AbeHaMFC (ORCPT ); Fri, 31 Aug 2018 08:05:02 -0400 Received: by mail-ed1-f66.google.com with SMTP id l5so5752936edw.9; Fri, 31 Aug 2018 00:58:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=G9Vi850Vp2KqVRL9vE3PU+DhowXo0fb0rVWa5qawSKQ=; b=MpeHf+mcrm1Lz3MRf0RBzi9ppIfMQzqbKoCcA2wSTO3CPSOTsC0R2Cfy2t5YRtU8W/ sdYRQU6ultWmXJ2IvQHpg23qFpcjXePjbNfeQLbYaJX/g03+y0AbFQgkOs25wh3s+1qb SnfzSkMxzVVL8D+Plti1cIT2FrRzQF9fhlaKxrWCIgpdrUvX8pWIu4MjThi+LHB4HvFc iIJHnRsEPyKnOOq5qn01qbzjK0L72pyGKe5y6fbeLidBZT5yR2YMEAvRIpOhHzu6hSbq zsUlyJQmnj6PD3ctPWAagB3ute3xmTpafHxOekhB6ZuGVlXdLHmot5bY7xMMl7c3VYQW btuA== X-Gm-Message-State: APzg51CtQrk8xbhRYpglT7v7hVcxIfUZNAk0Q1+DzOAcAiWnxKc/kWw2 uIWJuBXAMaVIwn6Qa81XnGVVKkUo0ME= X-Received: by 2002:a50:82c5:: with SMTP id 63-v6mr16076885edg.200.1535702329130; Fri, 31 Aug 2018 00:58:49 -0700 (PDT) Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com. [209.85.221.54]) by smtp.gmail.com with ESMTPSA id 25-v6sm4477541edz.45.2018.08.31.00.58.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Aug 2018 00:58:47 -0700 (PDT) Received: by mail-wr1-f54.google.com with SMTP id m27-v6so10327218wrf.3; Fri, 31 Aug 2018 00:58:47 -0700 (PDT) X-Received: by 2002:adf:8485:: with SMTP id 5-v6mr10098624wrg.34.1535702327182; Fri, 31 Aug 2018 00:58:47 -0700 (PDT) MIME-Version: 1.0 References: <20180830190120.722-1-clabbe.montjoie@gmail.com> <20180830190120.722-10-clabbe.montjoie@gmail.com> <20180831073500.zubqpvar4yhjqrge@flea> <20180831075631.GB16301@Red> In-Reply-To: <20180831075631.GB16301@Red> From: Chen-Yu Tsai Date: Fri, 31 Aug 2018 15:58:34 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 09/13] ARM: dts: sun8i: r40: add sata node To: LABBE Corentin Cc: Maxime Ripard , axboe@kernel.dk, Hans de Goede , Kishon Vijay Abraham I , Mark Rutland , Rob Herring , devicetree , linux-arm-kernel , linux-ide@vger.kernel.org, linux-kernel , linux-sunxi , Icenowy Zheng Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 31, 2018 at 3:56 PM Corentin Labbe wrote: > > On Fri, Aug 31, 2018 at 09:35:00AM +0200, Maxime Ripard wrote: > > On Thu, Aug 30, 2018 at 09:01:16PM +0200, Corentin Labbe wrote: > > > 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(+) > > > > > > 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>; > > > > Overlapping devices in the DTS is not ok. > > > > I do the same than arch/arm/boot/dts/berlin2.dtsi (sata@e90000 phy@e900a0) > But since it is not a good justification, it seems that regmap is my only solution ? Since you are effectively splitting one device node into two, you should adjust the original (ahci) device nodes register range. ChenYu