Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp402204imm; Fri, 31 Aug 2018 03:40:03 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb9a8mRbAs4Pp7brGj3sN4CvSoFwHSQVjZGxzyndaxFLBx785PjfaR1KILykkm/NyymTmG+ X-Received: by 2002:a17:902:9893:: with SMTP id s19-v6mr14844238plp.130.1535712003871; Fri, 31 Aug 2018 03:40:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535712003; cv=none; d=google.com; s=arc-20160816; b=cs55RwUfh6f7BVslrIGDD4suEaqvf8DRTQoqppCAuytf6UVTuNJrquz0kcNcU6DrRP iIRKqeTHW25wrhhAjvppGWbg1jI7ahVqqqHF5oaMPWqpM142oReYqJ1g9PNU0bQwM8g+ C5P7fMzCIEbkEj7v+NFcB0SXEsXCcIVXKR1U5iKazYNCc0JYfMZ5uaMB0R+/nyLq3BXE E2T9pilt2cdQ2lrvC5Mw9r9GeY2hatqz9lWEwiLomhRXeaiQ6tfcc+T/IZOOaSnGjS9V HwUx2e3j+Rh1JoNirUHb9l6VAo08NAheqpi9QqgGEhrw7MPO8eG1AHLUrYsn1j48uv5w +oDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=o+Mk+wvf9b9dAoiYpwTNAOROaF65EOrQ1ocDEhy0YkU=; b=NvEPvDrckzzhndp5VhrhpwOdjyAQIAo9btSjNRtAr4LQKLmyn8nLq2lzyZehtBEf7a qWGqO7VW8Qi7wHJVVOpfM28isLirBlLpyxvQG/8V+kaj2cCGr3/nZL1ZtIhAzp3lF78y bRqTJL94+5yh/8qg4Giv/5hIk28br2qZULeeubpLPec1Gany5iGCPqMn1QBjnNvEefZw GDAsSSc0b3iJSGElb7uc4kFFWB0IDGpf7kaIgn7UCTsS6kBo2uVfpXr+WXCK5ueb5VnM sZq0AudOYJ8P4BaLjtPzAFtBvF32pPM+W8uDprTTgVinfTjzg1ttA8NEk/zqu0zHzEb1 zk7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LPNf4WcD; 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 t6-v6si8999368plq.268.2018.08.31.03.39.49; Fri, 31 Aug 2018 03:40:03 -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=LPNf4WcD; 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 S1727724AbeHaNgO (ORCPT + 99 others); Fri, 31 Aug 2018 09:36:14 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:32966 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727258AbeHaNgO (ORCPT ); Fri, 31 Aug 2018 09:36:14 -0400 Received: by mail-wm0-f67.google.com with SMTP id r1-v6so741708wmh.0; Fri, 31 Aug 2018 02:29:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=o+Mk+wvf9b9dAoiYpwTNAOROaF65EOrQ1ocDEhy0YkU=; b=LPNf4WcDL1gWzGduLfyvJKjY0EYzaQ9uMR0uF8gueKclxVRA5BfKubdGQHw8slAFM7 LOD6mkgU0LBDReV0ZrXdUb+jTa4WeX3nb6Q5PgaNRN3mQdyL1VYc+RGAFxJbDVq3lib6 2YlfBh9+m3vcEFRusd2xATIvdOsuSTj4DXf5gtpTsNMxvNwb9ppLxDwGx9HQYIXrg3Js FE7u2JXsmI2/lMpyeQGKGUtV4CQyppX+/tWN3jG2vQYAKqXl3ru3xmsAeQRuQ+KAx0tp 5PSCe/5ofTIcE9inssdFfNn3LueR8sctx5UiZleBr96evol639fwBfmePh42xdvCApKC 6dGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=o+Mk+wvf9b9dAoiYpwTNAOROaF65EOrQ1ocDEhy0YkU=; b=ZGIXao3IEcyCqStkI24j3II1IflWeLjADQlecpnzrjYOYtY+trJxgF0RDliVpP3KKj tUD2Xp6JBSHgU6HmPgVgPZxvVW8rBxPr0N2J1DV0TKDlmrafJG0Cfp5orP15mSD3Iu+a ZbAoyzusLQklXICpj4FYbKYhEIfduLKKA8ZL7UEub7aa88LNvAtqn5aiCKOesec4R9mV CQF8YD0BOxKVi7OGV4SRi40fFarXx654XNGy3m0lXuh6xdn8SMombuFvtwKCRBRRqTGB lZKWq3RlzVyfCOymQy48XhOBLcBMV3VWq+kIzJa6SZ4cs93tz+nwTb2RD5r+bJ2cB5ON W7oQ== X-Gm-Message-State: APzg51CWglLfZaTwVULatrcAxa2WQPB6+CWJkRrSxAzMUl2Fid4aFddD jwflyx/+qG6GIQy8g/lkEU0= X-Received: by 2002:a1c:9706:: with SMTP id z6-v6mr4448399wmd.0.1535707777355; Fri, 31 Aug 2018 02:29:37 -0700 (PDT) Received: from Red ([2a01:cb1d:147:7200:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id v1-v6sm6543243wrt.34.2018.08.31.02.29.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Aug 2018 02:29:36 -0700 (PDT) Date: Fri, 31 Aug 2018 11:29:34 +0200 From: Corentin Labbe To: Chen-Yu Tsai 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 Subject: Re: [PATCH v4 09/13] ARM: dts: sun8i: r40: add sata node Message-ID: <20180831092934.GC16301@Red> References: <20180830190120.722-1-clabbe.montjoie@gmail.com> <20180830190120.722-10-clabbe.montjoie@gmail.com> <20180831073500.zubqpvar4yhjqrge@flea> <20180831075631.GB16301@Red> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) 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 03:58:34PM +0800, Chen-Yu Tsai wrote: > 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. > I cannot do that if I remove patch 13, iow If I keep phy init code in both place as you requested.