Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2624954pxm; Mon, 28 Feb 2022 02:59:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJyJks1auFhdIn/Ii3IPQBrMsbccC1sbvWgs7R6cdXD4M08KP/ylAvgXaNwLoNm51IYezlbx X-Received: by 2002:a17:90a:5505:b0:1b8:ebd4:d602 with SMTP id b5-20020a17090a550500b001b8ebd4d602mr15960465pji.147.1646045950842; Mon, 28 Feb 2022 02:59:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646045950; cv=none; d=google.com; s=arc-20160816; b=MBO2ByaEu+bGyIk7RTBdKLbwI+0YCvRAVVTZGqm6IEPNcSAA6Dfmjh1/itP8OTE8Og wIE6EmIaV87L5/xxmPtf3fYn0XF3k9i4lFmm7rp8Qxms3KzyI5uBVhpEdYhy58xPciCG BFLm0pOWMHjKXho9BkreVkNLZ6B8aaX+nAc/Sm0HijoAFypyHuOrR8hjp4ozfGx8Y66K QLgApaXnBXv8HEEMINRbRl6H5COqXOcX7RzCsC1rv+2taH4sDXSqAuhEE8Izyhkl1KhL ncDLyc02G+0O7bZdlqvYmNlSAe7DWqVs3Vv328z2oG7WgRr+xXmr/+cv1+ak5v8J0wKw KvDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=CLX9p46LTKB/Eq3eNvJoQTNYHBrAzPGjbvot9brS2qA=; b=AqbKb3MYogbN6PDQwJ72JBrOgDZ5+tzdhAKSEB7d+Va7Jp+XO+ma9UAniF2mzhpLL5 R+dxCz7fRuaQhTf1QWW8OsBbrKteLRcc6grHdbqKS/WXgXrSwjDSNFzGj6zrRfMUWRbR 5dS9j0Xyypiexxf3bAIAd8F5fRt+l21SpaX7S0s+aR//ucso6WEdStDtVgAazT9TrG3E w8NZW6LtlMxZR1j011GQSPo5UBbUIC5sCowHpIHJXa5ptcCmOeJqCPDCbsitWlsU0tPN uMs9ATiyEijDcaQrLgA9G0e0wYejCc8lkDL+MW1rnYxkt6KGm3BBcasS1DLaGk0bJTD7 Otcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mSjmrvh5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o14-20020a17090ac08e00b001bca6efa119si9071358pjs.102.2022.02.28.02.58.56; Mon, 28 Feb 2022 02:59:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mSjmrvh5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S234326AbiB1Jdj (ORCPT + 99 others); Mon, 28 Feb 2022 04:33:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231855AbiB1Jdi (ORCPT ); Mon, 28 Feb 2022 04:33:38 -0500 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 322E63D4AD; Mon, 28 Feb 2022 01:33:00 -0800 (PST) Received: by mail-ej1-x632.google.com with SMTP id r13so23489241ejd.5; Mon, 28 Feb 2022 01:33:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=CLX9p46LTKB/Eq3eNvJoQTNYHBrAzPGjbvot9brS2qA=; b=mSjmrvh595YDAVZMgNjYK7iY9jJsf6ffteY5LNQ7hkjPy8URdKSh/qC0gfCqmJ1my1 Qpi25Q25zJe+wBpMWjGFKTVrbWF4JlOaa7Y7EQUzQF2NKs8guyjP5sa73inWcL2rPKgL Z4Mc/DuqqWuniGLKhle7vMI0AJPo+4gPPnauSdIChzhacanwS0ZKPzxodvbMVU2uN65q pvEyoL1aghlRdEgJYh1S6JnW3PpAoxj/hcpIx2oaIspTFDPQuhKgCL5yYcBD2tnTOdyZ NAbWn9L8+oM/g+Bhim9dLNKblHtOvHd5kVm+hHX4E3zlglPs6P2PmGVpDp10Umy20wMP cgrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=CLX9p46LTKB/Eq3eNvJoQTNYHBrAzPGjbvot9brS2qA=; b=sJAy50ELQStQ7LQYNmXh7WI6VILyJpVSUyur+KyVAyA9nXI69u6yvnriRUq4tqmIa9 hC0pRMPR/UjDVv4WhfAe5rRbeg9ePfjv4QwEX7OLemSlVOTj7N4umB9LZEaNb9h9YOB6 i/SUNyQdnAlLsmOQoQiChKnJwKaPKlWh4UkvaMYy9RkYzJNacITufk+KUwyM+fCckhkb wnDNguM0rvJIGYSz2kmBQ/KbHANlhM5uM8cAfZkkp2c938qrfq8xqt5m+STnzTxBZ95K 9XMiNMx4P/ySfCR875pRRm5f1zBzs9avmWSkTO9l27GCCyOxOGOWdqz2sn5FzFfeszGh /xdg== X-Gm-Message-State: AOAM530MLMaRBxpqyxS0vWyDroc4GRRs+nIEnslV/uZyI5koXPrmQk+y Ifj/DCK/U0RvlTTcHpHZKPg= X-Received: by 2002:a17:906:6b8e:b0:6ce:9879:ff88 with SMTP id l14-20020a1709066b8e00b006ce9879ff88mr14387553ejr.147.1646040778557; Mon, 28 Feb 2022 01:32:58 -0800 (PST) Received: from [192.168.2.1] (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id n24-20020a509358000000b00410bedd9eb4sm5932397eda.88.2022.02.28.01.32.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Feb 2022 01:32:58 -0800 (PST) Message-ID: <14a29a3f-c886-89b0-e453-1e8bee469536@gmail.com> Date: Mon, 28 Feb 2022 10:32:57 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v3 3/3] arm64: dts: rockchip: Add sata nodes to rk356x Content-Language: en-US To: Frank Wunderlich , "devicetree @ vger . kernel . org Damien Le Moal" , Rob Herring , Krzysztof Kozlowski , Hans de Goede , Jens Axboe , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, Heiko Stuebner , Peter Geis , Michael Riesch , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Cc: Frank Wunderlich References: <20220227182800.275572-1-linux@fw-web.de> <20220227182800.275572-4-linux@fw-web.de> From: Johan Jonker In-Reply-To: <20220227182800.275572-4-linux@fw-web.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Frank, On 2/27/22 19:28, Frank Wunderlich wrote: > From: Frank Wunderlich > > RK356x supports up to 3 sata controllers which were compatible with the > existing snps,dwc-ahci binding. > > Signed-off-by: Frank Wunderlich > --- > changes in v3: > - fix combphy error by moving sata0 to rk3568.dtsi > - remove clock-names and interrupt-names > changes in v2: > - added sata0 + 1, but have only tested sata2 > --- > arch/arm64/boot/dts/rockchip/rk3568.dtsi | 14 +++++++++++++ > arch/arm64/boot/dts/rockchip/rk356x.dtsi | 26 ++++++++++++++++++++++++ > 2 files changed, 40 insertions(+) > > diff --git a/arch/arm64/boot/dts/rockchip/rk3568.dtsi b/arch/arm64/boot/dts/rockchip/rk3568.dtsi > index 5b0f528d6818..2a2f65899d47 100644 > --- a/arch/arm64/boot/dts/rockchip/rk3568.dtsi > +++ b/arch/arm64/boot/dts/rockchip/rk3568.dtsi > @@ -8,6 +8,19 @@ > / { > compatible = "rockchip,rk3568"; > > + sata0: sata@fc000000 { > + compatible = "snps,dwc-ahci"; compatible = "rockchip,rk3568-dwc-ahci", "snps,dwc-ahci"; Compatible strings must be SoC orientated. By using a fall back string the driver doesn't have to be changed for every new SoC. Add binding in extra patch. > + reg = <0 0xfc000000 0 0x1000>; > + clocks = <&cru ACLK_SATA0>, <&cru CLK_SATA0_PMALIVE>, > + <&cru CLK_SATA0_RXOOB>; > + interrupts = ; > + phys = <&combphy0 PHY_TYPE_SATA>; > + phy-names = "sata-phy"; > + ports-implemented = <0x1>; > + power-domains = <&power RK3568_PD_PIPE>; > + status = "disabled"; > + }; > + > pipe_phy_grf0: syscon@fdc70000 { > compatible = "rockchip,rk3568-pipe-phy-grf", "syscon"; > reg = <0x0 0xfdc70000 0x0 0x1000>; > @@ -114,3 +127,4 @@ power-domain@RK3568_PD_PIPE { > #power-domain-cells = <0>; > }; > }; > + > diff --git a/arch/arm64/boot/dts/rockchip/rk356x.dtsi b/arch/arm64/boot/dts/rockchip/rk356x.dtsi > index 7cdef800cb3c..484c5ace718a 100644 > --- a/arch/arm64/boot/dts/rockchip/rk356x.dtsi > +++ b/arch/arm64/boot/dts/rockchip/rk356x.dtsi > @@ -230,6 +230,32 @@ scmi_shmem: sram@0 { > }; > }; > > + sata1: sata@fc400000 { > + compatible = "snps,dwc-ahci"; dito > + reg = <0 0xfc400000 0 0x1000>; > + clocks = <&cru ACLK_SATA1>, <&cru CLK_SATA1_PMALIVE>, > + <&cru CLK_SATA1_RXOOB>; > + interrupts = ; > + phys = <&combphy1 PHY_TYPE_SATA>; > + phy-names = "sata-phy"; > + ports-implemented = <0x1>; > + power-domains = <&power RK3568_PD_PIPE>; > + status = "disabled"; > + }; > + > + sata2: sata@fc800000 { > + compatible = "snps,dwc-ahci"; dito > + reg = <0 0xfc800000 0 0x1000>; > + clocks = <&cru ACLK_SATA2>, <&cru CLK_SATA2_PMALIVE>, > + <&cru CLK_SATA2_RXOOB>; > + interrupts = ; > + phys = <&combphy2 PHY_TYPE_SATA>; > + phy-names = "sata-phy"; > + ports-implemented = <0x1>; > + power-domains = <&power RK3568_PD_PIPE>; > + status = "disabled"; > + }; > + > gic: interrupt-controller@fd400000 { > compatible = "arm,gic-v3"; > reg = <0x0 0xfd400000 0 0x10000>, /* GICD */