From patchwork Tue Jun 25 08:04:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugen Hristev X-Patchwork-Id: 1121856 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-i2c-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=microchip.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=microchiptechnology.onmicrosoft.com header.i=@microchiptechnology.onmicrosoft.com header.b="Mb2/+7dw"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 45XzGQ2LYFz9s3C for ; Tue, 25 Jun 2019 18:04:46 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727944AbfFYIEp (ORCPT ); Tue, 25 Jun 2019 04:04:45 -0400 Received: from esa1.microchip.iphmx.com ([68.232.147.91]:54035 "EHLO esa1.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726419AbfFYIEp (ORCPT ); Tue, 25 Jun 2019 04:04:45 -0400 Received-SPF: Pass (esa1.microchip.iphmx.com: domain of Eugen.Hristev@microchip.com designates 198.175.253.82 as permitted sender) identity=mailfrom; client-ip=198.175.253.82; receiver=esa1.microchip.iphmx.com; envelope-from="Eugen.Hristev@microchip.com"; x-sender="Eugen.Hristev@microchip.com"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 mx a:ushub1.microchip.com a:smtpout.microchip.com a:mx1.microchip.iphmx.com a:mx2.microchip.iphmx.com include:servers.mcsv.net include:mktomail.com include:spf.protection.outlook.com ~all" Received-SPF: None (esa1.microchip.iphmx.com: no sender authenticity information available from domain of postmaster@email.microchip.com) identity=helo; client-ip=198.175.253.82; receiver=esa1.microchip.iphmx.com; envelope-from="Eugen.Hristev@microchip.com"; x-sender="postmaster@email.microchip.com"; x-conformance=spf_only Authentication-Results: esa1.microchip.iphmx.com; spf=Pass smtp.mailfrom=Eugen.Hristev@microchip.com; spf=None smtp.helo=postmaster@email.microchip.com; dkim=pass (signature verified) header.i=@microchiptechnology.onmicrosoft.com; dmarc=pass (p=none dis=none) d=microchip.com X-IronPort-AV: E=Sophos;i="5.63,415,1557212400"; d="scan'208";a="40294926" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 25 Jun 2019 01:04:44 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.87.152) by chn-vm-ex04.mchp-main.com (10.10.87.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 25 Jun 2019 01:04:53 -0700 Received: from NAM05-CO1-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.87.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Tue, 25 Jun 2019 01:04:53 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector1-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LIgaGxYEwUjArXVTQaBVKIZkFKtWXSFr5uRwjEQTCsc=; b=Mb2/+7dwkAknX6qvl/ryzlia+v2cs4D578FJWIvNwHxNKiGoOmpyvFr20rvqhTvZgidkvHXRAX60eVeLhbveCYfRk/tvJXC698PmMb/4MWNJWLg2IlLRlwyU+OpBL8t58gmK8AeR+DGI/36VL+L2s3IEwZh35AtrboR00bw/J2M= Received: from DM5PR11MB1242.namprd11.prod.outlook.com (10.168.108.8) by DM5PR11MB1289.namprd11.prod.outlook.com (10.168.103.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2008.16; Tue, 25 Jun 2019 08:04:42 +0000 Received: from DM5PR11MB1242.namprd11.prod.outlook.com ([fe80::6476:ace0:bf3a:322]) by DM5PR11MB1242.namprd11.prod.outlook.com ([fe80::6476:ace0:bf3a:322%9]) with mapi id 15.20.2008.017; Tue, 25 Jun 2019 08:04:42 +0000 From: To: , , , , , , , , , CC: Subject: [PATCH v2 0/9] i2c: at91: filters support for at91 SoCs Thread-Topic: [PATCH v2 0/9] i2c: at91: filters support for at91 SoCs Thread-Index: AQHVKyykOdofqrxHG0KAvE+qLlVUtQ== Date: Tue, 25 Jun 2019 08:04:41 +0000 Message-ID: <1561449642-26956-1-git-send-email-eugen.hristev@microchip.com> Accept-Language: ro-RO, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: VI1PR10CA0105.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:803:28::34) To DM5PR11MB1242.namprd11.prod.outlook.com (2603:10b6:3:14::8) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.7.4 x-originating-ip: [94.177.32.154] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 05e8f00e-dbfa-4578-5c88-08d6f943c6a6 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:DM5PR11MB1289; x-ms-traffictypediagnostic: DM5PR11MB1289: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 0079056367 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6029001)(376002)(136003)(39860400002)(366004)(396003)(346002)(189003)(199004)(6512007)(14444005)(53936002)(86362001)(110136005)(6486002)(6436002)(2201001)(316002)(14454004)(2906002)(478600001)(72206003)(66556008)(5660300002)(64756008)(66946007)(66476007)(66446008)(256004)(71200400001)(71190400001)(36756003)(107886003)(305945005)(7736002)(6116002)(25786009)(73956011)(4326008)(3846002)(68736007)(386003)(52116002)(2501003)(99286004)(6506007)(486006)(476003)(2616005)(8676002)(66066001)(186003)(26005)(102836004)(50226002)(81166006)(8936002)(81156014)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR11MB1289; H:DM5PR11MB1242.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: microchip.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: h9pL9MvsYVBUpdcP05WD8sjIDrsPmhq9MXZUJzK4wWzlfCjYTyP0Dm8vL0HAZFgxXyR/nEXs3Tiy3NJ9Kitb71T//nsrjXdGvg7aUGmaSs40oTXJCqPekHECLNaeARmU1bwIl7FU13NhshPnESAO440C/S2oVCxgFfm3rclmGMJ9Lp+ENw4Yhe8snnItOOVA4nt8ffYUZsnFHQTvHriXUgieWx01EbAamSCzs0cFO3SdC6X0jN4NgSLjen89MeX9dL9CDRLF/JE7IZwO0Z+EGiM2RtiEcI8jE0xvRZ6z0r1o1JRVOSuZ/cY6FtC6sWbAM5CNEMmzoooDTLiZnhxcRFqBCIft8CGchEJKfr1CP6JSMi9GH0SNBDzsGilaRoSS7avQ/UFPTo2tOwza21rm/hpfFTYWBrgpJdI0qyG5/X0= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 05e8f00e-dbfa-4578-5c88-08d6f943c6a6 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Jun 2019 08:04:42.0989 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: eugen.hristev@microchip.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR11MB1289 Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org From: Eugen Hristev This series adds the support for i2c filters: analog and digital filter digital filter is available for sama5d4 an advanced digital filter that allows threshold configuration is available for sama5d2 and sam9x60 analog filtering is available for sama5d2 and sam9x60 This series also adds platform data for sam9x60 to the driver In this series version, the enablement of the filters is via Device tree, as requested by Alexandre Belloni. The PCB/board specific noise is hardware dependent. The platform data properties keep the same pattern : set for each SoC true/false value as it is done for previous properties. Changes in v2: - added device tree bindings and support for enable-ana-filt and enable-dig-filt - added the new properties to the DT for sama5d4_xplained/sama5d2_xplained Eugen Hristev (9): dt-bindings: i2c: at91: add new compatible i2c: at91: add new platform support for sam9x60 dt-bindings: i2c: at91: add binding for enable-dig-filtr i2c: at91: add support for digital filtering i2c: at91: add support for advanced digital filtering dt-bindings: i2c: at91: add binding for enable-ana-filt i2c: at91: add support for analog filtering ARM: dts: at91: sama5d2_xplained: add analogic and digital filter for i2c ARM: dts: at91: sama5d4_xplained: add analogic filter for i2c Documentation/devicetree/bindings/i2c/i2c-at91.txt | 11 ++++++- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 4 +++ arch/arm/boot/dts/at91-sama5d4_xplained.dts | 1 + drivers/i2c/busses/i2c-at91-core.c | 38 ++++++++++++++++++++++ drivers/i2c/busses/i2c-at91-master.c | 24 ++++++++++++++ drivers/i2c/busses/i2c-at91.h | 12 +++++++ 6 files changed, 89 insertions(+), 1 deletion(-)