Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1488304iob; Thu, 5 May 2022 02:27:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydrAco/DCOUPXIIeXHd8vTaNCRExnkO67f35fRVLExRHKRVK5i/98a0W0muJetPDhDOspB X-Received: by 2002:a05:6402:2804:b0:420:caf1:961c with SMTP id h4-20020a056402280400b00420caf1961cmr28691285ede.280.1651742850617; Thu, 05 May 2022 02:27:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651742850; cv=none; d=google.com; s=arc-20160816; b=gJt5f6tbcfSUbhnzargGTAfwQKkMuG05QonJSGSoczil3oxzVt5KEg0HODln8wF953 jqr18qEoPSiP5ivIk0svxGiypFaq1eBYAdCpqcIl2R+T+eNNn6E+1OvndTzmh5120dlO Uz8aKoqZi2JjPZT44+tqLXpsYJVl4imfVbTxbumFan85+S8YvU2supNdGoDr+j8xQm+v OnR0+HCmyusTKA4OY205Lz78mQFfQ6ht4jSuIhskU7KHxHGRomGk7YnXr0FMX8KOdT02 eQVlKvKKvLU/sWCrBdDDI3Gn+xAAB2JgMTcyOgQO49K+bLq4o9s3evytA+Z5YIAsoBSe 6fiw== 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=J+ZPQwdwus+sA1dqhZGKwJyFtivNMxn3vuagpJWZ2E8=; b=EL6+wW73hwtY2kgHDPeLqDYEvdwhhqJ3HUYZYs0VfXGZLrXstxNLDAFpsuJFCxFLr6 jIQc+rPaU8HWKi/GJ37oZDlAECPUru0AvfdZyMvjTTFQ4CI7u5f1ML3NoMjRR+yPaaKF Cb63lusY8LOicnJwqr+vLRkOzC+lygF0Qm9lRB6lfd2Uo3DyQedrnYv9M+3Rxj2nWGKq lN6ZHN5jVHZV3OxtXB1K5GGryv6aVQp7OpLQ/veKkOqTuKLNOkRyGmkU9Wuhr1LizXC2 zD4hcXl8HRwnCtlfCCvDheO1mWLKIKWyxXYudhB3mfJtf01R++BrPCbOPF8kMOOcH3g9 bIvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YzTS20RH; 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 ga12-20020a1709070c0c00b006df76385f1csi1692735ejc.956.2022.05.05.02.27.07; Thu, 05 May 2022 02:27:30 -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=YzTS20RH; 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 S1348858AbiEEIX6 (ORCPT + 99 others); Thu, 5 May 2022 04:23:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347525AbiEEIWH (ORCPT ); Thu, 5 May 2022 04:22:07 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FB9749C80 for ; Thu, 5 May 2022 01:18:12 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id x18so5068229wrc.0 for ; Thu, 05 May 2022 01:18:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=J+ZPQwdwus+sA1dqhZGKwJyFtivNMxn3vuagpJWZ2E8=; b=YzTS20RHecVjsm0SDnWmTJ1P4NopKbIQl3++dsnyrZsrY1E5QUXBtV1djkfM2NtfgI BreMslg0FkelKFvel8Ea1SXzBOpFtUbhmOY4wB5JU/iNpnwUoSbKNHpngqMGw2C4X127 fT8KyUW1sv7idrXQqnZIiNYbUyCWsyiTepPxj7mJggU8/+E8M25wWrHLVqOCL4fwiPgF mJS5H20EmNo1/oCY1vU7IjHQFn3Ikx+ALhNVUnApYhougQLQROb6FpWebztq7esvXpC0 gcpgVLQNvOBZKTBvdTmM6IEi1CT4GsFQKDiBCDTyhp5rmcf5GYsoIKpsnOtu8kNlBt9K WEEw== 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=J+ZPQwdwus+sA1dqhZGKwJyFtivNMxn3vuagpJWZ2E8=; b=Sxa9jMLwss1X2AiV5/en7veRugKK8fcWPoxytWD91EWMV1xECjidec06XscD57qpmY wu9HzJWnMfu1Hrq0CKcCyC1ZoWCILz103pxVcsBK4OkbZIEYxZGXrgZfSToItU0E+5It xGPnNBE+qniwMWP4bUGM3TkUH7rXTikLOOmuaBrijdbyfwfe2syIUyMAybSTKOkbkHDb odU2giaj+5lbmg9qdsVVolAtgePcx0uGyqXoI4ZhLdh/ybbnp/JOXFUPIvpEUILdfuiK tLqkB6n9Glvc3ifQzLjGDDQULqpv2f1/ORndSrtUojswncVxll0+Tt/rt5BFCpSv1xKh aJcA== X-Gm-Message-State: AOAM530AIJ0moPSJibODD8jZ/PzWFYKQdk/xgh6YE4/y50hHqo1Ym6PT O+drY9YwiTwaET93BKJLr7DOP4E2uoTZFis1 X-Received: by 2002:adf:eb4d:0:b0:1ed:c1f7:a951 with SMTP id u13-20020adfeb4d000000b001edc1f7a951mr18915860wrn.454.1651738690662; Thu, 05 May 2022 01:18:10 -0700 (PDT) Received: from [192.168.0.217] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id n124-20020a1c2782000000b0039447beb28asm1747344wmn.23.2022.05.05.01.18.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 May 2022 01:18:09 -0700 (PDT) Message-ID: <9581ba8b-1d28-3292-872b-026c60e20424@linaro.org> Date: Thu, 5 May 2022 10:18:09 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v2 1/3] dt-bindings: misc: add bindings for Intel HPS Copy Engine Content-Language: en-US To: matthew.gerlach@linux.intel.com Cc: dinguyen@kernel.org, robh+dt@kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org References: <20220503194546.1287679-1-matthew.gerlach@linux.intel.com> <20220503194546.1287679-2-matthew.gerlach@linux.intel.com> <17407fe7-b11d-2ba8-acca-3e71cf1a3b2f@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 On 05/05/2022 00:41, matthew.gerlach@linux.intel.com wrote: >> Please find appropriate directory matching this hardware, not "misc". As >> a fallback SoC related bindings end up in "soc". > > I thought misc seemed appropriate because it is a very specific IP block > in the FPGA connected to the HPS. It does perform a simple DMA function; > so I considered putting it in the dma directory, but it also has some > hand-shaking registers between the HPS and a host processor connected to the > FPGA via PCIe; so I thought misc. Since the HPS "soc" accesses the > component, I can put it in the "soc" directory, unless there is a better > suggestion. So let it be "soc". >> >> $ git grep address-cell >> Do not use inconsistent coding. The same applies to your DTS. > > Is the inconsistency the use of '0x' in the values of #address-cells and > #size-cells, or is the consistency having different values for > #address-cells and #size-cells or both? It's about "0x". > >> >>> + #size-cells = <0x1>; >>> + ranges = <0x00000000 0x00000000 0xf9000000 0x00001000>; >> >> Why do you even need the simple-bus above and cannot put the device >> directly on the bus? > > On an Agilex chip, the HPS is connected to the FPGA via two bridges, > referred as the "HPS to FPGA bridge" and the "Lightweight HPS to FPGA > bridge". An IP block in the FPGA could be connected to one or both of > these bridges. I am anticipating device tree overlays being applied for > other IP blocks instantiated in the FPGA. OK > >> >>> + >>> + hps_cp_eng@0 { >> >> No underscores in node names. Generic node name. > > I understand. I am considering dma@0 for the generic node name. Let's keep the same as in DTS. Best regards, Krzysztof