From patchwork Fri Nov 4 17:05:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 15707 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp531647wru; Fri, 4 Nov 2022 10:11:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4g8ruYs7hZi0GR+aBUSn4QE+yjAu/TGKV1tSEKfTy1BbQfVxtFflszCtfMrNIaJp7JG9i2 X-Received: by 2002:a17:902:d64d:b0:186:634e:5517 with SMTP id y13-20020a170902d64d00b00186634e5517mr36126970plh.3.1667581910690; Fri, 04 Nov 2022 10:11:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667581910; cv=none; d=google.com; s=arc-20160816; b=A7KH03r0I+SzQAKlu35kHEcWFeQCu53bldLObBMUcTE9eB7IHHW92WYwWx220ZvMia l5dPQBObgH+rcV8YxE2ntcRGyRkN6J+4pNxa/KFoWv8CGecyXh138bNihP+5bWNdPpmb +4flH5DELAEQcHdMD/Ne9cVLUtMQ0vODc6RDUa26Atf4MuSGaHRi4IJVQSHd3zGkVwSo luefOtwRTqe3/JJMFamwlZHUsHM9a4BDnt+IZZIsxFFFateKQcbKfbTt+g3tdPqbVi1m +VjzlvkE/dBIif5o+1G85eMOpa95fN8cri+kk+n3jD9XpoydJkLooR3r7np47XZ0PVAs bO5A== 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=QmgwhFKSfmRVfZGc4RFN5XxR8b40r2de6Oo0rq1T4LM=; b=utmgeEmcaKH3pshwo0gtAZU+Cnme6PND0E9xVfclqcaNlITKIRQmRoBDicSH1kSU3v wMgXEdpPONGwAXvEmxUPDbD2JQv6docp3cpE9kuLwrkSTgr5NhfUfliSH+PUXXIUBOe2 9MsCe6rQXyxDFZUTCC5UytJtkBxloV9ELF/+NdRdr9jYg//4Gkx97WPh0kUIhLlfqq47 HF9e0wkkbafYNxWXZWN27UXJXXFoWU6+JM8SpHDuLIDIbV4XOS+wjG3D9te6foGwzHVs y0F1R35ckfcF2pP2N5C4ajub4VYtdFzJMp3LysW8uxF1q6bP6psH1uSSSa8pjfLJZiHI gFHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JbUTll5M; 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 m9-20020a17090aab0900b0020d9c20092fsi3752796pjq.181.2022.11.04.10.11.36; Fri, 04 Nov 2022 10:11:50 -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=JbUTll5M; 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 S231140AbiKDRGA (ORCPT + 99 others); Fri, 4 Nov 2022 13:06:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229749AbiKDRF6 (ORCPT ); Fri, 4 Nov 2022 13:05:58 -0400 Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8966B3E08D for ; Fri, 4 Nov 2022 10:05:57 -0700 (PDT) Received: by mail-qk1-x730.google.com with SMTP id x21so3475893qkj.0 for ; Fri, 04 Nov 2022 10:05:57 -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=QmgwhFKSfmRVfZGc4RFN5XxR8b40r2de6Oo0rq1T4LM=; b=JbUTll5MUjsFEpb6RFMbBc3v4wZC7nXCGMHb5OK0Dj1brJXpSu1B6bkm7Y7U9ncuKG iqnkdFnjDpJ/4iU0uVw5784Yk5pIFbYFFk7YLX74gaga3r1+BZWyM8k/tte7jaoZfLp+ SlEYGRI1opxkZ1YRf0Y4i8oWvqEnxRFm1RUa5eAOVfW4YOseCzkAaRrueQgSzuEEILvk i9eEPWx2w/roHu+WfzQFQEo2ebRYbXiUsIeEZxCb/+ZMK51rTc/95nl1+OfG4qFyIvkk nOUuPaSW/ZFDusLt/V5JBCTDb231pwqVnE35hOL+wY7KG8B6OE9IbAc/plX1LmlgWrEp VTzA== 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=QmgwhFKSfmRVfZGc4RFN5XxR8b40r2de6Oo0rq1T4LM=; b=R5yuonUozwdPM1jy5p5j4yb2xphvN3xeKDlFX1S6irIehIGrgxz8fbFYKqvTNd+cbK QrQTnRQ2UPPKWj47vtUI7D5yxjYfCn1CwJzUZsGquLT+FaM7/4z/mVaE9PhSxhNPvdqp jK5G7oQJHDEkZvemOobMp/R7ZtOXu8XbQO6wArXsKD8Qi9BcWkB6NmGWAQkxgmaMU/fr 2oibAiuwzvLbGXghpko5XBxbyVPFXMNS5J5zTbwJ6Xfoj5vdcpl3a2Kq/kQODOctjTkp BaNcN99JsPrrXPeG2i9LzI6sqsmLNVfvQl5ANJlnI7cEYS8JsgW9vVMHhfug5CTdMw1C xhsw== X-Gm-Message-State: ACrzQf2BHeNTvPgfYYpPciF2pkjpMqQK9ncg1/00vWm2zWrX1v5JZV2a YHrW9U37D+rbDSEGoqJDXUh6Pg== X-Received: by 2002:a37:2d84:0:b0:6fa:1747:5369 with SMTP id t126-20020a372d84000000b006fa17475369mr25414271qkh.693.1667581556663; Fri, 04 Nov 2022 10:05:56 -0700 (PDT) Received: from krzk-bin.. ([2601:586:5000:570:aad6:acd8:4ed9:299b]) by smtp.gmail.com with ESMTPSA id c11-20020ac8054b000000b003a527d29a41sm2667370qth.75.2022.11.04.10.05.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Nov 2022 10:05:55 -0700 (PDT) From: Krzysztof Kozlowski To: Bjorn Andersson , Andy Gross , 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,sdm845-lpasscc: convert to dtschema Date: Fri, 4 Nov 2022 13:05:52 -0400 Message-Id: <20221104170552.72242-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=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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748586369602620751?= X-GMAIL-MSGID: =?utf-8?q?1748586369602620751?= Convert Qualcomm SDM845 LPASS clock controller bindings to DT schema. Signed-off-by: Krzysztof Kozlowski --- .../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..10aa9b6e8d89 --- /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>; + };