Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1328551rwi; Thu, 20 Oct 2022 11:06:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5peRNBzeIT7Iq/voqlSPLGv1mCTLlSq4dG4uY+9nUGtlvWXpv9SJE2St1gcarDcPC9hTQ9 X-Received: by 2002:a50:85ca:0:b0:461:168c:83ab with SMTP id q10-20020a5085ca000000b00461168c83abmr2051959edh.359.1666289206065; Thu, 20 Oct 2022 11:06:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666289206; cv=none; d=google.com; s=arc-20160816; b=GL/5ocuvXrk+PV4lsXPaT3Dsy0X/7++nPA9Upr3pCEDXLWn5lsdyq4qCV5UtpKgYCC 8fj7U26Va2kSigDiBkdcnQLAPCW8p2zQgplsoGoO9QlnfG/hlC6fTAp5ZAie5KvB0Q9r SLHL5a7FdBnmwamuqeSNtfl0yMcdHFtz+26+BcDAf28l86AuQIbNYH3bcI0/x5U9x6W9 0UXvtL+tZQY092BBzeQX4vPhH3TpetjZNpQf9YVkQOuEfjZMVnHlPdBRsmuyPjW5zvUI llzZ3SGEDL1FPjExZRbuxUtIQwIQtcnBEAT8AFSxOvEBZssyGsa0Sjx+vnELV67msIn0 gqmw== 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=vcud6GmRc8M3n3Ve2sBGM7sjO9ABnr1C3YQxqchZffg=; b=QzsgI84iW6Az5deXZrrFY6JUXvxd9VqasfTfmwpWf2j400ydznPc/6piG+7N7QSGHr snJg4ICQQ3SXz/mHUw0gd1C22bRAciuehZfW1V/lTur0y+Auqd9remPoRuY2SDotjWWD MZyZ97GoUl3lUd+ESd+sS/r4wqXXQ3VWF1wHX54go/lrVahJVDoEPMb8Izm3J6h/oj9W hEh7jfdDaDTZGs9yesrrFN+5NbBhCjCu5D8dopelgGJYtHurOIMdOIgZR85VM/NlC4qs TiaepCMhBRmE813bswSRcIdqkDfz+a1+aYA3k4G2EGOc8lwMb7mHBAhafehzGvI5iyqg TgrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="P0Zijn/1"; 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 cs20-20020a170906dc9400b0078d9db99a6bsi16272593ejc.444.2022.10.20.11.06.14; Thu, 20 Oct 2022 11:06:46 -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="P0Zijn/1"; 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 S229965AbiJTSCe (ORCPT + 99 others); Thu, 20 Oct 2022 14:02:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230185AbiJTSBq (ORCPT ); Thu, 20 Oct 2022 14:01:46 -0400 Received: from mail-qt1-x830.google.com (mail-qt1-x830.google.com [IPv6:2607:f8b0:4864:20::830]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 366223C16D for ; Thu, 20 Oct 2022 11:00:15 -0700 (PDT) Received: by mail-qt1-x830.google.com with SMTP id z8so109676qtv.5 for ; Thu, 20 Oct 2022 11:00:15 -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:subject:date:message-id:reply-to; bh=vcud6GmRc8M3n3Ve2sBGM7sjO9ABnr1C3YQxqchZffg=; b=P0Zijn/1TMBrCusrq+G/g6b6XmgHGRA3whhBeRlmvKZhbGrvlb9vETOqZMK52I8+XV If2lhmTWkB1M1sDQ++kZmYlaNbtQD6OX8jkk1BTjj+DVoRZRxCibSuF3MFg6EqGkxl1L l5/f67hr/SLYPpETvDiMKBzPhvydg1+8BAk6EZ6d7udBhFWGKOko5bAAgDEMdm+CgcY9 Mq3WdXLU28Rbr22uvq37i//fXwMkGbUqQkMVX9kXc5Ay7pzN9sRvCrXm9GpKoS/Jb1D6 d1aAK+VwPrECbec5Gl/vh2vxKSdQZIhESJcgf0FqrzPWwJCHnvI0dldNK2h3GAa2pfDd r95Q== 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=vcud6GmRc8M3n3Ve2sBGM7sjO9ABnr1C3YQxqchZffg=; b=401WPF3ZLTld9MWmOXz6DdUVDtfpIO0W5DfJz4J77DpwM6lOYQZaOzbAStuMC1w1/L 3M8y7vRmDGG9xKam30YSVr8AaRYuuykQn1Ni7RyaV+0LMebMtv95VQ7Tv8R81qcqFEtG 36r9Zt9Nl6xPsybbj9Uyxa1D4hrXFdzlNqt+YsKKJkm1JZoRLx68pUltMGSNpaxGSFPQ ZEKkgSiZi8zzf4zcEPZQxS4pYljmOH5RnfijIi5i2v8B0X5/duCoKiOrk/lTIrgLe2zI xm61Tjo5PqxKQ/HrHX76fJD93MuHxJajW/tgEQncVtFI2Ch4ip0OlfWF2ft/BNUMAsUw lWVQ== X-Gm-Message-State: ACrzQf3cvVtygOYwxr9sy3IlA7tItMlKXL8w7/4z4F1IErJcvlIjL4eB +peQJFo/T7w87kKWh+7nrRMe3Q== X-Received: by 2002:a05:622a:1793:b0:39c:f3cd:e725 with SMTP id s19-20020a05622a179300b0039cf3cde725mr12710023qtk.333.1666288782969; Thu, 20 Oct 2022 10:59:42 -0700 (PDT) Received: from [192.168.10.124] (pool-72-83-177-149.washdc.east.verizon.net. [72.83.177.149]) by smtp.gmail.com with ESMTPSA id cj24-20020a05622a259800b00399fe4aac3esm6540268qtb.50.2022.10.20.10.59.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Oct 2022 10:59:42 -0700 (PDT) Message-ID: <835d3432-daf2-e824-5c84-7d47604f586f@linaro.org> Date: Thu, 20 Oct 2022 13:59:40 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: [PATCH v2 2/3] arm64: dts: qcom: Add base QDU1000/QRU1000 DTSIs Content-Language: en-US To: Stephan Gerhold Cc: Melody Olvera , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221014221138.7552-1-quic_molvera@quicinc.com> <20221014221138.7552-3-quic_molvera@quicinc.com> <56af2a04-1b21-000d-e3f9-86b6ac74aaf2@linaro.org> <50372a15-56ce-6ad6-f622-00624b909db8@linaro.org> <9fbe1bf5-a84d-c56b-1c0e-6848ee3d30fe@linaro.org> 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,URIBL_BLOCKED autolearn=unavailable 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 20/10/2022 13:18, Stephan Gerhold wrote: >> No, it puts attention to the board designer that he needs to provide the >> clock in his design. >> >> We had such talks about other platforms, although I do not have any >> recent bookmarks. Something older: >> >> https://lore.kernel.org/all/3382034.5ADO0F7naY@wuerfel/ >> >> https://lore.kernel.org/linux-samsung-soc/53DAB0A6.9030700@gmail.com/ >> > > If I understand you correctly your argument for having the clock in the > board DTS instead of the SoC DTSI is: > > The SoC DTSI describes the components of the SoC, while the board DTS > describes the components of the board (built around the SoC). The clock > is part of the board (and not the SoC) and therefore belongs into the > board DTS and not the SoC DTSI. Having the SoC/board components clearly > separated ensures people writing new board DTS pay attention to > everything board-specific. > > Correct? This sounds reasonable to me. Yes. > > However, the main question of my previous mail was: Why do you > alternatively recommend to keep the clock defined in the SoC DTSI and to > just put the clock-frequency into the board DTS? This sounds like a > contradiction of the above to me: the clock is still (partially) > described as part of the SoC, even though it belongs to the board. The proposal is a trade-off, compromise between code duplication and above recommendation of splitting SoC <-> board. As you said, all boards will provide this clock, so it is reasonable to put some pieces of it in the SoC DTSI to avoid duplication. But the final piece - what clock is there exactly (model, frequency etc) should be put in board DTS to clarify that this comes with board. > Someone writing a board DTS should not just put attention to the > clock-frequency, but also if they have a single fixed-clock or > maybe some kind of clock-fixed-factor setup, as I wrote. True. If such setup is probably, then my recommendation would be to put entire clock to the board. Just note, that even in proposed frequency->board DTS, it is still possible to use the clock-fixed-factor. Best regards, Krzysztof