From patchwork Mon Oct 26 14:19:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 284532 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5F97BC4363A for ; Mon, 26 Oct 2020 14:21:58 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6334D2242A for ; Mon, 26 Oct 2020 14:21:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="FWpcq6w/"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="n8mxJ2N5" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6334D2242A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id C2D54168E; Mon, 26 Oct 2020 15:21:05 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz C2D54168E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1603722115; bh=dC1W60VTqgA/i3Cw4DaDpM63Ydx3jeRdxhl7Wc7Bpjs=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=FWpcq6w/6/Z9uY9ujp0CRmLvfHRL/jwl/kbTbn1dcUQNbEBX33vvTlZc8LyTA0Kjc 9sWvk3ZDcKZsAWSVU0UGJ7Bst2o9KisU28CZA32Oot5K/Xf2yLZByYS/Ja6VqP3BpI eniGdUmes3KwDyTqMfyFoyQcNKNnzGMXxCnTbJkQ= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id D240FF801D5; Mon, 26 Oct 2020 15:20:12 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 05BDBF804BD; Mon, 26 Oct 2020 15:20:08 +0100 (CET) Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 4AA2FF80086 for ; Mon, 26 Oct 2020 15:19:59 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 4AA2FF80086 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="n8mxJ2N5" Received: by mail-wm1-x341.google.com with SMTP id k18so12632715wmj.5 for ; Mon, 26 Oct 2020 07:19:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9fhF75GuKHMndQwzvj5pm/aPCcKWXm3nNYC2yFpkJSw=; b=n8mxJ2N5zGLAVgMbyvJa2AD3AWeMri/klQxXd2NFfZg3SVtfycsOGmmXQoRyJaZm0R uj+Nytd4IuM3ItTvSr1BaaQyS70biV+qHdpZ2ZICzYJIYj/vOtu1GMuQWAyw7PNXLK5j xg8tnS1FvFm7DlHZhl/GEc/ovK+dLYhLt5uCUlC1n4HMtyhOrEyHRxdGYFQjeGTLmTdW yF+aCe+KPRwKdqNXHHLssg1p6RqcX8VyHJbLlyln+egHJfbDuTJckSO9eNypAZbVz4ju YONoQy+iJz5sgSIVwhT/FAyQzbNHrJUDgfE6vmF3PawwDSegYJWjgmlCNOYA60vA4u9N MzsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9fhF75GuKHMndQwzvj5pm/aPCcKWXm3nNYC2yFpkJSw=; b=U0RQ1zNirxCbZMIj+XV4ZUF5cyz4vIJlu49GeOvFb3hR/VqeM5js59jAArkXY7scOj LzK2nboBYVmHIi46syJikczERlg6LWeO0wfsYC9/11O1TlDV7Ss0A0BltoM5zCHGSQlQ FqbDyB+MS4vnj/z75LdEeOZ7+q+m7/N0aBGN7pcOsi2SU9WD4q7gbCpbl9QdFWNjmsRZ VW0ymsMwbF/OpWxsti9KCpH7IWZJOGza1IHRg5PLaHmnJfO2biv4Vdj2PZvxB8SImmzw olmctCHB9lktOZUxK+lX+u9gb7vK8E+zcXoNHd8dndmKdTOEujK6dZ8eJCk2DoiW6r5g eI8g== X-Gm-Message-State: AOAM533GX8dgwerO7nHcPns2VW8dTOqhGhJrkhr8KyRrOrNcylZDOGbK SjcOQ/N04vRSxdPVXOWaI6Rg3A== X-Google-Smtp-Source: ABdhPJzRknpzQ3DDUBfPXoKWaIYT8Q1ET9vJ4ZC9mONx0jPu42Q5mgIlfYfzAJTNI8FXYCCXXKXr/Q== X-Received: by 2002:a1c:b707:: with SMTP id h7mr17236581wmf.105.1603721999005; Mon, 26 Oct 2020 07:19:59 -0700 (PDT) Received: from srini-hackbox.lan (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.gmail.com with ESMTPSA id g4sm20253333wmh.13.2020.10.26.07.19.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Oct 2020 07:19:58 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org Subject: [PATCH v1 4/6] ASoC: qcom: dt-bindings: add bindings for lpass va macro codec Date: Mon, 26 Oct 2020 14:19:43 +0000 Message-Id: <20201026141945.19707-5-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20201026141945.19707-1-srinivas.kandagatla@linaro.org> References: <20201026141945.19707-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Cc: alsa-devel@alsa-project.org, plai@codeaurora.org, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, Srinivas Kandagatla , spapothi@codeaurora.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" This binding is for LPASS has internal codec VA macro which is for connecting with DMICs. Signed-off-by: Srinivas Kandagatla --- bindings depend on gfm headers from "clk: qcom : add sm8250 LPASS GFM drivers" patches posted at https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg2352255.html .../bindings/sound/qcom,lpass-va-macro.yaml | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml diff --git a/Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml b/Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml new file mode 100644 index 000000000000..214b4b117d39 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml @@ -0,0 +1,68 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/qcom,lpass-va-macro.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: LPASS(Low Power Audio Subsystem) VA Macro audio codec DT bindings + +maintainers: + - Srinivas Kandagatla + +properties: + compatible: + const: qcom,sm8250-lpass-va-macro + + reg: + maxItems: 1 + + "#sound-dai-cells": + const: 1 + + '#clock-cells': + const: 0 + + clocks: + maxItems: 3 + + clock-names: + items: + - const: mclk + - const: core + - const: dcodec + + clock-output-names: + items: + - const: fsgen + + qcom,dmic-sample-rate: + description: dmic sample rate + $ref: /schemas/types.yaml#/definitions/uint32 + + vdd-micb-supply: + description: phandle to voltage regulator of MIC Bias + +required: + - compatible + - reg + - "#sound-dai-cells" + +additionalProperties: false + +examples: + - | + #include + #include + codec@3370000 { + compatible = "qcom,sm8250-lpass-va-macro"; + reg = <0x3370000 0x1000>; + #sound-dai-cells = <1>; + #clock-cells = <0>; + clocks = <&aoncc LPASS_CDC_VA_MCLK>, + <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + clock-names = "mclk", "core", "dcodec"; + clock-output-names = "fsgen"; + qcom,dmic-sample-rate = <600000>; + vdd-micb-supply = <&vreg_s4a_1p8>; + };