From nobody Mon Nov 25 01:45:17 2024 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 8FE461547E9 for ; Fri, 1 Nov 2024 05:32:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730439132; cv=none; b=rgLc3KfvmF3kt2vrRmd9bbwfVNxAGyvRK0GJn3qTyL6LIM5J0g4z6BEK5Xt9cLEylsyQnuS2+UlblC5PyOemRWQMnV9806TDhtWW42yJ9PkwGul00OH/FYeniF+uhdFbtHZq5pKRgMLEOP5e64NnGW3jjs5XatPZaOUKJf3RE4Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730439132; c=relaxed/simple; bh=FDgphfZPTIA9fzYFST+hL8RP/WFy/9sedu45TzPwsTU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=o9hPKX0KvtDluSjUMC0L8QV6r0jIfN9/+Bjx5z3IutJIVMUHCw4uoHRZkJUfT5V3EDgLQy3+qM3px++uT1cZCUUIaCmXVkTxdBcGjfsFrJ4qoNuXUWC/LF14+S3E1/A/zpKzvauQcRn+CyhKXM9FArM//tVsJnaFhIiwIeriotU= 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=ztuhDuwN; arc=none smtp.client-ip=209.85.128.44 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="ztuhDuwN" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-43168d9c6c9so13391965e9.3 for ; Thu, 31 Oct 2024 22:32:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1730439127; x=1731043927; 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=uS0C+AJNY5VNBI4UsIfDrVJ22E6TQciTqVzmaVT9hTQ=; b=ztuhDuwNCiEau1ZldiY97t9i156OAFobsG1XoXZf3KMpR4F8RSPxAvvggZkMdhgLGZ lOFyORi98B8F4V5WDysYhj7kNKsFUQd6pNEJkYz70iTKX5GWd9zRhgRqvq0WPF8BJHdG 8px6xJ9uhoN+LFC1qrWbOmrvKNz+KDsxTvTUCjWtV+ykzF9ZyLrpbF0qn4v7J9wCzum5 1szw4VSDrHj9DSyU4EvHsFbMscg25akQfi6kX6FUSpP6K4vsQBtEgL3UzovW3U8F41tK TQuCqV2EjAQiAHfSgz0Ys2BkdF4UAVmZ/maJLKcLTVkkoXFl9D9ggCr7jsZ7WPvhBWfU cNgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730439127; x=1731043927; 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=uS0C+AJNY5VNBI4UsIfDrVJ22E6TQciTqVzmaVT9hTQ=; b=vsw8DJVuoKos98QWeJp/zXthTcomhSfi52ELjB/TOT1HLqvuiTGZ3Dsu0hoQzm9CaP OJ3PQWK1FX9ss/AnAJlAtluWEsCQhCZXDANe/197lPaCvJ9BcOkYDQrypIzhKTrsHhm+ ptoW/FQedlUiMzLA5lmUdZaLTKOlPouDUwXY6kF96AfhQm1MCPghO5sz3FCtSpDP+p5+ 8CBYK1KpI+DOxHzNWgV+iat6sugz5P+k7dTZ8eiBDgWmfervlzMLz7ZnYfglWPHiE8I7 QqJlXsCAEkTeSCtHO2d7YHLPm29OqK1gQpqqm40Jdl6GdR0wFjzp0Ed337LcyJyUk0+5 jw5g== X-Forwarded-Encrypted: i=1; AJvYcCURZtvDGomQmUc7c4op3/r0O9nW6fq5fgbuZV7ySvKg/osPvtbtkzWfPZnB9YKWnV1W9XvAnVmr1PDGVfI=@vger.kernel.org X-Gm-Message-State: AOJu0YwTXcQCR3oTslIC9DxTP8u8kynunkHIjhUbZ/NZcUtAeJw+uH9u 1CMGCcRVPykZdPyk49pioRp52yZPWIMX7pQ+cLhodYdNvmcajB1Aha3RLJ9ScBU= X-Google-Smtp-Source: AGHT+IER9AxOJBpFiZCFJQilJGMnnJtNxlQDfXsPi3ZNDmy8oAHHgazdwWdcUJC87G4x+qKhFpksrw== X-Received: by 2002:a05:600c:3515:b0:431:5df7:b310 with SMTP id 5b1f17b1804b1-4319aca52f4mr190879015e9.8.1730439127571; Thu, 31 Oct 2024 22:32:07 -0700 (PDT) Received: from localhost.localdomain ([2.222.231.247]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4327d6852fdsm46960505e9.34.2024.10.31.22.32.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Oct 2024 22:32:07 -0700 (PDT) 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 v1 08/10] arm64: dts: qcom: qrb4210-rb2: enable wsa881x amplifier Date: Fri, 1 Nov 2024 05:31:52 +0000 Message-ID: <20241101053154.497550-9-alexey.klimov@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241101053154.497550-1-alexey.klimov@linaro.org> References: <20241101053154.497550-1-alexey.klimov@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 pins/gpios. Cc: Srinivas Kandagatla Signed-off-by: Alexey Klimov --- arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 45 ++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts b/arch/arm64/boot/dts= /qcom/qrb4210-rb2.dts index fc71f5930688..76b9ae1b0ebc 100644 --- a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts +++ b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts @@ -63,6 +63,16 @@ hdmi_con: endpoint { }; }; =20 + i2c0_gpio: i2c0 { + compatible =3D "i2c-gpio"; + + sda-gpios =3D <&tlmm 4 GPIO_ACTIVE_HIGH>; + scl-gpios =3D <&tlmm 5 GPIO_ACTIVE_HIGH>; + #address-cells =3D <1>; + #size-cells =3D <0>; + status =3D "disabled"; + }; + i2c2_gpio: i2c { compatible =3D "i2c-gpio"; =20 @@ -272,6 +282,25 @@ zap-shader { }; }; =20 +&i2c0_gpio { + clock-frequency =3D <400000>; + status =3D "okay"; + + wsa881x: codec@f { + compatible =3D "qcom,qrb4210-wsa881x-i2c-codec"; + reg =3D <0x0f>; + pinctrl-0 =3D <&wsa_en_active>; + pinctrl-1 =3D <&wsa_en_sleep>; + pinctrl-names =3D "default", "sleep"; + clocks =3D <&q6afecc LPASS_CLK_ID_MCLK_2 LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + clock-names =3D "wsa_mclk"; + powerdown-gpios =3D <&lpass_tlmm 16 GPIO_ACTIVE_LOW>; + mclk-gpios =3D <&lpass_tlmm 18 GPIO_ACTIVE_HIGH>; + sound-name-prefix =3D "SpkrMono"; + #sound-dai-cells =3D <0>; + }; +}; + &i2c2_gpio { clock-frequency =3D <400000>; status =3D "okay"; @@ -746,6 +775,22 @@ wcd_reset_n_sleep: wcd-reset-n-sleep-state { bias-disable; output-low; }; + + wsa_en_active: wsa-en-active-state { + pins =3D "gpio106"; + function =3D "gpio"; + drive-strength =3D <16>; + bias-disable; + output-high; + }; + + wsa_en_sleep: wsa-en-sleep-state { + pins =3D "gpio106"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-pull-down; + input-enable; + }; }; =20 &uart3 { --=20 2.45.2