Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp469406ybl; Mon, 2 Dec 2019 13:33:23 -0800 (PST) X-Google-Smtp-Source: APXvYqxdOCjcD125mJuKx2IlznlaOFAP5icZsImPurGrEI/npca9TpMJXfZcjVDK5OLRL6Xctsut X-Received: by 2002:a05:6808:98b:: with SMTP id a11mr1023494oic.62.1575322402949; Mon, 02 Dec 2019 13:33:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575322402; cv=none; d=google.com; s=arc-20160816; b=YfhTCiP6Tl7qt+PlKbKQDo6Q0S+PNBpvJ2Pmj8LX5R1VgiBI0YgfDTJmmyxVb24tLw 4kcvPyL1IhJYkyJSDrvyQ23pF9GvbfWvXkXbsodsQO6r/TABq5Ww9Z2ACRstbW7/wU2U 1284bCtbhBzjJD2HxRiHh7CT5iXRCxU2FO90mAkqsd49K82PlVrHPfijkzmwzxUxJ+tn Pf5uFMcOgLLTvjTIijgv+SownqJVTxJLCdt7b7a/xEZMCWZNvjzD64e/WyDhJAV+jT5b uMRbkiptJ6vxgyCWefCSzUtto5HQj0M5s451g7rVmvu+s+Xh9gG2MzeO/w4TzKiv6RFx tKig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=cmBUIDjXbaH6gYvi3PQRfhA7L3Y7n+FXkoteSMH40vQ=; b=Ts+SiU8W9J7zBaZnnQ4NrIwOW07nf5rAhnWxWjQggPW57Y+U0UOhubw9SC2xlkImla Cfdtw6TZWd9FuNsLR83f1T1JwvOm26o/HiAf3mCP/Sc1/WgVHacd9BQfNBxCf6e3ntSM IU/st0BH8GM7ECG2j/SD5MI45QG1Qbywl5UmiY/GUTz+biZyJAFk3VfLQW8HS7wrYHct ueA9q872yB/TPJab4uqzmXaOOtz0ZGh/aJiM2CMPGamj0znSsL13hs03WuqOeqmx0nQf EIfJIXRDw6xdRDAcp33QKND3+ThqGdo0gK2+d5i/e6R/6qJX6xX33x1sP3NGt/zoVFx5 6WoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=EBVy3LiY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r1si158353otn.150.2019.12.02.13.33.10; Mon, 02 Dec 2019 13:33:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=EBVy3LiY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725944AbfLBVcU (ORCPT + 99 others); Mon, 2 Dec 2019 16:32:20 -0500 Received: from ssl.serverraum.org ([176.9.125.105]:53293 "EHLO ssl.serverraum.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725775AbfLBVcU (ORCPT ); Mon, 2 Dec 2019 16:32:20 -0500 Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 258E122FFC; Mon, 2 Dec 2019 22:32:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1575322336; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cmBUIDjXbaH6gYvi3PQRfhA7L3Y7n+FXkoteSMH40vQ=; b=EBVy3LiYphh91ps24yCY7oA7J20YqXWU1rBnQus3fRDfSSmaeK7OW4zS88+hyFZAfc4ZfE 0CGGhSCAfRddkevBMTrCvFngCXnRiq9O+xL0cdACFCdG4yoJzSfSIUhJJcPMoiy9Su5VVY mDCvcUENN41MKIQTvJ53Fg4n87BWHAE= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 02 Dec 2019 22:32:16 +0100 From: Michael Walle To: Rob Herring Cc: Wen He , Michael Turquette , Stephen Boyd , Mark Rutland , Li Yang , devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [v10 1/2] dt/bindings: clk: Add YAML schemas for LS1028A Display Clock bindings In-Reply-To: <20191202184758.GA8408@bogus> References: <20191127101525.44516-1-wen.he_1@nxp.com> <20191202184758.GA8408@bogus> Message-ID: X-Sender: michael@walle.cc User-Agent: Roundcube Webmail/1.3.8 X-Spamd-Bar: / X-Spam-Status: No, score=-0.10 X-Rspamd-Server: web X-Spam-Score: -0.10 X-Rspamd-Queue-Id: 258E122FFC X-Spamd-Result: default: False [-0.10 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DKIM_SIGNED(0.00)[]; RCPT_COUNT_SEVEN(0.00)[9]; NEURAL_HAM(-0.00)[-0.619]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 2019-12-02 19:47, schrieb Rob Herring: > On Wed, Nov 27, 2019 at 06:15:24PM +0800, Wen He wrote: >> LS1028A has a clock domain PXLCLK0 used for provide pixel clocks to >> Display >> output interface. Add a YAML schema for this. >> >> Signed-off-by: Wen He >> Signed-off-by: Michael Walle >> --- >> change in v10: >> - Add optional feild 'vco-frequency'. >> >> .../devicetree/bindings/clock/fsl,plldig.yaml | 54 >> +++++++++++++++++++ >> 1 file changed, 54 insertions(+) >> create mode 100644 >> Documentation/devicetree/bindings/clock/fsl,plldig.yaml >> >> diff --git a/Documentation/devicetree/bindings/clock/fsl,plldig.yaml >> b/Documentation/devicetree/bindings/clock/fsl,plldig.yaml >> new file mode 100644 >> index 000000000000..ee5b5c61a471 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/clock/fsl,plldig.yaml >> @@ -0,0 +1,54 @@ >> +# SPDX-License-Identifier: GPL-2.0 >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/bindings/clock/fsl,plldig.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: NXP QorIQ Layerscape LS1028A Display PIXEL Clock Binding >> + >> +maintainers: >> + - Wen He >> + >> +description: | >> + NXP LS1028A has a clock domain PXLCLK0 used for the Display output >> + interface in the display core, as implemented in TSMC CLN28HPM PLL. >> + which generate and offers pixel clocks to Display. >> + >> +properties: >> + compatible: >> + const: fsl,ls1028a-plldig >> + >> + reg: >> + maxItems: 1 >> + >> + '#clock-cells': >> + const: 0 >> + >> + vco-frequency: > > Needs vendor prefix and unit suffix: > > fsl,vco-hz > > Or you could perhaps just use 'clock-frequency'. Ok, fsl,vco-hz sounds good. clock-frequency sounds like it is the output. -michael >> + $ref: '/schemas/types.yaml#/definitions/uint32' >> + description: Optional for VCO frequency of the PLL in Hertz. >> + The VCO frequency of this PLL cannot be changed during >> runtime >> + only at startup. Therefore, the output frequencies are very >> + limited and might not even closely match the requested >> frequency. >> + To work around this restriction the user may specify its own >> + desired VCO frequency for the PLL. The frequency has to be in >> the >> + range of 650000000 to 1300000000. >> + If not set, the default frequency is 1188000000. > > A bunch of constraints you've listed here that should be schema rather > than freeform text: > > minimum: 650000000 > maximum: 1300000000 > default: 1188000000 > >> + >> +required: >> + - compatible >> + - reg >> + - clocks >> + - '#clock-cells' >> + >> +examples: >> + # Display PIXEL Clock node: >> + - | >> + dpclk: clock-display@f1f0000 { >> + compatible = "fsl,ls1028a-plldig"; >> + reg = <0x0 0xf1f0000 0x0 0xffff>; >> + #clock-cells = <0>; >> + clocks = <&osc_27m>; >> + }; >> + >> +... >> -- >> 2.17.1 >>