Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3114171pxb; Mon, 18 Apr 2022 16:18:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXzaOuLrThDa+pygj1o0CYGz5kfF3Qn2qJ8iJ3I++6VvIt5MpuD/KUI9zezl0Vn9YlYY9A X-Received: by 2002:a05:6a00:1903:b0:4fa:fa9e:42e6 with SMTP id y3-20020a056a00190300b004fafa9e42e6mr14868567pfi.1.1650323905323; Mon, 18 Apr 2022 16:18:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650323905; cv=none; d=google.com; s=arc-20160816; b=WfBDBzH9nbCTHFfEIOJIu4gtqJXA1kVqUtTP7zfZElQvDmxkl5VAsTds8LWHuwsRKY +ABKEbY2sauN8JCe1GoUSvmMgp+5whi+hJNXpxaYX4yfOjZRkB/svAmxrX+LERcijz6O rEMKTGtVwDZUMzu7U8Xmj+85sJ+Ji2SNF+6FnTb8o0VRIb3Qn3X6bh/OkS6jNutcHiDM Te1BYk+zNSkJyi6XHavjr5SJl98lNaKxoi5FwTC7z5OoeehsEkca/GviU9EZqNOqefsg KU3liGiSKulOeoxITzm3aPAcimDZEL5W8aHEZxo/W2QMv/yW1JuJm43bDubDR/jCusT9 dyAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-filter; bh=emVqFbNCwjgoqmW0Brt7R6/wIjhxVEhk/uyyQuXPHB4=; b=WjU65LtVfkovqiGf62OpKa7al+S29XiC+GOcCd8Xc+OuMNp/HPyL3G7XXksmiFRb/s UtpDE+tPAof1Mlq31W5JTihF7w8HVgYtGHIuus9NESVr5XwYrHkxrZSJjpO2FkrSlli7 DdHr4Jw1pyft8nBka7jjSGOXS4RcHS+8wz5LMF0LY1Ov3c+IjpaZapF75otKpIxp4trG 1YDip2VXPTRcKwlIIJ5z2Z1KVcaCk/H1EEJErJO5p7/JyIm7Q4mgdDtxiz4DX7EJaRU9 B33ho3kmnPEaySA73bbNEkKxRxt1m6uIMYUZGHZWZFZJ2GqdpdKwRqVKqdhtDO7NbaTX zAwg== ARC-Authentication-Results: i=1; mx.google.com; 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 o6-20020a170902d4c600b0015904f6c4f0si3672571plg.19.2022.04.18.16.18.08; Mon, 18 Apr 2022 16:18:25 -0700 (PDT) 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; 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 S237391AbiDRJFn (ORCPT + 99 others); Mon, 18 Apr 2022 05:05:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237379AbiDRJFi (ORCPT ); Mon, 18 Apr 2022 05:05:38 -0400 Received: from mxout04.lancloud.ru (mxout04.lancloud.ru [45.84.86.114]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 939521169; Mon, 18 Apr 2022 02:02:57 -0700 (PDT) Received: from LanCloud DKIM-Filter: OpenDKIM Filter v2.11.0 mxout04.lancloud.ru 7631120CBF69 Received: from LanCloud Received: from LanCloud Received: from LanCloud Subject: Re: [PATCH v2 6/8] ARM: dts: r9a06g032: Add internal PCI bridge node To: Herve Codina , Marek Vasut , Yoshihiro Shimoda , Bjorn Helgaas , "Rob Herring" , Krzysztof Kozlowski , Geert Uytterhoeven , Magnus Damm , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=c5=84ski?= CC: Rob Herring , , , , , Sergey Shtylyov , "Thomas Petazzoni" , Clement Leger , Miquel Raynal References: <20220414074011.500533-1-herve.codina@bootlin.com> <20220414074011.500533-7-herve.codina@bootlin.com> From: Sergey Shtylyov Organization: Open Mobile Platform Message-ID: <05c96b4d-313b-1aad-0ee5-61e54672765e@omp.ru> Date: Mon, 18 Apr 2022 12:02:52 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20220414074011.500533-7-herve.codina@bootlin.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.11.198] X-ClientProxiedBy: LFEXT02.lancloud.ru (fd00:f066::142) To LFEX1907.lancloud.ru (fd00:f066::207) X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY 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 Hello! On 4/14/22 10:40 AM, Herve Codina wrote: > Add the device node for the r9a06g032 internal PCI bridge device. > > Signed-off-by: Herve Codina > --- > arch/arm/boot/dts/r9a06g032.dtsi | 28 ++++++++++++++++++++++++++++ > 1 file changed, 28 insertions(+) > > diff --git a/arch/arm/boot/dts/r9a06g032.dtsi b/arch/arm/boot/dts/r9a06g032.dtsi > index 636a6ab31c58..848dc034bb8c 100644 > --- a/arch/arm/boot/dts/r9a06g032.dtsi > +++ b/arch/arm/boot/dts/r9a06g032.dtsi > @@ -211,6 +211,34 @@ gic: interrupt-controller@44101000 { > interrupts = > ; > }; > + > + pci_usb: pci@40030000 { > + compatible = "renesas,pci-r9a06g032", "renesas,pci-rzn1"; > + device_type = "pci"; > + clocks = <&sysctrl R9A06G032_HCLK_USBH>, > + <&sysctrl R9A06G032_HCLK_USBPM>, > + <&sysctrl R9A06G032_CLK_PCI_USB>; > + clock-names = "hclk_usbh", "hclk_usbpm", "clk_pci_usb"; > + reg = <0x40030000 0xc00>, > + <0x40020000 0x1100>; > + interrupts = ; > + status = "disabled"; > + > + bus-range = <0 0>; > + #address-cells = <3>; > + #size-cells = <2>; > + #interrupt-cells = <1>; Really? I don't think this PCI bridge is also an interrupt controller... > + ranges = <0x02000000 0 0x40020000 0x40020000 0 0x00010000>; > + /* Should map all possible DDR as inbound ranges, but > + * the IP only supports a 256MB, 512MB, or 1GB window. > + * flags, PCI addr (64-bit), CPU addr, PCI size (64-bit) > + */ > + dma-ranges = <0x42000000 0 0x80000000 0x80000000 0 0x40000000>; > + interrupt-map-mask = <0xf800 0 0 0x7>; > + interrupt-map = <0x0000 0 0 1 &gic GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH > + 0x0800 0 0 1 &gic GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH > + 0x1000 0 0 2 &gic GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; > + }; > }; > > timer { MBR, Sergey