From patchwork Tue May 9 12:42:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aidan MacDonald X-Patchwork-Id: 91585 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2850542vqo; Tue, 9 May 2023 05:43:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5BDks75q17ErbeqP8wUUrJN+rZNoYeYGwufSJidRxfX++YTWuuwuF6kAsU70U+PxeHtdLY X-Received: by 2002:a05:6a00:17a3:b0:643:aa8d:8cd7 with SMTP id s35-20020a056a0017a300b00643aa8d8cd7mr19226017pfg.32.1683636228283; Tue, 09 May 2023 05:43:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683636228; cv=none; d=google.com; s=arc-20160816; b=c+tAppBN/3Z8nz89eY/ya0pNfKhda96T2m77IMREXmfV1cSUlspCZd7M48pY+CdL4T 048GGnMFXbmvjm8gBBBkHrlsg0joB26amUhpDvcUcba8OJKND8BO7khTDkw8GojW/OYk CtTrOac2YoPyL/fqagivbMOSP2NiWBTSyOjhFGyyLBJ52dbcvWuyE+HZIthC0N7mflyU a/GEMfUPmd/Jn95oYYLlHFaLxjc7o0BPHx9cwC/KGcbdisCrnAzBXxSKgQe4bbW9ufVo qAI2rIBP1eZLNugXis1FI3DByyVHQqSEkFCePNaO1vAXM9aiJHGmP4oetAN4UrGDvMPV GKDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ogUelxBN/iBvkYaR2z1a5yJ9iiiICSJTX6onuQ39wKc=; b=HiYHgpuPo02GumT6YSw5Bvx5yqZICklbHpAjriycrInWM3go0nUTbUOtW2O/RRnjsE f0AncPpGa2YnbQV6/TzUYrDUpJhtmuSbOL/7FuefSSYmQt1tMBjq46TIzrTCQlXZtt1y tp5CnLjeSfzsAF++Ea/R+kFs84lOl/uA/bVUrfokUVP6wrQpo+oYow/YdNE0jNfS0trr TPNSUM+tfcASLBvX7hFQwgYDxp3WTKB10S3ULCLAjEs3a/TTO9zNt5euu8ZVgNV8eO35 nxjSzTHic59Anpk1X9a4hA83KxguuhCuDY9A/64WCNv5L6FwvTv+5qoSUY9Bb0zVMHwh 0hwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=bP7R2553; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w1-20020a637b01000000b00502d825633asi1327817pgc.639.2023.05.09.05.43.35; Tue, 09 May 2023 05:43:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=bP7R2553; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230029AbjEIMnJ (ORCPT + 99 others); Tue, 9 May 2023 08:43:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234704AbjEIMnF (ORCPT ); Tue, 9 May 2023 08:43:05 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67E1E4C1A; Tue, 9 May 2023 05:42:49 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-3062db220a3so3753184f8f.0; Tue, 09 May 2023 05:42:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683636163; x=1686228163; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ogUelxBN/iBvkYaR2z1a5yJ9iiiICSJTX6onuQ39wKc=; b=bP7R25534DGHvBCha1PbVOLFyNyApN14uU0+rqLMNhnVLU10jdo0WpgiD4Fm5V0yAI qB9qqNDTJNCGQpxxKLifFkvcNrAT6QpRIzcuFAQOHfNsG4T1LJkdu9BJqroSTIQuCnSH hVmH8GmS4d3T4uHCkbAxE+GJfb+6wFmAyVPw8Qr8/MJJwoTr0DX3abclrKNkPLwDd3qq QnkES30ONz6qzfN90XpFKCc6PfH1ofxZHL/Kfgi8YzSg/5h5z+MdHLX6fTrmTadngxAg nsULLXonZPl8d+eq1IQ4r5tR/1ucDnjMokuQ606bWx9lLRVU7nOwih+KSmfHz8CWWfn8 2Ykw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683636163; x=1686228163; 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=ogUelxBN/iBvkYaR2z1a5yJ9iiiICSJTX6onuQ39wKc=; b=IhkAgda/IgAVEFTtxKaJ7Z6LrvOQg85j5YFFXU+A+e4dgv4bjcJMlXn8vOiCSDOR8m Ttrmy4lXS8rmzIx44wk4xmUis6tjNyznFha/QS6aXbQap4OtljatYHFs2HUQLfcwyVPb oEKXLH98pYtt8vjuLhZ6x8ombL4uqWnFW6Id3xQ4cmSoGTk7z5TqjhpID1kB7Sio6QAe PZa+pXf75mSLeaHMOuu+elZ76jPDAco1y9C6woaNYccrI2x2eSVDzyjZ7msCU+51LcHZ X7XK5FcfLWt5qbYtTQ1t+moRgAAbc1ux3iOf5A057ibhRvEQghIzjyhL00I30RK5MNwH 5ykQ== X-Gm-Message-State: AC+VfDzV9AHiEwpazotJBtL/owgvtpbN/sESEuTkcBEa94MCTKfAVdrG 4nChmAW5loeJ+60dJDnZ6MI= X-Received: by 2002:a05:6000:1a48:b0:306:34e4:be40 with SMTP id t8-20020a0560001a4800b0030634e4be40mr8884827wry.33.1683636163178; Tue, 09 May 2023 05:42:43 -0700 (PDT) Received: from localhost ([167.98.27.226]) by smtp.gmail.com with ESMTPSA id i14-20020a5d558e000000b003079f2c2de7sm3058083wrv.112.2023.05.09.05.42.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 May 2023 05:42:42 -0700 (PDT) From: Aidan MacDonald To: broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, tsbogend@alpha.franken.de, paul@crapouillou.net Cc: lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org Subject: [PATCH v1 1/3] ASoC: jz4740-i2s: Add support for X1000 SoC Date: Tue, 9 May 2023 13:42:36 +0100 Message-Id: <20230509124238.195191-1-aidanmacdonald.0x0@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765420541860068062?= X-GMAIL-MSGID: =?utf-8?q?1765420541860068062?= The X1000's AIC is similar to the AIC found on other Ingenic SoCs. It has symmetric playback/capture rates like the JZ4740, but more flexible clocking when outputting the system or bit clocks. Signed-off-by: Aidan MacDonald --- sound/soc/jz4740/jz4740-i2s.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sound/soc/jz4740/jz4740-i2s.c b/sound/soc/jz4740/jz4740-i2s.c index 6d9cfe0a5041..7cb563bb8b09 100644 --- a/sound/soc/jz4740/jz4740-i2s.c +++ b/sound/soc/jz4740/jz4740-i2s.c @@ -329,6 +329,14 @@ static const struct i2s_soc_info jz4760_i2s_soc_info = { .field_i2sdiv_playback = REG_FIELD(JZ_REG_AIC_CLK_DIV, 0, 3), }; +static const struct i2s_soc_info x1000_i2s_soc_info = { + .dai = &jz4740_i2s_dai, + .field_rx_fifo_thresh = REG_FIELD(JZ_REG_AIC_CONF, 24, 27), + .field_tx_fifo_thresh = REG_FIELD(JZ_REG_AIC_CONF, 16, 20), + .field_i2sdiv_capture = REG_FIELD(JZ_REG_AIC_CLK_DIV, 0, 8), + .field_i2sdiv_playback = REG_FIELD(JZ_REG_AIC_CLK_DIV, 0, 8), +}; + static struct snd_soc_dai_driver jz4770_i2s_dai = { .probe = jz4740_i2s_dai_probe, .playback = { @@ -440,6 +448,7 @@ static const struct of_device_id jz4740_of_matches[] = { { .compatible = "ingenic,jz4760-i2s", .data = &jz4760_i2s_soc_info }, { .compatible = "ingenic,jz4770-i2s", .data = &jz4770_i2s_soc_info }, { .compatible = "ingenic,jz4780-i2s", .data = &jz4780_i2s_soc_info }, + { .compatible = "ingenic,x1000-i2s", .data = &x1000_i2s_soc_info }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, jz4740_of_matches); From patchwork Tue May 9 12:42:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aidan MacDonald X-Patchwork-Id: 91588 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2854453vqo; Tue, 9 May 2023 05:50:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4HoZvOpU2NjKSKNsSdwnN+5Pva0NLxALelB/mk5uRNru2dRwTlXDHBKg80NfPeHKuYs6Fb X-Received: by 2002:a05:6a00:8cf:b0:640:e12a:3a20 with SMTP id s15-20020a056a0008cf00b00640e12a3a20mr17851620pfu.1.1683636624434; Tue, 09 May 2023 05:50:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683636624; cv=none; d=google.com; s=arc-20160816; b=Zk7msYU9c9TLMFV9rMaIte7vmzttIb3DqtRvfsxCnI8jTAM4XK1/gdg4pwtwa/0j79 5eofo7RiFkJjcht7I7Cc1047kEtdu4VfUN9is9N9JIIhDHrlJW/0PIHK1zpIa1eqsEPm YDnGHTdFIIoTF14L5SiFFDKakaD8G4gQT1uzhTDA9rPRT3EMCfoYAUpnWVmpJuJkIdEF 7+v6phquSIo+aau/Wdn58Q1+xLQcnxlYRc1EYAowiqqChgg3PoOY3iCDcWOPkc9vP2YD RLSPU3jQVsAar79OoHJ0mq8+f277gTv4GLyHZutFfGWxFo66V3HrP/JWJ3u08woKj9HW 7Gng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5LNn6nFKtK6r2VL4gNamF8ksWMIm4Y9cfvJCgSo1awo=; b=f0S4WQcDDgpAfUSOOf/fp2Il0gExs7FXQ62uTuqPSsS73tMltukP5QJW0fbY0e6aLX V490PPXNXONiJeKQsAoF+NithnHXdlaFTQg4/3VfRip/LJ3z2ade+aam1UtxYThivILY Azr6gEF0aQ3cAE5OLQT+PJQlq3c7zymOfsZv+H10uT4pA5Mpdoahzf2WRhdpscalcP8E JhLm33bg1iT7pb49lraEevcBGS9waQk1Z4WRwwi9eusLKCFJSvVyrP2Z3vvkf2jogxEx +7upLD/v/AZiGo7I0LHWuFBwPTf5+VIOaAiMYvO2icxwUJuks8RS6D0CS/AkCUenzhBB nelw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=mEu7EgzD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u132-20020a62798a000000b0064398a54dc8si2470503pfc.376.2023.05.09.05.50.09; Tue, 09 May 2023 05:50:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=mEu7EgzD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235215AbjEIMnM (ORCPT + 99 others); Tue, 9 May 2023 08:43:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230060AbjEIMnI (ORCPT ); Tue, 9 May 2023 08:43:08 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D91E525E; Tue, 9 May 2023 05:42:51 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3f42b984405so5181575e9.3; Tue, 09 May 2023 05:42:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683636164; x=1686228164; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=5LNn6nFKtK6r2VL4gNamF8ksWMIm4Y9cfvJCgSo1awo=; b=mEu7EgzD3/wxi5z97BM9R3EjmlIs19wq/1FfH07l2LsO5IkpZQ4l/tM4OlRkLZ9JDw eUL0X6Tvu1vXGGcximjiZvAuzwh4Vbh6GDqhOEVihYT257kztfihiZbhAbVgx/vo+/sp DixHzNs3pZSUgi7Vm67heH0Ykzl+/VLRxsVsVFoH+gAKnbxYr4Qdp5Nk3IYbBwnLSh6+ whJXIpx7zZevmEWsn43U5IqzIFxtkMsFu4gaLq/xLA4EDTKn0kUnitRodUufZbcVQBG8 zEG2G9YqY1tL7WV7VmKkGzrA6DXucS4JDQifN+Qs3bSgPpbTwF5T6bVSn4kzhxvI3+bn u4rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683636164; x=1686228164; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5LNn6nFKtK6r2VL4gNamF8ksWMIm4Y9cfvJCgSo1awo=; b=NjzE9tPCTqJBBtZ6JgayL9CYXl5NFD6uGVk4UelHnv7jkbSwIb91qSVSwAuVo37pxS pLV5qJbTNaaPWA3eKIlZ2LZqz3uTvGLZ/Qkk0QU0XT2OS2QcI+hLC+WeRBKnWMaq/pJb itawMyp7XiGfOY1b5C9DYEcL4DanHVfpYDGuj9GqpVyD+Hl2oeIqrh+xilztfn22oE9J QiuA+owl8zEP7yFK4tonrwihFEu/YC3VQ0KrQMmsXMc/3TQxMT8WmU3RRkwxrEffv69x Hlifydk4XUNNgzN3gN7/IFgzLICb/7kLJjE52I9zI+sZ/lgakmTIAD8OZKN3AI+2u8Uz rSTA== X-Gm-Message-State: AC+VfDz9qb9gJ+V2NruSKneqKRDFFVUBjTS28Bk/ybcN3NwJN/GtGz+p WqvYGi/4wnm66cOpu9IKafw= X-Received: by 2002:a7b:cd99:0:b0:3f1:6757:6242 with SMTP id y25-20020a7bcd99000000b003f167576242mr9518973wmj.27.1683636164205; Tue, 09 May 2023 05:42:44 -0700 (PDT) Received: from localhost ([167.98.27.226]) by smtp.gmail.com with ESMTPSA id s2-20020a5d4ec2000000b003063a92bbf5sm14401481wrv.70.2023.05.09.05.42.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 May 2023 05:42:43 -0700 (PDT) From: Aidan MacDonald To: broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, tsbogend@alpha.franken.de, paul@crapouillou.net Cc: lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org Subject: [PATCH v1 2/3] ASoC: ingenic: Add compatible string for X1000 SoC Date: Tue, 9 May 2023 13:42:37 +0100 Message-Id: <20230509124238.195191-2-aidanmacdonald.0x0@gmail.com> In-Reply-To: <20230509124238.195191-1-aidanmacdonald.0x0@gmail.com> References: <20230509124238.195191-1-aidanmacdonald.0x0@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765420957390666329?= X-GMAIL-MSGID: =?utf-8?q?1765420957390666329?= The audio controller in the X1000 is similar to the JZ47xx SoCs. Signed-off-by: Aidan MacDonald Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/sound/ingenic,aic.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/sound/ingenic,aic.yaml b/Documentation/devicetree/bindings/sound/ingenic,aic.yaml index c59a7cd9eaa9..d15c000f14e1 100644 --- a/Documentation/devicetree/bindings/sound/ingenic,aic.yaml +++ b/Documentation/devicetree/bindings/sound/ingenic,aic.yaml @@ -23,6 +23,7 @@ properties: - ingenic,jz4760-i2s - ingenic,jz4770-i2s - ingenic,jz4780-i2s + - ingenic,x1000-i2s - items: - const: ingenic,jz4725b-i2s - const: ingenic,jz4740-i2s From patchwork Tue May 9 12:42:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aidan MacDonald X-Patchwork-Id: 91587 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2853623vqo; Tue, 9 May 2023 05:49:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6WAufoXRGm7ncug2U0pJOvN6LU0J2m07cqiHvUzTkiUUTZ1rSE05owicbzRzK1bCbcdrqG X-Received: by 2002:a05:6a21:99a1:b0:100:4369:164c with SMTP id ve33-20020a056a2199a100b001004369164cmr10071258pzb.13.1683636540408; Tue, 09 May 2023 05:49:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683636540; cv=none; d=google.com; s=arc-20160816; b=0rx+ivrNVfBU6sMk9yMb8IXhcKBeIXwk4t8o0TGbhfR6k9qThXyjklHU6ie5B7qs2S n4XIPgNw0TEeH+i5wvIUTDA6n0d3WPmRfqfwLlBSNCR/k3lmXrlyp51F6EWvxWhiS+jA aREyLTg07SMFRLbCaF6CpggDcgg2ohQ4J/bv93mjsOOrq1kEKBYt0BYt5KTMJ4Vm+Ypl dlyxKR0xvTTOANYcDBhrFdmjHjs/QIurHHtZxAluekgW82hbRia1XXZ+PCZKZggMTRGN KxyRHVnLO/v1ffRzb8h6YK156L0MKHhyBybXnuUdPGvyPuDMfFfhEu3waR8hRgzXULrV BkOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZplJga8URR6w22NuOXzuaUfxRbCk+zusrF2eonp43Ic=; b=bDZOTZk1qbzVMWDcPn9X0CZUsX2bbpd/h6x1QE6KBJ/4Zp3UpDH+SGW66XVDxQBtvK FwB02M9j4QiW0f3tnIsylpCtpuEJfgz5r4+IaDFiDYolIqJ2dgvZXkoQbhTEZW+MiFF0 FxyhUTjfBpAcqyVLln5QKHIKoXn1b1EAMZgBkq6TnJ1im3Z/TPZqL8huuAsJLh7/UO13 JByUJHaOuNRieB7owMx+arfaeQVN+iAqnnXilGQVdDYEk3/CBhfsiF/hG+etrKhW6ecG 8/kzfOWtKHEl9daCg7VMclonIsiskIULilHs7foWtF7opQ8vuDzhy+BevsQcZiy+F/3x AsxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=M8kM4F50; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w1-20020a637b01000000b00502d825633asi1327817pgc.639.2023.05.09.05.48.43; Tue, 09 May 2023 05:49:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=M8kM4F50; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235454AbjEIMnS (ORCPT + 99 others); Tue, 9 May 2023 08:43:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235269AbjEIMnM (ORCPT ); Tue, 9 May 2023 08:43:12 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60F5549DE; Tue, 9 May 2023 05:42:53 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-3f420618d5bso20314845e9.1; Tue, 09 May 2023 05:42:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683636165; x=1686228165; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ZplJga8URR6w22NuOXzuaUfxRbCk+zusrF2eonp43Ic=; b=M8kM4F50Y4QTpse4LTLaTC1p2lmcHK/sWrXz58Uxbdofq75cCK6nNc6tPZC5QyUyuq itS6L8KsQbXQLFbX6rssoOqIJTKrxa+d5P4RUpP1y7jwIU+ae5TyoANwDKjMR2GfM1uz DQEmnv60HVaZyyHeULYvT/yZqvXaV8N3/nRaVtvvnuFsm9gMqt9M5UsjptXzOcC8aLJe 5VFkMJrUx1QzSQO1wBTorV4wBjQH/lJxtQ4HN9zf52oYG5ZFLVHp5maEVBBKuWh0G5fa M7/eIHccCIzaMzXED2bvBJYGn00JlpH1Y9bpXKsjk/1lmnhZGyl2HTv6acFjYShVQZWV 5U7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683636165; x=1686228165; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZplJga8URR6w22NuOXzuaUfxRbCk+zusrF2eonp43Ic=; b=COYYWgEmlkHQZt2PqiCMO0QI3mzddFccjEwsm+88tl3UxeGcYmaYoLfNGZnl3MjCT6 MxbP/M8pFLgn2YvQ+ytRZv+N6HIDOcADkdVUFxkupVUe9ocSUiaTfkV7lsYGb0ylV9dp B2M7Kuuaswu0XHkkvf7jaRbHV5NiQFxgL/LQTgxgZCTJpRAxrWalKr5r4z4Ve9dJ++WA bvEwuhv7MzrVGF1MS3TPah7C+Iwgz2sATt/0v6tgm80nhFCLy5x8LhK4oAVysp83mTVd wN9CKhzDP81PGEI6uMDRSJWDNGNR8sv1CUmpQcM1idaqXhKjcArR6slw/uCDuIok64Xm ZERA== X-Gm-Message-State: AC+VfDy6pkaVSeZDYVUrUzLCE14Yxyh0qbhwozStnz29qSAPLOwvvekB Cek1vn49MRJLoat0KFj0Szs= X-Received: by 2002:a05:600c:22d9:b0:3f0:9a90:a5e7 with SMTP id 25-20020a05600c22d900b003f09a90a5e7mr8961042wmg.28.1683636165108; Tue, 09 May 2023 05:42:45 -0700 (PDT) Received: from localhost ([167.98.27.226]) by smtp.gmail.com with ESMTPSA id f1-20020a1cc901000000b003f25b40fc24sm19933419wmb.6.2023.05.09.05.42.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 May 2023 05:42:44 -0700 (PDT) From: Aidan MacDonald To: broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, tsbogend@alpha.franken.de, paul@crapouillou.net Cc: lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org Subject: [PATCH v1 3/3] mips: dts: ingenic: x1000: Add AIC device tree node Date: Tue, 9 May 2023 13:42:38 +0100 Message-Id: <20230509124238.195191-3-aidanmacdonald.0x0@gmail.com> In-Reply-To: <20230509124238.195191-1-aidanmacdonald.0x0@gmail.com> References: <20230509124238.195191-1-aidanmacdonald.0x0@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765420868701453140?= X-GMAIL-MSGID: =?utf-8?q?1765420868701453140?= Add a node for the on-board I2S audio controller. Signed-off-by: Aidan MacDonald --- arch/mips/boot/dts/ingenic/x1000.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/mips/boot/dts/ingenic/x1000.dtsi b/arch/mips/boot/dts/ingenic/x1000.dtsi index 42e69664efd9..cc264cfff826 100644 --- a/arch/mips/boot/dts/ingenic/x1000.dtsi +++ b/arch/mips/boot/dts/ingenic/x1000.dtsi @@ -417,4 +417,22 @@ otg: usb@13500000 { status = "disabled"; }; + + aic: audio-controller@10020000 { + compatible = "ingenic,x1000-i2s"; + reg = <0x10020000 0x38>; + + #sound-dai-cells = <0>; + + interrupt-parent = <&intc>; + interrupts = <1>; + + clocks = <&cgu X1000_CLK_AIC>, + <&cgu X1000_CLK_I2S>; + clock-names = "aic", "i2s"; + + dmas = <&pdma X1000_DMA_I2S0_RX 0xffffffff>, + <&pdma X1000_DMA_I2S0_TX 0xffffffff>; + dma-names = "rx", "tx"; + }; };