From patchwork Sun Apr 6 15:32:41 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 14039400 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 54052C36002 for ; Sun, 6 Apr 2025 15:36:31 +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=2ONAYYSHQOAtd7XflFMakQ6L/UMvLNi1xTofa7izw9E=; b=jEm7QMfQYXtVr/yX7nGNrSc4lo F5RX4LVnnxKa6zcRO6GCiiZZalEubG1qAm8QsOsxtr4vcDiWJf3XP9U3MofhXG+HE0HC6xyUHnkiK ax9mM3yEP6mRBL7MYykaqZnae38U9G00hGeUtgTA/z/2/LMEW6bp3fiBrcDyAbvWYEjzREFpu6yXj awRzKL00ayDnsx40wDv3rWcvOG7CSLO63bqww7tLNWw7/fkMzwJPGEE9W2rw5ANx9EGokwuBjHv0Q SM/LQEB3smfrGouwcpoiOpH5Nz+/Y1IyBzugeeMfYy8/zsAssSG1jPpLM0oXh6J0b6pYQZ8iJ04Wy 9SzSdEtg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.1 #2 (Red Hat Linux)) id 1u1S2n-0000000FUXF-1bAQ; Sun, 06 Apr 2025 15:36:21 +0000 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by bombadil.infradead.org with esmtps (Exim 4.98.1 #2 (Red Hat Linux)) id 1u1RzL-0000000FU9j-2WOo for linux-arm-kernel@lists.infradead.org; Sun, 06 Apr 2025 15:32:49 +0000 Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-54963160818so4418976e87.2 for ; Sun, 06 Apr 2025 08:32:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1743953566; x=1744558366; 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=2ONAYYSHQOAtd7XflFMakQ6L/UMvLNi1xTofa7izw9E=; b=X73esP77TvE83Ne6pa28Y7wEjusKnJnJVSUHsvjTgQxgS0bAxo0JD/mfNdn0u8384c CaDc/JefP+vKpFmQuHZv/gWohsA+kSI3bbwIXl8kdALrvbLutkFeyglIlajGQSq3r4di OdJeultzVO3aiKhIUegr7tXzIT35NLj9nS5bVx8M1jPff56VzC5DYzUl309YKwwRpJHA FUmqFaFFR/GGYENMhu/BQzfQ91KKCxTacrWdvNnlY87+ATh0At3NcflDn0G3Ehsvh96o Gs6l2wcaJ7LDCPYIN7/DWWKD5IvRdHq/g0Bqwa7PWZ2lRupB54abkC4xUnPmNC03zZGK 7LkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743953566; x=1744558366; 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=2ONAYYSHQOAtd7XflFMakQ6L/UMvLNi1xTofa7izw9E=; b=mxs4Rka5DrBRtDm7x7wjxXhA7GKbsES0HOv4hpGYvmQEyoStZqcnkDVDNJmPAhgnel MrBti3vK9KdBRFnLsXPtI2MT2RwlI3FmCh81bhHs/mYQ1lJpTdFzt51gd/Mr/JRbGOPZ YzgMuUefZ9iIY3S5Ap0JgyKrH+h/rI6FiiFaguC1g5L+x03j8qY4SROQN0GjFIFBnwGj hFt/jahhBisN5ASjkELgwBN+j5EvDjh5jHvKX0ls5gfMeAlc1TgmyHl1uOHak8Np5sKd kleqxMtjfHjEa11FBxybOiY2WvTLs0Oy1lFWQRCy8EsmlEQfmSm+2WGuqLJ9VI2MMktW /wgw== X-Forwarded-Encrypted: i=1; AJvYcCWiCLXgdfZ1tsmzBh4CZU14vShLraKor1tp94elm7j/X7YY/Owb6mYmrAJTHiqrilkSISeKs4TLfFeMx5gQI7Ar@lists.infradead.org X-Gm-Message-State: AOJu0YyLJ+K7CRMGD69RQppoeUTp4OIuVBZr3/gTxOZsYNX8cwOKEQHq oyp9spIWEKYRIZdc48aWneH+2hnggrAWpSOXndLPTqlwbTEMqQErK38JImb7fqo= X-Gm-Gg: ASbGnctJeqcVzNTzRg8deeZ0NkgcOhHwdywJNIPXQeuCaQ4fGjgOprzF0pLF6k46CO8 DEebZNYgbOLDRlV9xMRbTcokRXaPLw4LEUWR7VufSw8RSJLzeIcdPM6OWHjPsgC3LzwkagkdX6p p64+350dpEQOSKH/+zENt8LzvPYLyfBOB3rRjc9BFs2BAtTaKq5ubyYPmNd/NFRT5Wv9JA1sZCe DGmHX66/1hYrriLEjP3dk65Lvraem8YBL5FOFQjeWK1Blg0xNQJ9GnAVA1dPl5dQI87M4Bb4UKs d1YZYRoTgGBVAVx6hIF+jMzQCcV0a0eQzABW0rNR71F3KyGHx3uat/c= X-Google-Smtp-Source: AGHT+IHnpWs6XO4mteq7F+ZLmGE9IK5O1KFZnDXVhMlRd4bDWyefxcqo6/2QiR1vaEXZVx5eFBlmSA== X-Received: by 2002:a05:6512:1313:b0:545:243e:e2dc with SMTP id 2adb3069b0e04-54c23346866mr2216950e87.39.1743953565786; Sun, 06 Apr 2025 08:32:45 -0700 (PDT) Received: from [192.168.1.140] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54c1e671fa8sm989747e87.218.2025.04.06.08.32.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Apr 2025 08:32:44 -0700 (PDT) From: Linus Walleij Date: Sun, 06 Apr 2025 17:32:41 +0200 Subject: [PATCH v2 01/12] ARM: dts: bcm6878: Correct UART0 IRQ number MIME-Version: 1.0 Message-Id: <20250406-bcmbca-peripherals-arm-v2-1-22130836c2ed@linaro.org> References: <20250406-bcmbca-peripherals-arm-v2-0-22130836c2ed@linaro.org> In-Reply-To: <20250406-bcmbca-peripherals-arm-v2-0-22130836c2ed@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?= , Broadcom internal kernel review list , Olivia Mackall , Ray Jui , Scott Branden , Florian Fainelli Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, Linus Walleij X-Mailer: b4 0.14.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250406_083247_647489_D627B0A1 X-CRM114-Status: GOOD ( 12.32 ) 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 According to the vendor file 6878_intr.h the UART0 has IRQ 28, not 32. Assuming this is a copy-and-paste error. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/broadcom/bcm6878.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/broadcom/bcm6878.dtsi b/arch/arm/boot/dts/broadcom/bcm6878.dtsi index 70cf23a65fdb5ac7ed9eabc986f4ebb4df263c43..cf378970db08c05c40564a38931417a7be759532 100644 --- a/arch/arm/boot/dts/broadcom/bcm6878.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm6878.dtsi @@ -137,7 +137,7 @@ nandcs: nand@0 { uart0: serial@12000 { compatible = "arm,pl011", "arm,primecell"; reg = <0x12000 0x1000>; - interrupts = ; + interrupts = ; clocks = <&uart_clk>, <&uart_clk>; clock-names = "uartclk", "apb_pclk"; status = "disabled"; From patchwork Sun Apr 6 15:32:42 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 14039401 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 A2D3DC3601A for ; Sun, 6 Apr 2025 15:38: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=7Bizm6h1CDdffqhCM31Ev0bSZrO0bxrQbCDmltlpuTU=; b=CKpgnuiB5d37AkCQlpSvxWKT2p LFRkKMNIxnu0rXEmYGuEKEPGOTpstm0q7i2nE9TCxgqGA53iRiOW/HcWneItm8uYF8pIEkEay3fMu iM+XfhQFlcpyTd+zb9UYPeiSwynnEKu/x6WgEUOczAZH0RzQP++wWa4NFHZaMkPSYL8+frPj/fTuQ cOnW20t/hw0ZTg1S7Zt50xyM0Nhpo7WQJxsz0zLXJpyV26qPysNnzNVyxz8/MgYFTu6WLfG2kLaed u0Tb08m8zqZtV+Div/YegAflfAFJc5ym3TPwSXa/fX2y93tuvCjb+mD1QELkiN0qOinpaw8Gvrc49 sDWuJCNQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.1 #2 (Red Hat Linux)) id 1u1S4V-0000000FUja-0LE8; Sun, 06 Apr 2025 15:38:07 +0000 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]) by bombadil.infradead.org with esmtps (Exim 4.98.1 #2 (Red Hat Linux)) id 1u1RzN-0000000FUAU-0TX1 for linux-arm-kernel@lists.infradead.org; Sun, 06 Apr 2025 15:32:50 +0000 Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-5493b5bc6e8so4501762e87.2 for ; Sun, 06 Apr 2025 08:32:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1743953567; x=1744558367; 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=7Bizm6h1CDdffqhCM31Ev0bSZrO0bxrQbCDmltlpuTU=; b=GyR7H+EgWeGJDUykXGrqDYQ+5eIMesfHCO6Mz9DKZU97WFXvw7yJjKQyP+DZbveUBM MP3WL3etJvNNkKFZ4YPCGJZ9gpfzUhz0B6M3rY49JUDWaDBWG98ZNha6iGKQz2oyn78Y GSbg2PKQikGTaE4AIsQIl+ZsuHi3yFhwJ0X7oxoUYEHc8l4HkUOeo3uETn4lpl882O+6 JMm7j6WcFkkZ8cHw6UMK2NCBAey2B9DDh018HmpIXeK1S3d51McbeNSGPisYh3OLqHCP 1p4BRi12NTjV+vUFK0lt5zQN9XnlDb0jMH9/i52Z73044tDfRXHnLbr4cpMg6q5CCd0H R6nQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743953567; x=1744558367; 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=7Bizm6h1CDdffqhCM31Ev0bSZrO0bxrQbCDmltlpuTU=; b=NgFTE5NtyIl6pkjWoMD9L7t2TkV3JYxZkoDjGJtOLwnUMEQySO7viUK4tPDR8eJ11z jNA7Wc4QyJd7OekzbxmiNot+Df+bpjSsF6YLzgWTD/Hn1hP5MuYKoGT/i1F3f2NQXlXb DSTDleoxHO3j8CiR8FkHR9zVyYijJ26X6IDPTFoc+udadHxk1nkxuDoY4hes2gOGdPgH T2OOkvoUwdehN5JnaSt6FOFjbllb8WNeqyJ20qOOFAruUXZ1Afzc1vzcCs6ZhXxSIJ74 DI37s2Pf/7k+8YUECIXPrMAm6iEViGGT0474kNeT5WLDTGqZ6aXJq+lXxf9p+OEvbaIF Lwjg== X-Forwarded-Encrypted: i=1; AJvYcCVFPiPUF5WSnU/8ALQGV1GapjFcVbEqwwLPbDfS10SoW9gu2xfm40lLoA7lwNtGyEEu6vE1p3+zwIeMa3bU/+YR@lists.infradead.org X-Gm-Message-State: AOJu0YzF8SH9dZLeCrSZ3T4g51BIOPxV2+6ug9MSCoZE7oGRyEgF7Uyq m9XsxnW/LAMuJ2ivGa05+mlCmwhHZsNrZI+PGofHLKDrxPfr/MVQ8fEy5aHe5CY= X-Gm-Gg: ASbGncvq+22a2Jq+c+kaxlfvJ1dHYOfN0evHDi0euXnYN0sRDNa4ZO7E9LxwFAY+cyA FWYloek0lhTAhf4ZZ5Q5de6W0n4lFhihOIKFb3BDmdaFprcDZ5pNr8F2BfPaIpl8/NaFNt+DGoX WZA73DEPZ05UWm0TV7LcYarkNotn0g3/nTlnobHlmbal53DfzouWxh16osFXPHiu7zOhqedJrrc iv8QVi8ygvushky5rFKuMWHPST9n93qZwg2tvpYHOaMXesbyJ2cP4CNPYyMJMMYadbCvQtjMDge 0/8D/slwp1KKA8tcfWfCxr0tycjDINpsc9KT/LR30dZMExNiW00eMUM= X-Google-Smtp-Source: AGHT+IFie+5iQdZTFiEqXLdGG/9Obz2+zMwWEcSfzmmzsP0hfhvXebqGm8T5GChopGRfGqsSOpyx0g== X-Received: by 2002:a05:6512:1253:b0:549:7330:6a5a with SMTP id 2adb3069b0e04-54c232e23d2mr2694580e87.23.1743953567253; Sun, 06 Apr 2025 08:32:47 -0700 (PDT) Received: from [192.168.1.140] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54c1e671fa8sm989747e87.218.2025.04.06.08.32.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Apr 2025 08:32:46 -0700 (PDT) From: Linus Walleij Date: Sun, 06 Apr 2025 17:32:42 +0200 Subject: [PATCH v2 02/12] dt-bindings: rng: r200: Add interrupt property MIME-Version: 1.0 Message-Id: <20250406-bcmbca-peripherals-arm-v2-2-22130836c2ed@linaro.org> References: <20250406-bcmbca-peripherals-arm-v2-0-22130836c2ed@linaro.org> In-Reply-To: <20250406-bcmbca-peripherals-arm-v2-0-22130836c2ed@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?= , Broadcom internal kernel review list , Olivia Mackall , Ray Jui , Scott Branden , Florian Fainelli Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, Linus Walleij , Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250406_083249_157602_623A4DC0 X-CRM114-Status: GOOD ( 10.18 ) 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 IP block has an interrupt. Add it and add it to the example as well. Acked-by: Krzysztof Kozlowski Signed-off-by: Linus Walleij --- Documentation/devicetree/bindings/rng/brcm,iproc-rng200.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/rng/brcm,iproc-rng200.yaml b/Documentation/devicetree/bindings/rng/brcm,iproc-rng200.yaml index 827983008ecf707019f45847cd86d5686e3b2469..817cbdaa2b2d75705eda212521186c40a9975ea0 100644 --- a/Documentation/devicetree/bindings/rng/brcm,iproc-rng200.yaml +++ b/Documentation/devicetree/bindings/rng/brcm,iproc-rng200.yaml @@ -20,11 +20,17 @@ properties: reg: maxItems: 1 + interrupts: + maxItems: 1 + additionalProperties: false examples: - | + #include + rng@18032000 { compatible = "brcm,iproc-rng200"; reg = <0x18032000 0x28>; + interrupts = ; }; From patchwork Sun Apr 6 15:32:43 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 14039402 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 E3CFDC3601A for ; Sun, 6 Apr 2025 15:40:01 +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=ejx7UzIy/ha4XsDoZ22DLZHvDBVGCnO/qaRmPG94r1s=; b=a8q/0ZQUDAqgFHiKT5k0sIe3Y7 X4JmsaCTHfCi8q4LLatMLVjvUHSSiSTc+ZMaIzwVufRnMa2GVAKEy/TwrZKKjGfBsbrX1GnnUq467 /ls8xOwrR13MMnWDaDuR/AMF3Of/cTXKdeKlm4juTdxk+k3NPIlQ3Klfbx6lcHaUtXM38esJdJxlk kPZXvC6BSC927Rt8NeGGPjkOX279r1XGspR3u8xZldx/5JkJmsX5LSYbBIl9LRkBHEKD89Xx+MmmO h55qzvc612DxcgfwvqmJsyyw1XzSGvsCpwrGOA4HyD5WiDaSJksYMI3DrblKkLBnUOHQGUZuFFp9D V7bfSlPg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.1 #2 (Red Hat Linux)) id 1u1S6D-0000000FUuy-3aJQ; Sun, 06 Apr 2025 15:39:53 +0000 Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]) by bombadil.infradead.org with esmtps (Exim 4.98.1 #2 (Red Hat Linux)) id 1u1RzO-0000000FUAe-0Kub for linux-arm-kernel@lists.infradead.org; Sun, 06 Apr 2025 15:32:51 +0000 Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-30c091b54aaso33159891fa.3 for ; Sun, 06 Apr 2025 08:32:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1743953568; x=1744558368; 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=ejx7UzIy/ha4XsDoZ22DLZHvDBVGCnO/qaRmPG94r1s=; b=JJzdwlPOUcOCn25m6qWvJ6Aj+4q8FMnRddvjWjs/TyqdiaAgPkpx7hS3+fGieurFwT HXUSygI7duYSQ4ah6+W6R/huiQWYgxvvpeIX1JYI/L8QAbqpn4EdbFtOtxGND/Y8CNLQ 2ppVZQyt38Q4KtJKv9WdYfYqk7CNmnHFSrBN6j26COw90cg6isKBwuAUIErWpEX/AfKv cXAmD1j9YA4E4Okoiuoq1a7vQVqKPZTwmUJrA+OsdCPU6hVYjWTBjhtB5VDlTUjB5yfg nLS9s2zhhwyGg6TTb2oOpXNpmFWzq3UT2pfsYBwnEMaPwF6j/QkLbbjZgWz1GnUdOFOh 1WjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743953568; x=1744558368; 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=ejx7UzIy/ha4XsDoZ22DLZHvDBVGCnO/qaRmPG94r1s=; b=hSZgNkBtQeJk9q/RIAiFZU04UtcvRzRud6io3kmrZasdpzjaIRfrgyRSf8lTya4DoR +4+q+NQ1BXwuHBx5KhGo2MC08xMEEKiUCJ2OVDw3cn7E64fARc0pGggCbov+M3HC8XIv So+i0NUPOCAJrv5XidzJzcxTjDlNhxM2LnL/HU+4fWXuwuL2z1cVcnDPT9qUQHdvUyrO pxK/q9hxx0LeHTRMhiN51C7qZySGC7Pn387YMcUpUOtALIC/BaEK5UgF3dDmQa4VlpTf MwAwMG40mOlPz723tMnSdRqd7D810Y74LxdoP5jcAaKjVd2shFueLFBBYoqzSx8SgO2e CIRw== X-Forwarded-Encrypted: i=1; AJvYcCVYWBted+4BxcrcgokH7FoAsmMc9wTds5BTtQmgoqLfQ0E8lIooUDFIQjU5HUlJl301gZARf6OSan7Vo28ZFCyQ@lists.infradead.org X-Gm-Message-State: AOJu0YyWT0anu8TEyDkHs0Fdo9soHfec3UGas3NOaoFoLGzjJnNXZw46 Y3WPEHqHsllOE7GfbTNsTxykuY0XmIcvCVaMx4wcPk99aS4ypdP2gG6kHemSq/w= X-Gm-Gg: ASbGncvnfXQk98en1DY1G8H5ipbRIYDh2WHon9DrJe/U+yq15KpsjXgefJXpOd3+P+o dzhEGwrnpmI9XJmHF292hcY5Jn92O4Ocrk6JGnDNzFr3IXDbHzIEIiDyJtWoVguA3H/l/LtemBD pZ1PUK0L3bdwdFkqr1fQ8ZW9GK7qPiiIGdTTdueFL/gxratxV92NtGD2YvdxkHg7CV6aslsos8y X62qiYnWoI5MbkFo6QdIDENPOjDNyQ5+WR+roRmoyQwVakbKhpRK2cgZBUjHCjLFkiQNJfug4hs DBdSd80g4PoBghg1BzTjgp/X/52EI8Vx374MgY55tXtXPq9NP6v7uyE= X-Google-Smtp-Source: AGHT+IG4UfmmllvK8v3gDCB/1PCYbzn5UK3BAxYEZRnyxkcG0076NiwRReAE0eyQC894t+mrcq9ZWQ== X-Received: by 2002:a05:6512:3510:b0:549:4e79:d4c0 with SMTP id 2adb3069b0e04-54c298480f7mr995890e87.53.1743953568149; Sun, 06 Apr 2025 08:32:48 -0700 (PDT) Received: from [192.168.1.140] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54c1e671fa8sm989747e87.218.2025.04.06.08.32.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Apr 2025 08:32:47 -0700 (PDT) From: Linus Walleij Date: Sun, 06 Apr 2025 17:32:43 +0200 Subject: [PATCH v2 03/12] ARM: dts: bcm6846: Add interrupt to RNG MIME-Version: 1.0 Message-Id: <20250406-bcmbca-peripherals-arm-v2-3-22130836c2ed@linaro.org> References: <20250406-bcmbca-peripherals-arm-v2-0-22130836c2ed@linaro.org> In-Reply-To: <20250406-bcmbca-peripherals-arm-v2-0-22130836c2ed@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?= , Broadcom internal kernel review list , Olivia Mackall , Ray Jui , Scott Branden , Florian Fainelli Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, Linus Walleij X-Mailer: b4 0.14.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250406_083250_120045_4452EAEF X-CRM114-Status: UNSURE ( 9.91 ) 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 The r200 RNG has an interrupt so let's add it. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/broadcom/bcm6846.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/broadcom/bcm6846.dtsi b/arch/arm/boot/dts/broadcom/bcm6846.dtsi index e0e06af3fe891df3c3d8c2005cf1980d33a7762b..d36d0a791dbf4ca3442797691957c3247c7187e7 100644 --- a/arch/arm/boot/dts/broadcom/bcm6846.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm6846.dtsi @@ -196,6 +196,7 @@ uart0: serial@640 { rng@b80 { compatible = "brcm,iproc-rng200"; reg = <0xb80 0x28>; + interrupts = ; }; leds: led-controller@800 { From patchwork Sun Apr 6 15:32:44 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 14039403 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 625B9C36002 for ; Sun, 6 Apr 2025 15:41:50 +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=iEf4cNwCAvTux6g5ErQoMK0ZXsg4RGhL1cTSbSRkU48=; b=IFd/v4UqSEhQk+tzQ598T6AAkg 19HYFPVIVODvP416tCEyvjAlRX7omVzdDnCvCVR/P3g45jPiKrUKmzZKa41hD+dpokv/JqanxpSvs 33fosqSO92nnrvysr8pRU6am+nEokC+jdufEpSve0uccLH/Qy5MsLYVSBZPmw5B8iCtQUsL2UlKBh IT4T59P4vZdmWhTIRYJLXQtPoOKV7JLmE3W587YCOmWQVxIRp3Mhhd1H0P2UhttlEvo1NWFmWwRbA O/OjJGH30NJXH2OTFwLlx+2aBIJ/DxKZkZWif2uPtePpeGFs7DDsfBXD8FrGj8hhGEgI+8GwLr2zw hnPTaoiQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.1 #2 (Red Hat Linux)) id 1u1S7v-0000000FV5a-2JeZ; Sun, 06 Apr 2025 15:41:39 +0000 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by bombadil.infradead.org with esmtps (Exim 4.98.1 #2 (Red Hat Linux)) id 1u1RzO-0000000FUAz-40fi for linux-arm-kernel@lists.infradead.org; Sun, 06 Apr 2025 15:32:52 +0000 Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-5498d2a8b89so4088580e87.1 for ; Sun, 06 Apr 2025 08:32:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1743953569; x=1744558369; 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=iEf4cNwCAvTux6g5ErQoMK0ZXsg4RGhL1cTSbSRkU48=; b=FEyr8EESjI1iEK2SzDN35+E1eMEQI/clBCVQ6jHpMGr4r7OTRVTrKqSBu/J1W3IK/z YgrRuEtJHK9znHZ36Cluyb7u/bJZ92hgxXKzTcw7T7J5/bANkVxE1DO/5zIYNErQ+sPr q95DNevrUaPAtSBCAG3fc9ORRpfPmaiOX6gP8KTg//kTQOJ+htaAwwGIDOzDR/JoV8MB J8qDdPawKQUyLYA5f8vmhaN1uUGHOz/SRFg00CqfJEcQrbLcjQKJj9ACbg39J3GWpgbY w/L9TJlnTCeaCiMYOIH86eOhI1KIzbHlfZw7Y7ZLKOjjxLGd5ke1oZRr9nHPBp78Yu/j F8qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743953569; x=1744558369; 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=iEf4cNwCAvTux6g5ErQoMK0ZXsg4RGhL1cTSbSRkU48=; b=RLyXkwIL0LVUxIzouuW+NToa1YFG1P1YmWiu03vc9Z1HMdOJmkMF5oY6BL7LCYawwi j47Yf9wG56FXP41tAwC2trXjsRjiVBQfrG/ViAvt/9Ac8tmSkHKkPFAo8PJKtRVYNmYq eHqgz/VLNB9Qd+2+pPNQJuWd8wDpk33PFzd9ySKytYhrGbokK9YCK7c+pCCFqPT0Wmyl K6i3bxl+KuWDPmM2uAV+dEqZjx6sk8/oDAifjxXpM1ik+ekmp8RaWF7YPM42PKGfdkpI cF2FFhoTvK+YEsDr4jrXVoN7QWnXFeZMys73EkZHm+uIN0CSOc5MPlqUKKCl9O1cK7cy 0CFA== X-Forwarded-Encrypted: i=1; AJvYcCUKwa+GCyHb1ehnbuAnSs6r16D0VXihkzHhl7m3LtWEtvUSfFGfByX9NouDTocOV2G4bz2zfV0u+wkD6qtusdga@lists.infradead.org X-Gm-Message-State: AOJu0YyKW07uKaiTJx05q29XR11VkdTzPOmkD8awWllUWiDfTySaGzMG SzTLyY+j6BokluZik8Yr7+ZEkaS3b/tOBCe0Pr/YTMC3Idf18xOyOzSeCiwpYAg= X-Gm-Gg: ASbGncs/RrwuYHEDZZqAJu4kApWCLqGe/kLP6QhcmWjO+itMLv8DOyAaOkK0ksQAzXv HMchCnABdSX9STqc4/hBbzn6jgZ3fBSOOOtls0Co9Y+07UTOD615kOpisgpFtFtkXlzbOYh2kud Ed4vQKuHbCk1PuVaXppouDN4t2UbZ/delR4Yd4pfcKNijBsfA+pDMsOtLpY7nsqzoFapIDUGMar C9Snx9iVbZ+uw0QoTnVyV6TiAMtesbpfPPE2Wo8IZZyBiaDRKpbJr5e09prKR815J+3/dDVagTT xphoVzrJ0Hru2mBULRWuEnVogHGGgO1nXxlj/9PfgJwuuao0H+BTCUI= X-Google-Smtp-Source: AGHT+IHX6ymB+h9Lowm2Yf7MRd1SjNLaX90zJo45WhqpbwKnM4ta7ShvImIRlKAv4ludhs63y9R8sQ== X-Received: by 2002:a05:6512:3b08:b0:549:69da:cb96 with SMTP id 2adb3069b0e04-54c227ff9d7mr2905626e87.52.1743953569117; Sun, 06 Apr 2025 08:32:49 -0700 (PDT) Received: from [192.168.1.140] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54c1e671fa8sm989747e87.218.2025.04.06.08.32.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Apr 2025 08:32:48 -0700 (PDT) From: Linus Walleij Date: Sun, 06 Apr 2025 17:32:44 +0200 Subject: [PATCH v2 04/12] ARM: dts: bcm6855: Add BCMBCA peripherals MIME-Version: 1.0 Message-Id: <20250406-bcmbca-peripherals-arm-v2-4-22130836c2ed@linaro.org> References: <20250406-bcmbca-peripherals-arm-v2-0-22130836c2ed@linaro.org> In-Reply-To: <20250406-bcmbca-peripherals-arm-v2-0-22130836c2ed@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?= , Broadcom internal kernel review list , Olivia Mackall , Ray Jui , Scott Branden , Florian Fainelli Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, Linus Walleij X-Mailer: b4 0.14.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250406_083250_997394_BD1C8D16 X-CRM114-Status: GOOD ( 12.95 ) 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 All the BCMBCA SoCs share a set of peripherals at 0xff800000, albeit at slightly varying memory locations on the bus and with varying IRQ assignments. Add the first and second watchdog, GPIO, RNG, LED, DMA and second PL011 UART blocks for the BCM6855 based on the vendor files 6855_map_part.h and 6855_intr.h from the "bcmopen-consumer" code drop. This SoC has up to 256 possible GPIOs due to having 8 registers with 32 GPIOs in each available. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/broadcom/bcm6855.dtsi | 127 ++++++++++++++++++++++++++++++++ 1 file changed, 127 insertions(+) diff --git a/arch/arm/boot/dts/broadcom/bcm6855.dtsi b/arch/arm/boot/dts/broadcom/bcm6855.dtsi index 52915ec6f339335d87b4e50e1c03625fffb9a45d..a88c3f0fbcb037ee5c6b31933415f90cb51ded2a 100644 --- a/arch/arm/boot/dts/broadcom/bcm6855.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm6855.dtsi @@ -116,6 +116,103 @@ bus@ff800000 { #size-cells = <1>; ranges = <0 0xff800000 0x800000>; + watchdog@480 { + compatible = "brcm,bcm6345-wdt"; + reg = <0x480 0x10>; + }; + + watchdog@4c0 { + compatible = "brcm,bcm6345-wdt"; + reg = <0x4c0 0x10>; + status = "disabled"; + }; + + /* 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"; + }; + + rng@b80 { + compatible = "brcm,iproc-rng200"; + reg = <0xb80 0x28>; + interrupts = ; + }; + hsspi: spi@1000 { #address-cells = <1>; #size-cells = <0>; @@ -143,6 +240,27 @@ nandcs: nand@0 { }; }; + leds: led-controller@3000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "brcm,bcm63138-leds"; + reg = <0x3000 0xdc>; + status = "disabled"; + }; + + pl081_dma: dma-controller@11000 { + compatible = "arm,pl081", "arm,primecell"; + // The magic B105F00D info is missing + arm,primecell-periphid = <0x00041081>; + reg = <0x11000 0x1000>; + interrupts = ; + memcpy-burst-size = <256>; + memcpy-bus-width = <32>; + clocks = <&periph_clk>; + clock-names = "apb_pclk"; + #dma-cells = <2>; + }; + uart0: serial@12000 { compatible = "arm,pl011", "arm,primecell"; reg = <0x12000 0x1000>; @@ -151,5 +269,14 @@ uart0: serial@12000 { clock-names = "uartclk", "apb_pclk"; status = "disabled"; }; + + uart1: serial@13000 { + compatible = "arm,pl011", "arm,primecell"; + reg = <0x13000 0x1000>; + interrupts = ; + clocks = <&uart_clk>, <&uart_clk>; + clock-names = "uartclk", "apb_pclk"; + status = "disabled"; + }; }; }; From patchwork Sun Apr 6 15:32:45 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 14039404 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 3E33FC36002 for ; Sun, 6 Apr 2025 15:43:35 +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=sxz58oZE8Yp5FA6X2/d+svnhhMgKBtRUyy1sb9Y+PtA=; b=JTzR7YkroCnTKes7KaoWmKGn5M +vg2dKvW3DUPMbMvHSpEZAYXRgWzYaSC7vQ0fwGw2MMm3i8a3ntPjxEaw1PBTo2+GM8KuCmD61CXK Zgjnd+2EMLPE5d68iVNe9p8lCfooJmCZax/h7PGRhFMOBnuYgA+017eqAEDyXnM3nxlWxCY9dOupR 6RBUqf8YtdOX1BRjLp+G+uY13WTA9cZlo5Hvdx9dA3k/kg2ahtiEK9EFNNJxO1NTVWlaqaOhvvnBY LNwOA2RVruHCVw8cQa69hnO4QPMvnYvKEoZSmYnxtHDsZYuMsfKttkgMM5wqPwHN7lvYazTFfpMrI QeO7RJsQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.1 #2 (Red Hat Linux)) id 1u1S9d-0000000FVAy-0vZc; Sun, 06 Apr 2025 15:43:25 +0000 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by bombadil.infradead.org with esmtps (Exim 4.98.1 #2 (Red Hat Linux)) id 1u1RzP-0000000FUBK-3sZ6 for linux-arm-kernel@lists.infradead.org; Sun, 06 Apr 2025 15:32:53 +0000 Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-54ac9b3ddf6so3250016e87.1 for ; Sun, 06 Apr 2025 08:32:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1743953570; x=1744558370; 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=sxz58oZE8Yp5FA6X2/d+svnhhMgKBtRUyy1sb9Y+PtA=; b=r8TpMrTJMjkbASDbnJ7W54fCXy8dIVRQOm/mI8fsnTDdpsU5RLq06kqC9p+EoGMQMp rPaq80/R/QNj71+hOO9YmJsqNelexN3EgNREEStkKt31fdvC4WhlyjMJaCyJIQHi5CDx bpd6I7rvB07JKP/qz1i3hAjcSVeugOvVtbv5cUQfzQBDHDA2ngB9LVOY+9v5nPza4kRR +bikpCW/7UpG5wPMlBvUmLuM3fTXE2L4xvSB+3wDMlKxRO858tEKDbwwasUaMFSWxnJb PTAUltGOrVytHNWHMq0WNZqLmJtQQzKaOyeE5aactEVZTv7M0ULntpxw3abJGpoH7vze v9gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743953570; x=1744558370; 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=sxz58oZE8Yp5FA6X2/d+svnhhMgKBtRUyy1sb9Y+PtA=; b=RVIQ5yM11AxX5k6RPJqENbsPE5smpbBQQP7rF3jSyCFLODxIfsXIJ2hZr/JicYsi0H jO44xhU2xSMm6mRkdaBj/um+pz0Q0nbyiwLZNyxvXDhflZHjhB9HZ+P25lgPkZAMQN7C 8muJGRZZ/FrcQSVxqtev/CpRS7BKF63EJ24bUKzbOpglUlbLLpB4bzJfJYjvKP+b1HrE 5tOPZpXyEpI4AR9NF9qiR8KFjU2NYwT1dHBPwf+OschoiI6UmCSXOFKyMh0eNli/eV1u o/VxxcIR2h19IY6zbhDX++6Jmo3SZ4dCevXbPHY6mEnGexxO2FNrFN3kKHO+tuIkRW82 BGrw== X-Forwarded-Encrypted: i=1; AJvYcCU9z1tskYSUUvP/A5gY8ifehYqNy4LwfsjC/qwoJP+oZNQ9QVi0tqc/y7eKFjEfELInor+Fy8CzOToKB0MjCqIX@lists.infradead.org X-Gm-Message-State: AOJu0Ywd0PmaXXFPFsf2coGbKNSYQ3r4FfmrpOo4x8lc99QnrVhTw+3q oFYyBxYx2a14vWX2Kudef84Q+BsJQIgkqsAb0DMyCz7fYyNlAEb/MLl2E2vzgbOhEyCu16J1e1C ye9w= X-Gm-Gg: ASbGncueUsjgvE8m7jyc1j0JyJa0xYAoCU+eIVkBJPL8huUWx5K69gcy+m4Qk1nwvcz BQGbkfPJTltG+Pj6eHadwVWba2A+w9fU3ikU1vCgdp+4swhE3mY5AX7pzb7AkJNOiVQSh2nAb/8 W7L1pbhmIoi/ggYm4hHxLuMbGvKcGK+v4pI5pYuxuo+efJr5nDSmZwx6ySRWcyGuz8xlBpmaroz mTIMh5t9aRHdF2/P3OqCSkwEX/DsYX2XijPxj7vZo0k6s2V2gBuWody+F2VwAVAc4oa+kdEMrI4 TseM9DBeYL++h/XVJ1g4oJ0pGRtJ91jETMeB9yUEsLpvMohxJ2wxoMc= X-Google-Smtp-Source: AGHT+IGx1uVsqYbz4JHsuvBApEHNIPiZVATzav+WygbEZ5ZZGgIuxPb0cPGKihRRrdJZqbC0MfnziA== X-Received: by 2002:a05:6512:3e03:b0:54b:1039:fe72 with SMTP id 2adb3069b0e04-54c297d09abmr1385671e87.14.1743953570058; Sun, 06 Apr 2025 08:32:50 -0700 (PDT) Received: from [192.168.1.140] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54c1e671fa8sm989747e87.218.2025.04.06.08.32.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Apr 2025 08:32:49 -0700 (PDT) From: Linus Walleij Date: Sun, 06 Apr 2025 17:32:45 +0200 Subject: [PATCH v2 05/12] ARM: dts: bcm6878: Add BCMBCA peripherals MIME-Version: 1.0 Message-Id: <20250406-bcmbca-peripherals-arm-v2-5-22130836c2ed@linaro.org> References: <20250406-bcmbca-peripherals-arm-v2-0-22130836c2ed@linaro.org> In-Reply-To: <20250406-bcmbca-peripherals-arm-v2-0-22130836c2ed@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?= , Broadcom internal kernel review list , Olivia Mackall , Ray Jui , Scott Branden , Florian Fainelli Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, Linus Walleij X-Mailer: b4 0.14.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250406_083251_967492_1BA6D1FE X-CRM114-Status: GOOD ( 13.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 All the BCMBCA SoCs share a set of peripherals at 0xff800000, albeit at slightly varying memory locations on the bus and with varying IRQ assignments. Add the first and second watchdog, GPIO, RNG, LED and DMA blocks for the BCM6878 based on the vendor files 6878_map_part.h and 6878_intr.h from the "bcmopen-consumer" code drop. This SoC has up to 256 possible GPIOs due to having 8 registers with 32 GPIOs in each available. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/broadcom/bcm6878.dtsi | 118 ++++++++++++++++++++++++++++++++ 1 file changed, 118 insertions(+) diff --git a/arch/arm/boot/dts/broadcom/bcm6878.dtsi b/arch/arm/boot/dts/broadcom/bcm6878.dtsi index cf378970db08c05c40564a38931417a7be759532..f317fc888da0ef449d9b5153677e6dadd869a7db 100644 --- a/arch/arm/boot/dts/broadcom/bcm6878.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm6878.dtsi @@ -108,6 +108,111 @@ bus@ff800000 { #size-cells = <1>; ranges = <0 0xff800000 0x800000>; + watchdog@480 { + compatible = "brcm,bcm6345-wdt"; + reg = <0x480 0x10>; + }; + + watchdog@4c0 { + compatible = "brcm,bcm6345-wdt"; + reg = <0x4c0 0x10>; + status = "disabled"; + }; + + /* 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"; + }; + + rng@b80 { + compatible = "brcm,iproc-rng200"; + reg = <0xb80 0x28>; + interrupts = ; + }; + + leds: led-controller@700 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "brcm,bcm63138-leds"; + reg = <0x700 0xdc>; + status = "disabled"; + }; + hsspi: spi@1000 { #address-cells = <1>; #size-cells = <0>; @@ -134,6 +239,19 @@ nandcs: nand@0 { }; }; + pl081_dma: dma-controller@11000 { + compatible = "arm,pl081", "arm,primecell"; + // The magic B105F00D info is missing + arm,primecell-periphid = <0x00041081>; + reg = <0x11000 0x1000>; + interrupts = ; + memcpy-burst-size = <256>; + memcpy-bus-width = <32>; + clocks = <&periph_clk>; + clock-names = "apb_pclk"; + #dma-cells = <2>; + }; + uart0: serial@12000 { compatible = "arm,pl011", "arm,primecell"; reg = <0x12000 0x1000>; From patchwork Sun Apr 6 15:32:46 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 14039408 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 971D2C36002 for ; Sun, 6 Apr 2025 15:45:26 +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=vxbJCPygNmGFFkjmqhp+ED4ZC28M+PGEOpe3YaoTOvE=; b=azdvGYOONz5ABpa56+s720xk2z EfCpYNqkGEbY8fScgvJ4xr4R0DhK8TO5zWHzGFQeocvmdla3ZP3ahw5k7fNl0PI38H/85xBTyP7XH +3wEJDs6+L4W2nK98FhoM41RUjFHUgNxQ1k+lyTYC3aL4j/4rxdYsMVWu7HTulSi4ceMdw0LugJ6S jVOZxiRLt2wFl3zdyV1NQihIEBjQS4BIRfRKEcQhxlTPdnn8THM1Mx9FSGHBcW8r3GJO17rDULVtV mhD4liII+aFczqJqVPXQlQCXmv3KVQ1UXncYpGDXlzcM3WcLE5UCULYdSS8JG1SZ2Cym+6dgjf9T/ 6Xaa5utQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.1 #2 (Red Hat Linux)) id 1u1SBL-0000000FVKr-47N8; Sun, 06 Apr 2025 15:45:11 +0000 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by bombadil.infradead.org with esmtps (Exim 4.98.1 #2 (Red Hat Linux)) id 1u1RzQ-0000000FUBi-3sjA for linux-arm-kernel@lists.infradead.org; Sun, 06 Apr 2025 15:32:54 +0000 Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-549963b5551so4345701e87.2 for ; Sun, 06 Apr 2025 08:32:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1743953571; x=1744558371; 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=vxbJCPygNmGFFkjmqhp+ED4ZC28M+PGEOpe3YaoTOvE=; b=ZCvrC2M+TuIYYzg6MemJkPWPfsJYibpCGcb0KRhMZusxMTbSbjz4Qbp63q44qAS+LC iHjAU03CjYwigMqnK51nTfBHdWizj8KxzLVKsMfwxfidA4h8iJ2u0xSEJl+Zdz5ArJ28 YXLYYOwM6IXrJOLEciAdy+0BP4hSwNnZfeLu6vPhaN71neIIbNn/Kn+O79FJklh1YYiy UGPOEBdQ7klPQGVdDf8sCSDYHG2UHInYw51HZcMoqb3sRUd5Qy56AnRvB28Uxa9HcjfW wKS05V5HPCLbNMf8daISuz3U2fHaiKw8Ckf5rv52AAnm84vwB6NrxzqJayC/7c2cjvRZ LOHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743953571; x=1744558371; 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=vxbJCPygNmGFFkjmqhp+ED4ZC28M+PGEOpe3YaoTOvE=; b=QuZQn2uqpSsHiwinbQXo8xgtj/S87+s62zvgbfsMCHFBF5qZyZl/CFQVVeVuSxu/V2 CDGukJq+3STLV/P6U5HVYkwDFz2z+HeWpCDSNBAd4ipUZQMf4oIi+AN3Qsclmi4ui4ar NUplOt5eWtZ7M1UWZ/04hHk7JLKkM1UKSRDdon999Ei9aBA/0XTvLCD68SItqm9fh4iW l9R4O5h7uWm7f6DgRwhEbF6DUG4yfy3ClIVT2ttNv6QEGsPPHSazQStMRij44fJrCXeR Uy+ruVW+PB5qMv/z3Y6r23ZigyB8rgjYM8PYqKvIMpIC95PptaX9vbeSS7o2L4T+I5hU YsYQ== X-Forwarded-Encrypted: i=1; AJvYcCXliw3UUlvxA/hYpTbFXN3udFH/48wLhOFOMZT6oLhpRN9PfEm+IKPHoROdncdECXGf9SFe+MitmuuMtmgjQpVM@lists.infradead.org X-Gm-Message-State: AOJu0YzWKrb4R3QFLSpUyqc0LeAzwj1Ol+Awl07E69jtZF76NTvBsiKH iF3qVQtdK9cNrdo5/Vb8mfnUrAWTUEtSW4GQcFU8Vz/ZVImHRvgQZy6sJ6AdoAs= X-Gm-Gg: ASbGncsET5+HPhHC9bZkRJ2o45ThLOeggvZvc136Ey5BRSW8P4OH3kbO2Tt7Cb5Rrm/ rSi6Vc7NYvbC/+xHVvjJ+qq9Alef7ngI7kKjgs7BvwaYV5THwwGVD++Tk+W6UJgG9Rg7jdZa2BS Kq60ErFKJGqo5SYSiiHSdJ+0xcl38D94o2QpedXn0wQNYPa0UW5MsPG5ggyJ8NEpugIdYtzFWIb AGXSYJ4/O88d/UvQRdfqQgivsh9kHlf/BiHBAYV+GSkvorMXZ5BnhCCIn9C8jCmwR8HBxITMXL6 WFIXnAcFDKSbnCsLUoZZTqMz9ivX96DGlM5u/RRfiyTAZbMO/ra4bJg= X-Google-Smtp-Source: AGHT+IEfCCQeHtRVjiJNIOivtCk3Y3QjbXzuwpQereunWv8BhDimdvHma0Q0YTkRhqnfOtWAW6FKMw== X-Received: by 2002:a05:6512:33d0:b0:545:60b:f382 with SMTP id 2adb3069b0e04-54c297d0977mr1426329e87.17.1743953571059; Sun, 06 Apr 2025 08:32:51 -0700 (PDT) Received: from [192.168.1.140] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54c1e671fa8sm989747e87.218.2025.04.06.08.32.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Apr 2025 08:32:50 -0700 (PDT) From: Linus Walleij Date: Sun, 06 Apr 2025 17:32:46 +0200 Subject: [PATCH v2 06/12] ARM: dts: bcm63138: Add BCMBCA peripherals MIME-Version: 1.0 Message-Id: <20250406-bcmbca-peripherals-arm-v2-6-22130836c2ed@linaro.org> References: <20250406-bcmbca-peripherals-arm-v2-0-22130836c2ed@linaro.org> In-Reply-To: <20250406-bcmbca-peripherals-arm-v2-0-22130836c2ed@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?= , Broadcom internal kernel review list , Olivia Mackall , Ray Jui , Scott Branden , Florian Fainelli Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, Linus Walleij X-Mailer: b4 0.14.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250406_083252_967955_BD307713 X-CRM114-Status: GOOD ( 14.26 ) 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 All the BCMBCA SoCs share a set of peripherals at 0xff800000, albeit at slightly varying memory locations on the bus and with varying IRQ assignments. Extend the peripheral interrupt window to 0x10000 as it need to fit the DMA block. Add the GPIO, RNG and LED and DMA blocks for the BCM63138 based on the vendor files 63138_map_part.h and 63138_intr.h from the "bcmopen-consumer" code drop. This SoC has up to 160 possible GPIOs due to having 5 registers with 32 GPIOs in each available. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/broadcom/bcm63138.dtsi | 79 +++++++++++++++++++++++++++++++- 1 file changed, 78 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/broadcom/bcm63138.dtsi b/arch/arm/boot/dts/broadcom/bcm63138.dtsi index e74ba6bf370da63d3c115e38b4f20c71baff2116..a3bce85e5f99f9791eaeb366f37afe30add573c0 100644 --- a/arch/arm/boot/dts/broadcom/bcm63138.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm63138.dtsi @@ -184,13 +184,69 @@ ubus@fffe8000 { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>; - ranges = <0 0xfffe8000 0x8100>; + ranges = <0 0xfffe8000 0x10000>; timer: timer@80 { compatible = "brcm,bcm6328-timer", "syscon"; reg = <0x80 0x3c>; }; + /* GPIOs 0 .. 31 */ + gpio0: gpio@100 { + compatible = "brcm,bcm6345-gpio"; + reg = <0x100 0x04>, <0x114 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + + /* GPIOs 32 .. 63 */ + gpio1: gpio@104 { + compatible = "brcm,bcm6345-gpio"; + reg = <0x104 0x04>, <0x118 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + + /* GPIOs 64 .. 95 */ + gpio2: gpio@108 { + compatible = "brcm,bcm6345-gpio"; + reg = <0x108 0x04>, <0x11c 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + + /* GPIOs 96 .. 127 */ + gpio3: gpio@10c { + compatible = "brcm,bcm6345-gpio"; + reg = <0x10c 0x04>, <0x120 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + + /* GPIOs 128 .. 159 */ + gpio4: gpio@110 { + compatible = "brcm,bcm6345-gpio"; + reg = <0x110 0x04>, <0x124 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + + rng@300 { + compatible = "brcm,iproc-rng200"; + reg = <0x300 0x28>; + interrupts = ; + }; + serial0: serial@600 { compatible = "brcm,bcm6345-uart"; reg = <0x600 0x1b>; @@ -209,6 +265,14 @@ serial1: serial@620 { status = "disabled"; }; + leds: led-controller@700 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "brcm,bcm63138-leds"; + reg = <0x700 0xdc>; + status = "disabled"; + }; + hsspi: spi@1000 { #address-cells = <1>; #size-cells = <0>; @@ -248,6 +312,19 @@ bootlut: bootlut@8000 { reg = <0x8000 0x50>; }; + pl081_dma: dma-controller@d000 { + compatible = "arm,pl081", "arm,primecell"; + // The magic B105F00D info is missing + arm,primecell-periphid = <0x00041081>; + reg = <0xd000 0x1000>; + interrupts = ; + memcpy-burst-size = <256>; + memcpy-bus-width = <32>; + clocks = <&periph_clk>; + clock-names = "apb_pclk"; + #dma-cells = <2>; + }; + reboot { compatible = "syscon-reboot"; regmap = <&timer>; From patchwork Sun Apr 6 15:32:47 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 14039409 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 D878EC36002 for ; Sun, 6 Apr 2025 15:47: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=wZGQkYCeBjNtSxE5BP+8exx6EGO2URqW/JNqR3gaiK0=; b=bMeeCIQlwlba5d4ALoQeB4jWNm Nr0Qrw7Bas2lKO0iHw2Ekxs0cdvpNrO8X2NYYFEeLOuNPcUp+YOkfVEh3K2POJI6Ea2mUudz7Oy0v JrQQsEx4667Pfct81v+SNI0waUNTjMn894NnKdcShmCu/W99tzuxGdEga7USjVjef8BFO263Q0YO5 YyZFwAthdI+JXb/HCpVDYaeAs1QmmPZqgv5ppaj0Pod1n2qeaoAIm51myVf81tc6KKqvCQM6Oakry eIx2+zXM9WopiNtCkSHTZHvnE9ooZQyxAxi+C6aPVxOdCErBELXm3VCNLfk751fl6e1vouAEahMoD 9OB9WtVg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.1 #2 (Red Hat Linux)) id 1u1SD3-0000000FVSE-2d9t; Sun, 06 Apr 2025 15:46:57 +0000 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by bombadil.infradead.org with esmtps (Exim 4.98.1 #2 (Red Hat Linux)) id 1u1RzR-0000000FUCJ-49D4 for linux-arm-kernel@lists.infradead.org; Sun, 06 Apr 2025 15:32:55 +0000 Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-54963160818so4419105e87.2 for ; Sun, 06 Apr 2025 08:32:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1743953572; x=1744558372; 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=wZGQkYCeBjNtSxE5BP+8exx6EGO2URqW/JNqR3gaiK0=; b=q40eUPOq+6b10P9vBJk+2XfmF9IIFNLoIBGnl/vIALgEJfvaDFZsurVfNjCLlCDvga qzwsZ6ItlDYUuyBGOUXK+QMwbugBi2FWGLMWpPtwVrX/LZtwjxp3WcbhjCQF8HFqOtZt eCAqnX8k4oILULgi80c55kAVOj1LjDcU3q+eBmvFAXyVijU852CaDrC4xY8t0NZxEEpn arElwNSOg2rhMP5M5fjAXtN2r5hJdN/MbhTgAi++L6/ykL3JRJJOpzFKA3PX2NBz3tdD TSYMcuFsPsnrT/meePLxQRDL38s8R4QUgHNcrQm5ujmADX96QznMEl34859NeTHtmRY2 +h1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743953572; x=1744558372; 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=wZGQkYCeBjNtSxE5BP+8exx6EGO2URqW/JNqR3gaiK0=; b=t7fFc/jySondI6Jj8B537GUadgfyO2fibxPxsf0pzw+6l4zwVAFsmtAvcmqX11SJFb Lg2y2JPFTNdhl8k05+GGTTOA7S7Cv3HhMO6N4M/qupOBiy1Xnoy3FxRlOOHFbLW581WZ MZ1U7vAB/r5ZN9HVLp0keZy0FexjEDkkmqIfSsbyhF9Lmgv9NsPMeNU+zf32khs6HSuX 6Miq/chDJ+IoNSl7zsFjgCQg7nDdyitECqBPrZQzh4wCMvK2Gtuh6GTprbyn4cwnTXHK wlDfzw1B2Opr1+fIEE0O/jCh9OJZ1pQBnryBbyVXmwhS9A6wa/cClzSfnC+OCyMeu90x hNrA== X-Forwarded-Encrypted: i=1; AJvYcCXGnJy5O8JesQ6oZGNA+z7SJNMejYSUd0Ov6gGl4gENCatIkEDA/OXNJupQpICz5vcBoxep0Ynzhj7crqAInvgC@lists.infradead.org X-Gm-Message-State: AOJu0Yxy6LLI629gSx0GTU6fDK329pIBFjX8M0WxhwUBoQ8ZPSLadloR JVxKAJpa0/war6EGxESEIrheykRnYkHAIk/uPqxvCmX/rp+C0vX8Iltofwr5zTY= X-Gm-Gg: ASbGncsuRF4TDVkoWD7qYoILbvL8IOnmDwizsAibgDMxSg3caX/TZRGw7lEXhCBSteW OJhbAxYleGfjTAQoERpr4beRotLORQt3RDRpIRFMRdWmqWd/9wE+3MrBoQTRThB42Uoo3KAzFKZ jg38cphAVoj94KZioS1qb+Uu8OGV2VmDD5qPjTjE1BZmySjGhsgyH5Mwdt7L9HHhcrtfc3/W1TJ 7tum0kpL+yFhQzHsiJpsRGNAWsCq0bze70jkVO7dqqXeXTLxLqkuLazVe3G3OSLFC+hlJQexsfK 1wgC/9/zfaX/vRursfyGYT4zPubCAhMwk1vVUhFvdxbCzYCS2NjIA2o= X-Google-Smtp-Source: AGHT+IFF2qw9sVVkrJ895fapzsRBMMOIm7saMh0Q78SxDsVhkJbrQe8Oftk4XE1w/i7jQmK4ffEtEw== X-Received: by 2002:a05:6512:e9c:b0:549:7590:ff24 with SMTP id 2adb3069b0e04-54c232de16cmr2371768e87.22.1743953572521; Sun, 06 Apr 2025 08:32:52 -0700 (PDT) Received: from [192.168.1.140] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54c1e671fa8sm989747e87.218.2025.04.06.08.32.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Apr 2025 08:32:51 -0700 (PDT) From: Linus Walleij Date: Sun, 06 Apr 2025 17:32:47 +0200 Subject: [PATCH v2 07/12] ARM: dts: bcm63148: Add BCMBCA peripherals MIME-Version: 1.0 Message-Id: <20250406-bcmbca-peripherals-arm-v2-7-22130836c2ed@linaro.org> References: <20250406-bcmbca-peripherals-arm-v2-0-22130836c2ed@linaro.org> In-Reply-To: <20250406-bcmbca-peripherals-arm-v2-0-22130836c2ed@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?= , Broadcom internal kernel review list , Olivia Mackall , Ray Jui , Scott Branden , Florian Fainelli Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, Linus Walleij X-Mailer: b4 0.14.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250406_083254_034591_091D0876 X-CRM114-Status: GOOD ( 12.63 ) 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 All the BCMBCA SoCs share a set of peripherals at 0xff800000, albeit at slightly varying memory locations on the bus and with varying IRQ assignments. Add the GPIO, RNG and LED and DMA blocks for the BCM63148 based on the vendor files 63148_map_part.h and 63148_intr.h from the "bcmopen-consumer" code drop. This SoC has up to 160 possible GPIOs due to having 5 registers with 32 GPIOs in each available. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/broadcom/bcm63148.dtsi | 64 ++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/arch/arm/boot/dts/broadcom/bcm63148.dtsi b/arch/arm/boot/dts/broadcom/bcm63148.dtsi index 53703827ee3fe58ead1dbe70536d7293ad842d0c..899b2c572c601272a3525ad6f5676209aaac0149 100644 --- a/arch/arm/boot/dts/broadcom/bcm63148.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm63148.dtsi @@ -99,6 +99,62 @@ bus@ff800000 { #size-cells = <1>; ranges = <0 0xfffe8000 0x8000>; + /* GPIOs 0 .. 31 */ + gpio0: gpio@100 { + compatible = "brcm,bcm6345-gpio"; + reg = <0x100 0x04>, <0x114 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + + /* GPIOs 32 .. 63 */ + gpio1: gpio@104 { + compatible = "brcm,bcm6345-gpio"; + reg = <0x104 0x04>, <0x118 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + + /* GPIOs 64 .. 95 */ + gpio2: gpio@108 { + compatible = "brcm,bcm6345-gpio"; + reg = <0x108 0x04>, <0x11c 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + + /* GPIOs 96 .. 127 */ + gpio3: gpio@10c { + compatible = "brcm,bcm6345-gpio"; + reg = <0x10c 0x04>, <0x120 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + + /* GPIOs 128 .. 159 */ + gpio4: gpio@110 { + compatible = "brcm,bcm6345-gpio"; + reg = <0x110 0x04>, <0x124 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + + rng@300 { + compatible = "brcm,iproc-rng200"; + reg = <0x300 0x28>; + interrupts = ; + }; + uart0: serial@600 { compatible = "brcm,bcm6345-uart"; reg = <0x600 0x20>; @@ -108,6 +164,14 @@ uart0: serial@600 { status = "disabled"; }; + leds: led-controller@700 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "brcm,bcm63138-leds"; + reg = <0x700 0xdc>; + status = "disabled"; + }; + hsspi: spi@1000 { #address-cells = <1>; #size-cells = <0>; From patchwork Sun Apr 6 15:32:48 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 14039410 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 0B8E2C36002 for ; Sun, 6 Apr 2025 15:48:54 +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=9ajeMdU2bzp3CfLA2J3Ap/K02MBno4FVMRdHz6CQ8IU=; b=1kFoYwWEFMHfkWOYSzvM5XGZhJ +WJFegt4+5YCA85D8xl+FD8tGe8OgBBJ6mjUeUIWY9s3K6R1rTKXdj1Quj++OCMNOhh3tEueS5O4I CijlQh92dHiGGItrZZF+UUJb4nwBM2MT6RlER4SXgOFDkI9sQaVCIvc57Gt8vDSFIpACYTLsOm+n3 jMq6AXbYFqbwqJy7ESqKGPt3thR+bxFLDa4eFdwtfBbYg+PBD9dqBqP7nIyXlv6Eq46S26Ae4zLL1 j0e2vgGVTPYzUZJ8bIHUVUzWV4EBuAUl9rx1OkZtzEupSR+owsMph7V+unjvK5pcxS9toJztD4h4D jnbWFxuw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.1 #2 (Red Hat Linux)) id 1u1SEl-0000000FVZq-1Emq; Sun, 06 Apr 2025 15:48:43 +0000 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by bombadil.infradead.org with esmtps (Exim 4.98.1 #2 (Red Hat Linux)) id 1u1RzT-0000000FUCg-3gAx for linux-arm-kernel@lists.infradead.org; Sun, 06 Apr 2025 15:32:56 +0000 Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-54afb5fcebaso3989733e87.3 for ; Sun, 06 Apr 2025 08:32:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1743953574; x=1744558374; 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=9ajeMdU2bzp3CfLA2J3Ap/K02MBno4FVMRdHz6CQ8IU=; b=qT3OY40GoCw5O9gjwuc4DD7nqX0IGUvj1JebtavOIIzqR/RdLRMp7qg1cH6YCvie7n ii9YuXkXclEMIbzou6FOWefWwykBsXGb9RgiqpJGkxvYtupV47xhII5dMBeoz8A8k9hi fPC3wnywc5/qHjatoTVY1oVQWKnKhgHkkXC2mjg5ay60Eofe9aOqYY1Im6g5V5R5izbL zLyWCCgQo6AYEt8vDb68MJbvwu3iy+Na/R4hlyuGTlPxtdovfJAPmoFDH4IpXXCq2mNT gb/6ljs2y2oRPscgTpd2khhJUGho685LInDEz+pImkeoREcsFfptFLlfckzH53kY/kJB EjZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743953574; x=1744558374; 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=9ajeMdU2bzp3CfLA2J3Ap/K02MBno4FVMRdHz6CQ8IU=; b=gCszo9d1fv13z+mvIBnbG1kaKzeQ7pwmP0+acc325c9GWQj6dbdOcm1kz1Bhv7nkuv XJuwDJWGYKPq5uilRdmEJinUW83m4e4sE6CUyFZ/7s+P16Wb7Jz/uL/BcOzs/5JTnc20 a+fgNy+WToF7+pwimvptbxydiV5oEMKjTTR0nkKWNW+Z/ScpIVhnBehP0c/lbCbFA90i l4VN3PLNOcBmACpw36VtCnlL9B+wpwzeAmTwXsq2OufQGusBcrFhzS+2m3NELA3LEn3m jXBA29jZ8rE33dAAPbt3KHJbmhR7ulLCtxOlPT9XN1diueIeUMjqKmzV8r3LEhz5ELTz 3jDg== X-Forwarded-Encrypted: i=1; AJvYcCXvvoED5XP16eeMwTFpQI1Fkn7syjLCbauWyTFWg4YB3KlBMolQbRFDLxtgZweCimCy465cbtx/yfW29gsYl5Bh@lists.infradead.org X-Gm-Message-State: AOJu0YyWgBgz0FE55YMv8XnrhXzcm7KVzp+h6G2dkexZMYGtqn40YkIM puwHitWjhE0DRcYT54mG1LnSr/mqLk6AI9eT7//7Xsgdvrb/fxp4fNb71ohCWmY= X-Gm-Gg: ASbGnctksImb7qT29mu7hux1O/1rVjXa00zWIOymWVTaN4ZIEeskGLQ45FKdp9O99Tz uEz94sOwBmD3SZFyVAzOljrfNJMkL2QVn8SiB8MVrsN+UxGhglCSt6rHIeVXiYfdmmlunq2iAyz 0oN/vo2Yi/8R8nXf5Mb1Go4rC2O+J6mKj1e+AR73haCOCrEuMjI4OqxC7rnDSbjTMTHoTZAJ1vG UVeGGhQMRu6x8c/Hw5zA9mW9o+K8MDgMPYpRTsOGSi+SfGo1aOq34N9pAmjX1hK4Aafb/2GQE8q WyJNaLND7zOzcZO0P5ukHSaDl/IMN/y9sdmyWBvFjDFqbiOjnKUi3Wc= X-Google-Smtp-Source: AGHT+IFj9LWnQwqEwwAM4v/TD9+jrEVV6TFXglDNz6bQzR+BzsB+tyvLPIttTR1FGzpY9DtHm6lc6g== X-Received: by 2002:a05:6512:3da4:b0:549:9163:9f5c with SMTP id 2adb3069b0e04-54c297b7208mr1252974e87.1.1743953573998; Sun, 06 Apr 2025 08:32:53 -0700 (PDT) Received: from [192.168.1.140] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54c1e671fa8sm989747e87.218.2025.04.06.08.32.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Apr 2025 08:32:53 -0700 (PDT) From: Linus Walleij Date: Sun, 06 Apr 2025 17:32:48 +0200 Subject: [PATCH v2 08/12] ARM: dts: bcm63178: Add BCMBCA peripherals MIME-Version: 1.0 Message-Id: <20250406-bcmbca-peripherals-arm-v2-8-22130836c2ed@linaro.org> References: <20250406-bcmbca-peripherals-arm-v2-0-22130836c2ed@linaro.org> In-Reply-To: <20250406-bcmbca-peripherals-arm-v2-0-22130836c2ed@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?= , Broadcom internal kernel review list , Olivia Mackall , Ray Jui , Scott Branden , Florian Fainelli Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, Linus Walleij X-Mailer: b4 0.14.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250406_083255_920658_BB5A78B0 X-CRM114-Status: GOOD ( 12.75 ) 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 All the BCMBCA SoCs share a set of peripherals at 0xff800000, albeit at slightly varying memory locations on the bus and with varying IRQ assignments. Add the watchdog, GPIO, RNG, LED and DMA blocks for the BCM63178 based on the vendor files 63178_map_part.h and 63178_intr.h from the "bcmopen-consumer" code drop. This SoC has up to 256 possible GPIOs due to having 8 registers with 32 GPIOs in each available. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/broadcom/bcm63178.dtsi | 112 +++++++++++++++++++++++++++++++ 1 file changed, 112 insertions(+) diff --git a/arch/arm/boot/dts/broadcom/bcm63178.dtsi b/arch/arm/boot/dts/broadcom/bcm63178.dtsi index 6d8d33498983acfc0c65ee155f64ddedc4a6b376..430750b3030f2534d6bf0468d895ca565007a53f 100644 --- a/arch/arm/boot/dts/broadcom/bcm63178.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm63178.dtsi @@ -117,6 +117,97 @@ bus@ff800000 { #size-cells = <1>; ranges = <0 0xff800000 0x800000>; + watchdog@480 { + compatible = "brcm,bcm6345-wdt"; + 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"; + }; + + rng@b80 { + compatible = "brcm,iproc-rng200"; + reg = <0xb80 0x28>; + interrupts = ; + }; + hsspi: spi@1000 { #address-cells = <1>; #size-cells = <0>; @@ -143,6 +234,27 @@ nandcs: nand@0 { }; }; + leds: led-controller@3000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "brcm,bcm63138-leds"; + reg = <0x3000 0xdc>; + status = "disabled"; + }; + + pl081_dma: dma-controller@11000 { + compatible = "arm,pl081", "arm,primecell"; + // The magic B105F00D info is missing + arm,primecell-periphid = <0x00041081>; + reg = <0x11000 0x1000>; + interrupts = ; + memcpy-burst-size = <256>; + memcpy-bus-width = <32>; + clocks = <&periph_clk>; + clock-names = "apb_pclk"; + #dma-cells = <2>; + }; + uart0: serial@12000 { compatible = "arm,pl011", "arm,primecell"; reg = <0x12000 0x1000>; From patchwork Sun Apr 6 15:32:49 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 14039411 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 C7755C36002 for ; Sun, 6 Apr 2025 15:50:39 +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=XM7VZdytvS/9hUgz3c6+oanhzNKcJjPBC3I1WtjPp7I=; b=GpE9WWfQDKleshJD2cgQpliibN 2B1l4jDwTX96uV62W9OvwurnkbHGIyygsM0Vghu6nL/unrTKRbEvaektxVGJ2odxP8eQ7zDcvpGA6 UXk6EatpYAg8yID1t2PPsVqrYsUzP7tXjMLmEHCuRE/n+LVyjVCTZ8k+EGmKyDCX7KfNB9uSSYqWN CLBLkwJSXL4w50MVagg7whItyKWxjMptRZ0FV+O8MIp1NwFxsrLs/JsGbh2GdNi8b+48Yfj3kg8Ji wr9VZHrUI4rLoTMR0Mgds4XM5EVkANMZOfmWUbT3ku49Qy7TdZXTyulyR2gvBRhP5YITTRloP1aYA 4//JV09Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.1 #2 (Red Hat Linux)) id 1u1SGT-0000000FVh8-07Jk; Sun, 06 Apr 2025 15:50:29 +0000 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by bombadil.infradead.org with esmtps (Exim 4.98.1 #2 (Red Hat Linux)) id 1u1RzV-0000000FUD7-0CLT for linux-arm-kernel@lists.infradead.org; Sun, 06 Apr 2025 15:32:58 +0000 Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-5493b5bc6e8so4501883e87.2 for ; Sun, 06 Apr 2025 08:32:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1743953575; x=1744558375; 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=XM7VZdytvS/9hUgz3c6+oanhzNKcJjPBC3I1WtjPp7I=; b=U7J6CyX7YFWEH7F/bR72UnElxRrOJliZ+GoLCg2vyWJhfs+7v6nI5KQ5PKtZpQ3RJs JhVXDhN+8P+I1c2yACUAsCJKV2EkiiQ6Jawy46D2LgrEzrSARcbsaPpSM9Hcw8kABsq7 oHuNJ625Ll7YeYYmqbaHsee5AtB1fJVQ+mvxB+GD1KvAvg+Ihlfbvq3RKsy6S4aB37KA KncxsmO9CcMqsB9RLCMAVxpJ3MmQn6sqjRCU6ZK4++/soSg1Km8FC1mFDtrWF9lLTp5X Ont6ALc0C4HXy4I41ZCKn1BpIq4pOqxv16vPtAP/vxuU6t8GpWvcQoP2uhIXEOAJNDpy vlpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743953575; x=1744558375; 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=XM7VZdytvS/9hUgz3c6+oanhzNKcJjPBC3I1WtjPp7I=; b=dp8b7WmdOLQZXUkBKpKCRMrKZfRrwobXWTLwOCE1jNcVI0ZUV8vgCG88BnmhjIrwXA AKwmz2Q/pVKR9X6h/WjR4qicZ5NAD5RZ6eKUwug+WOyu8A6TgGLDfN+7XfzqkgBDLocm uWTSUI26hSJaCp9Ku4G2C6mRDhF9SJDHtbhusKFOsHsX5P/r1WJ/6Pd7M2Hg+eSoqw1I 6ZZjK/ozgn4Gllz/yBaiYvcMjSQd+0QV7RpaxIsF5ZuTV0lH4dGqTkKWR5tXOSvRYf0v yaM94mbxxybdyyrgHxEzPqmPfDGEGAvB2eWPOjapo8rpbQCtil9DUz7cFBKORVQPAK9o OGTg== X-Forwarded-Encrypted: i=1; AJvYcCW0CQTyNNabM+m1VkMdlgAPpNwOyQbKKrAnZwob+Rtjup2xt1FHhdKmExvaAASf1kYZ0k56NWTpAHpChGIi9rT2@lists.infradead.org X-Gm-Message-State: AOJu0YynWdRVYyDwL7ghVsx2/F13UlUn9sOylEdBknWNnxPhH3e9dbzV ZpUm8jkgot2iOBPOZoCDIoVZnPHJG9GyLjTiQXkc4PHb5qk9AgS5Foyqzxebcz8= X-Gm-Gg: ASbGncvt12aakD6xtzkNsSeNwH3V/V1zWWEandn6jIqD/ZaZLgfJp4e4/5XbfIdhiTz qjHOGZ0eBlGnAo4mxVJ9nKIzOqUdTwAQwJJHguVG1Uu/2RMmsDN2J7GtGIAVXo3q3nShF4P/RE9 flY0BsU2ZFB2a3OPlzRNPvyo/FLX9fjyKyDg9R0nPRHF8VAs2KzVfp9ohrVDSGWUIzip9CtQihx aTQnGLbAqOYgohTtWQvGWIVVC1MhY3fXJnzl5mGw0YuiATSbT3cVCL1q6H+I2VayohDjONfNNyM o2G6QmY7DBHsOTOOAavPlAiF/mxBLLQR+51eelUfDsKYGvH2w4CPQJc= X-Google-Smtp-Source: AGHT+IGatGeNIuxIlqc+4azXsluaw7cwdCRqrVj9KzzeSUMPgq7VF7F0zj8KyrBeuAJmbGbwaI4bsg== X-Received: by 2002:a05:6512:e9c:b0:549:7394:2cd0 with SMTP id 2adb3069b0e04-54c232dfabbmr2490447e87.19.1743953575548; Sun, 06 Apr 2025 08:32:55 -0700 (PDT) Received: from [192.168.1.140] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54c1e671fa8sm989747e87.218.2025.04.06.08.32.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Apr 2025 08:32:54 -0700 (PDT) From: Linus Walleij Date: Sun, 06 Apr 2025 17:32:49 +0200 Subject: [PATCH v2 09/12] ARM64: dts: bcm4908: Add BCMBCA peripherals MIME-Version: 1.0 Message-Id: <20250406-bcmbca-peripherals-arm-v2-9-22130836c2ed@linaro.org> References: <20250406-bcmbca-peripherals-arm-v2-0-22130836c2ed@linaro.org> In-Reply-To: <20250406-bcmbca-peripherals-arm-v2-0-22130836c2ed@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?= , Broadcom internal kernel review list , Olivia Mackall , Ray Jui , Scott Branden , Florian Fainelli Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, Linus Walleij X-Mailer: b4 0.14.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250406_083257_105599_9FDF9515 X-CRM114-Status: GOOD ( 14.08 ) 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 All the BCMBCA SoCs share a set of peripherals at 0xff800000, albeit at slightly varying memory locations on the bus and with varying IRQ assignments. ARM64 SoCs have additional peripherals at 0xff858000. Add the watchdog, remaining GPIO blocks, RNG, and DMA blocks for the BCM4908 based on the vendor files 4908_map_part.h and 4908_intr.h from the "bcmopen-consumer" code drop. This SoC has up to 320 possible GPIOs due to having 10 registers with 32 GPIOs in each available. Signed-off-by: Linus Walleij --- arch/arm64/boot/dts/broadcom/bcmbca/bcm4908.dtsi | 122 ++++++++++++++++++++++- 1 file changed, 120 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/broadcom/bcmbca/bcm4908.dtsi b/arch/arm64/boot/dts/broadcom/bcmbca/bcm4908.dtsi index 613ba7ee43d6489ea0f1490d2fccaf90961b2694..a2e5277a2e77c0bdec5d933d3121b4ebf2d2d07b 100644 --- a/arch/arm64/boot/dts/broadcom/bcmbca/bcm4908.dtsi +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm4908.dtsi @@ -323,6 +323,7 @@ pmb: power-controller@2800c0 { }; }; + /* PERF Peripherals */ bus@ff800000 { compatible = "simple-bus"; #address-cells = <1>; @@ -348,13 +349,103 @@ watchdog@28 { }; }; - gpio0: gpio-controller@500 { + /* GPIOs 0 .. 31 */ + gpio0: gpio@500 { compatible = "brcm,bcm6345-gpio"; + reg = <0x500 0x04>, <0x528 0x04>; reg-names = "dirout", "dat"; - reg = <0x500 0x28>, <0x528 0x28>; + gpio-controller; + #gpio-cells = <2>; + }; + + /* GPIOs 32 .. 63 */ + gpio1: gpio@504 { + compatible = "brcm,bcm6345-gpio"; + reg = <0x504 0x04>, <0x52c 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>, <0x530 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>, <0x534 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>, <0x538 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>, <0x53c 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>, <0x540 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>, <0x544 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + + /* GPIOs 256 .. 287 */ + gpio8: gpio@520 { + compatible = "brcm,bcm6345-gpio"; + reg = <0x520 0x04>, <0x548 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + + /* GPIOs 288 .. 319 */ + gpio9: gpio@524 { + compatible = "brcm,bcm6345-gpio"; + reg = <0x524 0x04>, <0x54c 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; }; pinctrl@560 { @@ -584,6 +675,12 @@ leds: leds@800 { #size-cells = <0>; }; + rng@b80 { + compatible = "brcm,iproc-rng200"; + reg = <0xb80 0x28>; + interrupts = ; + }; + hsspi: spi@1000 { #address-cells = <1>; #size-cells = <0>; @@ -638,6 +735,27 @@ reset-controller@2644 { }; }; + /* PERF1 Peripherals */ + bus@ff858000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x00 0x00 0xff858000 0x3000>; + + pl081_dma: dma-controller@1000 { + compatible = "arm,pl081", "arm,primecell"; + // The magic B105F00D info is missing + arm,primecell-periphid = <0x00041081>; + reg = <0x1000 0x1000>; + interrupts = ; + memcpy-burst-size = <256>; + memcpy-bus-width = <32>; + clocks = <&periph_clk>; + clock-names = "apb_pclk"; + #dma-cells = <2>; + }; + }; + reboot { compatible = "syscon-reboot"; regmap = <&twd>; From patchwork Sun Apr 6 15:32:50 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 14039412 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 4D9E9C36002 for ; Sun, 6 Apr 2025 15:52:29 +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=qMV0L0+THdEhKdsNmNESmpAlHXgmh851fInPOyFXPJY=; b=oGn2Wl+ou5139W/FRzsSNz+i5z gdpYxe/7E8FUTI0PSd4H9hIPZ7FRKavDZbh47Yx8KZXFcOjeV+ZRekDbwsOaBwcHOdCVN6y0jSAJ0 R2iXTWDeXYuKyLsKQ/Axd/yvJmDQdk7gNoFE1Sh2GlmIK4uVHm7pZS0TvGPtZDQBLQNSrmU1XHVd3 r1xw/ew/UrsHtgFNLowPlKWpYeetw7jfV/80tosVBLJuuQYZgnjMiypA67fmal3fZN+yUbZ4KUt4c EzgbQZlGzXhf4R3BiyKzaW2u2AN99EPr+/jKlDZKIGPH5V+/pYQocimIyarKxlk6iLFFkH1MF5K2u eFMLTA1w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.1 #2 (Red Hat Linux)) id 1u1SIA-0000000FVpO-2xHQ; Sun, 06 Apr 2025 15:52:14 +0000 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by bombadil.infradead.org with esmtps (Exim 4.98.1 #2 (Red Hat Linux)) id 1u1RzW-0000000FUDR-1jfy for linux-arm-kernel@lists.infradead.org; Sun, 06 Apr 2025 15:33:00 +0000 Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-54addb5a139so3988444e87.0 for ; Sun, 06 Apr 2025 08:32:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1743953576; x=1744558376; 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=qMV0L0+THdEhKdsNmNESmpAlHXgmh851fInPOyFXPJY=; b=Z015F47fmqqpiEVNJRsGNJJRKOIEnIINGaBK1Yr3NRSqrvXoCacjkoxcndH51jKT1K 6X0P4FiCtDKWrnSPi6TSvvdiTLZ2B7TjpV6hh4XWuVOc2DaE+RdFuImCRWoHkfPaBTs4 7peQ9yzGRhZqefa1XXyDJx3KeunNJucUuyN9S+KIxAXqpZSKtoZsaWUPZPFD8fulFoRx vMWjP65Kf/MnbIKbsJvlmfLoeJ5hbJNjQxNbvPr7nXJu7R+J+HDPsTTTYUrR1DGiYc+E dpx00ipcyaaUYSsYATbi+e+DacMOrSc0YyNxhKp5YXx8+0+5+65AmugFyzjPEDYRXEQ+ kwfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743953576; x=1744558376; 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=qMV0L0+THdEhKdsNmNESmpAlHXgmh851fInPOyFXPJY=; b=fBi522ZowflClq3uhfyQYGJG5LpmF1tojgAP+EfUinz0i1oKcSGPkM/Xg7BKv7iWY0 095iGWf7J9k5HGRSjxqdjM9soCEA6un1ptFcoAmO6s5fALcryuHbVGpGmiTvTxWWB3EG 0/vg3aPUJ2vHwOHouvqGcKgBuLMtUrkIbXIvxAzyzj/hRdEzzPbyhRRo6+ii+y7C+7SG 7hkem6N8fS7AuDGj4hEIG/adyAt+MMhmV8LlTZg46P6AyBR5763G8TndkN/khN15X0E4 YOQjQFZ7kE+PITrA7LeNsCrR0GD+SDnZJaIs281B1mLLJXPI1DrMZGBUkdTrmzB+DHsI x7eA== X-Forwarded-Encrypted: i=1; AJvYcCXZNwB6tRSoFi7JsmXORT7jV9pfshbgT+KsjnxJcep7Y7iutJ19R8jBlrwJlMMHl0EcRzU7IlhAV6KLKZjSIXi/@lists.infradead.org X-Gm-Message-State: AOJu0Yxp5IBqAMtL6C5wRbrlcMouKVypVJ8rD5gIx+WWyn5eCclWL7ow 52jCsZ7qFrGNoUvHTXM20AvkZiNyNxeTULVEKePjIe26aerrVP9ZZpXQPa+GYR8= X-Gm-Gg: ASbGncvfqwNu0zqOaA4VZNi1ycGIiEG7vH9cmdff2kKwXzRlClpUN5trKQP2Vn7IUVR Z3vf26EWU+fzxkyHx1ernpfHtiVQTxjolCEVEfvhqov8ugkm4Fib9JOTpKqsPNiDZOgIarztkjY egIrspe541sYGqXeGqjBNuOD7sTL+vphBEABPSAyF7AG305Nvn6shU/JYcRJSzG0glv1tkso8Jl owreDf0utA2I8pCGG4K/DLmKi495cx0Zf07a/WUOCpJHPkT6SPAlCEPxH30KyZoO3ckVKwoEDDG o5crxjK75Z6njAKgAItxMW1i+YdbfV8n3Kb7KO4p9Q0bgENjmbcMzDk= X-Google-Smtp-Source: AGHT+IGmejp9qDxskZuF/W/MttOETDK6SM29Z8uze5MFHErOJIJUow3naYSenZ2O5S1vADK8+zXGAA== X-Received: by 2002:a05:6512:3e1f:b0:549:39b1:65d6 with SMTP id 2adb3069b0e04-54c227fef71mr2527448e87.47.1743953576525; Sun, 06 Apr 2025 08:32:56 -0700 (PDT) Received: from [192.168.1.140] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54c1e671fa8sm989747e87.218.2025.04.06.08.32.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Apr 2025 08:32:56 -0700 (PDT) From: Linus Walleij Date: Sun, 06 Apr 2025 17:32:50 +0200 Subject: [PATCH v2 10/12] ARM64: dts: bcm6856: Add BCMBCA peripherals MIME-Version: 1.0 Message-Id: <20250406-bcmbca-peripherals-arm-v2-10-22130836c2ed@linaro.org> References: <20250406-bcmbca-peripherals-arm-v2-0-22130836c2ed@linaro.org> In-Reply-To: <20250406-bcmbca-peripherals-arm-v2-0-22130836c2ed@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?= , Broadcom internal kernel review list , Olivia Mackall , Ray Jui , Scott Branden , Florian Fainelli Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, Linus Walleij X-Mailer: b4 0.14.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250406_083258_470425_DFB61B94 X-CRM114-Status: GOOD ( 14.35 ) 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 All the BCMBCA SoCs share a set of peripherals at 0xff800000, albeit at slightly varying memory locations on the bus and with varying IRQ assignments. ARM64 SoCs have additional peripherals at 0xff858000. On BCM6856 the PERF window was too big so adjust it down to its real size (0x3000) and add another window for PERF1 at 0xff858000. Add the watchdog, GPIO blocks, RNG, LED, second UART and DMA blocks for the BCM6856 based on the vendor files 6856_map_part.h and 6856_intr.h from the "bcmopen-consumer" code drop. This SoC has up to 256 possible GPIOs due to having 8 registers with 32 GPIOs in each available. Signed-off-by: Linus Walleij --- arch/arm64/boot/dts/broadcom/bcmbca/bcm6856.dtsi | 138 ++++++++++++++++++++++- 1 file changed, 137 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/broadcom/bcmbca/bcm6856.dtsi b/arch/arm64/boot/dts/broadcom/bcmbca/bcm6856.dtsi index 00c62c1e5df00c722884a7adfcb7be08a43c0dc3..d6d0b8e1a65b494be414dd5841b65f8ff489d684 100644 --- a/arch/arm64/boot/dts/broadcom/bcmbca/bcm6856.dtsi +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm6856.dtsi @@ -93,11 +93,103 @@ gic: interrupt-controller@1000 { }; }; + /* PERF Peripherals */ bus@ff800000 { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>; - ranges = <0x0 0x0 0xff800000 0x800000>; + ranges = <0x0 0x0 0xff800000 0x3000>; + + watchdog@480 { + compatible = "brcm,bcm6345-wdt"; + reg = <0x480 0x10>; + }; + + watchdog@4c0 { + compatible = "brcm,bcm6345-wdt"; + reg = <0x4c0 0x10>; + status = "disabled"; + }; + + /* 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"; @@ -108,6 +200,29 @@ uart0: serial@640 { status = "disabled"; }; + uart1: serial@660 { + compatible = "brcm,bcm6345-uart"; + reg = <0x660 0x18>; + interrupts = ; + clocks = <&periph_clk>; + clock-names = "refclk"; + status = "disabled"; + }; + + leds: led-controller@800 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "brcm,bcm63138-leds"; + reg = <0x800 0xdc>; + status = "disabled"; + }; + + rng@b80 { + compatible = "brcm,iproc-rng200"; + reg = <0xb80 0x28>; + interrupts = ; + }; + hsspi: spi@1000 { #address-cells = <1>; #size-cells = <0>; @@ -134,4 +249,25 @@ nandcs: nand@0 { }; }; }; + + /* PERF1 Peripherals */ + bus@ff858000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x0 0xff858000 0x4000>; + + pl081_dma: dma-controller@1000 { + compatible = "arm,pl081", "arm,primecell"; + // The magic B105F00D info is missing + arm,primecell-periphid = <0x00041081>; + reg = <0x1000 0x1000>; + interrupts = ; + memcpy-burst-size = <256>; + memcpy-bus-width = <32>; + clocks = <&periph_clk>; + clock-names = "apb_pclk"; + #dma-cells = <2>; + }; + }; }; From patchwork Sun Apr 6 15:32:51 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 14039413 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 83890C36002 for ; Sun, 6 Apr 2025 15:54:12 +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=Rfw29M1YC9XFEM8I1QgE6Co5IiNp1ynpZsURBnbzUc8=; b=1zXG5x2/SW5xWqb79J0r54vOFc VuK6Vby1AeL4g274+6Es5gHF/m2FIAWfntGq4q1GzrMKbz7zvdqoYgIVIYNg5/onCigV/4ZU5i8sx Bb+q7Cyxf8HHvdt/kID+3eSRmKXyS36H7BqgTsk9ZSG1ycof0zQmJJ2dgrMvu+LzhASgIShNK9/kr jAqIqMza/ckvyQLGymMxqoYprwvNo0p8RObw9aWC7Ywn5/w/9fsdXw/ab1bvTUTSVKED6nXpQ/7Hh NhGLoXbsyQjNU8udjhGLIfl6vHyIesnSoybI9unOuu4ys4nRDbDCNf/2EljtS73XTPbbRpR4qVWXS 6DjQV07A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.1 #2 (Red Hat Linux)) id 1u1SJt-0000000FVwg-1ZiZ; Sun, 06 Apr 2025 15:54:01 +0000 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by bombadil.infradead.org with esmtps (Exim 4.98.1 #2 (Red Hat Linux)) id 1u1RzX-0000000FUEF-2Wwv for linux-arm-kernel@lists.infradead.org; Sun, 06 Apr 2025 15:33:00 +0000 Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-5499614d3d2so4079653e87.3 for ; Sun, 06 Apr 2025 08:32:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1743953578; x=1744558378; 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=Rfw29M1YC9XFEM8I1QgE6Co5IiNp1ynpZsURBnbzUc8=; b=DLuqhKXxaCgZv+JZygwKuYlieEwmUmwqz3geLDt0MTuXi6Yb7kIYpPx+fhfPGny4wY LrTqfM9t5x6Gs2tTfcnUyS5M0oROM54Y3PxXHm7orAwRaqYaBsms3Otchxt3dQZ4vV+7 Zgev8q1OtMxe/zvWJ88MOdwZXJXe+ZtsDnCG6qeM43v4OViGg5Vh62cd8dzn12odvnbQ ZttAuBZTHazV8JpDebvIm5Tk6njvcGI5BzAE15PQFaHHI8Y65b+LEgLLIBJOtS3RZa3a KQIL2Bv4GDvwWGr54GlA08NxsDqiT2Urhtq8XJfTgkFIXjOmCTVkNIz5FQ7Kj6I+jz4E bxeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743953578; x=1744558378; 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=Rfw29M1YC9XFEM8I1QgE6Co5IiNp1ynpZsURBnbzUc8=; b=JsHoBakeH74q44Ql3fSfwIUYnvgZBSxQAbCxmM53+D78W2Op/8XfLKZewuwrGwIC9O FZGiDtkrwc626DjwYnygNCZLQ0Xjq/TZoGmvTPuzZx2cY6gEwrHvE6pBU5o5vlI3a7Sv FIIP+LQ7Vi7PvQxV8J/6pDj/4GxnbJwxBi0YUenvFQOTnK2Ia50Sq9phhgQVUVljkndq hG5v80bOEBbhbD6lSfAheEEPCWOmg7DWtnRhlVqRxuWtp9H8LZlvVJlrlYrfozTWkkHI H5gANNNLg77MciatdMcXSpk3VwO0uJdojZw7vxTVbBi+BwxvNl7cJTkiP0gsA9MCnRHA WUuA== X-Forwarded-Encrypted: i=1; AJvYcCVWQFkLaWSyEDNzBkXQyjfzmMdZFBpY8qYo+kw5nt8tEE/ihOMPBS+6Aio49oT+Dhz5Ms8wEM932pactkuinHVv@lists.infradead.org X-Gm-Message-State: AOJu0YzoEZiWoWy1g3S52rsZlX+lxe/h3LKQ6MfKdvvWaN9MzyH7ZZI8 /vyRIM3t3Xqmp8jEjFGlMh6i4XFnMILFHBRdVVqafeXjVioyMejNL+ugzwmLF1o= X-Gm-Gg: ASbGnctaWYwzNIOlqEvtFG8H6EA3m0jv1YBmZvPg+/vWNHJxudCv7CJQr1BD2PkSifo qTpezTZTepWzbzbG52RPP0Cw4qZVidLQU2SnueG0qg8qBs25qVeqkJGLWE+QhhOYOFDAMCxc3XF oBEe0USWdEHniujRNFp0ysBNWxXwLaEAKytwiyT2uIYkfO+L9j3mt+Sf7PJPo2OvOoOhr8TpV+3 jTWgdEYh5JtoKlutHxXT5JmT3gcTYuyX6jKf4LnBMqSPl1hDOzQKGESKeU5ym2/RfBM/Rf5VIjl J5D6cpyt6M17KMiJbIN/oechHLmpM/FajCKRuDclm7v+ZCvA+/ZW+ap5TgdGKCWbrA== X-Google-Smtp-Source: AGHT+IEUkyzkL0J7M5KnLMNvYFvrvh0lK6hSoUd1fasgJ+0yTB0AYLW6EM3ZZUL9Y1uNKBF2MJkRiA== X-Received: by 2002:a05:6512:3b93:b0:549:b28b:17ca with SMTP id 2adb3069b0e04-54c23346dbemr2379200e87.37.1743953578087; Sun, 06 Apr 2025 08:32:58 -0700 (PDT) Received: from [192.168.1.140] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54c1e671fa8sm989747e87.218.2025.04.06.08.32.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Apr 2025 08:32:57 -0700 (PDT) From: Linus Walleij Date: Sun, 06 Apr 2025 17:32:51 +0200 Subject: [PATCH v2 11/12] ARM64: dts: bcm6858: Add BCMBCA peripherals MIME-Version: 1.0 Message-Id: <20250406-bcmbca-peripherals-arm-v2-11-22130836c2ed@linaro.org> References: <20250406-bcmbca-peripherals-arm-v2-0-22130836c2ed@linaro.org> In-Reply-To: <20250406-bcmbca-peripherals-arm-v2-0-22130836c2ed@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?= , Broadcom internal kernel review list , Olivia Mackall , Ray Jui , Scott Branden , Florian Fainelli Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, Linus Walleij X-Mailer: b4 0.14.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250406_083259_648528_CA464D90 X-CRM114-Status: GOOD ( 16.49 ) 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 All the BCMBCA SoCs share a set of peripherals at 0xff800000, albeit at slightly varying memory locations on the bus and with varying IRQ assignments. ARM64 SoCs have additional peripherals at 0xff858000. On BCM6858 the PERF window was too big so adjust it down to its real size (0x3000). Add the watchdog, GPIO blocks, RNG, LED, second UART and DMA blocks for the BCM6858 based on the vendor files 6858_map_part.h and 6858_intr.h from the "bcmopen-consumer" code drop. Curiously, on the BCM6858, the PL081 DMA block is separate from the two peripheral groups PERF and PERF1, so we put it in its own bus in the device tree to translate the fourcell addresses. This SoC has up to 256 possible GPIOs due to having 8 registers with 32 GPIOs in each available. Signed-off-by: Linus Walleij --- arch/arm64/boot/dts/broadcom/bcmbca/bcm6858.dtsi | 127 ++++++++++++++++++++++- 1 file changed, 126 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/broadcom/bcmbca/bcm6858.dtsi b/arch/arm64/boot/dts/broadcom/bcmbca/bcm6858.dtsi index caeaf428dc15db3089bf4dc62c4a272782c22c3f..38331305e6da8eec39d02aeb0e02f3b45e2f5c4d 100644 --- a/arch/arm64/boot/dts/broadcom/bcmbca/bcm6858.dtsi +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm6858.dtsi @@ -111,11 +111,12 @@ gic: interrupt-controller@1000 { }; }; + /* PERF Peripherals */ bus@ff800000 { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>; - ranges = <0x0 0x0 0xff800000 0x62000>; + ranges = <0x0 0x0 0xff800000 0x3000>; twd: timer-mfd@400 { compatible = "brcm,bcm4908-twd", "simple-mfd", "syscon"; @@ -136,6 +137,86 @@ watchdog@28 { }; }; + /* 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 0x18>; @@ -145,6 +226,29 @@ uart0: serial@640 { status = "disabled"; }; + uart1: serial@660 { + compatible = "brcm,bcm6345-uart"; + reg = <0x660 0x18>; + interrupts = ; + clocks = <&periph_clk>; + clock-names = "refclk"; + status = "disabled"; + }; + + leds: led-controller@800 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "brcm,bcm63138-leds"; + reg = <0x800 0xdc>; + status = "disabled"; + }; + + rng@b80 { + compatible = "brcm,iproc-rng200"; + reg = <0xb80 0x28>; + interrupts = ; + }; + hsspi: spi@1000 { #address-cells = <1>; #size-cells = <0>; @@ -171,4 +275,25 @@ nandcs: nand@0 { }; }; }; + + /* This is NOT in the PERF1 Peripheral group on this SoC! */ + bus@ff859000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x0 0xff859000 0x1000>; + + pl081_dma: dma-controller@0 { + compatible = "arm,pl081", "arm,primecell"; + // The magic B105F00D info is missing + arm,primecell-periphid = <0x00041081>; + reg = <0x0 0x1000>; + interrupts = ; + memcpy-burst-size = <256>; + memcpy-bus-width = <32>; + clocks = <&periph_clk>; + clock-names = "apb_pclk"; + #dma-cells = <2>; + }; + }; }; From patchwork Sun Apr 6 15:32:52 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 14039414 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 0D60EC36002 for ; Sun, 6 Apr 2025 15:55:59 +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=NqWHGfBlgpXur5ymKn164EkhRYyd9ouy+P4Dy70Bi6o=; b=UTnpdDFVWrdVei27tpI3ggG28i k+08+tEBLEnKU80fu1ohjecAgaYgIpu6Q9Zi8zgWpe/t1KPo065XbYiOpzsHLHftYMYA6ymhwzk+1 Yx5uO0yIcT23DLNiH2d9cQusDFGRMj4nNbCGGamfPYdOxzW6LLmgbllSYsfHe0gkQ6/S8mUMZzM8I G2NXUzOlIHbSruxipcaiUwZWthxvhKp30eAiGb6iAWirt8MmYmwkMGPjR3WCBq+oOGn1qR2eL+2e6 bSNA7QPybaIXooI4IftXyw4rolmKcLagy4v2wnukxq6DNGB62QbRzJjeTzB0jnTq9c62Be5JrRGqX Q+aR+5Cw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.1 #2 (Red Hat Linux)) id 1u1SLc-0000000FW55-0yTY; Sun, 06 Apr 2025 15:55:48 +0000 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by bombadil.infradead.org with esmtps (Exim 4.98.1 #2 (Red Hat Linux)) id 1u1RzY-0000000FUEz-2cUk for linux-arm-kernel@lists.infradead.org; Sun, 06 Apr 2025 15:33:01 +0000 Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-549b159c84cso969942e87.3 for ; Sun, 06 Apr 2025 08:33:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1743953579; x=1744558379; 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=NqWHGfBlgpXur5ymKn164EkhRYyd9ouy+P4Dy70Bi6o=; b=hk1Aq7gxb/dllvyqsZG1Ul+7VnZ3hEiSYgsgOJSKcw6jM3I9Z+SoDM3G0qDEBI5Tpf bXls7OwYDPf35R+U5Bgs7WfSIXeG3kx9XykY6Vkt8xUjGdBfnR6bOHFCjJMJJ5XUN8Hj +OB1khHgPMDZaHCw1Gz9CfkEJeyW+Xa+QQG1xwMTBcOZsb8jTcvqMR0q5EW7oEyigN4v wHk3/RAnkGpPrzhyUs4uqyMbN7y4OY8mWDUExFJwmhNjU0xIWrsRILiwlqVs4zCVYycU x+q2q0O4JwxPYY7lnesmXkkFQU9pk2BvX6QVnYHAWRf+t8Y7FKHZjYIQkjuBl2HdKRGu ZTWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743953579; x=1744558379; 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=NqWHGfBlgpXur5ymKn164EkhRYyd9ouy+P4Dy70Bi6o=; b=lCpV2vYR/SGcSmwU6nXC+SGVVMEDuLkFGCBZp1oNPA0y9DNNqinGpCx8Tbxm3rXYwD XmlbUXBKp9eLxhuiEiGTerxPdHLoIYnwTMudEMWbzd1f14DOo9s+VUf9hZM65iZnX+fS KUd6h4JLpI3upcCUfWC3BS8qTrhxvV2F6mEVT8T5lUz3kgRuTXBkpPPcAFjVa2ou+j32 p0ZZXDajHYKavw7VO344vqOWRx5udWhlC/6cFJAJtzkfHHA/sFNzortQZciBihlyi/zd 0wHVRFmjsAPInkig+73g8UD3OmXPJ3uFEtM3NjYZZMuO0VR70Yrh9A0wXdehHbflTmNY Sz1g== X-Forwarded-Encrypted: i=1; AJvYcCU7KnP+f41AolOCWvv8wNNYrDd3j794gsfz5xxjwvRloxkRUHdcVBweb6dPabvrKvCqsOtFEbIuDQqL+pqaN2au@lists.infradead.org X-Gm-Message-State: AOJu0Yw+KZZvn/DcL1EKY7tIL33e+t/9cniKabVsklR5fDMKWSJPdeke L2vnUygiglmE1Xktq9RJwJiU4O6KDaTXE8Hkw2MgMERf5y1cRCmkXkM4mFRkUTXH3z6IZD4Uu0e 1GAw= X-Gm-Gg: ASbGnctqub1WPGugdg0WCHUB8w8X4LUJyt/XotIpd0u5+EnV6dR/KB2m4SGKNh9DG2w 0EFpv4j2q0cFFFaZB4y4eZkSgCoA4gn2cfCLDTdt8oJi7XR12FC1IW9/eqOhPOOg4Z5ix9/uP0D LDlZ153YF/Wv7h2n/jfNOSbXOX8JWxZe4eWpPbaunsMUaQMkpSebYXytGiAbKeZpjlolFvZiMH8 r2X8xS8UFnXhLp/LpzB2c/AYJd2uZoJIONRIiCQmPfNtg+Q+W6B6Hopa6KZ66EO2NZYnNa4Ac+8 7oQZY/0aM6h2gylSyOaOYDIBuomIWsrx20uq1/8w63YgzzOeH5d7sHM= X-Google-Smtp-Source: AGHT+IFo5lWlWrnONMPOJWYo5IqaTUomJD3tTkColMtGFQSw4EBGsjCL9oTTcbzR1eqoW0CXn95OVg== X-Received: by 2002:a05:6512:2387:b0:54b:1055:f4b1 with SMTP id 2adb3069b0e04-54c22692d91mr2732914e87.0.1743953579057; Sun, 06 Apr 2025 08:32:59 -0700 (PDT) Received: from [192.168.1.140] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54c1e671fa8sm989747e87.218.2025.04.06.08.32.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Apr 2025 08:32:58 -0700 (PDT) From: Linus Walleij Date: Sun, 06 Apr 2025 17:32:52 +0200 Subject: [PATCH v2 12/12] ARM64: dts: bcm63158: Add BCMBCA peripherals MIME-Version: 1.0 Message-Id: <20250406-bcmbca-peripherals-arm-v2-12-22130836c2ed@linaro.org> References: <20250406-bcmbca-peripherals-arm-v2-0-22130836c2ed@linaro.org> In-Reply-To: <20250406-bcmbca-peripherals-arm-v2-0-22130836c2ed@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?= , Broadcom internal kernel review list , Olivia Mackall , Ray Jui , Scott Branden , Florian Fainelli Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, Linus Walleij X-Mailer: b4 0.14.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250406_083300_674927_C7216ECA X-CRM114-Status: GOOD ( 16.93 ) 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 All the BCMBCA SoCs share a set of peripherals at 0xff800000, albeit at slightly varying memory locations on the bus and with varying IRQ assignments. On BCM63158 the PERF window was too big so adjust it down to its real size (0x3000). Add the watchdog, GPIO blocks, RNG, LED, second UART and DMA blocks for the BCM63158 based on the vendor files 63158_map_part.h and 63158_intr.h from the "bcmopen-consumer" code drop. The DTSI file has clearly been authored for the B0 revision of the SoC: there is an earlier A0 version, but this has the UARTs in the legacy PERF memory space, while the B0 has opened a new peripheral window at 0xff812000 for the three UARTs. It also has a designated AHB peripheral area at 0xff810000 where the DMA resides, so we create new windows for these two peripheral group reflecting the internal structure of the B0 SoC. This SoC has up to 256 possible GPIOs due to having 8 registers with 32 GPIOs in each available. Signed-off-by: Linus Walleij --- arch/arm64/boot/dts/broadcom/bcmbca/bcm63158.dtsi | 150 +++++++++++++++++++++- 1 file changed, 147 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/broadcom/bcmbca/bcm63158.dtsi b/arch/arm64/boot/dts/broadcom/bcmbca/bcm63158.dtsi index 48d618e75866452a64adfdc781ac0ea3c2eff3e8..a47c5d6d034a7ae56803a651636148383acb8cc9 100644 --- a/arch/arm64/boot/dts/broadcom/bcmbca/bcm63158.dtsi +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm63158.dtsi @@ -1,6 +1,7 @@ // SPDX-License-Identifier: (GPL-2.0+ OR MIT) /* * Copyright 2022 Broadcom Ltd. + * This DTSI is for the B0 and later revision of the SoC */ #include @@ -119,11 +120,107 @@ gic: interrupt-controller@1000 { }; }; + /* PERF Peripherals */ bus@ff800000 { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>; - ranges = <0x0 0x0 0xff800000 0x800000>; + ranges = <0x0 0x0 0xff800000 0x3000>; + + /* 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"; + }; + + + leds: led-controller@800 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "brcm,bcm63138-leds"; + reg = <0x800 0xdc>; + status = "disabled"; + }; + + rng@b80 { + compatible = "brcm,iproc-rng200"; + reg = <0xb80 0x28>; + interrupts = ; + }; hsspi: spi@1000 { #address-cells = <1>; @@ -150,14 +247,61 @@ nandcs: nand@0 { reg = <0>; }; }; + }; + + /* B0 AHB Peripherals */ + bus@ff810000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x0 0xff810000 0x2000>; + + pl081_dma: dma-controller@1000 { + compatible = "arm,pl081", "arm,primecell"; + // The magic B105F00D info is missing + arm,primecell-periphid = <0x00041081>; + reg = <0x1000 0x1000>; + interrupts = ; + memcpy-burst-size = <256>; + memcpy-bus-width = <32>; + clocks = <&periph_clk>; + clock-names = "apb_pclk"; + #dma-cells = <2>; + }; + }; + + /* B0 ARM UART Peripheral block */ + bus@ff812000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x0 0xff812000 0x3000>; - uart0: serial@12000 { + uart0: serial@0 { compatible = "arm,pl011", "arm,primecell"; - reg = <0x12000 0x1000>; + reg = <0x0 0x1000>; interrupts = ; clocks = <&uart_clk>, <&uart_clk>; clock-names = "uartclk", "apb_pclk"; status = "disabled"; }; + + uart1: serial@1000 { + compatible = "arm,pl011", "arm,primecell"; + reg = <0x1000 0x1000>; + interrupts = ; + clocks = <&uart_clk>, <&uart_clk>; + clock-names = "uartclk", "apb_pclk"; + status = "disabled"; + }; + + uart2: serial@2000 { + compatible = "arm,pl011", "arm,primecell"; + reg = <0x2000 0x1000>; + interrupts = ; + clocks = <&uart_clk>, <&uart_clk>; + clock-names = "uartclk", "apb_pclk"; + status = "disabled"; + }; }; };