Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3875270rwd; Sat, 3 Jun 2023 14:04:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7NJSSKnw2J5CrHWKFTHgMfXDflJBn5QsvJVg/9kn/RHUmboksQjgUI7ZjJvE7iTJm3ydDR X-Received: by 2002:a17:90a:db97:b0:256:bc62:831c with SMTP id h23-20020a17090adb9700b00256bc62831cmr1530030pjv.39.1685826259177; Sat, 03 Jun 2023 14:04:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685826259; cv=none; d=google.com; s=arc-20160816; b=esXpbKG7W5nRwFaZB6l00glfPgJS9y6XjajmGIWjTuOwNSlFcSS1IuD9Znqqg6YaHa 1+WIthdP14L/Cosem6dD8FGeldp4ZxQP2Nco9c9f5QZ1wZZ2Y7ar2VcCkQowQB64X9o8 o4gPkbxPfu1CIBXXc5Rdu7aNaFe0YTpJAiaUWCBeE0yziNvP/UWG3so/AByjW+HB36Z5 MsXVcnbfAZBhNiba8C+z3tNXbAitcqRnZaJKMElOoswbMASzRDRqMYU4nQGsNOv1YJqn 85JkLbISssCVpidMjndUlEk5B4tDRa8QNrRRuFxUHdjVJQWBoWHoLHQU99IxQa5y6RF0 lNmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:date:from; bh=1tRjN9yiriVXa+BPH7kJen/EYwdo2iN6yPQ6Xumi1LU=; b=fRZ/x84l111WDY4cTtGfXG5JFs7sB6afhW2mATv0JCxKpLOJtuNzlsTQSCWUf9mRCd asZuj6sOm/RzTtptTREnw+7Kh0LbVsnVcGl491MMbDfbFtxZlYSsSYo+t0+7Wx1QzkbQ HFKSOWHvNImxa8mWgPJ2vk+PhECFlz6rBPHnQNsaudGCjAquhMNKSh7YcqLToq1iZJO2 B5fqtt3wKGLF6jgFvBlhoUjFHxzpFJrcCrP/7cln1MyuIiKJHc8pl62FdFGq0VRGiDwd tnAkXrJPZ6AKEKV2j5+7HXMyq4eGd4ZuSFdUTsW0ipHbni8cjzcj3qaGo2Jsek/d495c XdlQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q16-20020a17090a2e1000b00258d8f6eabdsi3428373pjd.66.2023.06.03.14.04.06; Sat, 03 Jun 2023 14:04:19 -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; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230092AbjFCUsG (ORCPT + 99 others); Sat, 3 Jun 2023 16:48:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229883AbjFCUsE (ORCPT ); Sat, 3 Jun 2023 16:48:04 -0400 Received: from fgw20-7.mail.saunalahti.fi (fgw20-7.mail.saunalahti.fi [62.142.5.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AD7D197 for ; Sat, 3 Jun 2023 13:48:03 -0700 (PDT) Received: from localhost (88-113-26-95.elisa-laajakaista.fi [88.113.26.95]) by fgw20.mail.saunalahti.fi (Halon) with ESMTP id ed5e4d7a-024f-11ee-b3cf-005056bd6ce9; Sat, 03 Jun 2023 23:48:01 +0300 (EEST) From: andy.shevchenko@gmail.com Date: Sat, 3 Jun 2023 23:48:00 +0300 To: Shreeya Patel Cc: jic23@kernel.org, lars@metafoo.de, heiko@sntech.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, sebastian.reichel@collabora.com, 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, Simon Xue , AngeloGioacchino Del Regno Subject: Re: [PATCH v3 2/8] iio: adc: rockchip_saradc: Add support for RK3588 Message-ID: References: <20230603185340.13838-1-shreeya.patel@collabora.com> <20230603185340.13838-3-shreeya.patel@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230603185340.13838-3-shreeya.patel@collabora.com> X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no 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 Sun, Jun 04, 2023 at 12:23:34AM +0530, Shreeya Patel kirjoitti: > From: Simon Xue > > Add new start and read functions to support rk3588 device. > Also, add a device compatible string for the same. ... > +/* v2 registers */ > +#define SARADC2_CONV_CON 0x0 > +#define SARADC_T_PD_SOC 0x4 > +#define SARADC_T_DAS_SOC 0xc Can you use fixed-width values for all registers? 0x000 0x004 0x00c > +#define SARADC2_END_INT_EN 0x104 > +#define SARADC2_ST_CON 0x108 > +#define SARADC2_STATUS 0x10c > +#define SARADC2_END_INT_ST 0x110 > +#define SARADC2_DATA_BASE 0x120 -- With Best Regards, Andy Shevchenko