Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3788663rwd; Sat, 3 Jun 2023 11:58:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ711rQEV52oQ0qSIEAHd4nCXV5G2n8QS0v/WzE6oFp32CXMaao3sm9KPIwp3nKbA+54HV/R X-Received: by 2002:a05:6a20:2d2a:b0:10c:1047:68ba with SMTP id g42-20020a056a202d2a00b0010c104768bamr2660703pzl.35.1685818734149; Sat, 03 Jun 2023 11:58:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685818734; cv=none; d=google.com; s=arc-20160816; b=FizRg6GmqyK4yay/2/NHS6t5nxncP/Cul6NSnDjP59vfMOKr6aKsfp5lIgnFLY7nNs 8uWqe8HTNWcfhlUvppG6OO3/7D1AJPNIhfl3YUuybJq3xgyYzZGnfza9dU3EgIoV6uoY Rk1mUdbPHydt3rAyKCkWkT9d/2LZy508qwdP+nJTM4D3v4UK7I9ocr3bFFbkS9bxeIIq FsNt+wzw9qK12wBl/0kR9+7zewDmDKHljZQ24pGM29UYaIEAL5yZA3+8GBxfg0PbcTY/ An9+mgaiDhjYXuEVY9ez0xAepeLYQFQpHd9RNVqg67kf5mhjtGo5fenU9ZZQNg2dedPm oyfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=IUR4TOXd683V3TTIaQWx/cur1SmpcP62IScUtkI9BKc=; b=f7jt9YNHBls7BZFG21Qd1SRkGLNv/U9pnEcfeDkP9EBfow/et+0cbVgeC2oD2p6uka rda+4XQFLb8DAKAW/oKlG7J5+74nTtAoYfEafeT104vUweEfer2BBT3XR6VMwmPU/Xwo Y7nl/s7tNR3KGF1kcEUPz9i2mKYIMAHR6wjg4ue2El4BijEmPDkFdvLr7VX/L3B0Bft1 9xo3Iqmqj/2MNPJRaQREEQpMU2zpxOospIcpJxFaBTEuG3FJ3Ks7SzIY7zOI79+VW5AM VkVPxiUo4arO/87hBA/RNXngjUjayuLCyqTu9PYmpsuiX2BbFhkxxffyKVIk67U9/Jp9 q2Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=gKkl5DS+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i63-20020a636d42000000b0053f66c75b98si3108298pgc.703.2023.06.03.11.58.42; Sat, 03 Jun 2023 11:58:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=gKkl5DS+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229684AbjFCSyS (ORCPT + 99 others); Sat, 3 Jun 2023 14:54:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbjFCSyR (ORCPT ); Sat, 3 Jun 2023 14:54:17 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41E4D132; Sat, 3 Jun 2023 11:54:16 -0700 (PDT) Received: from localhost.localdomain (unknown [IPv6:2405:201:0:21ea:e49:10dd:40c0:e842]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: shreeya) by madras.collabora.co.uk (Postfix) with ESMTPSA id 84F176603050; Sat, 3 Jun 2023 19:54:11 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1685818454; bh=qJHl6ZztoyxnGSSFfe0ylaeipSQVNPH3nlpHB6A9Yak=; h=From:To:Cc:Subject:Date:From; b=gKkl5DS+Es+ob9eQWoxzh64xfN2ES2Srv/U8hUXZ4sG78XzQS/xziNqguoQg2ZeIJ HKxVrhk4TdrsdLAXBIZ2NqHGma4ZtAjSbqqwmOZ3J+EBSDTRl4QuXSaR6gaxFRzYa2 JywssVzi3eEalKk/YRCxSlgBqrE5xtMy6fO70C7WLOZvOE+Rn+ghg+wE4aCF4tIgoz Ywco5j9h2MFHhEJBWWlOuvuawwyjQHyfBE7ol1QMEb/iBOBnr7ZqXoLRIFhC+tntZL LMyeGKz2gHv7CFUU+1XIf6d4iv6yLUZogTMJMqWf3cd5QsHxXnmv1kLycnJw1JoLBT 9d18xhz3DhoOw== From: Shreeya Patel To: jic23@kernel.org, lars@metafoo.de, heiko@sntech.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, sebastian.reichel@collabora.com Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, gustavo.padovan@collabora.com, kernel@collabora.com, serge.broslavsky@collabora.com, Shreeya Patel Subject: [PATCH v3 0/8] RK3588 ADC support Date: Sun, 4 Jun 2023 00:23:32 +0530 Message-Id: <20230603185340.13838-1-shreeya.patel@collabora.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series adds ADC support for RK3588 and updates the DT bindings for the same. To test ADC support on Rock 5B board, a voltage divider circuit was created using the gpio pin 22 ( SARADC_IN4 ) and few more tests were ran for testing the buffer and trigger support using the iio_generic_buffer tool. Changes in v3 - Add bitfield.h header file in patch 2. - Add a Reviewed-by tag in patch 2. - Do not remove clock enabling and disabling from the suspend and resume functions respectively in patch 3 Changes in v2 - Add from address in patches 1 and 2. - Create separate patches for adding new device support and changes to the old device code. - Make use of FIELD_PREP in patch 2. - Move the enablement of clocks at it's original position in patch 3 - Add Reviewed-by tag in patches 4 and 5. - Add an Acked-by tag in patch 8. Shreeya Patel (8): iio: adc: rockchip_saradc: Add callback functions iio: adc: rockchip_saradc: Add support for RK3588 iio: adc: rockchip_saradc: Make use of devm_clk_get_enabled iio: adc: rockchip_saradc: Use of_device_get_match_data iio: adc: rockchip_saradc: Match alignment with open parenthesis iio: adc: rockchip_saradc: Use dev_err_probe arm64: dts: rockchip: Add DT node for ADC support in RK3588 dt-bindings: iio: adc: Add rockchip,rk3588-saradc string .../bindings/iio/adc/rockchip-saradc.yaml | 1 + arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 12 + drivers/iio/adc/rockchip_saradc.c | 246 +++++++++++------- 3 files changed, 168 insertions(+), 91 deletions(-) -- 2.30.2