Message ID | 20221128130025.23184-2-zhuyinbo@loongson.cn |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp5654957wrr; Mon, 28 Nov 2022 05:11:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf4IWz16UyxmlyuyM76iHkCic3ov30gzSswhQE2EV4p2GvZRsmj9P0DTn2QzCSLh+On7bLU3 X-Received: by 2002:a17:906:32d9:b0:7ae:31a0:5727 with SMTP id k25-20020a17090632d900b007ae31a05727mr27809807ejk.540.1669641112147; Mon, 28 Nov 2022 05:11:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669641112; cv=none; d=google.com; s=arc-20160816; b=jFO8XnIwCtFf5oUM01I7AZa1mk66wineX5Jb4aBCVk45ouY0haZkM6Iv9x74oglTow rXwx9oXoAWWtxAKcD0QwppbRzzw1rDIl1EwpZOV9l8Ie6nM1m7wOiVRQ7pK0/ZN0DsY4 zQTAvn2RKFufi5ByJro7Nt92+x+YPinAegPc1R1gkhB+QJmL4G4GGjK9WnO6+eP+kKrx xbn90XOgVPM3Q39c0edZKcubRroQBRF8RUHAZTDfazp/rKPny4WthG5T+ZzHEpq8JvLQ 0Anl5oYWjjUDl5mwUPOekbdmxninQDDG93jOEgn5m6H5vL6reGykyNB8U6x9JuzD8BQC AiGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=sSaigJUUS8QR1Zeqo66OzLqwgcI39AEArHKqm6Iccro=; b=AVd7utgzJIQtsnsXJZCtI79z4GlGuLrSu0glhyvbBIdY1O3s2Nld4O7DKhL1o+PLel N9JJfhbI5mnLZarzebEoYXAP1pxUpO+vwCQbSgfmbqn1sTgO386VKSGsPBwyZqM51nnw ZspHMA7HZORw1MXBanRgvy0s6z3pQ2SGSAGjHSaZS7Xpbg1IxnJKa2WjtsSVYHyaR71v iriIdCBgbOkvHprX9mERHq9Zp7m3ar8gZuhJDVp6jV40+Dwg0N76ns5yWrTsyLJnt7VJ XHwlQDWyzk9CHe6wvO6fZzCpKxvtWIuTwrl4EfReyHXZ1l5XqEsnsH5W9R7t4ZSJpqo8 /3yw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nc13-20020a1709071c0d00b007826de24087si10334709ejc.228.2022.11.28.05.11.19; Mon, 28 Nov 2022 05:11:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231472AbiK1NAq (ORCPT <rfc822;gah0developer@gmail.com> + 99 others); Mon, 28 Nov 2022 08:00:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231184AbiK1NAl (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 28 Nov 2022 08:00:41 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E4506FD32; Mon, 28 Nov 2022 05:00:37 -0800 (PST) Received: from loongson.cn (unknown [10.180.13.64]) by gateway (Coremail) with SMTP id _____8Bxnuv0sIRjgrEBAA--.4245S3; Mon, 28 Nov 2022 21:00:36 +0800 (CST) Received: from localhost.localdomain (unknown [10.180.13.64]) by localhost.localdomain (Coremail) with SMTP id AQAAf8DxPuLqsIRjO1kdAA--.9042S3; Mon, 28 Nov 2022 21:00:35 +0800 (CST) From: Yinbo Zhu <zhuyinbo@loongson.cn> To: Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Wolfram Sang <wsa@kernel.org>, Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Florian Fainelli <f.fainelli@gmail.com>, Jarkko Nikula <jarkko.nikula@linux.intel.com>, Jean Delvare <jdelvare@suse.de>, William Zhang <william.zhang@broadcom.com>, Conor Dooley <conor.dooley@microchip.com>, Jan Dabros <jsd@semihalf.com>, Tharun Kumar P <tharunkumar.pasumarthi@microchip.com>, Phil Edworthy <phil.edworthy@renesas.com>, Sam Protsenko <semen.protsenko@linaro.org>, Tyrone Ting <kfting@nuvoton.com>, Philipp Zabel <p.zabel@pengutronix.de>, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Yinbo Zhu <zhuyinbo@loongson.cn> Cc: Rob Herring <robh@kernel.org> Subject: [PATCH v2 2/2] dt-bindings: i2c: add loongson i2c Date: Mon, 28 Nov 2022 21:00:25 +0800 Message-Id: <20221128130025.23184-2-zhuyinbo@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20221128130025.23184-1-zhuyinbo@loongson.cn> References: <20221128130025.23184-1-zhuyinbo@loongson.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8DxPuLqsIRjO1kdAA--.9042S3 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoW7uF15Xw48WFy7Jr17Aw45trb_yoW8tr43p3 ZrCws8GFyIqF12k39xKFy8CF15Xwn5C3ZruFsFqw1UKFZ8G3Z8Zw4akFn8ZwsxurW8XFW7 XF929r4jk3Wvyw7anT9S1TB71UUUUbDqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU bfAFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUXVWUAwA2ocxC64 kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26ryj6F1UM28E F7xvwVC0I7IYx2IY6xkF7I0E14v26r4j6F4UM28EF7xvwVC2z280aVAFwI0_Cr1j6rxdM2 8EF7xvwVC2z280aVCY1x0267AKxVWxJr0_GcWln4kS14v26r1q6r43M2AIxVAIcxkEcVAq 07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx1l5I8CrVACY4xI64kE6c02F40Ex7 xfMcIj6xIIjxv20xvE14v26r1q6rW5McIj6I8E87Iv67AKxVWxJVW8Jr1lOx8S6xCaFVCj c4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JMxkF7I0En4kS14v26r1q6r43MxAIw28IcxkI7V AKI48JMxAIw28IcVCjz48v1sIEY20_WwCFx2IqxVCFs4IE7xkEbVWUJVW8JwCFI7km07C2 67AKxVWUtVW8ZwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI 8E67AF67kF1VAFwI0_GFv_WrylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVW5JVW7 JwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r 1xMIIF0xvEx4A2jsIE14v26F4j6r4UJwCI42IY6I8E87Iv6xkF7I0E14v26r4UJVWxJrUv cSsGvfC2KfnxnUUI43ZEXa7IU8pHq7UUUUU== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750745599104187248?= X-GMAIL-MSGID: =?utf-8?q?1750745599104187248?= |
Series |
[v2,1/2] i2c: loongson: add bus driver for the loongson i2c controller
|
|
Commit Message
Yinbo Zhu
Nov. 28, 2022, 1 p.m. UTC
Add the Loongson platform i2c binding with DT schema format using json-schema. Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn> Reviewed-by: Rob Herring <robh@kernel.org> --- Change in v2: 1. Removed the "#address-cells" and "#size-cells" in requied. 2. Add the reviewed-by information. .../bindings/i2c/loongson,ls-i2c.yaml | 47 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/loongson,ls-i2c.yaml
Comments
On 28/11/2022 14:00, Yinbo Zhu wrote: > Add the Loongson platform i2c binding with DT schema format using > json-schema. > > Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn> > Reviewed-by: Rob Herring <robh@kernel.org> > --- > Change in v2: > 1. Removed the "#address-cells" and "#size-cells" in requied. > 2. Add the reviewed-by information. > > .../bindings/i2c/loongson,ls-i2c.yaml | 47 +++++++++++++++++++ > MAINTAINERS | 1 + > 2 files changed, 48 insertions(+) > create mode 100644 Documentation/devicetree/bindings/i2c/loongson,ls-i2c.yaml > > diff --git a/Documentation/devicetree/bindings/i2c/loongson,ls-i2c.yaml b/Documentation/devicetree/bindings/i2c/loongson,ls-i2c.yaml > new file mode 100644 > index 000000000000..0e4aee9146f3 > --- /dev/null > +++ b/Documentation/devicetree/bindings/i2c/loongson,ls-i2c.yaml > @@ -0,0 +1,47 @@ > +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/i2c/loongson,ls-i2c.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Loongson I2C controller > + > +maintainers: > + - Yinbo Zhu <zhuyinbo@loongson.cn> > + > +allOf: > + - $ref: /schemas/i2c/i2c-controller.yaml# > + > +properties: > + compatible: > + enum: > + - loongson,ls2k-i2c > + - loongson,ls7a-i2c Why do we have the same bindings twice, with different people and file names? https://lore.kernel.org/all/57339e73b6c0bfe446e19a7f55a48b7ca640b9ec.1669359515.git.zhoubinbin@loongson.cn/ Best regards, Krzysztof
在 2022/11/28 22:11, Krzysztof Kozlowski 写道: > On 28/11/2022 14:00, Yinbo Zhu wrote: >> Add the Loongson platform i2c binding with DT schema format using >> json-schema. >> >> Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn> >> Reviewed-by: Rob Herring <robh@kernel.org> >> --- >> Change in v2: >> 1. Removed the "#address-cells" and "#size-cells" in requied. >> 2. Add the reviewed-by information. >> >> .../bindings/i2c/loongson,ls-i2c.yaml | 47 +++++++++++++++++++ >> MAINTAINERS | 1 + >> 2 files changed, 48 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/i2c/loongson,ls-i2c.yaml >> >> diff --git a/Documentation/devicetree/bindings/i2c/loongson,ls-i2c.yaml b/Documentation/devicetree/bindings/i2c/loongson,ls-i2c.yaml >> new file mode 100644 >> index 000000000000..0e4aee9146f3 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/i2c/loongson,ls-i2c.yaml >> @@ -0,0 +1,47 @@ >> +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/i2c/loongson,ls-i2c.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Loongson I2C controller >> + >> +maintainers: >> + - Yinbo Zhu <zhuyinbo@loongson.cn> >> + >> +allOf: >> + - $ref: /schemas/i2c/i2c-controller.yaml# >> + >> +properties: >> + compatible: >> + enum: >> + - loongson,ls2k-i2c >> + - loongson,ls7a-i2c > Why do we have the same bindings twice, with different people and file > names? > > https://lore.kernel.org/all/57339e73b6c0bfe446e19a7f55a48b7ca640b9ec.1669359515.git.zhoubinbin@loongson.cn/ > > Best regards, > Krzysztof Inthe previous internal discussion, I was assigned to go to upstream for i2c, but I don't know why other people are also working on the patch. I will go to internal communication.
在 2022/11/29 7:51, Yinbo Zhu 写道: > > 在 2022/11/28 22:11, Krzysztof Kozlowski 写道: >> On 28/11/2022 14:00, Yinbo Zhu wrote: >>> Add the Loongson platform i2c binding with DT schema format using >>> json-schema. >>> >>> Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn> >>> Reviewed-by: Rob Herring <robh@kernel.org> >>> --- >>> Change in v2: >>> 1. Removed the "#address-cells" and "#size-cells" in requied. >>> 2. Add the reviewed-by information. >>> >>> .../bindings/i2c/loongson,ls-i2c.yaml | 47 >>> +++++++++++++++++++ >>> MAINTAINERS | 1 + >>> 2 files changed, 48 insertions(+) >>> create mode 100644 >>> Documentation/devicetree/bindings/i2c/loongson,ls-i2c.yaml >>> >>> diff --git >>> a/Documentation/devicetree/bindings/i2c/loongson,ls-i2c.yaml >>> b/Documentation/devicetree/bindings/i2c/loongson,ls-i2c.yaml >>> new file mode 100644 >>> index 000000000000..0e4aee9146f3 >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/i2c/loongson,ls-i2c.yaml >>> @@ -0,0 +1,47 @@ >>> +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause >>> +%YAML 1.2 >>> +--- >>> +$id: http://devicetree.org/schemas/i2c/loongson,ls-i2c.yaml# >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>> + >>> +title: Loongson I2C controller >>> + >>> +maintainers: >>> + - Yinbo Zhu <zhuyinbo@loongson.cn> >>> + >>> +allOf: >>> + - $ref: /schemas/i2c/i2c-controller.yaml# >>> + >>> +properties: >>> + compatible: >>> + enum: >>> + - loongson,ls2k-i2c >>> + - loongson,ls7a-i2c >> Why do we have the same bindings twice, with different people and file >> names? >> >> https://lore.kernel.org/all/57339e73b6c0bfe446e19a7f55a48b7ca640b9ec.1669359515.git.zhoubinbin@loongson.cn/ >> >> >> Best regards, >> Krzysztof > > Inthe previous internal discussion, I was assigned to go to upstream > for i2c, but I > > don't know why other people are also working on the patch. I will go to > > internal communication. Hi please follow zhoubinbin's loongson i2c series patch. I will not cover it. Thanks, Yinbo.
diff --git a/Documentation/devicetree/bindings/i2c/loongson,ls-i2c.yaml b/Documentation/devicetree/bindings/i2c/loongson,ls-i2c.yaml new file mode 100644 index 000000000000..0e4aee9146f3 --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/loongson,ls-i2c.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/i2c/loongson,ls-i2c.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Loongson I2C controller + +maintainers: + - Yinbo Zhu <zhuyinbo@loongson.cn> + +allOf: + - $ref: /schemas/i2c/i2c-controller.yaml# + +properties: + compatible: + enum: + - loongson,ls2k-i2c + - loongson,ls7a-i2c + + interrupts: + maxItems: 1 + + reg: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + +unevaluatedProperties: false + +examples: + - | + #include <dt-bindings/interrupt-controller/irq.h> + + i2c0: i2c@1fe21000 { + compatible = "loongson,ls2k-i2c"; + reg = <0x1fe21000 0x8>; + interrupt-parent = <&liointc0>; + interrupts = <22 IRQ_TYPE_LEVEL_LOW>; + #address-cells = <1>; + #size-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins_default>; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 95f26184e17c..9f70f4997afc 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12062,6 +12062,7 @@ LOONGSON I2C DRIVER M: Yinbo Zhu <zhuyinbo@loongson.cn> L: linux-i2c@vger.kernel.org S: Maintained +F: Documentation/devicetree/bindings/i2c/loongson,ls-i2c.yaml F: drivers/i2c/busses/i2c-loongson.c LSILOGIC MPT FUSION DRIVERS (FC/SAS/SPI)