Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp374622rwe; Thu, 1 Sep 2022 00:28:24 -0700 (PDT) X-Google-Smtp-Source: AA6agR7eYNAOPjIcLW6PqKinEEpyOm3Nqddamuq4mx9GrK+1ViTGxBF/ZvDUD9Zaewbz5GZrsB5b X-Received: by 2002:a17:907:2173:b0:73d:c95d:1179 with SMTP id rl19-20020a170907217300b0073dc95d1179mr22389105ejb.89.1662017304341; Thu, 01 Sep 2022 00:28:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662017304; cv=none; d=google.com; s=arc-20160816; b=ODsVzri0FUpKTIEnMvwomxMT3tKroWd2v67Qe9Q8Tera4h+iYB6+ivPMTHBNOaiJMs W4xs9XvhTexUfXYO5yrvoRqSKcQrVSm9DsbiWDpDWxbCgsCuTQIQgkY8XfsbW94lrZfI eyQqoylKgpQjbfatja/kA0WHOcyPOxYloW+RV/fs2XQJ+s1d6EIj2h58vS3mwJBkaqUS HdoRG/DDVCAWHDyBIaWNk81c0mlyMBM30tPjS52BSGy13CId9yOXQk1MgHQIJKpjYwa9 p3Wru1tpp9WLZ7PpuCMw8q2Euz3mP3Yre0YgYL6npX+3mfjg63oITH81PgGkVto58PyO Rdiw== 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=iAjJ7YXrX4dY+khgJ0CvZFUwoSGJiVC2yG+JBLcRLOs=; b=Faeuk90MvUS/XXLC6y81qwEatqA8dKSRv1zPiNrwdL4Y/zhd99hrlQ+yRwm1ROV6bP 4jKdqsgulMrcpOM9Lm01ZNYpoG+eybYhZtcdJ5EQJ8eAYSWQLhaqdOCIaeEALpl9G5w+ SXCBjyenPzy361QLnrmiW49ZYR1gng8wOOHru+AXHk1OKbrcr+HUreHEK6tBhpHSker8 6VCqzxISKCHlYWUm3hYRMR+6m9LUUdxZDoOJgXC7UFktuD5vbuEhA3DwAl9UCQTcMdti DfYRTWNhwyVD9i8rBcta5aLROcnwjrqBVmnhopsWiPhFTciksCtPqBrbKZSZ2a8akEu7 bP5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fLWwUhHv; 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 qf19-20020a1709077f1300b007417a742974si10085408ejc.610.2022.09.01.00.27.58; Thu, 01 Sep 2022 00:28:24 -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=fLWwUhHv; 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 S233860AbiIAHV5 (ORCPT + 99 others); Thu, 1 Sep 2022 03:21:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233867AbiIAHVd (ORCPT ); Thu, 1 Sep 2022 03:21:33 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 576E3BB6A6 for ; Thu, 1 Sep 2022 00:20:20 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id bq23so23145549lfb.7 for ; Thu, 01 Sep 2022 00:20:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=iAjJ7YXrX4dY+khgJ0CvZFUwoSGJiVC2yG+JBLcRLOs=; b=fLWwUhHvPyto5H3nuIWvqJPMNvmWOB004/EKKa2V47PhZjWX58wky1TPW9KCu0SFig 8d0o67kBt3PyANHrQ6WwuTiJtIMHIHbH7rwT9RJjsFcsUvCiDfo3mwdriq1zL4a6OS36 VtWY9yGEEO5z5kdRf0j3O953oqkpWYjltrRHw4np1NPtTrOIVF4b954l3eZ1Qz8VUeIl vAN6ue2tgabtHJ5PX4nMvGJlRbeUMg5H6dOnuHgWq2g4aJZ1xDmndzzvb82dNGgGsUzx 12zAEYUmOBl+HrL1VeMRv/QfRwFEpyOph8nx7WSD+8TtBgoz+NhfhcYDj4B1xWsjo+zA NBEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=iAjJ7YXrX4dY+khgJ0CvZFUwoSGJiVC2yG+JBLcRLOs=; b=l4gukejrw4O2LeZyrTQkrRM7Ke8qfy8EUdG2G2cdgKPdqKv/M4ePFymnP2hwP9VyTU An82qaxzJMPR/dgcfAAUal5PN3vh/jpQYZTTKcyfOea1Pr3YbuM8ScFSyeZ35ENohR4M 4HOX9YNmdzmgNolJ27lrthVHIUA+cS2LRXaeOJBAcd8GeBv5rpWBw1aFNnh7m0tUoHMR eFAGmSkFrl4L0dUBnxF7TqJNy6AmlHqxnKDZDRT4mKD0upcrqEMsvH5D9nYymI7CEy2k zIfT34r/IE4YZkNiYedPzchVN+c8bEtGEAoDiVVlhUky7BERujkxkrkK2hZs0e6DSV/X EW4Q== X-Gm-Message-State: ACgBeo2QU68Jvt5qUYiZDQq2EHTfiVH0Ls0phIFer4ZdtduQYx8rgngJ pn8WFYQ4Dcg1s9mvt1YTqvhOrw== X-Received: by 2002:a05:6512:230c:b0:494:8ddb:606 with SMTP id o12-20020a056512230c00b004948ddb0606mr1844510lfu.44.1662016814560; Thu, 01 Sep 2022 00:20:14 -0700 (PDT) Received: from [192.168.28.124] (balticom-73-99-134.balticom.lv. [109.73.99.134]) by smtp.gmail.com with ESMTPSA id r26-20020a2e80da000000b0025e49aaae10sm1575867ljg.12.2022.09.01.00.20.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Sep 2022 00:20:14 -0700 (PDT) Message-ID: <936c5623-07b9-c49d-e113-fc056a4eb9bc@linaro.org> Date: Thu, 1 Sep 2022 10:20:12 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH v6 06/17] dt-bindings: mfd: amd,pensando-elbasr: Add AMD Pensando Elba System Resource chip Content-Language: en-US To: "Larson, Bradley" , Rob Herring , Brad Larson Cc: "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-mmc@vger.kernel.org" , "adrian.hunter@intel.com" , "alcooperx@gmail.com" , "andy.shevchenko@gmail.com" , "arnd@arndb.de" , "brijeshkumar.singh@amd.com" , "catalin.marinas@arm.com" , "gsomlo@gmail.com" , "gerg@linux-m68k.org" , "krzysztof.kozlowski+dt@linaro.org" , "lee.jones@linaro.org" , "broonie@kernel.org" , "yamada.masahiro@socionext.com" , "p.zabel@pengutronix.de" , "piotrs@cadence.com" , "p.yadav@ti.com" , "rdunlap@infradead.org" , "samuel@sholland.org" , "fancer.lancer@gmail.com" , "Suthikulpanit, Suravee" , "Lendacky, Thomas" , "ulf.hansson@linaro.org" , "will@kernel.org" , "devicetree@vger.kernel.org" References: <20220820195750.70861-1-brad@pensando.io> <20220820195750.70861-7-brad@pensando.io> <20220822142544.GA3770388-robh@kernel.org> <554f33b4-d235-5516-e8ff-5bf80d63a9b9@amd.com> From: Krzysztof Kozlowski In-Reply-To: <554f33b4-d235-5516-e8ff-5bf80d63a9b9@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 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 01/09/2022 02:01, Larson, Bradley wrote: > >>> + is implemented by a sub-device reset-controller which accesses >>> + a CS0 control register. >>> + >>> +maintainers: >>> + - Brad Larson >>> + >>> +properties: >>> + compatible: >>> + items: >>> + - enum: >>> + - amd,pensando-elbasr >>> + >>> + spi-max-frequency: >>> + description: Maximum SPI frequency of the device in Hz. >> No need for generic descriptions of common properties. > > Changed to "spi-max-frequency: true" and moved to end of properties. Then you should rather reference spi-peripheral-props just like other SPI devices. > >>> + >>> + reg: >>> + maxItems: 1 >>> + >>> + '#address-cells': >>> + const: 1 >>> + >>> + '#size-cells': >>> + const: 0 >>> + >>> + interrupts: >>> + maxItems: 1 >>> + >>> +required: >>> + - compatible >>> + - reg >>> + - spi-max-frequency >>> + >>> +patternProperties: >>> + '^reset-controller@[a-f0-9]+$': >>> + $ref: /schemas/reset/amd,pensando-elbasr-reset.yaml >>> + >>> +additionalProperties: false >>> + >>> +examples: >>> + - | >>> + #include >>> + >>> + spi { >>> + #address-cells = <1>; >>> + #size-cells = <0>; >>> + num-cs = <4>; >>> + >>> + sysc: system-controller@0 { >>> + compatible = "amd,pensando-elbasr"; >>> + reg = <0>; >>> + #address-cells = <1>; >>> + #size-cells = <0>; >>> + spi-max-frequency = <12000000>; >>> + >>> + rstc: reset-controller@0 { >>> + compatible = "amd,pensando-elbasr-reset"; >>> + reg = <0>; >> What does 0 represent here? A register address within 'elbasr' device? > > Removed, I recall a check threw a warning or error without reg. > >> Why do you need a child node for this? Are there other sub-devices and >> your binding is incomplete? Just put '#reset-cells' in the parent. > > Without a reset-controller node and booting the function > __of_reset_control_get(...) fails to find a match in the list here That's not actually the answer to the question. There was no concerns whether you need or not reset controller. The question was why do you need a child device instead of elbasr being the reset controller. Your answer does not cover this at all, so again - why do you need a child for this? Best regards, Krzysztof