Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4356513rwd; Sun, 4 Jun 2023 03:43:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4RinIa5JTfdY3bIkTgIgRsk9BStIPzlBVxWHXLbeyE9sRh4dGHOyGWg87c2t1LsM1MGCtP X-Received: by 2002:a17:902:ce88:b0:1af:f4f5:6fae with SMTP id f8-20020a170902ce8800b001aff4f56faemr4488656plg.54.1685875412065; Sun, 04 Jun 2023 03:43:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685875412; cv=none; d=google.com; s=arc-20160816; b=b80fLzqBq8Q1n/AJt/IcBMcPsCnr2BK9Eu6ljGGk28Rrholijv0kOHPMX8GC07fhTl 1GaOmuc44yDfBHsstoAICnaMgUt9ZJ7LJMq4AThChrPR+E3NU5HmwCne0mlyyiFPbVog lVp8guoxyiuOUCJ8jMSCtmLXiA5PA/ENPG6pT2ydlg2wYjYKWRwVX/NaYFdc/zbhOYsg D2VMP5kELuI1JMvqoyUCcZi53C8i3/Z7AT30vCU73yut6pdktt7Fi6iE+MgMoUwr9noe yKK0Sn9qLOS/QFxeoGmZ8DEOV+0GnNszfTcEHc95Y0V7LFzgWtNj7KWPpVCZlKZOzh7T olCw== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Unwt2Awm8fojgThnmDAefucuRD+y0zgXDer+AjuigGI=; b=pbHY0hoPN4oiqY9Cio1UHqVtJvdozZNPxMVBKtWToFpywjDCeeyT+8cgHf1Zmn3u7a eG8Scz2zXF3Gj/prTNolWnrV6xALKzpAshzcX6xDn4OAwewiMWQVweZY+3vzQyJMREJb eYjEkdutnyPxslPQ+arM7efEPLVRT/ODsLhRPXVhHHZVMN3BKi0zoTTiDLEEoyoKOqu/ bExxsodSi2hgYl1I8HLgnJ3Rq6QsUCWygJ0XhWWaX8LBkf53wFggVXebPSjhHf7NV8tZ bUlBF0iQ9h9XXREcVU1e4MeC4Ss020Go0BH1O+1mNDggblVzkdLokyvUs7EcnHjJUUEM mnGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ET68GUTN; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t8-20020a1709027fc800b001a197aa18fesi3834855plb.121.2023.06.04.03.43.18; Sun, 04 Jun 2023 03:43:32 -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=@kernel.org header.s=k20201202 header.b=ET68GUTN; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230363AbjFDKU6 (ORCPT + 99 others); Sun, 4 Jun 2023 06:20:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229490AbjFDKU4 (ORCPT ); Sun, 4 Jun 2023 06:20:56 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1AFEA3; Sun, 4 Jun 2023 03:20:50 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 24D6D60F55; Sun, 4 Jun 2023 10:20:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 73D51C433EF; Sun, 4 Jun 2023 10:20:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685874049; bh=KNWTkBNxkUm0++34/5RGlpBQ8nek3uIrv2ErreqYNkw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ET68GUTN8XQJzGbSbl3yHcepbNoqbblEZuRWjiDbNT52xCz3Es63iVrSuT2hGzd6x n52iZlrLTDbd7ipeLxVTqbZhITWiTJq0VrKNuWpzQ5iP/u6w6Dwyx1XB5FZmdyBUBt Rde+1BNaRYyH0jHUAIugHRSYI1Szx4a/MNIlv4ytVGD4eyms/jj6xV/8naJ6Ej4ims qJoxFCD5Zs+OoYg8dVqOGbx3bHVv4tBsnpq4hWVFCGxOt+buRU5gwDQPJIRcDqcM2H uBsqjrXhoNqwWPM1Nxd+JH/qo0s+SqDb/xBgdjICr6YRq8D9omNpyqnZNcXOKMHORx qGw0JU6f+hPsg== Date: Sun, 4 Jun 2023 11:20:43 +0100 From: Jonathan Cameron To: andy.shevchenko@gmail.com Cc: Shreeya Patel , 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: <20230604112043.43b1ada0@jic23-huawei> In-Reply-To: References: <20230603185340.13838-1-shreeya.patel@collabora.com> <20230603185340.13838-3-shreeya.patel@collabora.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Sat, 3 Jun 2023 23:48:00 +0300 andy.shevchenko@gmail.com wrote: > 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 > I tidied this up whilst applying. Jonathan