From patchwork Mon Apr 10 22:29:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexander Sverdlin X-Patchwork-Id: 13206790 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 09251C77B61 for ; Mon, 10 Apr 2023 22:31:42 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 65D9B1020; Tue, 11 Apr 2023 00:30:49 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 65D9B1020 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1681165899; bh=rYU0Rt5rkppKLpzAa3xZ8NW00zaYwLdeynVztImYSGU=; h=From:To:Subject:Date:CC:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=hqP567w7VT3kbASbxIfIww8agGKgOtZWc9lUsFhzPIvMXOBfL+h197lJCtRp0+lwN 3OFkdx77z2OMs/Yl44aI1ixcWxgaf6ecJAyEkMuNjb/RUWY+hNPFSHhytQusWy5OO/ G3zomQemd5wKhmvrAp/bNEp5NppsYIZSLTZP26o8= Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id EAB45F8032B; Tue, 11 Apr 2023 00:30:25 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A7116F80448; Tue, 11 Apr 2023 00:30:20 +0200 (CEST) Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id DB277F80100 for ; Tue, 11 Apr 2023 00:30:06 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz DB277F80100 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=RaOH+5cp Received: by mail-wm1-x333.google.com with SMTP id l16so3039095wms.1 for ; Mon, 10 Apr 2023 15:30:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1681165803; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0D4LsfAW6191QwNdK4ta66PY+hl1RuuGNyGsehh1bKM=; b=RaOH+5cpTaSGaPQ96/dB25hRT8d8reD+ky6sQeH+7WLElvuuAeDsMN96MQEUehm+nl JquppEasMJwoOBkDPoD+jS09xZgi+pR8KVWYco2JDjdqDzZOZ93TiCJ8oo98L/nZ6R+E zj5u4+eHMwtpZL+YR6OACcLwnHOwpuf4Al+WRJfyx3ZdD7DaDvJAU91h98FwV0mXXAgI w2QgNZfU9hwTD/6SiqVidbBIy+Etb3MgesVHNdhS7npny42SK2rFfCG1AfHMd0CAymgP UjQcVQjB7qKHjqkzmU9MwETrEGr4DDTDe1o84HdKOz97QWclHo1J3suc+iSKe/6YxGtm SGEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681165803; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0D4LsfAW6191QwNdK4ta66PY+hl1RuuGNyGsehh1bKM=; b=Jsck3rxLlzAbmC3t5iilsqi6yY8ySmIxk0yg7sN3m6wH7cSRw6wn6n+8VBaZ2rXBKM SFDVykXDgFoVnq6CJDsdyIiZeskjSszvvv8P+8/huzBHahAjU7zz9oP8xcB/lbd50LX6 kKjSzcnOp/YTdh1PhaJoM/tCq3DgHpmG3NhPci9wPwO+sBAhpGLWHfmoUz24LH19VsmB IxI/7Jh/wEtNhdCeLFvVwThK88c1Qws6NVaGd9Mj7uZk5ZRSo8wXDXa6OQ7ocVpaDnEx ajA8SQ9SSfaDHe1DY5m7f/8ZTYHKl28JTFjDsqsxVU7NxWmjoNHOTMnD1HwYSr0KBCNC yw5Q== X-Gm-Message-State: AAQBX9cD3KkVTVEP8IvBLKg5RYpZ+cSlpXm/AkytCH7NHujW7lXYBaEJ qeihZwrqN3uLODMh8Fivqks= X-Google-Smtp-Source: AKy350ZNlm7b4LIjyU0q14EYTktx6/KUiaIJFJCINddBIpuiCQNGe64Jzpa+jWPi9kCKl0LeTthkGw== X-Received: by 2002:a05:600c:c4:b0:3ed:f5d4:3bff with SMTP id u4-20020a05600c00c400b003edf5d43bffmr8570805wmm.38.1681165803300; Mon, 10 Apr 2023 15:30:03 -0700 (PDT) Received: from localhost ([2a02:1210:8629:800:82ee:73ff:feb8:99e3]) by smtp.gmail.com with UTF8SMTPSA id n4-20020a5d51c4000000b002efb55de21dsm8613137wrv.103.2023.04.10.15.30.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 10 Apr 2023 15:30:02 -0700 (PDT) From: Alexander Sverdlin To: devicetree@vger.kernel.org Subject: [PATCH v2 1/2] dt-bindings: sound: ep93xx: Add I2S description Date: Tue, 11 Apr 2023 00:29:57 +0200 Message-Id: <20230410222958.2321398-1-alexander.sverdlin@gmail.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Message-ID-Hash: VP6NO4NESGFJFEYE24LDSZU6LL4RMJVB X-Message-ID-Hash: VP6NO4NESGFJFEYE24LDSZU6LL4RMJVB X-MailFrom: alexander.sverdlin@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Alexander Sverdlin , Hartley Sweeten , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Nikita Shubin X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Add device tree bindings for Cirrus Logic EP93xx internal SoCs' I2S controller. Signed-off-by: Alexander Sverdlin Reviewed-by: Krzysztof Kozlowski --- Changelog: v2: - Incorporated most of the suggestions from Krzysztof Kozlowski [1] - Dropped AC97 (deleted from the tree) [1]. https://lore.kernel.org/lkml/46d5b6af-23e1-4178-83bc-b4a435b1426e@linaro.org/ .../bindings/sound/cirrus,ep9301-i2s.yaml | 66 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 67 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/cirrus,ep9301-i2s.yaml diff --git a/Documentation/devicetree/bindings/sound/cirrus,ep9301-i2s.yaml b/Documentation/devicetree/bindings/sound/cirrus,ep9301-i2s.yaml new file mode 100644 index 000000000000..9c01310a5445 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/cirrus,ep9301-i2s.yaml @@ -0,0 +1,66 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/cirrus,ep9301-i2s.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cirrus EP93xx I2S Controller + +description: | + The I2S controller is used to stream serial audio data between the external + I2S CODECs’, ADCs/DACs, and the ARM Core. The controller supports I2S, Left- + and Right-Justified DSP formats. + +maintainers: + - Alexander Sverdlin + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + const: cirrus,ep9301-i2s + + '#sound-dai-cells': + const: 0 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + minItems: 3 + maxItems: 3 + + clock-names: + items: + - const: mclk + - const: sclk + - const: lrclk + +required: + - compatible + - '#sound-dai-cells' + - reg + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + i2s: i2s@80820000 { + compatible = "cirrus,ep9301-i2s"; + #sound-dai-cells = <0>; + reg = <0x80820000 0x100>; + interrupt-parent = <&vic1>; + interrupts = <28>; + clocks = <&syscon 29>, + <&syscon 30>, + <&syscon 31>; + clock-names = "mclk", "sclk", "lrclk"; + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index 4485969f58f1..da829bedb89b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2072,6 +2072,7 @@ M: Alexander Sverdlin L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) S: Maintained F: Documentation/devicetree/bindings/iio/adc/cirrus,ep9301-adc.yaml +F: Documentation/devicetree/bindings/sound/cirrus,ep9301-* F: arch/arm/boot/compressed/misc-ep93xx.h F: arch/arm/mach-ep93xx/ F: drivers/iio/adc/ep93xx_adc.c