From patchwork Sat Apr 22 18:06:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislav Jakubek X-Patchwork-Id: 86618 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1843074vqo; Sat, 22 Apr 2023 11:30:20 -0700 (PDT) X-Google-Smtp-Source: AKy350ZihccPUJ3EUbxrG0nwvdDzMHgnpJsojvOrEsSalThqUamQuHQ6rjeUqdyCbSzPTR+PrU+Q X-Received: by 2002:a17:90a:fc9:b0:24b:4e7b:c689 with SMTP id 67-20020a17090a0fc900b0024b4e7bc689mr7969687pjz.35.1682188220062; Sat, 22 Apr 2023 11:30:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682188220; cv=none; d=google.com; s=arc-20160816; b=MWq4Er4WKePxgTjjK0bKespqyoTNOlficRedBrQ26tVfBjptTwdzCx7e3ZdFvm9H0e do3lRYwsjWUKBuLQTrMdq44KKFozEjXSmix4I/HswrAgtHnhEcWSYpi5b1SQaFoQCDi9 /bk3NFVqWq84h9h1JvYr4QTC6rGR89yWp7krdxc/wGCO8QUTYFJYJNlCAPpmDC2pdx52 HOp+Q989q2ASsaegHuBh4OrjnBXmYedJuHD4rn9X2uDLAtWerVkEA2uNzmjtBj/gJOpZ AuadiatL8nG1U0V2ctm4xHtyRfuSPdhqlMEKz47skyfBmTcMWD9wVtyqIFeFPHKmkhPy lTVw== 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:dkim-signature; bh=S+ZAi4MB2iglmobNNPKpLNUvG+fr9DuzoLdnk3gLDW0=; b=bkTa2+Bjc3frTgudakqOpckx7C9fPIZ13BwIqhx5luOcKYZY578G5yXySL77C/su46 Z8x/yrjpHWZvAy4SgOXrLXX6dXivEOlch/IS82w/C3T3ym1Drw7kLxngdA/iShhl10wQ uqD0p2moPyMO2fzSiag54CGVnP9jCGnKjoGSmdUveZ2t7xBgTdpjWhMEq90mhxK5tXzz x0pjeqeE0HYIrhRa2uSN8J2LG5W8KK4xh4bSg0WANvxx7DJIRU3unjpm5DrQngJdtulR FbWBqGSG+ulB5zc25TSJ8Qi7Ak9HJ02++ci8XAKyK6qvGxqfeZF027NE7cW1hNzNwpqP yByw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=eEiInu1J; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f1-20020a17090a288100b0024750453f25si9624125pjd.185.2023.04.22.11.29.59; Sat, 22 Apr 2023 11:30:20 -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=@gmail.com header.s=20221208 header.b=eEiInu1J; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229704AbjDVSHE (ORCPT + 99 others); Sat, 22 Apr 2023 14:07:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229510AbjDVSHD (ORCPT ); Sat, 22 Apr 2023 14:07:03 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4B6C19B; Sat, 22 Apr 2023 11:07:01 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-2febac9cacdso1719144f8f.1; Sat, 22 Apr 2023 11:07:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682186818; x=1684778818; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=S+ZAi4MB2iglmobNNPKpLNUvG+fr9DuzoLdnk3gLDW0=; b=eEiInu1JXd0HVKLPJ+IYQmIZSbHZsi/HXtnF+nCYyABJJ+8g96NfpkWyK8wTtVdPwF JkU++tJq4aRInbTihKDkcTGpGd0uRm4YNWB8gzGOjUTSJv0lSlFcZ/rYS0pHi9aMn/SM QhFOeu21JLESA+uXcjNV93Fro8BP2rXWTadCqnuEnw1aRW+NFW/HQLOkga4iHehRQNz0 wjVYPPdwXw5ATClKpWa5oDmuy2GIUecTeu+iGVXrgTIGQdfMGbWdINFumH5FmiIk2CF8 d9Z66F5+RfP8jG9TtJSwpLKPja7KNb0dVJRYqjWkXUFAyOCl2ffYbct8+yxm+DI6bMUN aouQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682186818; x=1684778818; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=S+ZAi4MB2iglmobNNPKpLNUvG+fr9DuzoLdnk3gLDW0=; b=ERBqrI1zP8bnyh4H8yaca+EbQ+ia1BLQoHeY/Ri1d0Hwi2HtzFIf0oMpSOesIHHEgK 3bofpk72MWQvDyv08v7pgm3na0lnlsGa0zv3rG31+8WHycKQBlGfSv2VhtFb8BqJW7Hw uTcnMDh4j14luUKAH9DtrnQP6aa47eAZElp2QhwEa0XHIm5FDcabBToGwNPbF5XxzkeG DBGG0+CcHhPaYrrmLWx/mKPTtkr+oFFeWaPyB8ypuVtITQ4JTqM/GQgsDeYpmnfCfYc7 cy5x10Skbq6iHtnl06l5g3u2RQ2NRwXnUPg9YdHxJA8pS4LkvI64jRL0k29VWFht1v+g PWjg== X-Gm-Message-State: AAQBX9cYyojg1+B0tmWE7QxcpLAnfhvcvxKPOj4/dZfqXJI2r95F54FL SY+I31+j5IcbpkHyNhsBL7M= X-Received: by 2002:adf:db0d:0:b0:2ce:a30d:f764 with SMTP id s13-20020adfdb0d000000b002cea30df764mr6190607wri.21.1682186818233; Sat, 22 Apr 2023 11:06:58 -0700 (PDT) Received: from standask-GA-A55M-S2HP ([188.123.113.247]) by smtp.gmail.com with ESMTPSA id f17-20020a5d58f1000000b002cea8e3bd54sm6967777wrd.53.2023.04.22.11.06.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Apr 2023 11:06:57 -0700 (PDT) Date: Sat, 22 Apr 2023 20:06:56 +0200 From: Stanislav Jakubek To: Rob Herring , Krzysztof Kozlowski , Florian Fainelli , Ray Jui , Scott Branden Cc: bcm-kernel-feedback-list@broadcom.com, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] ARM: dts: bcm23550: Add SoC-specific I2C compatible Message-ID: <9875ec0211187e4f5e2a4379c63eacdb69b31d7a.1682185969.git.stano.jakubek@gmail.com> MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763902194946528048?= X-GMAIL-MSGID: =?utf-8?q?1763902194946528048?= Add BCM23550-specific compatible for brcm,kona-i2c nodes. While not currently used by the i2c-bcm-kona driver, they can serve for further customization, if required. Done in preparation for dt-binding coversion to DT schema. Signed-off-by: Stanislav Jakubek --- arch/arm/boot/dts/bcm23550.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/bcm23550.dtsi b/arch/arm/boot/dts/bcm23550.dtsi index a36c9b1d23c8..32b244b8546c 100644 --- a/arch/arm/boot/dts/bcm23550.dtsi +++ b/arch/arm/boot/dts/bcm23550.dtsi @@ -159,7 +159,7 @@ uartb3: serial@2000 { }; bsc1: i2c@16000 { - compatible = "brcm,kona-i2c"; + compatible = "brcm,bcm23550-i2c", "brcm,kona-i2c"; reg = <0x00016000 0x70>; interrupts = ; #address-cells = <1>; @@ -169,7 +169,7 @@ bsc1: i2c@16000 { }; bsc2: i2c@17000 { - compatible = "brcm,kona-i2c"; + compatible = "brcm,bcm23550-i2c", "brcm,kona-i2c"; reg = <0x00017000 0x70>; interrupts = ; #address-cells = <1>; @@ -179,7 +179,7 @@ bsc2: i2c@17000 { }; bsc3: i2c@18000 { - compatible = "brcm,kona-i2c"; + compatible = "brcm,bcm23550-i2c", "brcm,kona-i2c"; reg = <0x00018000 0x70>; interrupts = ; #address-cells = <1>; @@ -189,7 +189,7 @@ bsc3: i2c@18000 { }; bsc4: i2c@1c000 { - compatible = "brcm,kona-i2c"; + compatible = "brcm,bcm23550-i2c", "brcm,kona-i2c"; reg = <0x0001c000 0x70>; interrupts = ; #address-cells = <1>; From patchwork Sat Apr 22 18:07:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislav Jakubek X-Patchwork-Id: 86617 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1843073vqo; Sat, 22 Apr 2023 11:30:20 -0700 (PDT) X-Google-Smtp-Source: AKy350alo539eQQSAW3O9alSlih8AEV3DtsMcIsFFlZbqmD/0eD6n6WO3GiqU4E2kZUzlVQO7VMZ X-Received: by 2002:a17:90b:3008:b0:246:d182:cb22 with SMTP id hg8-20020a17090b300800b00246d182cb22mr8350201pjb.23.1682188220062; Sat, 22 Apr 2023 11:30:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682188220; cv=none; d=google.com; s=arc-20160816; b=z9TLVLxEbIub0sQdmXEY0WLhY+LuDD4HJ9kLvRuYkx/tLb3qseWi9RW2NbmgwMv+lM lPUnk9dxixiFHvztzTxTxuWTWRkt28aCxMBJzItFsT6tlqM4alzIim9o/b5xH3fvgwlJ HyuGxCiC2lnYaQeugYt9naV/uaw+rTw8/0fTeWbYI8EaH/5vQFMND4jGyXefd6x14f5+ j61eL+JkYMbYJ/6Dz/hH0g3Ha4lXIphhuN07mmQPQTOgulkDCS4ATc06BOOSdjZndGYo nKrPaLA4ieqWkkl7ie6JBi0Pxc8CrTFjRv8uLJGtIwcUqYZH2P3MC+pEZslnVqCf5rVV sLOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=cMC/WYCs+O5/GQ2fJfJkDG2YCTzb8/HxNIUvGlcuZ8Q=; b=f69BBMeM94Mt0ETE9TRx6yRcNZxSqQh4URHCaT01wtLAcLu7nHcme9QYV6P1XMD+UB Nfr1kevDl78IzN0ya1xEyfwHU9sIpXJsB+MgsciQHLH7Pdri5MkXpsYFO/Kk+GZanbgX BFzxx7XQqDISjVFtclmPgCYBMJjZgI72Fa7aPPvWEdpIhkr1W5vsXmWbTBy8uuxoJ8DF q+3ed9x08lk65fq9zAuwW86QBegDZu1dV9Uqz2gxWuWASSiCGdwvH7HhcRdCjO0K5z4W Znt9joo+a3hWAYLVrC1oPv9sQ1dv0NVB5ok5GJawC7JQa7ZkNrh9wzoJUdGe1YUTIVJB cdpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=OP4aDpB4; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l6-20020a17090ab70600b00235dc16de3asi9507844pjr.16.2023.04.22.11.29.59; Sat, 22 Apr 2023 11:30:20 -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=@gmail.com header.s=20221208 header.b=OP4aDpB4; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229792AbjDVSHn (ORCPT + 99 others); Sat, 22 Apr 2023 14:07:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229587AbjDVSHm (ORCPT ); Sat, 22 Apr 2023 14:07:42 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4944519B; Sat, 22 Apr 2023 11:07:41 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-3f1957e80a2so38092875e9.1; Sat, 22 Apr 2023 11:07:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682186860; x=1684778860; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=cMC/WYCs+O5/GQ2fJfJkDG2YCTzb8/HxNIUvGlcuZ8Q=; b=OP4aDpB4OVKsFekT46euDox7xTbn1SprnPwhlkqr/E4JouEOqXnRTqPt3YIi7ySrWZ SetHDFRSYbCSveXqbDA5QxISnlH0VkJoHYXFBPC4GAQm2FJgkcw6vJNC9mb9bwd2A/om byMRO2F0m/ELzc9H0YTYVPT6PCZQwm8gfmEhZ/ACyqsXn8oC/G5giAVw7GGmvIBUiGV3 epmtmR8+yWW+cR6slIEFCJGn8ptmBO4wU7ovlX4lehSBUGUW6/GRlzm5bft68olQdKnp JykGPx6UyFCb+tV7dATBu1Ai98bWnl9CkfKNHiFmOuRqqIJxgERnCPlrD7Tt0wq1+TAe 42Ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682186860; x=1684778860; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=cMC/WYCs+O5/GQ2fJfJkDG2YCTzb8/HxNIUvGlcuZ8Q=; b=AdVifp/I8HzcxHPq5H3jY88ncbcez36iGGF8Gj25n0O7qriU1OKzcit9dSPH5efPmC r120/IzQ0ZCUYQu7X8Fmv3gsrrlW64ZwrUEedWFmNnTYf63uIqk2x6D5ETcgUpZL6UbI yt6KEJwGWFtAg5/H0Hm9cfqsjIGfPVYLC7GMaTfJDz3wPm11UzfTDMkVXvfKboJ3OBSp nr2mAQLVfnxzM6BxfkFFPN43hPSdMi7pVa8yCU86L8Xo1PviLIy8E5DBHcyZLqZ2m9BD FVEIqYPuAfWwn+ij5DQWz4uqRbVpFBYWbFj0M8TA75AxdBm9CkgAxpnuX7kJz+IaOmcb 3COw== X-Gm-Message-State: AAQBX9cb+odrlmUvonPTzkkXhs7R8Ynzw0LZtQDkvpIBsFRiOco1Pcuh xNhKMBS4NLUfYR/k2fGrHDs= X-Received: by 2002:a05:600c:3b8e:b0:3f1:754e:69e6 with SMTP id n14-20020a05600c3b8e00b003f1754e69e6mr4256718wms.17.1682186859784; Sat, 22 Apr 2023 11:07:39 -0700 (PDT) Received: from standask-GA-A55M-S2HP ([188.123.113.247]) by smtp.gmail.com with ESMTPSA id q17-20020a1cf311000000b003eeb1d6a470sm7855243wmq.13.2023.04.22.11.07.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Apr 2023 11:07:39 -0700 (PDT) Date: Sat, 22 Apr 2023 20:07:37 +0200 From: Stanislav Jakubek To: Rob Herring , Krzysztof Kozlowski , Florian Fainelli , Ray Jui , Scott Branden Cc: bcm-kernel-feedback-list@broadcom.com, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] dt-bindings: i2c: brcm,kona-i2c: convert to YAML Message-ID: <9f4a9a8e20084ba895a309e7d2b78d2047a84ac6.1682185969.git.stano.jakubek@gmail.com> References: <9875ec0211187e4f5e2a4379c63eacdb69b31d7a.1682185969.git.stano.jakubek@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <9875ec0211187e4f5e2a4379c63eacdb69b31d7a.1682185969.git.stano.jakubek@gmail.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763902194923986013?= X-GMAIL-MSGID: =?utf-8?q?1763902194923986013?= Convert Broadcom Kona family I2C bindings to DT schema. Changes during conversion: - add used, but previously undocumented SoC-specific compatibles - drop references to SoCs that are not upstream - add supported clock frequencies according to the Linux driver [1] [1] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/i2c/busses/i2c-bcm-kona.c#n731 Signed-off-by: Stanislav Jakubek --- .../devicetree/bindings/i2c/brcm,kona-i2c.txt | 35 ----------- .../bindings/i2c/brcm,kona-i2c.yaml | 58 +++++++++++++++++++ 2 files changed, 58 insertions(+), 35 deletions(-) delete mode 100644 Documentation/devicetree/bindings/i2c/brcm,kona-i2c.txt create mode 100644 Documentation/devicetree/bindings/i2c/brcm,kona-i2c.yaml diff --git a/Documentation/devicetree/bindings/i2c/brcm,kona-i2c.txt b/Documentation/devicetree/bindings/i2c/brcm,kona-i2c.txt deleted file mode 100644 index 1b87b741fa8e..000000000000 --- a/Documentation/devicetree/bindings/i2c/brcm,kona-i2c.txt +++ /dev/null @@ -1,35 +0,0 @@ -Broadcom Kona Family I2C -========================= - -This I2C controller is used in the following Broadcom SoCs: - - BCM11130 - BCM11140 - BCM11351 - BCM28145 - BCM28155 - -Required Properties -------------------- -- compatible: "brcm,bcm11351-i2c", "brcm,kona-i2c" -- reg: Physical base address and length of controller registers -- interrupts: The interrupt number used by the controller -- clocks: clock specifier for the kona i2c external clock -- clock-frequency: The I2C bus frequency in Hz -- #address-cells: Should be <1> -- #size-cells: Should be <0> - -Refer to clocks/clock-bindings.txt for generic clock consumer -properties. - -Example: - -i2c@3e016000 { - compatible = "brcm,bcm11351-i2c","brcm,kona-i2c"; - reg = <0x3e016000 0x80>; - interrupts = ; - clocks = <&bsc1_clk>; - clock-frequency = <400000>; - #address-cells = <1>; - #size-cells = <0>; -}; diff --git a/Documentation/devicetree/bindings/i2c/brcm,kona-i2c.yaml b/Documentation/devicetree/bindings/i2c/brcm,kona-i2c.yaml new file mode 100644 index 000000000000..636912d8518d --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/brcm,kona-i2c.yaml @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/i2c/brcm,kona-i2c.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom Kona family I2C controller + +maintainers: + - Florian Fainelli + +allOf: + - $ref: /schemas/i2c/i2c-controller.yaml# + +properties: + compatible: + items: + - enum: + - brcm,bcm11351-i2c + - brcm,bcm21664-i2c + - brcm,bcm23550-i2c + - const: brcm,kona-i2c + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-frequency: + enum: [ 100000, 400000, 1000000, 3400000 ] + +required: + - compatible + - reg + - interrupts + - clocks + - clock-frequency + +unevaluatedProperties: false + +examples: + - | + #include + + i2c@3e016000 { + compatible = "brcm,bcm11351-i2c", "brcm,kona-i2c"; + reg = <0x3e016000 0x80>; + interrupts = ; + clocks = <&bsc1_clk>; + clock-frequency = <400000>; + #address-cells = <1>; + #size-cells = <0>; + }; +...