From patchwork Thu Dec 12 00:47:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Klimov X-Patchwork-Id: 13904563 Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3837F165EE8 for ; Thu, 12 Dec 2024 00:47:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733964474; cv=none; b=H06bxK5/uUqJb+GdrWCp24Z1YOwXo9sa//ZbyUziEZ0JCPM4ucsYKMHG9/c8tmVsXPnqwDLBD1FRe92GCR2ZTvPrR8k3Np9yvxCFy30TZgdI8WXfZlRdwOZh1EK+4RV/B5s9dUtW/3VJkaQjGlHIQQZV8my0gmfvauOlu6/T2YE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733964474; c=relaxed/simple; bh=onN/fyaI2B+gXcyjb4glosU8R39A7qsREEgJ/i/7DUk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DkP7vGKnKFg1Nvavjo8zKbrQgAAgiWVicdBg/EAQY/1Guqw7ysGMb0IPjpfEVjS6yvD7aAmYyaIreW0XKIJztbVctvjjXxv+UL45BGOV8SBObGdd0flGgh7IBP2NxVrckz0610l/uzeBkDJxuM05HObXBc4cgeiH3wFvEOTEe5k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=XtSIV5AP; arc=none smtp.client-ip=209.85.221.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="XtSIV5AP" Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-3863494591bso7761f8f.1 for ; Wed, 11 Dec 2024 16:47:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733964470; x=1734569270; darn=vger.kernel.org; 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=rV+oSHxMzB7djaacyAb6Ozy1okMulrrztHmf2SfoQUo=; b=XtSIV5APpS0KNQLd44M8RpH6wVTqlpX6nCyxqyxrWI9GDzuP01dcSinh/F6cz5gt74 qFMM9ggeBmCvercGLD7oXBMZez6h+lL56lTMQiGQvVnymR/xn4Hvros81Q5N/Rdv3bK1 fRuMceHnlmphdITh2vtJ5hspMYP/eK3zAgGb1/PwsEUeRALgzeSiatJw0+P3G1lFhH5r 7ES+eItG9x/BCKLuVQ6U7Bn5Dmu2Gy3EN87CtuJ2PEZIobEcCznwX3LBbNuKegAyGpWz 8+I9zYwokrLAfkCGV7/Y6bdVLPbW4f8v8L0L4bzRjv29wrd0pR2rzhgcxooq3hL6TQMC kIng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733964470; x=1734569270; 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=rV+oSHxMzB7djaacyAb6Ozy1okMulrrztHmf2SfoQUo=; b=JiZYzVyIyrPhdYbQv80yV5SO38sCtm76QWHZ719rQE92iwj2SBmlaGOjLZhNSGamXF oeeIXNp7BwtbLkRu0LwLaa6zj/qa/Y10FQUu33VjmZ1pao7WrM1OgFNvHjOa9ANKLD3F HKdpGYmbYTewJcLt83kDYaW6aj+ac/foJmBttReltkvOk+vdc7ujx3bLGX4+mSNN1PwV GEKSkRzrlrxTIxZ+c6I+FnLkPDt5422GIvGCMog4HLjEEDTKD5ZFviWiVYdqKEa/plQW ZwuMrYJ1ycpL+V/U1FzU+t0KsufAW7SGmPCK0bEkFGsG5dv8f2wccadFVgdm4h0vSJXL tAow== X-Forwarded-Encrypted: i=1; AJvYcCXiFTPCN1mAc8ssSHBgY33n0i6h/fATRxd0XaKNvl3gqlNnYz1TXeaVWC3qGs2z8h617aTLRTyl42AJIw==@vger.kernel.org X-Gm-Message-State: AOJu0YyoBU01W50BAdS8sXLZwxsTsA556vDOieF5fJO5UCILjjVkRq0r 9CVItJWQA8KT4ELsZmT2+mm8utFpJ/gmnhfwvBHO106OHzSyw9crE7T03QWXfiU= X-Gm-Gg: ASbGncvZiBFUz0MHYPQg2K0b5AYF9NPaYyzC7HMsfGmu9Tvj/FqGO/xbh+k65r/0dVF 0fqehTNlt1dWvDBWfoBLLaO3zvHZtgP4mrjeE+l4IK5IS+6AjdIMlAIGKDy5cA2W6RM1cxmIMoo HW+7bfsI/ZLxMCh6q868outVHWZfhakWmFH5lFnWcIS5iYuVIr00xGOZaOIcnKZQ9xESXP7Fp1p BdYvPevTs3tkyhRW2VkyyVljx/teHooN6PZ0xp2grUO/0lL7KGhbjrJdYJ143H/3FT1fwTF X-Google-Smtp-Source: AGHT+IFAk1Y8qy4yabp5VFqeN0qshO4/4jp4s6LgayFE/Znd6/U/Ng+pprV0dDY9YOcoyY0cS9nP0g== X-Received: by 2002:a5d:6da4:0:b0:385:e0ea:d4ef with SMTP id ffacd0b85a97d-3864cea1edcmr3389698f8f.58.1733964470591; Wed, 11 Dec 2024 16:47:50 -0800 (PST) Received: from localhost.localdomain ([2.222.231.247]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-387824a4ef4sm2459660f8f.39.2024.12.11.16.47.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Dec 2024 16:47:49 -0800 (PST) From: Alexey Klimov To: broonie@kernel.org, konradybcio@kernel.org, konrad.dybcio@oss.qualcomm.com, andersson@kernel.org, srinivas.kandagatla@linaro.org Cc: tiwai@suse.com, lgirdwood@gmail.com, perex@perex.cz, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, dmitry.baryshkov@linaro.org, linux-sound@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 10/14] arm64: dts: qcom: qrb4210-rb2: enable wsa881x amplifier Date: Thu, 12 Dec 2024 00:47:23 +0000 Message-ID: <20241212004727.2903846-11-alexey.klimov@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241212004727.2903846-1-alexey.klimov@linaro.org> References: <20241212004727.2903846-1-alexey.klimov@linaro.org> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 One WSA881X amplifier is connected on QRB4210 RB2 board hence only mono speaker is supported. This amplifier is set to work in analog mode only. Also add required powerdown pin/gpio. Cc: Srinivas Kandagatla Signed-off-by: Alexey Klimov --- arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts index 6217bc6e6282..827ce5f7adfb 100644 --- a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts +++ b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts @@ -264,6 +264,24 @@ zap-shader { }; }; +&i2c1 { + clock-frequency = <400000>; + status = "okay"; + + wsa881x: amplifier@f { + compatible = "qcom,wsa8815"; + reg = <0x0f>; + pinctrl-0 = <&wsa_en_active>; + pinctrl-names = "default"; + clocks = <&q6afecc LPASS_CLK_ID_MCLK_2 LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + powerdown-gpios = <&lpass_tlmm 16 GPIO_ACTIVE_LOW>; + mclk-gpios = <&lpass_tlmm 18 GPIO_ACTIVE_HIGH>; + sound-name-prefix = "SpkrMono"; + #sound-dai-cells = <0>; + #thermal-sensor-cells = <0>; + }; +}; + &i2c2_gpio { clock-frequency = <400000>; status = "okay"; @@ -730,6 +748,14 @@ wcd_reset_n: wcd-reset-n-state { drive-strength = <16>; output-high; }; + + wsa_en_active: wsa-en-active-state { + pins = "gpio106"; + function = "gpio"; + drive-strength = <16>; + bias-disable; + output-high; + }; }; &uart3 {