From nobody Fri Oct 3 13:30:15 2025 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.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 79BBB25FA2C for ; Sat, 30 Aug 2025 16:48:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756572526; cv=none; b=lzYTpFGMJUYNZscFHWJxbYxnvEmEvkdt4KY1gNx067IDnLRpcRSUczpkeUFb3YYlFl91aL2fMlziN56xhDno0osBwpTa2u71Biks6fOT1H5OFQ9Um3vfwrZ2EWMTQI0CFSNF0a6jHZv68BoYq2W0zUDvmvh2kgjQub5NEePnDuk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756572526; c=relaxed/simple; bh=7uER2DvoLLE6z6epL6HrNFtjDW4TWlnYFUC2TNnSIPk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=gPYU83VAm8O6iF1xikI+YTMWskHTUi4ezq20LFZMNmVNm3LUuD1r+ZSoUmsz3mrcmSp12HClP2RG9/rW9xGwnQ3mkS96nHhv5NFUdp56GO6GGvvN10ba6BAOxLENUjnGCYEVFxfa/JWjS6oZRnDuArtT7AqXHOpxDjiyc0unNJs= 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=D7B6xbNQ; arc=none smtp.client-ip=209.85.221.46 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="D7B6xbNQ" Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-3cd44b9496fso376127f8f.0 for ; Sat, 30 Aug 2025 09:48:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1756572523; x=1757177323; 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=kwHNHld86Ahk+TRbfmt7h72W95FfFhoR7W7sL+uYmow=; b=D7B6xbNQyhoQGODZw9BF2Jwadd/lwFoYcOz4MVwS+I2WtMh7iBUMKb0w9DnaUoj7w3 hSJmFJSM5gF5LI+NkKb1k0A2DmR4ckoGjFTKEW5Ev2Ju+EJQCv13yyP3BlDGWFnr/9Oa v3MW0LD+clhahBdOiAqhTy+Nkzyn6tiweP3Ea3W7M/rxgCEoCwxqlwCedvLuTRRtsjQB bhM9i8limr87pLqNQF36+bT505xXVUh6CDuP0uldN9RrI2B3GcL+lU7eWeOIYsVkwfyb Tv16Uv3huN1iTT/5vX7+SKpGxkt9uouY0ti9Jt5bdq14VgNMu8upyLoAEF/5FMs7hIKl qNVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756572523; x=1757177323; 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=kwHNHld86Ahk+TRbfmt7h72W95FfFhoR7W7sL+uYmow=; b=Idbc80eg/Z2n8JByke/Z9hSRF0xem9QI5sfZWZdbf/r5lCvjMMPVbl85We1A8MDcTv geTsqaIFsX+f6F2/jHvQwvHk7gknnkimDmuJAESSVMop7WGOtNUzbBdsLW7JZtivesYw cWUtOL9fg4hu3OzApVaSQL94b/OUFfXqpfUfto16S61qB3WmbNtmIC4fQFbZsaH5e0Qa 9THyGP4JZpTN7pHrx6gKGw7YVCeOvExkr6LnVT3M/61yWzEYJ0PuE3mKlG4PZu+Kpv5A cZK33TnQ9skp/5OLmAWWuoH6iyaz6+kLyNDWWZth0JjEH3BTpkIWAaoEVY0vlKjwZbA1 7/8Q== X-Forwarded-Encrypted: i=1; AJvYcCXSywOsBF3/LNjc+lFThD7LO6dWSquBM1uPEquQXAEabr2lXFZBwvMWmgxsnS9D/qvDgna9TQkQBQBKoEk=@vger.kernel.org X-Gm-Message-State: AOJu0YyllolKQGTy4+N4F8HSryplNn0CVlaoECPIWCUgazNm2IDMv+e8 kW6nxG0uoCI6ObDIv9/Ehz4tHAgcYextylC6tNcjCX9BWstbxzvVwW5A/Fh7hHMBXQ0= X-Gm-Gg: ASbGnct7jBfjvbBFgBFd8B7A98vwhjXmxlAEi9WYCva+0JwHNum0SB2dq5CWTpPDhx4 EK9ocgWyEtI8dSp95XBwzFNJ3NyxvHfy7qqDyBg/ordDCSWpK/qe7ZRcP5JjAvflteOArvA7aDd 2i1EumMhAY9uC2tj9uJ2P0N6toqsR7GzYlfoZeeJS0iGQCabTPQ/qnlb7vtWUGRF/cyDppUpbXZ TrH+caiDyNtAGK0ZImXyZPFd3UN5MBesva0S7bCdrMzkJaR+c2KHWokvsSCpztxVJ9bG6xtgX8f qx9rZjXqDo3J2oi1dtrPHC+b6v8RE7LJZLAtd0e5sCVkBtAM3AMdh3tw7WLEjZb+fmslQV2RyFw c9LlB/vi+4DUHEnT7T9InO6S+EXJWfKFKWxZs4qM= X-Google-Smtp-Source: AGHT+IGUYbZV5y47P6lmjYscKjNdQ2Uw8ELxYIkx4OD71yfrs+H4TcNwkmZsQ6P3v/fHNbcN0w5aPQ== X-Received: by 2002:a5d:4490:0:b0:3d1:6e71:4915 with SMTP id ffacd0b85a97d-3d16e714b0dmr1046081f8f.4.1756572522774; Sat, 30 Aug 2025 09:48:42 -0700 (PDT) Received: from [127.0.1.1] ([178.197.219.123]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3cf274dde69sm7818129f8f.14.2025.08.30.09.48.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Aug 2025 09:48:42 -0700 (PDT) From: Krzysztof Kozlowski Date: Sat, 30 Aug 2025 18:48:30 +0200 Subject: [PATCH v2 1/5] iio: adc: exynos_adc: Drop S3C2410 support Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250830-s3c-cleanup-adc-v2-1-4f8299343d32@linaro.org> References: <20250830-s3c-cleanup-adc-v2-0-4f8299343d32@linaro.org> In-Reply-To: <20250830-s3c-cleanup-adc-v2-0-4f8299343d32@linaro.org> To: Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Krzysztof Kozlowski , Alim Akhtar , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=4264; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=7uER2DvoLLE6z6epL6HrNFtjDW4TWlnYFUC2TNnSIPk=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBosytjN2yInA7p39V8n1XoJXYzoAUFvLq/xOHS6 dqUEsdByBGJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCaLMrYwAKCRDBN2bmhouD 1x9QD/wP0Tzu8mof+pIAGOVInqw3xEGpRCv4RnJN0E5qMXRG9QqqJNdBW2jeKvNmvYaYzO6zJAY Ev7ZpFXpiRZNKoGRbe6yPsfoVCLfXL2htcCeFgoSPKj9r0dsVJ5vQcDYEJ61UrmOdbd5IeB8Iaa z2yx4V+eF/xCz/UUS1JKcwo5saIq8aqQlxNjufJK/RxTUi/z6kPnczOXA+jali0A3lXVphMABDf 9dN7bnsGgy4Tzl+3OME5+VoQRNpiRnOXcKpnOa8Ljpx7V5zgZTsGF4hpL2nLD/ACLBIbNxvSLAL 7Vx2vi0K83YcWGQ+sugWZ+VZ0uiCEbpNU31k2QuhDk+1U55VbN6RnjOSP6HrVu1Y5dTcvu2z4LV Asmjc+u/KHPBJTSbfmxzAv/USAuaZDK5sVodbVSlKABJasrieBwAmse0NRU5kQilaHgkL4cTA+J q/pxj0YOSEL1sR6EWpxwyg8dWsdsWoxW2C1R8dn66ur9rBN82aqcxuHA5TfuUpN59A/Ub5W8/Kx O8+joypsCNHDmOH+1jvCa4j8kYfae2PVTplVv12sZFYCVsmB0U0ouzZajd+ozTIaN+KA3+ZNBc4 8n9gIcZFRJBgjeoX3l0ghSLrEJji28t/r8xm1hANzB4Am+xtEioguys9BdSsk//SRbElZE5I6Ck 9lClcMh5sUUutag== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B Samsung S3C24xx family of SoCs was removed from the Linux kernel in the commit 61b7f8920b17 ("ARM: s3c: remove all s3c24xx support"), in January 2023. There are no in-kernel users of its compatibles. Reviewed-by: Andy Shevchenko Signed-off-by: Krzysztof Kozlowski --- drivers/iio/adc/exynos_adc.c | 75 +---------------------------------------= ---- 1 file changed, 1 insertion(+), 74 deletions(-) diff --git a/drivers/iio/adc/exynos_adc.c b/drivers/iio/adc/exynos_adc.c index 4614cf848535944a41e0ab19f35c5ca0546000c0..17fd33c6bd6d0dcf41771331ecb= 328e58d820ed0 100644 --- a/drivers/iio/adc/exynos_adc.c +++ b/drivers/iio/adc/exynos_adc.c @@ -44,9 +44,6 @@ #define ADC_V1_MUX(x) ((x) + 0x1c) #define ADC_V1_CLRINTPNDNUP(x) ((x) + 0x20) =20 -/* S3C2410 ADC registers definitions */ -#define ADC_S3C2410_MUX(x) ((x) + 0x18) - /* Future ADC_V2 registers definitions */ #define ADC_V2_CON1(x) ((x) + 0x00) #define ADC_V2_CON2(x) ((x) + 0x04) @@ -61,10 +58,8 @@ #define ADC_V1_CON_PRSCLV(x) (((x) & 0xFF) << 6) #define ADC_V1_CON_STANDBY (1u << 2) =20 -/* Bit definitions for S3C2410 ADC */ +/* Bit definitions for S3C2410 / S3C6410 ADC */ #define ADC_S3C2410_CON_SELMUX(x) (((x) & 7) << 3) -#define ADC_S3C2410_DATX_MASK 0x3FF -#define ADC_S3C2416_CON_RES_SEL (1u << 3) =20 /* touch screen always uses channel 0 */ #define ADC_S3C2410_MUX_TS 0 @@ -307,53 +302,6 @@ static const struct exynos_adc_data exynos_adc_s5pv210= _data =3D { .start_conv =3D exynos_adc_v1_start_conv, }; =20 -static void exynos_adc_s3c2416_start_conv(struct exynos_adc *info, - unsigned long addr) -{ - u32 con1; - - /* Enable 12 bit ADC resolution */ - con1 =3D readl(ADC_V1_CON(info->regs)); - con1 |=3D ADC_S3C2416_CON_RES_SEL; - writel(con1, ADC_V1_CON(info->regs)); - - /* Select channel for S3C2416 */ - writel(addr, ADC_S3C2410_MUX(info->regs)); - - con1 =3D readl(ADC_V1_CON(info->regs)); - writel(con1 | ADC_CON_EN_START, ADC_V1_CON(info->regs)); -} - -static struct exynos_adc_data const exynos_adc_s3c2416_data =3D { - .num_channels =3D MAX_ADC_V1_CHANNELS, - .mask =3D ADC_DATX_MASK, /* 12 bit ADC resolution */ - - .init_hw =3D exynos_adc_v1_init_hw, - .exit_hw =3D exynos_adc_v1_exit_hw, - .start_conv =3D exynos_adc_s3c2416_start_conv, -}; - -static void exynos_adc_s3c2443_start_conv(struct exynos_adc *info, - unsigned long addr) -{ - u32 con1; - - /* Select channel for S3C2433 */ - writel(addr, ADC_S3C2410_MUX(info->regs)); - - con1 =3D readl(ADC_V1_CON(info->regs)); - writel(con1 | ADC_CON_EN_START, ADC_V1_CON(info->regs)); -} - -static struct exynos_adc_data const exynos_adc_s3c2443_data =3D { - .num_channels =3D MAX_ADC_V1_CHANNELS, - .mask =3D ADC_S3C2410_DATX_MASK, /* 10 bit ADC resolution */ - - .init_hw =3D exynos_adc_v1_init_hw, - .exit_hw =3D exynos_adc_v1_exit_hw, - .start_conv =3D exynos_adc_s3c2443_start_conv, -}; - static void exynos_adc_s3c64xx_start_conv(struct exynos_adc *info, unsigned long addr) { @@ -365,15 +313,6 @@ static void exynos_adc_s3c64xx_start_conv(struct exyno= s_adc *info, writel(con1 | ADC_CON_EN_START, ADC_V1_CON(info->regs)); } =20 -static struct exynos_adc_data const exynos_adc_s3c24xx_data =3D { - .num_channels =3D MAX_ADC_V1_CHANNELS, - .mask =3D ADC_S3C2410_DATX_MASK, /* 10 bit ADC resolution */ - - .init_hw =3D exynos_adc_v1_init_hw, - .exit_hw =3D exynos_adc_v1_exit_hw, - .start_conv =3D exynos_adc_s3c64xx_start_conv, -}; - static struct exynos_adc_data const exynos_adc_s3c64xx_data =3D { .num_channels =3D MAX_ADC_V1_CHANNELS, .mask =3D ADC_DATX_MASK, /* 12 bit ADC resolution */ @@ -486,18 +425,6 @@ static const struct exynos_adc_data exynos7_adc_data = =3D { =20 static const struct of_device_id exynos_adc_match[] =3D { { - .compatible =3D "samsung,s3c2410-adc", - .data =3D &exynos_adc_s3c24xx_data, - }, { - .compatible =3D "samsung,s3c2416-adc", - .data =3D &exynos_adc_s3c2416_data, - }, { - .compatible =3D "samsung,s3c2440-adc", - .data =3D &exynos_adc_s3c24xx_data, - }, { - .compatible =3D "samsung,s3c2443-adc", - .data =3D &exynos_adc_s3c2443_data, - }, { .compatible =3D "samsung,s3c6410-adc", .data =3D &exynos_adc_s3c64xx_data, }, { --=20 2.48.1 From nobody Fri Oct 3 13:30:15 2025 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (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 230332853E2 for ; Sat, 30 Aug 2025 16:48:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756572528; cv=none; b=kv+97GVWJ/pDMfR7FPQFuSp1Y7eMiZWlrVzDPF/8PJaZ+v/emLk6RjYLWh9R0FMaupncRR5XGBvO0q8SUMJswHKBLOtCyqLSWJsEsSrbBF7FW7Dw74BKIxFf3RwEHzHzT3rh0JSTGcPi+h/yBLwy6MthCYT24NOF+ywQtKn20lA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756572528; c=relaxed/simple; bh=pL0Y/tA1FQ3f1lp+caPxhjKsPy45nrMI/uBEpcjgahA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KYLlX4tw8tZlPnB/ZhKE9V6fy8aTvKOYqurrplMH4kwc2DhtnTSZmqVB9vje1aJyMs3LtryzpS9Xx0XXMZRAZ1TFt47SiMDXh56qTZzoyFrgN83oxNzn1lR+g+WOiQsX3UJ2hZLqvpAML1vTWaw+k89M0leQxruPvw+Lm7Xkou8= 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=oOEc+eJi; arc=none smtp.client-ip=209.85.221.42 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="oOEc+eJi" Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-3cbb5e7f5aaso423684f8f.0 for ; Sat, 30 Aug 2025 09:48:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1756572524; x=1757177324; 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=46Am/D2MIaLs89LH0/OBcxUYQRA2iV/u3RL9jcdWVzU=; b=oOEc+eJimC0cc49JAq1G7T/kNnYWQJJaOkdMPLLqHfQA+//5r/8AHM88IjH86EBvFM A3E7FXNo1w7s3lAAwyrKdNB3biqAxGLQrkpZEqTHRdTe71tPk5TFrcyJQ199qtCYgb6H WLfVdFgR/0Yb1uHbfHKgSsRI1Z4A82htpzDrz5BRgdRwnVmTBVhR9mUFpwsZwqb+0WUQ kcn4Z7B/1yDlNs9Pln0Rc7l3/8waWHhPhm5OHk9ZaOSU57geihRrBJhu7ETGGDCaGMVe lwFz4Dc9NFbAuT75ZWNb13Wp+h39QneSe1M+ndJmDPhXzir9fGWuZyi4JEl7TMtwHkpA qzpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756572524; x=1757177324; 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=46Am/D2MIaLs89LH0/OBcxUYQRA2iV/u3RL9jcdWVzU=; b=MN1lWiF+Rge86Fw7Qf9mL4q6UM7Kn2EIDUh5U9E6PCoxV7n6KXBLgIITAZz3Nbgw2f oBo/jtMK53FPKbfDMFRExJBndC0jG+cZ31dRoGjH7Dkr1tIFgTxFI9IZBswjn7sS7UJF Yt0xMYKBUAdOy8eQSgl1ofVIpKC6I+OThXSTqUWLegXXYHe5s/3I9Vei6sSDIqfjsdmE blshMBXAXaxy9BnJapqihY3F2HlzaQChOYBisqA25rECWGoMNdjVxzHz9Hk8bTwrsj2f Q9BMdNr3HcmQz9m93bwxoCJxEnjD3wOQxvfe/pLOQrV2DTMTBNkmXrHWVxgoBfXI/38J 9NHg== X-Forwarded-Encrypted: i=1; AJvYcCUHyOrrJo+Cq99I3pX8lw0yjOO3q9FlcORB4dn/i3PeQKR8h6jWndfEh+/y27phFXo9RHOf3bCvikvbZ3I=@vger.kernel.org X-Gm-Message-State: AOJu0Yw5+mWOagTQ48oMNWBx3FQhnJg49pYP1LysBlz8xxj0ObcABeMV KL7tyeZkDitYK2MscpvFGWIk+MalLfIpEgjtNJSc5diabuCazoIr/brD8Tqhb/gHIv0= X-Gm-Gg: ASbGnct4mvNJelBxw/DMKwv3SlB2SrDpD9qrh2lmuAW8g6yd5rkmAPY2gnN86fzzoxM zpOcG/4eHc3LXFHOSDrripfvkgBES6yXdCmPbTN2P8XiGzksJ5+eXf1TgJZAR72R8qI7kiAu/4R Gj/i8AcEG2DUPb4rBT3nb98fBMcwmADtuOejx7wIfRdxLvPEqJghwW/nHfMl4LhPBFEdQ9lST/E HXONTxElvhRB61x9grvpFjFx00Pxdp8eedqEcXidaJB4RJ7eNUItIcq2bdLnGelKSUMpnqVlrvX k5eWlTqbE88s1BWvC6p14vIPzgzCaVCVBAoCiCsq8OYu5rKGyr+SlPzwheTH5NukjLwRBYEM9UP fFOnkZec1LV2U3nBKEZRlgH2CqkY91noOrw7vrcs= X-Google-Smtp-Source: AGHT+IHrD1CCygt9VhpZMao/pWEV9H2CEgmVnFAV/e9OSZMvWIN5W6294UyPv80QFR88fzw4agBOrg== X-Received: by 2002:a05:6000:250c:b0:3cd:edee:c7ea with SMTP id ffacd0b85a97d-3d0fce99928mr1901993f8f.9.1756572524321; Sat, 30 Aug 2025 09:48:44 -0700 (PDT) Received: from [127.0.1.1] ([178.197.219.123]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3cf274dde69sm7818129f8f.14.2025.08.30.09.48.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Aug 2025 09:48:43 -0700 (PDT) From: Krzysztof Kozlowski Date: Sat, 30 Aug 2025 18:48:31 +0200 Subject: [PATCH v2 2/5] iio: adc: exynos_adc: Drop touchscreen support Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250830-s3c-cleanup-adc-v2-2-4f8299343d32@linaro.org> References: <20250830-s3c-cleanup-adc-v2-0-4f8299343d32@linaro.org> In-Reply-To: <20250830-s3c-cleanup-adc-v2-0-4f8299343d32@linaro.org> To: Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Krzysztof Kozlowski , Alim Akhtar , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=9651; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=pL0Y/tA1FQ3f1lp+caPxhjKsPy45nrMI/uBEpcjgahA=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBosytkEcxfjHQT7VpZUcY+dplKHe4fxjk2DaMcg wuZIqCSX8qJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCaLMrZAAKCRDBN2bmhouD 14esEACT+lG3NVpPCnP6LNODNDUDPVIO42ESqvarp2mk7F4HExWVhyrF3bEKOu2gYO/lJbG4qx2 lrVEf4KKD48ZpgAOSH2zLuZlS+nHzP+HQ8bhkIAnCf555wKYFFmIKDTu3oHlqbhKHPjlRtCdA3l wtWkRmukT196jrOC/7QYR7t9b29Nw9Wd1vMuGia16FBfAN43yyuaAx71Owfmj8qPqJWmlcqQfsz m8dmIQfqS5DXjWmzCrhWSlTJ01CjJIEMt++P5Z0HB0+fDSwS4t4L0kP7+QDZ9/RV5j4OS9Brk+q 7xdUZyQBV+ek+dCOGERMxoAzH8iQuP6ANYK5hA2+XFPT6usd9U4iBh/3aTG4BcCGhYc/yuLlf74 FbJOQLVofJuoMrK/G+QzsxBzFY/QBIFVq8NAnFdj3o2PYExtLCv0MtOSmremRE13LxpmDyLdkhp DG8MuBcL1gT3xELHncCPwojydENBSlFhVOLxCvUSBsZkoQgnOgu/R+7DHj0EFilbOPRLs9snW5C u21Gy/0/fbOh6mI6mY42hy2EXEhLmdbx7p6dQSjPPW+AaRRFZLPfc4UzQLrIa/lMvQgndvhqMu5 5FVcSWmo/NlT4IJqrgue/ODrSvRY7nMsiesFkZDSSlwrvxtSTF3ERxcZmKO+IGLuLzlW+8KMY7/ v9xEoRs8iaXPEuA== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B With last user of touchscreen via ADC (S3C24xx SoC) gone, drop the remaining code from Samsung SoC ADC driver. Reviewed-by: Andy Shevchenko Signed-off-by: Krzysztof Kozlowski --- drivers/iio/adc/exynos_adc.c | 196 +--------------------------------------= ---- 1 file changed, 1 insertion(+), 195 deletions(-) diff --git a/drivers/iio/adc/exynos_adc.c b/drivers/iio/adc/exynos_adc.c index 17fd33c6bd6d0dcf41771331ecb328e58d820ed0..30f6d8436e775a8d2177951b436= cd45152307ea2 100644 --- a/drivers/iio/adc/exynos_adc.c +++ b/drivers/iio/adc/exynos_adc.c @@ -19,11 +19,9 @@ #include #include #include -#include #include #include #include -#include =20 #include #include @@ -35,14 +33,12 @@ =20 /* S3C/EXYNOS4412/5250 ADC_V1 registers definitions */ #define ADC_V1_CON(x) ((x) + 0x00) -#define ADC_V1_TSC(x) ((x) + 0x04) #define ADC_V1_DLY(x) ((x) + 0x08) #define ADC_V1_DATX(x) ((x) + 0x0C) #define ADC_V1_DATY(x) ((x) + 0x10) #define ADC_V1_UPDN(x) ((x) + 0x14) #define ADC_V1_INTCLR(x) ((x) + 0x18) #define ADC_V1_MUX(x) ((x) + 0x1c) -#define ADC_V1_CLRINTPNDNUP(x) ((x) + 0x20) =20 /* Future ADC_V2 registers definitions */ #define ADC_V2_CON1(x) ((x) + 0x00) @@ -61,17 +57,12 @@ /* Bit definitions for S3C2410 / S3C6410 ADC */ #define ADC_S3C2410_CON_SELMUX(x) (((x) & 7) << 3) =20 -/* touch screen always uses channel 0 */ -#define ADC_S3C2410_MUX_TS 0 - /* ADCTSC Register Bits */ #define ADC_S3C2443_TSC_UD_SEN (1u << 8) #define ADC_S3C2410_TSC_YM_SEN (1u << 7) #define ADC_S3C2410_TSC_YP_SEN (1u << 6) #define ADC_S3C2410_TSC_XM_SEN (1u << 5) #define ADC_S3C2410_TSC_XP_SEN (1u << 4) -#define ADC_S3C2410_TSC_PULL_UP_DISABLE (1u << 3) -#define ADC_S3C2410_TSC_AUTO_PST (1u << 2) #define ADC_S3C2410_TSC_XY_PST(x) (((x) & 0x3) << 0) =20 #define ADC_TSC_WAIT4INT (ADC_S3C2410_TSC_YM_SEN | \ @@ -79,12 +70,6 @@ ADC_S3C2410_TSC_XP_SEN | \ ADC_S3C2410_TSC_XY_PST(3)) =20 -#define ADC_TSC_AUTOPST (ADC_S3C2410_TSC_YM_SEN | \ - ADC_S3C2410_TSC_YP_SEN | \ - ADC_S3C2410_TSC_XP_SEN | \ - ADC_S3C2410_TSC_AUTO_PST | \ - ADC_S3C2410_TSC_XY_PST(0)) - /* Bit definitions for ADC_V2 */ #define ADC_V2_CON1_SOFT_RESET (1u << 2) =20 @@ -116,13 +101,11 @@ struct exynos_adc { struct exynos_adc_data *data; struct device *dev; - struct input_dev *input; void __iomem *regs; struct regmap *pmu_map; struct clk *clk; struct clk *sclk; unsigned int irq; - unsigned int tsirq; unsigned int delay; struct regulator *vdd; =20 @@ -131,12 +114,6 @@ struct exynos_adc { u32 value; unsigned int version; =20 - bool ts_enabled; - - bool read_ts; - u32 ts_x; - u32 ts_y; - /* * Lock to protect from potential concurrent access to the * completion callback during a manual conversion. For this driver @@ -507,55 +484,13 @@ static int exynos_read_raw(struct iio_dev *indio_dev, return ret; } =20 -static int exynos_read_s3c64xx_ts(struct iio_dev *indio_dev, int *x, int *= y) -{ - struct exynos_adc *info =3D iio_priv(indio_dev); - unsigned long time_left; - int ret; - - mutex_lock(&info->lock); - info->read_ts =3D true; - - reinit_completion(&info->completion); - - writel(ADC_S3C2410_TSC_PULL_UP_DISABLE | ADC_TSC_AUTOPST, - ADC_V1_TSC(info->regs)); - - /* Select the ts channel to be used and Trigger conversion */ - info->data->start_conv(info, ADC_S3C2410_MUX_TS); - - time_left =3D wait_for_completion_timeout(&info->completion, - EXYNOS_ADC_TIMEOUT); - if (time_left =3D=3D 0) { - dev_warn(&indio_dev->dev, "Conversion timed out! Resetting\n"); - if (info->data->init_hw) - info->data->init_hw(info); - ret =3D -ETIMEDOUT; - } else { - *x =3D info->ts_x; - *y =3D info->ts_y; - ret =3D 0; - } - - info->read_ts =3D false; - mutex_unlock(&info->lock); - - return ret; -} - static irqreturn_t exynos_adc_isr(int irq, void *dev_id) { struct exynos_adc *info =3D dev_id; u32 mask =3D info->data->mask; =20 /* Read value */ - if (info->read_ts) { - info->ts_x =3D readl(ADC_V1_DATX(info->regs)); - info->ts_y =3D readl(ADC_V1_DATY(info->regs)); - writel(ADC_TSC_WAIT4INT | ADC_S3C2443_TSC_UD_SEN, ADC_V1_TSC(info->regs)= ); - } else { - info->value =3D readl(ADC_V1_DATX(info->regs)) & mask; - } + info->value =3D readl(ADC_V1_DATX(info->regs)) & mask; =20 /* clear irq */ if (info->data->clear_irq) @@ -566,46 +501,6 @@ static irqreturn_t exynos_adc_isr(int irq, void *dev_i= d) return IRQ_HANDLED; } =20 -/* - * Here we (ab)use a threaded interrupt handler to stay running - * for as long as the touchscreen remains pressed, we report - * a new event with the latest data and then sleep until the - * next timer tick. This mirrors the behavior of the old - * driver, with much less code. - */ -static irqreturn_t exynos_ts_isr(int irq, void *dev_id) -{ - struct exynos_adc *info =3D dev_id; - struct iio_dev *dev =3D dev_get_drvdata(info->dev); - u32 x, y; - bool pressed; - int ret; - - while (READ_ONCE(info->ts_enabled)) { - ret =3D exynos_read_s3c64xx_ts(dev, &x, &y); - if (ret =3D=3D -ETIMEDOUT) - break; - - pressed =3D x & y & ADC_DATX_PRESSED; - if (!pressed) { - input_report_key(info->input, BTN_TOUCH, 0); - input_sync(info->input); - break; - } - - input_report_abs(info->input, ABS_X, x & ADC_DATX_MASK); - input_report_abs(info->input, ABS_Y, y & ADC_DATY_MASK); - input_report_key(info->input, BTN_TOUCH, 1); - input_sync(info->input); - - usleep_range(1000, 1100); - } - - writel(0, ADC_V1_CLRINTPNDNUP(info->regs)); - - return IRQ_HANDLED; -} - static int exynos_adc_reg_access(struct iio_dev *indio_dev, unsigned reg, unsigned writeval, unsigned *readval) @@ -657,70 +552,12 @@ static int exynos_adc_remove_devices(struct device *d= ev, void *c) return 0; } =20 -static int exynos_adc_ts_open(struct input_dev *dev) -{ - struct exynos_adc *info =3D input_get_drvdata(dev); - - WRITE_ONCE(info->ts_enabled, true); - enable_irq(info->tsirq); - - return 0; -} - -static void exynos_adc_ts_close(struct input_dev *dev) -{ - struct exynos_adc *info =3D input_get_drvdata(dev); - - WRITE_ONCE(info->ts_enabled, false); - disable_irq(info->tsirq); -} - -static int exynos_adc_ts_init(struct exynos_adc *info) -{ - int ret; - - if (info->tsirq <=3D 0) - return -ENODEV; - - info->input =3D input_allocate_device(); - if (!info->input) - return -ENOMEM; - - info->input->evbit[0] =3D BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); - info->input->keybit[BIT_WORD(BTN_TOUCH)] =3D BIT_MASK(BTN_TOUCH); - - input_set_abs_params(info->input, ABS_X, 0, 0x3FF, 0, 0); - input_set_abs_params(info->input, ABS_Y, 0, 0x3FF, 0, 0); - - info->input->name =3D "S3C24xx TouchScreen"; - info->input->id.bustype =3D BUS_HOST; - info->input->open =3D exynos_adc_ts_open; - info->input->close =3D exynos_adc_ts_close; - - input_set_drvdata(info->input, info); - - ret =3D input_register_device(info->input); - if (ret) { - input_free_device(info->input); - return ret; - } - - ret =3D request_threaded_irq(info->tsirq, NULL, exynos_ts_isr, - IRQF_ONESHOT | IRQF_NO_AUTOEN, - "touchscreen", info); - if (ret) - input_unregister_device(info->input); - - return ret; -} - static int exynos_adc_probe(struct platform_device *pdev) { struct exynos_adc *info =3D NULL; struct device_node *np =3D pdev->dev.of_node; struct s3c2410_ts_mach_info *pdata =3D dev_get_platdata(&pdev->dev); struct iio_dev *indio_dev =3D NULL; - bool has_ts =3D false; int ret; int irq; =20 @@ -753,27 +590,10 @@ static int exynos_adc_probe(struct platform_device *p= dev) } } =20 - /* leave out any TS related code if unreachable */ - if (IS_REACHABLE(CONFIG_INPUT)) { - has_ts =3D of_property_read_bool(pdev->dev.of_node, - "has-touchscreen") || pdata; - } - irq =3D platform_get_irq(pdev, 0); if (irq < 0) return irq; info->irq =3D irq; - - if (has_ts) { - irq =3D platform_get_irq(pdev, 1); - if (irq =3D=3D -EPROBE_DEFER) - return irq; - - info->tsirq =3D irq; - } else { - info->tsirq =3D -1; - } - info->dev =3D &pdev->dev; =20 init_completion(&info->completion); @@ -842,11 +662,6 @@ static int exynos_adc_probe(struct platform_device *pd= ev) else info->delay =3D 10000; =20 - if (has_ts) - ret =3D exynos_adc_ts_init(info); - if (ret) - goto err_iio; - ret =3D of_platform_populate(np, exynos_adc_match, NULL, &indio_dev->dev); if (ret < 0) { dev_err(&pdev->dev, "failed adding child nodes\n"); @@ -858,11 +673,6 @@ static int exynos_adc_probe(struct platform_device *pd= ev) err_of_populate: device_for_each_child(&indio_dev->dev, NULL, exynos_adc_remove_devices); - if (has_ts) { - input_unregister_device(info->input); - free_irq(info->tsirq, info); - } -err_iio: iio_device_unregister(indio_dev); err_irq: free_irq(info->irq, info); @@ -882,10 +692,6 @@ static void exynos_adc_remove(struct platform_device *= pdev) struct iio_dev *indio_dev =3D platform_get_drvdata(pdev); struct exynos_adc *info =3D iio_priv(indio_dev); =20 - if (IS_REACHABLE(CONFIG_INPUT) && info->input) { - free_irq(info->tsirq, info); - input_unregister_device(info->input); - } device_for_each_child(&indio_dev->dev, NULL, exynos_adc_remove_devices); iio_device_unregister(indio_dev); --=20 2.48.1 From nobody Fri Oct 3 13:30:15 2025 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.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 8F82F2D239A for ; Sat, 30 Aug 2025 16:48:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756572529; cv=none; b=TM2Bz/bVojKE4594FF0nrnQLeFe9tuDNL62Zk+/jTpIkV6oNAxxEESFr3kN3A2VtNeO15tPjq8KPOTTXeF+cTKG8aSaoQo3jMEe6Tl0Qt3XaCQlnJvLFMj070hF2Y7S9ZAeUizmCQWskl83VyVw7Nwmird8g3qVGdjbyV7iydBY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756572529; c=relaxed/simple; bh=6AT9ywUCC32xDJqdhfxsK5Br7bqJJTl+mGHOc7ie3tI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=sZOWRsRro4ATba4WhYdw39ZCcjB5SFphJhkzAOFcYrB27N/d0iHj6SHklxECuNcbEePBs/w7BnMjmPI89F3p5rb7E4YHhjZyoCcHHjc5xn0vwMXpgLVklSldly/dwye7C/b8HjYtgOOHZuIxmCgVHwEehtu/0rmCvFGP7YESNbY= 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=yfp8KxBH; arc=none smtp.client-ip=209.85.221.48 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="yfp8KxBH" Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-3cd151c38ceso449057f8f.3 for ; Sat, 30 Aug 2025 09:48:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1756572526; x=1757177326; 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=3NHu7s5gw1lYyul9BgLj8lXh4B9A4kmI9Hzn2CmTilU=; b=yfp8KxBHPzQt5lj82AMgIyuB07k6OnSjbmPRv1lDG1o4Lu9j1Jn6R2G8TDVphmwfw9 dCBZPDZY2ahJ4yHDqUt2vf9xYr1IvMm6gtVaNyC2RYEkv1x4GbP5QKCJOHvbFZCX9ZjT IXjUAIc6xRK2vY22GqGu5BAhwoa4CmwsMw2MMEihn+LL5lwSeyaqTt0wmIoNgWyXlsgU wX0pOXWzuLFphA6IexzrTIcN9PJuNFUoSAT6FB2BFzaD6CmCkv5UqkbwNRTWN9veEcRJ fXnj2qk1HJGQ9dhtnxsIPEzSBIySqNaCOFNGImYTrxgFOVE7gfhlGcer3zhc6JqEPZbn vmew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756572526; x=1757177326; 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=3NHu7s5gw1lYyul9BgLj8lXh4B9A4kmI9Hzn2CmTilU=; b=sW/5JTUVjgnXYbLhNAN20dbaJAvw27x9hjCZSvMF14Li79wZUY8/bPaV7z+hL1l3dj z+KFJi2J70qFu0qqlIoxUevpxwaM9QE4Ky2tmQL5GcLA2mkzi2gjgp5FC05dOeTNIvUf 8ZcqTieUh//rW/0As9VcnRuNbPoWxXL16vr0v2Remfp6wohAhr5DI8LCddKbppw3cKNk hu3Zi5urd3oa5mPCWwboGUA6xHtKgV3zl/os3qoSpyAUw+YtNE9UTumo6ryDS1kxYGx5 /vf4ZJtxv2EzoRDNb6gjxczsWj1WV2cDOk9AiX6YCf4SsGcQbNC7717OctE6LB6rHzb3 uHtg== X-Forwarded-Encrypted: i=1; AJvYcCX48xC3vR4VpnAH2RHR0+MfEpYCJRnj5865m9laQB3aAbuWYPCYrE+uL5lt0wp9b2PvSl9ll5e7txCua5I=@vger.kernel.org X-Gm-Message-State: AOJu0YwmyPgtfDEtKNb/zRA6IqYFszgY4+xUxvZKWOoaI6NORx68+WcP QZIGoPkSZfT0MWPL7RZvhqg18U4YXjkp6dD9TFOKi6NIUMzUt1HnOR+3s08KYE/xeqU= X-Gm-Gg: ASbGncvrE2U++uzBKnIlPOxDGCbBkle2C5M0tK0OwsdPFWd4jPh/+2a8kvnHo3Tk/vg zG2Z2sbQZuxp69P7I8NfjaPWH2NFlB6AkIUAxwLZ5YETk25mDDQ3QqlqDhA9/5UkAzFf1Mg4ooJ uZlNl+hN/s+6IKDm8Rv8kfhQb1ZvGvUNGHw/97KMnDfLu8JhAacL7m/2+86bFj52nFOyN4irsqk hw4a3uwBA+ZasfpTOVqaFsrnxDKZ088CTcbRBP0y4zwVEDdpgVPHdm8mQhy21OQ+ScdV96FQZP4 jvOftIsxyjuxjInyHHZeEuq3/ztYbzds1abb+OQDaNZqk8FJ3xqgyXxOi+Pki6u8Tuc5BTHaUBK Nrsnchs9ACKit4SuVfstwOQRcdhf8xV7EahZ/oNyw5OIr1vxBYQ== X-Google-Smtp-Source: AGHT+IG3g/r5+Z44VCwqW8bkfFPUWtY+KFSor7fLqkk/9p70DkqbZxuqtb7Kgq+CTTE5OETkMakrhg== X-Received: by 2002:a05:6000:4203:b0:3a4:f7ae:7801 with SMTP id ffacd0b85a97d-3d0fbdc8122mr2137741f8f.8.1756572525902; Sat, 30 Aug 2025 09:48:45 -0700 (PDT) Received: from [127.0.1.1] ([178.197.219.123]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3cf274dde69sm7818129f8f.14.2025.08.30.09.48.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Aug 2025 09:48:45 -0700 (PDT) From: Krzysztof Kozlowski Date: Sat, 30 Aug 2025 18:48:32 +0200 Subject: [PATCH v2 3/5] iio: adc: exynos_adc: Drop platform data support Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250830-s3c-cleanup-adc-v2-3-4f8299343d32@linaro.org> References: <20250830-s3c-cleanup-adc-v2-0-4f8299343d32@linaro.org> In-Reply-To: <20250830-s3c-cleanup-adc-v2-0-4f8299343d32@linaro.org> To: Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Krzysztof Kozlowski , Alim Akhtar , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=3178; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=6AT9ywUCC32xDJqdhfxsK5Br7bqJJTl+mGHOc7ie3tI=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBosytk+UfhpJZqsZdbJJIvPyy0MxlR8ZzP7Y9vk SaMD1TerjOJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCaLMrZAAKCRDBN2bmhouD 1xDHD/0XrX2T5NZEXND6PIik1dMDmd+0HGE2tUYES27XFPsmniDxAgSEe6eVzk9lgqe21JZJIc1 LcsHr7luK3WjAUNcGYdK9aHIC9n97w6ANM/pqV+4LNHb+ZJaT2EA4yoa72a3vhHpROsEkoqycY4 uDUyvzYWoY4YczYfj5PT53HZiBeMTPKP0HhmTl4Dyo7ip1UGM9PdgU5OSYmF0D6nB0dYjvI8+ZM zF8A+FGUtP6a5oSE2M0QJqfPOuKXEXX/Zdjs5Gx1W8mub0mnfQZbO7iX9L6ASlIhF037rIw0F2S mDlh8XipmgQIo+suj0MbhueFwkS9zhGP1oMimFhJUsd0Oidg5VLIHYmPV19XMCSgbTwChCdcjlT C6XINIdpWP36Qc8S/2rL/bP0lXLTEqqDlAGDHKhm+yto3OeZIGwqEIzKgEiP64ZZ7zdv/dcsYal CDkGJlMhxKa/FH7Zc3JBJ9GzIefC2NE1Wc9RCRd/dptcFJJgDz2ghqblRzlIfsUmtGQniVxcjw4 8lOfUgWqxA+ltVIXYaFEzZKKo8BGDeVgF5hil3sn7LwO37UM4R4JEtL3CDAs5deIMXNUUyDZJ46 bH7bcFxXb6Z/cG9Q/Ju62WPMus5oiQSl9FFMLAEaxO/jTNdfWpNBpyHYcWhJN4f3IGMxeUuiC6E zQ2aBWIdFVu3qPA== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B There are no Samsung Exynos SoC ADC driver users which bind via platform ID, thus platform data is never set and can be dropped. Reviewed-by: Andy Shevchenko Signed-off-by: Krzysztof Kozlowski --- Changes in v2: 1. Drop touchscreen-s3c2410.h --- drivers/iio/adc/exynos_adc.c | 11 +---------- include/linux/platform_data/touchscreen-s3c2410.h | 22 -------------------= --- 2 files changed, 1 insertion(+), 32 deletions(-) diff --git a/drivers/iio/adc/exynos_adc.c b/drivers/iio/adc/exynos_adc.c index 30f6d8436e775a8d2177951b436cd45152307ea2..d21a9f3621d96c8051f2062aa6a= 069e8c29faf9b 100644 --- a/drivers/iio/adc/exynos_adc.c +++ b/drivers/iio/adc/exynos_adc.c @@ -29,8 +29,6 @@ #include #include =20 -#include - /* S3C/EXYNOS4412/5250 ADC_V1 registers definitions */ #define ADC_V1_CON(x) ((x) + 0x00) #define ADC_V1_DLY(x) ((x) + 0x08) @@ -106,7 +104,6 @@ struct exynos_adc { struct clk *clk; struct clk *sclk; unsigned int irq; - unsigned int delay; struct regulator *vdd; =20 struct completion completion; @@ -213,7 +210,7 @@ static void exynos_adc_v1_init_hw(struct exynos_adc *in= fo) writel(con1, ADC_V1_CON(info->regs)); =20 /* set touchscreen delay */ - writel(info->delay, ADC_V1_DLY(info->regs)); + writel(10000, ADC_V1_DLY(info->regs)); } =20 static void exynos_adc_v1_exit_hw(struct exynos_adc *info) @@ -556,7 +553,6 @@ static int exynos_adc_probe(struct platform_device *pde= v) { struct exynos_adc *info =3D NULL; struct device_node *np =3D pdev->dev.of_node; - struct s3c2410_ts_mach_info *pdata =3D dev_get_platdata(&pdev->dev); struct iio_dev *indio_dev =3D NULL; int ret; int irq; @@ -657,11 +653,6 @@ static int exynos_adc_probe(struct platform_device *pd= ev) if (info->data->init_hw) info->data->init_hw(info); =20 - if (pdata) - info->delay =3D pdata->delay; - else - info->delay =3D 10000; - ret =3D of_platform_populate(np, exynos_adc_match, NULL, &indio_dev->dev); if (ret < 0) { dev_err(&pdev->dev, "failed adding child nodes\n"); diff --git a/include/linux/platform_data/touchscreen-s3c2410.h b/include/li= nux/platform_data/touchscreen-s3c2410.h deleted file mode 100644 index bf8d3b9d7c6a98fc2392786df2c0cdf128047645..000000000000000000000000000= 0000000000000 --- a/include/linux/platform_data/touchscreen-s3c2410.h +++ /dev/null @@ -1,22 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ -/* - * Copyright (c) 2005 Arnaud Patard -*/ - -#ifndef __TOUCHSCREEN_S3C2410_H -#define __TOUCHSCREEN_S3C2410_H - -struct s3c2410_ts_mach_info { - int delay; - int presc; - int oversampling_shift; - void (*cfg_gpio)(struct platform_device *dev); -}; - -extern void s3c24xx_ts_set_platdata(struct s3c2410_ts_mach_info *); -extern void s3c64xx_ts_set_platdata(struct s3c2410_ts_mach_info *); - -/* defined by architecture to configure gpio */ -extern void s3c24xx_ts_cfg_gpio(struct platform_device *dev); - -#endif /*__TOUCHSCREEN_S3C2410_H */ --=20 2.48.1 From nobody Fri Oct 3 13:30:15 2025 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.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 1ED022D3740 for ; Sat, 30 Aug 2025 16:48:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756572532; cv=none; b=pP8o0I+0eHLjFP5U4D5krkTc7E/Kis84KK5YycIorqt0xfZyhmhJkEYkwh4Wh76SWm+DSCMxr5l7TDRcw/l0uM02bts0H6ZIwuppJvzU7sV3CDtnK/HQnt05fFF6WNSPz+N5MObRgT+SM03obI1cRo6B7ktITM8X9StmjbhP8/c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756572532; c=relaxed/simple; bh=ebjPcUawDuyYiStYmNU5ZL3R3L1PNedniR0atYT+P1Y=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XynvCmkxEXh33HUnNYUAcqmUz28Cm79qDXyPBcG3TmQ5lprTmCG72GjnW8uPLQDZo4m4j96uE5kGQ1aP5YzqhdUwJoTTwLszv/SXzAIuiO03rC1+6psSzJMjMBXiwnHNOTTUZoXfU/KPHZYQSr03Qim88SCk7wi36k+sVpg6Usc= 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=nASJHhB2; arc=none smtp.client-ip=209.85.221.48 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="nASJHhB2" Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-3cd99b4bb72so274874f8f.0 for ; Sat, 30 Aug 2025 09:48:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1756572527; x=1757177327; 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=lR2F57pXZlUmDDCYEA5++08US32un21m5O7B8t3ZqrM=; b=nASJHhB27GAWfqIrPfwhzZLmmEJrZPfQFU8WkT1oxfsDcWkZx8Id2GeKaEdn+AA0xJ VdF4ELszycKD/WozZlDxoMko6i9gi0LHzdcHeeD8/OdSq+S+SBiL9VbKugpbOU0mPOo1 KinXYOVEK43cLaGA45KvnpGfV7K9nGOZ0BdYL6cCdVm/kjdsS9Hu2CjSvreBwWiM3MSN g3xB7rdO1zdvp68bhcEb5heKMjlWsl+PYHoW38VPXUaqO3jPigjeLoXx+3HuB/x2bUeb 99t/F6N1rZSMrYY3ch2KVI5VUmooj3qL10NFVtoykQ1rnP0R473DWUPVHWzOdDSCiWAz 2VbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756572527; x=1757177327; 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=lR2F57pXZlUmDDCYEA5++08US32un21m5O7B8t3ZqrM=; b=DLEWx9oGAQzEQnec31Mnr7pixL4VJ1TVGmATUvJC2Y6cU4LIin2ugwRYtXxTrbDeCz qP7oMCo0NNbNedMU/n3j/bNIgJRuEF5YAhwuRLJUA3TsSInJk41AcdA5gC7Ktgj2PvPz WGo+sueu8MuyTiPDuDdzLh29wMeU3m5j7tXl9Nj/WTXNivMSDr75EAalRMCw04nccnRz qTc/Ya6+sByZM5KEfpos6oXOOakagEPTi2HUJ/aQDJebmzUvtaaLyAN5xRHXVS4cH80C WCXMU475kOzxLVArCGt60lHpQmeX4+uEGSiL7+8URUZqFkCXdWCuPGynk9FyKw7mCzCL 5ikQ== X-Forwarded-Encrypted: i=1; AJvYcCVyuZAt102iBG4YtjnPIOXDWgs2ltB+JqphGQJjLZEb44KoEHdH6mLugIEy1r5/yp7jpVZK1y/4cfqZmug=@vger.kernel.org X-Gm-Message-State: AOJu0YzYzPcSwe/J/OKssHBkLIn/dwoqVhQPwNAKXR5x0DibYh/ps1Fa 1JKB4SQ0SyXq4gRFtyJ+7sLL8ApSwDrSnMtw2waaOgP7OdAJQMe9zixBUadhNZDxFc8= X-Gm-Gg: ASbGncvV4qhYeVyqcbe2RarwxEy9Tbvu/eKXgdTbxdujJbILfyQRUhHJ1t/mXxv+64g SbIuaI47Yyi3ZUST6Rk02msA2H/+wsDzr2r7uxDJ/zJgsTk7ULq5j3clCwFWAWLM7hWusOWDLgJ /GOzuVb5ktQXBBesY0Us267W8H39EFL3PSV4D+M2sXqE28rFNWKy/sTj/IfxFmuldIFPPBFLaqp QsbhTkKjej6IwK6HgIPTlYeW+DuZ1prrv18wdxGvrSkR+ExuLewBi7xdVVaHGLGmlN205EyUTvj O/l22gD1OUnewLWP3ZrNIqisnM73hbW3BwXpVtH0e30IBqJhUmDAQJsG4d0xQx98J+atlf1L6OH DlpLiuo9TRMrO42v0SmisDA3VhaJHN0mZxh8xVi4= X-Google-Smtp-Source: AGHT+IHt0KuSMQTDPQqKwlDvsHq9uYVnTMb+JaxUV+LdGdK88mtHqEQl+7TJcM0mcCtVtJuqsHFZ5w== X-Received: by 2002:a05:6000:2dc7:b0:3b7:8890:8e71 with SMTP id ffacd0b85a97d-3d0fdc6311amr1950866f8f.11.1756572527510; Sat, 30 Aug 2025 09:48:47 -0700 (PDT) Received: from [127.0.1.1] ([178.197.219.123]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3cf274dde69sm7818129f8f.14.2025.08.30.09.48.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Aug 2025 09:48:47 -0700 (PDT) From: Krzysztof Kozlowski Date: Sat, 30 Aug 2025 18:48:33 +0200 Subject: [PATCH v2 4/5] dt-bindings: iio: adc: samsung,exynos: Drop S3C2410 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250830-s3c-cleanup-adc-v2-4-4f8299343d32@linaro.org> References: <20250830-s3c-cleanup-adc-v2-0-4f8299343d32@linaro.org> In-Reply-To: <20250830-s3c-cleanup-adc-v2-0-4f8299343d32@linaro.org> To: Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Krzysztof Kozlowski , Alim Akhtar , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1211; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=ebjPcUawDuyYiStYmNU5ZL3R3L1PNedniR0atYT+P1Y=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBosytleZMp+yMmU7xsdbFO7JlxlKksf/lRJNJaZ YnqE1JDQ0CJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCaLMrZQAKCRDBN2bmhouD 10QUD/4gM1mCrSjYdcPTKpWDO6kCTZbB6/rtQiu0sGhp1ajK+tkWUy1YKGoYABMormyPFvjUzls 4xbQEJN5gc40zxgmpfXhXLCfD7wl7VQsCVTtMAycfoR7jhL8kL2OB+vaNPXyE85AyseRAEnvYAv IDDGCmTzXLhDx+HejGYmRE/6Xeh2UWau1h6nkxpE6RPsTkr2P8VsGyYtqwuIvhluJShhDAW7DSG oPtUQr5q2g8KUANF6+JswThvWjwy0ImF+dNRp+1dHdeg46dbXLuzviBtqGzGw1syBI4N0uyS24D UcpQCZ+F4MZLpV0Z4TfQkf8bAr8gwB2DMAEkBZOML7culmARpQnlbqPA9do2wc+bDQkP66EuRsB 7QzCly5CwNSmvfX5kOcmkhggEY7fSzm025jZLBwEVTs2iskQ8VZTnuUzTDU3jWkgF1bZY+olaVX s37qaxVKymOdFawq/CMkiAmqz3E/Nuwi1Uk0RzqejCeuqArxiwsWKp7QfqEribbB7X3BYbmgAMl tqsbPGMttaqCRBMqUi1B1UdZeP9DjS2ZNWfI/Jt3Bdgi0L5CZSJAIL/Td07t4tXZ3joYpp+p5Ou nGEmXkZeVdmhA8UPjHErtSQ85D6cRgivmj+rE1dXRgsgmZfpzXxRTx+sOGdE/R8pz2K02gZgJm1 c0y2ypd7f+7giyA== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B Samsung S3C24xx family of SoCs was removed the Linux kernel in the commit 61b7f8920b17 ("ARM: s3c: remove all s3c24xx support"), in January 2023. There are no in-kernel users of remaining S3C24xx compatibles. Signed-off-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.y= aml b/Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.yaml index 8069e99ddac860b22c793c3ef9479f720cfd8c65..73d7ba0fda1def433a97d10bce2= 1e762a307e36c 100644 --- a/Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.yaml +++ b/Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.yaml @@ -18,10 +18,6 @@ properties: - samsung,exynos3250-adc - samsung,exynos4212-adc # Exynos4212 and Exynos4= 412 - samsung,exynos7-adc - - samsung,s3c2410-adc - - samsung,s3c2416-adc - - samsung,s3c2440-adc - - samsung,s3c2443-adc - samsung,s3c6410-adc - samsung,s5pv210-adc - items: --=20 2.48.1 From nobody Fri Oct 3 13:30:15 2025 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.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 9743F2D3EDD for ; Sat, 30 Aug 2025 16:48:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756572532; cv=none; b=bWSoEC5HXJvAA/+31NbjkYSDNHDRm226p9W95fydKwQAQ61MfEZ9jGnonwyMyNoiTvNgqJX2gNhboijKktuvXbAnvHh7f9DSp9roUpD2J8D7qVAwAGyDZf0p8uT3mSv8WGl2Xg0ndQwK57iagL3GC0Klnihe7tp6OYreuS//J9w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756572532; c=relaxed/simple; bh=M52Ix5e2ZfY480bhbf4Da85nfANVV5Q7GQgHm64bNig=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PnfgSx4CHvl5xA5DYs9RA56Pta+aau/fQYgd5JJTgHyHKKDNDKqaDiNGw9WLqihSpFxxk24W/vwHyYnS91ZvhQnkNJYif0BkuFO1BfRpEgGy3in8qN85VwSc2ELl2R9S8W793+98JD071+eHaZPEJzu2et6s0r+6frIRwzTecwU= 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=oNw4/1yr; arc=none smtp.client-ip=209.85.221.53 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="oNw4/1yr" Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-3cef2c300afso331781f8f.1 for ; Sat, 30 Aug 2025 09:48:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1756572529; x=1757177329; 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=uGegaPWxGQTvhFdIvhwtl2HHlep4qKtefJBT6reESx0=; b=oNw4/1yrgC+H4hxF6bq8ekB3HHQBRX5KEKOPChF/jGjXghdRlsll5jFF2EBrQPrrMB 5Nd9s6nVaJ7BH1q5zol39pNHiT1TgWnbmgvOOwy5lDdgnAbL/MIsO74gCJ5yiBehlWO3 r9l3PAyTXH9Qd3EKoExWKx/CLpSSmBhTl4YVtSTZ3BQrLmestqQJ+r3PYBGuffaSSs9u uLHR8layFQg60YfaDNdeJoiFgoUXMk9YHozh5KuVXncJtnOuNOWAukeEYU053cIqjRP2 jtImcUizqppPyo1cjIujUaMPmDHgv+hWVgzW4kzXCrydBHofEZvM+XHAN5wySRF1UA3Y 2NWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756572529; x=1757177329; 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=uGegaPWxGQTvhFdIvhwtl2HHlep4qKtefJBT6reESx0=; b=o7tdSTbJMp3DQh1fomBKKfP3d6MJh1N0SgCrvrYdIYRY9SP+lquNrZTevmOlsrqhWC Nv1rCn7aUxsORKpKxS1229RuUe9hfvs24KehW7ZY827tspyowwvc7xG2sMJGn/LuUfdH mpQys3Xz0yf4Wc7T+QJwXup8GkyAcCADS/IczrpWTgoiAyN/KNV5FQ2DrVxRMq5tVA1u vlQNiVNhKrypNCkbTH6ruGa3jr2DVAGdyCZ+2PPDkXQs3EVlUX/aG5bypo6jUf/EzOL7 6fHWPvblEYcYTITU4+MU6A9i1orP4HDRYe5FLUiNTrZuE1JTy6U1f9xV+Os3FWIXrGg8 LJpA== X-Forwarded-Encrypted: i=1; AJvYcCWzM4olLAtPKanb/MTnVndRf1s5Rg8adzvnkkAgoYaH4ayRTwThdg6+Dk1q7PIYYbMKBwvxJmUpxDTrMg4=@vger.kernel.org X-Gm-Message-State: AOJu0Yyl5g+8FgVzA+xToX4rjISC82gzKJNtXDR1s2zfip2qMlNEp9Fy qqIRXbBNH9NNCkKAMcFBJSc2rJg9hEwrps5uD3Ubjl4B9DP9QV2/UPF57kUOsUAS9lk= X-Gm-Gg: ASbGnctlNrlw8hICvKuymWF5hw/+NJurH8R7FZp/+UmZDg6ReTNTFz9GyhEdCMJMQ7t JuWcOt9iBoBiBaNOQH505AK1Z28y3Rb3YeoelCZmQdxjYF/wBL8AJvNss68t0ry/cxvzfx1oQ/G SPOCs1p2tqgh4dS026lgS/t1kuD98FUymrrr3XOcDkG6iLsBUXuDLm7xAdSl5NIr1Koj9w9fPzL HsrFj5ly1aI3IicJvqx8zimbInMXDVeg0yAeyyPiXuxg1cPJuf6rgvh4WTC7Nq6oAPtUjDkqT0S cQtWBughQOlnt+Pr90GTjpdZyTe2wc8PUEh+xwyaXa8dcUP5lYfjZVMoHEg6+vEmI5udw+zVpz2 c+4qGDtYMcbKxHHuIyPPdbCUx5PSnmc0qwd5eH24= X-Google-Smtp-Source: AGHT+IH7Z/kvyvopM2ZnHxAu+WCRchp8R1OWKLCzlB4yVnosvVIsNOGkgCloMAkokNIzpMGMhjhXuw== X-Received: by 2002:a05:600c:5287:b0:456:2137:5662 with SMTP id 5b1f17b1804b1-45b81f120bamr22809295e9.7.1756572528946; Sat, 30 Aug 2025 09:48:48 -0700 (PDT) Received: from [127.0.1.1] ([178.197.219.123]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3cf274dde69sm7818129f8f.14.2025.08.30.09.48.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Aug 2025 09:48:48 -0700 (PDT) From: Krzysztof Kozlowski Date: Sat, 30 Aug 2025 18:48:34 +0200 Subject: [PATCH v2 5/5] dt-bindings: iio: adc: samsung,exynos: Drop touchscreen support Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250830-s3c-cleanup-adc-v2-5-4f8299343d32@linaro.org> References: <20250830-s3c-cleanup-adc-v2-0-4f8299343d32@linaro.org> In-Reply-To: <20250830-s3c-cleanup-adc-v2-0-4f8299343d32@linaro.org> To: Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Krzysztof Kozlowski , Alim Akhtar , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1987; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=M52Ix5e2ZfY480bhbf4Da85nfANVV5Q7GQgHm64bNig=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBosytm4JHyzH+AmZV5ywRHpisz2B5V10Ey2ZqXi ZkjUY5CvsOJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCaLMrZgAKCRDBN2bmhouD 1zmzD/4ppk5vO9b3vahpeArWbxkYzHayHXHpMN8v8pvD3pzMJ029qz5Zkv3REblrgn8HRmobbak 5rGSq5Yrfo6/aF7cfHFUfpBOoUBRjNGyRyaMK/e4gESo+l0qJrrSHhWMQzuT/kezBuT9VNs6gox sfhS1/Y/RvAckDeLV46jXtRNAcIEE1xbnxezlRkemJPd9GHz/5FikDKOTLuTR03020aLhGpJlgD 6gb5/yQguf2lK1zBQ2OynKcpzAaRFpF5HNmFAgx0CvbqAtqhSOBl34MR3rzjzfMC1BaEQv7qjNK pt1o9mgMZiMNfTf3WQkR8aJ5YIPwWJUKICCwTIzdndDc8FI2kk2q0llE1BnBamT/n0AqppNc8wU rCfdwcv1zx6irWkafqebcuyOGlqMNCHCUPl07bGU+Dw/qBL/AAoX/7Hg9POwHjgpn0wAvCvUShJ A2K1Sr4WRuJ2kJoXHev458ou4bcsPRW4Fsdy5M9lvaTEbVKpSp6ot8//nWkoCv7VdUX0InOIMwU ej/oLXtYnCSDLITwtiVt/RwMxMN7bghJdgW6DmFJ6RYayGLrWLQhSi9vL5Vox7a1j1S+2Vb8s3/ HCZROQXDgwxx4e87GeXNVc+mqmZgdcnEab1k+5uxz9eZSUgsgrR5RpkRtvRYfRq31MeZXcGiDoX MgEQgosc2lfW7qA== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B With last user of touchscreen via ADC (S3C24xx SoC) gone, drop the unused has-touchscreen property and optional touchscreen interrupt for samsung,s3c6410-adc. The samsung,s5pv210-adc is the only platform having two interrupts, so add a constrain for that. Signed-off-by: Krzysztof Kozlowski --- Changes in v2: 1. Fix S5Pv210 interrupts --- .../bindings/iio/adc/samsung,exynos-adc.yaml | 22 +++++++++++-------= ---- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.y= aml b/Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.yaml index 73d7ba0fda1def433a97d10bce21e762a307e36c..def879f6ed20a3ad40baebed655= 7082a358cae2e 100644 --- a/Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.yaml +++ b/Documentation/devicetree/bindings/iio/adc/samsung,exynos-adc.yaml @@ -42,8 +42,6 @@ properties: maxItems: 2 =20 interrupts: - description: - ADC interrupt followed by optional touchscreen interrupt. minItems: 1 maxItems: 2 =20 @@ -58,11 +56,6 @@ properties: Phandle to the PMU system controller node (to access the ADC_PHY register on Exynos3250/4x12/5250/5420/5800). =20 - has-touchscreen: - description: - If present, indicates that a touchscreen is connected and usable. - type: boolean - required: - compatible - reg @@ -114,13 +107,20 @@ allOf: - const: adc =20 - if: - required: - - has-touchscreen + properties: + compatible: + contains: + const: samsung,s5pv210-adc then: properties: interrupts: - minItems: 2 - maxItems: 2 + items: + - description: main (ADC) + - description: pending (PENDN) + else: + properties: + interrupts: + maxItems: 1 =20 examples: - | --=20 2.48.1