Received: by 2002:a05:6358:579e:b0:115:34ad:32ad with SMTP id m30csp19228rwf; Thu, 6 Apr 2023 12:03:27 -0700 (PDT) X-Google-Smtp-Source: AKy350YxduUVacElDPwgVEVzT+OyS/f2m1Jf5x3zVAj1nSSQeK6mqKA4YsqddBSicEp7uw3FX01T X-Received: by 2002:aa7:da88:0:b0:4ad:738b:6706 with SMTP id q8-20020aa7da88000000b004ad738b6706mr5946223eds.2.1680807806819; Thu, 06 Apr 2023 12:03:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680807806; cv=none; d=google.com; s=arc-20160816; b=zO5AMagAiBbWzXHV6zPL9tjPCHQ+IeTOPg65kKt7ri5qNkupd5TrVK9GMSST11AG5X PBZXyQmG85LMFHep/nfWA6yROYGbH9lPWADQo9ky2UtdHzkV9uMx3RovzMrlrKa4mxoT VU1XA2F4VSZ/DMn/v7B5wwvIlmkKpcBJyGG9NFHA6yjM47rD4PCnuJA5iG21KGGC3yLg iO5fCQA2A8ZPtlxQ/mVrzDD6RL85s9YgeBUfGiDsXaHf2uREphEfm0lTDZQCU494XwhL m0BmDzo7sWg3/P41Gs7IM5v33Woz1rnJBfg6xVQCR6UDcLMLu5I3CUNv5NBXU6EkQtjq 1rDQ== 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=TrhLW1wbWunykZQuk7rWh+aLPzkfPdyrzg855Rv1CC0=; b=IVntLT4qr50/GZLX14D5nxlU3b2mrSX068drAHte0HrC6UqlrZV+fWs8YfiP5FGpIS Lzzb4yNhS52nc//gw7988eTBQyljU4qeDzRMS3YMmOES+GAM5wHzLtVeQsa7tTGeeh5m Dy0bvVMStD7YNPY6+vFyI6KD1GkgZBkk2yXiXMBlDp1hp0seE2ANll3h3eR5zc2BUQmj HAn3py6zTORMgyeKoYpwOq8OPDa82VNnEdc53Fg4u3UumSPLMG3TjAMxemVImXkI0YQB s+A0GC7Eyp74/GjXLROvdxajklGx3ag0nLGtgMBLJuD6+xQqBSmJNNW3PlkCY/ia5vIm 485w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OaKgd8Q3; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e26-20020a50ec9a000000b004fc9c1d2f07si1691609edr.554.2023.04.06.12.02.55; Thu, 06 Apr 2023 12:03:26 -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; dkim=pass header.i=@linaro.org header.s=google header.b=OaKgd8Q3; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230075AbjDFSw2 (ORCPT + 99 others); Thu, 6 Apr 2023 14:52:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229941AbjDFSw0 (ORCPT ); Thu, 6 Apr 2023 14:52:26 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F085DCD for ; Thu, 6 Apr 2023 11:52:22 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-50263dfe37dso7550441a12.0 for ; Thu, 06 Apr 2023 11:52:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680807141; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=TrhLW1wbWunykZQuk7rWh+aLPzkfPdyrzg855Rv1CC0=; b=OaKgd8Q3eIvAk3dfIAinRvzLlH3Y8HQCxJ2bDVYbCFX7+lVVoFg419mM/7U4yEoPhV ZqrjC4RhHtwo8d9Gu2d/2noJeUE/4dpDoWCHozpas2GyzxtLPfVYyVDPqZqXBPLRBDvN xCISl03ZkgYVy/gDl0tEyXS1EGq+7e9GCofDB43ARMRYwxQvX2qH+uvKtyr00ZbWr2Ln Qet7xdSannl+UqtG2pVXEJf/bT2B6yQznjP1rFBsO+NVc3LfTwFp1KEosh3jGGmG56TV U9Bh8WtP0ecw9+fan2B700lmQRQkCmP5ib4j+nIvlz27qEpuxiy+aPc5oBkTtwmD5viK kK6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680807141; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TrhLW1wbWunykZQuk7rWh+aLPzkfPdyrzg855Rv1CC0=; b=y01rREioJXSbF0x7AcHpzzayJt/sKN01xbWSg0LC9qQL0p9MZklL3UQ/iKjCfrSxsJ MD4RjJQPJ67yHvTO2XhHw9c5ZR6PvRnakC4VTgM0VUIStxSL7YHq336b5cxOyo+xeCLQ zDJubGwgDz/bizjbHotbyX2VdQop/wXGwmWZuefRtodZ4lf5xVYxeXyrTUHlOXGR8kaq J95G18dMAq98LpZ+EAMFNXV2vweQquf/zpghJiROrVCoqu3IfbE5NSNjc8f0OKNSRw7o OPnu/3ftcO0vViSKwrqLnDb0TsYTjhrOGBUMU0Lfo7S02dlBbOorAhmy4gN5mPsRq1F7 1lnA== X-Gm-Message-State: AAQBX9dGioECa/7asacrgTG8olqrimB1n+O/IBKWF+IjZpQOl6NmDVur RiiixckM63DJOcWhV1IMR/MaRw== X-Received: by 2002:aa7:da88:0:b0:4ad:738b:6706 with SMTP id q8-20020aa7da88000000b004ad738b6706mr5919891eds.2.1680807141470; Thu, 06 Apr 2023 11:52:21 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:49e6:bb8c:a05b:c4ed? ([2a02:810d:15c0:828:49e6:bb8c:a05b:c4ed]) by smtp.gmail.com with ESMTPSA id y30-20020a50ce1e000000b0050470829dbesm651614edi.63.2023.04.06.11.52.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Apr 2023 11:52:21 -0700 (PDT) Message-ID: Date: Thu, 6 Apr 2023 20:52:19 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v1 1/3] dt-binding: pci: add JH7110 PCIe dt-binding documents. Content-Language: en-US To: Conor Dooley Cc: Minda Chen , Emil Renner Berthing , Rob Herring , Bjorn Helgaas , Krzysztof Kozlowski , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=c5=84ski?= , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-pci@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Albert Ou , Philipp Zabel , Mason Huo , Leyfoon Tan , Kevin Xie References: <20230406111142.74410-1-minda.chen@starfivetech.com> <20230406111142.74410-2-minda.chen@starfivetech.com> <38bc48bf-7d8c-8ddd-861f-3b7f3d2edce6@linaro.org> <20230406-revisit-patchy-a0063d964070@spud> <20230406-cinema-profile-1bfed00e4a5f@spud> From: Krzysztof Kozlowski In-Reply-To: <20230406-cinema-profile-1bfed00e4a5f@spud> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 On 06/04/2023 20:45, Conor Dooley wrote: > On Thu, Apr 06, 2023 at 07:35:09PM +0100, Conor Dooley wrote: >> On Thu, Apr 06, 2023 at 08:24:55PM +0200, Krzysztof Kozlowski wrote: >>> On 06/04/2023 13:11, Minda Chen wrote: >>>> + >>>> + interrupt-controller: >>>> + type: object >>>> + properties: >>>> + '#address-cells': >>>> + const: 0 >>>> + >>>> + '#interrupt-cells': >>>> + const: 1 >>>> + >>>> + interrupt-controller: true >>>> + >>>> + required: >>>> + - '#address-cells' >>>> + - '#interrupt-cells' >>>> + - interrupt-controller >>>> + >>>> + additionalProperties: false >>>> + >>>> +required: >>>> + - reg >>>> + - reg-names >>>> + - "#interrupt-cells" >>> >>> Keep consistent quotes - either ' or " >>> >>> Are you sure this is correct? You have interrupt controller as child node. >> >> I know existing stuff in-tree is far from a guarantee that it'll be >> right, but this does at least follow what we've got for PolarFire SoC: >> Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml >> >> Both PLDA and both RISC-V w/ a PLIC as the interrupt controller, so in >> similar waters. >> This note existed in the original text form binding of the Microchip >> PCI controller: >> | +NOTE: >> | +The core provides a single interrupt for both INTx/MSI messages. So, >> | +create an interrupt controller node to support 'interrupt-map' DT >> | +functionality. The driver will create an IRQ domain for this map, decode >> | +the four INTx interrupts in ISR and route them to this domain. >> >> Given the similarities, I figure the same requirement applies here too. >> Minda? > > Further, if, as I currently suspect, there's a lot of commonality here, > should the binding as well as the driver be split into common pdla bits > and microchip/starfive specific ones? > > Suppose that's more one for you Krzysztof. Yeah, looks like only clocks and resets are different. At the end it depends how much code you would remove... Best regards, Krzysztof