From patchwork Sat Sep 19 14:40:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Lamparter X-Patchwork-Id: 1367582 X-Patchwork-Delegate: chunkeey@googlemail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=u3PNkCDo; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=ZRzlpByn; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Btth842m1z9sT6 for ; Sun, 20 Sep 2020 00:42:00 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=7s768ShosFt/wnkbXkmyuRQDlQ1jDp5lhUvM/DmEI6I=; b=u3PNkCDodPcwQj8kiq3GWU5hM pohCXyEbw/a5IX8UDD9AQBBDPBfqaUiFfKP+PXw3PgA7FGC7tJPCk2v09+YLPdv/qHGXBenNq6ehs SnnD0/2Pmc+OA88Pv4tX3HQjg9PQ0ETQQqt9CyFzmwVg2N+bjgXQykeX4ncHAD0q0wcgBRbcWHY1H h37L6OgykV5dl9Z3sxeshfm6JwtSJSfEj5v8z40onRfr8l/LPeGtcgL25SpBq9FUFg1z7CVqbO6S/ h6ViJbRqb2QEuVT4UgVFPTusKBnEksBl6CXVYKgvNURdSzJSX6XScwyt70RelfZyXNsOg2ACT2/yF K7prF4SVw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kJe2H-0008KT-Bs; Sat, 19 Sep 2020 14:40:21 +0000 Received: from mail-ej1-x644.google.com ([2a00:1450:4864:20::644]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kJe2C-0008Gy-86 for openwrt-devel@lists.openwrt.org; Sat, 19 Sep 2020 14:40:17 +0000 Received: by mail-ej1-x644.google.com with SMTP id nw23so11879617ejb.4 for ; Sat, 19 Sep 2020 07:40:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xxRcRtIKyOy8/MdnjfPGMzGiRqv57A7wMBM2Fl43Utg=; b=ZRzlpByn6rtJr3osN35MlMMAMwpXrzhVVECmexkGiOf7KUxW0Xi4HnUeHn9VQ3B/1V XPTKoZJI8jqxDqK8DU32B5CVO4nl4PYthNHJRF9MRTI+TyvHgOgQirWwFykN5V5SZD22 QZg+y4mFaTXNzAoQ6nY6IQrnkrJxVGFL8FJ6xH9gBwmT+McUQ4WcakvAnyHxYjyZA9uz cDccjdYmM56L1dQjUFYJ+VSsnck+aPJB3rfANIxB9+VvNWqulRUQSQbx+pRgAk6kgVlX YcMfMOCm7ed09QWzQvowfKqEeOI0YYWjMZqF0SJzZcdkz/rDy1VWEsqkahUmXchQ4Jus NnfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xxRcRtIKyOy8/MdnjfPGMzGiRqv57A7wMBM2Fl43Utg=; b=LSS/4fmfJbLzu/r+jymfFoBB0I6WR/BGcHdmH4xrt9UVcIgnR83KPZssHmSlPTBXvT tFmeZmOQ1TgVJ4QqYTlDZSo7TXN3bBVz1l3jkjW1HsgBI77ilv1G8oxuA40FvZlpUqcw gE6rTDznZdFp98u8CrP33tLO5kBV2ovEhP4U63TMsrhdhXS5EeLOggrGyRck1GJ0Md8K zj0R5zbMQc5QYXVv+T+DDM0Y8EwzzY9d8o88dmpDigaESpRhwEJ6nz3GXRFvnmU2tZSR tOMXsQSvkJr8tsrkfLIkEJNcV6j8/p0yxsGawdFfAcgnWAA4SSUCe1QDzXAdctQykYTo Bekw== X-Gm-Message-State: AOAM531wJjInz+1TXOV4XHrjVhyR0oM25jCidU7SlyDWEMCKKok0JFtB 6TxrHwZiZ+cSS9kKFh5kvA+cQ5nvcAAKVA== X-Google-Smtp-Source: ABdhPJzQpCK8WPkhXbS0+tUtTg/5W/CZpjNq/E+J4eM8i8BfgzpUIRzX6U15MjA99B1hvoUYN1zLZw== X-Received: by 2002:a17:907:4276:: with SMTP id nq6mr36005529ejb.246.1600526414661; Sat, 19 Sep 2020 07:40:14 -0700 (PDT) Received: from debian64.daheim (p4fd09180.dip0.t-ipconnect.de. [79.208.145.128]) by smtp.gmail.com with ESMTPSA id qu11sm4575056ejb.15.2020.09.19.07.40.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Sep 2020 07:40:13 -0700 (PDT) Received: from chuck by debian64.daheim with local (Exim 4.94) (envelope-from ) id 1kJe29-000fSw-2y; Sat, 19 Sep 2020 16:40:13 +0200 From: Christian Lamparter To: openwrt-devel@lists.openwrt.org Subject: [PATCH v4 6/8] kernel: package bcm53xx i2c module Date: Sat, 19 Sep 2020 16:40:02 +0200 Message-Id: X-Mailer: git-send-email 2.28.0 In-Reply-To: References: <6310f880aa209003fee9ef04add80176e249997a.1600525798.git.chunkeey@gmail.com> <8d4ccd9d499c7f080e401ee3828bdfb0e5733edf.1600525798.git.chunkeey@gmail.com> <3f47a2946d6fb8cd15356f03384cab25da52aec1.1600525798.git.chunkeey@gmail.com> <6738ae97125b563bc7f6655f9cf69f5ff1ac6e98.1600525798.git.chunkeey@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200919_104016_332251_36D649BD X-CRM114-Status: GOOD ( 11.20 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:644 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [chunkeey[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: rafal@milecki.pl, hauke@hauke-m.de, f.fainelli@gmail.com, chrisrblake93@gmail.com, Adrian Schmutzler Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org The BCM5301x SoCs do have i2c. Since this is only being used by the Meraki MR32, this will be packaged as a module. Signed-off-by: Christian Lamparter --- v3 -> v4 - moved to target/linux/bcm53xx/modules.mk --- target/linux/bcm53xx/modules.mk | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/target/linux/bcm53xx/modules.mk b/target/linux/bcm53xx/modules.mk index b3bb42578c..ab3bab3f15 100644 --- a/target/linux/bcm53xx/modules.mk +++ b/target/linux/bcm53xx/modules.mk @@ -35,3 +35,18 @@ define KernelPackage/phy-bcm-ns-usb3/description endef $(eval $(call KernelPackage,phy-bcm-ns-usb3)) + +define KernelPackage/i2c-bcm-iproc + TITLE:=Broadcom iProc I2C controller + KCONFIG:=CONFIG_I2C_BCM_IPROC + DEPENDS:=@TARGET_bcm53xx +kmod-i2c-core + SUBMENU:=(I2C_MENU) + FILES:=$(LINUX_DIR)/drivers/i2c/busses/i2c-bcm-iproc.ko + AUTOLOAD:=$(call AutoLoad,59,i2c-bcm-iproc,1) +endef + +define KernelPackage/i2c-bcm-iproc/description + Kernel module for the Broadcom iProc I2C controller. +endef + +$(eval $(call KernelPackage,i2c-bcm-iproc))