From mboxrd@z Thu Jan 1 00:00:00 1970 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=-13.0 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=ham 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 4AA0FC433E3 for ; Tue, 21 Jul 2020 10:46:32 +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 C91FE20674 for ; Tue, 21 Jul 2020 10:46:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="RXnKpRHv"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="Ki3xZi7c" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C91FE20674 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.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 5C01716BE; Tue, 21 Jul 2020 12:45:40 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 5C01716BE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1595328390; bh=4amWzloGDas8ZHLP1co1OWFV1/M0h1FR+zUoJvS2kis=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=RXnKpRHvl7OgmCYITPc+Ng6C2RnnwB8Am0LKtXzKAI0OcbdfFPyIek+I15OF3mNS3 BFDuMSsYRXs0B5MoQEaKIVHX/dMKf4pRTihxn0l04qOkmglsekSMpCipxkwRA6Mq/3 wyrMlsvPs9Am0hBuOeXCRIFfPq0NB83alMbi+WfI= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 33073F80278; Tue, 21 Jul 2020 12:44:52 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 6AE50F80279; Tue, 21 Jul 2020 12:44:51 +0200 (CEST) Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) (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 ED6AFF80117 for ; Tue, 21 Jul 2020 12:44:44 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz ED6AFF80117 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="Ki3xZi7c" Received: by mail-pf1-x441.google.com with SMTP id 207so10547579pfu.3 for ; Tue, 21 Jul 2020 03:44:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2odOJ5ld037Ng0df9XqmYUK1fIoK1GsBG35/G24WS/o=; b=Ki3xZi7cltDdamWKK6yyYHgCHagJybv12qvc9ZLtA09hcw9JQPQVWucr6JsdLpow+T ZUq1jipbkwMV79dw6G2zeLoz34M9tqRKhpRJ+VAxnePkq4IOV6rIquLTZj/UdlHi3XzE YZS5prl4V8wJmJj3o8jYKm0cNPYhEoGV6hkOw= 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=2odOJ5ld037Ng0df9XqmYUK1fIoK1GsBG35/G24WS/o=; b=CRHP7ZJEYN4V9cCqxmW+g7O6rz8TDAMS94E3m86AmxZgV7y99IfOm6F3UaJjvyxOSP e5CGgsYTkSd91DLxQKKhn9bUXk4jZG3Y0yAHevAvZyScGXL8uQjXl9TczN7NNPG9vOVM I+WQyY7m00Dd+L03qcjhGosAMJkWz8xlpDZ8ZJNNvw2mP1jKFtqmSmGdQR90tIL2MFp3 e3ytluWwJayEnfdfC8ORfhF35rFPqQg9lSdYk9Cx18T9k3/3mjw2cxC/JHEajOCstnTs eJr+HxzGYd+8c+5KTnyVS2VIY9C5KWMhlwC4Ej6DLjihe4/QTnFDZPCYfYRV5takT40v x4XA== X-Gm-Message-State: AOAM531YM5bO3/IIYdU5kGX5zw9Hw6GMLd100CioJM7fLqfmxI3DsCTU vgQnS5gD8KvlUAtauQdqJ7v8Kw== X-Google-Smtp-Source: ABdhPJzGVK040lYlN453Qd3xUhg6ZkL4HAMLKyhTwFwuECikRWPUZBomPLIYQ3rT3xo4dUQiLV4nug== X-Received: by 2002:a63:be47:: with SMTP id g7mr21960494pgo.7.1595328283477; Tue, 21 Jul 2020 03:44:43 -0700 (PDT) Received: from localhost ([2401:fa00:1:10:de4a:3eff:fe7d:d39c]) by smtp.gmail.com with ESMTPSA id cv7sm2666110pjb.9.2020.07.21.03.44.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Jul 2020 03:44:42 -0700 (PDT) From: Cheng-Yi Chiang To: linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] ASoC: qcom: dt-bindings: Add sc7180 machine bindings Date: Tue, 21 Jul 2020 18:44:21 +0800 Message-Id: <20200721104422.369368-2-cychiang@chromium.org> X-Mailer: git-send-email 2.28.0.rc0.105.gf9edc3c819-goog In-Reply-To: <20200721104422.369368-1-cychiang@chromium.org> References: <20200721104422.369368-1-cychiang@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: Taniya Das , devicetree@vger.kernel.org, tzungbi@chromium.org, Banajit Goswami , alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org, Patrick Lai , Takashi Iwai , Liam Girdwood , Rob Herring , Bjorn Andersson , Andy Gross , Rohit kumar , Mark Brown , dianders@chromium.org, dgreid@chromium.org, linux-arm-kernel@lists.infradead.org, Cheng-Yi Chiang 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" Add devicetree bindings documentation file for sc7180 sound card. Signed-off-by: Cheng-Yi Chiang --- .../bindings/sound/qcom,sc7180.yaml | 130 ++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,sc7180.yaml diff --git a/Documentation/devicetree/bindings/sound/qcom,sc7180.yaml b/Documentation/devicetree/bindings/sound/qcom,sc7180.yaml new file mode 100644 index 000000000000..82f9483276eb --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,sc7180.yaml @@ -0,0 +1,130 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/qcom,sc7180.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies Inc. SC7180 ASoC sound card driver + +maintainers: + - Rohit kumar + - Cheng-Yi Chiang + +description: + This binding describes the SC7180 sound card which uses LPASS for audio. + +definitions: + + dai: + type: object + properties: + sound-dai: + maxItems: 1 + $ref: /schemas/types.yaml#/definitions/phandle-array + description: phandle array of the codec or CPU DAI + + required: + - sound-dai + +properties: + compatible: + contains: + const: qcom,sc7180-sndcard + + audio-routing: + $ref: /schemas/types.yaml#/definitions/non-unique-string-array + description: + A list of the connections between audio components. Each entry is a + pair of strings, the first being the connection's sink, the second + being the connection's source. + + model: + $ref: /schemas/types.yaml#/definitions/string + description: User specified audio sound card name + + aux-dev: + $ref: /schemas/types.yaml#/definitions/phandle + description: phandle of the codec for headset detection + +patternProperties: + "^dai-link(@[0-9]+)?$": + description: + Each subnode represents a dai link. Subnodes of each dai links would be + cpu/codec dais. + + type: object + + properties: + link-name: + description: Indicates dai-link name and PCM stream name. + $ref: /schemas/types.yaml#/definitions/string + maxItems: 1 + + reg: + description: dai link address. + $ref: /schemas/types.yaml#/definitions/uint32 + maxItems: 1 + + playback-only: + description: Specify that the dai link is only for playback. + $ref: /schemas/types.yaml#/definitions/flag + + capture-only: + description: Specify that the dai link is only for capture. + $ref: /schemas/types.yaml#/definitions/flag + + cpu: + $ref: "#/definitions/dai" + + codec: + $ref: "#/definitions/dai" + + required: + - link-name + - reg + - cpu + - codec + + additionalProperties: false + +examples: + + - | + sound { + compatible = "qcom,sc7180-sndcard"; + model = "sc7180-snd-card"; + + audio-routing = + "Headphone Jack", "HPOL", + "Headphone Jack", "HPOR"; + + aux-dev = <&alc5682>; + + #address-cells = <1>; + #size-cells = <0>; + + dai-link@0 { + reg = <0>; + link-name = "MultiMedia0"; + cpu { + sound-dai = <&lpass_cpu 0>; + }; + + codec { + sound-dai = <&alc5682 0>; + }; + }; + + dai-link@1 { + reg = <1>; + link-name = "MultiMedia1"; + playback-only; + cpu { + sound-dai = <&lpass_cpu 1>; + }; + + codec { + sound-dai = <&max98357a>; + }; + }; + }; -- 2.28.0.rc0.105.gf9edc3c819-goog