Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp225775pxb; Thu, 12 Aug 2021 15:02:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy34Y8M7I9O/LZtkAQX1auFqWdtIZzjXwyRRfuebGPOOm/wJF1cZpIh5Uh1IM0sBXiesGre X-Received: by 2002:a17:907:169f:: with SMTP id hc31mr5679236ejc.328.1628805775040; Thu, 12 Aug 2021 15:02:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628805775; cv=none; d=google.com; s=arc-20160816; b=NrGDRqWEiHIeHvAHCKV2tLlA5DHy+lkYfPLMxRnjzgb5vH5H5QONhLwOnzcuIT1I0w cBshcTHUfHbEYCCwHrpiwvjZwMLRJrjzwA9HtRRYgCk8qoTZ6QZ9uzSX+XKLR2G3Knt3 DCuSWc66BShLfZpU6aorQ4vEiSPMuP1bQbgPqf+OFIjEx9/MqXsq0rPNvjqFOEm0TF+x ksDfYc195oy0ndXthaYyL2iV9umscxwfR7um1pod4jTf1xlDU9iCImXzMHcz7qQCEVif CapVPqiiJxL09rKIzSRtXZyy+PbIuAsW99mANfotP/Q4qz6+nAutU0kk3eSdbydCvpdt O1FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=3Jl9IkUgIFT5Jl9kS81Wp1a2C3s9Cgbuy4owL0w63TI=; b=eGy9O2mhjbXqfrlogiweiN3Q48fHD+J/7lBZO/HgVYNJfIHqsNwqyUSpYk3DPHasN3 6UHPF9o13McCZA/N2S01QJT17VfLU+Jk4jULW2aPjob31TqWsz6o5QNjrCxdQ9+K1CHW 4cvvkXwj0H1DyNWo0OLcaROvfh0aqfP/KIulfMy86JfIeGSRvnW3gymsWYWODKTNtZDp dUsA83x69iSRoQGHY2ZDlHlG05ZlyDwXRB9BcCNZYfLQVm09z7sHNnxQwNxJSEg1NMe8 VUXe8o7wSQpMRWrX468w57HvetEc5VdTDuJA5WCCbipXqw7KKrB85PSL2y9JgMiRz4Io 50tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=M+XvW7qn; 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 qp12si3359788ejb.22.2021.08.12.15.02.31; Thu, 12 Aug 2021 15:02:55 -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=k20201202 header.b=M+XvW7qn; 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 S233542AbhHLTdr (ORCPT + 99 others); Thu, 12 Aug 2021 15:33:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:40600 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbhHLTdq (ORCPT ); Thu, 12 Aug 2021 15:33:46 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7A1606103E; Thu, 12 Aug 2021 19:33:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628796800; bh=YI8Ka6ZHWlucnyLQIu6sspluqaLo4KckF0oA5V5Hkaw=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=M+XvW7qnRmgxRCv6QtS5ZAp99QDaaS2Lgz4GOc7j47iAdJRLYJK9JzsuMCaxPGAZa Lcu6OqN08Jq65mi8wtjrWUA9YW1fWIivJ80KL63MRNlNB0+8shC1zr1Ery57DKoHtT bfKeutBPXt07b7Qacdzq7dmhnu68CLbQgR2qd58GKOY9qIn4itwbUfRYhlxIErh6Bj F+QL28E62rdvsHipNQ4h1xQFbwJZEmY1M+4qZYxcAr1KffYlV3v7Ic6o1MRZCj4BND +LdX1SlRM2CQvOVnGiXTqg4N462M9S14pO7NqNGuJ+FYTt2b0OVN0OSosLBtsDkDMd 1tZrg5ew99h+w== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20210806082818.k3awj72j2yb2bbhe@pali> References: <20210624224909.6350-1-pali@kernel.org> <20210802144529.1520-1-pali@kernel.org> <20210802144529.1520-4-pali@kernel.org> <162820981926.19113.12529765873453602213@swboyd.mtv.corp.google.com> <20210806082818.k3awj72j2yb2bbhe@pali> Subject: Re: [PATCH v4 3/6] dt-bindings: mvebu-uart: document DT bindings for marvell,armada-3700-uart-clock From: Stephen Boyd Cc: Greg Kroah-Hartman , Michael Turquette , Rob Herring , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Vladimir Vid , kabel@kernel.org, linux-clk@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org To: Date: Thu, 12 Aug 2021 12:33:19 -0700 Message-ID: <162879679919.19113.10297499909721773583@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Pali (2021-08-06 01:28:18) > On Thursday 05 August 2021 17:30:19 Stephen Boyd wrote: > > > diff --git a/Documentation/devicetree/bindings/clock/armada3700-uart-= clock.yaml b/Documentation/devicetree/bindings/clock/armada3700-uart-clock.= yaml > > > new file mode 100644 > > > index 000000000000..5ef04f3affda > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/clock/armada3700-uart-clock.y= aml > > > @@ -0,0 +1,49 @@ > > > +# SPDX-License-Identifier: GPL-2.0 > > > +%YAML 1.2 > > > +--- > > > +$id: http://devicetree.org/schemas/clock/marvell,armada-3700-uart-cl= ock# > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > +title: Marvell Armada 3720 UART clocks > >=20 > > Please add a newline here > >=20 > > > +properties: > > > + compatible: > > > + const: marvell,armada-3700-uart-clock > >=20 > > Please add a newline here > >=20 > > > + reg: > > > + items: > > > + - description: UART Clock Control Register > > > + - description: UART 2 Baud Rate Divisor Register > >=20 > > Please add a newline here > >=20 > > > + clocks: > > > + description: | > > > + List of parent clocks suitable for UART from following set: > > > + "TBG-A-P", "TBG-B-P", "TBG-A-S", "TBG-B-S", "xtal" > > > + UART clock can use one from this set and when more are provided > > > + then kernel would choose and configure the most suitable one. > > > + It is suggest to specify at least one TBG clock to achieve > > > + baudrates above 230400 and also to specify clock which bootloa= der > > > + used for UART (most probably xtal) for smooth boot log on UART. > >=20 > > Please use items and const like clock-names for the clocks property. >=20 > It is already there, see below. >=20 > > The description makes me feel like the DT is configuring the choices > > available. >=20 > See description. It is kernel (driver) who is choosing one clock from > the set and then configure it a UART clock. Can that be done with assigned-clock-parents? >=20 > > Ideally, the clocks and clock-names properties are fixed in > > length and never change unless the compatible changes. > >=20 > > Please add a newline here > >=20 > > > + clock-names: > > > + items: > > > + - const: TBG-A-P > > > + - const: TBG-B-P > > > + - const: TBG-A-S > > > + - const: TBG-B-S > > > + - const: xtal > > > + minItems: 1 > > > + maxItems: 5 > >=20 > > Please add a newline here > >=20 > > > + '#clock-cells': > > > + const: 1 > >=20 > > Please add a newline here > >=20 > > > +required: > > > + - compatible > > > + - reg > > > + - clocks > > > + - clock-names > > > + - '#clock-cells' > >=20 > > Please add a newline here > >=20 > > > +additionalProperties: false > >=20 > > Please add a newline here > >=20 > > > +examples: > > > + - | > > > + uartclk: uartclk@12000 { > > > + compatible =3D "marvell,armada-3700-uart-clock"; > > > + reg =3D <0x12010 0x4>, <0x12210 0x4>; The reg property looks like this is poking a mux that is part of a larger device. What device is this actually part of? The uart hardware? > > > + clocks =3D <&tbg 0>, <&tbg 1>, <&tbg 2>, <&tbg 3>, <&xtalclk>; > > > + clock-names =3D "TBG-A-P", "TBG-B-P", "TBG-A-S", "TBG-B-S", "x= tal";