Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3331351ybl; Sun, 11 Aug 2019 21:20:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqwijQvw/dTnqeRCuwi4mZk7DYYkTz9V9y1x6pVD8+hC/Dvr87crNPSW51oW3N53AaCG3Dpb X-Received: by 2002:a17:90a:d3d6:: with SMTP id d22mr931740pjw.5.1565583620722; Sun, 11 Aug 2019 21:20:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565583620; cv=none; d=google.com; s=arc-20160816; b=nCDiEMdL6irHC45JQ48prVQ92sE75a2cSfPNdQualupxueudstxIzWGWZPji9lDPKZ 9aN5j6wsL4yQTn93LyFGsXJWeUTtR+8onrS3vHAIOve+D8NvuiJiOj5EsfVNU7hJmbYK OYN9CPiQWpjcn1+d0IMMH38RQNFYqfamhLEaMxm7oSvxh5wrGSvJixA9NCDRgZbvS5rs AomFeb7gqevMy+mDb7LtnAJnPmF3/Qqx4vokeUcFUYcGduQLd8IPvaU8bPZb7H5Prtu8 m5bwz0nR9dXCnlb0QIua3mG8f/BjutSH2tXCs+p8V+bnTL8MNJZYNsr+6mp4oXh1KLhp f4FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=Z4s3JUibN+WGVLqaHsLHxXIi1D8VvPq6c/60ITp5nIA=; b=X+4ToG/537hbn4Txe++4vy46KDJ023IpgjfPIAbS9KLL3j9NwivLRQ8de8EKLeIHNi fwzv5isKG5tlSXytRXLzS88Iqnnwi27guXFKrRzCw8ct3kfz15CXgcL7RYEvQij/eXTY t2jXUfPPWW6UzOUqLhf1wQb+p/8Tr1kjXhV8TkkoozSsHlFSAcMZDR0zmD9yef63D1bh jNTm0RgtZ4bARL70NXP1jL7Ys51yO0ac4gzmeDKwoifc4J6IWY8Oc7+4qJ48Wph+YN9j 7ffdcJt3PWkjt5MK1BywtW+/LQ52Jnkv74pPzq2PGVe9111MHB0Tnx4VRC/u3BI80ioB pSgw== 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 71si56643439plf.156.2019.08.11.21.20.04; Sun, 11 Aug 2019 21:20:20 -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 S1726126AbfHLETb (ORCPT + 99 others); Mon, 12 Aug 2019 00:19:31 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:35121 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725648AbfHLETb (ORCPT ); Mon, 12 Aug 2019 00:19:31 -0400 Received: by mail-ed1-f68.google.com with SMTP id w20so102527491edd.2; Sun, 11 Aug 2019 21:19:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Z4s3JUibN+WGVLqaHsLHxXIi1D8VvPq6c/60ITp5nIA=; b=Cg9ho7/QtclAWMDb+MkWwr7n4WkOcYWYeBfHiq4Zw4e/Tv2KtwmX3tSbu7LzSpFvw5 0NUmtnYWYQvyrPsSUBrLPyYeDOaWR3Rp02CA1fEYrI2/6HweNXliGC1jMd2IXU2+UTz3 b9xsGM2Jq/eFkkLC9lzBqii1DkPQad8xs0+0mkEvQPQawNFQu5bCsXOhCmfvxmOVz4nP oWzZSy/z0eQd7pABb4PrOsxt8JMn+ipLZT5/we6mwBKRViA76hRddwI4evg5yWbUb53f i+QT2u4EhHpZr66Eafz/OVrMudd9zzDCf/JTKsykaC6L6DjU6O1biqo62fVycokIhpwp y4NA== X-Gm-Message-State: APjAAAWRCaRZ7eYYrrWtNwEoO+bY8+KF5N79+MHdnyKiJgehE/mwQEzW IjwitIYn7Nvm2oq9DTshWNTLGF8dUbM= X-Received: by 2002:a17:906:eb8d:: with SMTP id mh13mr18211724ejb.98.1565583569223; Sun, 11 Aug 2019 21:19:29 -0700 (PDT) Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com. [209.85.128.46]) by smtp.gmail.com with ESMTPSA id y12sm16978775ejq.40.2019.08.11.21.19.28 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Sun, 11 Aug 2019 21:19:28 -0700 (PDT) Received: by mail-wm1-f46.google.com with SMTP id e8so9733490wme.1; Sun, 11 Aug 2019 21:19:28 -0700 (PDT) X-Received: by 2002:a05:600c:292:: with SMTP id 18mr25156704wmk.51.1565583568180; Sun, 11 Aug 2019 21:19:28 -0700 (PDT) MIME-Version: 1.0 References: <20190811090503.32396-1-bshah@kde.org> <20190811090503.32396-3-bshah@kde.org> In-Reply-To: <20190811090503.32396-3-bshah@kde.org> From: Chen-Yu Tsai Date: Mon, 12 Aug 2019 12:19:17 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/2] arm64: allwinner: h6: enable i2c0 in PineH64 To: Bhushan Shah Cc: Icenowy Zheng , Maxime Ripard , Rob Herring , Mark Rutland , linux-arm-kernel , devicetree , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 11, 2019 at 5:05 PM Bhushan Shah wrote: > > i2c0 bus is exposed by PI-2 BUS in the PineH64, model B. > > Signed-off-by: Bhushan Shah > --- > arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts > index 684d1daa3081..a184361bc10d 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts > @@ -160,6 +160,14 @@ > vcc-pg-supply = <®_aldo1>; > }; > > +&i2c0 { > + status = "okay"; We don't enable interfaces that are exposed on the extension headers by default. Instead we let the users enable it themselves, by modifying the device tree either with overlays or through U-boot commands. Please set this to "disabled", and add a comment mentioning that it is on the PI-2 BUS. Having it explicitly listed in the source serves as a pointer to people looking at how to enable stuff. ChenYu > +}; > + > +&i2c0_pins { > + bias-pull-up; > +}; > + > &r_i2c { > status = "okay"; > > -- > 2.17.1 >