From patchwork Fri Jun 10 05:47:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Potin Lai X-Patchwork-Id: 12876459 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7E71FC433EF for ; Fri, 10 Jun 2022 05:51:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=l7QZwRfRgNc41WC+q7etBNnZyb02Oppmh+Sy/KB7jDU=; b=UsJkVY8EcbC3s5 bBRnMidfZNXm/qOAa7jtY2lhV9vGA8RRYo0gx2oh8mo27PClNeWyaQBBXo2Od9I5GLti2Do5tKHWu tjYVQe0+R6qDzmhXJFf8bVzPc5lDdAe0MB7GXjYKaOkmvKPQlC/rKjhjs7CeffExJDGEj13Zy4civ 5swXfYMB8ZoNK2/HmzwBcK//HwlsR1XXMGb8BOggeG33khS04U43X7cwCV5iq4KWZNYQvMLuB1HFp nwtCn6hz1gym2lo2SCsE4Kj4F6FKZbp+0OoG4dGoz4qcmjlBPY8uDMDoWcy1ro+Gf9PDnmGenXBZA QlZ9ytLqvY20qA12Rp3A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nzXXF-0062QW-B0; Fri, 10 Jun 2022 05:50:17 +0000 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nzXXB-0062PH-MV for linux-arm-kernel@lists.infradead.org; Fri, 10 Jun 2022 05:50:14 +0000 Received: by mail-pj1-x1035.google.com with SMTP id k5-20020a17090a404500b001e8875e6242so1223223pjg.5 for ; Thu, 09 Jun 2022 22:50:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vxvhQQF+LpnzG0OPsmcVTfh7ByjAVce/l+wkGfbGArM=; b=NFhMzn0s/mJDv488GyWPSpoax0GndAHUQ1lTrr53AfkaSRRVfSB19b1pQe9qZcGlph HISGTAlCzuB5ypUwqn9PXtK6bTIjTkIjj8i6gajhvoEsZ20bIoe4EqHQTAhXB4Xva4x5 Y0To4bWkuYWyDB4wg2Bm9x8IaltNwBIO4C54IP6rRFCFvnQ7sCHNm3d51rLmcv29GGK6 /kORDTpu2OX/aG9DhftPTvXJwRVPffZrotk+qKkUJA83yqx5Qtabw+inyY914l0UbhCU L2fLXbOQqlWrlaTfnNOGSQFqf1VyiN2UKVOxJsTYw3i31eV2ZLf5OxWzLaYNboxtsIZV ILUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=vxvhQQF+LpnzG0OPsmcVTfh7ByjAVce/l+wkGfbGArM=; b=3oIw05fwBGz4pnR5M94/elj+UxudZqltlLnyxosAp4Won1b1tCFS2Gyn+ZzSGVLz/F 7h+zHIu0XNXNbGfCq2hBAOld4UCm2NGA/yacPiP3KC3IC893A/FmZo0XHxJOv26EmF0Z E287uztU5qYBoaCe+VcEMniEwjfXehfp68ASY38XmMWHvXKsJUyWcQApw+6YzK3/Yb6n mSGEhEWMxzPKCWmXWk1gAEqQ7oS7WxeaKeyd/lM3DqjNc5bzzxeI9IGeKn6KW46MdGJq HuwDxTwHrQi23UxSn3lnA9CsTGAZNurqbdht48dw/0CEK/OAnrfABB4oYWYHbKoxbbUM eElg== X-Gm-Message-State: AOAM533pjQGEUtop+2dBnnUxRhS/yhHLxe+n2nku7wkqST2CXr0N6/x7 OaLj+Trv4ta1X4Y6Cm2kGvw= X-Google-Smtp-Source: ABdhPJzBLjFomAJHOI1wYcMswzoSAaZrTfsNtpQw5h6hCKVRFVtrsXsNryoAb7uiNieoVMJhTXserw== X-Received: by 2002:a17:903:2452:b0:166:4b6c:affb with SMTP id l18-20020a170903245200b001664b6caffbmr38070654pls.68.1654840212476; Thu, 09 Jun 2022 22:50:12 -0700 (PDT) Received: from potin-quanta.dhcpserver.local (125-228-123-29.hinet-ip.hinet.net. [125.228.123.29]) by smtp.gmail.com with ESMTPSA id f11-20020aa7968b000000b0051b90ac6c15sm18553977pfk.125.2022.06.09.22.50.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jun 2022 22:50:12 -0700 (PDT) From: Potin Lai To: Brendan Higgins , Benjamin Herrenschmidt , Joel Stanley , Andrew Jeffery , Rob Herring , Rayn Chen Cc: Patrick Williams , Potin Lai , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, Potin Lai Subject: [PATCH v4 2/2] dt-bindings: aspeed-i2c: add properties for setting i2c clock duty cycle Date: Fri, 10 Jun 2022 13:47:22 +0800 Message-Id: <20220610054722.32229-3-potin.lai.pt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220610054722.32229-1-potin.lai.pt@gmail.com> References: <20220610054722.32229-1-potin.lai.pt@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220609_225013_793262_FCE08136 X-CRM114-Status: UNSURE ( 9.75 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Introduce a new property for setting a minimum duty cycle for clock high. * i2c-clk-high-min-percent: a minimum percentage of clock high Signed-off-by: Potin Lai Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/i2c/aspeed,i2c.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/aspeed,i2c.yaml b/Documentation/devicetree/bindings/i2c/aspeed,i2c.yaml index ea643e6c3ef5..4ea6a112f299 100644 --- a/Documentation/devicetree/bindings/i2c/aspeed,i2c.yaml +++ b/Documentation/devicetree/bindings/i2c/aspeed,i2c.yaml @@ -49,6 +49,13 @@ properties: description: states that there is another master active on this bus + i2c-clk-high-min-percent: + minimum: 1 + maximum: 100 + default: 50 + description: + a minimum percentage of clock high + required: - reg - compatible