From patchwork Tue Oct 27 03:22:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cheng-Yi Chiang X-Patchwork-Id: 1388263 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=Ll0sXoLI; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4CKxq05Xlnz9sSG for ; Tue, 27 Oct 2020 14:22:52 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2504880AbgJ0DWv (ORCPT ); Mon, 26 Oct 2020 23:22:51 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:33046 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2504878AbgJ0DWv (ORCPT ); Mon, 26 Oct 2020 23:22:51 -0400 Received: by mail-pg1-f196.google.com with SMTP id r186so108173pgr.0 for ; Mon, 26 Oct 2020 20:22:50 -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=L0KXRaQPI3kib1oWwhD95VIImOSn+JCny/rlfxWZiQU=; b=Ll0sXoLIk5hJGxAVBOMnHI0HO8Q6L32owCrh+65IwVxhKPIwAfKyFaBuBut6tSFcRs VAo7C4KFCKyZFyr9MKHYqB9JSZ94Ug22Lq+bCGEepc5lo+ROnU7Tp8LNn56ZnEdySsXj KLDbnsj/5CgMKU2s3GY2AOXVfJRLg4wqIhFfU= 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=L0KXRaQPI3kib1oWwhD95VIImOSn+JCny/rlfxWZiQU=; b=M5MLH6EeQvp0By4/wVxQvvD7lxuqYb+xMqjDUb2rdGWQYeHsnVDgLhyoB5JFqx8Q1P gdtEbihTEY+ST111JQhsQt3MMG2ts2isF52/uVlGUxNKpWrWegO/ktZ2fyFyhYz3WGto G96XgrS1zjazkI1VEVVM2/UKgM7NmwVxWsGYq2+g7ZZlr0Z0O4bt4o2+CZ6MBQKwqOIX XxDAguoJdYdNTcF5fbcRK2xROmN5Tz1PnQJbhFj4aBwuSXA6npmth8BgsU1MfsSYwsS3 SDK8v+3hxzeVajUTSYq3u6jL6RgHKjHjcI4iLLzE4xysamtHOlwOX8jSX+VCt+KYLf3R T50g== X-Gm-Message-State: AOAM5306v7YXgLB2RAahXqrwlOQ/ziGSBDqtahmku/3l9djdU0jFWV80 kVYAZtefBqUWRcdD9k2d+QklOw== X-Google-Smtp-Source: ABdhPJxlhikuWOsdRT5VC3qte90Wjru+VsLJguqJe9ZwqK/9oriR70SkKepQ1ehtoLTEZShuztZhlg== X-Received: by 2002:a63:4525:: with SMTP id s37mr102249pga.45.1603768970080; Mon, 26 Oct 2020 20:22:50 -0700 (PDT) Received: from localhost ([2401:fa00:1:10:de4a:3eff:fe7d:d39c]) by smtp.gmail.com with ESMTPSA id k7sm183824pfa.184.2020.10.26.20.22.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Oct 2020 20:22:49 -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 , Srini Kandagatla , Stephan Gerhold , Matthias Brugger , Heiko Stuebner , Srinivasa Rao , Ajye Huang , xuyuqing@huaqin.corp-partner.google.com, 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 v12 1/2] ASoC: google: dt-bindings: Add sc7180-trogdor machine bindings Date: Tue, 27 Oct 2020 11:22:33 +0800 Message-Id: <20201027032234.1705835-2-cychiang@chromium.org> X-Mailer: git-send-email 2.29.0.rc2.309.g374f81d7ae-goog In-Reply-To: <20201027032234.1705835-1-cychiang@chromium.org> References: <20201027032234.1705835-1-cychiang@chromium.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add devicetree bindings documentation file for sc7180 sound card. Signed-off-by: Cheng-Yi Chiang Reviewed-by: Srinivas Kandagatla --- Changes from v11 to v12 - Documentation: - Change the file and title name for new compatible string google,sc7180-trogdor. - Change the example of model name. .../bindings/sound/google,sc7180-trogdor.yaml | 130 ++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/google,sc7180-trogdor.yaml diff --git a/Documentation/devicetree/bindings/sound/google,sc7180-trogdor.yaml b/Documentation/devicetree/bindings/sound/google,sc7180-trogdor.yaml new file mode 100644 index 000000000000..efc34689d6b5 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/google,sc7180-trogdor.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/google,sc7180-trogdor.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Google SC7180-Trogdor ASoC sound card driver + +maintainers: + - Rohit kumar + - Cheng-Yi Chiang + +description: + This binding describes the SC7180 sound card which uses LPASS for audio. + +properties: + compatible: + const: google,sc7180-trogdor + + 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 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +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. + + cpu: + description: Holds subnode which indicates cpu dai. + type: object + properties: + sound-dai: true + + codec: + description: Holds subnode which indicates codec dai. + type: object + properties: + sound-dai: true + + required: + - link-name + - cpu + - codec + + additionalProperties: false + +required: + - compatible + - model + - "#address-cells" + - "#size-cells" + +additionalProperties: false + +examples: + + - | + sound { + compatible = "google,sc7180-trogdor"; + model = "sc7180-rt5682-max98357a-1mic"; + + audio-routing = + "Headphone Jack", "HPOL", + "Headphone Jack", "HPOR"; + + #address-cells = <1>; + #size-cells = <0>; + + dai-link@0 { + link-name = "MultiMedia0"; + reg = <0>; + cpu { + sound-dai = <&lpass_cpu 0>; + }; + + codec { + sound-dai = <&alc5682 0>; + }; + }; + + dai-link@1 { + link-name = "MultiMedia1"; + reg = <1>; + cpu { + sound-dai = <&lpass_cpu 1>; + }; + + codec { + sound-dai = <&max98357a>; + }; + }; + + dai-link@2 { + link-name = "MultiMedia2"; + reg = <2>; + cpu { + sound-dai = <&lpass_hdmi 0>; + }; + + codec { + sound-dai = <&msm_dp>; + }; + }; + };