Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp476392ybm; Mon, 20 May 2019 20:50:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFM1zp5do4ovEkVA4zGKaCdnNcNC/z1C81iuW0OOJ7dHH2YY8vi0GXOe8YIMGRPHHcoPRP X-Received: by 2002:a17:902:a70f:: with SMTP id w15mr9757286plq.222.1558410628821; Mon, 20 May 2019 20:50:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558410628; cv=none; d=google.com; s=arc-20160816; b=U5wcT5gnjSqIDdxvaDZkCG6QWyt1YONDvB1FvUihyQVnc9xikf/rvhPkHqwSWNXXq7 gUSfMzgc6FfDYTbHj5AuXVRX6lykxObXTCxERjVaAgm29yVh+5pNJy94xzCQ6RrZ9iSf lwSg0nTIyIB8WZbJL0TIBL2fCfRojxL6mogGI4hce0iR4Ar/7K51RWbFiY5fKBIgwW9J ZgtRf9t4oibsW2pT74JSpawZwQh2vZhUpyIYX7NOFjWC7RwntqVByTJVCaUQGJnUPNx8 3X4c6sHAD+1/aWvgyDKlkMozptJylpdGopCrIfOxwP7iBujSJXm0ZPxPEhSUcQqTro21 F6UQ== 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:dkim-signature; bh=1VJfytKtR9301TV4yIigfBHhzzdmP/kCJaWly5NeECw=; b=uQEf44AlXSMVzy3Dx3G2gkoFisXCgT7SeCasibQcU0bPZ3grE/1McbeUqcHFhtc7nj vk0ZuMYpcPoyssyVspG+tPK15oXTYeqoOZCExgJLO1xpeLFRfcwnL08L5rGf6UqjCiCV +L9+L1nTJYN81enZLO1i/+xR14FK9rcHXro4clowNnMm6loYWw0JuigdxmCPSwIf6t+C mBZYMTqVYNYfJMd3TnYG+VXz4PyvgLBZzrwVZvE0kquDIWLTABnfoLBOT94oCMEzYvkE PdZRtzqdjREjKEyWojrYVuppfE1wCc0DHggSHysN2qbTzkp7SjdCKYZ91Ves72d4oXuK PFow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b="Tip/FqOi"; 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 d35si9946329pla.419.2019.05.20.20.50.12; Mon, 20 May 2019 20:50:28 -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; dkim=pass header.i=@sifive.com header.s=google header.b="Tip/FqOi"; 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 S1727371AbfEUDtG (ORCPT + 99 others); Mon, 20 May 2019 23:49:06 -0400 Received: from mail-vk1-f194.google.com ([209.85.221.194]:34287 "EHLO mail-vk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726348AbfEUDtG (ORCPT ); Mon, 20 May 2019 23:49:06 -0400 Received: by mail-vk1-f194.google.com with SMTP id d7so4455744vkf.1 for ; Mon, 20 May 2019 20:49:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1VJfytKtR9301TV4yIigfBHhzzdmP/kCJaWly5NeECw=; b=Tip/FqOiERotBvWP2/5JdfK5MKgkhbOetw5IpnGG6GB1rCsnDF4eLROn4GeoYTMCSg dEugoOTBsKD2q3zQZ3GPRZMxCRNPWm7AA811r/wN7dy3L+ZGu04kVRLLfu3zStBqr+EV HSiqCWR2bmAQpBSUDlTc/RiYF+ctH2wm1aFsi5c3JJ5XrpNTgyjQHbYDOF9r6Va9z6YM N94YjJOiv2urqeIs7ORU0FStujqPeKkLb/QcVTJZgoPj7Z4I8GExrb25Ba0XaA1A0KiE uztqjl3nwthDFJ0BseEzxoCQ7073q0I1Mi7pPu3O6lAb5EdhVPGK+jC/nitcmkHtsqdr j2jg== 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=1VJfytKtR9301TV4yIigfBHhzzdmP/kCJaWly5NeECw=; b=fIwKrqjqw5b7E7nv4I8GqEmJrLyFeq0zPw0tOnCg8mXKvnukpNQcxh54kmvjNlAp1j Sb9DfuWrk6CwozpFMy1v7ljeyoncGjsc2ZCZmQZoekw5AnbjbzI5FJ1day09DXl7d/hg sU5OPARgrItVV3CVAbEhauzsD1u1WwWaRKbg8ZwIvdPd3qr/AxqSYdtpstcP4eXGZkfY ekQ0c/QCWPq8vwg7dYRRdtvpZEBIDctSb2EgPJJu6eIF3TRnnB8ZX3eP4oDsI9mQEG/5 pR78ltm7qzzUNGxLheMrlcN8vYyQSe1yrDxn2ilKKk/a6JZVaBlXaGF09kw19CMXuivm czNw== X-Gm-Message-State: APjAAAWGarNdLZc49d1Syj83UOoyfJxzSlaPRrQ0j/v3qct/JCTvJHFi QVVPeUn2yH7/+4g8NvVfgRe6ojn0KKYEfxrgEGYOsA== X-Received: by 2002:a1f:ae4b:: with SMTP id x72mr9339745vke.10.1558410545214; Mon, 20 May 2019 20:49:05 -0700 (PDT) MIME-Version: 1.0 References: <1558361478-4381-1-git-send-email-sagar.kadam@sifive.com> <1558361478-4381-2-git-send-email-sagar.kadam@sifive.com> In-Reply-To: From: Sagar Kadam Date: Tue, 21 May 2019 09:18:53 +0530 Message-ID: Subject: Re: [PATCH v5 1/3] dt-bindings: i2c: extend existing opencore bindings. To: Rob Herring Cc: Mark Rutland , Andrew Lunn , peter@korsgaard.com, devicetree@vger.kernel.org, Palmer Dabbelt , "linux-kernel@vger.kernel.org" , Linux I2C , Paul Walmsley , linux-riscv@lists.infradead.org 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 Hi Rob, On Mon, May 20, 2019 at 8:07 PM Rob Herring wrote: > > On Mon, May 20, 2019 at 9:12 AM Sagar Shrikant Kadam > wrote: > > > > Add FU540-C000 specific device tree bindings to already > > available i2-ocores file. This device is available on > > HiFive Unleashed Rev A00 board. Move interrupt and interrupt > > parents under optional property list as these can be optional. > > > > The FU540-C000 SoC from sifive, has an Opencore's I2C block > > reimplementation. > > > > The DT compatibility string for this IP is present in HDL and available at. > > https://github.com/sifive/sifive-blocks/blob/master/src/main/scala/devices/i2c/I2C.scala#L73 > > > > Signed-off-by: Sagar Shrikant Kadam > > --- > > Documentation/devicetree/bindings/i2c/i2c-ocores.txt | 7 ++++++- > > 1 file changed, 6 insertions(+), 1 deletion(-) > > > > diff --git a/Documentation/devicetree/bindings/i2c/i2c-ocores.txt b/Documentation/devicetree/bindings/i2c/i2c-ocores.txt > > index 17bef9a..b73960e 100644 > > --- a/Documentation/devicetree/bindings/i2c/i2c-ocores.txt > > +++ b/Documentation/devicetree/bindings/i2c/i2c-ocores.txt > > @@ -2,8 +2,11 @@ Device tree configuration for i2c-ocores > > > > Required properties: > > - compatible : "opencores,i2c-ocores" or "aeroflexgaisler,i2cmst" > > + "sifive,fu540-c000-i2c" or "sifive,i2c0". > > It's not an OR because both are required. Please reformat to 1 valid > combination per line. Yes, will rectify it in V6. > > + for Opencore based I2C IP block reimplemented in > > + FU540-C000 SoC.Please refer sifive-blocks-ip-versioning.txt > > + for additional details. > > - reg : bus address start and address range size of device > > -- interrupts : interrupt number > > - clocks : handle to the controller clock; see the note below. > > Mutually exclusive with opencores,ip-clock-frequency > > - opencores,ip-clock-frequency: frequency of the controller clock in Hz; > > @@ -12,6 +15,8 @@ Required properties: > > - #size-cells : should be <0> > > > > Optional properties: > > +- interrupt-parent: handle to interrupt controller. > > Drop this. interrupt-parent is implied. > Sure, will exclude it in v6. > > +- interrupts : interrupt number. > > - clock-frequency : frequency of bus clock in Hz; see the note below. > > Defaults to 100 KHz when the property is not specified > > - reg-shift : device register offsets are shifted by this value > > -- > > 1.9.1 > > > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv Thanks, Sagar