From patchwork Mon Apr 25 06:02:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 12825295 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB34BC4332F for ; Mon, 25 Apr 2022 06:04:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232894AbiDYGHY (ORCPT ); Mon, 25 Apr 2022 02:07:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241405AbiDYGFq (ORCPT ); Mon, 25 Apr 2022 02:05:46 -0400 Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10103.outbound.protection.outlook.com [40.107.1.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 822E3659C; Sun, 24 Apr 2022 23:02:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fBFI8sJ4l/DHK/urVyRzAIarUOm1viRvJLC5kc/jebK0RyL62Z96KIS2j2UX4vAEoNL3nA5xldvk0JpyHOI23vJ18cqlrkwOIDv6KfDbIXkHNS40T02MO0eXe0n3H5+XItyJuH+l6Nz9V/N7POKoo6piC65vaXegvxItz3kESoQBGMEQLA1V0XzjvWizLaXO+/WX8uKR2hk4iGeL4cUsLK6TVKR+OcPFohRZwgjltR1Xp4kNNK4MqtlR4/lhd/amRMGuAUmlzfLmbUPrmqxnR9DoeT89WOr/u+ac47q7wRaNwJ9Ssisz4vQ4DZsWhAxGGjEVRRg5LxM6dHEBZlA28g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=t5Oe3cKlQEnXhu2wqhKGPmHPw28p23pWL0iw3VDw77Q=; b=AQ7g9RpOY6M9q2g2TxEyXqyxfJh2s1W5fEzN3mVD17+bDDXQrovfeM+6Q7lpADSxHVf+slu1qEkeXCaJkabsmFeLPdkG3ueX9zFv3nfJrhloPAyYUwvoT7VCdG0yI+uF5a8o1RwxCXKSu8XY/s5kGwEGTHl0T0YKOkDOkFsC9rwdKwSJbphPaGvl0T+utYbngm8pzTumEmvm5a2+XsoYdr3gU5rV1JSdjaCtkzA++B013AwmybzyY/lr3oleNeOYJpCLqeTBEF5aSAS6EA/1VTcjmVgvDA8NaeOAhwIk04+aU189mjaZ+7S8VJCotpjAWGJ7IMx4TcxCY+yVYVvsOA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=axentia.se; dmarc=pass action=none header.from=axentia.se; dkim=pass header.d=axentia.se; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axentia.se; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=t5Oe3cKlQEnXhu2wqhKGPmHPw28p23pWL0iw3VDw77Q=; b=ipyP/4S5ucvUNkm+scbgOUuHznlKnIJS2h3oRbNHHFCneT2nkOw9NBR2OPeTOfnmKF1GsoznVcXqg6SU4azypDsLggFo1KxRGkzlhYSiFbrGhfbKrjzYfA2zwELlszWJrDscWmhJCNMRz0VjjwawsqJ2kQJF7lbMSqlk96mfBoQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=axentia.se; Received: from AM0PR02MB4436.eurprd02.prod.outlook.com (2603:10a6:208:ed::15) by AM4PR02MB3025.eurprd02.prod.outlook.com (2603:10a6:205:10::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.21; Mon, 25 Apr 2022 06:02:36 +0000 Received: from AM0PR02MB4436.eurprd02.prod.outlook.com ([fe80::d038:3d5c:e37f:4423]) by AM0PR02MB4436.eurprd02.prod.outlook.com ([fe80::d038:3d5c:e37f:4423%5]) with mapi id 15.20.5186.020; Mon, 25 Apr 2022 06:02:36 +0000 Message-ID: <6e63f598-ff54-6cb6-8c7d-83e9d6231af0@axentia.se> Date: Mon, 25 Apr 2022 08:02:34 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Content-Language: en-US In-Reply-To: To: linux-kernel@vger.kernel.org Cc: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Sean Nyekjaer , linux-iio@vger.kernel.org, devicetree@vger.kernel.org From: Peter Rosin Subject: [PATCH 2/2] iio: dac: ti-dac5571: add support for ti,dac121c081 X-ClientProxiedBy: MM0P280CA0068.SWEP280.PROD.OUTLOOK.COM (2603:10a6:190:8::35) To AM0PR02MB4436.eurprd02.prod.outlook.com (2603:10a6:208:ed::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 785596c2-7d42-4e9b-78c3-08da26813243 X-MS-TrafficTypeDiagnostic: AM4PR02MB3025:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DNEYYnSg6Q9t6AYYPxzNxaeM9Cmin9fCga7kAgK5i08j1hZqt0FN0C+LYbemxAF/mRWEnWgMP8tnfYi6wei4HqG4HmnC+jugCtXyGhherGk0cQFSkWi3wd1tMkJ6WgovJAjp8cYnrUgNdyPRJ0pQLSpYfos49vV+yYPNbPyoy1DDHM6900Z8kQksmiCIRm5ZsLNghTMm/ihNZufK8C7PIgV4f4N1sIY8J0LZshmJCWWFp/uUySMrrETRQNt+NDNSlkBFSzI7rS+aqtYqoiWO8enXwYYvpy6VDrsOd8F/Jify9unsULhFB5R7PcGvUb35q+7Gg7+Fy+HBQPjj7inA5Bs5l9+ckczXauW7JOH/V7tTCuQZ10Yon9WbIZ08dvSIzhlVgOHLAjhlcbD2WBqzd2TH71+2fYw7NBuXh7HzSSHStrAljR3+vllGmPv/rmvVuBHkw5W6sSAoKv4a2pzwAJnxEuryLCmhwbUmM4Fko3j5p24ejLYicubkIbsup7JZpnaZAKzfXT5g3iFLICIjQIiOesZFTgQHDXjvrmbVdjscPjKBwj/6gTm5XyOigl0IKVJRVLekFN7Y1OxB4l13+Y8u0wgYj9qKaW4Itkhgt1UFM6EY47/FZ3W29hnA72r6lS0VWl1Z2ZS/V6OLhogILot5jyyvXHsHv9/2vVMVtNSEqiJh1hYGLMr3yJojZ+2JGNVylzZsL7Qal+qFiEWnvhyiZ0XNhm25zMomN3tBRnP9RMQcrdYksf8d8whUybna5rx8FQu3bg9Tl6m8UIIh1G+5BXcw4TedvTCuTJz1wmkDaD4OhM2sI8vc+3FHgmat X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR02MB4436.eurprd02.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(39830400003)(366004)(376002)(396003)(136003)(346002)(508600001)(316002)(8936002)(36756003)(5660300002)(38100700002)(83380400001)(31686004)(54906003)(6916009)(2616005)(66476007)(66946007)(8676002)(66556008)(86362001)(31696002)(186003)(4326008)(26005)(2906002)(6486002)(966005)(6506007)(6512007)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?v4mo+ScwDBCR46CDYSjXVc540BcH?= =?utf-8?q?+eT0xVFmkZnaxF2BIgxdmKvnrR+Y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tJAn/6J20t1lMr1q3s46WeOtOv59fQAChNZBb?= =?utf-8?q?vWBEZqC2eqtLVRrXYQdRrbh0vN15sp8QdcpG+jdpIJe1NmAIXCgkIKcsPt271SYej?= =?utf-8?q?Mt5n1OPOBQA9niEMyR8+v8WbFJweWllDOAjkX6weUrWIWCP/IODKw3YBuXqFWwdPS?= =?utf-8?q?L40k2ieWTkWlLuj1+K7QtPrSHfleIbZs5hOGKIxc+QSG7nsuS/Dq4/YL8P00Ge9zb?= =?utf-8?q?DYJJVbIOhuniluiWjg3FbyIJx1DkPKPv7hRDeMNgEwmE0q6Zj8T2JF4fAJGVW9GtA?= =?utf-8?q?F6T+gfiwxBI19tXVE0GJ2fXlKSTs+k00kfksKUk0By0F7gx67kHT4d+4wQoz0ChGC?= =?utf-8?q?B6GKFxzciIW+YdX3eIzgk1yPdgEFTK9dtrMxyy2jHLkXF1rdE4ZOJYjDB6lqLL624?= =?utf-8?q?nL8v01n2rhE/ekoeX3xONu9W0Y60ttS7kmwOd7+HsfpxUAO7dd+uwW/SsgNV59s0J?= =?utf-8?q?yXZ5Cm7ny2rgl0vCyv3cwseUEkwk+b7yvMtcu4/TF62mJncMwATCPSpDf1EAWRvOO?= =?utf-8?q?AMDx5Wwtv0kzbxEs5fK+zh8o+WCz/zDfARfqDKUYRnrj2Ki76diIuJgS0GQvrJAiw?= =?utf-8?q?ZmotgrxFzJL7ny1uLixs3DlQQZ36NMFEYQRkWXINxJK5YqV+MBofZ4QnZUZ6Ztf4e?= =?utf-8?q?AJw3pLa9YbhP3PP4/V3fPCfpLqDJamFvC2qvmhIZ7rR6eqZ+5JhZANA0CQu9BeZFF?= =?utf-8?q?vHE2Zj1R7ERjHqfozuwyFD+t0db8sLSg=3D=3D?= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-Network-Message-Id: 785596c2-7d42-4e9b-78c3-08da26813243 X-MS-Exchange-CrossTenant-AuthSource: AM0PR02MB4436.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2022 06:02:36.3203 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: VrNsMh7IzVmrfpT0/aXpyzBqx6oXeuSQhtU/FHV24HHnNQJAxYWQ9I5w9q42gQ02 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR02MB3025 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org It fits right in as a single 12-bit DAC. Signed-off-by: Peter Rosin Reviewed-by: Sean Nyekjaer --- drivers/iio/dac/Kconfig | 2 +- drivers/iio/dac/ti-dac5571.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/iio/dac/Kconfig b/drivers/iio/dac/Kconfig index c0bf0d84197f..d6248b188645 100644 --- a/drivers/iio/dac/Kconfig +++ b/drivers/iio/dac/Kconfig @@ -417,7 +417,7 @@ config TI_DAC5571 help Driver for the Texas Instruments DAC5571, DAC6571, DAC7571, DAC5574, DAC6574, DAC7574, DAC5573, - DAC6573, DAC7573, DAC8571, DAC8574. + DAC6573, DAC7573, DAC8571, DAC8574, DAC121C081. If compiled as a module, it will be called ti-dac5571. diff --git a/drivers/iio/dac/ti-dac5571.c b/drivers/iio/dac/ti-dac5571.c index 4a3b8d875518..ce542bd8b69e 100644 --- a/drivers/iio/dac/ti-dac5571.c +++ b/drivers/iio/dac/ti-dac5571.c @@ -13,6 +13,7 @@ * https://www.ti.com/lit/ds/symlink/dac5573.pdf * https://www.ti.com/lit/ds/symlink/dac6573.pdf * https://www.ti.com/lit/ds/symlink/dac7573.pdf + * https://www.ti.com/lit/ds/symlink/dac121c081.pdf */ #include @@ -394,6 +395,7 @@ static const struct of_device_id dac5571_of_id[] = { {.compatible = "ti,dac5573"}, {.compatible = "ti,dac6573"}, {.compatible = "ti,dac7573"}, + {.compatible = "ti,dac121c081"}, {} }; MODULE_DEVICE_TABLE(of, dac5571_of_id); @@ -408,6 +410,7 @@ static const struct i2c_device_id dac5571_id[] = { {"dac5573", quad_8bit}, {"dac6573", quad_10bit}, {"dac7573", quad_12bit}, + {"dac121c081", single_12bit}, {} }; MODULE_DEVICE_TABLE(i2c, dac5571_id);