From patchwork Wed Mar 28 17:00:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akihiro TSUKADA X-Patchwork-Id: 10313641 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8A51C600F6 for ; Wed, 28 Mar 2018 17:02:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7BD3B297A8 for ; Wed, 28 Mar 2018 17:02:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7A24A299AA; Wed, 28 Mar 2018 17:02:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1C60F297A8 for ; Wed, 28 Mar 2018 17:02:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752918AbeC1RBb (ORCPT ); Wed, 28 Mar 2018 13:01:31 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:46098 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752782AbeC1RBa (ORCPT ); Wed, 28 Mar 2018 13:01:30 -0400 Received: by mail-pf0-f194.google.com with SMTP id h69so1202654pfe.13 for ; Wed, 28 Mar 2018 10:01:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=gBNGi5d1ZPrGPF9m9pGfaoKLa5ll91dSAL0XvEINXj4=; b=pLW4cusFM3bZID+W4e0kxXYBUCKy9o/xRCxMULjaPT80ZLbCQ93Cp5PR207UeZasW+ TBDAmgSMWFE3ymp2oSx5zRzza/fKFoh9Kbnh6920NHtRTIJ/6T4kflpv7sVYvnkBt2VX 4KBfGKVz1PKK0E0Cb1ODXotuu61kAy8FVlT9Gp805zRS6WDb5oaScqVVebgqU5CtHMJQ 0f0+WiTi2tOemGjeq/xUYIfxhZCUV5BlNHPFIMgm+vMkBOzWspcIRSbC14mtvGP80qey GHHqUlQEbZRynEIrOsSPxWRHuFka6lmM9bilXcNazoTfSyJjO6FIEL7PZW24KLUS1E78 Xylw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=gBNGi5d1ZPrGPF9m9pGfaoKLa5ll91dSAL0XvEINXj4=; b=hVNVpIIimqer1hFuP51j0WYYFHLYfA15MNRymcYwRoSK9TkABZtCy09LhnF0wzsDu6 7eznF0XtESpApI+ABJ3HzMUoGPAtoq3njomME95sP5hcxEDlrounCEZITgA4YzkhUW0R VNBCqDFvq+IDpWoQ+WcS9mfXJogtBHkZHDbF+Uv6Y9/wF3WZ43F05EVa02OM0s9YZPHq xtl8UglUt/4SjBMsTPcVOCZhdCncwjOnjKRHl15JuM9R7XlZ55oEYeW8fHkxMvdnLj9U AV2TiuqKRaQKFJoIMRV1rnMgEhwS63FKgz2HXuwqrN+in+NnffeFD7FL7mAW8M7QlSxz 4H5A== X-Gm-Message-State: AElRT7Gx+y751GA/GpUJYpDBdov7VvUl8AEa50A9mxf9vJy4jbEyzm9x zLmlwoZyd1GRLiJH6uocBFVfGA== X-Google-Smtp-Source: AIpwx4+EdaefTlUKwiwym30DSCY4L8rdfyQTM2ZOgCtvDU4jJH2Iyz5iVNNPYIMV2FsIj8pz9kczCQ== X-Received: by 10.99.123.80 with SMTP id k16mr3131432pgn.173.1522256489627; Wed, 28 Mar 2018 10:01:29 -0700 (PDT) Received: from localhost.localdomain (softbank219203027033.bbtec.net. [219.203.27.33]) by smtp.googlemail.com with ESMTPSA id u4sm8950012pfb.43.2018.03.28.10.01.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Mar 2018 10:01:29 -0700 (PDT) From: tskd08@gmail.com To: linux-media@vger.kernel.org Cc: mchehab@s-opensource.com, Akihiro Tsukada , crope@iki.fi Subject: [PATCH v4 2/5] dvb-frontends/dvb-pll: add tua6034 ISDB-T tuner used in Friio Date: Thu, 29 Mar 2018 02:00:58 +0900 Message-Id: <20180328170101.29385-3-tskd08@gmail.com> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180328170101.29385-1-tskd08@gmail.com> References: <20180328170101.29385-1-tskd08@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Akihiro Tsukada This driver already contains tua6034-based device settings, but they are not for ISDB-T and have different parameters. Signed-off-by: Akihiro Tsukada --- Changes since v3: - rebase on the new style of specifying pll_desc Changes since v2: (patch #27927 dvb: tua6034: add a new driver for Infineon tua6034 tuner) - extends dvb-pll instead of creating a new driver drivers/media/dvb-frontends/dvb-pll.c | 19 +++++++++++++++++++ drivers/media/dvb-frontends/dvb-pll.h | 2 ++ 2 files changed, 21 insertions(+) diff --git a/drivers/media/dvb-frontends/dvb-pll.c b/drivers/media/dvb-frontends/dvb-pll.c index e2a93aae04f..deb27aefb9b 100644 --- a/drivers/media/dvb-frontends/dvb-pll.c +++ b/drivers/media/dvb-frontends/dvb-pll.c @@ -533,6 +533,23 @@ static const struct dvb_pll_desc dvb_pll_alps_tdee4 = { } }; +/* Infineon TUA6034 ISDB-T, used in Friio */ +/* CP cur. 50uA, AGC takeover: 103dBuV, PORT3 on */ +static const struct dvb_pll_desc dvb_pll_tua6034_friio = { + .name = "Infineon TUA6034 ISDB-T (Friio)", + .min = 90000000, + .max = 770000000, + .iffreq = 57000000, + .initdata = (u8[]){ 4, 0x9a, 0x50, 0xb2, 0x08 }, + .sleepdata = (u8[]){ 4, 0x9a, 0x70, 0xb3, 0x0b }, + .count = 3, + .entries = { + { 170000000, 142857, 0xba, 0x09 }, + { 470000000, 142857, 0xba, 0x0a }, + { 770000000, 142857, 0xb2, 0x08 }, + } +}; + /* ----------------------------------------------------------- */ static const struct dvb_pll_desc *pll_list[] = { @@ -556,6 +573,7 @@ static const struct dvb_pll_desc *pll_list[] = { [DVB_PLL_SAMSUNG_TDTC9251DH0] = &dvb_pll_samsung_tdtc9251dh0, [DVB_PLL_SAMSUNG_TBDU18132] = &dvb_pll_samsung_tbdu18132, [DVB_PLL_SAMSUNG_TBMU24112] = &dvb_pll_samsung_tbmu24112, + [DVB_PLL_TUA6034_FRIIO] = &dvb_pll_tua6034_friio, }; /* ----------------------------------------------------------- */ @@ -877,6 +895,7 @@ static const struct i2c_device_id dvb_pll_id[] = { {DVB_PLL_SAMSUNG_TBMU24112_NAME, DVB_PLL_SAMSUNG_TBMU24112}, {DVB_PLL_TDEE4_NAME, DVB_PLL_TDEE4}, {DVB_PLL_THOMSON_DTT7520X_NAME, DVB_PLL_THOMSON_DTT7520X}, + {DVB_PLL_TUA6034_FRIIO_NAME, DVB_PLL_TUA6034_FRIIO}, {} }; diff --git a/drivers/media/dvb-frontends/dvb-pll.h b/drivers/media/dvb-frontends/dvb-pll.h index e96994bf668..c1c27c0d1b1 100644 --- a/drivers/media/dvb-frontends/dvb-pll.h +++ b/drivers/media/dvb-frontends/dvb-pll.h @@ -29,6 +29,7 @@ #define DVB_PLL_SAMSUNG_TBMU24112 17 #define DVB_PLL_TDEE4 18 #define DVB_PLL_THOMSON_DTT7520X 19 +#define DVB_PLL_TUA6034_FRIIO 20 #define DVB_PLL_THOMSON_DTT7579_NAME "dtt7579" #define DVB_PLL_THOMSON_DTT759X_NAME "dtt759x" @@ -49,6 +50,7 @@ #define DVB_PLL_SAMSUNG_TBMU24112_NAME "tbmu24112" #define DVB_PLL_TDEE4_NAME "tdee4" #define DVB_PLL_THOMSON_DTT7520X_NAME "dtt7520x" +#define DVB_PLL_TUA6034_FRIIO_NAME "tua6034_friio" struct dvb_pll_config { struct dvb_frontend *fe;