Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp180121rwb; Thu, 17 Nov 2022 23:08:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf6SiHubtph0EWTM8l6ZSXASZoJ2UYoYxj7GbNpJpGYyxjnA2Fo2m/q9kot0T6HRhKoeP1tq X-Received: by 2002:aa7:db16:0:b0:45c:c64d:a6ac with SMTP id t22-20020aa7db16000000b0045cc64da6acmr4985311eds.416.1668755291375; Thu, 17 Nov 2022 23:08:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668755291; cv=none; d=google.com; s=arc-20160816; b=fk3RtNc8AGOWh+X8ipisf2oyRbzjq4paUBhDr8y96B4c4OBNf0ibVWe1GhjHiScIBu xknRlJpFQhZmLrfNP75KU4Yt03xjLwpMNEw90pUkWFFfl+VstRrgrgioKDYu+m8RmNEb zwWY7n/GJ9WHl6QkoFfbXx4ZZfRRsX9oARMQVE7Sa+HoXnLtXbZhk/ir5ZxEJwxhfGI/ dujt+lnTvbFh+MEArHv+ThArEGWgfbhL5d2RvE7KReBLCMifKsAEky1829ihh+PqiBh0 vMHT4f0Cg0LuC6a68ETwO5X6coYBwZu7/X/WMmXWOzGv6JS97AAfmTzNCtqio8/KrA58 TOAw== 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:cc:to:from :dkim-signature; bh=01OCMMp9ZHJ1n7cdgOc4aPZPQWWHuKBbCi4kb/E2vOw=; b=OEJKfsCgEj0UzML6grN0GqE9qOwpD007YqZEjqEoLkCPg44IOKqNwKeN4K/vrsrpZn aIuFSqQoQVQGpJgYkvJ9mVxlG3c99v9cz9gkzAW52kGVkHrlE2DH7sgOkQqnK/gGXZ5h odCTgr3dGYqhEjtRoEuwGXBAVkbhuo7LhXxVz5IIZs9eumhaSi3Q5WAPIX5ZL7aBiZdS wRXA8M0Xxudyy8gYQYv6wlB6xZCktbgc58EemsLmOIUR78qZpjgCh/9vKDmfIopsghhv /HNE8LTfae5fAXIySWJGBxX3vldo8AteFJ8Wl2YCY9nX0ZxQi9MgQ7OdglS7kCBegSDl XCcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gDNpmMCL; 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 he39-20020a1709073da700b00783d5a873dcsi2945151ejc.341.2022.11.17.23.06.57; Thu, 17 Nov 2022 23:08:11 -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=gDNpmMCL; 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 S241392AbiKRGyB (ORCPT + 91 others); Fri, 18 Nov 2022 01:54:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241249AbiKRGxK (ORCPT ); Fri, 18 Nov 2022 01:53:10 -0500 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 613DC82BEE for ; Thu, 17 Nov 2022 22:53:09 -0800 (PST) Received: by mail-wr1-x435.google.com with SMTP id j15so7145802wrq.3 for ; Thu, 17 Nov 2022 22:53:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=01OCMMp9ZHJ1n7cdgOc4aPZPQWWHuKBbCi4kb/E2vOw=; b=gDNpmMCLIFx6q2VgUrjBrnwTlSyEsH36dt8bc+pX9IwAOmZZhySOSq+tk0YXHclJD7 emjBxVmCVAMTAYXDINPpNBUOBheDQz5W6ZvPvdQ15Ni7OA8i2SgUKq48GP+qBugr0MD+ S4DeiEdLwqEFuZICHtuxvKOj3dKIFw3RdHS2Iah6NVUglXYKa3Fhu7QIKWKAyZMH0886 xWwbpE8Pz8ocj4FZ1sO1+Kuxt9SJ3k/nVwyulMxkOoei2DHGQhqTQCRFeQPWr3FWuyVh i4/MfoeF/oBtYZdn+axWkv5ySY9uvA0TOvO51DjS1RssSMDBNhWPFBoaJ3aEDNCxofO2 X2ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=01OCMMp9ZHJ1n7cdgOc4aPZPQWWHuKBbCi4kb/E2vOw=; b=RpldKiA2n4lt5EjW4JTxsp3TmLcAq6UeADfQXxDJeGt8CPgZfHKLlmcVkzMMsRZC7n DA58tDNXMRCkLSZ1xbA2xEzUhsHTTmboVWNMeZDHeV+O7dPlJa7E7XX0+lReHDuh7U2e sF1cXG1jfkdyeJGDVw6/Tzf2VBYD3uKMJK6vvvWxawRcH7vyfzrAXx61aVW5NJwtmwVw ZW4MeZYEsmoQ8VHDEVFxxzJtTeKR+LKIhlC0zTboxQY9wPDHOanoTTS4iOGeP8Rg2L/L R1RtzUTU1wbEQZeq42oDe6jKhtDOgSZSNl0It7wRabIDJkD5RoVrQmIitbOFRuiMj3EH 7+FQ== X-Gm-Message-State: ANoB5plq2jJ58f0AtC/x/P2c+G0QykSAE7CmyLTH+FZr6Nqg+8T4AFRV dXVBaPB1ZfHr/eQx8BZ+KJ+POQ== X-Received: by 2002:adf:f784:0:b0:22e:3e8a:80f5 with SMTP id q4-20020adff784000000b0022e3e8a80f5mr3402662wrp.144.1668754388945; Thu, 17 Nov 2022 22:53:08 -0800 (PST) Received: from localhost.localdomain ([167.98.215.174]) by smtp.gmail.com with ESMTPSA id 23-20020a05600c229700b003cf75213bb9sm7648100wmf.8.2022.11.17.22.53.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 22:53:08 -0800 (PST) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Rob Herring , Srinivas Kandagatla Subject: [PATCH 11/12] dt-bindings: slimbus: qcom,slim: convert to DT schema Date: Fri, 18 Nov 2022 06:52:45 +0000 Message-Id: <20221118065246.6835-12-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221118065246.6835-1-srinivas.kandagatla@linaro.org> References: <20221118065246.6835-1-srinivas.kandagatla@linaro.org> 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 From: Krzysztof Kozlowski Convert the Qualcomm SoC SLIMbus controller bindings to DT Schema. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring Signed-off-by: Srinivas Kandagatla --- .../bindings/slimbus/qcom,slim.yaml | 86 +++++++++++++++++++ .../bindings/slimbus/slim-qcom-ctrl.txt | 36 -------- 2 files changed, 86 insertions(+), 36 deletions(-) create mode 100644 Documentation/devicetree/bindings/slimbus/qcom,slim.yaml delete mode 100644 Documentation/devicetree/bindings/slimbus/slim-qcom-ctrl.txt diff --git a/Documentation/devicetree/bindings/slimbus/qcom,slim.yaml b/Documentation/devicetree/bindings/slimbus/qcom,slim.yaml new file mode 100644 index 000000000000..883bda58ca97 --- /dev/null +++ b/Documentation/devicetree/bindings/slimbus/qcom,slim.yaml @@ -0,0 +1,86 @@ +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/slimbus/qcom,slim.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SoC SLIMbus controller + +maintainers: + - Krzysztof Kozlowski + - Srinivas Kandagatla + +description: + SLIMbus controller used when applications processor controls SLIMbus master + component. + +allOf: + - $ref: slimbus.yaml# + +properties: + compatible: + items: + - enum: + - qcom,apq8064-slim + - const: qcom,slim + + reg: + items: + - description: Physical address of controller register blocks + - description: SLEW RATE register + + reg-names: + items: + - const: ctrl + - const: slew + + clocks: + items: + - description: Interface clock for this controller + - description: Interrupt for controller core's BAM + + clock-names: + items: + - const: iface + - const: core + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - reg-names + - clocks + - clock-names + - interrupts + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + + soc { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + slim@28080000 { + compatible = "qcom,apq8064-slim", "qcom,slim"; + reg = <0x28080000 0x2000>, <0x80207c 4>; + reg-names = "ctrl", "slew"; + interrupts = ; + clocks = <&lcc SLIMBUS_SRC>, <&lcc AUDIO_SLIMBUS_CLK>; + clock-names = "iface", "core"; + #address-cells = <2>; + #size-cells = <0>; + + audio-codec@1,0 { + compatible = "slim217,60"; + reg = <1 0>; + }; + }; + }; diff --git a/Documentation/devicetree/bindings/slimbus/slim-qcom-ctrl.txt b/Documentation/devicetree/bindings/slimbus/slim-qcom-ctrl.txt deleted file mode 100644 index 6d955e129f90..000000000000 --- a/Documentation/devicetree/bindings/slimbus/slim-qcom-ctrl.txt +++ /dev/null @@ -1,36 +0,0 @@ -Qualcomm SLIMbus controller -This controller is used if applications processor driver controls SLIMbus -master component. - -Required properties: - - - reg : Offset and length of the register region(s) for the device - - reg-names : Register region name(s) referenced in reg above - Required register resource entries are: - "ctrl": Physical address of controller register blocks - "slew": required for "qcom,apq8064-slim" SOC. - - compatible : should be "qcom,-slim" for SOC specific compatible - followed by "qcom,slim" for fallback. - - interrupts : Interrupt number used by this controller - - clocks : Interface and core clocks used by this SLIMbus controller - - clock-names : Required clock-name entries are: - "iface" : Interface clock for this controller - "core" : Interrupt for controller core's BAM - -Example: - - slim@28080000 { - compatible = "qcom,apq8064-slim", "qcom,slim"; - reg = <0x28080000 0x2000>, <0x80207C 4>; - reg-names = "ctrl", "slew"; - interrupts = <0 33 0>; - clocks = <&lcc SLIMBUS_SRC>, <&lcc AUDIO_SLIMBUS_CLK>; - clock-names = "iface", "core"; - #address-cells = <2>; - #size-cell = <0>; - - wcd9310: audio-codec@1,0{ - compatible = "slim217,60"; - reg = <1 0>; - }; - }; -- 2.25.1