Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4550684yba; Mon, 29 Apr 2019 23:41:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqz1J4qAsMVp0bgTpBKqxSfNIdx+SJtPT2836SDBR/aqnrgi2nPKPdbrweLPyhCWrrJHJTbX X-Received: by 2002:a62:5286:: with SMTP id g128mr163971pfb.226.1556606484609; Mon, 29 Apr 2019 23:41:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556606484; cv=none; d=google.com; s=arc-20160816; b=hH+LirIR+2hYIk04OggwQrwN8uxAnLGHhxR6NQkm02iEcpbFsqD4uNV3cwQFSl9kGs d82dMPpjCH1qKNNcuOwsp/FGgBE7+u9e8EVGyXKKok+JY89hX/5RLH22aRsZ7lLooHqc S86Y8mTorvaI6YDQG8eyMSpQkVDUPetvUj+1uEQbDkXJmopCIeieD9XWvxyub6WKHGzX RoUKsQIeXzyJVBOD2nEbJfjaiU6XRmkufwongD6d48nZ+IFAjR2iEpboOTnSnsUqIgE4 1AAqctCkQKWd019x85dTOlzi7mCtZXscX4owOq3AdOOeWFtTegG1wMAfMoRBoBjpDeLl ctJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=GnProg3qB9HMB8rtnCMk/qYj4T7FL3aXuN7Umj6v3a4=; b=qCpocC6XzEb+MNPAaVCsNwCEVeE0AaduDATD5mUoyqa+vsWI/V8nhjHcxHwrTpGD4z HvFgKUkWrfUf6ZvItmcJ7EXBvLB6QfxZ5+vJteUADIE5Ewa2T12wqWY6ghFt+AkwOENJ VPMz1/BvmqHWvbdmZW56dFz/EOjno/RsQQmXydn6DD25vF1NVOjVxXg8FjIY1JeuB3G5 YMep6u9NQ9hiIzsAHUNfyjU4T9K3ipECbovivmIQ9VylfgqVCM442s7kVGRQkB33MigS GN7osxsG2fcIrpl/1sxWSwfjoaIflPnGwl8gDq2uR78jZBM51MW/4pnjtE4yx8NguZW3 83gA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f62si35337719plb.339.2019.04.29.23.41.08; Mon, 29 Apr 2019 23:41:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726514AbfD3Gic (ORCPT + 99 others); Tue, 30 Apr 2019 02:38:32 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:50449 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725906AbfD3Gic (ORCPT ); Tue, 30 Apr 2019 02:38:32 -0400 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hLMPK-00082m-6Z; Tue, 30 Apr 2019 08:38:26 +0200 Received: from ukl by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1hLMPG-0001N4-Gz; Tue, 30 Apr 2019 08:38:22 +0200 Date: Tue, 30 Apr 2019 08:38:22 +0200 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Chuanhua Han Cc: robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, s.hauer@pengutronix.de, leoyang.li@nxp.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, kernel@pengutronix.de, linux-imx@nxp.com, festevam@gmail.com, wsa+renesas@sang-engineering.com, eha@deif.com, linux@rempel-privat.de, sumit.batra@nxp.com, l.stach@pengutronix.de, peda@axentia.se Subject: Re: [PATCH 1/3] dt-bindings: i2c: add optional mul-value property to binding Message-ID: <20190430063822.dk5nerqa2m36ua6x@pengutronix.de> References: <20190430043242.29687-1-chuanhua.han@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190430043242.29687-1-chuanhua.han@nxp.com> User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 30, 2019 at 12:32:40PM +0800, Chuanhua Han wrote: > NXP Layerscape SoC have up to three MUL options available for all > divider values, we choice of MUL determines the internal monitor rate > of the I2C bus (SCL and SDA signals): > A lower MUL value results in a higher sampling rate of the I2C signals. > A higher MUL value results in a lower sampling rate of the I2C signals. > > So in Optional properties we added our custom mul-value property in the > binding to select which mul option for the device tree i2c controller > node. > > Signed-off-by: Chuanhua Han > --- > Documentation/devicetree/bindings/i2c/i2c-imx.txt | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/Documentation/devicetree/bindings/i2c/i2c-imx.txt b/Documentation/devicetree/bindings/i2c/i2c-imx.txt > index b967544590e8..ba8e7b7b3fa8 100644 > --- a/Documentation/devicetree/bindings/i2c/i2c-imx.txt > +++ b/Documentation/devicetree/bindings/i2c/i2c-imx.txt > @@ -18,6 +18,9 @@ Optional properties: > - sda-gpios: specify the gpio related to SDA pin > - pinctrl: add extra pinctrl to configure i2c pins to gpio function for i2c > bus recovery, call it "gpio" state > +- mul-value: NXP Layerscape SoC have up to three MUL options available for > +all I2C divider values, it describes which MUL we choose to use for the driver, > +the values should be 1,2,4. Indention is broken. I wonder why this needs to be configurable on a per-machine/device level. What is the trade-off? Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |