From patchwork Sat Oct 19 20:39:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13842903 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 11AB9D3C92D for ; Sat, 19 Oct 2024 20:41:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=cjbHjLEu2DAWDOzM41sPKMqBv2WP+F41P/bIbauuyPY=; b=sNizHZxoitOL577CCj/OsPxAxb bF6vWXBkuWt33mxPKM41aXXWn659aLRCGp5e07FlyNFzC4keG3TT42viSZNMYayiNNi2D94CYbobE iq81illYbE9GfMnKXiFBCZI+KgTVJFLOdeHBEcqZp05TkXxQVXENavJj89ZD/hdVpOqStd47LNdma ll6qYiduFxBwpSfNHLwjI/wi7PV6e0XRJvW88U7juvr54mojQVAoUGP0u0leGU5f0Gpm6vS3OXsrM HOxaNCKPxVBkJSenGO6vTjCajNNNFqVXc6/H/5w4eu6WLyW6/3iOey8Zxb3CRA/ZIzbN59cYXEXO5 3+ZN0VtA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2GG1-00000003tks-3ljy; Sat, 19 Oct 2024 20:41:06 +0000 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2GEY-00000003tZD-1PdE for linux-arm-kernel@lists.infradead.org; Sat, 19 Oct 2024 20:39:35 +0000 Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-539e13375d3so3548439e87.3 for ; Sat, 19 Oct 2024 13:39:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729370372; x=1729975172; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=cjbHjLEu2DAWDOzM41sPKMqBv2WP+F41P/bIbauuyPY=; b=HhiuWQcpTtbMlIGLmzSh0eiI7801p4/jWGxpjOk9vsos81/h6DXHsJdHpRpNXXE6Dy /bXyUT5jgbxCHfwcmPk00RrHPaePP0eTcu33uImShZBSlEn6YpPBg6Dd8NLlWrQjc8vY SZTvQ9OViocbdpP1PmF5MuQg23NkFrqn1hMiqSOlgMrbJSh38Bx9PcOfGnsskkpM/VIJ yqDGhHwqcBo3RJ4rJuVpQLZ6ePpY1XyZj2pP8/zIsYzb2ExrIWPvsXFG7aTSIMkesiXa Mrbe2QVN6JJm7ES0He1O+sXMSBnz3x4sT3q8zjX9S3JI97AXVqgAJZSq+Z//rwAEQsIr pUvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729370372; x=1729975172; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cjbHjLEu2DAWDOzM41sPKMqBv2WP+F41P/bIbauuyPY=; b=YTsBNnXrPVfJRX+OhS05ov5+j+3kDS5gRwLmbwJyhueqSW+tAKy7q2L+j4jfP+WA9w ZFMNCxQxZJeVqO2Co2gLlObNS/ySoXGjAVo1DaSciCY9DeD0Zd9VlEG1E07LTjKk3fUK IqIhmw004DGdMaP/Uf1DIeuhYV82RWVKAMTgIXbnYg10RCoyEVszojzp6Z/UmWaye6I0 WnYBj5PMkz5D4Hhrujffmxy/EoBm4/wjoCrNX7GA0VFl70KYYfo9mES+3gAkEYqaVbMZ uN9IScKNeBIwwz3UuK05CWbRmMRiFwF44lHR1YYS/B0MghZLd0oY848nj+EXxY+GLnlu MVRw== X-Forwarded-Encrypted: i=1; AJvYcCVAjkJ1/xWhHvtio6OlhL4a6ZXC/R2vr+JZGym8pM6nFtcbKktf/XQqadSG5cWDeysBO+solLLUHICO8zfA/ijf@lists.infradead.org X-Gm-Message-State: AOJu0YyspmhIBBG1S4mWNo94wYHOAaBSBibh+XM7aY+Ee+sou2pwCNx9 e0GN036nw3nrlGNQESJA3HrDYI5MYAPr/Ag7Qw7NUNZ7eDcZIFKLZcWAp9y6244= X-Google-Smtp-Source: AGHT+IE9drGvNyTx9W6GH9yKHKpjXt1WB4Jo9CU9wT6hNhofAb6j/UwdgAKFRoNrubtRrsfe9b5e7g== X-Received: by 2002:a05:6512:4009:b0:536:9f72:c427 with SMTP id 2adb3069b0e04-53a154a93a0mr3439417e87.28.1729370372405; Sat, 19 Oct 2024 13:39:32 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-53a224202d5sm37564e87.136.2024.10.19.13.39.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Oct 2024 13:39:32 -0700 (PDT) From: Linus Walleij Date: Sat, 19 Oct 2024 22:39:30 +0200 Subject: [PATCH v3 1/9] ARM: dts: bcm6846: Add iproc rng MIME-Version: 1.0 Message-Id: <20241019-genexis-xg6846b-base-v3-1-8375a0e1f89f@linaro.org> References: <20241019-genexis-xg6846b-base-v3-0-8375a0e1f89f@linaro.org> In-Reply-To: <20241019-genexis-xg6846b-base-v3-0-8375a0e1f89f@linaro.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Zhang , Anand Gore , Kursad Oney , Florian Fainelli , =?utf-8?b?UmFmYcWCIE1p?= =?utf-8?b?xYJlY2tp?= , Benjamin Larsson , Broadcom internal kernel review list Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linus Walleij X-Mailer: b4 0.14.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241019_133934_441239_D4959B96 X-CRM114-Status: GOOD ( 11.82 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The bcm6846 has a standard iproc 200 RNG which is already fully supported by bindings, so just add it to the DTS file. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/broadcom/bcm6846.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/broadcom/bcm6846.dtsi b/arch/arm/boot/dts/broadcom/bcm6846.dtsi index ee361cb00b7c..c2a8deef150a 100644 --- a/arch/arm/boot/dts/broadcom/bcm6846.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm6846.dtsi @@ -108,6 +108,11 @@ uart0: serial@640 { status = "disabled"; }; + rng@b80 { + compatible = "brcm,iproc-rng200"; + reg = <0xb80 0x28>; + }; + hsspi: spi@1000 { #address-cells = <1>; #size-cells = <0>; From patchwork Sat Oct 19 20:39:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13842905 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 57F7CD3C92D for ; Sat, 19 Oct 2024 20:44:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=N2IIwOb0WS5MjzwX7Ar4Tf0ByMMbQC+8VyK5ncs/WZ4=; b=l8UAUZMTM6fNWDKaGbq0UojNxu YME0/WQspuYnC+P2l4macAAu+aoAtO9b9EzbO+u3tMpNw0cStM4RDxIPg6TJ1NiU7V1bufnqgF7jk dkAJm4CN3Lwha2pr3Gf0ajemCKAu1ASjsxYIGScj1yMpE0sYPLkBnGgjDVeFt3rorMMEYL8aQxoO0 qg1leJRCXC4mZES8s2L83pFG+8QPu0fEtsgF1PWxLs2KvnZM+NdbSDIq1LC5C5V8e7yI+/vVBRkr+ yVrT/meEGtwIRT5/n3zHnSDm5+vbVBq94+gv5doGXvSkw55hW2jhc7WN32sdUrffePjecTiysc/CM sxMX0AAQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2GIt-00000003u8o-2oEW; Sat, 19 Oct 2024 20:44:03 +0000 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2GEa-00000003tZm-3r3K for linux-arm-kernel@lists.infradead.org; Sat, 19 Oct 2024 20:39:38 +0000 Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-539f0f9ee49so3516257e87.1 for ; Sat, 19 Oct 2024 13:39:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729370375; x=1729975175; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=N2IIwOb0WS5MjzwX7Ar4Tf0ByMMbQC+8VyK5ncs/WZ4=; b=qgQn13ktqD3cCcALej4zS3cWYUFVXCIm+dbPRxEQps7H5IS0EYer0R630CNu8Vsk8i iKS3IW05G0lXk+/YhcIHc7Oj9+g3M0U5/E9YWsq8TcfhwLgNxh5IGfCe61zKHOBjIwA4 sit6ADOuLmw5Ip1vUxrcm87A3v2L4a9yWutfNnVY9PUN9XyO5yGGtfUMDTMqzZFbffYj 5Zcan5imIc3h5gYxz8mB/5UXWB/gUSaNq1wo/e3uLXq4Fahn7MSt9Ot6uxyZQij4trMK 8w8MNwM9cUO3IhWsn2DjkvFWWcBdjocnug4lDSObZr88evSgFpe2gTS1Yg7F2DGlCyYR 7N/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729370375; x=1729975175; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=N2IIwOb0WS5MjzwX7Ar4Tf0ByMMbQC+8VyK5ncs/WZ4=; b=dbXydn50EVxYJpghHdrUEeOwLNEMouBZLr6mEI/W36mfy2kfgE02efzC8ahEnCeoO9 2qQe+3E8foT5cFAdh27MvXMGR5R7VGCyTtHzdFLEVb7aT0FMraEPr8NbpBQ8+q+sq2Sa oFV5Ortmj0ZjvahRczXJWygVONzG498a2Mch8YV6lE87rMIK73N+nndc8hUIdsdLAeaW GbRG7tc41jk9ORwsAV9hKpjkcFPEq8GOOsgKIHaFD8W1ycq7VKgn0XHVj6SYgyhNlBlL KzIGJoeTyaoCf16SFcJUgAG35lMZkh7WsK4teHI3148GYT6NJTm1iZRbUMzlBUZEMCeG Ixeg== X-Forwarded-Encrypted: i=1; AJvYcCVAQZtTwT20Yg5InVPJvTW/ofxWSGqETvcC57N7hOHIH/CqH1deDjDQ8DNHfB/SGkz/bRqmj/8ubygtUf5eRdaH@lists.infradead.org X-Gm-Message-State: AOJu0YyIkS3ZjwbWSwHzGwAJGi741Owb0Xe1JM5XyuVjPFoqZ6sEeDnv RPcKIu8LlKjVoy3eTK3cPv+eYjbfPyHuPNtdvaTw5EAJ+qM3/FbxqdFsJc0zqO4= X-Google-Smtp-Source: AGHT+IFJmaONnNzDS1StT7soHVcNHTxkZt6WL0X20rcIVtffIIlnvCMeyQCm2Dr417AOF9ld+H4WCw== X-Received: by 2002:a05:6512:6ca:b0:53a:38:7b8c with SMTP id 2adb3069b0e04-53a154950dfmr3232155e87.34.1729370374911; Sat, 19 Oct 2024 13:39:34 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-53a224202d5sm37564e87.136.2024.10.19.13.39.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Oct 2024 13:39:32 -0700 (PDT) From: Linus Walleij Date: Sat, 19 Oct 2024 22:39:31 +0200 Subject: [PATCH v3 2/9] ARM: dts: bcm6846: Enable watchdog MIME-Version: 1.0 Message-Id: <20241019-genexis-xg6846b-base-v3-2-8375a0e1f89f@linaro.org> References: <20241019-genexis-xg6846b-base-v3-0-8375a0e1f89f@linaro.org> In-Reply-To: <20241019-genexis-xg6846b-base-v3-0-8375a0e1f89f@linaro.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Zhang , Anand Gore , Kursad Oney , Florian Fainelli , =?utf-8?b?UmFmYcWCIE1p?= =?utf-8?b?xYJlY2tp?= , Benjamin Larsson , Broadcom internal kernel review list Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linus Walleij X-Mailer: b4 0.14.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241019_133936_979110_BB0FFC23 X-CRM114-Status: GOOD ( 11.36 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The BCM6846 has a BCM7038-compatible watchdog timer, just add it to the device tree. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/broadcom/bcm6846.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/broadcom/bcm6846.dtsi b/arch/arm/boot/dts/broadcom/bcm6846.dtsi index c2a8deef150a..f4f1f3a06eac 100644 --- a/arch/arm/boot/dts/broadcom/bcm6846.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm6846.dtsi @@ -99,6 +99,11 @@ bus@ff800000 { #size-cells = <1>; ranges = <0 0xff800000 0x800000>; + watchdog@480 { + compatible = "brcm,bcm6345-wdt"; + reg = <0x480 0x10>; + }; + uart0: serial@640 { compatible = "brcm,bcm6345-uart"; reg = <0x640 0x1b>; From patchwork Sat Oct 19 20:39:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13842906 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 44883D3C92C for ; Sat, 19 Oct 2024 20:45:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=76iS9IrOL+avAFMLHux4lzigT6bPCj+idYdT2QESLs4=; b=Yw13KjrULp3LV0D+B9twkzERNz FmcN83Clj1qnoXLHmhlopqRcvzeCZiaSitdBImpUXZ5TGF9UAzkVX3zhRWXsxN4Mk0VwhW3lR+CTv E7kya8z5/IwhVDkhL/adYFAtKt/NLbXmZFZWzuISuZ6sRt2HusUuqhJCb6CMHlJU7K8CJNwGKXVgc 9ETvgs570cMN2HTmG6Q4T/1Ex1udu0GJ3pdKNuyYNKGiBYcLeDAK/xE+KBAcaS58CvJlbh/+B9Nny 7IRRGlSugMeuacvMc3PnM+ONiC3NxDZW+2swp8dyh5LrHZKljWDeRbHy1ejj4DI2K3NdLTjpel/sr h2aVDeHQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2GKL-00000003uEt-1v1O; Sat, 19 Oct 2024 20:45:33 +0000 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2GEc-00000003taB-1mWP for linux-arm-kernel@lists.infradead.org; Sat, 19 Oct 2024 20:39:39 +0000 Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-539e13375d3so3548461e87.3 for ; Sat, 19 Oct 2024 13:39:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729370376; x=1729975176; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=76iS9IrOL+avAFMLHux4lzigT6bPCj+idYdT2QESLs4=; b=XbH9hynKwkH43z2u9w+OhDtgo+M5SUJ/Os6Xsr0iekPc2LsHlPv2znBLnm6/q8hjxS 7vwpPGqiy8TM8nPSllFoWva1p+VfzxrDZC7u4/xnfl/LI97OzYgSkf5j+Z+wfgZabzIz qIbUOBn6L6QksYA8v/DgRDGenUzQPCWKPSuKQ74oD0KXpy7P4Jkbw7FyTYVaGTwC9biN qcvnYg23jBfpTnqQprEMhsL03U6aJro9jBnoVuMx8cwNXeE50PeO4E78IO5p6C2G21Kj Q0HtOXjRhZiHp3KAo5/2o8HVFL4QDv0RbI5g2ryni82tG6ZSTsmzxXt3UZ4RK7jgm9KC UOWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729370376; x=1729975176; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=76iS9IrOL+avAFMLHux4lzigT6bPCj+idYdT2QESLs4=; b=LRfMblWkBrcsn8iFfFtGUWlmsru84YpCf/nRvT2yga2slR9PELV3P4vWQ5vr4dHsab 42zDDjPuh7JZuNh58e+cOPSgap/xXn5GbR0GrZhPjwQPOe9HNVXEUCKzBzCMG2moSWfp d4dBEcocMpzxLlTqDkpP6YeWy6btaY+BayTp3ja1D8L5zA/B8Cg5jUAPCAyjEum9amCh R1fBQiQuDQRGQSwsX9uVaromNW23OTKJcq1R5OkHZgA/vuQZcl2rAgUzj/0KlRVLMzWr DT0fA8bG3S/vTBQqCMp7ThjfcjOGXqUy0d2+nv7z02dajrbcTy8XB30tEsMFSfjPBQfk UXKg== X-Forwarded-Encrypted: i=1; AJvYcCUfndRet0E2ghW22ePQ+q51kHiu1Flx78avfc1RQNEUFtM2EaKuVnZIAd45EoBITeIuMAH1GM11ZtxwRF7r0c4n@lists.infradead.org X-Gm-Message-State: AOJu0YzhxtrPaWPW8LXNnsI2eFenuY8ohfUJNAuHeTD8VmyznXj82n+d GGWTURBGQWAyGmFz1sKQTJG5g/mEdgQzeIRXTvc2rvu4FdiOI24m0H+ZbzSTzz0= X-Google-Smtp-Source: AGHT+IEB3/yGsKyTFxUImL1LWLXOOOvApVg1cvzkjIgd+yHxxvNS365uAL/Zw4hAqdeVv9cQlQSzNQ== X-Received: by 2002:a05:6512:1055:b0:539:fbfa:4a9f with SMTP id 2adb3069b0e04-53a1550ca17mr3358502e87.58.1729370376472; Sat, 19 Oct 2024 13:39:36 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-53a224202d5sm37564e87.136.2024.10.19.13.39.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Oct 2024 13:39:35 -0700 (PDT) From: Linus Walleij Date: Sat, 19 Oct 2024 22:39:32 +0200 Subject: [PATCH v3 3/9] ARM: dts: bcm6846: Add GPIO blocks MIME-Version: 1.0 Message-Id: <20241019-genexis-xg6846b-base-v3-3-8375a0e1f89f@linaro.org> References: <20241019-genexis-xg6846b-base-v3-0-8375a0e1f89f@linaro.org> In-Reply-To: <20241019-genexis-xg6846b-base-v3-0-8375a0e1f89f@linaro.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Zhang , Anand Gore , Kursad Oney , Florian Fainelli , =?utf-8?b?UmFmYcWCIE1p?= =?utf-8?b?xYJlY2tp?= , Benjamin Larsson , Broadcom internal kernel review list Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linus Walleij X-Mailer: b4 0.14.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241019_133938_499598_6256744C X-CRM114-Status: GOOD ( 11.59 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The BCM6846 has the same simplistic GPIOs as some other Broadcom SoCs: plain memory-mapped registers with up to 8 blocks of 32 GPIOs each totalling 256 GPIOs. Users of the SoC can selectively enable the GPIO blocks actually used with a certain design. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/broadcom/bcm6846.dtsi | 80 +++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/arch/arm/boot/dts/broadcom/bcm6846.dtsi b/arch/arm/boot/dts/broadcom/bcm6846.dtsi index f4f1f3a06eac..dc0c87c79569 100644 --- a/arch/arm/boot/dts/broadcom/bcm6846.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm6846.dtsi @@ -104,6 +104,86 @@ watchdog@480 { reg = <0x480 0x10>; }; + /* GPIOs 0 .. 31 */ + gpio0: gpio@500 { + compatible = "brcm,bcm6345-gpio"; + reg = <0x500 0x04>, <0x520 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + + /* GPIOs 32 .. 63 */ + gpio1: gpio@504 { + compatible = "brcm,bcm6345-gpio"; + reg = <0x504 0x04>, <0x524 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + + /* GPIOs 64 .. 95 */ + gpio2: gpio@508 { + compatible = "brcm,bcm6345-gpio"; + reg = <0x508 0x04>, <0x528 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + + /* GPIOs 96 .. 127 */ + gpio3: gpio@50c { + compatible = "brcm,bcm6345-gpio"; + reg = <0x50c 0x04>, <0x52c 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + + /* GPIOs 128 .. 159 */ + gpio4: gpio@510 { + compatible = "brcm,bcm6345-gpio"; + reg = <0x510 0x04>, <0x530 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + + /* GPIOs 160 .. 191 */ + gpio5: gpio@514 { + compatible = "brcm,bcm6345-gpio"; + reg = <0x514 0x04>, <0x534 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + + /* GPIOs 192 .. 223 */ + gpio6: gpio@518 { + compatible = "brcm,bcm6345-gpio"; + reg = <0x518 0x04>, <0x538 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + + /* GPIOs 224 .. 255 */ + gpio7: gpio@51c { + compatible = "brcm,bcm6345-gpio"; + reg = <0x51c 0x04>, <0x53c 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + uart0: serial@640 { compatible = "brcm,bcm6345-uart"; reg = <0x640 0x1b>; From patchwork Sat Oct 19 20:39:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13842911 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 1FC55D3C92C for ; Sat, 19 Oct 2024 20:53:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=OhWQnF8BCkwCGLa8qrcOGNDmv8gEfnDZzrj7T2kyZh0=; b=sK2i08Ri7tp90yB7T0eom2lMUS mMyS2vXBWUq+qpg7S1evC+9ANLODhQFqdE8EPOH863eWji5mP4kFbDzsFoAQdqgo2PDA4JK9YqcQf X+t54opXKAABZfnBkz0xSkB4Sg9WvewG7y9rwfomkvxFleD6tXATN9geT0T4IKCToXB654ZDI59gf 6ohCrULvOzKC4W1PJLN3kXjX5AUwmYc5gHIumVt5vi+ezjEhBMwY6n645pHCUsviW5WpestvweRS4 z1jeJlVQnXwlW//m2jy1OBRwiOlvbL21O4q7syNZPjJ+g9I/egLICUk37e5UKur3GP2nIPRaCex8g SNmTSflg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2GRw-00000003v9M-3ooX; Sat, 19 Oct 2024 20:53:24 +0000 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2GEe-00000003tab-2DiJ for linux-arm-kernel@lists.infradead.org; Sat, 19 Oct 2024 20:39:41 +0000 Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-539f8490856so3551881e87.2 for ; Sat, 19 Oct 2024 13:39:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729370379; x=1729975179; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=OhWQnF8BCkwCGLa8qrcOGNDmv8gEfnDZzrj7T2kyZh0=; b=nll+XJgsXV2VTOLV3hfeh0Dc0AJkPeKpEJi8NNcjZyZUjOkFtwT2sLUhn1+gIsc4Wm LF5Iyv8u3ImmIuvC4j1JadI47oswEIhCzPROi5H2SVMOHkNOIZzKNECiaHclflgsOZaX 6UBhFWoaKB9kOXsSHJ6iTr340YXaoyK0rC8sm4OEK5f5vyELsLMKheQNHnBkE9hviNSi 3XuldfGpqkuG+Relnlyh/CV9kXlT62UaFg6YFmRvO3JNAqn5V/jaNUQMLlYrD2IM28Zo S7jRFPKAmjbr22fdJmAk1X/ejq/mh5CCqJBn5gQl3ng++rNm6Bru4NHoUrpt7i6QXZtE /k0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729370379; x=1729975179; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OhWQnF8BCkwCGLa8qrcOGNDmv8gEfnDZzrj7T2kyZh0=; b=Ic8y+byDP4CzuLEYCnUP5quPaZuwO8HfJjYc3AvHejRUjrRpCr+CciPO7wiGE0p4G7 NhEvFRVr6zyl0v3z3sCR0E00vvlJHA7EY5T12iobwN5fQKbjvm2gqwxsKP5A1xPlZXl+ BsxmmC2DuMIn0gneHp5/pb/wu8/BJOeRTbzsMTvZe0uL6t3G7l0Fr8yPOhDoUz9Zdff2 6SURRRP+6GrSK5/1/RyKc7SkNJGfEOlDC8+7HhNuooSALBhx36a34lZZRpeXlK5i2o8U PVF1fwaPL4iYyaAnXc9sYIPKq//+5ELtvHhYzH60HbA8yOEa14Hch+i3COlZ96rygrLG W/QQ== X-Forwarded-Encrypted: i=1; AJvYcCVlnMK3Ph/+2JK05C8vJ07BO66hJL5g1sgsuVEDkJWLUfy7LhI33XR5QRtEP9zv577I6xk5FRf9UdbuhPXJkkO+@lists.infradead.org X-Gm-Message-State: AOJu0YxXY7uDDaUZaxZVTgcLiQe1sOLQzNY6ORz8bJEjTvnjyCGFGQAD AtPqhv6ARBLaX6istsk9VZiIAoRO778bzKsi3JtJjtLEZJctGS+QL1P1T3D6ITagWZ0M37ALu1l J X-Google-Smtp-Source: AGHT+IFJTlkKUsd8fSIH7OhL9HlvFmA7N2n8O6YZN6HfOEwdfUBIDpZAU2T/ltVuYeCJclGfgNlF4A== X-Received: by 2002:a05:6512:3b12:b0:539:f807:ad93 with SMTP id 2adb3069b0e04-53a154e76acmr3573673e87.38.1729370378539; Sat, 19 Oct 2024 13:39:38 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-53a224202d5sm37564e87.136.2024.10.19.13.39.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Oct 2024 13:39:36 -0700 (PDT) From: Linus Walleij Date: Sat, 19 Oct 2024 22:39:33 +0200 Subject: [PATCH v3 4/9] ARM: dts: bcm6846: Add MDIO control block MIME-Version: 1.0 Message-Id: <20241019-genexis-xg6846b-base-v3-4-8375a0e1f89f@linaro.org> References: <20241019-genexis-xg6846b-base-v3-0-8375a0e1f89f@linaro.org> In-Reply-To: <20241019-genexis-xg6846b-base-v3-0-8375a0e1f89f@linaro.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Zhang , Anand Gore , Kursad Oney , Florian Fainelli , =?utf-8?b?UmFmYcWCIE1p?= =?utf-8?b?xYJlY2tp?= , Benjamin Larsson , Broadcom internal kernel review list Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linus Walleij X-Mailer: b4 0.14.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241019_133940_602203_8C11084D X-CRM114-Status: GOOD ( 11.36 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This adds the MDIO block found in the BCM6846. Use the new "brcm,bcm6846-mdio" compatible (merged to the networking tree) for this block. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/broadcom/bcm6846.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/broadcom/bcm6846.dtsi b/arch/arm/boot/dts/broadcom/bcm6846.dtsi index dc0c87c79569..d6f5fe740ca5 100644 --- a/arch/arm/boot/dts/broadcom/bcm6846.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm6846.dtsi @@ -223,5 +223,14 @@ nandcs: nand@0 { reg = <0>; }; }; + + mdio: mdio@2060 { + compatible = "brcm,bcm6846-mdio"; + reg = <0x02060 0x10>, <0x5a068 0x4>; + reg-names = "mdio", "mdio_indir_rw"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; }; }; From patchwork Sat Oct 19 20:39:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13842912 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 20667D3C92D for ; Sat, 19 Oct 2024 20:55:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=CM/UNHN9v/TEr4fnRLKm3BTDGD3gG97Lc8xw4//SLkE=; b=pptFIPTTikmEGE2eU7bFFFSALi 9zfVacTmmMpIE3xQiRHA2jEeXpv5Ddd+AaBmN5YEXT8imdZ3twiMk+Xxeo1o+c1G6XyeMM1Z6npHh 26Yih7xRAhAI3ByEMPNOsVwIIOhWF+OabpvclJ6FD3P/V/Waj/a1LOxhmiCmmJvGTtJ/gveXTC/lc 94Ogpos18CyyzeIKxpe40qrHiUvCg4N4csL3wRfo5KSxfe17xcpSpsxBWRGRg0zLkVMkMrg+ZO1vi ITcapeO8poo2dCRvJiNngp+cY/w2c2fA5oHDJQR5ZzSY3JoTxNuxSuJ9FeisPB+FGMjhybXtPkTwj 40ULsPZg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2GTN-00000003vF7-270D; Sat, 19 Oct 2024 20:54:53 +0000 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2GEg-00000003tax-3hAZ for linux-arm-kernel@lists.infradead.org; Sat, 19 Oct 2024 20:39:44 +0000 Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-539e63c8678so3994827e87.0 for ; Sat, 19 Oct 2024 13:39:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729370381; x=1729975181; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=CM/UNHN9v/TEr4fnRLKm3BTDGD3gG97Lc8xw4//SLkE=; b=jczu2/prcGilKUGvHkiv4kGm4/tZ4nwFzI5jezKaSVIsDlkUUyf4RaEroeN+pPN98t QeqP1CQP2o3g8022p4aRf16gUbkwDIisx26U8BZrG5yTNX6QJdtFzOimH6ipPCA3eDxx SuKOmUF7887r2ztRwzqJz3hqpP094AbzzLZmbBpw5h8lQnvj2nvz965uq+RCHqE81Rfd zhx1CkFHr7YgXkaJBkwyy3Co/K/oG1MQisYxuQhWJRVAbf3M864SNWcYHwuBsNylw66W 2VYaOKMK/YIrGFwcY1QyVZDDLt7JVMbJnmIA3rZm8yYg1P06BazueB4+vgDJkhKCWF8d /3Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729370381; x=1729975181; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CM/UNHN9v/TEr4fnRLKm3BTDGD3gG97Lc8xw4//SLkE=; b=L9AqqDL40kp847ioJ5qbYADmNYluLX/8gpMYy4JnZnPeTN6YC5bYetVjBTdQhiA5gK q7LUB+NuNeMvDFhhbKjo9oBdin0WGznQ08O4vcHv4LXj0plsTgNP6TqyvOT2GlZ6R8qV qvNPT33LYkHn23zrCAmmED8t9GNIWDNHn/wG0o9BdMfIFsDu/xdHRWgGM02UfiukmM8l 7lUcML7ElX2s6HR8SdRqweCI7H0NiZOEkbVnM0JBCdDFy/ulqEvmWeOGWUKR4r23pGza FSY4ZvKciaX6Ynh71S9YFl/bjsGwAS8S69FdTY04JxLbORmyEABEw5bzKTN9JuS8uHiy 2n6w== X-Forwarded-Encrypted: i=1; AJvYcCX0e2CAb5GUXDCvJFRkkbOZ4EirBNKnBuzCBeqsC2lkM85RQets7WiUrSohIBm2HJSfA30N+UPn48HhpgLEPy0b@lists.infradead.org X-Gm-Message-State: AOJu0Yy0zLhSJia1HJ8VpFF6Tl46yzHgT2EWRD+riBrcxkvSfG85UOz1 Y/L/dJFV1kxB9riSGcRq3fr4/aJGmDUCWaQrb5aDhU9ue7AgawLrCK1RVODzkwQ= X-Google-Smtp-Source: AGHT+IFvU8hfYKd5cejGE+kiGfXrZs0nVqeK1uKT/GoOxz7puFjmJl2dEIFyZPhP66edY+6dyP7FiA== X-Received: by 2002:a05:6512:12cd:b0:539:968a:91a8 with SMTP id 2adb3069b0e04-53a154f8eafmr3603882e87.47.1729370380651; Sat, 19 Oct 2024 13:39:40 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-53a224202d5sm37564e87.136.2024.10.19.13.39.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Oct 2024 13:39:38 -0700 (PDT) From: Linus Walleij Date: Sat, 19 Oct 2024 22:39:34 +0200 Subject: [PATCH v3 5/9] ARM: dts: bcm6846: Add LED controller MIME-Version: 1.0 Message-Id: <20241019-genexis-xg6846b-base-v3-5-8375a0e1f89f@linaro.org> References: <20241019-genexis-xg6846b-base-v3-0-8375a0e1f89f@linaro.org> In-Reply-To: <20241019-genexis-xg6846b-base-v3-0-8375a0e1f89f@linaro.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Zhang , Anand Gore , Kursad Oney , Florian Fainelli , =?utf-8?b?UmFmYcWCIE1p?= =?utf-8?b?xYJlY2tp?= , Benjamin Larsson , Broadcom internal kernel review list Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linus Walleij X-Mailer: b4 0.14.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241019_133942_952719_FE6C01D4 X-CRM114-Status: GOOD ( 10.80 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add the BCMBCA LED controller to the BCM6846 DTSI. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/broadcom/bcm6846.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/broadcom/bcm6846.dtsi b/arch/arm/boot/dts/broadcom/bcm6846.dtsi index d6f5fe740ca5..378dbd1b41b3 100644 --- a/arch/arm/boot/dts/broadcom/bcm6846.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm6846.dtsi @@ -198,6 +198,14 @@ rng@b80 { reg = <0xb80 0x28>; }; + leds: led-controller@800 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "brcm,bcm63138-leds"; + reg = <0x800 0xdc>; + status = "disabled"; + }; + hsspi: spi@1000 { #address-cells = <1>; #size-cells = <0>; From patchwork Sat Oct 19 20:39:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13842907 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 EB780D3C92D for ; Sat, 19 Oct 2024 20:47:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ASbzm1dKYI7MS9b7uAT3zGV8ddrL3dIka7wQzQqZ70o=; b=Bn1K4rDcytGx0mSqbfXBvg9mx4 feC50PuaVa2U4QtlluLKoEdMl8YE+yx6YO4w0lNHSlZ3SNWDJ4x6PQlEqx6/AFEMLAI4b2LWKWCRd FBT696wAQg384byhz+g2UM7WrfPRE1I+Mutf8djikL8X4S9Vt+9hXvzUAbVulshOJ+iPV5YWmaPiP stQp9g2X4tXG9uF1+J1Ju8RUHRB69wJcjkBtAywCj5+aFHXNi+BwoypJeNTjwgcczc5WH5E+eogpP 3ZzW8IaDLdamqIUhT9+wrBemOhXplhXVRF5p7i/8C4qNLSqrIaixTpgeLz3Mi4xmqC6p4RIfAXLua 6W3U9kYQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2GME-00000003uWx-1QOj; Sat, 19 Oct 2024 20:47:30 +0000 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2GEi-00000003tbH-0XBK for linux-arm-kernel@lists.infradead.org; Sat, 19 Oct 2024 20:39:45 +0000 Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-539e6c754bdso3208817e87.2 for ; Sat, 19 Oct 2024 13:39:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729370382; x=1729975182; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=ASbzm1dKYI7MS9b7uAT3zGV8ddrL3dIka7wQzQqZ70o=; b=CZ8R/4k6Ap9h/afnG6FpPBSKL8s1RMJ2diwXa2puphW3nkeZKajRPe2KVtaeKDpkGi oVcipEslDCePOSzu72KRahR2wEE/vgnaa/i6ThWwanOMAVBN4CHepm1tHA40K9P+fp8/ OyogdeTotdFcpDKXrgXjkns1fG7owuR9od02c1QQhDYvhGj1myAVThJ1EZLPqSfPfj/r Q9U/LTdp+SDRGYM5cLv1pbrii5mSiukiBchAgKZvyxLm+437JpXqJ073V2ufxbZamNYl 07+3LZdLoTIh6WYUVE5QdwkuOciRkYvg0ATZkuQKHP9+Wm2U45+BSCpuTiBK1xd7XVhB idng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729370382; x=1729975182; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ASbzm1dKYI7MS9b7uAT3zGV8ddrL3dIka7wQzQqZ70o=; b=IdOvALQSeKk6/aw8rKPxbBV+6UhEEHq0ASqC2eNMN3pZoLOhQXdYpJpaS5jPmpswqc dwIyC5NIMF9v1/DD4O0AMEko94cgO7DVQLpkBmXdYgE+LTXol4DnqLbfvq65IHzlVsIE Fe0SPx0ju93IWfDvb7I0w737oC/P5vGGTSbx36ZljLPWJ2mkngb3dcuJeOl03l+rgT34 alI19AcAMJi2Jl8fQNsr3KsTg94kHJCfHkk91iMmQa8IGXcMJcUkWUeeF0axLTN1It/k bs/42tST+i0GyzroPnTws+I0gHVXx4iRp5LO5jsa1CLWTrkOe7qRySyy0jhhzUEHmoQS lHFg== X-Forwarded-Encrypted: i=1; AJvYcCVyg+ozJiRCCKTzhuC+xWLoPl/5zO0rG1ZKqZB2ueUh4RQ0su0bBl/KwJ3EZGuqgaW3BAS5pxTCaeBgtf5JYSMD@lists.infradead.org X-Gm-Message-State: AOJu0Yx5OAh9Z4AZxcUaecamicf41OoHgwTtg94fMskZjFsGCM7oujSK dpTTo+WO5mkdQJV7tYA9lNiNAz17yDv7nKDG57taw6S1Q9FoIVdcF8QSHod+S00= X-Google-Smtp-Source: AGHT+IE8PmLW2uHN7CzUZBeuCZkeAP4PRUg5hZ2qcYw3GGxZ+s7W6KNBfnAdYuQHUxVmvDGm+dOkZQ== X-Received: by 2002:a05:6512:3e0b:b0:539:f51e:2457 with SMTP id 2adb3069b0e04-53a1550bbfamr3367061e87.52.1729370382336; Sat, 19 Oct 2024 13:39:42 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-53a224202d5sm37564e87.136.2024.10.19.13.39.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Oct 2024 13:39:41 -0700 (PDT) From: Linus Walleij Date: Sat, 19 Oct 2024 22:39:35 +0200 Subject: [PATCH v3 6/9] ARM: dts: bcm6846: Add ARM PL081 DMA block MIME-Version: 1.0 Message-Id: <20241019-genexis-xg6846b-base-v3-6-8375a0e1f89f@linaro.org> References: <20241019-genexis-xg6846b-base-v3-0-8375a0e1f89f@linaro.org> In-Reply-To: <20241019-genexis-xg6846b-base-v3-0-8375a0e1f89f@linaro.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Zhang , Anand Gore , Kursad Oney , Florian Fainelli , =?utf-8?b?UmFmYcWCIE1p?= =?utf-8?b?xYJlY2tp?= , Benjamin Larsson , Broadcom internal kernel review list Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linus Walleij X-Mailer: b4 0.14.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241019_133944_221445_6719B6C7 X-CRM114-Status: GOOD ( 15.11 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The ARM PL081 DMA controller can be found in the BCM6846 memory map, and it turns out to work. The block may be used as DMA engine for some of the peripherals (maybe the EMMC controller found in the same group of peripherals?) but it can always be used as a memcpy engine, which is a generic "blitter". I tested it with the dmatest module, and it copies lots of data very fast and fires hundreds of thousands of interrupts so it works just fine. Add it to the BCM6846 DTSI file. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/broadcom/bcm6846.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/broadcom/bcm6846.dtsi b/arch/arm/boot/dts/broadcom/bcm6846.dtsi index 378dbd1b41b3..e0e06af3fe89 100644 --- a/arch/arm/boot/dts/broadcom/bcm6846.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm6846.dtsi @@ -240,5 +240,18 @@ mdio: mdio@2060 { #size-cells = <0>; status = "disabled"; }; + + pl081_dma: dma-controller@59000 { + compatible = "arm,pl081", "arm,primecell"; + // The magic B105F00D info is missing + arm,primecell-periphid = <0x00041081>; + reg = <0x59000 0x1000>; + interrupts = ; + memcpy-burst-size = <256>; + memcpy-bus-width = <32>; + clocks = <&periph_clk>; + clock-names = "apb_pclk"; + #dma-cells = <2>; + }; }; }; From patchwork Sat Oct 19 20:39:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13842908 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 41A04D3C92D for ; Sat, 19 Oct 2024 20:49:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=hFgpgpsGiP4+DQBthLLgLzgemSHp+0cBH1ixssAB0HI=; b=xnAQtjXUcu6jwoQKQ6nlz8S0Hl 4oRJlH//MRDakjWS4ISTgWXpxghHU9cBhd5jkMn5tx4C9LfufXcaLkajOL9AYOVDUUKpOPju7hXDq IBjkbNmsrMt/L+FZYzFwYuZri7stgNB+wEcfDusTSWcNYDaMAq9L4/1kIOjGPOtTEVQYCrhD1ojkE x1XAcpI0WkbLHi9kqJ9vPkNFcYLMcBIuR/GDBum1pN0RZdARIcY5tGyu1IhVVtd4I/25r54mgE8t0 BRxNly15NBU93jhWIxvFgMXLT+tjDIUHiJf5UsuF+7upShB+MRTu3hDD+OPTGAkhTDOZFkzQPUmZe 9J/s6iFA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2GNe-00000003ufB-0SG7; Sat, 19 Oct 2024 20:48:58 +0000 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2GEj-00000003tbh-3i2I for linux-arm-kernel@lists.infradead.org; Sat, 19 Oct 2024 20:39:47 +0000 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2fb559b0b00so28820281fa.0 for ; Sat, 19 Oct 2024 13:39:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729370384; x=1729975184; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=hFgpgpsGiP4+DQBthLLgLzgemSHp+0cBH1ixssAB0HI=; b=oBtuOadkUzHy4KNkUn8dGbgko1PwfBGlbenqTTCucE4WG42sF3CEQTgD4nw1OQSR0P 1dr+3aOC+P1C82tXYKJVyBzGr3q5v6QpvNCBMYyukKMXmmRbG+E26aPaJhDcvVuY7GZ8 9JJn84Ft6z0tNHvQ2Kd7UOp7zeQcl6GRl9dSi+QnbzJEo9Ugo59r8uWx0z+mfUdxkCn/ cTCmMdNJyBJnOKbcYwC17LxbpH3YEbggh7x6qpvee1nJ1eKMyO2vumXCwM4/yEXFl2tN 5Zm/sPOCxNPZhZW6EfXq6azwLKbGpGwNzlBOpix2Yo1njX2v2hYLDGNq9W3lexuppOqE 4RSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729370384; x=1729975184; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hFgpgpsGiP4+DQBthLLgLzgemSHp+0cBH1ixssAB0HI=; b=Iaq2ur+tKFGq4RJsFFRtWuzjGJMjALllC7jyjtvX8HMfplEvCcvWEzqdQQgac9v0v8 JLQzqR/hDEeRaaMnR7eEiYEE2w6BEJmsNbRUD+P3ggEFP2h5Ih3r9/b2OXvrNAdRo89C LSOXq4/k1jbUjd//PvwFTHDGL161BWi4RGJcTJcGev5QPMVLzhlRd62H6AHxnTEH6Jpb PBN+TrsCTo8DSSIK04fXIvqNquqhmi1qIhXrkw5vYogT2v8YDWXXc9eMGY9/yHpv4w5E zsU41O8RtCv/lsmakjtTEJawmkT7zXce9Y5ADe7HlQ0xCgnbJZrsjduZfL8Gva+2QkI9 i5YA== X-Forwarded-Encrypted: i=1; AJvYcCVvNFvlwMTMX/pD1pwKUCV2COV3I4JDFQsRqRdFfAoBpPC31iVk91eQEax028pg1oRXrw2lH9BC4K8qa55gP+u5@lists.infradead.org X-Gm-Message-State: AOJu0YxF9pICf7M5ftMjVaZ+HJaWI3OQKl2+j5nrCFi5zSjEVYgADuEy qtys16n/R6BvoI1f+TDHNvXk4kk+I98eaLGr/0F7Xu/QglfaRm/Hj6/chC1iUhA= X-Google-Smtp-Source: AGHT+IEE3/vstVep3opEXWJshJOkch9o/khCX9gDHJs37v6aGz0dQUwzLr6qqu2eqi94kHl37XAuIw== X-Received: by 2002:a05:6512:b08:b0:536:796b:4d94 with SMTP id 2adb3069b0e04-53a154494fcmr3516043e87.41.1729370383903; Sat, 19 Oct 2024 13:39:43 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-53a224202d5sm37564e87.136.2024.10.19.13.39.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Oct 2024 13:39:42 -0700 (PDT) From: Linus Walleij Date: Sat, 19 Oct 2024 22:39:36 +0200 Subject: [PATCH v3 7/9] dt-bindings: vendor-prefixes: Add Genexis MIME-Version: 1.0 Message-Id: <20241019-genexis-xg6846b-base-v3-7-8375a0e1f89f@linaro.org> References: <20241019-genexis-xg6846b-base-v3-0-8375a0e1f89f@linaro.org> In-Reply-To: <20241019-genexis-xg6846b-base-v3-0-8375a0e1f89f@linaro.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Zhang , Anand Gore , Kursad Oney , Florian Fainelli , =?utf-8?b?UmFmYcWCIE1p?= =?utf-8?b?xYJlY2tp?= , Benjamin Larsson , Broadcom internal kernel review list Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linus Walleij X-Mailer: b4 0.14.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241019_133946_010758_C0EA9604 X-CRM114-Status: UNSURE ( 9.66 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Genexis is Swedish/Dutch company producing broadband access equipment. Link: https://genexis.eu/ Acked-by: Rob Herring (Arm) Signed-off-by: Linus Walleij --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index b320a39de7fe..43d936361fdd 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -567,6 +567,8 @@ patternProperties: description: Gemtek Technology Co., Ltd. "^genesys,.*": description: Genesys Logic, Inc. + "^genexis,.*": + description: Genexis BV/AB "^geniatech,.*": description: Geniatech, Inc. "^giantec,.*": From patchwork Sat Oct 19 20:39:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13842909 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 D2666D3C92C for ; Sat, 19 Oct 2024 20:50:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=BIlz5IPvjiz3SstcywK4OPs5YHovdzCuvfijsrKaVOk=; b=xvwDAPNviqb1+R2WzHSq3A3+cy rwBT2nKgnv9Ldywy8+xn/Vc165LfB1aa8kTqILw+bq/+1TrYfPoXp+H0+xKJjJnd1UvJgYaHCWYHB zfjttPFGBnJ8A76EDPxfboz7n8HLbI2/+8DxbjrQY7Yr/4qQeJYvL+145RSFW4citfDFYg5cVqrbK Br4PXAqe0wvGgKX6pl68tP89GAql91B3iRxjcPJGxY41knKcHSr/FEeZJUAigpLf3uUndSkLcFsly WZHe6ZUk1vF4VjggsipqL1Vzo2i0xTwIZGBX4mJGtr8/CzGcm/RV92t5zQ9jFst7jKoi9z27x41Ru NiSpah4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2GP6-00000003upv-0Vcx; Sat, 19 Oct 2024 20:50:28 +0000 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2GEl-00000003tcT-1MOw for linux-arm-kernel@lists.infradead.org; Sat, 19 Oct 2024 20:39:48 +0000 Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-539e6c754bdso3208839e87.2 for ; Sat, 19 Oct 2024 13:39:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729370386; x=1729975186; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=BIlz5IPvjiz3SstcywK4OPs5YHovdzCuvfijsrKaVOk=; b=Tzjx8vg1ff2+HDxurkKr3oriW9p4X+eACiIJLwsWzc/U2TIXhUW6xlUstBnSLCAkkj y03N0ORLGW8TKN/2wy66z8jlsYJPEquoz1J04M9lk7O6xW7tmc7evFUp0CXoYsbtA+dD VKsOYaHz+ORZNV4ycmbYwD/1Q1jeRoIFl9AcWgzS8SXpDfquvPPkaxIIely3Dc3dbnLI NBDDRWyb/fZmdgUkLJTUVMpz0izABRGdLsd7YhdEbZX/r1nNP+LsAnYEJf9BL5ewSZYZ RtQSILj6LbOsVQH9FwxFqFWaPt6Tz+4C/Arn2srkQEZtS1ZGJSF2UoODnbK5bfahyxhf eB8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729370386; x=1729975186; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BIlz5IPvjiz3SstcywK4OPs5YHovdzCuvfijsrKaVOk=; b=OhJnrpoRH10GRjxU5S6DBJ6TnN3cdvEQDzrsAhFgs9K7By7oWAauuza1Vai4qhNM8u +Lg+gfWHxCl+4OYtYKyRT1VRKj0kc0+hMyedwxpLlzeGQFoVAJaH3OJ+oEGM4QtsOEX2 slU3oSVZw24bxAYpWQTVwTHT+MpKrO/vbhvGbr2rg5DNnbGstKgE/xoi2RY+RyC7RDC/ I7kQgihcTUUEaJanPffRvtAEsSkZXuegrsCZ3qDHsb+EIOlzBQiUjpvHDFJ8kbrt5Y4R IZRnpp9Zqc7ALng+fWNlcKJGYJ8ElfTcKOQ35MNxLecqiR31laYf3rWpN/K0q/l4+c9D pKBg== X-Forwarded-Encrypted: i=1; AJvYcCVZQJf26kp4942WKEymc3BF6jRMsy/tfroUYpOFFEr3dVWv1wWLKp2gozGp02D+NqBroShZ0LKRSVULterESXJK@lists.infradead.org X-Gm-Message-State: AOJu0YzmxooB2FT2Yt0wXvYumrZugT/5S9lFZBBqFvEGWMEhvG/b0xMb /Js5D67hvFkMaOTgcqDyZpKWNvduviKB/NS+nvwaXE4tGg+y20bXEW3WbTqweUY= X-Google-Smtp-Source: AGHT+IE8bV/yk5kfLQAMOfEdMf3bjp2UunqsZz+3TZUt9pCS3tT5E3q1uCY5AbjRG6XjWjmjKaG+Fg== X-Received: by 2002:a05:6512:3096:b0:539:f7de:df84 with SMTP id 2adb3069b0e04-53a154412e2mr3188883e87.10.1729370385543; Sat, 19 Oct 2024 13:39:45 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-53a224202d5sm37564e87.136.2024.10.19.13.39.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Oct 2024 13:39:44 -0700 (PDT) From: Linus Walleij Date: Sat, 19 Oct 2024 22:39:37 +0200 Subject: [PATCH v3 8/9] dt-bindings: arm: bcmbca: Add Genexis XG6846B MIME-Version: 1.0 Message-Id: <20241019-genexis-xg6846b-base-v3-8-8375a0e1f89f@linaro.org> References: <20241019-genexis-xg6846b-base-v3-0-8375a0e1f89f@linaro.org> In-Reply-To: <20241019-genexis-xg6846b-base-v3-0-8375a0e1f89f@linaro.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Zhang , Anand Gore , Kursad Oney , Florian Fainelli , =?utf-8?b?UmFmYcWCIE1p?= =?utf-8?b?xYJlY2tp?= , Benjamin Larsson , Broadcom internal kernel review list Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linus Walleij X-Mailer: b4 0.14.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241019_133947_408249_C09A3F52 X-CRM114-Status: GOOD ( 10.28 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This adds the device tree bindings for the Genexis XG6846B router/gateway/broadband modem. Acked-by: Rob Herring (Arm) Signed-off-by: Linus Walleij --- Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml b/Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml index 07892cbdd23c..2223234be687 100644 --- a/Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml +++ b/Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml @@ -115,6 +115,7 @@ properties: items: - enum: - brcm,bcm96846 + - genexis,xg6846b - const: brcm,bcm6846 - const: brcm,bcmbca From patchwork Sat Oct 19 20:39:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13842910 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 74FB2D3C92C for ; Sat, 19 Oct 2024 20:52:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=0dEMPSv5xphvOh5Xq8FMvCt68pBBmIf3u2KGvjXht9A=; b=DcSewnOoKz88Vah4MbfRt/+Vdx bnIF0iUFOfevLWJRC7nIeP6leWefeNfJSxu9MbdLDjsqjueOGA3N7zLXeK6vouNq3kLiACMwd9Sdx OwSHH/gGMIwjBiyB88iXDSJOsyOjv1W5L+1wyHrLJj2PF8ck8aAvmjUQ7I3h0u0BppgYqNrY3mBHz JeSo7OHjwBXbyzViaZ7KldEg45Z8ftJ9LEKMFcCvM7vkdVyXiHTCYTELwQbKnrmIvCxWD2veHx4F5 fxeuao5mE0T2DLBMsnCiar8jDQfomvEy9B8l3cgcY1ZgbiRPiZeJWZIeJMJw8AhkoZQzY1U6QugxF PoViWC2Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2GQW-00000003uwM-03sG; Sat, 19 Oct 2024 20:51:56 +0000 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2GEn-00000003td9-16GR for linux-arm-kernel@lists.infradead.org; Sat, 19 Oct 2024 20:39:50 +0000 Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-539e13375d3so3548536e87.3 for ; Sat, 19 Oct 2024 13:39:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729370388; x=1729975188; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=0dEMPSv5xphvOh5Xq8FMvCt68pBBmIf3u2KGvjXht9A=; b=xjJNQGdPfnsu7fbAtDAYzKCz4e9AF0JS6r8QkpITcn1yAM1MxzkrMIVQSPxeULpZUc hlHX4YrkzY4aZDEnVVn1/Lv821y19IXJv8tht8yq09DiPBrRV6HNjG5lSKHMoR5s3LxP 6L2kR7mAQkLYUeK1LhBiieEur0bAiD6vBbb0FAcQ/D1Edo50s1pIJx3IlpywZuy4Jpch DYVPeo1rIcbs1DrVL59eKVQo1eLPVNoF9BBJXXLDn4weYbApcco+VgeYduArHAUeCAhA miZ5L2U2OaOYq4kjvSw8+3EmTAYVVWbiKItMfPrE64hrB9pQBhcGmKSDCe/FxoiHyQbi MoXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729370388; x=1729975188; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0dEMPSv5xphvOh5Xq8FMvCt68pBBmIf3u2KGvjXht9A=; b=DXc6qXZLFNjE8bhhjuPcCFKHCkE6Ux5RDek/MwViprvsaICIf+jZvHgD1ZqgXcf+oZ C2q00kuf8zlKS6/+OH6AAVekX60Ya/cKOW8D0qKqQ5naxIKAxpyWukgjQYzQejSBnLJa MjUkOMVOTvUDFoR6EdtJX208e59k2ZbqSNVWKSFW8TuPeretba8M9KWag4y9RNk8XiqA jCz9qK9pH3E5fNtQK/pOvdyFBVS76gio8WYrguEhfiNzRTUQotonL6FC9tDgc2KK9deB 5ioAazQUMtABY+A/ZQ4SA/RgdLrX4XOrtU1rpiYSp/Ih34vtSR8HFhSrm1/ktw9GsgXp NGHQ== X-Forwarded-Encrypted: i=1; AJvYcCW/QQaQkyqsGBVUh1OQEX457dH6SgE5lffW80V1fuvogaxSmrtbab2OZm3HjekHSR0GE/+RNNatpXmPkOwmHzQZ@lists.infradead.org X-Gm-Message-State: AOJu0Yxkw96JK8QFgEEGivSPVV0vDady8XaL8PfAprQ4jhOGEfpivEX7 dJN5hb4EESNxVmrkk2MBEl/maVrk3/DnQ0zIIjbLUtG/o8VodBMQWct0yzd+HtY= X-Google-Smtp-Source: AGHT+IEZ5zJhvLk21M0QMDvdH2lZRAvmpEkBETr07H5q2BeH89fBuOx4DzEhYrnRQo/8BoQwqOrliA== X-Received: by 2002:a05:6512:1055:b0:539:fbfa:4a9f with SMTP id 2adb3069b0e04-53a1550ca17mr3358576e87.58.1729370387600; Sat, 19 Oct 2024 13:39:47 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-53a224202d5sm37564e87.136.2024.10.19.13.39.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Oct 2024 13:39:46 -0700 (PDT) From: Linus Walleij Date: Sat, 19 Oct 2024 22:39:38 +0200 Subject: [PATCH v3 9/9] ARM: dts: broadcom: Add Genexis XG6846B DTS file MIME-Version: 1.0 Message-Id: <20241019-genexis-xg6846b-base-v3-9-8375a0e1f89f@linaro.org> References: <20241019-genexis-xg6846b-base-v3-0-8375a0e1f89f@linaro.org> In-Reply-To: <20241019-genexis-xg6846b-base-v3-0-8375a0e1f89f@linaro.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Zhang , Anand Gore , Kursad Oney , Florian Fainelli , =?utf-8?b?UmFmYcWCIE1p?= =?utf-8?b?xYJlY2tp?= , Benjamin Larsson , Broadcom internal kernel review list Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linus Walleij X-Mailer: b4 0.14.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241019_133949_363162_B741BCB9 X-CRM114-Status: GOOD ( 15.64 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This adds a device tree for the Genexis XG6846B router. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/broadcom/Makefile | 1 + .../boot/dts/broadcom/bcm6846-genexis-xg6846b.dts | 244 +++++++++++++++++++++ 2 files changed, 245 insertions(+) diff --git a/arch/arm/boot/dts/broadcom/Makefile b/arch/arm/boot/dts/broadcom/Makefile index 5881bcc95eba..d23cf466127b 100644 --- a/arch/arm/boot/dts/broadcom/Makefile +++ b/arch/arm/boot/dts/broadcom/Makefile @@ -36,6 +36,7 @@ dtb-$(CONFIG_ARCH_BCM2835) += \ bcm2835-rpi-zero.dtb \ bcm2835-rpi-zero-w.dtb dtb-$(CONFIG_ARCH_BCMBCA) += \ + bcm6846-genexis-xg6846b.dtb \ bcm947622.dtb \ bcm963138.dtb \ bcm963138dvt.dtb \ diff --git a/arch/arm/boot/dts/broadcom/bcm6846-genexis-xg6846b.dts b/arch/arm/boot/dts/broadcom/bcm6846-genexis-xg6846b.dts new file mode 100644 index 000000000000..a3616fb7b3a8 --- /dev/null +++ b/arch/arm/boot/dts/broadcom/bcm6846-genexis-xg6846b.dts @@ -0,0 +1,244 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2024 Linus Walleij + */ + +/dts-v1/; + +#include "bcm6846.dtsi" +#include +#include +#include + +/ { + model = "Genexis XG6846B Ethernet layer 2/3 router"; + compatible = "genexis,xg6846b", "brcm,bcm6846", "brcm,bcmbca"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + /* Micron D9PTK 256 MB RAM */ + memory@0 { + device_type = "memory"; + reg = <0x0 0x10000000>; + }; + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + secondary-boot@0 { + no-map; + reg = <0x00000000 0x00008000>; + }; + pmc3-firmware@8000 { + no-map; + reg = <0x00008000 0x00100000>; + }; + }; + + gpio-keys { + compatible = "gpio-keys-polled"; + poll-interval = <20000>; + + /* Called "canyon rescue button" in the vendor DTB */ + button-restart { + label = "Reset"; + linux,code = ; + gpios = <&gpio0 41 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&gpio0 { + status = "okay"; +}; + +&gpio1 { + status = "okay"; +}; + +&gpio2 { + status = "okay"; + /* Totally 79 GPIOs are available */ + ngpios = <15>; +}; + +&uart0 { + status = "okay"; +}; + +&leds { + status = "okay"; + brcm,serial-shift-bits = <16>; + + led@0 { + reg = <0>; + active-low; + function = "ext"; + color = ; + }; + + led@1 { + reg = <1>; + active-low; + function = "ext"; + color = ; + }; + + led@3 { + reg = <3>; + active-low; + function = LED_FUNCTION_WAN; + color = ; + }; + + led@4 { + reg = <4>; + active-low; + function = LED_FUNCTION_WAN; + color = ; + }; + + led@5 { + reg = <5>; + active-low; + function = LED_FUNCTION_POWER; + color = ; + }; + + led@6 { + reg = <6>; + active-low; + function = LED_FUNCTION_POWER; + color = ; + }; + + led@15 { + reg = <15>; + active-low; + function = LED_FUNCTION_USB; + color = ; + }; + + led@7 { + /* Activity 03 */ + reg = <7>; + active-low; + function = "lan1"; + color = ; + }; + + led@8 { + /* Activity 04 */ + reg = <8>; + active-low; + function = "lan1"; + color = ; + }; + + led@9 { + /* Activity 03 */ + reg = <9>; + active-low; + function = "lan2"; + color = ; + }; + + led@10 { + /* Activity 04 */ + reg = <10>; + active-low; + function = "lan2"; + color = ; + }; + + led@11 { + /* Activity 03 */ + reg = <11>; + active-low; + function = "lan3"; + color = ; + }; + + led@12 { + /* Activity 04 */ + reg = <12>; + active-low; + function = "lan3"; + color = ; + }; + + led@13 { + /* Activity 03 */ + reg = <13>; + active-low; + function = "lan4"; + color = ; + }; + + led@14 { + /* Activity 04 */ + reg = <14>; + active-low; + function = "lan4"; + color = ; + }; +}; + +&hsspi { + status = "okay"; +}; + +&nand_controller { + brcm,wp-not-connected; + status = "okay"; +}; + +&nandcs { + nand-on-flash-bbt; + brcm,nand-ecc-use-strap; + + /* Winbond W29N02GV, 256MB with 128KB erase blocks */ + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + loader@0 { + label = "loader"; + reg = <0x00000000 0x00400000>; + }; + image@400000 { + label = "image"; + reg = <0x00400000 0x0fb00000>; + }; + /* 0x00ff0000-0x00ffffff: bad block list */ + }; +}; + +&mdio { + status = "okay"; + + phy1: ethernet-phy@1 { + reg = <1>; + }; + phy2: ethernet-phy@2 { + reg = <2>; + }; + phy3: ethernet-phy@3 { + reg = <3>; + }; + phy4: ethernet-phy@4 { + reg = <4>; + }; + phy21: ethernet-phy@21 { + reg = <21>; + }; +};