Message ID | 20230603185340.13838-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 k13csp1810140vqr; Sat, 3 Jun 2023 12:17:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7x6k2JexDIRYv/w/JiBUA/P7CT6iaMYjAKRAUKWav388O6kh6NgMcMZWvFSnJ/OfByDn2R X-Received: by 2002:a17:902:6b0a:b0:1ac:5717:fd5 with SMTP id o10-20020a1709026b0a00b001ac57170fd5mr3583883plk.60.1685819830854; Sat, 03 Jun 2023 12:17:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685819830; cv=none; d=google.com; s=arc-20160816; b=eE2FDGhKLBtz0bIAFFw0qODz9cnmsQ+we4QkEXjtu8Ur9rNuQGcF+1AcCPC6zVmzix yZ1RHJ75XhgUS7WjAUF/7ySwO2WfimpCY1yxuj/OoX5SfMPxEdYA26eM5QLRGAVRyGz3 YpiB7KRvFXFcr6/Jffao1C2tOSHIpksH3kPJs/c5TF7JYR8KwtAin6CGBKgYkhYb5Uxe lK1eju9t2yyCaP+f1vxK5INkCYCRGw0/kRaFUKfUZVipoRTE1pIqdJ7Ry3wEB1X7BOhQ hgXdtvuEvgpu4q1fFdJoy6rbWWrV1a0SCPv9JEfO4rwo+ar/Qe9vPT4iGc+IfX0eKZ+3 bOpg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z9-20020a170902834900b0019ccffb3fd3si2863290pln.509.2023.06.03.12.16.58; Sat, 03 Jun 2023 12:17:10 -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 S229695AbjFCSyS (ORCPT <rfc822;stefanalexe802@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <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, gustavo.padovan@collabora.com, kernel@collabora.com, serge.broslavsky@collabora.com, Shreeya Patel <shreeya.patel@collabora.com> 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: <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?1767710215036637067?= X-GMAIL-MSGID: =?utf-8?q?1767710215036637067?= |
Series |
RK3588 ADC support
|
|
Message
Shreeya Patel
June 3, 2023, 6:53 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 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(-)
Comments
Sun, Jun 04, 2023 at 12:23:32AM +0530, Shreeya Patel kirjoitti: > 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. Well done! For patches 1-6 Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> (with one nit-pick to be addressed) > 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 >
On Sat, 3 Jun 2023 23:50:09 +0300 andy.shevchenko@gmail.com wrote: > Sun, Jun 04, 2023 at 12:23:32AM +0530, Shreeya Patel kirjoitti: > > 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. > > Well done! > > For patches 1-6 > Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> > (with one nit-pick to be addressed) Addressed the nit whilst applying and picked up 1-6,8. Applied them to the togreg branch of iio.git, but initially I'll just push that out as testing for 0-day to take a look and see what we missed. As normal 7 should go via appropriate SoC tree > > > 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 > > >
On Sun, 4 Jun 2023 00:23:32 +0530, Shreeya Patel 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. > > [...] Applied, thanks! [7/8] arm64: dts: rockchip: Add DT node for ADC support in RK3588 commit: ec084cbddbbe3a778ee06ccc0c59cee23b5cbaf4 I've moved the node to its correct position (by @address) and also renamed the node to a more generic adc@... Best regards,