Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp867950pxb; Sun, 21 Feb 2021 03:10:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJzqWW37IapzNi1JQTU4CbpfIUC4iScZT0f6/2lK+6fdCb12iJqiZIObkw3HDJ6EGhojI4d8 X-Received: by 2002:aa7:cac6:: with SMTP id l6mr18228079edt.357.1613905822358; Sun, 21 Feb 2021 03:10:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613905822; cv=none; d=google.com; s=arc-20160816; b=VCY2L0LeMSTg3oleAF3s7qsYRBpiaOgzYHMZKuEt70L7MAlGDs+9jN9kXrYNiQpRLH pOMIDvIHrETAKWbui8NiWVjsNVN9vrveW2Z/OnYnzFXI382DXODMpydy8IJvK5wrlEcu l/o4tT6IBZWj8NEuHCijQ6D28EwDaE9+yliMwKxI/edVRHqy6LulAQ8gHUH2xO9AHB9w 4xqpbVQupiZAA+CoTzNiTWBl63yuBIDZwxmtll5/wRR8g49rhbVhrzJIUHekQtsW/4BA IgzGHrtY2Sy420kADDykPJJ8QIW6JUYZvnftinSdw37Lacxw7OosjPimGZotu8CuMGDY nm6Q== 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:to:from; bh=fnz91a7BrP8VuUe9uCSa7t/xzMgSNNE/+TXI0nmFxJM=; b=R69D5u/GFw1VCTi92Au0O+xaS14Khr+aDHOD4+idLO9BvWNB9WE4G6pKULM6DXpwzO Ti9uqLHUieTPD/ANWQY2cSPMLKzs0F/25Yv3gewrJgoLIkO/rLk3gYXkkYuffYWOKf8L OpA+6qp6ZCp/vOSQtuwHSP/Ygit1LsmZ1bA2oDPur7xsicsdi9/VbE3IjhaWrz9/4uTy QRq78ij56omlmF+8vJ6Z7a5wEVh/cP60U9w/szJl1cnob9UbQXWDwL6Ntp0A2QlKubyT 7yQOkeGedbbGecDsgJZPog8P/a4P9OHZpJ/uOGKcj0TK4YnDvctxFyVRoJD2UfjntkeG lYqw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rp19si9559065ejb.19.2021.02.21.03.09.59; Sun, 21 Feb 2021 03:10:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229947AbhBULII (ORCPT + 99 others); Sun, 21 Feb 2021 06:08:08 -0500 Received: from honk.sigxcpu.org ([24.134.29.49]:59868 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229817AbhBULIH (ORCPT ); Sun, 21 Feb 2021 06:08:07 -0500 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 0660CFB04; Sun, 21 Feb 2021 12:07:17 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pMBaL3QD9tAE; Sun, 21 Feb 2021 12:07:14 +0100 (CET) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id B3BA4403D9; Sun, 21 Feb 2021 12:07:11 +0100 (CET) From: =?UTF-8?q?Guido=20G=C3=BCnther?= To: Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Catalin Marinas , Will Deacon , =?UTF-8?q?Guido=20G=C3=BCnther?= , Martin Kepplinger , "Angus Ainslie (Purism)" , Krzysztof Kozlowski , Bjorn Andersson , Li Yang , Geert Uytterhoeven , Michael Walle , Max Krummenacher , Nishanth Menon , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 2/6] arm64: dts: librem5-devkit: Add speaker amplifier Date: Sun, 21 Feb 2021 12:07:07 +0100 Message-Id: <53e81ef700ebc77acea774e691888ae8a0a8d4cf.1613905397.git.agx@sigxcpu.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Wire up the amplifier that drives the builtin speaker. Signed-off-by: Guido Günther --- .../dts/freescale/imx8mq-librem5-devkit.dts | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts index 0c0b12c90363..d01bed5eb9e0 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts @@ -165,19 +165,21 @@ wwan_codec: sound-wwan-codec { sound { compatible = "simple-audio-card"; + simple-audio-card,aux-devs = <&speaker_amp>; simple-audio-card,name = "Librem 5 Devkit"; simple-audio-card,format = "i2s"; simple-audio-card,widgets = "Microphone", "Microphone Jack", "Headphone", "Headphone Jack", - "Speaker", "Speaker Ext", + "Speaker", "Builtin Speaker", "Line", "Line In Jack"; simple-audio-card,routing = "MIC_IN", "Microphone Jack", "Microphone Jack", "Mic Bias", "LINE_IN", "Line In Jack", "Headphone Jack", "HP_OUT", - "Speaker Ext", "LINE_OUT"; + "Builtin Speaker", "Speaker Amp OUTR", + "Speaker Amp INR", "LINE_OUT"; simple-audio-card,cpu { sound-dai = <&sai2>; @@ -207,6 +209,15 @@ telephony_link_master: simple-audio-card,codec { }; }; + speaker_amp: speaker-amp { + compatible = "simple-audio-amplifier"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_spkamp>; + VCC-supply = <®_3v3_p>; + sound-name-prefix = "Speaker Amp"; + enable-gpios = <&gpio5 3 GPIO_ACTIVE_HIGH>; + }; + vibrator { compatible = "gpio-vibrator"; pinctrl-names = "default"; @@ -641,6 +652,12 @@ MX8MQ_IOMUXC_SAI5_RXFS_GPIO3_IO19 0x8 /* IMU_INT */ >; }; + pinctrl_spkamp: spkamp { + fsl,pins = < + MX8MQ_IOMUXC_SPDIF_TX_GPIO5_IO3 0x81 /* MUTE */ + >; + }; + pinctrl_pmic: pmicgrp { fsl,pins = < MX8MQ_IOMUXC_GPIO1_IO03_GPIO1_IO3 0x80 /* PMIC intr */ -- 2.30.0