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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 26CCFC433EF for ; Fri, 29 Oct 2021 02:43:13 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3F82660200 for ; Fri, 29 Oct 2021 02:43:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3F82660200 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0491A83556; Fri, 29 Oct 2021 04:43:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="fV5BrZuM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 95465831B2; Fri, 29 Oct 2021 04:43:08 +0200 (CEST) Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7AA2B83556 for ; Fri, 29 Oct 2021 04:43:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=seanga2@gmail.com Received: by mail-qv1-xf36.google.com with SMTP id g25so4456322qvf.13 for ; Thu, 28 Oct 2021 19:43:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=VYK50SArPXNHYy9m0INBzVcIVv1N5iXs9DfxNAoC5lw=; b=fV5BrZuMf/wAqfgzfKG6nF1m52AJMzNiKOl8aqAN0AbxBxiTMHOzuswxknxyHJAMlT 5beXz5fpBIO6UkDhWUVjWY9jvXnCuJYrIrfQxRdD+l+3wW+SRT0AB44ekI6Hk1KCp/D7 8AbF367NNsM/JIFq7XAqYPZxPjpYGZHxYgIe6qMH7/SR4cZ3UPIP1ctUVsyHZ66ziObv Vd14Fjbl5XrTOSR80DgG/Zlr8YF1OCyywW03N2NDZc4Qvr/89F8fnJhmlTMhI8Q5aNcR GlzfmjX+CGQ0bKoxwC3X1FH+IJv3BinIqM/TL7V0fhKna4A1L6PvuTvavt5AodwPXZkM xsLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=VYK50SArPXNHYy9m0INBzVcIVv1N5iXs9DfxNAoC5lw=; b=nzUgu5mKhPzTuHCqz1RGzLb7wzQ24hGQr1syJUckSUGXmgTE5JfQ5FEM+PutF4ELvQ gfhyYWBQmjl65phtqO9Y791Si05qm0MFXBI57CvLz5wwMq9FAhYaBX3oIp6PTdjY5eCF b7cIlxdSGcy5pRkoiZ8Y/rOIpP560cuYLYepcq4dP0XjmwsmwX2NLLlbupeUtayC7oDQ IgJPAgTm6xOqG7fj1609KkaUoCACrDOxLVypeKQFJWRG3R5kTD4yyMMnLNDKICq0KKxW hmiuPSt32QGLJzHeZFbkh+uVciAcysf1Nw09gwA43mnLRZd2azTkDiVL2NMDy1bFto6X w/Zg== X-Gm-Message-State: AOAM532n3bU/qeV3MQDJUVrZHnGS9rMePSpl8+QDJODmOx8/eIOO+bnx HpdfpJiSNZDDaVcEZwRHYlE= X-Google-Smtp-Source: ABdhPJwhc+DuPIKSTWC1vQvq8tSzDS9T5EQ3CQpoCI7hT3Lju98efNg0uZNAyKFjs+1drY8cZgDvoQ== X-Received: by 2002:a0c:80e4:: with SMTP id 91mr7860137qvb.57.1635475382930; Thu, 28 Oct 2021 19:43:02 -0700 (PDT) Received: from [192.168.1.201] (pool-108-45-127-224.washdc.fios.verizon.net. [108.45.127.224]) by smtp.googlemail.com with ESMTPSA id h125sm3092368qkc.29.2021.10.28.19.43.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Oct 2021 19:43:02 -0700 (PDT) From: Sean Anderson Subject: Re: [PATCH V2] clk: introduce u-boot,ignore-clk-defaults To: Tom Rini , "Peng Fan (OSS)" Cc: lukma@denx.de, sjg@chromium.org, u-boot@lists.denx.de, Peng Fan References: <20211029012801.15193-1-peng.fan@oss.nxp.com> <20211029021041.GQ8284@bill-the-cat> Message-ID: <95b0da95-99cd-5aa9-2368-aac02509ed2c@gmail.com> Date: Thu, 28 Oct 2021 22:43:01 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20211029021041.GQ8284@bill-the-cat> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean On 10/28/21 10:10 PM, Tom Rini wrote: > On Fri, Oct 29, 2021 at 09:28:01AM +0800, Peng Fan (OSS) wrote: >> From: Peng Fan >> >> Current code has a force clk_set_defaults in multiple stages, >> U-Boot reuse the same device tree and Linux Kernel device tree, >> but we not register all the clks as Linux Kernel, so clk_set_defaults >> will fail and cause the clk provider registeration fail. >> >> So introduce a new property to ignore the default settings which could >> be used by any node that wanna ignore default settings. >> >> Reviewed-by: Simon Glass >> Signed-off-by: Peng Fan >> --- >> >> V2: >> Add R-b tag >> Tom, Simon >> After a thought, I think still put it as a u-boot thing. assigned-clock-x is >> actually Linux specific, however I could not add the new property to Linux, >> because we are supporting SystemReady-IR, we need the assigned-clock-x property >> in linux working and ignore it in U-Boot. > > OK, right, so... it should be a generic property to say what, early > firmware should ignore this clock unless otherwise required and use the > preconfigured value? > The issue is that for platforms sharing devicetrees between U-Boot and Linux, Linux may add assigned-clocks which are not implemented in U-Boot. Although assigning a specific frequency or parent to a clock may not be necessary to use the device, it will fail to probe because the clock cannot be found. I believe this property is intended for these cases. --Sean