Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp4205437rwe; Tue, 30 Aug 2022 06:27:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR5vELnaTAfMZdCgsqWRhcFYdW7b1Z0OmaEiWRQusspZqT6Nr/wMaJXfa9G4N/8XzizYXqi8 X-Received: by 2002:a17:907:2707:b0:741:7c18:4e76 with SMTP id w7-20020a170907270700b007417c184e76mr7111467ejk.690.1661866053803; Tue, 30 Aug 2022 06:27:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661866053; cv=none; d=google.com; s=arc-20160816; b=qED2oei62F076KuueO20ekwdqJUWkYTGevIdtv2LL0QlX6L1UYeCKkpCPuw4Ar3zSW ySY34xE2hXYcX/NggQEOVsqAHqC5iZZYUaNQiCLZKRTSDv3ALXhd/uUZRmEZbdtElABy w8u+neD+PJqaJQZH6/PHEPOjnEruzJAOjhB/5JzV8hQiWBQvFFNCev4EMLCLdg6XGJcm Zni7QBUyqlOBB1kaomDqHce/AgWkct0ii050HMdg7vPW6J7uyVhNtykARTYls/REcPYA H7eNMNon9uzAXUMcMQBptnlG0ZGD3UuMsmvc1Z0MybQyJoBEpwk9nAS3xdGEe9zKt2FA X4KA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=GmyXrOY1Xiae60zSU+ZgbAWGCTGdp1fVOg/uqPLmDNM=; b=Gh3v7qJ4u5CTFQsb1DoGLbxBncm96zm2rgbhxNB4WesHSdQBjY1xO80Xsp496IePFi BZNeq06NoKTIYA+MVyDQhBFRtqJkSLO6xS/5O42Jt/abHAonraxe+GQMzxzA49qC9PhO KTzriHtTDTpjKFjnRhwg2oS0aLItcUP7gErA3vSMV5LfL/TvykF6Hv0h6rjv3mqmVHcL IDcgDYhyXT0sBPoIfZj8b41L5ZK6G4JJcPTDDx59vyagfNpIAXotcgNGtUfU9Uvgpzk+ p0m19oV0yIk9G8I8s33Ah2EfD5sE4OcAh7u/2Kn1WhkIRLEtNGHcXpHcjLvEVTzZbwpW Ukxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O69XPEfN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p26-20020a056402155a00b004479f85b42esi8041441edx.509.2022.08.30.06.27.06; Tue, 30 Aug 2022 06:27:33 -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; dkim=pass header.i=@linaro.org header.s=google header.b=O69XPEfN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229629AbiH3NXr (ORCPT + 99 others); Tue, 30 Aug 2022 09:23:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbiH3NXp (ORCPT ); Tue, 30 Aug 2022 09:23:45 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D410CD83DC for ; Tue, 30 Aug 2022 06:23:43 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id w19so8378597ljj.7 for ; Tue, 30 Aug 2022 06:23:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=GmyXrOY1Xiae60zSU+ZgbAWGCTGdp1fVOg/uqPLmDNM=; b=O69XPEfN28apshm2HKFJYNlPgvk4cZwsxX5/2pojKJKOVLq1oCuul5KRCgl5d+93/K YbRD4gGaiyItamL22++uXidZAeuTB1agY2+RsTzPblDkBLQpn9yh3B3y2iEYiPurBrl/ vVUgHPiK/U8gHWP769xSA9kWzE+GeiNXEb9KyvSEckGAk/hM1vwsi7hHW/EWwt/A9JFO wtXhVxqZn9pegze34aZ6LwwQE3LuvL0uVu+uEDT9G1MxLjyGpI97JnLXJ4J5fuu6qO9a xz5y/nLRgf6e+Wozf0bOJMwApb0r/64i8/pauMDE2324D8DWpbQSp8rBY3cW3bh0JJvR PE5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=GmyXrOY1Xiae60zSU+ZgbAWGCTGdp1fVOg/uqPLmDNM=; b=irx/EpCI+JOQKfidPkR4Zqw0BWDfnJiTnhz2Hd/dv8dEmspqjGY/La2yRoFj11otw7 ilxFIKdfY9Jc8sonxonfC2kpVwpImgPeyWEgHCtAMv226/Q6TQk/yenqf10E5U5305UN BfDgya2aHB7Xm5H/2AmggBhHm8uSNAuNRov0GvGCfS+6s/kZ42p4p50iJvJQ7Nr6xPmh 9OBQ9Xd2EX8hhBOpr7cy5XBjQ22sp+hZWYCy9OzOOPphPznNmB1iLzPR+0i0wgVkagdP FB1wLoB+HgfblilMAdadvRN/w5fAW6ju45G4MqaOLTCoXlg3s5fT/2H9ZLZwv2jNaweW 5F8g== X-Gm-Message-State: ACgBeo3LUHb5/FgJ8cUXfX1xI60VXiLtgYwH9X10AP1vZiI/j0cYivlP BKfYFDdOduunsw7A78AYsOVLKhx97Aiq8tbWaj4= X-Received: by 2002:a05:651c:1587:b0:261:b558:b6ab with SMTP id h7-20020a05651c158700b00261b558b6abmr6782829ljq.204.1661865822205; Tue, 30 Aug 2022 06:23:42 -0700 (PDT) Received: from [192.168.28.124] (balticom-73-99-134.balticom.lv. [109.73.99.134]) by smtp.gmail.com with ESMTPSA id p12-20020a2ea4cc000000b0025e6e1c836dsm1780859ljm.126.2022.08.30.06.23.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Aug 2022 06:23:41 -0700 (PDT) Message-ID: <12f51601-9a21-cbe9-370a-69034a416483@linaro.org> Date: Tue, 30 Aug 2022 16:23:40 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH 1/3] dt-bindings: i2c: mv64xxx: Document DMA properties Content-Language: en-US To: Samuel Holland , Chen-Yu Tsai , Jernej Skrabec Cc: Gregory CLEMENT , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev References: <20220830020824.62288-1-samuel@sholland.org> <20220830020824.62288-2-samuel@sholland.org> <1c9cb6c2-2030-257d-a50d-dada0ab4449e@linaro.org> <7fd702e9-dedc-e5bf-fd54-f07d053b1870@sholland.org> From: Krzysztof Kozlowski In-Reply-To: <7fd702e9-dedc-e5bf-fd54-f07d053b1870@sholland.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 On 30/08/2022 16:10, Samuel Holland wrote: > On 8/30/22 4:36 AM, Krzysztof Kozlowski wrote: >> On 30/08/2022 05:08, Samuel Holland wrote: >>> Allwinner's I2C offload engine includes bidirectional DMA support. Add >>> the properties for describing this in the devicetree. "dmas" is optional >>> because not all instances of the controller have their DRQs hooked up. >>> For example, R_I2C0 and R_I2C1 on V536 have no DRQ number assigned. >>> >>> Signed-off-by: Samuel Holland >> >> Thank you for your patch. There is something to discuss/improve. >> >>> --- >>> >>> .../bindings/i2c/marvell,mv64xxx-i2c.yaml | 13 +++++++++++++ >>> 1 file changed, 13 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml b/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml >>> index 0ec033e48830..63d665a4f9bb 100644 >>> --- a/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml >>> +++ b/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml >>> @@ -66,6 +66,19 @@ properties: >>> resets: >>> maxItems: 1 >>> >>> + dmas: >>> + items: >>> + - description: RX DMA Channel >>> + - description: TX DMA Channel >>> + >>> + dma-names: >>> + items: >>> + - const: rx >>> + - const: tx >>> + >>> +dependencies: >>> + dmas: [ dma-names ] >> >> Dependency is not needed. meta-schema has it. > > The only dma-names dependencies I see in dtschema (meta-schemas/dma.yaml and > schemas/dma/dma.yaml) are in the other direction. Those are saying that > dma-names only makes sense if dmas is provided. > > Here I am saying that the two DMA requests are optional, but only optional > "together". The node must either have no DMA properties or both DMA properties. Right, that's correct. Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof