Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp1291796rwe; Fri, 14 Apr 2023 18:34:01 -0700 (PDT) X-Google-Smtp-Source: AKy350Z8c9jH3kh/0udHhAFV6Yq2aDTV/vTyOBQZNoxoKE9osPT1Glo4fay8PGJ25FXwVl31kD6a X-Received: by 2002:a17:90a:b30d:b0:234:7ccf:3c7c with SMTP id d13-20020a17090ab30d00b002347ccf3c7cmr8027806pjr.9.1681522441258; Fri, 14 Apr 2023 18:34:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681522441; cv=none; d=google.com; s=arc-20160816; b=fMYri6DQPSYnci5TlHoAIYXQYKeMgKn79wWLiZJoa/nTvv5hT8pImEYu8u4yNGRiuG NIE6Ga83XVZM+63gGcETcQV8gbg2fpq/IzEYOlnrQiNfMuYMIJAL/XTztPwz0o01PVim NO+ymC8H5SYNFIQ6JHS1kK/2prB/PlBgG1h852oqywxUFQntAFH1qIqqg7YxtnuMqzEQ ldXr6YabXPD95zmEHNOHpJJNjyu3HCZz/QKq9YuhAYb0arThZ1aoLXcUaShA9SEvtLXE t09jt3GLlBvMup0E6itTEpERMFFaKWTum74BMQbujon9nQkiY83m78687lBBMjmVaY/v IYaA== 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=YxWo5d13/JfpdaC4ixK1FpNcM8avc70wXME0nllBRYo=; b=j7CUtLKyIlXAf5ofno05OcaEKX/DnatVHOlbdusCs1rXPWztdQrgiqTduUd47D3YvS SEalJaqOLqW44R7ekBL3Lh3FQHnm9WnbMLDeVdppNfsqDU6d3WOYon9CoMuV68WIao7Q Cp41aLTPFo4EOOmd99K++wv1EQ8kdozaUtp6zgtgz47gxMGN5deMnxILCkIeqM4iu71e WF+4sUk7qrMStBfi2Ee5Y2a+2cSSo1PsQf3OYjoAXxiHXCT7V/uGZYWp7VFJ7LpEaktD /pclDQ1TM+VrqyTuhbgLFab54zKLT7cGDG9usM4iPoXBA4nB4+UUe0VuSvvpuY9FN3TX syCw== 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 e12-20020a17090a728c00b002470ff0e67csi6622616pjg.149.2023.04.14.18.33.47; Fri, 14 Apr 2023 18:34:01 -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 S229895AbjDOBbv (ORCPT + 99 others); Fri, 14 Apr 2023 21:31:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229623AbjDOBbt (ORCPT ); Fri, 14 Apr 2023 21:31:49 -0400 Received: from twspam01.aspeedtech.com (twspam01.aspeedtech.com [211.20.114.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63EFD6EBB; Fri, 14 Apr 2023 18:31:48 -0700 (PDT) Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 33F1CmhU037682; Sat, 15 Apr 2023 09:12:48 +0800 (GMT-8) (envelope-from ryan_chen@aspeedtech.com) Received: from aspeedtech.com (192.168.10.13) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 15 Apr 2023 09:28:51 +0800 From: Ryan Chen To: , Brendan Higgins , Benjamin Herrenschmidt , Joel Stanley , Rob Herring , Krzysztof Kozlowski , Andrew Jeffery , Philipp Zabel , Wolfram Sang , "Andy Shevchenko" , , Florian Fainelli , Jean Delvare , William Zhang , Tyrone Ting , Tharun Kumar P , Ryan Chen , Conor Dooley , "Phil Edworthy" , , , , , Subject: [PATCH v10 1/2] dt-bindings: i2c: aspeed: support for AST2600-i2cv2 Date: Sat, 15 Apr 2023 09:28:47 +0800 Message-ID: <20230415012848.1777768-2-ryan_chen@aspeedtech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230415012848.1777768-1-ryan_chen@aspeedtech.com> References: <20230415012848.1777768-1-ryan_chen@aspeedtech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [192.168.10.13] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 33F1CmhU037682 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Add ast2600-i2cv2 compatible and aspeed,global-regs, aspeed,enable-dma and description for ast2600-i2cv2. Signed-off-by: Ryan Chen --- .../devicetree/bindings/i2c/aspeed,i2c.yaml | 51 +++++++++++++++++-- 1 file changed, 48 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/i2c/aspeed,i2c.yaml b/Documentation/devicetree/bindings/i2c/aspeed,i2c.yaml index f597f73ccd87..55d20eee06b1 100644 --- a/Documentation/devicetree/bindings/i2c/aspeed,i2c.yaml +++ b/Documentation/devicetree/bindings/i2c/aspeed,i2c.yaml @@ -9,9 +9,6 @@ title: ASPEED I2C on the AST24XX, AST25XX, and AST26XX SoCs Device Tree Bindings maintainers: - Rayn Chen -allOf: - - $ref: /schemas/i2c/i2c-controller.yaml# - properties: compatible: enum: @@ -49,12 +46,50 @@ properties: description: states that there is another master active on this bus + aspeed,enable-dma: + type: boolean + description: | + I2C bus enable dma mode transfer. + + ASPEED ast2600 platform equipped with 16 I2C controllers that share a + single DMA engine. DTS files can specify the data transfer mode to/from + the device, either DMA or programmed I/O. However, hardware limitations + may require a DTS to manually allocate which controller can use DMA mode. + The "aspeed,enable-dma" property allows control of this. + + In cases where one the hardware design results in a specific + controller handling a larger amount of data, a DTS would likely + enable DMA mode for that one controller. + + aspeed,global-regs: + $ref: /schemas/types.yaml#/definitions/phandle + description: The phandle of i2c global register node. + required: - reg - compatible - clocks - resets +allOf: + - $ref: /schemas/i2c/i2c-controller.yaml# + - if: + properties: + compatible: + contains: + const: aspeed,ast2600-i2cv2 + + then: + properties: + reg: + minItems: 2 + required: + - aspeed,global-regs + else: + properties: + aspeed,global-regs: false + aspeed,enable-dma: false + unevaluatedProperties: false examples: @@ -71,3 +106,13 @@ examples: interrupts = <0>; interrupt-parent = <&i2c_ic>; }; + - | + #include + i2c1: i2c@80 { + compatible = "aspeed,ast2600-i2cv2"; + reg = <0x80 0x80>, <0xc00 0x20>; + aspeed,global-regs = <&i2c_global>; + clocks = <&syscon ASPEED_CLK_APB>; + resets = <&syscon ASPEED_RESET_I2C>; + interrupts = ; + }; -- 2.34.1