From patchwork Sun Apr 8 17:21:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akihiro TSUKADA X-Patchwork-Id: 10328387 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 69B26604D4 for ; Sun, 8 Apr 2018 17:22:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 58EF8287BD for ; Sun, 8 Apr 2018 17:22:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4DA5528A57; Sun, 8 Apr 2018 17:22:22 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, 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 E85B0287BD for ; Sun, 8 Apr 2018 17:22:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752446AbeDHRWV (ORCPT ); Sun, 8 Apr 2018 13:22:21 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:45181 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752412AbeDHRWU (ORCPT ); Sun, 8 Apr 2018 13:22:20 -0400 Received: by mail-pf0-f194.google.com with SMTP id l27so4314347pfk.12 for ; Sun, 08 Apr 2018 10:22:20 -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=Fi022TpSXBvtKZ8rk4sxiVGkAvPcaod5+VtT7DFQX68=; b=RhZ6GSGI1Ar6Kv0c78wPuVMvUW1GXKzZDg7+Hrxjc3IJJ9d2NnR0aAchZfX9abaF6T FuO6hnuGZT7rY+tsWSldxPUEaBEyoQHD+I2JRdP3rsjuNgmQ867IeiKo2cI7z+OdKyP7 4z0LOQ4Jc6mTb7keZ08EPBBrhEkiBzDB/uwYiqEmDh7Sn6IPG6N3J4JfUU/IQuBHRyUy ErR5bRVzFp5eorkSnBLeMzKkILqr24kZDAsQFBvxAmmpAouRJ0Lsp8BqIBOgE0Wfd2Ms EqFqgFYLuNzQMM2BkpJKxUBKjX7Yv/2cW4tHxbX8tiJdWLCFoRh/WHn76YKEw9qJ/85S CApQ== 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=Fi022TpSXBvtKZ8rk4sxiVGkAvPcaod5+VtT7DFQX68=; b=egd5pyaF60b1Y/S2zxU/Mn3HC4GmGe0bBLvFvEixqgLpGZ0qrvriH2RkM83e8pPwM+ /T2kj30qmVvLIyuRbuwH4OkTVz16KzK7hOFybYF1yW6mzN5CTRyLO21dvuQqNE3TNbws OQKnRY6HIIc3TUdoBmHesrR6qN4cGIuEAmfUdgklV/cSpLP3Gblj9OUUqq2SOflUtx38 MGL+s2NrggxNv0l8CnCYWwdgMnxtoPNuxmI7GiFYTW8UmgoJBkgAbqKz5QSE4cerFubu wQaKp9Eu35OTDj0GnbJyq2rgpg/agzLT/hhBR6uHqhTnaENEZULFgudPRy9UmPsrBR1U o1Og== X-Gm-Message-State: AElRT7HTZGUsN1W9/8akjbaGHcxl2dd65lBEwpbrV4ZnAYFoyDN4EwPA zKV5S9Ehqy/mN+UhZLVtmRbCFQ== X-Google-Smtp-Source: AIpwx49bW2wdYou20liUIbW5ffnLhwvpTqzQIoxFhvRDkOYjr/C0m5NyUpPdhAGXt7udHFtvLIMzeQ== X-Received: by 10.99.52.134 with SMTP id b128mr22936052pga.342.1523208139715; Sun, 08 Apr 2018 10:22:19 -0700 (PDT) Received: from localhost.localdomain (softbank219203027033.bbtec.net. [219.203.27.33]) by smtp.googlemail.com with ESMTPSA id j125sm33717026pfg.188.2018.04.08.10.22.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Apr 2018 10:22:19 -0700 (PDT) From: tskd08@gmail.com To: linux-media@vger.kernel.org Cc: mchehab@s-opensource.com, Akihiro Tsukada , crope@iki.fi Subject: [PATCH v5 2/5] dvb-frontends/dvb-pll: add tua6034 ISDB-T tuner used in Friio Date: Mon, 9 Apr 2018 02:21:35 +0900 Message-Id: <20180408172138.9974-3-tskd08@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180408172138.9974-1-tskd08@gmail.com> References: <20180408172138.9974-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 v4: - do not #define chip name constant 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 | 1 + 2 files changed, 20 insertions(+) diff --git a/drivers/media/dvb-frontends/dvb-pll.c b/drivers/media/dvb-frontends/dvb-pll.c index ff0f477276a..f7d444d09cf 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[] = { {"tbmu24112", DVB_PLL_SAMSUNG_TBMU24112}, {"tdee4", DVB_PLL_TDEE4}, {"dtt7520x", DVB_PLL_THOMSON_DTT7520X}, + {"tua6034_friio", DVB_PLL_TUA6034_FRIIO}, {} }; diff --git a/drivers/media/dvb-frontends/dvb-pll.h b/drivers/media/dvb-frontends/dvb-pll.h index 101537ae4ef..7555407c2cc 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 struct dvb_pll_config { struct dvb_frontend *fe;