From patchwork Fri Jul 31 08:40:22 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: 1339316 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=MOhgr/rC; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4BJ12V6d6Nz9sTH for ; Fri, 31 Jul 2020 18:40:50 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731758AbgGaIku (ORCPT ); Fri, 31 Jul 2020 04:40:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730262AbgGaIkt (ORCPT ); Fri, 31 Jul 2020 04:40:49 -0400 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAC9CC061574 for ; Fri, 31 Jul 2020 01:40:49 -0700 (PDT) Received: by mail-pj1-x1041.google.com with SMTP id kr4so4828566pjb.2 for ; Fri, 31 Jul 2020 01:40:49 -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=NIzfJh8T5wa5GwVtEriaAG+RkPfrW2T7ykJIcihGjlM=; b=MOhgr/rC/RSWF73gWEq40/BYQohycUznx2d/6Zk8WrjVGuxsY8FGS/NYO/7RzAdTOt Dpg2irL3d+rb2V7VGdXH/PlJiDZZc24s+CDVG07CgrcRcURH8XCCg3jEkASUj6u8w3Jq EhkS60lWZW4FE7iPvg/Y7hcmxWB5rusNzXHec= 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=NIzfJh8T5wa5GwVtEriaAG+RkPfrW2T7ykJIcihGjlM=; b=dl4tRKOTOCt5IxbEuTDFYU6XxUD5+QpYrMhgYkacapjjfjgMFa4XVe7CgFOz/Hv8e5 ggYveycSGer0xlpLsYM7WTmiwIdFzDOjra7Pbynb40zNQ99EmvsDramBlpAMYelNX8Io rTG9tB2+gKQFkXQ5obZTsBthEzccYany4/es8H3kBJNv06QRPspooFnawCTzisdy3t6B Ue2NAoMd74amVKCXuGLHhGhWR9ks4ZUIEllzb0KPeVjj4PKlsX/Bwi/VQgdv1t8mA7RJ kuytJE8z00SxxtTSRtv0DZw9lkGUenhP40snxD4gQkIeVb7KV9gSnTUOH0cSP1bFJx11 g5Hw== X-Gm-Message-State: AOAM533HIFaQXQFH4l92H8Bi4stlPNnArEAaW9LmI2TmmAJwrH1Oeech bwovcFP3hGdu3y9V64/71fGCQA== X-Google-Smtp-Source: ABdhPJyRoMIwdPxNIs97ZW15pfn3HhdNwjkFFIWLN02NWZAUtvGEPnnpMVHcyoFTzdJO0kGOteRhwg== X-Received: by 2002:a17:902:aa91:: with SMTP id d17mr1223925plr.27.1596184849385; Fri, 31 Jul 2020 01:40:49 -0700 (PDT) Received: from localhost ([2401:fa00:1:10:de4a:3eff:fe7d:d39c]) by smtp.gmail.com with ESMTPSA id n25sm9228625pff.51.2020.07.31.01.40.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 31 Jul 2020 01:40:48 -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 , 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 v3 1/2] ASoC: qcom: dt-bindings: Add sc7180 machine bindings Date: Fri, 31 Jul 2020 16:40:22 +0800 Message-Id: <20200731084023.2678931-2-cychiang@chromium.org> X-Mailer: git-send-email 2.28.0.163.g6104cc2f0b6-goog In-Reply-To: <20200731084023.2678931-1-cychiang@chromium.org> References: <20200731084023.2678931-1-cychiang@chromium.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org 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 --- .../bindings/sound/qcom,sc7180.yaml | 113 ++++++++++++++++++ 1 file changed, 113 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..ce8a5a2d9df9 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,sc7180.yaml @@ -0,0 +1,113 @@ +# 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 + + cpu: + $ref: "#/definitions/dai" + + codec: + $ref: "#/definitions/dai" + + required: + - link-name + - 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 { + link-name = "MultiMedia0"; + cpu { + sound-dai = <&lpass_cpu 0>; + }; + + codec { + sound-dai = <&alc5682 0>; + }; + }; + + dai-link@1 { + link-name = "MultiMedia1"; + cpu { + sound-dai = <&lpass_cpu 1>; + }; + + codec { + sound-dai = <&max98357a>; + }; + }; + };