Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3682702rwb; Tue, 8 Nov 2022 07:17:22 -0800 (PST) X-Google-Smtp-Source: AMsMyM4oV7rC5j/j7MF46ZjeYIKYpvUrHchd0TqibiTer2LksXtccRirhMtotmrwyjg5U1U/hM9X X-Received: by 2002:a17:906:5d0c:b0:7a5:ad82:f319 with SMTP id g12-20020a1709065d0c00b007a5ad82f319mr52823328ejt.318.1667920642352; Tue, 08 Nov 2022 07:17:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667920642; cv=none; d=google.com; s=arc-20160816; b=yNEJAclTEuxFRl+xGPfHTUYLT7AsiF5XqzaKnlsOYNlGrGg6b/FEXL4TjqHN5gaI2c 6K5cTo49FRvpAs9H9vkERNRwjf0M+eKrfVoSpoEnaP4F/lDzxqZHgtXmEjRoGn298mJX B/GlfdmDhGBhiU4lszsbZtv5JYziiwiJ60rSJPNtzstfR6ooSD7+fu8E4999kxOgMJCO IJ/CW8ZgJyEmcriWK5CjTwIxqDzwN+goxGpwuXciWTcHL9TksC+7LisJAyFnbBEK+fKG KEIHjmkbCYNQYAAL0QIckP9WRKmhiRi+5+Tc4VhrrvuFlBEVPmHLzCqRvH2R8C6BbaRN inKA== 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=Yke8ySwFT8yI9hYAW7UzkJ/JFVT+jZWZcHr39eO1G2w=; b=1K7YmuGxWksRa8+lbImVD2hXZkfePmGg7F2vCR00QFK48KHjOle4iUv85Z3gpy8lAA UE3V3CEfpix5cfiuvmD8OOphl4/AMwUa9bsWXbA+BtkYLGmQzRLLSsl3WofuKY8is8+z aUmEu7V8g0i9e9RJNgwC5GT+gwfNtdqTg3RQTfUoFH+18015ZRJn9RI6wwVjh2aZHRkM HGoYKpO3uLpUI71X6pGqM958ivlvLQ6UBNKZItRcM9dtN2A0iNHzzqBTElb26D617tXh fHDa/f4CAfEbYd4qwKi99vXx0mRTP9R0aDyZ4JK50EyN2tWrTsUtuVPLB9DXLvFDvqIl 6FOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yznuQ4k9; 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 di19-20020a170906731300b007adf388f2dasi15538389ejc.497.2022.11.08.07.16.57; Tue, 08 Nov 2022 07:17:22 -0800 (PST) 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=yznuQ4k9; 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 S233615AbiKHPMH (ORCPT + 91 others); Tue, 8 Nov 2022 10:12:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234208AbiKHPMF (ORCPT ); Tue, 8 Nov 2022 10:12:05 -0500 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4253750F1B for ; Tue, 8 Nov 2022 07:12:03 -0800 (PST) Received: by mail-lf1-x132.google.com with SMTP id j16so21602943lfe.12 for ; Tue, 08 Nov 2022 07:12:03 -0800 (PST) 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:subject:date:message-id:reply-to; bh=Yke8ySwFT8yI9hYAW7UzkJ/JFVT+jZWZcHr39eO1G2w=; b=yznuQ4k9GcH2KW7oxpjxJR1K/7uJiGBHPT8KXuTERVcAaUvEdVD8/KnbJvhli6Ohvj MCuhUuInk8vWV+vJSKifas1QsDcOeUhbxkuqxFS0pA40drK7D8WcE3LsGRQq7wLnXKc1 jXLo+y34Gu/k3ZsKcyO5MtBFmtzV+EiWzKD55qeqrwNigXyiVlGLOFXYMj5jUwa6TivU 03RD4Y+FsglqWVoi/27DS9WxUYWuMxES7tzm50RKYonJ+irbedvPk9hUPhLgn6Y8keES 6+Ud4rL8mCGk+jwH5PX0BfqPTlLLPgRBm0MFw71uYZXG3KwX4UEZZ+J1exdxczlzs+WG upFA== 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:subject:date:message-id:reply-to; bh=Yke8ySwFT8yI9hYAW7UzkJ/JFVT+jZWZcHr39eO1G2w=; b=ySNVTXulq+aSUKDluUMWbUtBI1yecsFDzDR3wC8sXJ1p5Vwst+XMToH5Z0E9re1BLJ DnlsfFxFZWZOyun6Ttga8jbqgcneQW62+JUV6rjPCcO0jJmLGyfI49JJZT7cw1I6uOkq zDJLr1Avk76xuz8xQzWXy8I1Nxay7VZA4Xpid787ILhOfYaUFq1p7wPhRuAZUXPelCjy d8kMi7PsIzM4V/ZGcu8ISH8M8JN3ym/hwGSTrNJzCfODMKfDWQDkfd6J6bEyFpkqZRNo dKuvll7ZXEvaI1jkbHMbbLkVp924rja6QlmkFhbTXm8RwHmGqtrAmnIlRz9CAhTol+r4 FjAw== X-Gm-Message-State: ACrzQf0/wPOtGvxrUwC26V+MKt7SzKDq3aL2B3DvprdEjE/vyCtaNYN5 J7SEMtOoMEL46KnlAIF9L2pA8Q== X-Received: by 2002:a19:6712:0:b0:4b1:b061:480e with SMTP id b18-20020a196712000000b004b1b061480emr8408066lfc.624.1667920321609; Tue, 08 Nov 2022 07:12:01 -0800 (PST) Received: from [192.168.0.20] (088156142199.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.199]) by smtp.gmail.com with ESMTPSA id p22-20020a2eb7d6000000b002774e7267a7sm1761146ljo.25.2022.11.08.07.12.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Nov 2022 07:12:00 -0800 (PST) Message-ID: Date: Tue, 8 Nov 2022 16:11:59 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v2 5/5] arm64: dts: uniphier: Add NX1 SoC and boards support Content-Language: en-US To: Kunihiko Hayashi , Rob Herring , Krzysztof Kozlowski , Arnd Bergmann , Olof Johansson , Masami Hiramatsu Cc: soc@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20221107103410.3443-1-hayashi.kunihiko@socionext.com> <20221107103410.3443-6-hayashi.kunihiko@socionext.com> From: Krzysztof Kozlowski In-Reply-To: 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 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 08/11/2022 15:30, Kunihiko Hayashi wrote: > Hi Krzysztof, > > On 2022/11/08 20:13, Krzysztof Kozlowski wrote: >> On 07/11/2022 11:34, Kunihiko Hayashi wrote: >>> Initial version of devicetree sources for NX1 SoC and boards. >>> >>> NX1 SoC belongs to the UniPhier armv8 architecture platform, and is >>> designed for IoT and AI/ML application fields. >>> >> >>> + >>> + soc_glue: syscon@1f800000 { >>> + compatible = "socionext,uniphier-nx1-soc-glue", >>> + "simple-mfd", "syscon"; >>> + reg = <0x1f800000 0x2000>; >>> + >>> + pinctrl: pinctrl { >>> + compatible = "socionext,uniphier-nx1-pinctrl"; >> >> So instead of documenting the hardware precisily, you have one big bag >> for everything under simple-mfd. This is not how the SoC should be >> described in DTS. > > Sorry I don't understand. This is inherited from the previous descriptions, > but is there some example to express DTS correctly about that? I think yes, although it actually depends what is this hardware. Generally speaking, do not use simple-mfd and syscon when these are not really simple devices. There are quite many in your DTS, which got my attention. Instead - have regular device with or without children. There is no real need to have this a simple-mfd with one children without any resources (no address space, no clocks, no interrupts, nothing). Why this syscon/mfd and pinctrl is not a regular, one device? > >> >>> + }; >>> + }; >>> + >>> + soc-glue@1f900000 { >>> + compatible = "simple-mfd"; >> >> No, it is not allowed on its own. You need a specific compatible and >> bindings describing its children. > > I saw the definition of "simple-mfd" itself is only in mfd/mfd.txt. > > Currently there are only efuse devices as children, and this space means > nothing. I think it had better define the devices directly. You need to start describe the hardware. efuse is an efuse, not MFD. pinctrl is pinctrl not MFD + pinctrl. Best regards, Krzysztof