From patchwork Mon Mar 26 18:06:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akihiro TSUKADA X-Patchwork-Id: 10308467 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 DECD160212 for ; Mon, 26 Mar 2018 18:08:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D27E528C47 for ; Mon, 26 Mar 2018 18:08:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C7310297F1; Mon, 26 Mar 2018 18:08:29 +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 5648A297F0 for ; Mon, 26 Mar 2018 18:08:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752560AbeCZSI1 (ORCPT ); Mon, 26 Mar 2018 14:08:27 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:43492 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752318AbeCZSI0 (ORCPT ); Mon, 26 Mar 2018 14:08:26 -0400 Received: by mail-pf0-f193.google.com with SMTP id j2so7829529pff.10 for ; Mon, 26 Mar 2018 11:08:26 -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=JQKpm6OTslWcYVp8mietD50072F5FqmOv6zS/4C5tMY=; b=F2hznZklQOT5NydvuBh74VN2zENWxFMVLPg3Qz4PqOHlbrznQgjknJVWL3cAhIcavV rRYtfCOUUo6CMdHfCPNwhFUgK1ZUDJfkobihk2zYYEhFT59dLoz0BbGfGZvlsftLCVKY O6KWxZ42+h4CehTo/ze6SPEeaeoYak3kQletS6snbBBlaPDjqWc9tKq2XOs8IqIjcZJy n0kkHmhP9S7EcDISnfkOsDrffdrGrTpF7AUOU7jXEcfjISEPevtn/zTeexWcunHOtQVy 4c3w+l3WeLFxTw+K4q7tX+bXCCKowzsvFYwnwFtHMAscg282BW80HKvW9roEGotYtVAz j61Q== 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=JQKpm6OTslWcYVp8mietD50072F5FqmOv6zS/4C5tMY=; b=d/MxY1Kzgq6XWV3V5Cz2ClqSgKm54VqqG78Ea+dq1ImR33Ke/0XotgRhICVPD3BtmW n+kgaKajHWTQkNVpCs6kYkuNLc0POW52FCpbWjSyxw+Ijyk9RVzkUKHKJKZlGMQbfrnx IM3N5VPBGyV7nJASdkHTLPm7/1Vl0UL0ucOGTOzUKVU9O6QAR2EU0BcjhoaeoHrQS96p yW1Y1DcWfe262b9mROEyb/Jm2rzWkhpa/J7mYZzS80HqWtnnoqF8+RhllcG2KpNCJO2c CinTDbBSVen/YVFfHIhtWviFzImceTciDdUSOtTPDaX1R49y5c2Ax0fT1hJcI5Bei9Ec Ejmw== X-Gm-Message-State: AElRT7HQwK/g6FHxNhwZcCREQ/v+zAaEjztBo/VqfpTIXqIa65ZF6jQX kJAeqpwtacL1sHt8iSL7lAvY6g== X-Google-Smtp-Source: AG47ELvoA8MqSBpu+otmm4rSI0Pj0JIWr3E8hAUUfsiQa26PBijxisYYtUrK7GchmHx1BzZmvyiJ7w== X-Received: by 10.101.64.7 with SMTP id f7mr9301261pgp.216.1522087706010; Mon, 26 Mar 2018 11:08:26 -0700 (PDT) Received: from localhost.localdomain (softbank219203027033.bbtec.net. [219.203.27.33]) by smtp.googlemail.com with ESMTPSA id q6sm27150368pga.37.2018.03.26.11.08.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Mar 2018 11:08:25 -0700 (PDT) From: tskd08@gmail.com To: linux-media@vger.kernel.org Cc: mchehab@s-opensource.com, Akihiro Tsukada Subject: [PATCH v3 2/5] dvb-frontends/dvb-pll: add tua6034 ISDB-T tuner used in Friio Date: Tue, 27 Mar 2018 03:06:49 +0900 Message-Id: <20180326180652.5385-3-tskd08@gmail.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180326180652.5385-1-tskd08@gmail.com> References: <20180326180652.5385-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 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 | 18 ++++++++++++++++++ drivers/media/dvb-frontends/dvb-pll.h | 1 + 2 files changed, 19 insertions(+) diff --git a/drivers/media/dvb-frontends/dvb-pll.c b/drivers/media/dvb-frontends/dvb-pll.c index 614a5ea3b00..76c091b2cb1 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, }; /* ----------------------------------------------------------- */ diff --git a/drivers/media/dvb-frontends/dvb-pll.h b/drivers/media/dvb-frontends/dvb-pll.h index 15bda0d0c15..f1f3ea4c0d5 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;