Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5714199ybl; Tue, 10 Dec 2019 10:16:50 -0800 (PST) X-Google-Smtp-Source: APXvYqyUOLi1kxvJrFWj2EU6JQlNLWC4WDg+/amymaQwqoLSZWzud1sxTtZnaJw0LiFDoNW0GWLp X-Received: by 2002:aca:4c15:: with SMTP id z21mr178445oia.12.1576001810332; Tue, 10 Dec 2019 10:16:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576001810; cv=none; d=google.com; s=arc-20160816; b=aCXqFuZgtNWyk8swrmYuTf0eENZW+CM+L2Bjhzp0t3uYIvvhfKHyrvXXHA899zXbhl JQs1RrKemeCseBa1+rwT4dAK6xkI4fCmTvF48xPOpFFKj2ou3sFqeEnkNDu/RFrBpwvX Wbu+PQkA1Vjzg77ARc5o3oN8BvZ1cwH3D0aQO2RMi89fXSMawoAV3FxZOpMA8RY2mBHI oEjiDLUmBUARPOueHVgwm8Z14ABr9Uz97U69zY7TDCJqoDw+6NHPra+LksI/J2A1VWqw Vb1jAAiNJ0iuOzEGAplTK7JTaJr5hCdmPmvoYQpfKEzSnpPrfSXng80VE1S3pxgoyvRl Ggww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=kfLit8LCSQ20powxSKYWCP8N8M+8XWObHNOV3Cp5ZFE=; b=Lag9TYzqvHTP04S5a8tXVq6tTPqCSGCB3Knrvw62fjH1hAEv+1Ha7Q7bMYwx0SLQpP ORRsSHZHu0gP/RDxIXEDhJ+QDvc+rBHwpvS4PpQ4eknu9I25uZIli3OKoxTGKfhk9Oqz F5dx8ssOypgy6RJcmKTQA36qC5/rd35w/wGLiLUUOkYKwJQv6YujPpiTOipgBqQ+en/v MeBns1HeIq3CdJcjcAb5RcezNo8MRXBvDiQP8L6ZrREyWHedtEF72Y/G/TrRCgQcztCU UceU+8/AiUMj32DrknM5KpWPLNxE7H+0fb1tg233R9H37Y6mEvs7/uXC/VCy3OnqFx7I 84JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=FwUBWi9X; 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 i25si2308294oii.259.2019.12.10.10.16.37; Tue, 10 Dec 2019 10:16:50 -0800 (PST) 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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=FwUBWi9X; 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 S1727784AbfLJSPs (ORCPT + 99 others); Tue, 10 Dec 2019 13:15:48 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:36451 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726771AbfLJSPs (ORCPT ); Tue, 10 Dec 2019 13:15:48 -0500 Received: by mail-pg1-f195.google.com with SMTP id k3so8626368pgc.3 for ; Tue, 10 Dec 2019 10:15:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=kfLit8LCSQ20powxSKYWCP8N8M+8XWObHNOV3Cp5ZFE=; b=FwUBWi9X6lnjaJWijeU8P6xQR2Yp703scW9SLcH8NgPLyKR/nUa8y4eOqMcVaRTSk4 tcvmrhzkqYkS8gpG+GVfApk07EkDCKXveshyGFCdzPWWOsUOOu5tV3DS3LXnxD3QRB+m bZrv45p67LNVj/kJTeKbtMT3wdS3ewyDaRbSiw+weCRaMrSD2ttdqr1VKNOnHk0ewkTL NsDbcRNLkRIk8bPKhl3CylU/tCFIocywzPTKj/ZlQBT0Tl6XHmo6DECLYUYfUHKvAkai u1igvJdm9ZujDZNoRpz0k6oiOYkjyr/mxpOEQr/iw0EFosNHKmcKqsLwNrwSMw0hWN6M hIgg== 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:in-reply-to:references:date :message-id:mime-version; bh=kfLit8LCSQ20powxSKYWCP8N8M+8XWObHNOV3Cp5ZFE=; b=PG/xAGtMYWqw1BmakXEru53j6SbKvGo5iEPNdu9eUMYOeL++Dov02+m2vIQAbC0ktz fo2vM0ZGuoD9EsvItrJ7aymZaJTeOjIJfAJjy4Go121J6lUmzQECxWZdgw3AUT2pN2gp lkh03L1YuhfPqj30v+/y8KiMGZQjBfESUta3eJR2kOSwTXhrw26iVlgJnnsklSbHmDye iSTMBYt+DvTlv6E3U4PRxBttbGoU5/9vGMYL5jC+DATRVTSNngpLq/adk6om4RDKtDPY WnL3qS+NPH6BugOZy3ptr0hNQkm4v1wzhXeqaGh4WtvOfWNXlPg/SYBM4ScDgbgOjrTu qAyA== X-Gm-Message-State: APjAAAUOtBFZSxpwVn9dHl45jZDVfDFJZTauU1yqPb7f0LHqnCzEfQQd cemOhoexILWeX99CFD3ZXObgJg== X-Received: by 2002:aa7:9197:: with SMTP id x23mr37703857pfa.163.1576001747315; Tue, 10 Dec 2019 10:15:47 -0800 (PST) Received: from localhost (c-71-197-186-152.hsd1.wa.comcast.net. [71.197.186.152]) by smtp.gmail.com with ESMTPSA id 17sm4363066pfv.142.2019.12.10.10.15.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Dec 2019 10:15:46 -0800 (PST) From: Kevin Hilman To: Jian Hu , Jerome Brunet , Neil Armstrong Cc: Rob Herring , Martin Blumenstingl , Michael Turquette , Wolfram Sang , Mark Rutland , Jianxin Pan , linux-amlogic@lists.infradead.org, linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH] arm64: dts: meson-a1: add I2C nodes In-Reply-To: References: <20191202111253.94872-1-jian.hu@amlogic.com> <7hsgltqfdx.fsf@baylibre.com> Date: Tue, 10 Dec 2019 10:15:45 -0800 Message-ID: <7hblsgqc6m.fsf@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jian Hu writes: > Hi Kevin > > Thanks for your review > > On 2019/12/10 6:54, Kevin Hilman wrote: >> Hi Jian, >> >> Jian Hu writes: >> >>> There are four I2C controllers in A1 series, >>> Share the same comptible with AXG.The I2C nodes >>> depend on pinmux and clock controller. >>> >>> Signed-off-by: Jian Hu >>> --- >>> arch/arm64/boot/dts/amlogic/meson-a1.dtsi | 149 ++++++++++++++++++++++ >>> 1 file changed, 149 insertions(+) >>> >>> diff --git a/arch/arm64/boot/dts/amlogic/meson-a1.dtsi b/arch/arm64/boot/dts/amlogic/meson-a1.dtsi >>> index eab2ecd36aa8..d0a73d953f5e 100644 >>> --- a/arch/arm64/boot/dts/amlogic/meson-a1.dtsi >>> +++ b/arch/arm64/boot/dts/amlogic/meson-a1.dtsi >>> @@ -16,6 +16,13 @@ >>> #address-cells = <2>; >>> #size-cells = <2>; >>> >>> + aliases { >>> + i2c0 = &i2c0; >>> + i2c1 = &i2c1; >>> + i2c2 = &i2c2; >>> + i2c3 = &i2c3; >>> + }; >>> + >>> cpus { >>> #address-cells = <2>; >>> #size-cells = <0>; >>> @@ -117,6 +124,46 @@ >>> }; >>> }; >>> >>> + i2c0: i2c@1400 { >>> + compatible = "amlogic,meson-axg-i2c"; >>> + reg = <0x0 0x1400 0x0 0x24>; >> >> The AXG DT files use 0x20 for the length. You are using 0x24. I don't >> see any additional registers added to the driver, so this doesn't look right. > In fact, For G12 series and A1, the length should be 0x24. A new > register is added, And it is for IRQ handler timeout. If the > transmission is exceeding a limited time, it will abort the > transmission.Now the function is not used, There is completion to deal > the timeout in the driver. I will set the length 0x20 becouse of the new > register is not used. Yes, we can extend it to 0x24 when support for the new register is added, because that will mean adding a new compatible string also. >> >>> + interrupts = ; >>> + #address-cells = <1>; >>> + #size-cells = <0>; >>> + clocks = <&clkc_periphs CLKID_I2C_M_A>; >>> + status = "disabled"; >>> + }; >>> + >>> + i2c1: i2c@5c00 { >>> + compatible = "amlogic,meson-axg-i2c"; >>> + reg = <0x0 0x5c00 0x0 0x24>; >>> + interrupts = ; >>> + #address-cells = <1>; >>> + #size-cells = <0>; >>> + clocks = <&clkc_periphs CLKID_I2C_M_B>; >>> + status = "disabled"; >>> + }; >>> + >>> + i2c2: i2c@6800 { >>> + compatible = "amlogic,meson-axg-i2c"; >>> + reg = <0x0 0x6800 0x0 0x24>; >>> + interrupts = ; >>> + #address-cells = <1>; >>> + #size-cells = <0>; >>> + clocks = <&clkc_periphs CLKID_I2C_M_C>; >>> + status = "disabled"; >>> + }; >>> + >>> + i2c3: i2c@6c00 { >>> + compatible = "amlogic,meson-axg-i2c"; >>> + reg = <0x0 0x6c00 0x0 0x24>; >>> + interrupts = ; >>> + #address-cells = <1>; >>> + #size-cells = <0>; >>> + clocks = <&clkc_periphs CLKID_I2C_M_D>; >>> + status = "disabled"; >>> + }; >>> + >>> uart_AO: serial@1c00 { >>> compatible = "amlogic,meson-gx-uart", >>> "amlogic,meson-ao-uart"; >>> @@ -171,3 +218,105 @@ >>> #clock-cells = <0>; >>> }; >>> }; >>> + >>> +&periphs_pinctrl { >>> + i2c0_f11_pins:i2c0-f11 { >>> + mux { >>> + groups = "i2c0_sck_f11", >>> + "i2c0_sda_f12"; >>> + function = "i2c0"; >>> + bias-pull-up; >>> + drive-strength-microamp = <3000>; >> >> Can you also add some comment to the changelog about the need for >> drive-strength compared to AXG. > > OK, Drive strength function is added for GPIO pins from G12 series. > So does A1 series. Yes, that's what I assumed. Please add that to the changelog as one of the new features in A1 compared to AXG. Thanks, Kevin