Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1198084pxk; Fri, 4 Sep 2020 03:23:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFV0H6amC/fEPzVEaJdsnNMZ/9+2NxKcjh1uxo8Z76nXto6m/ncRlzCL3Nuyhrh1ePWHoM X-Received: by 2002:a17:907:20a3:: with SMTP id pw3mr6868937ejb.314.1599215020298; Fri, 04 Sep 2020 03:23:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599215020; cv=none; d=google.com; s=arc-20160816; b=M4ASVHoy6sjbPzKSU3Z1yjGgNWSjcmvUyoBS7TNWqGw/DEasjzPIwORURkeNVj1wjj csZAceSfwpq3OhBwPHcgT5xKSBSC0MB4nUK2koip94MVaNlGmGnKhudQfS9mYk9VpT1x LcBo0AFIZ+fSlAIXMgfF9YZed+sGQ3a44S5ZRKKlJsAc/qFxeqfUjv40O2uKev5kLISo kw/GFJRfkwL/f7bkPJ0LNunLUIBVh44lqHEK1V0uHwezeHNZpdJlGCHZOcTVoEwPTCM4 ICQ16KqsG62wgq6tSSZeZPiJlxerYuvFrzEFU0CtW0fgxNrIQpr5TRUxu0+0CAAMegHw 9few== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=UamyTubV8iI+dlrVIp5AV3RiCf2k7kYV9xfehzZnA90=; b=IxIEyGR7bSYrKCjrpYJC/ewkGHCl1h65Tb//UcurNzPTgWj0ytemo5mfup3m0obhj/ h7/hYqWp9DMj22Rj35HG3kd2qySHujM5EE5Ubfi/MbexuNiuCctOyO/NHo2XLk5mgMH+ +yMs92q7Vuu+ZcmskLEvLdxEVD5+1drtn3zGyKa5016ycMzHu7rdeUtc9j3E6q+GLaOO XrLxK1wavBRnve6Zgr+223Tnn2qcpyG5MNoSTbrZCNv0vFVAiSX54OWrqriYPpJv2CwY hY9JlBGBO+Rh4PW4eIopimMEcIzhBaR/VvglvzLwdk45Z6CTfNtIi20YhDmccaLvJ1X2 CAeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nQZGvJ0Y; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u10si3708617ejx.142.2020.09.04.03.23.16; Fri, 04 Sep 2020 03:23:40 -0700 (PDT) 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=@kernel.org header.s=default header.b=nQZGvJ0Y; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730033AbgIDKUn (ORCPT + 99 others); Fri, 4 Sep 2020 06:20:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:46020 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728658AbgIDKUk (ORCPT ); Fri, 4 Sep 2020 06:20:40 -0400 Received: from [192.168.0.50] (89-70-52-201.dynamic.chello.pl [89.70.52.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 714C0206D4; Fri, 4 Sep 2020 10:20:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599214840; bh=WU6pHG37aEbrAA9YISaAqXlwY/YxEdpsg9fKJ5lq05g=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=nQZGvJ0Y3wgQCmrbtJ2iBgHcvUWE3N9lyuRw/T//+TxtVJ5bLrU2v8G5EOZ75nvJj WR3AMuSGEkbbtvxEqdibMtOFklbJWVh+d8mz3raKQPMBtabZfCqJ5clO/HmwvwLKOq WggzMLAtY0txmVxFE1hbGQd8HMTg3tJg+i0WHd2o= Subject: Re: [PATCH v2 3/3] ARM: dts: exynos: Add assigned clock parent to CMU in Exynos5422 Odroid XU3 To: Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Rob Herring , Kukjin Kim , Marek Szyprowski References: <20200903181425.5015-1-krzk@kernel.org> <20200903181425.5015-3-krzk@kernel.org> From: Sylwester Nawrocki Message-ID: Date: Fri, 4 Sep 2020 12:20:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200903181425.5015-3-krzk@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/3/20 20:14, Krzysztof Kozlowski wrote: > Commit 78a68acf3d33 ("ARM: dts: exynos: Switch to dedicated Odroid XU3 > sound card binding") added assigned clocks under sound device node. > > However the dtschema expects "clocks" property if "assigned-clocks" are > used. Add reference to input clock, the parent used in > "assigned-clock-parents" to silence the dtschema warnings: I'm afraid it doesn't improve anything, we just add another violation of the DT binding rules as the 'sound' node doesn't represent a real HW and shouldn't have 'clocks' property. Instead we could move the assigned-clock* properties to the I2S node, as in below patch. I have tested that already on xu3. ----------------------------------8<--------------------------- From f98d2f5ac86d1ae13a77ef481fcbf073a1740f26 Mon Sep 17 00:00:00 2001 From: Sylwester Nawrocki Date: Fri, 4 Sep 2020 12:02:11 +0200 Subject: [PATCH] ARM: dts: samsung: odroid-xu3: Move assigned-clock* properties to i2s0 node The purpose of those assigned-clock-* properties is to configure clock for for the I2S device so move them to respective node. This suppresses the dtbs_check warning: arch/arm/boot/dts/exynos5422-odroidxu3.dt.yaml: sound: 'clocks' is a dependency of 'assigned-clocks' Signed-off-by: Sylwester Nawrocki --- arch/arm/boot/dts/exynos5422-odroidxu3-audio.dtsi | 60 ++++++++++------------- 1 file changed, 27 insertions(+), 33 deletions(-) diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3-audio.dtsi b/arch/arm/boot/dts/exynos5422-odroidxu3-audio.dtsi index c3c2d85..b5ec4f4 100644 --- a/arch/arm/boot/dts/exynos5422-odroidxu3-audio.dtsi +++ b/arch/arm/boot/dts/exynos5422-odroidxu3-audio.dtsi @@ -29,30 +29,6 @@ "HiFi Playback", "Mixer DAI TX", "Mixer DAI RX", "HiFi Capture"; - assigned-clocks = <&clock CLK_MOUT_EPLL>, - <&clock CLK_MOUT_MAU_EPLL>, - <&clock CLK_MOUT_USER_MAU_EPLL>, - <&clock_audss EXYNOS_MOUT_AUDSS>, - <&clock_audss EXYNOS_MOUT_I2S>, - <&clock_audss EXYNOS_DOUT_SRP>, - <&clock_audss EXYNOS_DOUT_AUD_BUS>, - <&clock_audss EXYNOS_DOUT_I2S>; - - assigned-clock-parents = <&clock CLK_FOUT_EPLL>, - <&clock CLK_MOUT_EPLL>, - <&clock CLK_MOUT_MAU_EPLL>, - <&clock CLK_MAU_EPLL>, - <&clock_audss EXYNOS_MOUT_AUDSS>; - - assigned-clock-rates = <0>, - <0>, - <0>, - <0>, - <0>, - <196608001>, - <(196608002 / 2)>, - <196608000>; - cpu { sound-dai = <&i2s0 0>, <&i2s0 1>; }; @@ -62,13 +38,6 @@ }; }; -&clock_audss { - assigned-clocks = <&clock_audss EXYNOS_DOUT_SRP>, - <&clock CLK_FOUT_EPLL>; - assigned-clock-rates = <(196608000 / 256)>, - <196608000>; -}; - &hsi2c_5 { status = "okay"; max98090: max98090@10 { @@ -84,6 +53,31 @@ &i2s0 { status = "okay"; - assigned-clocks = <&i2s0 CLK_I2S_RCLK_SRC>; - assigned-clock-parents = <&clock_audss EXYNOS_SCLK_I2S>; + assigned-clocks = <&clock CLK_MOUT_EPLL>, + <&clock CLK_MOUT_MAU_EPLL>, + <&clock CLK_MOUT_USER_MAU_EPLL>, + <&clock_audss EXYNOS_MOUT_AUDSS>, + <&clock_audss EXYNOS_MOUT_I2S>, + <&i2s0 CLK_I2S_RCLK_SRC>, + <&clock_audss EXYNOS_DOUT_SRP>, + <&clock_audss EXYNOS_DOUT_AUD_BUS>, + <&clock_audss EXYNOS_DOUT_I2S>; + + assigned-clock-parents = <&clock CLK_FOUT_EPLL>, + <&clock CLK_MOUT_EPLL>, + <&clock CLK_MOUT_MAU_EPLL>, + <&clock CLK_MAU_EPLL>, + <&clock_audss EXYNOS_MOUT_AUDSS>, + <&clock_audss EXYNOS_SCLK_I2S>; + + assigned-clock-rates = <0>, + <0>, + <0>, + <0>, + <0>, + <0>, + <196608001>, + <(196608002 / 2)>, + <196608000>; + }; -- 2.7.4 ----------------------------------8<---------------------------