Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp443622rwj; Fri, 23 Dec 2022 03:46:19 -0800 (PST) X-Google-Smtp-Source: AMrXdXvjM3J0U7Q4rkvwLgAFJHdnuJHdjv0KXKbFUQ9BIXm/KVa3Jwnt4m3X7gVJDEONzHcCTBRW X-Received: by 2002:a17:90a:c68d:b0:219:184f:c736 with SMTP id n13-20020a17090ac68d00b00219184fc736mr11014138pjt.48.1671795979340; Fri, 23 Dec 2022 03:46:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671795979; cv=none; d=google.com; s=arc-20160816; b=chNqjda0IiX6VdJfwX30pQdjiUTYqUsGM1wh5ykOyEcsK2hWyuQvGtnxmWP6l2pEuC yO0taLp+G8wD51oFJXdhGtXuRJpM93Ok4P9HWOvn9H1O5Ah7b3uYgyCfk53apuWogNRg f0L5/t9mcxUsP6QA8Zrt+4YIfTCEVb+rfMRq6KYU2Ul31UzScO8TqcEAal/aRb2mKqZi F9DrxsFN8EHiMH2tcY/GqGQGDq6xBmFSz6jdds+Uqe2uTBFPQA+DbVerl7Ll0abSs79F cs24Ue9NJOJWdJtW54XRVRIARJVHPZ/SLE7Spg2H5NDZ3h0dTWT/u/RR1KhFMKP3A2XM /mqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=BN78cS6rE9Yp4B3TRTbxmbnWU/S5h0cAk1EFG+5tItQ=; b=DdMkAMw9sflU+iPpPWdrNN6W9UfG069zd91NArqips9UzjmKYF3TdI8o6fLpuCwsMI Zj0rMsnggy4IbEHRSSKKOMOqvwa+GQYfxhP+CJjfaxOkAT2TGrmLefpLykhk9aI9TPy/ +ag7UNmWqzPi/tdVBrrG2g0/ex+58N636M2iwQq5BIJqjFbqCCH3EdUmO4e70zQfoyjd +epd0ulBvM7sq+ZItbfuH1t1EMwi4512EKkkXEYez5nAAnQmb2TT70JMHhTYeUZm+Ein +XAsVG5nAGbF3okFAVZWyCMphY77urJThxNgxiuZu7DwCJHKQMfX3Wzy6RrUfK09XQk1 2EsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uUe6o9Cm; 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 lb3-20020a17090b4a4300b0021f75c16805si3545332pjb.2.2022.12.23.03.46.10; Fri, 23 Dec 2022 03:46:19 -0800 (PST) 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=uUe6o9Cm; 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 S229959AbiLWLSs (ORCPT + 65 others); Fri, 23 Dec 2022 06:18:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229735AbiLWLSm (ORCPT ); Fri, 23 Dec 2022 06:18:42 -0500 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 802B212AE0 for ; Fri, 23 Dec 2022 03:18:41 -0800 (PST) Received: by mail-lj1-x235.google.com with SMTP id y4so4675621ljc.9 for ; Fri, 23 Dec 2022 03:18:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=BN78cS6rE9Yp4B3TRTbxmbnWU/S5h0cAk1EFG+5tItQ=; b=uUe6o9Cmm9zvEzHBBsQSg3P4exeeOEsHNZBzcvpO+Nf+oFHMrAJE1KJkbjKlBGj6Vm Bb2rK2s4t81FW6t2SWizTZNrH4BZVxG0Zc4U4PVO5ZMaHf7AfovVTAovpMQ/+t0L7/qM /GvpVlACV3K6MltxN+RNcoAI398QVpDcBqylhrJINlYM23f6Wpf4GkEVYoNel9ZXvD3W lnBuYhrklSFfC9h0X+5gZGwd+d28CNa4GBofaNqQXyhSZttpBVr58VnFYB7jFPRZIwpy Cf/XkF5iBvRCK8jdllUr0AYvC58UrmoAT5Lxfl2GUE0JVDLc1rs+b8cKMoOoXBsjEyqb dVPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=BN78cS6rE9Yp4B3TRTbxmbnWU/S5h0cAk1EFG+5tItQ=; b=V4o9ryWS/OExBctIgaNlgnS/63g/6FLx2Mkc4TuF5HD+v3cc1d4SsQTTsVBraa6LFT DPw5v7pRFrS5fJpev8DhARiqTWW1ikPCbJAAJ4biuZLYRrQH9/nCsZdbEXFtiKMKe8XD WSJhLNZdTzwRzuSZ5nwyyiINpjYLo7hE76lUNnbQhgfZf5BPsWD0iIfVZzQfkF/gNv7O YtOfkybkYMufDCYuIEJ6l3u75oNWxKNtOiE11wjucasOvVxKtncm3DxdYFWbwjBC8IQ3 1e3+cq6uLM1fu/5+M8Ez25wEeTVjS0NcomeGb16e9XDdfeZ3isw7eXXBo8nLDEeCbtm8 GlBA== X-Gm-Message-State: AFqh2korQpj+sdp6eg8e4DYXjosiE8XpD84/SHK6WyF3gLaAjLX0Nbix EWfRbUS01tG6bANHCe50ao5d9Q== X-Received: by 2002:a2e:8945:0:b0:27f:958a:9279 with SMTP id b5-20020a2e8945000000b0027f958a9279mr2475446ljk.1.1671794319703; Fri, 23 Dec 2022 03:18:39 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id q13-20020a056512210d00b004b5732080d1sm483280lfr.150.2022.12.23.03.18.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Dec 2022 03:18:39 -0800 (PST) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH] dt-bindings: clock: qcom,spmi-clkdiv: convert to DT schema Date: Fri, 23 Dec 2022 12:18:35 +0100 Message-Id: <20221223111835.37610-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 Convert Qualcomm SPMI PMIC clock divider bindings to DT schema. Signed-off-by: Krzysztof Kozlowski --- .../bindings/clock/qcom,spmi-clkdiv.txt | 59 --------------- .../bindings/clock/qcom,spmi-clkdiv.yaml | 71 +++++++++++++++++++ 2 files changed, 71 insertions(+), 59 deletions(-) delete mode 100644 Documentation/devicetree/bindings/clock/qcom,spmi-clkdiv.txt create mode 100644 Documentation/devicetree/bindings/clock/qcom,spmi-clkdiv.yaml diff --git a/Documentation/devicetree/bindings/clock/qcom,spmi-clkdiv.txt b/Documentation/devicetree/bindings/clock/qcom,spmi-clkdiv.txt deleted file mode 100644 index 7474aba36607..000000000000 --- a/Documentation/devicetree/bindings/clock/qcom,spmi-clkdiv.txt +++ /dev/null @@ -1,59 +0,0 @@ -Qualcomm Technologies, Inc. SPMI PMIC clock divider (clkdiv) - -clkdiv configures the clock frequency of a set of outputs on the PMIC. -These clocks are typically wired through alternate functions on -gpio pins. - -======================= -Properties -======================= - -- compatible - Usage: required - Value type: - Definition: must be "qcom,spmi-clkdiv". - -- reg - Usage: required - Value type: - Definition: base address of CLKDIV peripherals. - -- qcom,num-clkdivs - Usage: required - Value type: - Definition: number of CLKDIV peripherals. - -- clocks: - Usage: required - Value type: - Definition: reference to the xo clock. - -- clock-names: - Usage: required - Value type: - Definition: must be "xo". - -- #clock-cells: - Usage: required - Value type: - Definition: shall contain 1. - -======= -Example -======= - -pm8998_clk_divs: clock-controller@5b00 { - compatible = "qcom,spmi-clkdiv"; - reg = <0x5b00>; - #clock-cells = <1>; - qcom,num-clkdivs = <3>; - clocks = <&xo_board>; - clock-names = "xo"; - - assigned-clocks = <&pm8998_clk_divs 1>, - <&pm8998_clk_divs 2>, - <&pm8998_clk_divs 3>; - assigned-clock-rates = <9600000>, - <9600000>, - <9600000>; -}; diff --git a/Documentation/devicetree/bindings/clock/qcom,spmi-clkdiv.yaml b/Documentation/devicetree/bindings/clock/qcom,spmi-clkdiv.yaml new file mode 100644 index 000000000000..16c95ad6c9d1 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/qcom,spmi-clkdiv.yaml @@ -0,0 +1,71 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/qcom,spmi-clkdiv.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SPMI PMIC clock divider + +maintainers: + - Bjorn Andersson + - Stephen Boyd + +description: | + Qualcomm SPMI PMIC clock divider configures the clock frequency of a set of + outputs on the PMIC. These clocks are typically wired through alternate + functions on GPIO pins. + +properties: + compatible: + const: qcom,spmi-clkdiv + + reg: + maxItems: 1 + + clocks: + items: + - description: Board XO source + + clock-names: + items: + - const: xo + + "#clock-cells": + const: 1 + + qcom,num-clkdivs: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Number of CLKDIV peripherals. + +required: + - compatible + - reg + - clocks + - clock-names + - "#clock-cells" + - qcom,num-clkdivs + +additionalProperties: false + +examples: + - | + pmic { + #address-cells = <1>; + #size-cells = <0>; + + clock-controller@5b00 { + compatible = "qcom,spmi-clkdiv"; + reg = <0x5b00>; + clocks = <&xo_board>; + clock-names = "xo"; + #clock-cells = <1>; + qcom,num-clkdivs = <3>; + + assigned-clocks = <&pm8998_clk_divs 1>, + <&pm8998_clk_divs 2>, + <&pm8998_clk_divs 3>; + assigned-clock-rates = <9600000>, + <9600000>, + <9600000>; + }; + }; -- 2.34.1