Received: by 2002:a19:f614:0:0:0:0:0 with SMTP id x20csp37201lfe; Fri, 15 Apr 2022 18:16:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYo/G8okRE+t6Hj/MaY8yW3x3qHTk9E8aDBFUDZM9tP4NsutoNvrb6L6q8Ed0py7IpG/+Z X-Received: by 2002:a17:90b:4acb:b0:1d1:efc:39bd with SMTP id mh11-20020a17090b4acb00b001d10efc39bdmr1613031pjb.49.1650071772846; Fri, 15 Apr 2022 18:16:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650071772; cv=none; d=google.com; s=arc-20160816; b=lbkRLIckpE5ORw/kEzp3U7+jIso2ppmomDOm8aRM50OoA/6QsEVu6e99Np38kJGHor dMybOnAX+x27ARgglugqN8GaMzbNTPwfw5mXZ3UeFQZUlmQn1ysPP+Nnc6WtYi7bLOW1 fyR8vf2w81lyh+g7zu7O3DkkRLbVvsWTOKIMcGa7Bi1jJiQgeJbbAyAclMmDpLr1xg7M eevnh69rRYQW7BKNtSkTRaJASBu3y+rLx0/2FFEBewhvnJaXN4ZAfa9Qd6dDkVOxFHy+ DFnn4CuN4iU83ByHY1gnL5C0fM4myfDqTH3VpB/BdnMXNA0c00vf1xCKW2Vsd5+e/Jlg ml3w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9ukbT/4wlnr3bIKYOPfr/n68CEs+SDNJ8K2aJyw0K+g=; b=wf3eBw92V7pj/hGpHnuikyxTNAXGkqtSY/NOF/tdGJMLPObpLu6/bFafZypiEIaJfM Vtb9fvKmBrMLmKdh8Iliu4yrVeQy/Dx1HRA+3KzlgnT3dqGVGyORS2O+UKM62MEg+jYv knu048czkZ44aORNfd7aBOqGcQvK32Za+2idyWhsmvOeLE0PJWpazlsWTScwy4ohT1iE Onqx1DeHYSbmpnYiZv//pQxLLqnvqHq3p0PDfPSem+QNaFGRY+cjKLPBJvvTz5aRCRiB zpnR5TuH0WiUe8E81lkNJyfbK5ZqSx2fVuXcR28+pCzVBCTbzdhYV4IZe8+UFvpneD4z 766w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UIS6nEYV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y19-20020a056a00191300b00505fb107d12si3082044pfi.114.2022.04.15.18.16.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 18:16:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UIS6nEYV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4FC905EDC7; Fri, 15 Apr 2022 17:52:42 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354347AbiDOVJN (ORCPT + 99 others); Fri, 15 Apr 2022 17:09:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354219AbiDOVJA (ORCPT ); Fri, 15 Apr 2022 17:09:00 -0400 Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D81A6583F; Fri, 15 Apr 2022 14:06:30 -0700 (PDT) Received: by mail-qv1-xf36.google.com with SMTP id d9so7188857qvm.4; Fri, 15 Apr 2022 14:06:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9ukbT/4wlnr3bIKYOPfr/n68CEs+SDNJ8K2aJyw0K+g=; b=UIS6nEYV876W1JKuUDEuDbByxmB/7R5cDelxgi4Ovs+fITSNRC5S1j5B4zbzT/wJFi 1go3afHNJL5XdHxnCBIuOeaUBiuJCoEbhKq56kwEn0XeSFI17Sws6upWDj7keaU4ZA4p gITZ1rhyzHuq97xfFj4b+Simpfb75aYz5l6719+px6T+iG+4P/FLcLZNOXCCk7jwSLbs A9TE0k6t7uQyZ8VuNQkR7YlTfHuRo/OE8YMfMywsZF7VLggLzV9sIX4SOorH3aw6xCul AT7JiI4OK3QOT2oM6WT4Ot5QN5/hUEKz3HIGPKGlErFONOUg8JuDYZ/dVuDCHQpBIlIT WDhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9ukbT/4wlnr3bIKYOPfr/n68CEs+SDNJ8K2aJyw0K+g=; b=3p77Z+lVUqr0PekZ+d+WEUdV5Gx5Rr4PpAJNlkliKq0mZXCZYRMZL0SwvVXHrYANn6 QClAMrgMmP9BkzcMVpOvca92TCiigI+ovKQrO/S/grVBLiBlDUWgMtStekXBm1fn28f8 hAGLKDpQyMGoPb02gKNfxecf/uotGWdLZA9rk+RNTHdi3aCIM6b3O+1zk7a1VhwS4aSZ vA+IyYUKnDWkWQAOIMTK/qpLiqk2YSbBS00AumnS0GdjuwCgp4mlPffS8gjG0frZ5Z29 ThPGpbb9mz6xuzX823tezhm3nChEiCSk1Krcemkb9vzW6iDjtDtYR5WlpUj1GYoaHOHt Fgpg== X-Gm-Message-State: AOAM5329eTWNSCfxXzKoa5iTOERRJBWIxgS5S/unQd10+1XbhdfzWehL s+q2t64JP8OtRCYjocZD2epEe9fxxgHkE+rY X-Received: by 2002:a05:6214:2342:b0:42d:7c8b:9eac with SMTP id hu2-20020a056214234200b0042d7c8b9eacmr763410qvb.5.1650056789619; Fri, 15 Apr 2022 14:06:29 -0700 (PDT) Received: from master-x64.sparksnet ([2601:153:980:85b1::10]) by smtp.gmail.com with ESMTPSA id w8-20020a05620a148800b0069c4884c990sm2838664qkj.108.2022.04.15.14.06.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 14:06:29 -0700 (PDT) From: Peter Geis To: Rob Herring , Krzysztof Kozlowski , Heiko Stuebner Cc: linux-rockchip@lists.infradead.org, Peter Geis , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 3/4] arm64: dts: rockchip: add rk3568 pcie2x1 controller Date: Fri, 15 Apr 2022 17:06:20 -0400 Message-Id: <20220415210621.538109-4-pgwipeout@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220415210621.538109-1-pgwipeout@gmail.com> References: <20220415210621.538109-1-pgwipeout@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 The pcie2x1 controller is commong between the rk3568 and rk3566. It is a single lane pcie2 compliant controller. Signed-off-by: Peter Geis --- arch/arm64/boot/dts/rockchip/rk356x.dtsi | 68 ++++++++++++++++++++++-- 1 file changed, 65 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk356x.dtsi b/arch/arm64/boot/dts/rockchip/rk356x.dtsi index ca20d7b91fe5..d5131f5aaf73 100644 --- a/arch/arm64/boot/dts/rockchip/rk356x.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk356x.dtsi @@ -270,10 +270,17 @@ gic: interrupt-controller@fd400000 { <0x0 0xfd460000 0 0x80000>; /* GICR */ interrupts = ; interrupt-controller; + ranges; #interrupt-cells = <3>; - mbi-alias = <0x0 0xfd410000>; - mbi-ranges = <296 24>; - msi-controller; + #address-cells = <2>; + #size-cells = <2>; + + its: interrupt-controller@fd440000 { + compatible = "arm,gic-v3-its"; + reg = <0x0 0xfd440000 0x0 0x20000>; + msi-controller; + #msi-cells = <1>; + }; }; usb_host0_ehci: usb@fd800000 { @@ -722,6 +729,61 @@ qos_vop_m1: qos@fe1a8100 { reg = <0x0 0xfe1a8100 0x0 0x20>; }; + pcie2x1: pcie@fe260000 { + compatible = "rockchip,rk3568-pcie"; + #address-cells = <3>; + #size-cells = <2>; + bus-range = <0x0 0xf>; + assigned-clocks = <&cru ACLK_PCIE20_MST>, <&cru ACLK_PCIE20_SLV>, + <&cru ACLK_PCIE20_DBI>, <&cru PCLK_PCIE20>, + <&cru CLK_PCIE20_AUX_NDFT>; + clocks = <&cru ACLK_PCIE20_MST>, <&cru ACLK_PCIE20_SLV>, + <&cru ACLK_PCIE20_DBI>, <&cru PCLK_PCIE20>, + <&cru CLK_PCIE20_AUX_NDFT>; + clock-names = "aclk_mst", "aclk_slv", + "aclk_dbi", "pclk", "aux"; + device_type = "pci"; + interrupts = , + , + , + , + ; + interrupt-names = "sys", "pmc", "msi", "legacy", "err"; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &pcie_intc 0>, + <0 0 0 2 &pcie_intc 1>, + <0 0 0 3 &pcie_intc 2>, + <0 0 0 4 &pcie_intc 3>; + linux,pci-domain = <0>; + num-ib-windows = <6>; + num-ob-windows = <2>; + max-link-speed = <2>; + msi-map = <0x0 &its 0x0 0x1000>; + num-lanes = <1>; + phys = <&combphy2 PHY_TYPE_PCIE>; + phy-names = "pcie-phy"; + power-domains = <&power RK3568_PD_PIPE>; + reg = <0x3 0xc0000000 0x0 0x00400000>, + <0x0 0xfe260000 0x0 0x00010000>, + <0x3 0x00000000 0x0 0x01000000>; + ranges = <0x01000000 0x0 0x01000000 0x3 0x01000000 0x0 0x00100000 + 0x02000000 0x0 0x02000000 0x3 0x02000000 0x0 0x3e000000>; + reg-names = "dbi", "apb", "config"; + resets = <&cru SRST_PCIE20_POWERUP>; + reset-names = "pipe"; + status = "disabled"; + + pcie_intc: legacy-interrupt-controller { + #address-cells = <0>; + #interrupt-cells = <1>; + interrupt-controller; + interrupt-parent = <&gic>; + interrupts = ; + }; + + }; + sdmmc0: mmc@fe2b0000 { compatible = "rockchip,rk3568-dw-mshc", "rockchip,rk3288-dw-mshc"; reg = <0x0 0xfe2b0000 0x0 0x4000>; -- 2.25.1