From patchwork Wed Dec 4 21:34:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 847368 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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 B67F31925A6; Wed, 4 Dec 2024 21:35:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348112; cv=none; b=CLeHnnC/WySXQJwsjkuB6btXvkUkrG7WERkxH2DNTUwC+IAwXO5gcyi5WGsy3n7tI726JhuTX2yiMSMmPmfH/MW760qWHXep/1J+lOXCf3z1ZlkEgLdKUhvS6ovsn/6pyq4Zb4DjzzwIcw9HqLktI/x/LBrKZrw4iBV2dNcQEBU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348112; c=relaxed/simple; bh=8GYNtMjyvlYyOVOr4Zbky3D7q11kPx9toIZISTyx+JI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ipVQL5l5Q+mv9bwr/pwsxQmpm7K11WjtexfJ4uhw2Weru5SZJib9oXMLvBYxIWOsCAQ3tEbZnJ3hwHI0vv09QGxkAs0/dgOOrY3fB9GWBbqxUKl1iHtmvnSCWhnOzY48HxBXJS4gtvFBpIk9fK/XmqkGEQA9KGRihgBdGzii9as= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Cii4oFpl; arc=none smtp.client-ip=209.85.218.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Cii4oFpl" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-aa55da18f89so31331566b.0; Wed, 04 Dec 2024 13:35:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733348109; x=1733952909; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=LuV7cwmdwchb8LB/7r20k40yGp1R1NcwnamjAVAif6s=; b=Cii4oFplZi0U3u894yZB3oQT1213rvvMJmgYYTAuh48wpdigj8eZupbBkSeVnnrR4N 6txTZgstMyMCSu7zI4zYXvcO651xhmX7lZhTlYuFqenYCq9lJ0o+TTsXKIcHbTVR4yrk TqSsJDkiJLJEXx1EyeSJDIVpxC4IjlpZz96fYqa2wqBhlapIJ+QEAdhDGbrpdrOobJnA IyvPbsIpDe9Q/nBqBx8HrWQTD89OJ560Or7WqI+2xZv3JZ0TMHmzpPU09BaqKFzTN7uS 3PKUplA7irC2XiulpktJvaTsDzckSki3EVTXaA1uT6f5Oc7qOb6MnkH0y80We22RjCLR +rSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733348109; x=1733952909; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LuV7cwmdwchb8LB/7r20k40yGp1R1NcwnamjAVAif6s=; b=bPBwZBu5LGLmd3T60Kd3xdiMvxrl8j5+I61cFTtIGI+zttYQzN2/lI0ULFX5DHvPZf sCeIE59Gse/oakKZL1k9AaI0dSSO1zGoCVUKSo29Gn7yQbDj+ByVRRt6Kr3Zekjj+YOa yeV+4ijn0o6jA2YcDuXaQsTjUt+XhpuRv0Fs5XCeiLEAQ0G9lTyXQZpYaTtIsfgVP9aH diMoiX1ICsdYFFq5Sig5y+PjBKRdg0sAs2NK1I7mKpIXqLppjaGbzPMH0tLOudqhXjYU wcPp/gac4ZlTA7EZkr1nD/m2aod3VVEs15c9P9odbPZgEJhSMgeaBS6PXegV2RFkdWZk lyCw== X-Forwarded-Encrypted: i=1; AJvYcCWGI3Fx8T+s0K+qG4JLgr2tv/khnVJnw+ltGcOH48jDJ5vCTI6DwmFV0ft0Ktx0Glv5jda8dd5sMw/K@vger.kernel.org, AJvYcCWJ9Vl6sgem8+DQdCxNhYd6dDW/6IPylZvxMy1oWQx5qsgHzLS+2MvDU14Bsxd7qjNaIy8v8559vVnqh+0=@vger.kernel.org, AJvYcCXhXKIdLwCGFTLO7Lrg03JzUygmhm+lH14P2aOcYXNxYrPxsnXwHAdzLvs0nrVCx03Uzk7Y7zw4adyRru4V@vger.kernel.org X-Gm-Message-State: AOJu0Yy6OTUstrM+XRFzt/fLe3uxlt4MmZ6Msbtjpvk/Y8b9z36SazZE VpOszAnr8dsuhPBwrWMTjECyv/XfqbsEeIIWT+NvU/wld3wKtqzkYOY98g== X-Gm-Gg: ASbGnctC8rvNW492xEED/MXY/bvRjjsFhRSN0Zs/RJLQL+7JnxVPtg7frYWdZ/cwVov mCawicwp/vmNRqbz8oTyP/zP12/nJ2uI0fRl3+wTwOo6j5A3hEwpnF0GJxdVAIwEAvaf59V5OAn HeQMUaw+Zocm7n7rn9w4VFG7/k49Ygo75j5fbN+YqgJLXcr3gpv8CfWR/pN0Ayt1iSbwObfWtKb YPrubFULj0CedgVNK8rLcPRtqr149fHPe8IyQxF3h7bcfAZ X-Google-Smtp-Source: AGHT+IGtEruR6xCHbI56vFuwlvgypRehvg14vOTyoyTCYLyC22BBypixZhnXeVjhLwlC4wwLHSOP3Q== X-Received: by 2002:a17:906:3ca9:b0:aa5:b639:e2f0 with SMTP id a640c23a62f3a-aa5f7dca34fmr511162066b.35.1733348108388; Wed, 04 Dec 2024 13:35:08 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa62601b5ddsm4506966b.118.2024.12.04.13.35.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2024 13:35:07 -0800 (PST) From: Dzmitry Sankouski Date: Thu, 05 Dec 2024 00:34:49 +0300 Subject: [PATCH v7 02/14] ASoC: codecs: wcd934x: use wcd934x binding header Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241205-starqltechn_integration_upstream-v7-2-84f9a3547803@gmail.com> References: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> In-Reply-To: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, Dzmitry Sankouski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1733348104; l=1049; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=8GYNtMjyvlYyOVOr4Zbky3D7q11kPx9toIZISTyx+JI=; b=secSx3N9rzMzFuvxLewBFyI8nYxZuD1F3+W7BCUXxhpC2UF2Mztzt1ocxq5j3WfdLu846/mAP VpW6E/Cj88zA+6Ec0Iz+d+i5Q0Auojk7xA5OndKYkwkh4gZ6wW9zYY+ X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Replace AIF* enum with binding header include. This allow to get rid of mysterious indeces in dts. Signed-off-by: Dzmitry Sankouski --- sound/soc/codecs/wcd934x.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/sound/soc/codecs/wcd934x.c b/sound/soc/codecs/wcd934x.c index 910852eb9698..a730d7195bc1 100644 --- a/sound/soc/codecs/wcd934x.c +++ b/sound/soc/codecs/wcd934x.c @@ -23,6 +23,8 @@ #include "wcd-clsh-v2.h" #include "wcd-mbhc-v2.h" +#include + #define WCD934X_RATES_MASK (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 |\ SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_48000 |\ SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_192000) @@ -434,19 +436,6 @@ enum { COMPANDER_MAX, }; -enum { - AIF1_PB = 0, - AIF1_CAP, - AIF2_PB, - AIF2_CAP, - AIF3_PB, - AIF3_CAP, - AIF4_PB, - AIF4_VIFEED, - AIF4_MAD_TX, - NUM_CODEC_DAIS, -}; - enum { INTn_1_INP_SEL_ZERO = 0, INTn_1_INP_SEL_DEC0, From patchwork Wed Dec 4 21:34:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 847367 Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (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 1A6B91A0AF0; Wed, 4 Dec 2024 21:35:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348114; cv=none; b=rWao9Yj/aKm9myVG9e560EJqqZKFaCSqmJS0qsg+bRqj1XWx7HQkuOWEYUmL7iUui5IuCseXWJz/9Zd600sVhpscskjXFiDuFWUA9Fg130lQQ4HHigGu/I5mdrcRSDGlS01hHD5Ns0GNRF0sQtIQ/S0HVE1h+mqOvqk3HhtXW7U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348114; c=relaxed/simple; bh=2tinpZ9cO2Cfmec7WC+wgRZ+VOIH0877oqaFTz105/g=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=VZaAeB841oHWSVT/9M8tdrGa2tRlC1EvcVs+0qHyN3AlniauM9/TYFSoXpcN4HmfOyYDzEcR89x1anZn+26LSlNVCl/ddFa4J8WdssVP7T7axigL8ZHVbs8mtlfH0p+4fN9QzoTWCeMK1BNIoH0erokfpdrrVRnRd8zh9kDtBT4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=hhF+sNym; arc=none smtp.client-ip=209.85.218.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hhF+sNym" Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-aa535eed875so30965466b.3; Wed, 04 Dec 2024 13:35:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733348111; x=1733952911; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=J7ZPpMIf7KljHM0C/BgCOacX+DOYg1OD4FK+PFwISpQ=; b=hhF+sNymAFcdoYIv1cCGWc4Ql9QpHaSJ5sr6g/5UuFU7GqlP/4v/MSSOTg9vwJVDaO Kab0FRG9lQ1rpH62iW8KP2rLIz8FXZjFW+U3bXWzVeqzd66LbQKJKo1FaXCqtGryGOXu xdiVYbBzbvO+F1q03aY2CTu7yx0mB6QpWJdjGpzvL1cQ0HvxmQimMRTK8lo8OgqAOPCG ty5xrbY1kvWa6fmQeAm+l1q5simIBGMRHYqh7mA04ER/ee5C0jKdH4pB467LJ0w8k0uN Kp0kwlhI/4Aingtbyq48u6yDvyL83YUZf1y8qOSdwa1NLoeAQb40kSLJjCWsK8MaQ6oB iRCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733348111; x=1733952911; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=J7ZPpMIf7KljHM0C/BgCOacX+DOYg1OD4FK+PFwISpQ=; b=Rog1dhWWBXSs+3zvYwZU6Nu4Hju73oeZ00/QEe0QRBrDhYy10Kkz8z2IRjUihHVkW5 GmTgrDR9Ae9kQWGAQl6UdOTxWa8ionFl5FRaVsq8up5u4o+u3S7d9GclpOJVD2qFxAL8 w6d0BBxYTxx3AWmX9BJx5lM+EvQjD8a3vdEK2CI92RVSLbKrzsn9WnKfe4NldLSRrZnp r/B8hy6d4Ve66++6t/0b/NuZqVWOCcwn/EnhD4GddQ+w0+MZsneVeBy+ClFUiEORraPd dOFr5cypYacOLhTwUnQJgd94+dlXsDJDArXU/16wpA6DcyjD7RTOBLoz6rz32L+3CB8A 1dGw== X-Forwarded-Encrypted: i=1; AJvYcCUPwoQ2Sb0tUTO8j07W0WgKsqJWAy9gYQfm3ieuDXMBsV+3Y9JtNvVbvGvYgQRb5Hya3bjbh/b7K7Q6@vger.kernel.org, AJvYcCUgOqlIBYtIo0uMDqIpqBvIuK0h/Goyfx0xAGqsFk1RDDY4wbvPgpQMe2Jc1IchlnPRtA3/snuyxa6vNFI=@vger.kernel.org, AJvYcCV+qO9EcwKSVfwgWlJ13LKHUNHGwzvfPnVhFnVlzLVC6XvrayIG8aoexomibX06FQ9C2qnCrEW0INCI8mcT@vger.kernel.org X-Gm-Message-State: AOJu0Yy86K5ddA+A3K3emA25SF/wGbXMqGP8OkjsqrDTMiGlwQ2hQr1c wqcHc525iP/MlzLQf9FKydLi7+yDqmK6KuhiPq0tEq0I37KVUhsddgdsPA== X-Gm-Gg: ASbGnctvrd/FZ4PGOC2GrI0lECikKYm1W2s0dQ3Jst8cFRPMAhQgWswaaUxzxAsfrGO 99QbK7hfRJNdeCyg8qHHX4qsjfu+/ktmEZU5aaZ5ctz5kqV2HPq9y/D4J7oXcg5ci4uoZs05Hmc jeT/hmQ85h37/dpmRcPM62RYr0nVWj+IYvCBw6v73KqA+yKC+it5r4OBfwNK2YgufviOxU1//oC 8+vaYUF3pSews3VTv0WPRVPxB5AtnQ+u/dLkhxrI+Vr346A X-Google-Smtp-Source: AGHT+IHoZcC2uvYusfFp6uzADPGKZmkYYwBJc0PnB6zL05dukH1+IMVC0T1Gq3dzpG+MVwYNpEGfVA== X-Received: by 2002:a17:906:31c7:b0:aa5:3c28:e0ae with SMTP id a640c23a62f3a-aa5f7d1b599mr761681166b.15.1733348111102; Wed, 04 Dec 2024 13:35:11 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa62601b5ddsm4506966b.118.2024.12.04.13.35.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2024 13:35:10 -0800 (PST) From: Dzmitry Sankouski Date: Thu, 05 Dec 2024 00:34:51 +0300 Subject: [PATCH v7 04/14] arm64: dts: qcom: sdm845-starqltechn: remove wifi Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241205-starqltechn_integration_upstream-v7-4-84f9a3547803@gmail.com> References: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> In-Reply-To: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, Dzmitry Sankouski , Konrad Dybcio X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1733348104; l=1185; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=2tinpZ9cO2Cfmec7WC+wgRZ+VOIH0877oqaFTz105/g=; b=wR4NFoRo5HQ5G1JTl0J+kVuDDVxXa3GZUuu7RSVDbwIltJxA1t96sXSHaOTWu87olxUtfoNB7 NzK5p23EWO8D0CLASLP5kZGa/msERjMTxtX3YSOy6vDL89IKkZLtVAd X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Starqltechn has broadcom chip for wifi, so sdm845 wifi part can be disabled. Fixes: d711b22eee55 ("arm64: dts: qcom: starqltechn: add initial device tree for starqltechn") Reviewed-by: Konrad Dybcio Signed-off-by: Dzmitry Sankouski --- Changes in v6: - refactor: no space between tag in commit message. - refactor: s/starqltechn/sdm845-starqltechn in subject. --- arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts index d37a433130b9..6fc30fd1262b 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts @@ -418,14 +418,6 @@ &usb_1_qmpphy { status = "okay"; }; -&wifi { - vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8>; - vdd-1.8-xo-supply = <&vreg_l7a_1p8>; - vdd-1.3-rfa-supply = <&vreg_l17a_1p3>; - vdd-3.3-ch0-supply = <&vreg_l25a_3p3>; - status = "okay"; -}; - &tlmm { gpio-reserved-ranges = <0 4>, <27 4>, <81 4>, <85 4>; From patchwork Wed Dec 4 21:34:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 847366 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (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 BB0DE1F5415; Wed, 4 Dec 2024 21:35:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348117; cv=none; b=YvkvUmXcMvZZXKZZR5DP3BEmIYSMc1VJn0UZNvWpfctm+D/f9UUNrwkyLE5SvwX3sdJTeHOGYviYJhlPB2EuICpl1M3wcjONYIcC/j7yEh1A8BJrxWPZOCmyT0y6f9KEFqouBFl36QEuw2xAUj1plXVeHRoQ1XSQngoqn9U28EA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348117; c=relaxed/simple; bh=7nGbNBR2rlmrlKV+/i/enn28MQ/yQq/coI0HrSWcwhM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tk8V16ID5XqxeDDI89dURXKKR5plnrrZ1tRpJIyRm4J9W0GNvQBAsH80+VPVpK9oBHo2vS1acfQ2O838UtZK8VaclNxgz3m5SwagT6ZA0Vwt3m5FWfeTYadfNCDS1QIJ61XxIZRmKGk5xzequkIGQLrVyA8NvB0GN6xntfdG06k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=EecvgY12; arc=none smtp.client-ip=209.85.218.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="EecvgY12" Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-aa549f2f9d2so29184866b.3; Wed, 04 Dec 2024 13:35:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733348114; x=1733952914; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=4L7W9BAIQ/n8Lu+TgBIRQR0dd3Tfyg7NM8s+Xthj6m8=; b=EecvgY12dzXQGn8lay+CaQx7gbCnt7SDnq8gihm83BwWQ1wjbJkS6o8RQgqmf00Eqi TLw7ruzHnjJ8lHpJPbENdr5pIQAn7l1NcDs8myYgBqY0b18HvVCJKMOzCuvJYyGbWL+W 1YgfzHF5OWLoaJoKzZnjAbDHvZcqlBWg6512rHycvBADrku8C7mkvTHl5hIHUIiwjaXI ZjTxN201z6bYTP6RJ8VUdLzuRgkru46rLkRoSTPmgm2+9YgTZed1C/JKWctzNINgZtIw SQEUHQZVEz9U4FPzpMLxBJzJT+s8hvnNgEpREvLAGJ5T2emhUBs4ZYc3CHU97kITNVHg ul3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733348114; x=1733952914; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4L7W9BAIQ/n8Lu+TgBIRQR0dd3Tfyg7NM8s+Xthj6m8=; b=jD5s9Gg43fyaAD2I9+850A4ABRzkcqhvvfDYtrEYDt2EqCJESMLDYDYpAhMhhMOhs6 rXM9lFR3QUHIx3gpa9itwirAiqUbiCCP0NCvsD5LtGzisRzXAyph7P6qC04C533GBosK MTXiBwvhyCU54np4Rfj96xUozxZxdH5789YSvUibTJ94medHB/9rSYRxT2bVtnFlVxGM JRwMaDgGDkxNBf9ZaRT5uc8CCNHOUEAqFIHz2FWSy4XAdeUZnM9hY7Yu8dVsoXGznGyn F6bg4tILCBtZ1GMp3b3mTBBqQPMnkoR91L3NFi31b5rjShyEkePNicaaNORyD0WdRcpq xhLg== X-Forwarded-Encrypted: i=1; AJvYcCU7KI52oZgxRfuXVT6Vft1NetBZECF3FhWKeG9Ap5jnLvX/0M6rbw3WJAWhLCskK0kZGpI4iHSkN6ojJgVI@vger.kernel.org, AJvYcCUW1ulA6lYnBSKfo3dvuniCwPcCbIT9fZtWbA+aAHF1MhmMisGbDUwfeBHVGcSKfM5Mtfppf9ufNM9o@vger.kernel.org, AJvYcCXkgoxxA/WnqTu3hx2KQbHBM5DGZUMUSOXpBrX5bR6bcQkUQafQXXdiaP46sMWGVq/7hOYMAfIgN4mOH4M=@vger.kernel.org X-Gm-Message-State: AOJu0YwijINrUirCp/iRja5E4kzAXcALdt3rAdOFy4QJWo1faJn7t+xC 4pEcNBDKkNlCb3W0BRIE34y8XtY2dwqJuuGYGgq/SxsME5Epu+bjnME5Lg== X-Gm-Gg: ASbGnctLs1WiReR3RrQ33UgMFCm+Cr2r1FMdnBznz7YCjwmiv++Pm5iVX+0UTHnXVSW Q1PwSgGQ2UIptV627tGfU2r5h4rzIfESAyXDT5uhznS538IVnU+ELaRUm2s/hl0AvYceMCVCe4m 9ShMGoXmHzloYcKDQUnOrLeUgAP0Yb4F/WE5X7XH4uHiWGh7VIP3TVsy0czve6tZDMyxEKQB3Nw qlQCp6G4xEROMfPmFC0ALodwVfhWSJueOYiYm64D/RpFjGu X-Google-Smtp-Source: AGHT+IFd9GiPgYKS0OrJ8X51O88yZiCTaqgVAj++KcnEwdhvfjlIINzTyh5N9DzuJOTQi91gHf6qAg== X-Received: by 2002:a17:906:4c2:b0:aa5:4672:663b with SMTP id a640c23a62f3a-aa5f7f2ba80mr603979166b.55.1733348113622; Wed, 04 Dec 2024 13:35:13 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa62601b5ddsm4506966b.118.2024.12.04.13.35.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2024 13:35:13 -0800 (PST) From: Dzmitry Sankouski Date: Thu, 05 Dec 2024 00:34:53 +0300 Subject: [PATCH v7 06/14] arm64: dts: qcom: sdm845-starqltechn: refactor node order Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241205-starqltechn_integration_upstream-v7-6-84f9a3547803@gmail.com> References: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> In-Reply-To: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, Dzmitry Sankouski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1733348104; l=1030; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=7nGbNBR2rlmrlKV+/i/enn28MQ/yQq/coI0HrSWcwhM=; b=jJR5LsGtcevXVXF4PPpy2xEEiqnPLOmi805809B9C8p/A7L86qFimNCuOYs6ez4485tCrNghS fDhlMclwPKkBJ5Dj1ytYppYsC6MEp5SEEWFYZoLGRzqKUAUZoM05zhR X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Fixes: d711b22eee55 ("arm64: dts: qcom: starqltechn: add initial device tree for starqltechn") Signed-off-by: Dzmitry Sankouski --- Changes in v6: - refactor: no space between tag in commit message. - refactor: s/starqltechn/sdm845-starqltechn in subject. --- arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts index f3f2b25883d8..8a0d63bd594b 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts @@ -382,8 +382,8 @@ &ufs_mem_phy { }; &sdhc_2 { - pinctrl-names = "default"; pinctrl-0 = <&sdc2_clk_state &sdc2_cmd_state &sdc2_data_state &sd_card_det_n_state>; + pinctrl-names = "default"; cd-gpios = <&tlmm 126 GPIO_ACTIVE_LOW>; vmmc-supply = <&vreg_l21a_2p95>; vqmmc-supply = <&vddpx_2>; From patchwork Wed Dec 4 21:34:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 847365 Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (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 5F192202C57; Wed, 4 Dec 2024 21:35:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348121; cv=none; b=qcWJfqgfu6aNkcfriC1PcSEmuMEylnnTg8bkbn/tWM5cT8YI1RlBu6G11/r9ETSU3qOaWWwxtAWYVMEyQvCkrQKVX0DTPTgB9k4Jid0vG8ameEuWhVctpJ+qcsWSn+mYWIUgnv2kun1AmIhmiUBC1Vk0KFz7gHVf6iqmbD70YX4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348121; c=relaxed/simple; bh=Qh+xvGITXTYzBDaqW8FdkjoSIro2L81CrVRIGrvD3qk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nCyFYMZl2S48qVOCH8cSGWFHmwa2JFB1405Un/wcmMDipimulxQ/rSp7br0RF4566H6F7L1Hp0LhMz/cihU1zn7elVS3Jkp4rH5K87nAWDltcFjbOPVHlrSeg89rV3p87nlKdnxxm/PshEDuuIjE9Lf/t/biMkRed9v0OnB+wn0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=SZtJuPRU; arc=none smtp.client-ip=209.85.208.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="SZtJuPRU" Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-5d0e75dd846so250146a12.3; Wed, 04 Dec 2024 13:35:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733348117; x=1733952917; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Ph/G4SC+VO4P2VZjitmcYB652smYQ5RMzCQYAyRiSB4=; b=SZtJuPRUo9vCcvPFeCq+MqarOX397pMzhDrVZpBAeS/2ijinaKjzJp6PI4OAB/VqHF FENcCrnzFA7fy5stG0A4KWnrfBORp8+TeklT+bd1vQysBhHcLLrZtbeAT+jd82pAlfgn m7Ea322HNC66fNQk1MIJ3CMvEQAX8YmDPfoBr48ZLWxz32WmP7pkGIWau9UH8lCqpmfx qapr7JOYniKGEnUGn/Wdz1/m1kzDETh1YjfsGoDj+hA9/CfoJIrBMeRFfiQI4dRuEuyF psklihRD1wnIE5/FHzeY7WJ6WRyT9A2B85lysd4/jGfMUUMUzhzM4hbcfz6j/Y0xRyM/ VS8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733348117; x=1733952917; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ph/G4SC+VO4P2VZjitmcYB652smYQ5RMzCQYAyRiSB4=; b=OmjEZgKQEC3O/3GRuemCNeIXQu2/JRVLSKLgGLRKMCxid7/rcJK5iTesOUjkmXCY9l ycy6LTw5+C4VO+3ni/5l3o8ueoi44dbZNwJhYuek9LPi7+1DHuN0AKbA53ai1UOrpyIM gxRQ6m3pq/+nuYAezjydVtAVjkfoAYIpmaARhZpoy73pG33ABTG/WTCysxfEugp3CteY dE6EQod4wyGufkcLTC8pxWFEAMxCp1Qj35nRss2CNoT2dvPJm73mJCu1Oq6q/OVouGKD CAC+NbA27oLkUHsOdjymcownYl7RQcMV6mvHXjDLyJuhYPhvEq6cSNer72iQ7wSWiELs gQKQ== X-Forwarded-Encrypted: i=1; AJvYcCUHyPpi29k2OnConcBgTQG6kv680FlTOYW74GCTeF6nsGFjglVrMTJ0BfkItZeElMkEsaRKVL2DOz3m@vger.kernel.org, AJvYcCV5oAmPWWtfYXqU5Q0pdBdhG+9GWBmpqs5pfUSam69tm/dBi2amdx8tTvyhRexxhxdIjabPZ6c8i8q2Eq0=@vger.kernel.org, AJvYcCWBGvP+aHw5LbwJY7RUbdKjYMojsZTCAs6Pe0jaZjM6qAHJ43xqGgxGsNe/bUGWLdZ4b5u2s0KpUp8f5hCr@vger.kernel.org X-Gm-Message-State: AOJu0Yykp+5RkKI3YNeon0ENHj9MaAueLSz7yiY+zGErj5KyHT7pX4EV BDrguYbM8ImJgIinGqQ3Mp4N1IuD8IKEYHqIJcqduM5nhz2gkprBs6ynAg== X-Gm-Gg: ASbGncsW/Ds9q8tMnPvOfHxgqrzAz/hRXklQLOYwSA7TVIRH3LsIOQ0/icfeLJjWdVc 3KKwZ5Dp6kKXXtzwwQX8UgXB1SUg3SosSxXFgOJoURI/fsP7uDDQMYBArosWomd2voUB5A9oj4V bnGo4UG0ICtpdVzLSqEHB9XFsUgKduFI3AjVnQkynAdW9oibIpwv2SPeXf9Gk8l/vlXkt3pX31I rStPs4UDWZeaV2JwgK62tlLKMB8Kq7v7biqbTp8xas8GLOt X-Google-Smtp-Source: AGHT+IHQiqPl03Z5gHjPB14Pue9iy1xGprs4WvdQcP4lh/YLITsIqSUKYpq7++lObh7T9v5adbtqVQ== X-Received: by 2002:a05:6402:4301:b0:5d0:d63e:6f43 with SMTP id 4fb4d7f45d1cf-5d10cb5c1d7mr9403129a12.17.1733348117345; Wed, 04 Dec 2024 13:35:17 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa62601b5ddsm4506966b.118.2024.12.04.13.35.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2024 13:35:17 -0800 (PST) From: Dzmitry Sankouski Date: Thu, 05 Dec 2024 00:34:56 +0300 Subject: [PATCH v7 09/14] arm64: dts: qcom: sdm845-starqltechn: add max77705 PMIC Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241205-starqltechn_integration_upstream-v7-9-84f9a3547803@gmail.com> References: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> In-Reply-To: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, Dzmitry Sankouski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1733348104; l=5299; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=Qh+xvGITXTYzBDaqW8FdkjoSIro2L81CrVRIGrvD3qk=; b=jvJPu3Jb/+c5a2ZQOdfGPppePP/EjJf9l5js3XhCO/V4m0Q9VHgUxnNVP4PTRCEekRbYtIs3H fqGniJTfDh7Bv94697XVlWyi2ZxTNtVJZtr7EnkQGh9upCGebXxLpy2 X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Add support for max77705 MFD device. Supported sub-devices: charger, fuelgauge, haptic, led Signed-off-by: Dzmitry Sankouski --- Changes in v7: - adjust fuelgauge node for max17042 driver (remove monitored-battery because not supprted, rename shunt resistor property) - reorder 'haptic' fixed regulator node - move 'haptic' fixed regulator node to regulators - change leds compatible *-led *-rgb - wrap leds into multi-led node - add fuelgauge reg property - wrap led properties into multi-led - add chg_int_default pinctrl Changes in v6: - refactor: s/starqltechn/sdm845-starqltechn in subject - refactor: 'm' < 's', so putting motor tlmm nodes first Changes in v5: - fix according to binding changes - reorder vib_pwm node --- arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts | 126 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts index 38c09e50ccfb..c143501700a4 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts @@ -9,6 +9,7 @@ #include #include +#include #include #include "sdm845.dtsi" #include "pm8998.dtsi" @@ -18,6 +19,16 @@ / { model = "Samsung Galaxy S9 SM-G9600"; compatible = "samsung,starqltechn", "qcom,sdm845"; + battery: battery { + compatible = "simple-battery"; + constant-charge-current-max-microamp = <2150000>; + charge-full-design-microamp-hours = <3000000>; + + over-voltage-threshold-microvolt = <4500000>; + voltage-min-design-microvolt = <3400000>; + voltage-max-design-microvolt = <4350000>; + }; + chosen { #address-cells = <2>; #size-cells = <2>; @@ -32,6 +43,19 @@ framebuffer: framebuffer@9d400000 { }; }; + vib_regulator: gpio-regulator { + compatible = "regulator-fixed"; + + regulator-name = "haptic"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + + gpio = <&pm8998_gpios 18 GPIO_ACTIVE_HIGH>; + enable-active-high; + + regulator-boot-on; + }; + vph_pwr: vph-pwr-regulator { compatible = "regulator-fixed"; regulator-name = "vph_pwr"; @@ -90,6 +114,17 @@ key-wink { debounce-interval = <15>; }; }; + + vib_pwm: pwm { + compatible = "clk-pwm"; + #pwm-cells = <2>; + assigned-clock-parents = <&rpmhcc RPMH_CXO_CLK>; + assigned-clocks = <&gcc GCC_GP1_CLK_SRC>; + clocks = <&gcc GCC_GP1_CLK>; + pinctrl-0 = <&motor_pwm_default_state>; + pinctrl-1 = <&motor_pwm_suspend_state>; + pinctrl-names = "default", "suspend"; + }; }; @@ -385,10 +420,75 @@ &qupv3_id_1 { status = "okay"; }; +&gpi_dma1 { + status = "okay"; +}; + &uart9 { status = "okay"; }; +&i2c14 { + status = "okay"; + + pmic@66 { + compatible = "maxim,max77705"; + reg = <0x66>; + interrupt-parent = <&pm8998_gpios>; + interrupts = <11 IRQ_TYPE_LEVEL_LOW>; + pinctrl-0 = <&chg_int_default>; + pinctrl-names = "default"; + #address-cells = <1>; + #size-cells = <0>; + + leds { + compatible = "maxim,max77705-rgb"; + + multi-led { + color = ; + function = LED_FUNCTION_STATUS; + #address-cells = <1>; + #size-cells = <0>; + + led@1 { + reg = <1>; + color = ; + }; + + led@2 { + reg = <2>; + color = ; + }; + + led@3 { + reg = <3>; + color = ; + }; + }; + }; + + max77705_charger: charger { + compatible = "maxim,max77705-charger"; + monitored-battery = <&battery>; + }; + + fuel-gauge@36 { + compatible = "maxim,max77705-battery"; + reg = <0x36>; + power-supplies = <&max77705_charger>; + maxim,rsns-microohm = <5000>; + interrupt-parent = <&pm8998_gpios>; + interrupts = <11 IRQ_TYPE_LEVEL_LOW>; + }; + + haptic { + compatible = "maxim,max77705-haptic"; + haptic-supply = <&vib_regulator>; + pwms = <&vib_pwm 0 100000>; + }; + }; +}; + &ufs_mem_hc { reset-gpios = <&tlmm 150 GPIO_ACTIVE_LOW>; vcc-supply = <&vreg_l20a_2p95>; @@ -443,10 +543,36 @@ &pm8998_resin { status = "okay"; }; +&pm8998_gpios { + chg_int_default: chg-int-default-state { + pins = "gpio11"; + function = "normal"; + input-enable; + bias-disable; + power-source = <0>; + }; +}; + &tlmm { gpio-reserved-ranges = <27 4>, /* SPI (eSE - embedded Secure Element) */ <85 4>; /* SPI (fingerprint reader) */ + motor_pwm_default_state: motor-pwm-active-state { + pins = "gpio57"; + function = "gcc_gp1"; + drive-strength = <2>; + bias-disable; + output-high; + }; + + motor_pwm_suspend_state: motor-pwm-suspend-state { + pins = "gpio57"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + output-low; + }; + sdc2_clk_state: sdc2-clk-state { pins = "sdc2_clk"; bias-disable; From patchwork Wed Dec 4 21:34:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 847364 Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.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 9BED02066D8; Wed, 4 Dec 2024 21:35:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348122; cv=none; b=iH1rn2ZkjV3YNpEI6E+1MNQqWSBYUqketdytjlQ7Snm/FMJDt7jJNAWhcwWdoYLGv7j39WL6OI0khJAQJF4ZMTmvtt/GfoFoHop4ahYj+R2NOiYhhFqYyJ325BYGPDe1MUPpNuidmVbGTKOV1t9aEYvXIACSK7aQkbGysS0sIBQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348122; c=relaxed/simple; bh=I1B6bGjvBKFt4XBd7a8aKNKz7MCwstChV5lIYk6cNX0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=J/RJZm0xW793GVxu6GLQlLQCvhBjJHZx0P2lefzARaRlIhF2exUgwjJRprXskVvDpaxbgklSDgSpOUE06L0CA/IJ6TsvGtmpKC35XvYdPeOpEyWEY17oQvtMyKFGoA7dmAH3mplMbfpkcay79mMgaULdBv48o5OrAtZH4vTZCpM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=JWupeMdl; arc=none smtp.client-ip=209.85.218.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JWupeMdl" Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-aa51b8c5f4dso26500766b.2; Wed, 04 Dec 2024 13:35:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733348119; x=1733952919; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=9v4tDLIwv4qcBhvA0GjLro+h+EIf4V/3OxoVVMD7YQs=; b=JWupeMdlNwNy2OFyCz17GB6sQcU/YhejD++ewL4S/jDREdRyRmbWkUqpFOqzhz9RPb k9XTQ5sgCVq7DFh8/ew+oU5o2DXrnqt3QrOKL3NsxP+Klw5VfUrFeyEjn3UZIfetnjQQ 2vBXqZi0zic5rs77rFT+tPa0peczWjwGu2ui3byQF1KMeT7TA6Cvw01YcIVUfb3iJIDX AYg7w56brVaFxCRyYAyXD4zK2YnOeE9oTOU/SJZl6HnJH/AgkW0qNeh26eju+4t6JsfB yJes7MRe9sT+g/N3C5n7eUqDJK9n5GemncGNUDqRR7fbvSd0QRjF8JizlIi+c+g5/je2 uTMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733348119; x=1733952919; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9v4tDLIwv4qcBhvA0GjLro+h+EIf4V/3OxoVVMD7YQs=; b=A57+Mm/jdhhOionbVsPIJ7QCVacC+NwcRN3aWTZrPUL288C4jakoIpDszyJPKdhJvB RLi9N5Dn1LX0uOZlppKBtjqNql0agfAqIHLF02o6z5wZAyT9uP4V00JUNs4MejkmXvK0 HjQJ3SkMNtCrDXxfenxXrfEslLPJlWt/tmLGY0gwcpmzjCxb/0YE6oPqOsdHgsVI7rw5 gyCWKbHlyjrKf+lZLGWBAoB0XqUuhrwXeB1Atwsdb9970wM4Wi27P9Mc1r51LAiJI8sM FlRDniOqz7kYQu2R+Pr0xshAmAJuia84uknOei5/3GyCcyCdtb+Gq4/qcimq6CUYezXe 2v6A== X-Forwarded-Encrypted: i=1; AJvYcCVMcLMsHrYOHNfE7HJd963S+PhDp6xp1fvv17Nn/uJggprEnOo9oVIt1sKJxn6LvRLAsWxmC8qQitAQ@vger.kernel.org, AJvYcCVUzuY/koopNNNplJU09aQf+wTWru3FMkHiaj6yOlfmMVHe4H6Cwi3OdzC6End7dDQHk0b4kUrQwkD2R9I=@vger.kernel.org, AJvYcCWKUYEPd6nsG6oFD44lpIUc3t8lk0YZTKSRk7HivaB++EObFNb2qXJBmktPb5tBWjnMAIWLF1MGYUkri39R@vger.kernel.org X-Gm-Message-State: AOJu0YxoJ8oGylVjsU5iqiZ1QSOYyuEVWlfwO6wTUH1hlGaWpZtnuWhG rG6i7TBn556a9jlBXVGt52qoXSHMig+RNOH/hINUapDjRe1urwF9QAWuFg== X-Gm-Gg: ASbGncu2J6RVphUxo4deZ4dgYj7N20KNYtAVVHsHkv6TAN9UU9LmAOpPuIq31BMXUKy 70J1r6SgmEZyBnR5YZsPkaQykuNqHqlniWB5vQBW2GAZygEd/ip08raawKBhKcEy1ZxVNG22FZr gBp5MwVbycg3UApX0rkvd6tn/Vkh0rC5/0GyTCau7ah6uQFo0zT/hviliHvKz1AMduMqxhISIIv VO6IzjTL/W6fuP5EQWnoJZfgTInCiKaMYTlSaX1GjJBu4Yb X-Google-Smtp-Source: AGHT+IFgAGmoGJVsJzPaIMq30KV2D1Qq5ONA0mztbUJgS9L9bVoQF5OqOcYcBkf96O2meVUzed5IGQ== X-Received: by 2002:a17:907:7714:b0:aa6:2241:e170 with SMTP id a640c23a62f3a-aa62241e6c2mr81938666b.19.1733348118644; Wed, 04 Dec 2024 13:35:18 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa62601b5ddsm4506966b.118.2024.12.04.13.35.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2024 13:35:18 -0800 (PST) From: Dzmitry Sankouski Date: Thu, 05 Dec 2024 00:34:57 +0300 Subject: [PATCH v7 10/14] arm64: dts: qcom: sdm845-starqltechn: add display PMIC Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241205-starqltechn_integration_upstream-v7-10-84f9a3547803@gmail.com> References: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> In-Reply-To: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, Dzmitry Sankouski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1733348104; l=3460; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=I1B6bGjvBKFt4XBd7a8aKNKz7MCwstChV5lIYk6cNX0=; b=qPkS4glj1A7X1Fo7e/l/W2eEBby2Hoj02MyvEZh0gcW5CyvQjrcW9xU5Xhla4KkcdCclvf8fu qF4/r0Yf36TANRXEqmxcc3qd4LQYn7Ovc41Lm7yVrcT0UPSeqWgvNg/ X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Add support for s2dos05 display / touchscreen PMIC Signed-off-by: Dzmitry Sankouski --- Changes in v7: - move i2c21 node before gpio-keys Changes in v6: - refactor: s/starqltechn/sdm845-starqltechn in subject - refactor: 'i' < 'm', so put tlmm i2c node before motor* Changes in v5: - simplify regulator names - remove single buck index --- arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts index c143501700a4..44a70f2f5a09 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts @@ -40,6 +40,9 @@ framebuffer: framebuffer@9d400000 { height = <2960>; stride = <(1440 * 4)>; format = "a8r8g8b8"; + vci-supply = <&s2dos05_ldo4>; + vddr-supply = <&s2dos05_buck>; + vdd3-supply = <&s2dos05_ldo1>; }; }; @@ -96,6 +99,66 @@ memory@a1300000 { }; }; + i2c21 { + compatible = "i2c-gpio"; + sda-gpios = <&tlmm 127 GPIO_ACTIVE_HIGH>; + scl-gpios = <&tlmm 128 GPIO_ACTIVE_HIGH>; + i2c-gpio,delay-us = <2>; + pinctrl-0 = <&i2c21_sda_state &i2c21_scl_state>; + pinctrl-names = "default"; + #address-cells = <1>; + #size-cells = <0>; + + pmic@60 { + compatible = "samsung,s2dos05"; + reg = <0x60>; + + regulators { + s2dos05_ldo1: ldo1 { + regulator-active-discharge = <1>; + regulator-enable-ramp-delay = <12000>; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <2000000>; + regulator-name = "ldo1"; + }; + + s2dos05_ldo2: ldo2 { + regulator-active-discharge = <1>; + regulator-boot-on; + regulator-enable-ramp-delay = <12000>; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "ldo2"; + }; + + s2dos05_ldo3: ldo3 { + regulator-active-discharge = <1>; + regulator-boot-on; + regulator-enable-ramp-delay = <12000>; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + regulator-name = "ldo3"; + }; + + s2dos05_ldo4: ldo4 { + regulator-active-discharge = <1>; + regulator-enable-ramp-delay = <12000>; + regulator-min-microvolt = <2700000>; + regulator-max-microvolt = <3775000>; + regulator-name = "ldo4"; + }; + + s2dos05_buck: buck { + regulator-active-discharge = <1>; + regulator-enable-ramp-delay = <12000>; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <2100000>; + regulator-name = "buck"; + }; + }; + }; + }; + gpio-keys { compatible = "gpio-keys"; autorepeat; @@ -557,6 +620,20 @@ &tlmm { gpio-reserved-ranges = <27 4>, /* SPI (eSE - embedded Secure Element) */ <85 4>; /* SPI (fingerprint reader) */ + i2c21_sda_state: i2c21-sda-state { + pins = "gpio127"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + i2c21_scl_state: i2c21-scl-state { + pins = "gpio128"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + motor_pwm_default_state: motor-pwm-active-state { pins = "gpio57"; function = "gcc_gp1"; From patchwork Wed Dec 4 21:34:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 847363 Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (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 F272D206F3A; Wed, 4 Dec 2024 21:35:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348125; cv=none; b=YoyQr7hoxgbF6B1urGYQ+gdli4LDxlS3J2ZgCDa76IuuBHeUbd9xrBfxrm7DsSjq0wx/HSOICfNM62Dp+px2qsSk2fp/QPRvOcDCAu1e1FIheaOcmc4rTjGy7b028/qnuNEJB6bwhtZPIjh8Fbt3z2MRD0yLtZWkkdjVbzYd+Og= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348125; c=relaxed/simple; bh=ZktPBha3MJ5/KlA9AlQzgKigSH5l+ZI/rkQsfGWIGo8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FFaWzfkOgsJJwjSwrHzh0hjRXd2OE1aPmpLnZSMe4ACpMZ3S/dIVhE1A1KM4lLtoUF8891ZQqXpPqLjhe39gLXVAgPwPKy5iyDCT/pmEJzrGqxxjAAEvaT3aNjQtimn+GkyBQL4GiLXg3XuedHzuS4hYWUUfIgB84B6SF8PTo80= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=gSKi62n3; arc=none smtp.client-ip=209.85.167.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gSKi62n3" Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-53de84e4005so378693e87.0; Wed, 04 Dec 2024 13:35:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733348122; x=1733952922; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=unOUW9QTZHC1BrDegDGoofl1UJ0TCXgmMQQ4ICNFgMk=; b=gSKi62n3OWHIBWa+WGHzBps6KFPD9jcZiXIAWtD9vI/lKuAWuCo8NagX7ekn8Zvo+z SAXhS+b5xN/rHwqYDcWI9ig4S2FJzKqUca9OO581nKk1fkntMpIplB3I0NLnIu/GKHIW a8Cbm/mQiTbnPXQhmwOtBRkw4UfYlBSoZXLxHqgt6Y74178aezf7GuKT3A8q6klKKXU/ Gy8lv2PfG9+BNXhkJTrrLVjphKPHD/kLii8LxxdhGEy3+IMqHnBEGb12oyvVkPx5mQ83 nY5S0rQN31yf3WnMhnwjW7UNUD9kWglIt8m8NYihEDgoCXKIfPu9CLyhcN4wFypcBgGF zSng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733348122; x=1733952922; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=unOUW9QTZHC1BrDegDGoofl1UJ0TCXgmMQQ4ICNFgMk=; b=SgSh3LlJwZlc/3S4s2TeziuyanUFJnGhPArfMJ2DFbjJXgTbtQrNAOKMUvvlZ5+59v Au7EMAM0vg/AHeaqlQW2Jr9RZmksgz8lpN35ewPk8laTZRwx+R6pLuNSokpdJMqHU/cf nyq8g7T0akE4UENs7hF8u9OmJCiiZedsZmhLWsfXD/OUGkbKxIC4wIcFUW1LXJ0xrCuU JRO2+NTLDn4QKRSgrRchHSLJpz81/4SiRfgeKMeCxqzMM6ir0qxdG7MtnYzlgGl6tmQ7 n+fNKdsUdK5ndQTfEjtIFwLeulhL1a93X56qHNZzPvcaka7vq+zLClFQexZXRy5EtG30 3E8g== X-Forwarded-Encrypted: i=1; AJvYcCUHRfT2iNNsz0ESgmSNDBKbhHGt5fuafNpFgSlqSriYSw6aZA2MSTAHevBxrlFJf/nkb0668luWYLka@vger.kernel.org, AJvYcCUP10YHfC5BCMkuKleATgvH/UYgB91z/DF+9g0PMt2pa1Ecc7C/O4NDoi1Ll5SxyTRGtSFn3bx2K5APZNhb@vger.kernel.org, AJvYcCXSF0wu9RLhnOYrfVCB43FtFKrHjizP0HhoZ32/o0YyJb4Psu0AYciJJgv/QBoLeIbhy56oiWSjS98ttOA=@vger.kernel.org X-Gm-Message-State: AOJu0YzOA1cSpGkNhs3F0+rcKglO3A9wVj4feYttKGw/S7NGQUmIDvzW owFdzzCbpIyW7mCABts7fuiHssN0U+h0KHX50kfmDr9YridscAUsxeCM/g== X-Gm-Gg: ASbGncsF/DAk5DPAAKalp+N5KIQ0YZ1LIb34OttXTuk34mcIjzcmmHQHGe5ZzQyZFee s/DwNRamNORUZcuvJfKJL2lCwved9YZNYaXzrW3A9dnqI62UJmwo/KWdFLbuaxX1CuTtpBmroOx RTfv3gnGoj5aIS/b+KRA6uBH006yj0kgdGXtPN8NCd2mQuyJX+SP/QATq2L/uccOUxPW2p4ypKk ogr7qAug0iCxA/bzTQLZ9TqI0ayVZBh+T1gLAeDBmb1k79e X-Google-Smtp-Source: AGHT+IFpkU19KP0h8tweTA/NAEZg3pan/G3HYU4xPm0rqs5vgGmcuj0QjoU6cif6ee1dDCvu+jCp7g== X-Received: by 2002:a05:6512:6c9:b0:53d:e4d2:bb3 with SMTP id 2adb3069b0e04-53e12a2e4e5mr5715412e87.50.1733348121816; Wed, 04 Dec 2024 13:35:21 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa62601b5ddsm4506966b.118.2024.12.04.13.35.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2024 13:35:20 -0800 (PST) From: Dzmitry Sankouski Date: Thu, 05 Dec 2024 00:34:59 +0300 Subject: [PATCH v7 12/14] arm64: dts: qcom: sdm845-starqltechn: add initial sound support Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241205-starqltechn_integration_upstream-v7-12-84f9a3547803@gmail.com> References: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> In-Reply-To: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, Dzmitry Sankouski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1733348104; l=5490; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=ZktPBha3MJ5/KlA9AlQzgKigSH5l+ZI/rkQsfGWIGo8=; b=Am0yDz0wiS+sK7Vn+vDnf9T/2pq+p6KNSC1aq8lTZPFY2qgzeKoIJXlUuoqQGdbJwf2EmH4UP IsEgaEp7j5uD8S8nIyxXwY55/0fiGOzO9l+pgUgkjFjKtYJl4YjJSK+ X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Add support for sound (headphones and mics only) Also redefine slpi reserved memory, because adsp_mem overlaps with slpi_mem inherited from sdm845.dtsi. Signed-off-by: Dzmitry Sankouski --- Changes in v7: - replace indeces with constants from dt-bindings/sound/qcom,wcd9340.h - add spaces after 'link-name' node - remove not connected digital mics from audio routing - add DMIC(0|2) -> MCLK routing, because digital mics need clocks - align mapping comments, add dmics comment Changes in v6: - refactor: s/starqltechn/sdm845-starqltechn in subject. --- arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts | 223 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 223 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts index 039feb07ef60..04ef4f030931 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts @@ -11,8 +11,16 @@ #include #include #include +#include +#include +#include + #include "sdm845.dtsi" #include "pm8998.dtsi" +#include "sdm845-wcd9340.dtsi" + +/delete-node/ &adsp_mem; +/delete-node/ &slpi_mem; / { chassis-type = "handset"; @@ -97,6 +105,16 @@ memory@a1300000 { ftrace-size = <0x40000>; pmsg-size = <0x40000>; }; + + slpi_mem: slpi@96700000 { + reg = <0 0x96700000 0 0xf00000>; + no-map; + }; + + adsp_mem: memory@97800000 { + reg = <0 0x97800000 0 0x2000000>; + no-map; + }; }; i2c21 { @@ -591,6 +609,211 @@ touchscreen@48 { }; }; +&adsp_pas { + firmware-name = "qcom/sdm845/starqltechn/adsp.mbn"; + status = "okay"; +}; + +&lpasscc { + status = "okay"; +}; + +&wcd9340 { + reset-gpios = <&tlmm 64 GPIO_ACTIVE_HIGH>; + vdd-buck-supply = <&vreg_s4a_1p8>; + vdd-buck-sido-supply = <&vreg_s4a_1p8>; + vdd-tx-supply = <&vreg_s4a_1p8>; + vdd-rx-supply = <&vreg_s4a_1p8>; + vdd-io-supply = <&vreg_s4a_1p8>; + qcom,micbias1-microvolt = <1800000>; + qcom,micbias2-microvolt = <2700000>; + qcom,micbias3-microvolt = <1800000>; + qcom,micbias4-microvolt = <1800000>; +}; + +&sound { + compatible = "qcom,sdm845-sndcard"; + model = "Samsung Galaxy S9"; + pinctrl-0 = <&quat_mi2s_active &quat_mi2s_sd0_active &quat_mi2s_sd1_active>; + pinctrl-names = "default"; + status = "okay"; + + audio-routing = "RX_BIAS", "MCLK", + "AMIC2", "MIC BIAS2", /* Headset Mic */ + "AMIC3", "MIC BIAS2", /* FMLeft Tx */ + "AMIC4", "MIC BIAS2", /* FMRight Tx */ + "DMIC0", "MCLK", /* Bottom Mic */ + "DMIC0", "MIC BIAS1", + "DMIC2", "MCLK", /* Top Mic */ + "DMIC2", "MIC BIAS3"; + + mm1-dai-link { + link-name = "MultiMedia1"; + + cpu { + sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>; + }; + }; + + mm2-dai-link { + link-name = "MultiMedia2"; + + cpu { + sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA2>; + }; + }; + + mm3-dai-link { + link-name = "MultiMedia3"; + + cpu { + sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA3>; + }; + }; + + mm4-dai-link { + link-name = "MultiMedia4"; + + cpu { + sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA4>; + }; + }; + + mm5-dai-link { + link-name = "MultiMedia5"; + + cpu { + sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA5>; + }; + }; + + mm6-dai-link { + link-name = "MultiMedia6"; + + cpu { + sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA6>; + }; + }; + + slim-dai-link { + link-name = "SLIM Playback 1"; + + cpu { + sound-dai = <&q6afedai SLIMBUS_0_RX>; + }; + + platform { + sound-dai = <&q6routing>; + }; + + codec { + sound-dai = <&wcd9340 AIF1_PB>; + }; + }; + + slimcap-dai-link { + link-name = "SLIM Capture 1"; + + cpu { + sound-dai = <&q6afedai SLIMBUS_0_TX>; + }; + + platform { + sound-dai = <&q6routing>; + }; + + codec { + sound-dai = <&wcd9340 AIF1_CAP>; + }; + }; + + slim2-dai-link { + link-name = "SLIM Playback 2"; + + cpu { + sound-dai = <&q6afedai SLIMBUS_1_RX>; + }; + + platform { + sound-dai = <&q6routing>; + }; + + codec { + sound-dai = <&wcd9340 AIF2_PB>; + }; + }; + + slimcap2-dai-link { + link-name = "SLIM Capture 2"; + + cpu { + sound-dai = <&q6afedai SLIMBUS_1_TX>; + }; + + platform { + sound-dai = <&q6routing>; + }; + + codec { + sound-dai = <&wcd9340 AIF2_CAP>; + }; + }; + + slimcap3-dai-link { + link-name = "SLIM Capture 3"; + + cpu { + sound-dai = <&q6afedai SLIMBUS_2_TX>; + }; + + platform { + sound-dai = <&q6routing>; + }; + + codec { + sound-dai = <&wcd9340 AIF3_CAP>; + }; + }; +}; + +&q6afedai { + dai@22 { + reg = <22>; + qcom,sd-lines = <1>; + }; + + dai@23 { + reg = <23>; + qcom,sd-lines = <0>; + }; +}; + +&q6asmdai { + dai@0 { + reg = <0>; + }; + + dai@1 { + reg = <1>; + }; + + dai@2 { + reg = <2>; + }; + + dai@3 { + reg = <3>; + }; + + dai@4 { + reg = <4>; + }; + + dai@5 { + reg = <5>; + }; +}; + &usb_1 { status = "okay"; }; From patchwork Wed Dec 4 21:35:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dzmitry Sankouski X-Patchwork-Id: 847362 Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (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 4C88C20767C; Wed, 4 Dec 2024 21:35:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348128; cv=none; b=XRE3N5zDuuLSCr91xRy7+1MeuMhGjufES7gzF7KZ5fy+rEdYqqybms/jFy7wqJ/We9GllHHC8qoJjYGOmGVtpByIVFKx6aimFK+8dxXK+pGOPklDbUQhaSc36FGa27lctBLh3hbsHPngF4OFF2L7rymfBQlN5YbkZsC5bEA6F8k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733348128; c=relaxed/simple; bh=2tHzmSguC9B88sWflOmx2hAs+IwmerQrL2ci2kCVlbc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hAphVaTBQpppsvm2B7sTbh6RHsPtu76ErdhxVc5ztLeGog74FYn5KQyKwic+XcLI7Hkxw4XF8S+3p3CwXPKwiTbFZBNkgbhcyZHIpQsObf4FY+sboA4RClx3pnfp17/aXcZ+Azn3B07HpANp5xvlfE2jHx3fgBOHXQ649YnzOEA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=JLYbAuyo; arc=none smtp.client-ip=209.85.218.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JLYbAuyo" Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-aa1e6ecd353so28659466b.1; Wed, 04 Dec 2024 13:35:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733348124; x=1733952924; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=yxgQfg2BOAQCHKqqupwnI8lgxyjM2FrMmQmc5aOhDZM=; b=JLYbAuyow1f7o3FHUSQOGFpNEf6OSSVmfHiSylJf6d5mQd+5SnDa4e8q6+cUP8xTrj 9d9crOgTRG6r9JIXtPwiIL67HVQoQxaW2u235MAQqQiJAMuh1qZUIMyiFNW3NFZv4gB6 tRVmYaaA1ta+N/Vf0rIAVf9DwsQRJuEJ3T7qg9clkldiBbkncB1ljVXYRMvlo/u2FLCZ LIbEd37STlFzx9t/+Nr5w2D3BLvHAc30gOayRtVTrm8YiYcu1duhuTVFMbiJA3qNy8y9 VgqIUDXgtHV77H+IcC6h5B9QJI+eIJgMNB74SMblLEF03XnH4QeEYqqORWBcYZ1PQYG7 MDvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733348124; x=1733952924; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yxgQfg2BOAQCHKqqupwnI8lgxyjM2FrMmQmc5aOhDZM=; b=UpeoDDKfOGW+d5oNRz7YQcftNkuMasV1cMDIIWbgXaiiXutKn/8hfldpLEwCs0gWWv 4DEqwgOfUKcUFOJa6ciJswK3MsGDXR9l3DvtXfWqL9ATj5POmSxOuzzsRRz6E0sFgowv JMh0pawQmhN7RlPa+DjQ4nUyDoNSebWscx0nZmRFiEcqdmAHSCD/PaXxD9ENjdcqtFY1 OSZd+PQYMiJHxNb+24RrsMLmrM8AWHD0NfDA79/prmXh9+5Suz/9fcLW30l9xbpAkcwf B/7I/JM2vKoSglLo0wJvxHxUNtwNekHXbDYhBtEA3L9LvH/r0ONjPyot2Irh3oAG4Cuy Nohw== X-Forwarded-Encrypted: i=1; AJvYcCUOaYLIJcFHnUygNbKmeFGZkVy0YARH9C5Fe1/hywZpyKgPcip25U8snCyfDmd2wnWMG4TJCgY/Tf9VqfXl@vger.kernel.org, AJvYcCUR0MLJdQgJqB30jTX3w2adncajcb0WBXADfJKOkd0vzvLl03vhZe9y4egVrOSDAUKpiMwvP9M5UF2B@vger.kernel.org, AJvYcCUxa7gONAdkeKJyT835LEPoP0i/qVzUP0uS32/NQMv5tCwmPt2Ks3lr5Puc9IE6fLEM/h/CmmoLo/IXnLY=@vger.kernel.org X-Gm-Message-State: AOJu0YwPZwDPfL+xTsU8CVmG7c7j5i8jEhqksatQ/eFH/2ctXIMgI4/l te4EJnYIJrds/ZXSrEa4ApXIkoCgmiegINzWEc/0Si9l2uiWZYoLL+sfsA== X-Gm-Gg: ASbGnctEWsXn5H9CT3e1t1uC99iab/bXW3meVnIeogAN+JmGbUVXpjug/eDJfsU9/mb eRx/4D6Fd/o5jV/85vqNSJrUhviwBTR/Zku9g+pKIKp6ZaEbwwQ254jDBjag4IBT3quatIS0YfW wpraYjjgVlMJLE4IxlArrmEPnpGEBA48WyOmYmQBgrlrHAj9PjsInUngVrezBTi6GpIfFSPXqLZ kAfQntc/nKcdef8l1hVqnTtdJRN6yrmKi1ay36eGRmcEKXg X-Google-Smtp-Source: AGHT+IH6mG9xi/70k6iJ4wp2PEjv/SLud4unNTG9xLbEgrvPdO0recQ1Sim7i3L2L47S1NWkk+2mYw== X-Received: by 2002:a05:6402:26d6:b0:5d0:8225:aa19 with SMTP id 4fb4d7f45d1cf-5d10cb4e6f4mr11331230a12.2.1733348124368; Wed, 04 Dec 2024 13:35:24 -0800 (PST) Received: from [127.0.1.1] ([46.53.242.72]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-aa62601b5ddsm4506966b.118.2024.12.04.13.35.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2024 13:35:24 -0800 (PST) From: Dzmitry Sankouski Date: Thu, 05 Dec 2024 00:35:01 +0300 Subject: [PATCH v7 14/14] arm64: dts: qcom: sdm845-starqltechn: add modem support Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241205-starqltechn_integration_upstream-v7-14-84f9a3547803@gmail.com> References: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> In-Reply-To: <20241205-starqltechn_integration_upstream-v7-0-84f9a3547803@gmail.com> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org, Dzmitry Sankouski , Konrad Dybcio X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1733348104; l=2190; i=dsankouski@gmail.com; s=20240619; h=from:subject:message-id; bh=2tHzmSguC9B88sWflOmx2hAs+IwmerQrL2ci2kCVlbc=; b=q2wZX3JTiwbyE2T0qQQbPRWF/TcfHXn33BTKtXaRAQF62LHBipGA48X+qNaNrBIeJ/jHS0Utt JYDZG1Osu9ICk+CPnxhmmQFdDhvlUfkLXkvSretPAZ+oI4OpwXXU+Pj X-Developer-Key: i=dsankouski@gmail.com; a=ed25519; pk=YJcXFcN1EWrzBYuiE2yi5Mn6WLn6L1H71J+f7X8fMag= Add support for modem and ipa(IP Accelerator). Add spss reserved memory node. Reviewed-by: Konrad Dybcio Signed-off-by: Dzmitry Sankouski --- Changes in v6: - refactor: s/starqltechn/sdm845-starqltechn in subject. --- arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts index 15997cb88576..4583d071409d 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts @@ -19,6 +19,8 @@ #include "pm8998.dtsi" #include "sdm845-wcd9340.dtsi" +/delete-node/ &rmtfs_mem; +/delete-node/ &spss_mem; /delete-node/ &adsp_mem; /delete-node/ &slpi_mem; @@ -106,15 +108,39 @@ memory@a1300000 { pmsg-size = <0x40000>; }; + /* + * It seems like reserving the old rmtfs_mem region is also needed to prevent + * random crashes which are most likely modem related, more testing needed. + */ + removed_region: removed-region@88f00000 { + reg = <0 0x88f00000 0 0x1c00000>; + no-map; + }; + slpi_mem: slpi@96700000 { reg = <0 0x96700000 0 0xf00000>; no-map; }; + spss_mem: spss@97700000 { + reg = <0 0x97700000 0 0x100000>; + no-map; + }; + adsp_mem: memory@97800000 { reg = <0 0x97800000 0 0x2000000>; no-map; }; + + rmtfs_mem: rmtfs-mem@fde00000 { + compatible = "qcom,rmtfs-mem"; + reg = <0 0xfde00000 0 0x202000>; + qcom,use-guard-pages; + no-map; + + qcom,client-id = <1>; + qcom,vmid = ; + }; }; i2c21 { @@ -860,6 +886,19 @@ dai@5 { }; }; +&mss_pil { + firmware-name = "qcom/sdm845/starqltechn/mba.mbn", + "qcom/sdm845/starqltechn/modem.mbn"; + status = "okay"; +}; + +&ipa { + qcom,gsi-loader = "self"; + memory-region = <&ipa_fw_mem>; + firmware-name = "qcom/sdm845/starqltechn/ipa_fws.mbn"; + status = "okay"; +}; + &usb_1 { status = "okay"; };