From patchwork Tue Oct 13 10:32:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Billy Tsai X-Patchwork-Id: 11835379 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CE71A174A for ; Tue, 13 Oct 2020 10:35:13 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8F69920E65 for ; Tue, 13 Oct 2020 10:35:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="d3y5Lv/h"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="uRgxT4gD" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8F69920E65 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=aspeedtech.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=WOzW4Ah5ZkhfYNSt2ubYK+2m3hbPL7aFYwwZC90gzas=; b=d3y5Lv/hXMGjRZVxYjwFcWlscU uF9gHqtLkBXriLUCEtBqrBxmsahPklzNYgb3EHMcJFq4FcTwCCLJuHO/vykeHQTphG8GxXgTLCjDX eLOD1n4Imac+VBMW3V7tXYCkl944e7tTWuPC0/1aNYRUOlAE2NDcPWOqO7h3/lR3foozAJwgVKfYa li89BFR6XcZcdcr51w8M06zr7axwwMi6B6K8/7xh3UEq7sngIl4i1j87PaGz3l4q9/j00UCaWNh81 ZgOZY1i400m1feqkJV/qbRI3KOZj9pT55Mfe6zPN3vbtXPqnL8Amb+ESlfKXsj5cGUrb6hhyzMEWA SRlwPKkg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kSHcq-0003sR-Sr; Tue, 13 Oct 2020 10:33:48 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kSHco-0003sA-Ul for linux-arm-kernel@merlin.infradead.org; Tue, 13 Oct 2020 10:33:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:Message-ID: Date:Subject:CC:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=7lrn5MLO5dcCAhr1fDQ9gBexbalhlkHR7OZegGVI0UM=; b=uRgxT4gDbChK/QWbWWOy4KZkJI HBbfWJQNeJuTh/VMEunNiD1oZqFZ00fuZiDvhH3bcQ/oB0jCkwdmApc+/OgtkOkLzvYOFSznF1dA4 x0VR3pda5VijGdwBuItZNbBgbtDDhRIEAIUsKOwi5gvNDW2eIq3kJhc4yT2kMyN257nLpO/NT7huU gBBehudyMta8D3+1FEx+GDsLocQzImYpNKiMTKGe1v39YlqBEz8E9Yqr+aCVmAvvG4pMw0hfe0Ejf AOkAo5Hmvm0k2AwhrX8q1/aESy1oodWP0OJYKOszvayEu3f7hcIwetK11rKnuzCirH3q9t2hinUm+ lxolcPsQ==; Received: from twspam01.aspeedtech.com ([211.20.114.71]) by casper.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kSHck-0006q9-37 for linux-arm-kernel@lists.infradead.org; Tue, 13 Oct 2020 10:33:45 +0000 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 09DAUff7010591; Tue, 13 Oct 2020 18:30:41 +0800 (GMT-8) (envelope-from billy_tsai@aspeedtech.com) Received: from localhost.localdomain (192.168.10.9) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 13 Oct 2020 18:32:57 +0800 From: Billy Tsai To: , , , , , , , , , , , , , , Subject: [PATCH 0/3] Make driver compatible with ast2600 Date: Tue, 13 Oct 2020 18:32:42 +0800 Message-ID: <20201013103245.16723-1-billy_tsai@aspeedtech.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [192.168.10.9] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 09DAUff7010591 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201013_113343_406321_7376B067 X-CRM114-Status: UNSURE ( 7.14 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.4 on casper.infradead.org summary: Content analysis details: (-1.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom; id=billy_tsai%40aspeedtech.com; ip=211.20.114.71; r=casper.infradead.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 TO_EQ_FM_DOM_SPF_FAIL To domain == From domain and external SPF failed X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: BMC-SW@aspeedtech.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The ast2600 is a new generation of SoC from ASPEED. The adc device in this generation adds some changes and features. This patch series handles the changes below: 1. Define the new register fields. 2. Split into two individual IPs and each contains 8 voltage channels. 3. Remove the pre-scaler and extend the field length of the scaler. 4. Ref_voltage becomes configurable. Billy Tsai (3): iio: adc: aspeed: Orgnaize and add the define of adc iio: adc: aspeed: Make driver compatible with ast2600 iio: adc: aspeed: Setting ref_voltage in probe .../bindings/iio/adc/aspeed_adc.txt | 16 +- drivers/iio/adc/aspeed_adc.c | 168 ++++++++++++++---- 2 files changed, 148 insertions(+), 36 deletions(-)