Message ID | 5f15212060f82fb94239174c4e4b46c151645fe8.1685549360.git.daniel@makrotopia.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3000880vqr; Wed, 31 May 2023 09:21:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Oh7ydnj11bfOU5OXuchpaeSLoLdA2993cIrrDyCaDwtulucpl89iLjKO+kEXbt2yQ7fVZ X-Received: by 2002:a05:6a20:728b:b0:f0:50c4:4c43 with SMTP id o11-20020a056a20728b00b000f050c44c43mr6625070pzk.5.1685550083130; Wed, 31 May 2023 09:21:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685550083; cv=none; d=google.com; s=arc-20160816; b=JsgovAPKqEtAjgksEdFcnG/DPTBydwuTQO+/7hsIPsrMyKr6gWDCJK0nSX1UlKH/GZ 9dl2wQ15E6vQHkBgJPD1h8qQBqijWE6P17yO19wf8AS9Up9hL8zK6+0ntQx396B9QeRu H4UWEhhlGCfmNI6C6UF9erN+Ya1wTrCPo+aOXk9TgIqX7U8fLqQltTfBeRw1FIZzMkUc iLmB3sEq8bi9hRDeQzMO/iFTAKd0E//mnERY2HRnRa9Dz/PHwieLeOVpRFI5UGZ8ZrI+ CP6xyy/s2qPrDJxD2oQ9rrOIMWsOlteomML5MCLGVgPKUmcE7P1m5h5iz7qPSki0cjBx 8bSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date; bh=6GI1BVm/DSqQynzkzsw40Vc0lhIvV9X2nYr+AT8qfRw=; b=Ltl9SxavYWglhJXt3v8g0iuDT3xWI7hYZ08Ft3rBzb+zVysVWm9Q4lhCsNfWEXzKD5 ocaMbWGXX/5oYZJnop1A+F3Ta72szmm8YHPv5qJAZ1/h4LmvVL0Oc7eFFJmS/UUa+pSe tJ8w4U8YeJSIEvUSWpOk5xcDH+QYGbF3Ep9fQXbU8q19PKXoAs9AxRD3AcqCRxFOBA2B O64rMHxTIae2ZkHnOApZbhnUB53vbcZMJhgdf+68+sxFKw34vSAadhL2WtU+NNXtHXtg /3xADy3WVC6s9ma6C60c7y7N9+mMbQJjOUnGl9/MUvCJGoZS/uyOhKadQIN/CiiWfbPz zUgw== 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 x24-20020a63db58000000b0052c688e6608si1143081pgi.505.2023.05.31.09.21.04; Wed, 31 May 2023 09:21:23 -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 S229536AbjEaQKh (ORCPT <rfc822;andrewvogler123@gmail.com> + 99 others); Wed, 31 May 2023 12:10:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbjEaQKf (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 31 May 2023 12:10:35 -0400 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41BD4B3; Wed, 31 May 2023 09:10:33 -0700 (PDT) Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from <daniel@makrotopia.org>) id 1q4OP4-0001N8-0V; Wed, 31 May 2023 16:10:26 +0000 Date: Wed, 31 May 2023 17:10:14 +0100 From: Daniel Golle <daniel@makrotopia.org> To: devicetree@vger.kernel.org, linux-i2c@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Conor Dooley <conor+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Rob Herring <robh+dt@kernel.org>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Matthias Brugger <matthias.bgg@gmail.com>, Qii Wang <qii.wang@mediatek.com>, Sam Shih <sam.shih@mediatek.com> Cc: =?utf-8?b?6YOt5bCP5qGl?= <joe@gainstrong.cn> Subject: [PATCH 1/2] dt-bindings: i2c: i2c-mt65xx: add additional clocks Message-ID: <5f15212060f82fb94239174c4e4b46c151645fe8.1685549360.git.daniel@makrotopia.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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: <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?1767427364125515907?= X-GMAIL-MSGID: =?utf-8?q?1767427364125515907?= |
Series |
[1/2] dt-bindings: i2c: i2c-mt65xx: add additional clocks
|
|
Commit Message
Daniel Golle
May 31, 2023, 4:10 p.m. UTC
Add pck and mck clocks which are needed to access I2C registers on MT7981.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---
Documentation/devicetree/bindings/i2c/i2c-mt65xx.yaml | 2 ++
1 file changed, 2 insertions(+)
Comments
On 31/05/2023 18:10, Daniel Golle wrote: > Add pck and mck clocks which are needed to access I2C registers on MT7981. > > Signed-off-by: Daniel Golle <daniel@makrotopia.org> > --- > Documentation/devicetree/bindings/i2c/i2c-mt65xx.yaml | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/Documentation/devicetree/bindings/i2c/i2c-mt65xx.yaml b/Documentation/devicetree/bindings/i2c/i2c-mt65xx.yaml > index fda0467cdd954..550795f6573c5 100644 > --- a/Documentation/devicetree/bindings/i2c/i2c-mt65xx.yaml > +++ b/Documentation/devicetree/bindings/i2c/i2c-mt65xx.yaml > @@ -78,6 +78,8 @@ properties: > - const: dma > - const: arb > - const: pmic > + - const: mck > + - const: pck > Adding names does not magically add the clocks. This wasn't tested. Best regards, Krzysztof
On Thu, Jun 01, 2023 at 06:54:01PM +0200, Krzysztof Kozlowski wrote: > On 31/05/2023 18:10, Daniel Golle wrote: > > Add pck and mck clocks which are needed to access I2C registers on MT7981. > > > > Signed-off-by: Daniel Golle <daniel@makrotopia.org> > > --- > > Documentation/devicetree/bindings/i2c/i2c-mt65xx.yaml | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/i2c/i2c-mt65xx.yaml b/Documentation/devicetree/bindings/i2c/i2c-mt65xx.yaml > > index fda0467cdd954..550795f6573c5 100644 > > --- a/Documentation/devicetree/bindings/i2c/i2c-mt65xx.yaml > > +++ b/Documentation/devicetree/bindings/i2c/i2c-mt65xx.yaml > > @@ -78,6 +78,8 @@ properties: > > - const: dma > > - const: arb > > - const: pmic > > + - const: mck > > + - const: pck > > > > Adding names does not magically add the clocks. This wasn't tested. Adding the clocks is done in patch 2/2 which just wasn't sent to devicetree@ and dt maintainers, but to the relevant mailing lists instead. Was that wrong and should I always send the complete series also to devicetree@ as well as dt maintainers? Anyway. It turns out that arb and pmic clocks are intended for that, so we can cancel this and I'll just use those instead.
On Thu, Jun 01, 2023 at 08:10:11PM +0100, Daniel Golle wrote: > Adding the clocks is done in patch 2/2 which just wasn't sent to > devicetree@ and dt maintainers, but to the relevant mailing lists > instead. Was that wrong and should I always send the complete series > also to devicetree@ as well as dt maintainers? Everyone is different, but getting both patches of a 2 patch series really should not annoy anyone and avoiding reviewers having to go hunting on lore etc is always a positive :)
On 01/06/2023 21:10, Daniel Golle wrote: > On Thu, Jun 01, 2023 at 06:54:01PM +0200, Krzysztof Kozlowski wrote: >> On 31/05/2023 18:10, Daniel Golle wrote: >>> Add pck and mck clocks which are needed to access I2C registers on MT7981. >>> >>> Signed-off-by: Daniel Golle <daniel@makrotopia.org> >>> --- >>> Documentation/devicetree/bindings/i2c/i2c-mt65xx.yaml | 2 ++ >>> 1 file changed, 2 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/i2c/i2c-mt65xx.yaml b/Documentation/devicetree/bindings/i2c/i2c-mt65xx.yaml >>> index fda0467cdd954..550795f6573c5 100644 >>> --- a/Documentation/devicetree/bindings/i2c/i2c-mt65xx.yaml >>> +++ b/Documentation/devicetree/bindings/i2c/i2c-mt65xx.yaml >>> @@ -78,6 +78,8 @@ properties: >>> - const: dma >>> - const: arb >>> - const: pmic >>> + - const: mck >>> + - const: pck >>> >> >> Adding names does not magically add the clocks. This wasn't tested. > > Adding the clocks is done in patch 2/2 which just wasn't sent to > devicetree@ and dt maintainers, but to the relevant mailing lists > instead. Was that wrong and should I always send the complete series > also to devicetree@ as well as dt maintainers? I didn't mean implementation. I meant that you still do not allow more clocks! You can put into names whatever you wish but clocks are taken from "clocks" property, not from clock-names. Best regards, Krzysztof
diff --git a/Documentation/devicetree/bindings/i2c/i2c-mt65xx.yaml b/Documentation/devicetree/bindings/i2c/i2c-mt65xx.yaml index fda0467cdd954..550795f6573c5 100644 --- a/Documentation/devicetree/bindings/i2c/i2c-mt65xx.yaml +++ b/Documentation/devicetree/bindings/i2c/i2c-mt65xx.yaml @@ -78,6 +78,8 @@ properties: - const: dma - const: arb - const: pmic + - const: mck + - const: pck clock-div: $ref: /schemas/types.yaml#/definitions/uint32