Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5BFDFC61DA4 for ; Fri, 27 Jan 2023 15:08:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233064AbjA0PIV (ORCPT ); Fri, 27 Jan 2023 10:08:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233986AbjA0PIS (ORCPT ); Fri, 27 Jan 2023 10:08:18 -0500 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C18CD8349C for ; Fri, 27 Jan 2023 07:08:13 -0800 (PST) Received: by mail-wm1-x330.google.com with SMTP id m5-20020a05600c4f4500b003db03b2559eso3686191wmq.5 for ; Fri, 27 Jan 2023 07:08:13 -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=AW2pWXTyUHGTvF3vRsrjdCAjX1GGIv4T9LN8Vukc73Y=; b=tTz9+hqJ7Jy1km5Dced/EYS/TFgBjlN4MHTuOxRHugbLWpQK/LCF0b6aDaIRqSma4I +kWw5+19yGWEq3zkw8Y5rUu/v5zT9lkQKC2ARFeEt+OWwBha93eynpgSDWb5/E/6ZAc8 9n9JYPTmtLf9TpekqJpz6sRI7ODTBxq2VAFfmTO4zrTqRGJUDjvcs/rbSg4AyCOObFwJ J+r8/nTY7PWU3akKOc3L9vUpEGlHcZ7SnsdMllrHEOVVqmSxsIJubhGIZAzevXNzCwwO M2g98zO0kZsrqGHZPM+x/l8yez9sVj1+NoJAeC39o+CIefB+O/nLs0oUPD+PVnCGKwC2 iZ9g== 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=AW2pWXTyUHGTvF3vRsrjdCAjX1GGIv4T9LN8Vukc73Y=; b=baUoNkj2UKRKD4OeU5ES4Et5OvLCxkOGdA3cn37fDjGsOOd6Gx5jqr5mRNG3CRwQfp CAQgW1ZPf+lj+vvuno0CEeC7cvMqkNS4QftiHNRJ0ZcWoIeAL805yG5dVUPNk1nxtBZ8 lNtR88rvLvqO/rsZpE9QCjflCt6iF7X2TCgGthslU0SBp+bJb8kteFYEwUaFziYS515U alNVxksrUSTarsNuUO0LRM+IY/boQhRSWgGIKWbe+zO/f56Oh5GAIHZXM5KgmwTeF07p fdodBiF/sMuPi2Gcp4XZrI6Oz5d92nMSUvCphF7GVRXaeXaxhc63VADNn0QiaKFHWayy uE2w== X-Gm-Message-State: AFqh2krwl78Kx0PG8ubjqu6aKKVEYeawreQw/Zz/ISXCd8HWMen/WlAp lcrRBTg8GTwFEutJpXWwqLpQ/A== X-Google-Smtp-Source: AMrXdXt78EcrCHO17FyVHOV+gQgWXoL2exBvkBWIstUfl0BNIQuPBstljwxZrmYkM2CDqNkqhXEnnA== X-Received: by 2002:a05:600c:c05:b0:3db:2252:e50e with SMTP id fm5-20020a05600c0c0500b003db2252e50emr32563617wmb.24.1674832092081; Fri, 27 Jan 2023 07:08:12 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id bi5-20020a05600c3d8500b003db0bb81b6asm4890048wmb.1.2023.01.27.07.08.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 27 Jan 2023 07:08:11 -0800 (PST) Message-ID: <33c2038b-5e06-4eb2-82b8-007bb735bfb1@linaro.org> Date: Fri, 27 Jan 2023 16:08:09 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH 07/15] dt-bindings: clock: Add Ambarella clock bindings Content-Language: en-US To: Li Chen Cc: li chen , michael turquette , stephen boyd , rob herring , krzysztof kozlowski , "moderated list:arm/ambarella soc support" , "open list:common clk framework" , "open list:open firmware and flattened device tree bindings" , open list , arnd bergmann References: <20230123073305.149940-1-lchen@ambarella.com> <20230123073305.149940-8-lchen@ambarella.com> <0c19efb4-3bca-f500-ca24-14b9d24369ef@linaro.org> <87y1prgdyu.wl-me@linux.beauty> <87tu0ehl88.wl-me@linux.beauty> <87sffyhgvw.wl-me@linux.beauty> <185f3b3a330.11c135c37327076.6300919877819761183@linux.beauty> From: Krzysztof Kozlowski In-Reply-To: <185f3b3a330.11c135c37327076.6300919877819761183@linux.beauty> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27/01/2023 15:48, Li Chen wrote: > > > > but what you are saying is that there is no separate clock controller > > device with its own IO address but these clocks are part of rct_syscon. > > Then model it that way in DTS. The rct_syscon is then your clock > > controller and all these fake gclk-core and gclk-ddr nodes should be gone. > > Ok, I will remove these fake nodes, and model the hardware as: > > rct_syscon node > | clock node(pll, div, mux, composite clocks live in the same driver) > | other periphal nodes You need clock node if it takes any resources. If it doesn't, you do not need it. Best regards, Krzysztof