Message ID | 20230525212712.255406-1-shreeya.patel@collabora.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp55061vqr; Thu, 25 May 2023 14:29:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5MLn69reb7YwsRlGL67avkYWlitXMMgsaRdrXef5z3/FcubhmM3Sp0z/WiZYod1YEAmAt6 X-Received: by 2002:a05:6a21:339c:b0:10b:91c5:45b5 with SMTP id yy28-20020a056a21339c00b0010b91c545b5mr17917988pzb.31.1685050148756; Thu, 25 May 2023 14:29:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685050148; cv=none; d=google.com; s=arc-20160816; b=ONaPHPb2P/x/95nBEjPp6kqlbZ5Qo2mK1wambN0uVEJmQC7bQZF3oto3ozUATafVjI BXc04F0e0Ikych/MwNC+1GnZKwemwza88drZ6BK+09qOlA6Vq+aGQktDKotLNi9yuyeb +JD6ueIG7TLJooF6F30gpPHJyPnEvpNKhy7+rEMfUBMQGl/O8JmkzM2SJgkGoBq9ITWY 0y2GjKQrmkx3JLpyW7cdlSllA89i5ntKZMrAcU47W0HKcKSjoMsFimZ98Qs/RbFb/9cF s0gTyV5ypf8TgKCKLMwrtJN6SrU84iWAopmj380UxGfJniYd6bhzCZLAacQ9AdQEymSw MeHg== 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=49kK/DUIfK1JUbnSKZUdb7WR3i7ingSLFzVd4TBZ/PA=; b=au0RGIQ/4972oSgTC7k+d5+LA8giFD7pjJXObQrp6olylWdKOLrlPzyNL0vki7eo9U VC4LLpLNFs+/cr0y7JQnOabgC1YvKmJSOm4P8HuPYywYc8O+znx3BoOecwq5Sr0P+cN5 jRAC0KhruHbhLRk4CVkjig1AquS0RUjOLzNlDBTbtfft69gNNs1i509lMzSKlNAP8YGG qP3r4SWBK0k/wlxlxSpifgNLCVPbqZ3Jgd/D53TpTf4qhyIjDpgoVVbCsIlvUz+eTd9o Z9KFqGW6ZtyqW/f1z9elSGtw0snmh/dN0beX6N5ZbvmLhwvBPJsw5T9uRE5QHHj2D+j1 6uRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=cEFU5gjH; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h187-20020a636cc4000000b0053b8f80c623si1638690pgc.448.2023.05.25.14.28.53; Thu, 25 May 2023 14:29:08 -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=cEFU5gjH; 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 S231397AbjEYV16 (ORCPT <rfc822;jian.xie.xdx@gmail.com> + 99 others); Thu, 25 May 2023 17:27:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229589AbjEYV1w (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 25 May 2023 17:27:52 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C2ACD3; Thu, 25 May 2023 14:27:51 -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 59D656601F54; Thu, 25 May 2023 22:27:46 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1685050069; bh=dP+0YR0RnQxfWF3b6qBWLSWc9N7BIfuDH1T6X6tTKTI=; h=From:To:Cc:Subject:Date:From; b=cEFU5gjHsRkaTMKoERUZBnhYoVu+4ax17TQxCAKp9CIg3LbiC0eVwgVuaz/9JNjxs FC9aA9/Oo9pabfPQ9UsLyibIscCtcJnOy9c7YSKpvVmS4HG2Gq5D2ixzpSb8B3bK+V E9L7eZ6B5geX1ThOQC4Xp/2qFcL4VP65YVtnmMFJ8Hh/aOnxHxoDKRPLla0DD/MeEo vcPRdMeGPHLKG73T7NHv3sHEZSX0g6Txa5ZQzUFxUU4r/Pv9XOUIZzJN97UfkfFJFz qgRy8WpExsMydsMOOT17LNKDmLmQNJkj+1YJ1/3Sf5I3OdMFa1aw0cUXScDvNXx52U gt3hQGiwtCtvg== From: Shreeya Patel <shreeya.patel@collabora.com> 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, kernel@collabora.com, gustavo.padovan@collabora.com, serge.broslavsky@collabora.com, Shreeya Patel <shreeya.patel@collabora.com> Subject: [PATCH v2 0/8] RK3588 ADC support Date: Fri, 26 May 2023 02:57:04 +0530 Message-Id: <20230525212712.255406-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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766903144388622541?= X-GMAIL-MSGID: =?utf-8?q?1766903144388622541?= |
Series |
RK3588 ADC support
|
|
Message
Shreeya Patel
May 25, 2023, 9:27 p.m. UTC
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 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 | 262 +++++++++++------- 3 files changed, 168 insertions(+), 107 deletions(-)
Comments
On Fri, 26 May 2023 02:57:04 +0530 Shreeya Patel <shreeya.patel@collabora.com> wrote: > 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. > FWIW I don't have any additional comments on this beyond agreeing those made by others need addressing. Fingers crossed for v3. Jonathan > > 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 | 262 +++++++++++------- > 3 files changed, 168 insertions(+), 107 deletions(-) >
On 28/05/23 22:16, Jonathan Cameron wrote: > On Fri, 26 May 2023 02:57:04 +0530 > Shreeya Patel <shreeya.patel@collabora.com> wrote: > >> 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. >> > FWIW I don't have any additional comments on this beyond agreeing > those made by others need addressing. > > Fingers crossed for v3. Thanks Jonathan, I'll send a v3 after making the changes mentioned by Dmitry and Angelo. Regards, Shreeya Patel > > Jonathan > >> 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 | 262 +++++++++++------- >> 3 files changed, 168 insertions(+), 107 deletions(-) >> >