Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp612377ybh; Tue, 21 Jul 2020 03:45:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZXmA5E2sL1yWGAXh8mtL7PKZc3Zr7NLR/KAq3JkyZwHYgV53vcslLS1xy0G0pO3SHKi0P X-Received: by 2002:a50:ee07:: with SMTP id g7mr26119978eds.320.1595328338851; Tue, 21 Jul 2020 03:45:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595328338; cv=none; d=google.com; s=arc-20160816; b=miw8JKpuZZJWXbvT02CzUokiPOeTHWKvKivWIhfPkWegKSXFaQ8ZjVrB/wXn05hamo PWRKDCf+mf/qd11428/9/sPtjadUd8cLx3z2D3yJOLW+t+s+4JrWK/zPhER270G4etzg nfp8fIjntSfO6qLXt9sdemZvDsNr3CVa+wt5A0a4Lc1nw7wciotxn74lUVNR2rRVyHw+ VI36utRpupTitQQzp271TUZJF/Wb/YxieSkjhZZAgc2UhENHZGgD/uj3uLiO2Ztl9TAn aimz+Wb7+2C8zJwOBZ3eWwOCM3KhxV0X1558zxYTbIYfS9yBMzWmgiSUSBtup+1E170s ryzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2odOJ5ld037Ng0df9XqmYUK1fIoK1GsBG35/G24WS/o=; b=a3mJaPySAWVyhVxIdT8QXG/405Qn8BZil3whDvTccTDwI8owSTQ3AwscQCJ/AYByMI k1k1z+0BgBO/9cLJAsxyQsnwMtAdhW5Bz9zR+9UccahlQL83QQr5BYat0y7MiKYtP8EO xfXduw8qSP+DZtHUk8WYZlMLhnKjO1Y071Ee74dTmCSLQ1I8fIfdY4fnkxjyMDSR2I1k EIZ2Awb2naPPGwe3tmf7RpWBGweL7QqLTp56LNeZW6vqVcg5s9UTb9z8QHG9aYADQwJw coOSK2H4owmL8LkUAmsaowvBfdV+lJoE1om1T3H1a/uMS+MIKoT9bdDY0F5DjW/RI1jZ VsWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Ki3xZi7c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn20si16060328ejc.341.2020.07.21.03.45.16; Tue, 21 Jul 2020 03:45:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Ki3xZi7c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729310AbgGUKoq (ORCPT + 99 others); Tue, 21 Jul 2020 06:44:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729350AbgGUKoo (ORCPT ); Tue, 21 Jul 2020 06:44:44 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49EE3C0619D9 for ; Tue, 21 Jul 2020 03:44:44 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id j19so11743499pgm.11 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=MzNhjgICrdlMfQY+pTtGyt4EiEVMr4501Dd7Mi07nVQ1f5mf4bLrzNggGG8rKcZjNS ZS+BAs+saAK8NxuQ8eUfSjrrb1hZDCdDo7cmTKUBnuRSebAhIzMq7lk+9SFPE4etVqme 5no08YaWg+bEHz67Vd32GhGm0SgCQlh8q69KF1OAL51FCsLG13TPWlgg4hLdtKVxiskB wqtdXnHO/BcoM3cxHgdmwDl+TvSrOYhAGre1QuuazD7wmflUj1HFRY0mIADwJRiHVKUU itJmHJtK2HNG2ATYXnQ1Q57jUjHATKXy60fo0/I1pUm1iRBkJ+yq9/CujfQ1SaJgBWER k3rw== X-Gm-Message-State: AOAM533Xss5aBOhixfdYe1OcuFReUOMko2fTBCh2cfS/flfz3oTMcC+t 8XCRoXOECEdAcKKsUA/L3J5qy3E5QKLdgQ== 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 Cc: Mark Brown , Taniya Das , Rohit kumar , Banajit Goswami , Patrick Lai , Andy Gross , Bjorn Andersson , Liam Girdwood , Rob Herring , Jaroslav Kysela , Takashi Iwai , dianders@chromium.org, dgreid@chromium.org, tzungbi@chromium.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, alsa-devel@alsa-project.org, Cheng-Yi Chiang 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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