From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.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 726F04921AB for ; Wed, 10 Jun 2026 20:35:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781123722; cv=none; b=HyJ2BZkTjxRIU6M9UTUr6JqgDbo/xC1gYbof4ubGO5wmhjt1e+hAm4d4U1SOo7i7hXZ2QrH4cAKnhGglAmVublxNo6lbj628SV0cOYjO1wBAigz1NYXgRA96x3wy5pq7f6k20f/JDI3bLRjz6DmU8b5r1d4ac81iObVxZMowIsk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781123722; c=relaxed/simple; bh=vZ/qSwgZaeGKIkwuebGoICNFAldlYX5GSoxxjgASp5s=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=MvBtZ1Q63FNaxeJoectrZDBRLMRW4ypQsoUsk/iw1D1ccENryz2/c+2svyZhUcxz7xMEDqud58hOhNOLyy9AA+JZ8yUeItGhf3Wke9itBWt3vqm948sC0nrvlOFeZ0LQIBHH8r648stOYs6JespKetx7WoQsjkiYIxB7HIZLOcY= 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=Nq0RblO/; arc=none smtp.client-ip=209.85.128.53 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="Nq0RblO/" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-490ace40f4bso82683095e9.3 for ; Wed, 10 Jun 2026 13:35:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1781123719; x=1781728519; 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=pwc20oinFS38+HtcTxr0JzZGF6h7M1rDzYuEvdtO6Lo=; b=Nq0RblO/EWeJqMpByCkEky5yHnh/OoEJUP2/zr7iABmhgkSFS/LiC1B2HZM9n+oAaW 0CwrxlM4nqPri5OR4h2oX/wMxntMXHKxvaIbtH4hBNvkSZJrPHS8XiWGY0H//s9jSFNL jnJg5loJw2iVFB2rIkFtsHRQ/p3z3rlgnPpN0q0783NI8EPbje3WbhSWonUeJRslAu7n LmYsL/7oLrbGUj22L+XGUBTWTf5Czjs4/lbPxZGT/k93vsXw6VR/omMg3P3dyiKsO8zb qMweO9kG5nj+3eMMoFASGG4BWFGsfoneglX1b2ugg93+4yg767/rRtj3LIZYTEsC8K2A Oq3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781123719; x=1781728519; 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=pwc20oinFS38+HtcTxr0JzZGF6h7M1rDzYuEvdtO6Lo=; b=RKIlYPZQ/5zePVaq5NQsU952N8261O4F7VVrH8gFXnX1Emwokw/rc9+UKPID0McNis Wkwj8BCscMYu7cRTkU6PgzJYAsjVXHmUcpr2d4fBYr0rgOrccUdDUYnzIdeVammR+fGv d5/4SFKp340P2QjWLJhbCr/4yRxU+wqIUXNaBuGRF0Sz9vB6J5zTBY+spJQU14ppmAfG ByuMYGa7hbIGpBDf5HCIOKLVwph8LcYLZcEcL0vvTX3gDYFnx1Gk/fcsYp6/eybEJhQW dL7esMx1pi0q5/Ri/WG4pQTXNV6Er8gCZXuDs85yJu6BxCfkk7Bu2eavn5qHI1HhF6z+ 60CA== X-Forwarded-Encrypted: i=1; AFNElJ8oFUsmV4n+74Z8Iu8MYRz0hP5SE5hUm2a7569fAgkt7Unsl1vQiws280TWw0c1nTQeT1TzwlqW1hPyZKQ=@vger.kernel.org X-Gm-Message-State: AOJu0Yx2mSscqLJJU5PrDOd/8Pi5dllMF0ERv7xXrV+BPfIptqraLyln n/NJza428Wbyxu0IPfzvd9NlI8Hyw6bM/2OQAsRwGaiRN6znf0sSqqrM9v7RCFQwteg= X-Gm-Gg: Acq92OECmypj6nBIcD7t4uyObeXoMN1lFNFSEGcLhoMNc3nQJsG/sE3RS3oucSuwmX1 VpU13biaoOZGgPpjYq3mLWGZvTwYyr7xsAXv4QWCRvRSq+Q/rD4qyBw3ZrMlOJ4NdE0uDLaqwU9 yXy/DfTpC6pu+/4htnETeRiN2j6qWg3z3cOoHI2M3vhC0R8YwAEXC8J6E23SaMsGUu8gWdBjeZA 7nZR0Qqwhib7dFwuT09KtZ3JFfj1nBrrKgqZgESoFQeCzJi51jwPBfSj5Y3mlFA8U//2Fequ3ou J2GkNoOMQws9hdn5p5h9BQwSpHJ+sCU96deRs9EBUJevIDm5YB0PELCsQTFtpMEJIJJze4/KLcJ Sy4hUsVadRjWqz6XiKAHJijeYVRibVm9kKbyUcK6DkQ0jV3p5U6mNZkzk5Z86pEjjqJGNxon8iG V2UE484ARtE7sd3/+J2Rv7/IRFEBUCs9bgWf9WAgFd2g== X-Received: by 2002:a05:600c:6792:b0:48a:f18:ece4 with SMTP id 5b1f17b1804b1-490c25ee920mr437886825e9.24.1781123718858; Wed, 10 Jun 2026 13:35:18 -0700 (PDT) Received: from [192.168.0.2] ([2a07:7e81:7daa:0:202:c9ff:fe53:eda4]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-490dc4715e4sm62390975e9.0.2026.06.10.13.35.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2026 13:35:18 -0700 (PDT) From: Angelo Dureghello X-Google-Original-From: Angelo Dureghello Date: Wed, 10 Jun 2026 22:35:12 +0200 Subject: [PATCH v5 07/10] 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: <20260610-wip-stmark2-dac-v5-7-b76b83366d5c@baylibre.com> References: <20260610-wip-stmark2-dac-v5-0-b76b83366d5c@baylibre.com> In-Reply-To: <20260610-wip-stmark2-dac-v5-0-b76b83366d5c@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 Changes in v5: - move include in previous patch - use predefined "mcfdac" clock/device names --- arch/m68k/coldfire/stmark2.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/m68k/coldfire/stmark2.c b/arch/m68k/coldfire/stmark2.c index 7eed6097f501..a6f9eb3a75d8 100644 --- a/arch/m68k/coldfire/stmark2.c +++ b/arch/m68k/coldfire/stmark2.c @@ -84,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 = "mcfdac", + .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 = "mcfdac", + .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