From patchwork Fri Aug 31 15:02:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 10584009 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DD4AC139B for ; Fri, 31 Aug 2018 15:05:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CD568276D6 for ; Fri, 31 Aug 2018 15:05:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C1E5427F8F; Fri, 31 Aug 2018 15:05:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 46F67276D6 for ; Fri, 31 Aug 2018 15:05:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=euJrvPj1Yt9CK0QPEkSO8aMU83nqbItpg8leq8uNjF8=; b=Zw7yYXacZQSMn8hJZt1wHWSQgS t9gYRe4Xtx52eP9taLz0NGvoPIwDAuMqRUwoBXmRiWUoOwaeIHG/jPdTOtu5XwLNtvBNVpxAhnaeZ ugrHunoixhq4RHNC7uJJd1UMFeuUL7mILNwaaVFu9CZm2hn7OKno1B9TnVBeuZYOiuce6S7UQwYJg 70rMoFGZa/LnzKSJlVvx8/Wqu3OvrVJL+38JG+Yt+QaNXjxyNkWl4Tz4E4/yKkJds2BTMtzZ87fFO gR+Jgath56FaSwrckBLgeLuUu0K6EwJI5AnFqrjM9Y4/yv7C45om0vRibPlfs7TH6P6mW13/qcvk8 G6UwVyHA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fvkz8-0001Uj-5C; Fri, 31 Aug 2018 15:05:18 +0000 Received: from mail-wr1-f67.google.com ([209.85.221.67]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fvkwZ-000058-EJ for linux-arm-kernel@lists.infradead.org; Fri, 31 Aug 2018 15:02:53 +0000 Received: by mail-wr1-f67.google.com with SMTP id 20-v6so11498811wrb.12 for ; Fri, 31 Aug 2018 08:02:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Mp7HvitQxu82nYe4ft7+MBqxeb+onsmRtvvDDm0lSqg=; b=RFZkALlhsB8MO62L6C4TFEM9J9+NcEG6kSb8BIknlaPZDXVFJSH8L2rhyGnIRMMzvO Dh2E7nsbJ4wnW2Sh0BL7F3XaoLL8WL7w9FEC3a6sCn09bhyvXVCvsEWBnF+vUW5XJJkh U1CwE4OaOq6bioIUwMWLQQDINew/I8ppP3u21cQuok+KmGCFeuTRmg8BoK9XeOY7B+AK pidh3ZshTUv8lqJP4RlXAG+cMp0FEiYsXvoHHfZfHtb1efbBCg5Vko93RE8x1t3J9FQ+ c0pM8EtjmMjn+VgNZsuwwHmYU2sAtWn31m3hUITqstMniyd+7ycU6KhvDvMtUDjov9J6 m+WA== 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; bh=Mp7HvitQxu82nYe4ft7+MBqxeb+onsmRtvvDDm0lSqg=; b=RXRoUCvlm6icDBeW2A9jlKKZZNiqgFdIKGqhszW+b2A4r+9AISaoUBfdXYn8Bhay+f 0i11q5aeYBFB3KcJMqDy1Q46+cZBhU0E0RkfesjyB+HONBvp7GK3gjGx48LqcOJO6UZa Fb4lioH5hJMEHvMGxHWxds9qXfVShOSfi9/5Ect+6rhbwbpmKOUfWLHNrL+htN0BB96+ SKZihAzw9b2Wq+W3e4r2YG1gySyXxJk4LoJmlt1ws5QfXipvPn+nrr8qDUDOVqOJllZ4 YVFGcCmBtCM4p/oiokYiIUT6Kqg3mdU/TFN3NWLtmTYF/jvw4kJh0REHhVz/El0/kcH6 KbrQ== X-Gm-Message-State: APzg51CDbdARzQlB4OF63n91Pcxzflj6fKSjEKwDVCD0vDHWRLmZnC2O rmj4XABM2knH2DwMGPPPQ9NYqQ== X-Google-Smtp-Source: ANB0VdYa/+XLs4ZO1NIA3dzgPjloRvq5a0dUYoZy6qN+WGVWlrPJURATmbjrIz1P0hLPLasHmOSx3w== X-Received: by 2002:adf:8b98:: with SMTP id o24-v6mr10905674wra.110.1535727747141; Fri, 31 Aug 2018 08:02:27 -0700 (PDT) Received: from boomer.baylibre.local ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id 184-v6sm8759797wmv.6.2018.08.31.08.02.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 31 Aug 2018 08:02:26 -0700 (PDT) From: Jerome Brunet To: Kevin Hilman , Carlo Caione Subject: [PATCH 3/3] arm64: dts: meson-axg: s400: add pdm to the sound card Date: Fri, 31 Aug 2018 17:02:18 +0200 Message-Id: <20180831150218.8307-4-jbrunet@baylibre.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180831150218.8307-1-jbrunet@baylibre.com> References: <20180831150218.8307-1-jbrunet@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180831_080239_557041_7EE73B84 X-CRM114-Status: GOOD ( 11.80 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Enable the PDM input device on the S400 and it to the sound card Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-axg-s400.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts index f3e16cbbc61e..92d3064d4966 100644 --- a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts +++ b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts @@ -240,6 +240,9 @@ "TODDR_A IN 2", "TDMIN_C OUT", "TODDR_B IN 2", "TDMIN_C OUT", "TODDR_C IN 2", "TDMIN_C OUT", + "TODDR_A IN 4", "PDM Capture", + "TODDR_B IN 4", "PDM Capture", + "TODDR_C IN 4", "PDM Capture", "TODDR_A IN 6", "TDMIN_LB OUT", "TODDR_B IN 6", "TDMIN_LB OUT", "TODDR_C IN 6", "TDMIN_LB OUT", @@ -312,6 +315,14 @@ sound-dai = <&spdif_dit>; }; }; + + dai-link@8 { + sound-dai = <&pdm>; + + codec { + sound-dai = <&dmics>; + }; + }; }; wifi32k: wifi32k { @@ -394,6 +405,13 @@ }; }; +&pdm { + pinctrl-0 = <&pdm_dclk_a14_pins>, <&pdm_din0_pins>, + <&pdm_din1_pins>, <&pdm_din2_pins>, <&pdm_din3_pins>; + pinctrl-names = "default"; + status = "okay"; +}; + &pwm_ab { status = "okay"; pinctrl-0 = <&pwm_a_x20_pins>;