Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp978951pxf; Thu, 8 Apr 2021 18:35:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJnw3HyJnjn0N9eABswKBgyc5Oe5zM2a9kU0hgW7OfEQU/UKGtEEijVd2o5ehwZKA9CMqw X-Received: by 2002:a17:902:8506:b029:e9:30f:6574 with SMTP id bj6-20020a1709028506b02900e9030f6574mr10643287plb.72.1617932114599; Thu, 08 Apr 2021 18:35:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617932114; cv=none; d=google.com; s=arc-20160816; b=GQttThn6VIfZSzNEBP/fdnOVdHHuwmkUhU3GRzoX6CyndpzPky8eRYuPdR3wqTkFDj ctrOrpQsuluOVafIW0gQuec0waH8P9oz5mU4hf7nEQUrHR0jOKZpiyEvVcu2l5ohV3Y+ NlLhDJajEkbq/VeJxPt+ghxjkXGH8e8Ali7medQYL4fu5nJpAMP+UGDRScGy1gfwMe0z Y+RGT8hJkBtnmgctJ5foVqvauTVeRJKlCd7N/jZSInqQf2sMjA+GXYQNb01fCnb3cBF8 iEqGA2ddHZtNIV5OmmK7/J4LlI0Fygs9euHr3LRpOx+KUMzQfe+z7UJZj4gXPPsMjRlF EaXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:to:from:subject:cc :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=0x31F7OmUBFv2aYY8WsZQcT9hzNkOdkXYNg1QmgSGvE=; b=c2f1N/hRmsHcwdSPZIXxOnlE599d3LVnrxcbeQp/fd4WBHM/tpR8QEMuTl654IMAOS Wv15n+jJCzCfAwtwq9pg5yfbSkrQJ6U+A1Uekba83bm/210BxOYLZPuU/JTUKGQuHKrF ycyoYqRioJxI8SwO9WPRWw0lWE3RP1zaJ63N1gd+pj/pihHTUxFaNB2V8kXHJn0YUs2B HiJmBKnD4KYaSEpbvWk7AkdsEfCkGcceGr0jW/3uJLTAIR6wkXHjEkSGic9PRXHl3zFX Wqc1riqlrRtOQ/jq/w5mCR7WKu1iotKNv84ff5LS2IeVfOVvCUhoaziCJ1cKLSFyMtkS 0LjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=i4eL+Q+V; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 19si1104187pgx.504.2021.04.08.18.35.02; Thu, 08 Apr 2021 18:35:14 -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=@gmail.com header.s=20161025 header.b=i4eL+Q+V; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233099AbhDIBda (ORCPT + 99 others); Thu, 8 Apr 2021 21:33:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232426AbhDIBda (ORCPT ); Thu, 8 Apr 2021 21:33:30 -0400 Received: from mail-qv1-xf2e.google.com (mail-qv1-xf2e.google.com [IPv6:2607:f8b0:4864:20::f2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FDBCC061760; Thu, 8 Apr 2021 18:33:18 -0700 (PDT) Received: by mail-qv1-xf2e.google.com with SMTP id bs7so1421545qvb.12; Thu, 08 Apr 2021 18:33:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:content-transfer-encoding:date:message-id:cc:subject :from:to:references:in-reply-to; bh=0x31F7OmUBFv2aYY8WsZQcT9hzNkOdkXYNg1QmgSGvE=; b=i4eL+Q+VFdbU3iQxDvDLjInsceCaAS6uM//NCNUrnwK5cAUkD08FcdgAl6DfzeesYE LggS85W47OcBOeyDt5k/D9iABY7z+bvEI0UUIpfYSIqWHGJZcDgHzTHwAuGY0gDJoedR /DEBoVC72AFjSOfp4/582Ocuz8nW5PmPGL1jnfFItADwzfDGWetlveU6vB1BrikX/ID9 5ynrshzIpyGlx1fmsKESDN6uvLdDU8uAjr8sQl1onwuVMWFif6NYlSnhKmCe+H5Z24be YvehqU8D5QO9Ka5wfhvkqNic9sbMWNyTP2rrd5aQv/EsLBuIx67aqaTH0v0IjrK8pU+t iwRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding:date :message-id:cc:subject:from:to:references:in-reply-to; bh=0x31F7OmUBFv2aYY8WsZQcT9hzNkOdkXYNg1QmgSGvE=; b=RydjdiFoTa2KGkZi/79CiPbxl+tMZ6YCuczYtzGJDq6g3VhOMgw7iVb7809R/m0bkV 1sGuHBG5JcNPDhiWs6eGzFu+vcTERnfMFEp41fSW79sekH88pfM+NN4WOeLS+Pdykbxt LizIlA0oNCS1nbh9A4HdwY4+nNI5u6Fi5n4o4Bu9v+Z9Rz0ziZQwGfsNDV+Z1vgYlh9V r6Xt0a3F+MKRWghkwZHdDLwABGhZ32er25znZ/JJ8i324GjJCcaPrvuF/HhTaE3nr1+p yZC5NyOeTvR3hLbm193u6lNr6wTGdVz9Q7yPMu3PPel6R0DrWAjoOGSC2SINASRtC9eg 8gtQ== X-Gm-Message-State: AOAM530shnqGTQ1i5+4KRogK1cYjwHftfXoB8qjdbGQU0pYNfm8ujosV /lwzYHg4e94hSJTlcE34/hmQIOZgn+rf2ZLZ X-Received: by 2002:a05:6214:c6c:: with SMTP id t12mr11537790qvj.17.1617931997237; Thu, 08 Apr 2021 18:33:17 -0700 (PDT) Received: from localhost (198-48-202-89.cpe.pppoe.ca. [198.48.202.89]) by smtp.gmail.com with ESMTPSA id c1sm906306qth.3.2021.04.08.18.33.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Apr 2021 18:33:16 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 08 Apr 2021 21:33:15 -0400 Message-Id: Cc: , , , , Subject: Re: [PATCH v4 3/3] dt-bindings: clock: add ti,lmk04832 bindings From: "Liam Beguin" To: "Rob Herring" References: <20210407005330.2890430-1-liambeguin@gmail.com> <20210407005330.2890430-4-liambeguin@gmail.com> <20210408201333.GA1882021@robh.at.kernel.org> In-Reply-To: <20210408201333.GA1882021@robh.at.kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu Apr 8, 2021 at 4:13 PM EDT, Rob Herring wrote: > On Tue, Apr 06, 2021 at 08:53:30PM -0400, Liam Beguin wrote: > > From: Liam Beguin > >=20 > > Document devicetree bindings for Texas Instruments' LMK04832. > > The LMK04208 is a high performance clock conditioner with superior cloc= k > > jitter cleaning, generation, and distribution with JEDEC JESD204B > > support. > >=20 > > Signed-off-by: Liam Beguin > > --- > > .../bindings/clock/ti,lmk04832.yaml | 209 ++++++++++++++++++ > > 1 file changed, 209 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/clock/ti,lmk04832= .yaml > >=20 > > diff --git a/Documentation/devicetree/bindings/clock/ti,lmk04832.yaml b= /Documentation/devicetree/bindings/clock/ti,lmk04832.yaml > > new file mode 100644 > > index 000000000000..a9f8b9b720fc > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/clock/ti,lmk04832.yaml > > @@ -0,0 +1,209 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/clock/ti,lmk04832.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Clock bindings for the Texas Instruments LMK04832 > > + > > +maintainers: > > + - Liam Beguin > > + > > +description: | > > + Devicetree binding for the LMK04832, a clock conditioner with JEDEC = JESD204B > > + support. The LMK04832 is pin compatible with the LMK0482x family. > > + > > + Link to datasheet, https://www.ti.com/lit/ds/symlink/lmk04832.pdf > > + > > +properties: > > + compatible: > > + enum: > > + - ti,lmk04832 > > + > > + reg: > > + maxItems: 1 > > + > > + '#address-cells': > > + const: 1 > > + > > + '#size-cells': > > + const: 0 > > + > > + '#clock-cells': > > + const: 1 > > + > > + spi-max-frequency: > > + $ref: /schemas/types.yaml#/definitions/uint32 > > + description: > > + Maximum SPI clocking speed of the device in Hz. > > Already has a type and description, just need: > > spi-max-frequency: true > > (Or a range of values if you know the maximum). > > > + > > + clocks: > > + items: > > + - description: PLL2 reference clock. > > + > > + clock-names: > > + items: > > + - const: oscin > > + > > + reset-gpios: > > + maxItems: 1 > > + > > + ti,spi-4wire-rdbk: > > + description: | > > + Select SPI 4wire readback pin configuration. > > + Available readback pins are, > > + CLKin_SEL0 0 > > + CLKin_SEL1 1 > > + RESET 2 > > + $ref: /schemas/types.yaml#/definitions/uint32 > > + enum: [0, 1, 2] > > + default: 1 > > + > > + ti,vco-hz: > > + description: Optional to set VCO frequency of the PLL in Hertz. > > + > > + ti,sysref-ddly: > > + description: SYSREF digital delay value. > > + $ref: /schemas/types.yaml#/definitions/uint32 > > + minimum: 8 > > + maximum: 8191 > > + default: 8 > > + > > + ti,sysref-mux: > > + description: | > > + SYSREF Mux configuration. > > + Available options are, > > + Normal SYNC 0 > > + Re-clocked 1 > > + SYSREF Pulser 2 > > + SYSREF Continuous 3 > > + $ref: /schemas/types.yaml#/definitions/uint32 > > + enum: [0, 1, 2, 3] > > + default: 3 > > + > > + ti,sync-mode: > > + description: SYNC pin configuration. > > + $ref: /schemas/types.yaml#/definitions/uint32 > > + enum: [0, 1, 2] > > + default: 1 > > + > > + ti,sysref-pulse-count: > > + description: > > + Number of SYSREF pulses to send when SYSREF is not in continuous= mode. > > + $ref: /schemas/types.yaml#/definitions/uint32 > > + enum: [1, 2, 4, 8] > > + default: 4 > > + > > +patternProperties: > > + "@[0-9a-d]+$": > > + type: object > > + description: > > + Child nodes used to configure output clocks. > > + > > + properties: > > + reg: > > + description: > > + clock output identifier. > > + minimum: 0 > > + maximum: 13 > > + > > + ti,clkout-fmt: > > + description: > > + Clock output format. > > + Available options are, > > + Powerdown 0x00 > > + LVDS 0x01 > > + HSDS 6 mA 0x02 > > + HSDS 8 mA 0x03 > > + LVPECL 1600 mV 0x04 > > + LVPECL 2000 mV 0x05 > > + LCPECL 0x06 > > + CML 16 mA 0x07 > > + CML 24 mA 0x08 > > + CML 32 mA 0x09 > > + CMOS (Off/Inverted) 0x0a > > + CMOS (Normal/Off) 0x0b > > + CMOS (Inverted/Inverted) 0x0c > > + CMOS (Inverted/Normal) 0x0d > > + CMOS (Normal/Inverted) 0x0e > > + CMOS (Normal/Normal) 0x0f > > + $ref: /schemas/types.yaml#/definitions/uint32 > > + minimum: 0 > > + maximum: 15 > > + > > + ti,clkout-sysref: > > + description: > > + Select SYSREF clock path for output clock. > > + type: boolean > > + > > + required: > > + - reg > > additionalProperties: false > Apologies for double posting. I just realized this is for the child node. Will fix. Thanks, Liam > > + > > +required: > > + - compatible > > + - reg > > + - '#clock-cells' > > + - clocks > > + - clock-names > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + clocks { > > + lmk04832_oscin: oscin { > > + compatible =3D "fixed-clock"; > > + > > + #clock-cells =3D <0>; > > + clock-frequency =3D <122880000>; > > + clock-output-names =3D "lmk04832-oscin"; > > + }; > > + }; > > + > > + spi0 { > > + #address-cells =3D <1>; > > + #size-cells =3D <0>; > > + > > + lmk04832: clock-controller@0 { > > + #address-cells =3D <1>; > > + #size-cells =3D <0>; > > + > > + reg =3D <0>; > > + > > + compatible =3D "ti,lmk04832"; > > + spi-max-frequency =3D <781250>; > > + > > + reset-gpios =3D <&gpio_lmk 0 0 0>; > > + > > + #clock-cells =3D <1>; > > + clocks =3D <&lmk04832_oscin>; > > + clock-names =3D "oscin"; > > + > > + ti,spi-4wire-rdbk =3D <0>; > > + ti,vco-hz =3D <2457600000>; > > + > > + assigned-clocks =3D > > + <&lmk04832 0>, <&lmk04832 1>, > > + <&lmk04832 2>, <&lmk04832 3>, > > + <&lmk04832 4>, > > + <&lmk04832 6>, <&lmk04832 7>, > > + <&lmk04832 10>, <&lmk04832 11>; > > + assigned-clock-rates =3D > > + <122880000>, <384000>, > > + <122880000>, <384000>, > > + <122880000>, > > + <153600000>, <384000>, > > + <614400000>, <384000>; > > + > > + clkout0@0 { > > + reg =3D <0>; > > + ti,clkout-fmt =3D <0x01>; // LVDS > > + }; > > + > > + clkout1@1 { > > + reg =3D <1>; > > + ti,clkout-fmt =3D <0x01>; // LVDS > > + ti,clkout-sysref; > > + }; > > + }; > > + }; > > --=20 > > 2.30.1.489.g328c10930387 > >=20