Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1707804pxm; Sun, 27 Feb 2022 00:31:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJxzhR3emVg7PVvlcVrbM+/cnur37YOCqv6D7aRdSD/TZ4VGCtc6ZQPqBfQQWWv8Zmbq4bSp X-Received: by 2002:a17:907:2711:b0:6cf:350:81c3 with SMTP id w17-20020a170907271100b006cf035081c3mr11774933ejk.712.1645950686285; Sun, 27 Feb 2022 00:31:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645950686; cv=none; d=google.com; s=arc-20160816; b=q9raqVSCp3hTk2uHPpdvlahd/34BkL/X2AkqjnjYn/4Tz3GxJNTSFRIZrtqRbzJ6ZH IJ2n8VLF7Nlj/r/cOZwB5aqb+M+ug1W3Mvg6D8z/Rbh7E2GgOlGgduKA40RxYQqLqj+k ItRuz/mQI6WJEbJ+Xc+KheAO910oHh2yFvgXsVW6lpIDVhTrQuTAZQdPDJOV6QoZEb+c 6WdXVhW/vgvlCGk6yPb1tuJUw8CsStgTt5dLsZ3xKkyjsoIy2aKTcVzOuttUagYnBOmT u9koZGlITsPkeX5qi9KWKOvI+fpdKCny5KGCoV2w2mGBJUp5RNbE/9olVxnoOMEHYBri ZloA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=pNksOukPK3o+O76yWB1EuaeazGAp0OJt/pIpapTOzW8=; b=xO+ffgz4jr82O84Vq7oO0bP53ADR5xJqgAcsYADztGbx0OUX9cvwDfCfZ1+gBp3Ev+ hdQpwRf2/USCcVv4IOa1UuTG4FBAFkxHE+7hbCwPwONi7/0MGXE1UeMhZaFFYFDceZd4 qCsme0tYg9POn93cQZlfaWPkSGI1wu2Q3gAJ5fCaGz+PwkbnaLNTBCuQAiR1b4XD/T33 pmGEAn9ZtJIL/Fblj/YFcVZYa5kkVp7tCl+EfflHl4kDMAGc5JoOxzwvJQJi8MlGcJK8 ZAMr/aqT9Pc3RGdlfJIAQfqXqdfqLn9E82e3OsdCb4aUnpYN7SBTezU/sJd9vZJDryce TD+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=qLEtRT1m; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g4-20020a17090669c400b006cfea60027bsi4328265ejs.903.2022.02.27.00.30.36; Sun, 27 Feb 2022 00:31:26 -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=@mailerdienst.de header.s=20200217 header.b=qLEtRT1m; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230146AbiB0IWR (ORCPT + 99 others); Sun, 27 Feb 2022 03:22:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229769AbiB0IWR (ORCPT ); Sun, 27 Feb 2022 03:22:17 -0500 Received: from mxout2.routing.net (mxout2.routing.net [IPv6:2a03:2900:1:a::b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9532C3B3F0; Sun, 27 Feb 2022 00:21:40 -0800 (PST) Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout2.routing.net (Postfix) with ESMTP id 63CD15FCCE; Sun, 27 Feb 2022 08:21:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1645950098; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=pNksOukPK3o+O76yWB1EuaeazGAp0OJt/pIpapTOzW8=; b=qLEtRT1myt+KfnL1MR7b3Z9X68rFtraehX4wa1nNV0oTlU9t3kHnNqyUAhGsB05HTUwdSd koyGL0DYM/4cS8kWKdg5r4x5t/9PzObdSZWOubH/OnS+YSiRmgJUdh9YET+64viGZnl8Sq buLIhXHpMaimfA8yg4kMnW9dFxq6ADU= Received: from localhost.localdomain (fttx-pool-80.245.76.205.bambit.de [80.245.76.205]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 8C9473604A4; Sun, 27 Feb 2022 08:21:37 +0000 (UTC) From: Frank Wunderlich To: linux-rockchip@lists.infradead.org Cc: Frank Wunderlich , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Peter Geis , Michael Riesch , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] arm64: dts: rockchip: Add sata nodes to rk356x Date: Sun, 27 Feb 2022 09:21:31 +0100 Message-Id: <20220227082131.131883-1-linux@fw-web.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mail-ID: b6f41757-18eb-404a-9c68-b2e313c48788 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 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 v2: - added sata0 + 1, but have only tested sata2 --- arch/arm64/boot/dts/rockchip/rk356x.dtsi | 45 ++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk356x.dtsi b/arch/arm64/boot/dts/rockchip/rk356x.dtsi index 7cdef800cb3c..2e2e73be7417 100644 --- a/arch/arm64/boot/dts/rockchip/rk356x.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk356x.dtsi @@ -230,6 +230,51 @@ scmi_shmem: sram@0 { }; }; + sata0: sata@fc000000 { + compatible = "snps,dwc-ahci"; + reg = <0 0xfc000000 0 0x1000>; + clocks = <&cru ACLK_SATA0>, <&cru CLK_SATA0_PMALIVE>, + <&cru CLK_SATA0_RXOOB>; + clock-names = "sata", "pmalive", "rxoob"; + interrupts = ; + interrupt-names = "hostc"; + phys = <&combphy0 PHY_TYPE_SATA>; + phy-names = "sata-phy"; + ports-implemented = <0x1>; + power-domains = <&power RK3568_PD_PIPE>; + status = "disabled"; + }; + + sata1: sata@fc400000 { + compatible = "snps,dwc-ahci"; + reg = <0 0xfc400000 0 0x1000>; + clocks = <&cru ACLK_SATA1>, <&cru CLK_SATA1_PMALIVE>, + <&cru CLK_SATA1_RXOOB>; + clock-names = "sata", "pmalive", "rxoob"; + interrupts = ; + interrupt-names = "hostc"; + 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"; + reg = <0 0xfc800000 0 0x1000>; + clocks = <&cru ACLK_SATA2>, <&cru CLK_SATA2_PMALIVE>, + <&cru CLK_SATA2_RXOOB>; + clock-names = "sata", "pmalive", "rxoob"; + interrupts = ; + interrupt-names = "hostc"; + 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 */ -- 2.25.1