From patchwork Wed Apr 17 17:04:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Morgan X-Patchwork-Id: 13633670 Received: from mail-ot1-f50.google.com (mail-ot1-f50.google.com [209.85.210.50]) (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 E2650172BB1; Wed, 17 Apr 2024 17:04:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713373472; cv=none; b=IRy0ayjFnOCbY3U59FGw6kLqf97L/sqgQVp47h11eFmlA0NXrJWyez6szfE23lgPRa34b7ESPLZvJij45qPTY2fVXrCwstX+/Jq69q+J5sknywdJC/qrD+awShLfEVtEjwtgnltMNKh5b4iC2NoOmwMS6QeIZmnt5EHIczqrspM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713373472; c=relaxed/simple; bh=yeuqhpeXoirlC61pOihh6SKMLRhOXy2QmFiICFPE+oI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=UfJHTlhv/m6K8LdDg65M6Hw+KcFU4UTt8CEy11FF/JX3hUE8wTEWWditzWokA7CNC8aeYUhMZGa4cLJm0OQyk/uzutqR2hNXKZ0M6c8DDLiLl+Pv+WVxeStyAdhBCgg77HoKCRHdddPg829CCFcPxogMlmvBagf9oq8gOPj3A1w= 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=AQpZt5u/; arc=none smtp.client-ip=209.85.210.50 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="AQpZt5u/" Received: by mail-ot1-f50.google.com with SMTP id 46e09a7af769-6ea1a55b0c0so3228877a34.3; Wed, 17 Apr 2024 10:04:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713373470; x=1713978270; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=226GLZN1bkJOaHrZzvZZO9lFdGIX7oNyj3T9o9yriN4=; b=AQpZt5u/cm5ZL3nDdSDEf6B1nTO5Ua721WtTtl3JawBf27sQE47SGAMJ5iDkq50yvO iZXE7jupeJgwUAkO/jMw6Je55qZDdNJ+XO3BbjtHJVd7/uCzdYo8Vb9IMRzsK5wuYSms q96DiQVo2fRJPP9vSIAbhXFOxmVII5wrVVwfr17RtePtkbfY/dy4MTAYx3iqDSbiGTO6 yQa3lFsfX8nTDqWVkiZYfTyq/yjQ2IN59DZIR42+ksBT9SlxteuvZr/0iB5qh6c9ROsm V5uEkZTYxg6Dw0WherY18TNmOBSq5haFYV6+m8ptTjvXvP1zqk9qvIjgVh01otfN3voZ em5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713373470; x=1713978270; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=226GLZN1bkJOaHrZzvZZO9lFdGIX7oNyj3T9o9yriN4=; b=hOL78LYdrce14A88r5QiLQwg3yxsF7IsOW9QYCbpbNsrsLQqrs8Uj57Yh/SoPX+hR+ w3/wrs1cj5o+3oQAO7qxmAO94T1Evg1hilMUp6g6oM7lLA+pYE+mSkAYPwakl5qJVu2i rd2dH16ar0xLYyyvV3z/2kGNqRx5qA16NfVyURd5GspDK8doeVqQ/wcR4NuMHsAieE26 8w5S/57cO819GsYt2mRadlTqZEE6BW1ub1V7hLhL+4dK8JvslCq5YDLSz+0vk6ZA1kti whIJHdisjFEwp3VOvr4P6jz7EV2L17yDaWM0rpdaAyjqZIAF6doBo7RSHkf4xEYX8y3N BHiA== X-Forwarded-Encrypted: i=1; AJvYcCWCmgt9dEQUYmzQ0MoYILQA/xTLFKm9ZIl8aJof2q7yUjR7qI2rsZ65jyaRYAaFc0QAM3QPjQrCS1VCpsXeQeq+ki8NgqTrQbSMXvpNcQwEUhdunYqiNSW2kkD73ggpewD3tZiZiA== X-Gm-Message-State: AOJu0YzQG4Cuj0FbauBXQ8b7f9i9Zt1gqQJWIts3NPyu3KwT7W6ZyPnl gJC08EUSmSaHNGbFs4TB52/v/gsepifQhdBARbaac78jnRQzLxSP X-Google-Smtp-Source: AGHT+IGJK2+91vrxlDBl/jROR8Z3vUqIrSc4m5vZDraYX2jSk17Wgxeb08jSE8DG6QAUa4CxZQYN7A== X-Received: by 2002:a05:6830:4794:b0:6eb:7730:7f1d with SMTP id df20-20020a056830479400b006eb77307f1dmr37887otb.22.1713373469865; Wed, 17 Apr 2024 10:04:29 -0700 (PDT) Received: from localhost.localdomain ([75.28.21.198]) by smtp.gmail.com with ESMTPSA id k20-20020a056830151400b006eb77e42ff5sm1721615otp.26.2024.04.17.10.04.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 10:04:29 -0700 (PDT) From: Chris Morgan To: linux-sunxi@lists.linux.dev Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-iio@vger.kernel.org, p.zabel@pengutronix.de, sboyd@kernel.org, mturquette@baylibre.com, samuel@sholland.org, jernej.skrabec@gmail.com, wens@csie.org, conor+dt@kernel.org, krzk+dt@kernel.org, robh@kernel.org, Chris Morgan Subject: [PATCH 1/3] clk: sunxi-ng: h616: Add clock/reset for GPADC Date: Wed, 17 Apr 2024 12:04:21 -0500 Message-Id: <20240417170423.20640-2-macroalpha82@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240417170423.20640-1-macroalpha82@gmail.com> References: <20240417170423.20640-1-macroalpha82@gmail.com> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Chris Morgan Add the GPADC required clock and reset which is used for the onboard GPADC. Signed-off-by: Chris Morgan Acked-by: Jernej Skrabec Reviewed-by: Andre Przywara --- drivers/clk/sunxi-ng/ccu-sun50i-h616.c | 5 +++++ drivers/clk/sunxi-ng/ccu-sun50i-h616.h | 2 +- include/dt-bindings/clock/sun50i-h616-ccu.h | 1 + include/dt-bindings/reset/sun50i-h616-ccu.h | 1 + 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun50i-h616.c b/drivers/clk/sunxi-ng/ccu-sun50i-h616.c index 21e918582aa5..3646be2b88ab 100644 --- a/drivers/clk/sunxi-ng/ccu-sun50i-h616.c +++ b/drivers/clk/sunxi-ng/ccu-sun50i-h616.c @@ -489,6 +489,8 @@ static SUNXI_CCU_MP_WITH_MUX_GATE(ts_clk, "ts", ts_parents, 0x9b0, static SUNXI_CCU_GATE(bus_ts_clk, "bus-ts", "ahb3", 0x9bc, BIT(0), 0); +static SUNXI_CCU_GATE(bus_gpadc_clk, "bus-gpadc", "apb1", 0x9ec, BIT(0), 0); + static SUNXI_CCU_GATE(bus_ths_clk, "bus-ths", "apb1", 0x9fc, BIT(0), 0); static const char * const audio_parents[] = { "pll-audio-1x", "pll-audio-2x", @@ -807,6 +809,7 @@ static struct ccu_common *sun50i_h616_ccu_clks[] = { &bus_emac1_clk.common, &ts_clk.common, &bus_ts_clk.common, + &bus_gpadc_clk.common, &bus_ths_clk.common, &spdif_clk.common, &bus_spdif_clk.common, @@ -940,6 +943,7 @@ static struct clk_hw_onecell_data sun50i_h616_hw_clks = { [CLK_BUS_EMAC1] = &bus_emac1_clk.common.hw, [CLK_TS] = &ts_clk.common.hw, [CLK_BUS_TS] = &bus_ts_clk.common.hw, + [CLK_BUS_GPADC] = &bus_gpadc_clk.common.hw, [CLK_BUS_THS] = &bus_ths_clk.common.hw, [CLK_SPDIF] = &spdif_clk.common.hw, [CLK_BUS_SPDIF] = &bus_spdif_clk.common.hw, @@ -1021,6 +1025,7 @@ static struct ccu_reset_map sun50i_h616_ccu_resets[] = { [RST_BUS_EMAC0] = { 0x97c, BIT(16) }, [RST_BUS_EMAC1] = { 0x97c, BIT(17) }, [RST_BUS_TS] = { 0x9bc, BIT(16) }, + [RST_BUS_GPADC] = { 0x9ec, BIT(16) }, [RST_BUS_THS] = { 0x9fc, BIT(16) }, [RST_BUS_SPDIF] = { 0xa2c, BIT(16) }, [RST_BUS_DMIC] = { 0xa4c, BIT(16) }, diff --git a/drivers/clk/sunxi-ng/ccu-sun50i-h616.h b/drivers/clk/sunxi-ng/ccu-sun50i-h616.h index fdd2f4d5103f..a75803b49f6a 100644 --- a/drivers/clk/sunxi-ng/ccu-sun50i-h616.h +++ b/drivers/clk/sunxi-ng/ccu-sun50i-h616.h @@ -51,6 +51,6 @@ #define CLK_BUS_DRAM 56 -#define CLK_NUMBER (CLK_PLL_SYSTEM_32K + 1) +#define CLK_NUMBER (CLK_BUS_GPADC + 1) #endif /* _CCU_SUN50I_H616_H_ */ diff --git a/include/dt-bindings/clock/sun50i-h616-ccu.h b/include/dt-bindings/clock/sun50i-h616-ccu.h index 6f8f01e67628..ebb146ab7f8c 100644 --- a/include/dt-bindings/clock/sun50i-h616-ccu.h +++ b/include/dt-bindings/clock/sun50i-h616-ccu.h @@ -112,5 +112,6 @@ #define CLK_HDCP 126 #define CLK_BUS_HDCP 127 #define CLK_PLL_SYSTEM_32K 128 +#define CLK_BUS_GPADC 129 #endif /* _DT_BINDINGS_CLK_SUN50I_H616_H_ */ diff --git a/include/dt-bindings/reset/sun50i-h616-ccu.h b/include/dt-bindings/reset/sun50i-h616-ccu.h index 1bd8bb0a11be..ed177c04afdd 100644 --- a/include/dt-bindings/reset/sun50i-h616-ccu.h +++ b/include/dt-bindings/reset/sun50i-h616-ccu.h @@ -66,5 +66,6 @@ #define RST_BUS_TVE0 57 #define RST_BUS_HDCP 58 #define RST_BUS_KEYADC 59 +#define RST_BUS_GPADC 60 #endif /* _DT_BINDINGS_RESET_SUN50I_H616_H_ */ From patchwork Wed Apr 17 17:04:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Morgan X-Patchwork-Id: 13633671 Received: from mail-oa1-f54.google.com (mail-oa1-f54.google.com [209.85.160.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 AAC49172BA2; Wed, 17 Apr 2024 17:04:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713373473; cv=none; b=IQ7Con1mgLZ0PDoR3qxdm89it1m1LmDYC9ISd6wQ53mfJuzAei4+QfqETGuRiI4sSlfAsPIlQWvM7BjXWqkyZUNMsGOj3IOocIh+ajk7iTXs6DnfoNu9LZz0mN3djUdE9JHM3pPsHiU6RmCJihPbwfmc+nOKUAjFGTIrsCOBMjs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713373473; c=relaxed/simple; bh=nLBeWAQeiKbZf3mF1ykIdirIbJIAA4nnhmQ1kThLG0Y=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ork2K0D5wa73JV0fm6oEVL/9P9rhCfF8GRsBlIEcHuZwx6oCJ2kkwIQab6lN6U0XW4CEq6XcsfkDhqWzr5qyNUsQYgKSuykcASU/tDYIPdI7oMQwRdZLzyvclI/9GWjLYZV/8VPuPxP7UPNmm5GakN9NjFHh8TBMi/152+ES6iM= 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=ho4hgLtp; arc=none smtp.client-ip=209.85.160.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="ho4hgLtp" Received: by mail-oa1-f54.google.com with SMTP id 586e51a60fabf-222b6a05bb1so3557643fac.3; Wed, 17 Apr 2024 10:04:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713373471; x=1713978271; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WvlGloqVqYqrVdULrntdx9ykOfT/I/tNVxJeqY/xDsQ=; b=ho4hgLtpI37XDmXWLnSybruy/ygNTpFQxl//Ke3OvjL8i1WQg54hB8Ulj+H+5WVilN lC9B+YE1AOMBlmLrAAINR7379MkOcLRby7IoYYpTTMV94dVSrd6l7uzj+Bzq5gsOIAYl gq8Dq5bxJG79D7kECKuZuWrPAwdN8hTEzLKQp+8Vjk4N35hSlNzCwcnHbqAkbqE/6/oo UizpF6TWOlUKxvtCVSY7topl+1z6K1mmq9V+CsdKaGJlh59Nj9fTgZckLujTAkLkzkLA qjmXg38dzkA2/cpsWQKFv+N2EBrRc02K+N5iN9xl6hwntGsUZY6N52ZrDWge500Jvk21 D5AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713373471; x=1713978271; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WvlGloqVqYqrVdULrntdx9ykOfT/I/tNVxJeqY/xDsQ=; b=PXXJEl5qXqPbmX1sg8/mjaV8x2j8WIWpkiJFRrXN+/VZDSLkBf+xhVM06SQcPknfFK /8M3WupSYZdSSlcRdE7CyUI/eVUqS7ybpoAPV5tBAObvfLPgg08unJjdxxP0lxm/b46J 5bdm/zrWe5+bp4VFFqGsA3YqxRNup9tjhcMY/5Pg51eRL9RVYTLwq4f6kOSP4Nn1aHkB WJ6jWDx2uhxyk/qch8TVRy0h8qGYfDi8QB4CUThoMB2hjp42FPwF0omJxQHuOcafggNM uRnHy0Ig3C3pt7mVd7oEmWxybuO+viS8c/1PI277YT9v3rbUJPjF7QgijBnyFLujZEF4 QDPw== X-Forwarded-Encrypted: i=1; AJvYcCUCIyWyUepVOC9taL9ucdmklwZB6LasGvoHnsE2JrjlZMN+TcGRMu1QzQQej7+LpP+bYhORqWlDi3LApmaUVW4GvIU/pNUc0gl8r1ee2sC3U5ZELTPLvUt/Agj7Ahx/zCBc3zVubQ== X-Gm-Message-State: AOJu0YyBSrYuXo65BAlvKGBXtg7XWJexm8mjbVKTE3lpyDZPXaIHIRVY 37i/QqlBxJRdCOMSpfH+DpOtCBfmMt4CKJMZvfRaG27castGIdDc X-Google-Smtp-Source: AGHT+IHtCr9ppMf52l67g0OPTfj+8NuBOPYiNMq3frVYOEx23sXZoPzKUhtTawQ6kjwZcrqYwStuPw== X-Received: by 2002:a05:6870:e311:b0:229:7fe1:5674 with SMTP id z17-20020a056870e31100b002297fe15674mr171917oad.29.1713373470452; Wed, 17 Apr 2024 10:04:30 -0700 (PDT) Received: from localhost.localdomain ([75.28.21.198]) by smtp.gmail.com with ESMTPSA id k20-20020a056830151400b006eb77e42ff5sm1721615otp.26.2024.04.17.10.04.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 10:04:30 -0700 (PDT) From: Chris Morgan To: linux-sunxi@lists.linux.dev Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-iio@vger.kernel.org, p.zabel@pengutronix.de, sboyd@kernel.org, mturquette@baylibre.com, samuel@sholland.org, jernej.skrabec@gmail.com, wens@csie.org, conor+dt@kernel.org, krzk+dt@kernel.org, robh@kernel.org, Chris Morgan Subject: [PATCH 2/3] dt-bindings: iio: adc: Add GPADC for Allwinner H616 Date: Wed, 17 Apr 2024 12:04:22 -0500 Message-Id: <20240417170423.20640-3-macroalpha82@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240417170423.20640-1-macroalpha82@gmail.com> References: <20240417170423.20640-1-macroalpha82@gmail.com> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Chris Morgan Add support for the GPADC for the Allwinner H616. It is identical to the existing ADC for the D1/T113s/R329/T507 SoCs. Signed-off-by: Chris Morgan Acked-by: Rob Herring (Arm) --- .../bindings/iio/adc/allwinner,sun20i-d1-gpadc.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/adc/allwinner,sun20i-d1-gpadc.yaml b/Documentation/devicetree/bindings/iio/adc/allwinner,sun20i-d1-gpadc.yaml index 7ef46c90ebc8..da605a051b94 100644 --- a/Documentation/devicetree/bindings/iio/adc/allwinner,sun20i-d1-gpadc.yaml +++ b/Documentation/devicetree/bindings/iio/adc/allwinner,sun20i-d1-gpadc.yaml @@ -11,8 +11,13 @@ maintainers: properties: compatible: - enum: - - allwinner,sun20i-d1-gpadc + oneOf: + - enum: + - allwinner,sun20i-d1-gpadc + - items: + - enum: + - allwinner,sun50i-h616-gpadc + - const: allwinner,sun20i-d1-gpadc "#io-channel-cells": const: 1 From patchwork Wed Apr 17 17:04:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Morgan X-Patchwork-Id: 13633672 Received: from mail-ot1-f54.google.com (mail-ot1-f54.google.com [209.85.210.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 0062F172BC3; Wed, 17 Apr 2024 17:04:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713373473; cv=none; b=kpeMP1eeesbZ7PHstf9JwLpd0BqzpXBNqAVf4plXxm7Tlsv0ue6vlv7iv5zs27/11woeDPVqfhrR/JkeMyCZm7Wn6LnWlEkcOjpE0Fgv8Qfit0JdGqgTwKF762zNlWn3UiQEcf6LveJQo9Rui0zkTpN39Opm9yP/0n8EsdfDR/o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713373473; c=relaxed/simple; bh=a5yNIb3DWETpDcHe/Vm3HaAy/ZuOIsSOSp2yUIilK2Q=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=rsj8Ar9RXN/+KsOmAoPVPN28nIHbAtHL5vvJOvXeYRX5LwoL/iR00XMlFBa1LH5MQJrdkItxaMnjgBMU71UioInuU31uvANmWtz92vDDbkU3Mi8QKKXaz20NpTym43NB5BiSSyUWoxkmIFqBDEwMvA7E99osa9rw3UtpIe35Qo0= 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=Oeu7oTlX; arc=none smtp.client-ip=209.85.210.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="Oeu7oTlX" Received: by mail-ot1-f54.google.com with SMTP id 46e09a7af769-6ea2375d8d0so5152487a34.0; Wed, 17 Apr 2024 10:04:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713373471; x=1713978271; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=prMdfKdVjihJkVjtxII37s/3IfYAkYUes4DRF7hF/AA=; b=Oeu7oTlX0QvdGUw9kqUg7od8FfyAbkQ7hivpy+sc2UChUJVmwOLsWj29FwfwcfCTKN k9sBmb7ksmbM3R3h6Rpri+S0KXD/gg8vlf6SR+I/ud8Pr9YYyq81zaMFnq0DRDxCeC+I PaNiLuFeX7ODpfUPQRcxJw+0iTJ/B4REL5itaedZnIlryCEWHnLGNhXHEaGpDg8RNd+s hinPPBiMbKzp3uGfAuahy5f5jR8zVEeAQrxcJC7WFC9M2rrIj3+thS0z2xm+s6ja+wbV EN5WlVIFkR2T1cxOrWLarg7pb360k4xmBOJjJxkJcR3DgerdmpliJQnhSIC4Z0FSavdw fYdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713373471; x=1713978271; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=prMdfKdVjihJkVjtxII37s/3IfYAkYUes4DRF7hF/AA=; b=Dc1VDWMYMN/VF2pzK3LQbKUjUdOTDo9NZkbET8lfPOkaelhaEcg/hKHhNHk+DwirzP GNr0Hdzm84dhN+lZiF5EJb6LurxxQKoKGqc5Z1nszRAwWK6PPsyh4UgJJEsqQqempbZc 2byFc5YGTXVIbt15GG7tQ2jgb0h0Rz/+SPyX/j9ZU9Fi4+0r08tiP7DjqCdmET9CPLNY D4JK4CMtASR4Wusums+nMZUYymiL/bWzaGNnyZj2PfwADU22lKLRNIQHuM7t6485nwsD eirOkp3oHQHytDs60hPEzpNdbSR75K1MV1V8Pa6p80pYigLaH5b7nZXxl0NoHZl05c2O c6cw== X-Forwarded-Encrypted: i=1; AJvYcCXhD2V5sSX//iz5YHBBiJpGpStYv2FnU5HyzAB9blOC6p8wDHagXKogEf+qxqurRX8VfwnNo5AQ4iKekFXWBHI4bWBWjp/GJSJfsuLCFtLhmME+iUnerjfx5KKBWjIK+C6mDVDD2w== X-Gm-Message-State: AOJu0YzjvgzFdXP0k22NyTMIiUBnkVuQodf1Nk0pAmD1PofixCzel1XD yyZ0Szab/6ZlPdkeSMW9YI5XFJ4nJuc9+Y6Ic7cXhu+Nw1xUKTj4pE3U4w== X-Google-Smtp-Source: AGHT+IF8Esnmptd+mkJwzWr0neEUR60f7GHzPM5hDrXG022mYRdPS3fkX8aR4HdDgDvlX+/YdQQOKg== X-Received: by 2002:a05:6830:1197:b0:6eb:7963:160b with SMTP id u23-20020a056830119700b006eb7963160bmr49471otq.11.1713373471034; Wed, 17 Apr 2024 10:04:31 -0700 (PDT) Received: from localhost.localdomain ([75.28.21.198]) by smtp.gmail.com with ESMTPSA id k20-20020a056830151400b006eb77e42ff5sm1721615otp.26.2024.04.17.10.04.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 10:04:30 -0700 (PDT) From: Chris Morgan To: linux-sunxi@lists.linux.dev Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-iio@vger.kernel.org, p.zabel@pengutronix.de, sboyd@kernel.org, mturquette@baylibre.com, samuel@sholland.org, jernej.skrabec@gmail.com, wens@csie.org, conor+dt@kernel.org, krzk+dt@kernel.org, robh@kernel.org, Chris Morgan Subject: [PATCH 3/3] arm64: dts: allwinner: h616: Add GPADC device node Date: Wed, 17 Apr 2024 12:04:23 -0500 Message-Id: <20240417170423.20640-4-macroalpha82@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240417170423.20640-1-macroalpha82@gmail.com> References: <20240417170423.20640-1-macroalpha82@gmail.com> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Chris Morgan The H616 has a GPADC controller which is identical to the one found on the D1/T113s/R329/T507 SoCs. Signed-off-by: Chris Morgan Reviewed-by: Andre Przywara --- arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi index b2e85e52d1a1..3da37948b89f 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi @@ -581,6 +581,17 @@ spdif: spdif@5093000 { status = "disabled"; }; + gpadc: adc@5070000 { + compatible = "allwinner,sun50i-h616-gpadc", + "allwinner,sun20i-d1-gpadc"; + reg = <0x05070000 0x400>; + clocks = <&ccu CLK_BUS_GPADC>; + resets = <&ccu RST_BUS_GPADC>; + interrupts = ; + status = "disabled"; + #io-channel-cells = <1>; + }; + ths: thermal-sensor@5070400 { compatible = "allwinner,sun50i-h616-ths"; reg = <0x05070400 0x400>;