Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2335150pxp; Mon, 21 Mar 2022 17:16:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyC9EuXaogoJGLzASb0siHxKpy7sYxUJQiPkfV9+s8+nKOdun3WgSq1DJVVfFxfPS+g5x/g X-Received: by 2002:a17:90a:8d08:b0:1c6:5ada:9919 with SMTP id c8-20020a17090a8d0800b001c65ada9919mr1824870pjo.90.1647908207639; Mon, 21 Mar 2022 17:16:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647908207; cv=none; d=google.com; s=arc-20160816; b=w/M+egDMVadDwSbdz6WPoD/YZKeUTLI3NC9D6ZMRPly5WuKQ0OyaBT7A0tMrvj12cF 563wbgvtYmsLiUOu6FkKytdLvV1IUML/OvKEPaeIFUZM3g372Yy37Tnvy+MKTazYvcLr 6PcAGfTlcDUhYnJf1OnaUIcTC14ALqMpU3xNVKOOLmAUl2QBS5hqJoW9C+WncuHzQ+zO gRcqDasfJCuDCrovRVTRWzyyI8EIQjBLTD6Dj9l7hM88jyoOJ91DRiqScoHYwaeEozUI /pBeSXgKVcGafEXZk4t24sFZO1auNEdzeCyczmbSAc521EWbEtROTVKKzbwYH0CynGFj KGCQ== 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 :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=e6CBS8LdYYo1w7dXhFqcS8AmrcQet4Ln8lA/fEmtzfE=; b=DzQIr7fSLiM/t82fNXs0CMvLG0sALqR4zKszjM0haNaA7Epj44YNR9z26KT3zQmL6A VRJ9ILVUW85zCl6pdxm2JGHy1RiWUTJbHvXp1ge8zqHQyYFFPHLA7hNrvuwLEeqNBE2y jkgp1PRnFgdkWoyJLXc+VY3Yc/i/Y1TtRmr/is0K0ELGqn/DdxFSEWwAfIYqvVXi0kyj 3IGt8fNAkGtXJ4s7SO1YlSAwajb9nLqcPATpNmVd3aT/48RjhhjENwNMoWhqcB2mDml1 lNPLjtzz72epQsYLg5nSeWPkyzEhw3HytxWpPWt/Hf7RtU8lCmJ0urOt7UL8xG4J2W4I 65Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OOYapsge; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id z1-20020a63c041000000b003816043ef2csi2119103pgi.289.2022.03.21.17.16.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 17:16:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OOYapsge; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EE9C8173F54; Mon, 21 Mar 2022 16:46:20 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233451AbiCUXrh (ORCPT + 99 others); Mon, 21 Mar 2022 19:47:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233294AbiCUXq5 (ORCPT ); Mon, 21 Mar 2022 19:46:57 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB67128E1F; Mon, 21 Mar 2022 16:45:30 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id u16so21752688wru.4; Mon, 21 Mar 2022 16:45:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=e6CBS8LdYYo1w7dXhFqcS8AmrcQet4Ln8lA/fEmtzfE=; b=OOYapsgeMR7gBbuk497I8FmvUmT3meXzPA0Y+p8rQih8G6gGh9ehKq5bTQAVm8AjZo 6/tyvS/Q7A5Hc+abLb49fxWHBA5CatWZRQThy9k13gjxEYvsUcox8rR26pI3b6R1wyud bKETGY0izqB5A9WNvDujwvapImjOgldjukxw6+pFcqjGYcXs1Vrkbdjpvhqfxd7nOu4Y ijwSxK+bsR7D+t5KeCO9gN4oZYAvb/Mn2fjv7q4dc7LrUTuH4aFOY5PyCeIvWVW8wLO5 HTRbigk390+g+U6QFm9UlClGJhApDeKkJG2ta7RzY+gBUYV4FJ+YZEpG7oe7M+ZlxxbG ZUNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=e6CBS8LdYYo1w7dXhFqcS8AmrcQet4Ln8lA/fEmtzfE=; b=35lm1hmCZBBkd0FIaz1BDrdmPob0wO2Kh9G73xaUreOVlRmXkikO9Qmgtb2XgSHsnM VoDuRqN/9C4ghHralGXMFh+MdWTAMLXiPfdDMTc4MnrKVVD9bwfhpZBmPfTTGRX7ZD9O iUNEp/UcLnvwn4ZRIfSQyvzyh/Db7sWfUsoltB2PY+MXl9js+/qteGLaxI15aCuPVq5Y nT6hLhxAa/kNPEnBwGMMh0zmMtG5Is3b2ikbb6l65VWb9eAYM7eT6avrowVll5DHQB5b wa6PMpJgXDZgPp5WUkG4/E2FprAHcU0xJW+LOl50rRgBXBDrz+GBReq1tNkr3GJkLNmv EnGg== X-Gm-Message-State: AOAM530Kv4QdZJ6a8noikFbSBvpZw8WTisJYzF9TXEnVVwtYVjEIEyVo 67KFzLfoLBtt9U0BLaKwr88= X-Received: by 2002:adf:d1c9:0:b0:203:c4f8:dd17 with SMTP id b9-20020adfd1c9000000b00203c4f8dd17mr19705530wrd.633.1647906329073; Mon, 21 Mar 2022 16:45:29 -0700 (PDT) Received: from Ansuel-xps.localdomain (93-42-69-170.ip85.fastwebnet.it. [93.42.69.170]) by smtp.googlemail.com with ESMTPSA id n10-20020a5d588a000000b002052e4aaf89sm105497wrf.80.2022.03.21.16.45.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 16:45:28 -0700 (PDT) From: Ansuel Smith To: Rob Herring , Bjorn Andersson , Andy Gross , Michael Turquette , Stephen Boyd , Ansuel Smith , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH v6 16/18] dt-bindings: arm: msm: Convert kpss-acc driver Documentation to yaml Date: Tue, 22 Mar 2022 00:15:46 +0100 Message-Id: <20220321231548.14276-17-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220321231548.14276-1-ansuelsmth@gmail.com> References: <20220321231548.14276-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 kpss-acc driver Documentation to yaml. The original Documentation was wrong all along. Fix it while we are converting it. The example was wrong as kpss-acc-v2 should only expose the regs but we don't have any driver that expose additional clocks. The kpss-acc driver is only specific to v1. For this exact reason, limit all the additional bindings (clocks, clock-names, clock-output-names and #clock-cells) to v1 and also flag that these bindings should NOT be used for v2. Signed-off-by: Ansuel Smith --- .../bindings/arm/msm/qcom,kpss-acc.txt | 49 ---------- .../bindings/arm/msm/qcom,kpss-acc.yaml | 94 +++++++++++++++++++ 2 files changed, 94 insertions(+), 49 deletions(-) delete mode 100644 Documentation/devicetree/bindings/arm/msm/qcom,kpss-acc.txt create mode 100644 Documentation/devicetree/bindings/arm/msm/qcom,kpss-acc.yaml diff --git a/Documentation/devicetree/bindings/arm/msm/qcom,kpss-acc.txt b/Documentation/devicetree/bindings/arm/msm/qcom,kpss-acc.txt deleted file mode 100644 index 7f696362a4a1..000000000000 --- a/Documentation/devicetree/bindings/arm/msm/qcom,kpss-acc.txt +++ /dev/null @@ -1,49 +0,0 @@ -Krait Processor Sub-system (KPSS) Application Clock Controller (ACC) - -The KPSS ACC provides clock, power domain, and reset control to a Krait CPU. -There is one ACC register region per CPU within the KPSS remapped region as -well as an alias register region that remaps accesses to the ACC associated -with the CPU accessing the region. - -PROPERTIES - -- compatible: - Usage: required - Value type: - Definition: should be one of: - "qcom,kpss-acc-v1" - "qcom,kpss-acc-v2" - -- reg: - Usage: required - Value type: - Definition: the first element specifies the base address and size of - the register region. An optional second element specifies - the base address and size of the alias register region. - -- clocks: - Usage: required - Value type: - Definition: reference to the pll parents. - -- clock-names: - Usage: required - Value type: - Definition: must be "pll8_vote", "pxo". - -- clock-output-names: - Usage: optional - Value type: - Definition: Name of the output clock. Typically acpuX_aux where X is a - CPU number starting at 0. - -Example: - - clock-controller@2088000 { - compatible = "qcom,kpss-acc-v2"; - reg = <0x02088000 0x1000>, - <0x02008000 0x1000>; - clocks = <&gcc PLL8_VOTE>, <&gcc PXO_SRC>; - clock-names = "pll8_vote", "pxo"; - clock-output-names = "acpu0_aux"; - }; diff --git a/Documentation/devicetree/bindings/arm/msm/qcom,kpss-acc.yaml b/Documentation/devicetree/bindings/arm/msm/qcom,kpss-acc.yaml new file mode 100644 index 000000000000..707a81a6c30e --- /dev/null +++ b/Documentation/devicetree/bindings/arm/msm/qcom,kpss-acc.yaml @@ -0,0 +1,94 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/msm/qcom,kpss-acc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Krait Processor Sub-system (KPSS) Application Clock Controller (ACC) + +maintainers: + - Ansuel Smith + +description: | + The KPSS ACC provides clock, power domain, and reset control to a Krait CPU. + There is one ACC register region per CPU within the KPSS remapped region as + well as an alias register region that remaps accesses to the ACC associated + with the CPU accessing the region. + +properties: + compatible: + enum: + - qcom,kpss-acc-v1 + - qcom,kpss-acc-v2 + + reg: + items: + - description: Base address and size of the register region + - description: Optional base address and size of the alias register region + + clocks: + items: + - description: phandle to pll8_vote + - description: phandle to pxo_board + + clock-names: + items: + - const: pll8_vote + - const: pxo + + clock-output-names: + description: Name of the aux clock. Krait can have at most 4 cpu. + enum: + - acpu0_aux + - acpu1_aux + - acpu2_aux + - acpu3_aux + + '#clock-cells': + const: 0 + +required: + - compatible + - reg + +allOf: + - if: + properties: + compatible: + contains: + const: qcom,kpss-acc-v1 + then: + required: + - clocks + - clock-names + - clock-output-names + - '#clock-cells' + else: + properties: + clocks: false + clock-names: false + clock-output-names: false + '#clock-cells': false + +additionalProperties: false + +examples: + - | + #include + + clock-controller@2088000 { + compatible = "qcom,kpss-acc-v1"; + reg = <0x02088000 0x1000>, <0x02008000 0x1000>; + clocks = <&gcc PLL8_VOTE>, <&pxo_board>; + clock-names = "pll8_vote", "pxo"; + clock-output-names = "acpu0_aux"; + #clock-cells = <0>; + }; + + - | + clock-controller@f9088000 { + compatible = "qcom,kpss-acc-v2"; + reg = <0xf9088000 0x1000>, + <0xf9008000 0x1000>; + }; +... -- 2.34.1