From patchwork Sun Apr 8 17:39: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: 10328445 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 138026053B for ; Sun, 8 Apr 2018 17:41:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 03C70289A9 for ; Sun, 8 Apr 2018 17:41:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC76A289FF; Sun, 8 Apr 2018 17:41:53 +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 94282289A9 for ; Sun, 8 Apr 2018 17:41:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752517AbeDHRkW (ORCPT ); Sun, 8 Apr 2018 13:40:22 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36871 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752469AbeDHRkT (ORCPT ); Sun, 8 Apr 2018 13:40:19 -0400 Received: by mail-pf0-f196.google.com with SMTP id p6so774193pfn.4 for ; Sun, 08 Apr 2018 10:40:19 -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=tNt1KSmjanUl9qlsLqBmsIcJbd6mDyljsCUK8iiUjeA=; b=tu/CMUqCQbM6gwhFJJz9ciwNCUNFzBJFDqoUKyEkaQnGyFcFcBM4xVWx6YHPmTbcgO nKSIZ+1I8/0FWyZg7pFXMumJEjKg9xIgk7zTvfzWKE0MAdWhBzs90oHhYmz/qGJ/nQmk UE2nuEFQ87g+KBokGOVP3++hxnrTo47EUyK7jyAm5rqg9xlawa78MObuBZ3yt4NoprOp 3KoMjMs8w7B8au1tklz5RWNeNsV5hXnjtt/DO1B/2vlQVtkUAOjMu+f1MXEHF2u5XSyn vMb3f1sGPVL69omYZXB+ReXlNnWolHv8hnwokcPptzdxUWUaKlNHUiiI4yHkVlMCRJ/D 6V/g== 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=tNt1KSmjanUl9qlsLqBmsIcJbd6mDyljsCUK8iiUjeA=; b=IqFUB+r/v8FmMK5R1FwedZ9jEdshHceSJkn69IG88l+fOAdi0PrDYD2D9Irb20ep53 pukd9hpcsJFPos5He57SD7rbvigSZoqV36uf7+CrmY9MuN8pguDAOfWme/sXjPRF20Ae jbjX+HFocEVNarsqSWUJOLZocurBZAYwxA7r+H2VWt37Hti7EM3QtGOO+vujOjfmojWu oMropcQNND+np7bBRZGN2OYJd3ypSpWzeQJPp+a88ZTPPPviBaOrl078IWwVHk2t4flY egwLq6k+MthVzCLzoP4ANQMQlzivMN/t564tl7KWnJt6PRBBnYpkELPOsR3OhcWiH0Nn rrHg== X-Gm-Message-State: AElRT7Ep4nDEtc4okf+SOHFFy93P2gJDmX0U0oZy+uz0LMVrxAtI0TvQ II/Y5GbT5ksYYMK7kf+rKp3qrg== X-Google-Smtp-Source: AIpwx4/WsR/128dbIA88FFNrwe22KsR9dkg94grXo2UjqqaiHkvOkrfXSuID8aAwVrZx/MjVvW7Rvg== X-Received: by 10.98.144.205 with SMTP id q74mr26672409pfk.55.1523209219268; Sun, 08 Apr 2018 10:40:19 -0700 (PDT) Received: from localhost.localdomain (softbank219203027033.bbtec.net. [219.203.27.33]) by smtp.googlemail.com with ESMTPSA id r76sm31750910pfl.24.2018.04.08.10.40.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Apr 2018 10:40:18 -0700 (PDT) From: tskd08@gmail.com To: linux-media@vger.kernel.org Cc: mchehab@s-opensource.com, Akihiro Tsukada , hiranotaka@zng.info Subject: [PATCH v3 1/5] dvb-frontends/dvb-pll: add tda6651 ISDB-T pll_desc Date: Mon, 9 Apr 2018 02:39:49 +0900 Message-Id: <20180408173953.11076-2-tskd08@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180408173953.11076-1-tskd08@gmail.com> References: <20180408173953.11076-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 patch adds a PLL "description" of Philips TDA6651 for ISDB-T. It was extracted from (the former) va1j5jf8007t.c of EarthSoft PT1, thus the desc might include PT1 specific configs. Signed-off-by: Akihiro Tsukada --- Changes since v2: - do not #define chip name constant Changes since v1: - use new style of specifying pll_desc of the tuner drivers/media/dvb-frontends/dvb-pll.c | 24 ++++++++++++++++++++++++ drivers/media/dvb-frontends/dvb-pll.h | 1 + 2 files changed, 25 insertions(+) diff --git a/drivers/media/dvb-frontends/dvb-pll.c b/drivers/media/dvb-frontends/dvb-pll.c index f7d444d09cf..e3894ff403d 100644 --- a/drivers/media/dvb-frontends/dvb-pll.c +++ b/drivers/media/dvb-frontends/dvb-pll.c @@ -550,6 +550,28 @@ static const struct dvb_pll_desc dvb_pll_tua6034_friio = { } }; +/* Philips TDA6651 ISDB-T, used in Earthsoft PT1 */ +static const struct dvb_pll_desc dvb_pll_tda665x_earth_pt1 = { + .name = "Philips TDA6651 ISDB-T (EarthSoft PT1)", + .min = 90000000, + .max = 770000000, + .iffreq = 57000000, + .initdata = (u8[]){ 5, 0x0e, 0x7f, 0xc1, 0x80, 0x80 }, + .count = 10, + .entries = { + { 140000000, 142857, 0xc1, 0x81 }, + { 170000000, 142857, 0xc1, 0xa1 }, + { 220000000, 142857, 0xc1, 0x62 }, + { 330000000, 142857, 0xc1, 0xa2 }, + { 402000000, 142857, 0xc1, 0xe2 }, + { 450000000, 142857, 0xc1, 0x64 }, + { 550000000, 142857, 0xc1, 0x84 }, + { 600000000, 142857, 0xc1, 0xa4 }, + { 700000000, 142857, 0xc1, 0xc4 }, + { 770000000, 142857, 0xc1, 0xe4 }, + } +}; + /* ----------------------------------------------------------- */ static const struct dvb_pll_desc *pll_list[] = { @@ -574,6 +596,7 @@ static const struct dvb_pll_desc *pll_list[] = { [DVB_PLL_SAMSUNG_TBDU18132] = &dvb_pll_samsung_tbdu18132, [DVB_PLL_SAMSUNG_TBMU24112] = &dvb_pll_samsung_tbmu24112, [DVB_PLL_TUA6034_FRIIO] = &dvb_pll_tua6034_friio, + [DVB_PLL_TDA665X_EARTH_PT1] = &dvb_pll_tda665x_earth_pt1, }; /* ----------------------------------------------------------- */ @@ -896,6 +919,7 @@ static const struct i2c_device_id dvb_pll_id[] = { {"tdee4", DVB_PLL_TDEE4}, {"dtt7520x", DVB_PLL_THOMSON_DTT7520X}, {"tua6034_friio", DVB_PLL_TUA6034_FRIIO}, + {"tda665x_earthpt1", DVB_PLL_TDA665X_EARTH_PT1}, {} }; diff --git a/drivers/media/dvb-frontends/dvb-pll.h b/drivers/media/dvb-frontends/dvb-pll.h index 7555407c2cc..973a66a82e2 100644 --- a/drivers/media/dvb-frontends/dvb-pll.h +++ b/drivers/media/dvb-frontends/dvb-pll.h @@ -30,6 +30,7 @@ #define DVB_PLL_TDEE4 18 #define DVB_PLL_THOMSON_DTT7520X 19 #define DVB_PLL_TUA6034_FRIIO 20 +#define DVB_PLL_TDA665X_EARTH_PT1 21 struct dvb_pll_config { struct dvb_frontend *fe;