From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4F3EB2E8DFC for ; Sun, 31 May 2026 15:26:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780241174; cv=none; b=WjJAZwNYOFZB3YZK95ix8Tkc4yiKXwhwWg1/vo/F0D4WjkF+nHBtLDVzWpTnXDZvqbj6Xcm6BZy1RNEZ9FP5hXn89eg77xCpOlOGcE190nI1weu+GZw3XG1fUhM8yWmxyogX1aS+fj/C346wSprb0QnQaVN3jgH7fjZylKu+Qw8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780241174; c=relaxed/simple; bh=48aemOcrWCaMuI9OaLb1kPeXmDDnY3b+T5yp/gEBE7s=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=oKguW14T1ATVxLTKCZy89Q77jZIQyXvrSJ4qanps90LhOVqW4rG9Q1DtStUGu+nnhQSI805ATFMGzfdW97pxg8tUl8wOZMid0MKXCaqUjrqVQJfZfTNgW0wV3Sywjunipcl1vTMXrk7lZfcbYV8FkUxkGIbo1b5oK3hpQ2DnTLQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b=FbB9Hh7m; arc=none smtp.client-ip=209.85.221.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b="FbB9Hh7m" Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-45ee5cdbd28so2024347f8f.1 for ; Sun, 31 May 2026 08:26:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1780241168; x=1780845968; 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=PT9tXjqszedmkm8utnuW3FRNsoSqZ3umHWBcRjh1WUU=; b=FbB9Hh7mtvc1ex7tqtfo/K+BUD9ZMJ9zQjtQPFOGVIGGRQdx4koDIW8oHBhOsVy1VQ +WiDHSnyg3OQj74kBNYmyE39yT/Tw8tjxfFHyuk/PNMMzyhKaCAWi5EZRjB5TwSEA6+Q 6jt+Hry0bcd353a+/TFO8K0l9mdVzr4xG8n2TP/3yVfrNKjBj1w6FfnoxiKvtKKMXPJN Pi5eqaQYjwuKubVxzUW6+4UIazqEl8i6Da4UtsaRyAyq0VRkX0ALiG1kXW3VqLTvVAKU NOY1Sntz28Xqf2004lYFD54px18BsdbUaQinI/IF3MlDzS76TobjOdOYpdBdUWfPNTnf TZIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780241168; x=1780845968; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=PT9tXjqszedmkm8utnuW3FRNsoSqZ3umHWBcRjh1WUU=; b=QDCgkQsODrQfmGjwEROcqaaa6Eg45V3ElVZstKPJuUQjStREu/dwOEAUGzH4n6FDY7 kMP2AABrafnMZO1lh9VPGsxjN6WKe8Z8x6JRpgv8lMx1QmngVzyNwm2tPYLOiWeISYtx RRhQWN9SVR+ftIlEiixNPvUf6lF/Z3FU12QZZ7YRMjycgSpAsNNW7exBMEooG/n6Wewf rA//B5Amem/g30d176mQ4crYZS6mdhu9VJ/CL5zYNWaGFn5z2l/Z4Mt8k7adQopo/xIC WGYuqzS4l8u/OVA/szoATxa6Umezx3jhuDc4WPO1vxiiP2fTvW+ow77jbJRn1Qz0qeHl MkNg== X-Forwarded-Encrypted: i=1; AFNElJ/QOsDej6jLjTq0aMvE+Gqv0X4wG9swVPNbhBX8tkV/YtXbk1kjA2DQ9KW+HM+sNxt4Nxm+2PbTX2QUD+Q=@vger.kernel.org X-Gm-Message-State: AOJu0YySYCEf82pZVOI3R1eEOi0mUO/QiaqX20MvkDC8vsp+znFc9AAA hS89kertdPnaIxJvgu7ey6Mu+YFYq+EvdMKijP5irqxq50hMWIWT6DQEUrUMdhXHivQ= X-Gm-Gg: Acq92OFmYX3qpoRKNAZUO9Yk5hWjkjBWXYUNLzkYzKLPWfiznBPUdKan+rn9Xq7J1HB 63TU+fiA9Oq4bZT8tkZVP+RsJz8WsKP7qsJ8b+XtXbi19c26zWyvaPCcz2xY+5cXDMTikGtS6T0 F1RG/B6LrSh9W/VgFrMiAxuqoWEYnCB9nUqcCPsV0SClg4gEMlKNWX8TiVAVGxz9IRJ+IpOGyg1 33Ce+lOQJDmc6UXrruXMHzjtpUJ7sxYYqMhJ7nPOp6iS5iJqzGC76aDT6CGk4UU9aT/dJ8Z8Mbf QbD2s9V4ECKZAMVcbh3gtjHzbGMRpyPvmNyJNpPC0/ow737usqckEu1pcYWr8NnJgVHwEOJo86M ufjys6gsSrDNmGYl3KEKJ2REqNBW47eCM1oCqLw+/xGlJflGxIyhE57KetKqQHHKAUskYowZemr x10jMauLCb3P2j+bZ23tbV15cEbc59dOYCLJ1jQPqKpQ== X-Received: by 2002:adf:eacc:0:b0:45e:dc0a:bcb with SMTP id ffacd0b85a97d-45ef1385deamr11155719f8f.22.1780241167790; Sun, 31 May 2026 08:26:07 -0700 (PDT) Received: from [192.168.0.2] ([2a07:7e81:7daa:0:202:c9ff:fe53:eda4]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-45ef354cf0dsm18526622f8f.17.2026.05.31.08.26.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 May 2026 08:26:07 -0700 (PDT) From: Angelo Dureghello X-Google-Original-From: Angelo Dureghello Date: Sun, 31 May 2026 17:26:02 +0200 Subject: [PATCH v4 09/11] m68k: stmark2: add mcf5441x DAC platform devices 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: 7bit Message-Id: <20260531-wip-stmark2-dac-v4-9-7e65ab4215dd@baylibre.com> References: <20260531-wip-stmark2-dac-v4-0-7e65ab4215dd@baylibre.com> In-Reply-To: <20260531-wip-stmark2-dac-v4-0-7e65ab4215dd@baylibre.com> To: Greg Ungerer , Geert Uytterhoeven , Steven King , Arnd Bergmann , Maxime Coquelin , Alexandre Torgue , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko Cc: Greg Ungerer , linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-iio@vger.kernel.org, Angelo Dureghello X-Mailer: b4 0.15.2 From: Angelo Dureghello Add mcf5441x DAC platform devices. Reviewed-by: Jonathan Cameron Signed-off-by: Angelo Dureghello --- Changes in v2: - fix copy-paste error on naming - use DEFINE_RES() Changes in v3: - simplified DACs as single resource entries in place of an array --- arch/m68k/coldfire/stmark2.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/m68k/coldfire/stmark2.c b/arch/m68k/coldfire/stmark2.c index 536252ccb87e..d3be4b2953fd 100644 --- a/arch/m68k/coldfire/stmark2.c +++ b/arch/m68k/coldfire/stmark2.c @@ -8,6 +8,7 @@ * for more details. */ +#include #include #include #include @@ -83,8 +84,28 @@ static struct platform_device dspi_spi0_device = { }, }; +static struct resource dac0_resource = DEFINE_RES_MEM(MCFDAC_BASE0, 0x100); + +static struct platform_device dac0_device = { + .name = "mcf54415_dac", + .id = 0, + .num_resources = 1, + .resource = &dac0_resource, +}; + +static struct resource dac1_resource = DEFINE_RES_MEM(MCFDAC_BASE1, 0x100); + +static struct platform_device dac1_device = { + .name = "mcf54415_dac", + .id = 1, + .num_resources = 1, + .resource = &dac1_resource, +}; + static struct platform_device *stmark2_devices[] __initdata = { &dspi_spi0_device, + &dac0_device, + &dac1_device, }; /* -- 2.54.0