Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3508687rwb; Tue, 16 Aug 2022 04:28:36 -0700 (PDT) X-Google-Smtp-Source: AA6agR4CivKuD7L4+IwiOb3itpmvXcVk/aPF2fhOcg594tMwyLYcpw4x1xYjP76Z0aPJf5ybOnhP X-Received: by 2002:a17:907:1c01:b0:6f4:2692:e23 with SMTP id nc1-20020a1709071c0100b006f426920e23mr12848462ejc.243.1660649316126; Tue, 16 Aug 2022 04:28:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660649316; cv=none; d=google.com; s=arc-20160816; b=PsCJXLr153t+h0EjG4mUbn3ih+88MG0dN/rkoT8+JOIgtIwIRsytOriyN7/psM2evQ OldXbOLmP3IHvCvvCa6VB/JWwEKODs+lf3TFDIaCOa705lxfWJKqS/yXlz7HDA2RTAtW GidmAVQu05HEHlp6Lv4MEuz1jyIPONM8l0H695/2f9JMam9bQyqKbpDYqQz2iybWcLiX H8QlYhMWCQ9TYzWKYxKqpStkeTY7tVV0W3pVm8/TG+Cr8Z4Gz/PJAfMReAp7hAygUcPV qRsJ0QXU7KT5hJpPpuLqWYximbz4AWgUoCYrA59f601KLNjIKgA1Jd/fTi34rxXotlGu hDzQ== 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=Y58LopX3Xau62EqFhAJuU29XSrAjPOJKcpX9ia/1x/U=; b=EsPkXIw9cIkp8OU3a5a/ZIotDqtacrgiYm9dAyFabIiDgebd3keF1WntgZNKpzfqnV 9Z2IeRjMP/3oczC3p3Zap76khFvUPdNqYnp+S2H1AoLPybLC1Fr+bN/eKAlZC+KhJFX5 5G6hrmCt026scDSltrAmv11JuLwNnA0GiLK1V5qeCURYu4ZntoaTb0hlFDpTGD+7HY99 BV0oPesAxQ+hgrmh+EBTQGH8QG2SteJbdo8VPPmAqnxYA8kpjhxPyMTeQgJa571isE2g k0oASXN0jclhLl9cz2kW2pYZETM/lhaB3QUu/qShTDi3Aw+GrQ4kw0JN6eUHuu93jPLa 9SOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vtoZdSOh; 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 qk36-20020a1709077fa400b0073143915e4fsi10436324ejc.896.2022.08.16.04.28.09; Tue, 16 Aug 2022 04:28:36 -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=vtoZdSOh; 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 S234420AbiHPLSL (ORCPT + 99 others); Tue, 16 Aug 2022 07:18:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234466AbiHPLRp (ORCPT ); Tue, 16 Aug 2022 07:17:45 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D446D58DD4 for ; Tue, 16 Aug 2022 02:42:42 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id d14so14143402lfl.13 for ; Tue, 16 Aug 2022 02:42:42 -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; bh=Y58LopX3Xau62EqFhAJuU29XSrAjPOJKcpX9ia/1x/U=; b=vtoZdSOhjarg/GSUa+9qG6BMrKkJOe83PvRmhRhyuCerPbGiIrm8pgH0PekReyxXJ6 br5da1shUHmmP98ueTSt3G69sK9FhXyVW3WshnsnkN5Zd9pD4/lLqoMERKRF+w7swXkM AeIbHzMZsV28B9ebYLbsaCZ0jduwrq/sNPO2NVsFmvFtUPUZJWcrl8zjdGivtVPbCski 3t3C/SRG3X5doYfn+nTF8cJUl3g/YvK7CVLwOZJws/ZpTvhaiUyGafpkHX0KACEFk68A QHr4Aga2v7Ah2M9FdDI0/vgxJtgzrZnGZ7q/NfLu5futbWVzkQ+nzoQuKEwZv1YoRTFV zsjg== 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; bh=Y58LopX3Xau62EqFhAJuU29XSrAjPOJKcpX9ia/1x/U=; b=k+wS7pHajNE85Lxzlu53QEpzIkX58DZcYinaXVxRA0SE7hDIYMDNqmPuJvcu5VZZ+6 J4JLl/TVl9wMwxgC8uNMJPR9IDgJozOLMMfuUCE705LD9DfMtEhXz23kbuDgF7rXv/vC 3+/tW08vkKRL/Hdb3SkOqsBRybxVwuhwYaSlICHPGlAXpZjV9w8zPbU6FVeYZCk/Wq85 8H5SqDJxNMfVEtoZLb+2XQdnvXC3CoWuF0yYJdv78ep04B701O+f4Hdt4JdzWhdmofR6 KvHqI/Ts7tij71I2XeWUKTNPv+6EDq+JSDpEE+IqBMIezpC8bffGWLA3X/P0BjxxrhfD YFtg== X-Gm-Message-State: ACgBeo0udbPbL6US1KiDuv/tdDxZvGklnnR+09Ym11k6NIkkRjcgZ0Ze mpOCiuhUIhjEBL5ccuQ3lUe7sQ== X-Received: by 2002:a05:6512:1052:b0:491:f371:ad44 with SMTP id c18-20020a056512105200b00491f371ad44mr4099234lfb.416.1660642961195; Tue, 16 Aug 2022 02:42:41 -0700 (PDT) Received: from ?IPV6:2001:14bb:ae:539c:1782:dd68:b0c1:c1a4? (d15l54g8c71znbtrbzt-4.rev.dnainternet.fi. [2001:14bb:ae:539c:1782:dd68:b0c1:c1a4]) by smtp.gmail.com with ESMTPSA id k12-20020ac24f0c000000b0048b03b4b018sm1325108lfr.283.2022.08.16.02.42.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 16 Aug 2022 02:42:40 -0700 (PDT) Message-ID: Date: Tue, 16 Aug 2022 12:42:39 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH 06/12] riscv: dts: allwinner: Add the D1 SoC base devicetree Content-Language: en-US To: =?UTF-8?Q?Jernej_=c5=a0krabec?= , Samuel Holland , Chen-Yu Tsai , linux-sunxi@lists.linux.dev, Palmer Dabbelt , Paul Walmsley , Albert Ou , linux-riscv@lists.infradead.org, =?UTF-8?Q?Heiko_St=c3=bcbner?= Cc: Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski References: <20220815050815.22340-1-samuel@sholland.org> <5593349.DvuYhMxLoT@jernej-laptop> <3881930.ZaRXLXkqSa@diego> <2249129.ElGaqSPkdT@jernej-laptop> From: Krzysztof Kozlowski In-Reply-To: <2249129.ElGaqSPkdT@jernej-laptop> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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,T_SCC_BODY_TEXT_LINE 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 16/08/2022 12:25, Jernej Škrabec wrote: > Dne torek, 16. avgust 2022 ob 11:12:05 CEST je Heiko Stübner napisal(a): >> Am Dienstag, 16. August 2022, 09:49:58 CEST schrieb Jernej Škrabec: >>> Dne torek, 16. avgust 2022 ob 09:41:45 CEST je Krzysztof Kozlowski > napisal(a): >>>> On 15/08/2022 08:08, Samuel Holland wrote: >>>>> + >>>>> + de: display-engine { >>>>> + compatible = "allwinner,sun20i-d1-display-engine"; >>>>> + allwinner,pipelines = <&mixer0>, <&mixer1>; >>>>> + status = "disabled"; >>>>> + }; >>>>> + >>>>> + osc24M: osc24M-clk { >>>> >>>> lowercase >>>> >>>>> + compatible = "fixed-clock"; >>>>> + clock-frequency = <24000000>; >>>> >>>> This is a property of the board, not SoC. >>> >>> SoC needs 24 MHz oscillator for correct operation, so each and every board >>> has it. Having it here simplifies board DT files. >> >> I guess the oscillator is a separate component on each board, right? > > Correct. > >> And DT obvious is meant to describe the hardware - independently from >> implementation-specific choices. > > There is no choice in this case. 24 MHz crystal has to be present. > > FWIW, including crystal node in SoC specific DTSI is already common pattern in > Allwinner ARM SoC DTSI files. > >> >> Starting to discuss which exceptions to allow then might lead to even more >> exceptions. >> >> Also having to look for a board-component in the soc dtsi also is surprising >> if one gets to the party later on :-) . > > As I said, if one is accustomed to Allwinner ARM DT development, it would be > more surprising to include 24 MHz crystal node in each and every board DT. It's same everywhere. Allwinner, Exynos, iMX, Qualcomm. Everywhere this is a part of the board, so even if oscillator frequency is fixed (as in 99% of cases although some SoCs I think might just allow to implement one of few), still this is a property of the board. Because: 1. DTSI describes the SoC part, not board. 2. So the DTS developer is a bit more conscious about his design. Keeping things in SoC DTSI just because it simplifies DTS is not correct IMHO. So again - like in several other cases - minimum the frequency is property of the board, not the SoC DTSI. Everywhere. Allwinner is not special to receive exceptions. Best regards, Krzysztof