From patchwork Fri Nov 4 18:21:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 15741 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp566579wru; Fri, 4 Nov 2022 11:24:03 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6WRbh2X7T3ERZ+LaibAPEByhzMnpu1P/C7xCfcAN7RLzyG+jDmKlf1at/Gs5f+XiIzuw+J X-Received: by 2002:aa7:d499:0:b0:463:c002:9650 with SMTP id b25-20020aa7d499000000b00463c0029650mr20060308edr.87.1667586243693; Fri, 04 Nov 2022 11:24:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667586243; cv=none; d=google.com; s=arc-20160816; b=O1n6SFNpu3e1KZ3Q4B1U3F7STwLf80ePUVGiJrhdJyAcSfMnZd/UQYbgrximUUA8E8 xEvi8xVa4Y5X4KLT0R7kG26emMbkDzJNly3iKC+UtGziJ3xz35pAGO9lwCV8F2oujWaQ xNnvmlJuzTEb1FKi32VDE4fQIpYmb8GJOGwAC8JjIg+wc11D88qpJ2I/ZUmOHZ/dZyeJ f8EiIz4oJnmiGCHxWvx+Ci/yYCwycXfu+JFrOaz2wpHisDea+4HFKk/i4yME6GvhjvzA MF3bfBveob7gYviiwby5vFkAzIVoh0ldIIuBdwqB6MITk/8TUkYzXINmjk+C4m5n03DQ 2/Pg== 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=8XdkAG3dilKY+4PvxfSDGA2DqcSYYOAUsGpHT8unyWA=; b=Z+t/QSC7M8DjpInwfH8Fp752KjctKZrAfk2bJsrx30I1+bINwb02VD9Puv5Y+Waozm //LxfPx6LAd2fwbhuU0Net8IIA/wwAcjJnNRXCYknXMQVh5GQz9B7fZ3fVGXqtaALaoC J9KS6IDIaHNYOLz5wy2LVrlP/6njq3Fjz2EIt2zBeeQxSkvAOkuuhqi/2fff3dEhVxIv emRVtDmDtItqgQnFX8I6A7ZKHxdvLgkGVxrutHpkoYLbz4qMfXcvinQXtp/Jq1oYT7x1 yBPiMftNEV1GA9A0ySwAEahWc3zc1mVKKcDtXWAUqLiFf1LsO7S05FHXgA0dVPPi3lri OlWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XKZBXR1c; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s22-20020a056402521600b00461f44d7bfcsi123625edd.573.2022.11.04.11.23.39; Fri, 04 Nov 2022 11:24:03 -0700 (PDT) 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=XKZBXR1c; 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 S231983AbiKDSWH (ORCPT + 99 others); Fri, 4 Nov 2022 14:22:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231543AbiKDSWB (ORCPT ); Fri, 4 Nov 2022 14:22:01 -0400 Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFE234B9B9 for ; Fri, 4 Nov 2022 11:21:14 -0700 (PDT) Received: by mail-qk1-x733.google.com with SMTP id z30so3547426qkz.13 for ; Fri, 04 Nov 2022 11:21:14 -0700 (PDT) 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=8XdkAG3dilKY+4PvxfSDGA2DqcSYYOAUsGpHT8unyWA=; b=XKZBXR1ccwvkDLK2gAyQD8jTlThhJkk4LMJExUVubdSVqbS0LFnHUZkxwnf7GzMm+3 HjMHtxjYqwI2RkLcJE0ZLs+DtBvEiU9mLWuMhDlRcFpGpotqrrwI2rd2MzPCX4nuwugU 6OrOWV8y4hq9EesGfA7221abT23g38UGmPTOGvaewQ8uw75BKUnCCtr/sucZaKon4LZN 3xDoRSgDp8gy0N0jGPkVfr5/nbCRJRIXCHW3wAdJ46LaKVVzEnz+RjfhUkVEklquEjq4 If+33bzUYgw3mHKHcrTdy3inhLfeZW8/pbGpEC+wy5vwnFPPbqjWbOH2WKrY3ReQxj0h FdWg== 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=8XdkAG3dilKY+4PvxfSDGA2DqcSYYOAUsGpHT8unyWA=; b=hj0iCtRTtQ77NsphpMFUIQZX26kqDSFZxFRxENuKFmv9Apo48SldjSmz/W6mMGM25O S6gE2yt5jgxqclOrKYR95cOfshtcJT7DbtUmniD1xPjCntqPps5oj33t5YbAwCLZQpWf GLYP5BjXPcs7dqJRyRi+xjdJ4fVeKDuOeEkX6FZ9FVrUhmENZ/a2Sg8+Jd6Xgflj+CPE 7G/SDRttqoa2IKGDIcsfxVlxgdc4mv3WYWuL/4ypAvgKwGPyKlykxKCtQkaM/+HN7j+v Z1cQzqo5VqTXMTpnWvQ7FNvcg8aoH8wKS63aXX6JUuuBmc57KvQwlwUUMfD/cmQUf7TQ Ir/g== X-Gm-Message-State: ACrzQf2uhLqRQt4DjedzTgZC8R8IshHg+MLxHYwlvT5Vor5uTE9DxpWh 5hrGzkfTC6Ti++c+CEiW31z9rA== X-Received: by 2002:a37:c446:0:b0:6fa:5df9:6fcc with SMTP id h6-20020a37c446000000b006fa5df96fccmr11937043qkm.560.1667586074009; Fri, 04 Nov 2022 11:21:14 -0700 (PDT) Received: from krzk-bin.. ([2601:586:5000:570:aad6:acd8:4ed9:299b]) by smtp.gmail.com with ESMTPSA id j8-20020a05620a288800b006fa4cac54a4sm3389016qkp.133.2022.11.04.11.21.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Nov 2022 11:21:13 -0700 (PDT) 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 v2] dt-bindings: clock: qcom,sdm845-lpasscc: convert to dtschema Date: Fri, 4 Nov 2022 14:21:08 -0400 Message-Id: <20221104182108.126515-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748586369602620751?= X-GMAIL-MSGID: =?utf-8?q?1748590913305046840?= Convert Qualcomm SDM845 LPASS clock controller bindings to DT schema. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Stephen Boyd --- Changes since v1: 1. Correct Bjorn's email. --- .../bindings/clock/qcom,lpasscc.txt | 26 ---------- .../bindings/clock/qcom,sdm845-lpasscc.yaml | 47 +++++++++++++++++++ 2 files changed, 47 insertions(+), 26 deletions(-) delete mode 100644 Documentation/devicetree/bindings/clock/qcom,lpasscc.txt create mode 100644 Documentation/devicetree/bindings/clock/qcom,sdm845-lpasscc.yaml diff --git a/Documentation/devicetree/bindings/clock/qcom,lpasscc.txt b/Documentation/devicetree/bindings/clock/qcom,lpasscc.txt deleted file mode 100644 index b9e9787045b9..000000000000 --- a/Documentation/devicetree/bindings/clock/qcom,lpasscc.txt +++ /dev/null @@ -1,26 +0,0 @@ -Qualcomm LPASS Clock Controller Binding ------------------------------------------------ - -Required properties : -- compatible : shall contain "qcom,sdm845-lpasscc" -- #clock-cells : from common clock binding, shall contain 1. -- reg : shall contain base register address and size, - in the order - Index-0 maps to LPASS_CC register region - Index-1 maps to LPASS_QDSP6SS register region - -Optional properties : -- reg-names : register names of LPASS domain - "cc", "qdsp6ss". - -Example: - -The below node has to be defined in the cases where the LPASS peripheral loader -would bring the subsystem out of reset. - - lpasscc: clock-controller@17014000 { - compatible = "qcom,sdm845-lpasscc"; - reg = <0x17014000 0x1f004>, <0x17300000 0x200>; - reg-names = "cc", "qdsp6ss"; - #clock-cells = <1>; - }; diff --git a/Documentation/devicetree/bindings/clock/qcom,sdm845-lpasscc.yaml b/Documentation/devicetree/bindings/clock/qcom,sdm845-lpasscc.yaml new file mode 100644 index 000000000000..a96fd837c70a --- /dev/null +++ b/Documentation/devicetree/bindings/clock/qcom,sdm845-lpasscc.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/qcom,sdm845-lpasscc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SDM845 LPASS Clock Controller + +maintainers: + - Bjorn Andersson + +description: | + Qualcomm SDM845 LPASS (Low Power Audio SubSystem) Clock Controller. + + See also:: include/dt-bindings/clock/qcom,lpass-sdm845.h + +properties: + compatible: + const: qcom,sdm845-lpasscc + + '#clock-cells': + const: 1 + + reg: + maxItems: 2 + + reg-names: + items: + - const: cc + - const: qdsp6ss + +required: + - compatible + - '#clock-cells' + - reg + - reg-names + +additionalProperties: false + +examples: + - | + clock-controller@17014000 { + compatible = "qcom,sdm845-lpasscc"; + reg = <0x17014000 0x1f004>, <0x17300000 0x200>; + reg-names = "cc", "qdsp6ss"; + #clock-cells = <1>; + };