Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1311778pxu; Fri, 27 Nov 2020 04:45:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJzJOZp7dHwOIsdZ3Tg1IKFGejs8MH69LllwIMN7m9ux/F/DeXWU4Ago/zio41P+0ORJw/GI X-Received: by 2002:a17:906:4805:: with SMTP id w5mr7545070ejq.378.1606481113174; Fri, 27 Nov 2020 04:45:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606481113; cv=none; d=google.com; s=arc-20160816; b=ap72rYQ8EB5B0hve9ld+4BfhfVlKE52LnN3FNN2DbviVm1Kr+yHaWDF0JIncvDrhHK cuV6JFAWI6qPJxHsAKRNLOpgjfzrBkQERGBZ+TXfPHoc7M0efr6EvvKBZzMqCDTszgIb nbs8qZG1VMdwbw99tindfTr25VDa2bpf6JWiHz6+7vqZjaSOGcbQxh9VjjYPVVfsN22W CGaQ7AN32+uRalGZfTRXWe5aAo2v00591XqIHvas7mHWkjga47TOyQa7aMjeA8xoBe3e XcM9ZYoh5g5CEnialdal1IXcs0SMWK7tfpHjbwfBxZCcW8WIaYA9G7KLV+TtJ4kdj9Dm zqmA== 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:from:references :cc:to:subject:dkim-signature; bh=V+UYY93bQCO8HGvd/dOd/Rhtb0qsy0CmlK8sEYhElKA=; b=ubQQkOQKGdb+p/ywH3xoIJvM/fhbMqYLR5ft0zPPiZ3V/KVjKonY8F3wTOFaOmQC+A Gijv3vs/3ZCXiUixSjscCYy43PQ/vVZRL0DyPRttfLa37gv+q40N1PMYR9/9I62VCqOG aoCSDwvm0SpVCw8KJgPsCNWKnWIHcj+flMvLRXeCfmoyQ3gg0zFmNUawfFyAZXc8Wr4R xfZan0S8infhHKFghbW6CZ37yJEColwwoy7/JYNFrotHFJv1x6+USjnRGHW1ucG6/gx0 w5uMCv5QNJ+S4SSU1xxY/S9Q36zp5mmexHGBqXyFKkAQ3TRX5U0NNYcuN+KCDx3g9d/j RqVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GA7fGSjs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z18si5060504edr.105.2020.11.27.04.44.49; Fri, 27 Nov 2020 04:45:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GA7fGSjs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729362AbgK0Mmi (ORCPT + 99 others); Fri, 27 Nov 2020 07:42:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728013AbgK0Mmh (ORCPT ); Fri, 27 Nov 2020 07:42:37 -0500 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E23CC0613D1; Fri, 27 Nov 2020 04:42:37 -0800 (PST) Received: by mail-wr1-x444.google.com with SMTP id t4so5410044wrr.12; Fri, 27 Nov 2020 04:42:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=V+UYY93bQCO8HGvd/dOd/Rhtb0qsy0CmlK8sEYhElKA=; b=GA7fGSjs3q6PrvswwEX9lGKUTiREVTe9Yob+iavzXSR3VV4fxkwC9WDdbzG66uqDRu xV6AuGIOcIwOg8jYnj5QxOkncmsnxfCMenoYtVL+fKxDeLfPt+Mm5FnknXfNAF81ipi1 /AYi415kQ9YupGtZYCymGwtDYtgfOcCLtSdSEjQzKuPyewgDdxcUl6mugZnZrEJT6A7L lxqnE+D3cPfOBRrPh+ik/CUZYkEeNvrSfpSPDmfo97txrh9isM3zJNrkhgm3NQJsnl9o ZgYzIFjNbNINeW5ZhWqBE5qgGelIUm/hTyAN3u/i7J5F7n8OhsrjLgNK0KUt3JAxLSk+ f93w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=V+UYY93bQCO8HGvd/dOd/Rhtb0qsy0CmlK8sEYhElKA=; b=YTln3PLs/rxgz+EZ68xMNhZ/tX9xBkYD6BwqMCcH9UdJZGv2bZdJxVHiMNns28JNnv caPYSI4jw1/iBREimP65kpkCIIKdep8qYFWh/Nk1puupjGoEUvpKmgWYsR0uQNWsK0Ma i/+ud9wIDnAnQoLS7BD9Y9oNxoTbzzv97lvK1X3I0L7B2xJY2I86fTNt5+D8SjXhCqiq FbEVQzrM6gN4yd0IRkjJW2ig/r9WuYmJnIGL7nWUhcgNtM7O0QEjhIvIsfgrgWmIJcel /v0ykqzFzJDpDBEN4mb4ibGXdU+A7Wne+kOZnt4BEnG15ey+Yrg7R6IevmHFdi23eLFQ ci0Q== X-Gm-Message-State: AOAM5310Fo3TRSQ/DdX4wQqOh5VQ0HTBCSPmYIjvUO0pqcG1jV5kEJ66 Wx4AvonsCqPEQDdZsoYAItY= X-Received: by 2002:a5d:4a07:: with SMTP id m7mr10130310wrq.316.1606480955830; Fri, 27 Nov 2020 04:42:35 -0800 (PST) Received: from ziggy.stardust ([213.195.126.134]) by smtp.gmail.com with ESMTPSA id o134sm1707856wme.6.2020.11.27.04.42.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 27 Nov 2020 04:42:35 -0800 (PST) Subject: Re: [PATCH v3] arm64: dts: mediatek: Add mt8192 power domains controller To: Enric Balletbo Serra , Weiyi Lu Cc: Nicolas Boichat , Rob Herring , Linux ARM , linux-kernel , "devicetree@vger.kernel.org" , "moderated list:ARM/Mediatek SoC support" , srv_heupstream References: <1605782884-19741-1-git-send-email-weiyi.lu@mediatek.com> <1605791419.19819.4.camel@mtksdaap41> From: Matthias Brugger Message-ID: <1f25cc3f-324a-0020-7bf2-e5a915291522@gmail.com> Date: Fri, 27 Nov 2020 13:42:33 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/11/2020 15:13, Enric Balletbo Serra wrote: > Hi Weiyi, > > Missatge de Weiyi Lu del dia dj., 19 de nov. > 2020 a les 14:10: >> >> On Thu, 2020-11-19 at 13:13 +0100, Enric Balletbo Serra wrote: >>> Hi Weiyi, >>> >>> Thank you for the patch >>> >>> Missatge de Weiyi Lu del dia dj., 19 de nov. >>> 2020 a les 11:48: >>>> >>>> Add power domains controller node for SoC mt8192 >>>> >>>> Signed-off-by: Weiyi Lu >>>> --- [...] >>>> + /* System Power Manager */ >>>> + spm: power-controller { >>>> + compatible = "mediatek,mt8192-power-controller"; >>>> + #address-cells = <1>; >>>> + #size-cells = <0>; >>>> + #power-domain-cells = <1>; >>>> + >>>> + /* power domain of the SoC */ >>>> + audio@MT8192_POWER_DOMAIN_AUDIO { >>> >>> If you run the dt_bindings_check it should return some errors, as all >>> these node names should be 'power-domain@'. Which is a bit annoying >>> because then you will get a bunch of errors like this: >>> >>> [ 1.969110] debugfs: Directory 'power-domain' with parent >>> 'pm_genpd' already present! >>> [ 1.976997] debugfs: Directory 'power-domain' with parent >>> 'pm_genpd' already present! >>> [ 1.984828] debugfs: Directory 'power-domain' with parent >>> 'pm_genpd' already present! >>> [ 1.992657] debugfs: Directory 'power-domain' with parent >>> 'pm_genpd' already present! >>> [ 2.000685] debugfs: Directory 'power-domain' with parent >>> 'pm_genpd' already present! >>> [ 2.008566] debugfs: Directory 'power-domain' with parent >>> 'pm_genpd' already present! >>> [ 2.016395] debugfs: Directory 'power-domain' with parent >>> 'pm_genpd' already present! >>> [ 2.024221] debugfs: Directory 'power-domain' with parent >>> 'pm_genpd' already present! >>> [ 2.032049] debugfs: Directory 'power-domain' with parent >>> 'pm_genpd' already present! >>> [ 2.039874] debugfs: Directory 'power-domain' with parent >>> 'pm_genpd' already present! >>> [ 2.047699] debugfs: Directory 'power-domain' with parent >>> 'pm_genpd' already present! >>> [ 2.055524] debugfs: Directory 'power-domain' with parent >>> 'pm_genpd' already present! >>> [ 2.063352] debugfs: Directory 'power-domain' with parent >>> 'pm_genpd' already present! >>> [ 2.071176] debugfs: Directory 'power-domain' with parent >>> 'pm_genpd' already present! >>> >>> But that's another problem that should be handled in debugfs system. >>> >> >> Indeed...so I chose to use different name in dts to avoid problems in >> debugfs. It does violate the naming rules. >> > > But your binding will not pass (or trigger warnings) the dtb check > then. Rob was clear that names should be generic. Proper fix is fix > debugfs not the binding. > By the way, is anybody working on this debugfs issue? Regards, Matthias