From patchwork Thu Nov 17 07:59:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yinbo Zhu X-Patchwork-Id: 21495 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp270522wrr; Thu, 17 Nov 2022 00:04:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf4/gaSuu0vbyhjSLkkRWwDy8fI8LVTZOE7M+UrxTmdobLnKbLmFH+M3ha/VS3RrpznfK5iG X-Received: by 2002:a17:907:1303:b0:78d:ee08:1867 with SMTP id vj3-20020a170907130300b0078dee081867mr1281771ejb.123.1668672241756; Thu, 17 Nov 2022 00:04:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668672241; cv=none; d=google.com; s=arc-20160816; b=YT4fZwNH0POoRNI2LKZiLp3B/7sjOcfJejL4zJgz/hdL8Acle3fLlHa3imcRJVCErP HeU5skghZlyL/RO57O5JVTqtEFtDPyUEI2kHYPp5SJin8W02LewbRVLVv/5k6vxbNIyV KT4XxRe3PIg2lOcB47C6z3s+Ex8Ho2lLt+efZ3Anv53hzFaheCMuvbQ9nhrs7c9Q9piB AtQvljut8SZ0EUNC7v7QbYAyA7KUiE5ML5n+uQjvJIdRM6/FFaQKAzUp45h/6csDBE+o LH9Irt5Edz1InFnujB9F9K4XUnrBJiSbXiKbDSIYUE0EWJrbZshFySV8qO4n0yMkwlFI rq+A== 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:to:from; bh=FG0+2SvnCMzfnq9JYI0uFnh18IDfrRfKkR0Ff427oNI=; b=ClKB1jVTpu4i/lyQ8gcvPtHJuvOtfleLuT8uWxrw893B17StdSxr4ZIfo2IBo9BUqn 7uBX1xK0UM3d4GoPSK/2rpwl+SWuMm1maSfpYCveEhcuhKPUFMBk6sf2KQmMFFIZcley yRYVKP3ba6a5PoDJR7waBm3z6FqtFxg7jJ7NFCG1o1iKCy6BD+O4jbUL6sOaSrPvy/jN X/8aZwgSh2/zdAKXUY+yp0cHey0IRHoX5ou0bMYvoBxkWhl0ADSufbRHckpv2INSxNAn pb7j2hDwA/Mx+U2UWrwsyK46+xs1jDurES2ho5MdR9vw3EhlTdfkzV4j2zkq0HI0GgBA GLCQ== 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 c17-20020aa7c751000000b0046329e2724dsi335605eds.86.2022.11.17.00.03.37; Thu, 17 Nov 2022 00:04:01 -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 S239264AbiKQH7t (ORCPT + 99 others); Thu, 17 Nov 2022 02:59:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234510AbiKQH7s (ORCPT ); Thu, 17 Nov 2022 02:59:48 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E342214013; Wed, 16 Nov 2022 23:59:45 -0800 (PST) Received: from loongson.cn (unknown [10.180.13.64]) by gateway (Coremail) with SMTP id _____8Dxfbfw6XVj7DYIAA--.18414S3; Thu, 17 Nov 2022 15:59:44 +0800 (CST) Received: from localhost.localdomain (unknown [10.180.13.64]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxtuPr6XVjnc4VAA--.57405S3; Thu, 17 Nov 2022 15:59:43 +0800 (CST) From: Yinbo Zhu To: Rob Herring , Krzysztof Kozlowski , Wolfram Sang , Andy Shevchenko , Florian Fainelli , Jarkko Nikula , Jean Delvare , William Zhang , Conor Dooley , Jan Dabros , Tharun Kumar P , Phil Edworthy , Sam Protsenko , Tyrone Ting , Philipp Zabel , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Yinbo Zhu Subject: [PATCH v1 2/2] dt-bindings: i2c: add loongson i2c Date: Thu, 17 Nov 2022 15:59:38 +0800 Message-Id: <20221117075938.23379-2-zhuyinbo@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20221117075938.23379-1-zhuyinbo@loongson.cn> References: <20221117075938.23379-1-zhuyinbo@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8BxtuPr6XVjnc4VAA--.57405S3 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvJXoW7uF15Xw48ZF4rtF48uF4UArb_yoW8uryUp3 ZrCrsxGF1IqF12939xKFyUC3W5Zwn5CFnruFsFqw1DKF98G3Z8Zw4akFn8Za13ury8XFW7 XFZ29r4j93Wvyw7anT9S1TB71UUUUbDqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU bS8Fc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUAVWUZwA2ocxC64 kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26F1j6w1UM28E F7xvwVC0I7IYx2IY6xkF7I0E14v26F4j6r4UJwA2z4x0Y4vEx4A2jsIE14v26F4UJVW0ow A2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Cr1j6rxdM2kKe7AKxVWUtVW8ZwAS0I0E0xvYzxvE 52x082IY62kv0487Mc804VCY07AIYIkI8VC2zVCFFI0UMc02F40EFcxC0VAKzVAqx4xG6I 80ewAv7VC0I7IYx2IY67AKxVWUtVWrXwAv7VC2z280aVAFwI0_Cr0_Gr1UMcvjeVCFs4IE 7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCY1x0262kKe7AKxVWUtVW8ZwCF04k20xvY0x 0EwIxGrwCF04k20xvE74AGY7Cv6cx26rWl4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1l4IxYO2xF xVAFwI0_Jw0_GFylx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWw C2zVAF1VAY17CE14v26r4a6rW5MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Xr0_ Ar1lIxAIcVC0I7IYx2IY6xkF7I0E14v26r4j6F4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJV WUCwCI42IY6I8E87Iv67AKxVWxJVW8Jr1lIxAIcVC2z280aVCY1x0267AKxVW8Jr0_Cr1U YxBIdaVFxhVjvjDU0xZFpf9x07jY2NtUUUUU= 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749729664945355409?= X-GMAIL-MSGID: =?utf-8?q?1749729664945355409?= Add the Loongson platform i2c binding with DT schema format using json-schema. Signed-off-by: Yinbo Zhu Reviewed-by: Rob Herring --- .../bindings/i2c/loongson,ls-i2c.yaml | 49 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 50 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..275afe8c8483 --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/loongson,ls-i2c.yaml @@ -0,0 +1,49 @@ +# 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 + +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 + - "#address-cells" + - "#size-cells" + +unevaluatedProperties: false + +examples: + - | + #include + + 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 e45c678eb40e..b956d5e2d9e0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12064,6 +12064,7 @@ LOONGSON SERIES I2C DRIVER M: Yinbo Zhu 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)