Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2600858iob; Mon, 16 May 2022 01:46:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxi3cvHEbzzbioTHOg4H1IYGnDcJYqH953eewPsjnAbSri94goE23G0yQc7RjmG/KS/xwb X-Received: by 2002:adf:d1ce:0:b0:20c:5d7c:b513 with SMTP id b14-20020adfd1ce000000b0020c5d7cb513mr13454185wrd.651.1652690773890; Mon, 16 May 2022 01:46:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652690773; cv=none; d=google.com; s=arc-20160816; b=d4YWD9FjM/f7zzC3T1hkU/5RFHq2dyAS7mauKJEhZ9QcUCGlAU/chrgiry+mgMdISN Tijli/ZwVeK9ZnBopLHxVW+rMIafROPMtLvOpSfgwVx32ToLFQ2XH0T48Z5T35eqFqJQ S5293VHniKjP0QxhlG4fslp+ZfBwcyQkRs6siy1syx+SvE/C6sobV70nmfdoRrHeGcDZ dgVd142AaR4saQ8MpJqwC9wlms3R4R+jTtffSUuKjU8QabeA7lyK2bxFist7Y4tAyvrH o5NQC4e9rtExMqK92H5TJJ1Qy+a4qF2/dsyZ2Ahbok7GtANAQasXuIdOmePJhHkv1J1f Urcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=XyJOkRxcZrslBrxIUYmhhxL4HXsesVFZULzHWVjAfJ0=; b=v9+ip+oljOBH6e+IqGFmBsbLlbC1lTigNxnu2+yE/P2Rx21JVSZYvFxvSJFH1asvCq YiIK4FeZHkEo1uFKG9KKUlwZfIH7lrX++KFIateEgidA5Q5tYJE6IYNo1+y6NxDHzsoX 7zKTts1QfMPSFtxvecNh7STFph/x3sTRv+1x8MndJ+i86ow4OiqdlNYEINmU0utvfIqh cL2+Wfa8HymMXDNZGhDmq1hImZ3JNgIPtPxd+jTr6JAawepspIOJ97wibAQkkb8gRuU7 ze850kQ2ON1dYkkVrZOj2LkH9QdVxyoouefWZES5DGWsLHtCSmKAfFSMqVgLRDiEu5EU gvJg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b19-20020a7bc253000000b003949587cbd3si13122914wmj.90.2022.05.16.01.45.46; Mon, 16 May 2022 01:46:13 -0700 (PDT) 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 S240448AbiEPGui (ORCPT + 99 others); Mon, 16 May 2022 02:50:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240365AbiEPGuZ (ORCPT ); Mon, 16 May 2022 02:50:25 -0400 Received: from twspam01.aspeedtech.com (twspam01.aspeedtech.com [211.20.114.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AED7DF6C for ; Sun, 15 May 2022 23:50:22 -0700 (PDT) Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 24G6ZVWe064016; Mon, 16 May 2022 14:35:31 +0800 (GMT-8) (envelope-from ryan_chen@aspeedtech.com) Received: from localhost.localdomain (192.168.10.9) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 16 May 2022 14:49:05 +0800 From: ryan_chen To: Joel Stanley , Andrew Jeffery , Philipp Zabel , , , , CC: Subject: [PATCH v3 2/3] dt-bindings: i2c-ast2600: Add bindings for AST2600 i2C driver Date: Mon, 16 May 2022 14:48:59 +0800 Message-ID: <20220516064900.30517-3-ryan_chen@aspeedtech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220516064900.30517-1-ryan_chen@aspeedtech.com> References: <20220516064900.30517-1-ryan_chen@aspeedtech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.168.10.9] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 24G6ZVWe064016 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 AST2600 support new register set for I2C controller, add bindings document to support driver of i2c new register mode controller Signed-off-by: ryan_chen --- .../bindings/i2c/aspeed,i2c-ast2600.ymal | 78 +++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/aspeed,i2c-ast2600.ymal diff --git a/Documentation/devicetree/bindings/i2c/aspeed,i2c-ast2600.ymal b/Documentation/devicetree/bindings/i2c/aspeed,i2c-ast2600.ymal new file mode 100644 index 000000000000..7c75f5bac24f --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/aspeed,i2c-ast2600.ymal @@ -0,0 +1,78 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/i2c/aspeed,i2c-ast2600.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: AST2600 I2C Controller on the AST26XX SoCs Device Tree Bindings + +maintainers: + - Ryan Chen + +allOf: + - $ref: /schemas/i2c/i2c-controller.yaml# + +properties: + compatible: + enum: + - aspeed,ast2600-i2c + + reg: + minItems: 1 + items: + - description: address offset and range of bus + - description: address offset and range of bus buffer + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + description: + root clock of bus, should reference the APB + clock in the second cell + + resets: + maxItems: 1 + + bus-frequency: + minimum: 500 + maximum: 2000000 + default: 100000 + description: frequency of the bus clock in Hz defaults to 100 kHz when not + specified + + multi-master: + type: boolean + description: + states that there is another master active on this bus + +required: + - reg + - compatible + - clocks + - resets + +unevaluatedProperties: false + +examples: + - | + #include + #include + + i2c_gr: i2c-global-regs@0 { + compatible = "aspeed,ast2600-i2c-global", "syscon"; + reg = <0x0 0x20>; + resets = <&syscon ASPEED_RESET_I2C>; + }; + + i2c0: i2c-bus@80 { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <1>; + compatible = "aspeed,ast2600-i2c-bus"; + reg = <0x80 0x80>, <0xC00 0x20>; + clocks = <&syscon ASPEED_CLK_APB2>; + resets = <&syscon ASPEED_RESET_I2C>; + bus-frequency = <100000>; + }; -- 2.17.1