From patchwork Wed Oct 16 06:41:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13837787 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 8A56ED206A1 for ; Wed, 16 Oct 2024 06:44:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=cjbHjLEu2DAWDOzM41sPKMqBv2WP+F41P/bIbauuyPY=; b=UYOmODE0E1tNCWI0C34+gtaStH VPN5H1L0MhmDFWYKh3OmRF//Gxh/rd0d5B43AETQSKS6TMlJ9spMmTuID/NpcbonHb6aUc1zwscUb Iw7DsylDFPncqprFQeCAEOaqJMAYqyQixxcWtPtqSn6g91n2F2Fqrlxx394D1DldF2ITl2wJu76Aj /UotjNgwUwEtOzveZVgPZosCHI1s+hijNGaegL3zx0JoDaLSii5tZLtAGQXGM7BA9im9FOVkL3B4y Kb6x6K5ANkOQXoUGFIFFt1S/zXfQG4ENpz9a1fmwvevAykFNVDYQpEGHYLq324EOX/XfgAtEAFKLY z1VmbEpQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0xlU-0000000AipO-0Gof; Wed, 16 Oct 2024 06:44:12 +0000 Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0xiV-0000000Ahzt-3xtA for linux-arm-kernel@lists.infradead.org; Wed, 16 Oct 2024 06:41:12 +0000 Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2fb6110c8faso14548241fa.1 for ; Tue, 15 Oct 2024 23:41:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729060866; x=1729665666; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=cjbHjLEu2DAWDOzM41sPKMqBv2WP+F41P/bIbauuyPY=; b=mEBu2Or0lwH3qOt+lGW6OE40AMpEKXePMzKoveIj+N/+dvHJGJDIwEN8l7yHi8aoar j2KQDTzTQUCC5jtUF/KpM2pLBS/gKQwRYtd5Ikbat2DwVc5jFIjBMSKPRqNqgSQOJmc3 zZBiW4Vp0khyZpq35KBA47MgklWtdybn9jJaQ5VnVdXbUEsMYImCgCHta/sS/GFwGaRc xpeiXSTX+PHUPmM9zfuY8Snla6/SsRf7iRf7akF0R/XK5OyP2n0gVekGzC1M6S2TGurj in/DnlxZO9ZahboYVIo2cuRruP+BWY812PYhmJEwbzS4IOnB8QGZGNS4zvOo6vi8Uft8 8uEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729060866; x=1729665666; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cjbHjLEu2DAWDOzM41sPKMqBv2WP+F41P/bIbauuyPY=; b=krz97YXnTMYDB2bPgJ6d9iU+QUq7Hi+bJwHPTGKKE1lJ7oane7fhuxqqDCC+OXahJ0 UebuiQNb18FKYWdJYD7EuhTqm7K0LEMNpfVPe7AZaY/roBeaei6OjLGYxUh6KsAC6rHO J/xE8aTSX7HoTAz9UWXyVA/SvI33V8bxckOWb3xeTpzyJR9XU1yHCaZJnCRD2sjItCDy nniskrY0sqi2A+ghIgoHx7WSkmeRD302kRLH8CwAWz6uqybA+VTNuPZ8fOBDYe8gvbUp HGZyBFpeYOXQC3WOmBooTODNsWACgClRYinpKib3GglJXsqyJ6ScUYcXY2vzcXwSWUZK yRMg== X-Forwarded-Encrypted: i=1; AJvYcCXTUY/d35oulFwEvturQ8vy6ROgDR4iDG0euhMUGVQSQJqTILWInegTNSJPP+yateCbS6j977+8foXbaoVut8vE@lists.infradead.org X-Gm-Message-State: AOJu0Yxdy3CzzzxIWV/QbiKP03V7d7cl0lYJiI/7CiL0ZMW6vMnXEnuv z3WhTf9VzWDAbS4Cbfp+qlsASqDInttaOqyEzIwDGcJSAX0zBNPq7D9+gubeTwo= X-Google-Smtp-Source: AGHT+IGfJUs0tKDmuBUu0nwNTRyt2CbICIPRTw+FQZVFwM/jnUnYUk64uVkV+5CzdHlw9OyUfqzRTA== X-Received: by 2002:a05:6512:1285:b0:536:55a9:caf0 with SMTP id 2adb3069b0e04-53a03e9f884mr2181726e87.0.1729060865782; Tue, 15 Oct 2024 23:41:05 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-539ffff3a50sm357455e87.144.2024.10.15.23.41.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2024 23:41:04 -0700 (PDT) From: Linus Walleij Date: Wed, 16 Oct 2024 08:41:01 +0200 Subject: [PATCH v2 1/9] ARM: dts: bcm6846: Add iproc rng MIME-Version: 1.0 Message-Id: <20241016-genexis-xg6846b-base-v2-1-6a7cc2ee57eb@linaro.org> References: <20241016-genexis-xg6846b-base-v2-0-6a7cc2ee57eb@linaro.org> In-Reply-To: <20241016-genexis-xg6846b-base-v2-0-6a7cc2ee57eb@linaro.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Zhang , Anand Gore , Kursad Oney , Florian Fainelli , =?utf-8?b?UmFmYcWCIE1p?= =?utf-8?b?xYJlY2tp?= , Benjamin Larsson , Broadcom internal kernel review list Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linus Walleij X-Mailer: b4 0.14.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241015_234108_079807_47EC9D10 X-CRM114-Status: GOOD ( 11.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The bcm6846 has a standard iproc 200 RNG which is already fully supported by bindings, so just add it to the DTS file. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/broadcom/bcm6846.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/broadcom/bcm6846.dtsi b/arch/arm/boot/dts/broadcom/bcm6846.dtsi index ee361cb00b7c..c2a8deef150a 100644 --- a/arch/arm/boot/dts/broadcom/bcm6846.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm6846.dtsi @@ -108,6 +108,11 @@ uart0: serial@640 { status = "disabled"; }; + rng@b80 { + compatible = "brcm,iproc-rng200"; + reg = <0xb80 0x28>; + }; + hsspi: spi@1000 { #address-cells = <1>; #size-cells = <0>; From patchwork Wed Oct 16 06:41:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13837788 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 2A670D206A1 for ; Wed, 16 Oct 2024 06:45: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=N2IIwOb0WS5MjzwX7Ar4Tf0ByMMbQC+8VyK5ncs/WZ4=; b=b7EUIRzUCR8hbT+HO3rdTRgigR h1RMjtzRuOR5GtPp9O+e4bSXGjytenKnC69k8daAkKOrV6k3RESzMeHyia535UQMjfxu399Ci2f/u sAw1WI61OUl3B0SyYSb+9ElvqwjbRdrA9QTC1134LCEyHdfHSSTfaEqEx0K3uvXg+T7Fyr2UBIwLa 7tXucEFCo4qLRlnjUdD78iwGoCL73Owji/K2nWBJxPZpUMGWtUFO/bvmmMyRdq+X7GSVc2Nc8DrA1 3m0Xa/GN/SIAjfUn7QJwIysq3nB47mfp1VryZJ8N6uTD8yHa5BhDwnxY+jp+9BwQc7ObfeyeRot73 D5Ky17+A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0xms-0000000Aj0O-0Rj5; Wed, 16 Oct 2024 06:45:38 +0000 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0xiY-0000000Ai10-0Ma2 for linux-arm-kernel@lists.infradead.org; Wed, 16 Oct 2024 06:41:13 +0000 Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2fb388e64b0so42540061fa.0 for ; Tue, 15 Oct 2024 23:41:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729060868; x=1729665668; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=N2IIwOb0WS5MjzwX7Ar4Tf0ByMMbQC+8VyK5ncs/WZ4=; b=H32vJMOe4nUGMhHJbcdzSONyFzIf4G7mHXRsFc+catqs4Cf8Z87JAxp6rycWq5LSDM G+PK+DKK7RXYKsQRWqxmTp+M/NYjTr2V1kLXq+ht9YKYXMKRcRM5uXpqVsrYKSWpEYK7 K7ihhm/K8kkgvwc5Cj1JZruI1VYt8KevQh/WsnbAwARubAxZDk/lveh6IUJaJW8cpKka a97MUiyYEU3cnxrOViLDZPS+FnRTaCKuOvPpZUMfRiw75qr2lBacC51vzW8ElXKdQ6zG 7hevetXLhBrlybRtE2MxM9m/VRp9LK+5jQXfqmAikziUM6p5kVVLjzvuik8hh2w0y/Q1 QvRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729060868; x=1729665668; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=N2IIwOb0WS5MjzwX7Ar4Tf0ByMMbQC+8VyK5ncs/WZ4=; b=cHl+3UIBqS5usgJZ8oTO3LwE4KljiUjZtuI0RH95/25qSyNiM+ZfZJrwawKsnrvZfP z0LHYK19D+qxg9CHCqQfHPX0CNVe9eDMoXw0tuJbeliLpq3zFwQv7vMMM8QOXJaT7aZl 0Giv8bsduVnO6mtod2bDbAhpRHh2y0sSeFwQFgjF8GZboqbm7iI6MEpPy7KSOkteYv2F enbTrrZBaSLRN3pzx+Ti0V9Hbc/pFtuVfCM1hCD749vTqNzS7bVdpKYPJU5mt0OU6IZp ihzlkiF37X+RwG+2sabXngc4K8i1YONxHCQGycgsg5ojwrKdCCpmo8l8BX3KxqQ+j/eh Oa6w== X-Forwarded-Encrypted: i=1; AJvYcCVP3Q1mQCK3zLXphPzfzlCeSfr49X2U/DnBm8JFsj1RKQKuEHhHUgLSuDNPEvBPDQBrJvpOVxPdhLb4CM5afWus@lists.infradead.org X-Gm-Message-State: AOJu0Yy8rBT5FmE9ph7JY/c0QUIF9dAQlsfF05AtNWoUQ0dFNh3RKpSK UMmyyofGwA1O4YLfUJu5cE5cKfa31JIO5o1AC+LZZEwc3bMSufMWb0dyA4iF79Q= X-Google-Smtp-Source: AGHT+IEyJSzqwOmJiHJUO1mg0IhBSoUc/nP+W+adze1nbq2bFFYSyTGvrqT2cd/CKg9iVMO+1xnR6Q== X-Received: by 2002:a05:6512:128a:b0:539:f922:bd4e with SMTP id 2adb3069b0e04-539f922c02fmr4883418e87.23.1729060867914; Tue, 15 Oct 2024 23:41:07 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-539ffff3a50sm357455e87.144.2024.10.15.23.41.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2024 23:41:06 -0700 (PDT) From: Linus Walleij Date: Wed, 16 Oct 2024 08:41:02 +0200 Subject: [PATCH v2 2/9] ARM: dts: bcm6846: Enable watchdog MIME-Version: 1.0 Message-Id: <20241016-genexis-xg6846b-base-v2-2-6a7cc2ee57eb@linaro.org> References: <20241016-genexis-xg6846b-base-v2-0-6a7cc2ee57eb@linaro.org> In-Reply-To: <20241016-genexis-xg6846b-base-v2-0-6a7cc2ee57eb@linaro.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Zhang , Anand Gore , Kursad Oney , Florian Fainelli , =?utf-8?b?UmFmYcWCIE1p?= =?utf-8?b?xYJlY2tp?= , Benjamin Larsson , Broadcom internal kernel review list Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linus Walleij X-Mailer: b4 0.14.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241015_234110_271797_FBD9FC31 X-CRM114-Status: GOOD ( 11.44 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The BCM6846 has a BCM7038-compatible watchdog timer, just add it to the device tree. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/broadcom/bcm6846.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/broadcom/bcm6846.dtsi b/arch/arm/boot/dts/broadcom/bcm6846.dtsi index c2a8deef150a..f4f1f3a06eac 100644 --- a/arch/arm/boot/dts/broadcom/bcm6846.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm6846.dtsi @@ -99,6 +99,11 @@ bus@ff800000 { #size-cells = <1>; ranges = <0 0xff800000 0x800000>; + watchdog@480 { + compatible = "brcm,bcm6345-wdt"; + reg = <0x480 0x10>; + }; + uart0: serial@640 { compatible = "brcm,bcm6345-uart"; reg = <0x640 0x1b>; From patchwork Wed Oct 16 06:41:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13837789 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 3605FD206A1 for ; Wed, 16 Oct 2024 06:47:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=76iS9IrOL+avAFMLHux4lzigT6bPCj+idYdT2QESLs4=; b=gHrq1CGLXhyM1JYKBQJTmok0oC MHwk1n/TYMWuIPbBc0JBmxCz+3gnl7nxzgBcCNKCVXx91BAIdvCrVsX7ooWZihEXzE8sUtkqIaGUv iFSYKdTblJAMChN3zpwj2S/6ZB/7L6rgUH1+UyF5pIqO0iK/Euu8mHpuvchmATdD5chPTXVXRmlBS 3gSCriePr1E6T8vgDSzEP7ZFNkyGZLcq1+AWpcg2XfBCt1Z0/6khvldBy0smqyIpFdvxZT4qMgeMx 62SAUKtAQn8Yhi2DBTWt9nyXW4HvZV4zq8AOmCiHsGPKLz42qg5mCDoZ3Le3ILMIsFi1V1TaKM2hx VW2Vuy3A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0xoF-0000000AjBU-0oqh; Wed, 16 Oct 2024 06:47:03 +0000 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0xiZ-0000000Ai1U-2Y5l for linux-arm-kernel@lists.infradead.org; Wed, 16 Oct 2024 06:41:13 +0000 Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-539e59dadebso4996566e87.0 for ; Tue, 15 Oct 2024 23:41:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729060869; x=1729665669; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=76iS9IrOL+avAFMLHux4lzigT6bPCj+idYdT2QESLs4=; b=qigwqe8WMZrbUGLH13fUJvcTbzm6Dke3Oq+1DFgZJHMT/MJJQMdtKjQNrGB+ppStr8 YGVOFZqeYWAaEbQxsbwEaPCLoM8vC0Jc9F3ybk5sXMQ5RoCn2KwHrDNrtBdF85LW5awm BZ7q3GY25kfEwPWk/9jyQu0QWVpkJqkSl2xw3sMmn3VuheESGhnHoGBGWqXeHBhHGHbI LVTSR0MMidlfny7LfL6prt286T45bsEXFHHXBOZ31oVlw7MwHcBisro+2Na9GLEQHLKB 6Zd7dHkkhCp2uUWvPGyyGisd0RTjha4Vd6dK3rgdopfenbfbuiR8exGyo3W7b9a7yVSb Bxfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729060869; x=1729665669; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=76iS9IrOL+avAFMLHux4lzigT6bPCj+idYdT2QESLs4=; b=BBzaVyQNK/r8v0vRrqP+OJ5T1vJnzcta+kgT20r2COTc/TjLz23xF0kXaz3s8gntW8 FM98TUTD9MxIyhw0J1E4b+wVIfZQwgwiSy5fGdu7bmlU9W+xlR1oyYQK+sOMPXEaHcu8 inlyHeliC1hyE5a9z3xsKzKOKS5h0brZgFPlF63/9KMlssEfaRIPOHT1a7kEUAREucIa 9kntgsMPWEDd3zpmpqwpDa7fBor9Nra2Wwexrsm3OFr7Nd44p13+wVzOGo5nGr+Cd8Gf QbTc15Hi3wTMZVNhqNmKOGC/YdbeaTjrekQMVa1IPNzRe+MoqpF6yd/NQWfjCvsCFmxp RjIw== X-Forwarded-Encrypted: i=1; AJvYcCWYiElCmsLrGFNwB+lNHfPsXZqZ9ikIzmeY/q8aCzAQocxO5/mABWnyl82EjHzG2WTN1hCI7r+Esn3Dp80AjplR@lists.infradead.org X-Gm-Message-State: AOJu0Yz/MrTvxkDl99V6V3KSAhcvXszX82I9Q8o04EiPZpqQEOuXdn4x EamOVnjtHbnauoq9adFYtcozqg4YqYbn714wgXepp+hkkIx8guESLqbNwDdPohU= X-Google-Smtp-Source: AGHT+IEJOVgamV8wficgril0A/XHS66F8ZBL3GF0JLpQ5IcOYUi0lgofBGAxFDrEK6VhHiBb/zrjOg== X-Received: by 2002:a05:6512:1051:b0:539:ed5e:e226 with SMTP id 2adb3069b0e04-53a03f2d493mr1980868e87.26.1729060869502; Tue, 15 Oct 2024 23:41:09 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-539ffff3a50sm357455e87.144.2024.10.15.23.41.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2024 23:41:08 -0700 (PDT) From: Linus Walleij Date: Wed, 16 Oct 2024 08:41:03 +0200 Subject: [PATCH v2 3/9] ARM: dts: bcm6846: Add GPIO blocks MIME-Version: 1.0 Message-Id: <20241016-genexis-xg6846b-base-v2-3-6a7cc2ee57eb@linaro.org> References: <20241016-genexis-xg6846b-base-v2-0-6a7cc2ee57eb@linaro.org> In-Reply-To: <20241016-genexis-xg6846b-base-v2-0-6a7cc2ee57eb@linaro.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Zhang , Anand Gore , Kursad Oney , Florian Fainelli , =?utf-8?b?UmFmYcWCIE1p?= =?utf-8?b?xYJlY2tp?= , Benjamin Larsson , Broadcom internal kernel review list Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linus Walleij X-Mailer: b4 0.14.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241015_234111_950832_B8D188B5 X-CRM114-Status: GOOD ( 11.67 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The BCM6846 has the same simplistic GPIOs as some other Broadcom SoCs: plain memory-mapped registers with up to 8 blocks of 32 GPIOs each totalling 256 GPIOs. Users of the SoC can selectively enable the GPIO blocks actually used with a certain design. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/broadcom/bcm6846.dtsi | 80 +++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/arch/arm/boot/dts/broadcom/bcm6846.dtsi b/arch/arm/boot/dts/broadcom/bcm6846.dtsi index f4f1f3a06eac..dc0c87c79569 100644 --- a/arch/arm/boot/dts/broadcom/bcm6846.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm6846.dtsi @@ -104,6 +104,86 @@ watchdog@480 { reg = <0x480 0x10>; }; + /* GPIOs 0 .. 31 */ + gpio0: gpio@500 { + compatible = "brcm,bcm6345-gpio"; + reg = <0x500 0x04>, <0x520 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + + /* GPIOs 32 .. 63 */ + gpio1: gpio@504 { + compatible = "brcm,bcm6345-gpio"; + reg = <0x504 0x04>, <0x524 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + + /* GPIOs 64 .. 95 */ + gpio2: gpio@508 { + compatible = "brcm,bcm6345-gpio"; + reg = <0x508 0x04>, <0x528 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + + /* GPIOs 96 .. 127 */ + gpio3: gpio@50c { + compatible = "brcm,bcm6345-gpio"; + reg = <0x50c 0x04>, <0x52c 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + + /* GPIOs 128 .. 159 */ + gpio4: gpio@510 { + compatible = "brcm,bcm6345-gpio"; + reg = <0x510 0x04>, <0x530 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + + /* GPIOs 160 .. 191 */ + gpio5: gpio@514 { + compatible = "brcm,bcm6345-gpio"; + reg = <0x514 0x04>, <0x534 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + + /* GPIOs 192 .. 223 */ + gpio6: gpio@518 { + compatible = "brcm,bcm6345-gpio"; + reg = <0x518 0x04>, <0x538 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + + /* GPIOs 224 .. 255 */ + gpio7: gpio@51c { + compatible = "brcm,bcm6345-gpio"; + reg = <0x51c 0x04>, <0x53c 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + uart0: serial@640 { compatible = "brcm,bcm6345-uart"; reg = <0x640 0x1b>; From patchwork Wed Oct 16 06:41:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13837791 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 497B2D206A0 for ; Wed, 16 Oct 2024 06:48: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=WJ7fAOXQKwQQhOEiUJbYHwfejARQ4uFNrA8KvsiCnkA=; b=fQUXlV2+eeJV+J28iawtPqrcuP ankUqA2Vdf6uh2pkoYAeq13PZMW7WrAZLZCdijn82UnUL9Db0yJwRmiBXTllMtSwUFfPk7kswMKsM XniqQVSRHSix3grZN+ZzEXWLiR9+jVRHge6dytSFomNEv/xfSm4vowGtLh065QOf0/SLGD0MuQ2k0 hnxDyfHnnDSoCdHAdIztNOGr6peFM62jJ0r9Y50VWUZeFSBrzJf4GIrih+O36UX2GNxy14JO1t40K KO2ggGypRkh4Isk2yYWQAv6TaavP7OMSYVipiLZCl4YtaecUrvJ5k9Syf7N2nZQmLr3aIa3JWxysR CtPVFxZA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0xpc-0000000AjJK-3gee; Wed, 16 Oct 2024 06:48:29 +0000 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0xib-0000000Ai2P-2Z0F for linux-arm-kernel@lists.infradead.org; Wed, 16 Oct 2024 06:41:15 +0000 Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-539f72c8fc1so3170863e87.1 for ; Tue, 15 Oct 2024 23:41:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729060871; x=1729665671; 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=WJ7fAOXQKwQQhOEiUJbYHwfejARQ4uFNrA8KvsiCnkA=; b=lwlttvZMUfW6J2XxYRhSwx5H2TXBD7uYY3Grint5W4Xrrmhs5nsLgfICafR1fMZVmx nHf3FFKtIAUttsg1JTXMUuMWVhmu8zrfSTq+AISzmlOXee9ueK5nRqJNcrQGFp3O1R+H VGAxYIkVYJvpG3P2zi+Fy7ouvSjHLrWPEd44lR/1MR86/ok7qp1W8mVoE6+gXNXV/LnP Le+H7ycemTceTvh7w3LtUDfaPW2dgfzaagZGCAXxNjKYI3nUk8zOmS84mdKZG7OaVbuH X7uNd3DWCqA06L46XT9fp9zvWpIS9i4j9LPeP/Clu1NVYMDSpQGHgOALxNwOkKGZ3tfR c2/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729060871; x=1729665671; 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=WJ7fAOXQKwQQhOEiUJbYHwfejARQ4uFNrA8KvsiCnkA=; b=Wnh+YdL+JasC8UifT5n0iztmpGmu+gbcetTFac2AmdjVlxKXWHRKDlL4Kv8Q93N8Nc BNSyjs1QGCBMIOK+TEPf7w+neI9VBC2GHWPdXUUdgsjnpIqev7xq0hAc4N1du0vGjsc4 HZRUOMyV6+TMur8fdhfRzcU0cJqggbgrwhHQ0u/WR3dFEXwqDGkOclXcuV0rjyZ9dAew uenMlkYwM26EiT9sc6VCFf8NTklXpARBkNR2CvnLT4Uhs1RsE5HHfavB0r5IFwB15NBG BhymcK0igPXCaRU2s29VR58RFKxPAYsOPLrpdZWoKB8mdgvk/aA1SEe1gOl3vR91DTzv VFVg== X-Forwarded-Encrypted: i=1; AJvYcCUDqTXMhD8mlE1xxTLdGEJRvizHcYwAWXXpNZ0ZgaWU2dtQZeN7J4HkZ8Q2AF5MtTwNELdmwyJgiVQ/cW+BvtZi@lists.infradead.org X-Gm-Message-State: AOJu0Yxg4AFqWdMyca3aYW6aDloY1iP4pgCMFz7nBFSVj/NnrrnaJa7Z bQgl2R9MO6PihGbZozMLpVmyPR3TkMP35WVxdpaC6g86tGAXjUi5fiDJFmljJFk= X-Google-Smtp-Source: AGHT+IH7IgnlyDwu5kNAUov4+0tdT48D/1A90QBXsUlsaZm0+ILwjysuLkx7TbQzbevz0cMz+PU6bQ== X-Received: by 2002:a05:6512:33ca:b0:536:7362:5923 with SMTP id 2adb3069b0e04-539da3b439cmr8432068e87.1.1729060871005; Tue, 15 Oct 2024 23:41:11 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-539ffff3a50sm357455e87.144.2024.10.15.23.41.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2024 23:41:10 -0700 (PDT) From: Linus Walleij Date: Wed, 16 Oct 2024 08:41:04 +0200 Subject: [PATCH v2 4/9] ARM: dts: bcm6846: Add MDIO control block MIME-Version: 1.0 Message-Id: <20241016-genexis-xg6846b-base-v2-4-6a7cc2ee57eb@linaro.org> References: <20241016-genexis-xg6846b-base-v2-0-6a7cc2ee57eb@linaro.org> In-Reply-To: <20241016-genexis-xg6846b-base-v2-0-6a7cc2ee57eb@linaro.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Zhang , Anand Gore , Kursad Oney , Florian Fainelli , =?utf-8?b?UmFmYcWCIE1p?= =?utf-8?b?xYJlY2tp?= , Benjamin Larsson , Broadcom internal kernel review list Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linus Walleij X-Mailer: b4 0.14.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241015_234113_782093_46B5D7CA X-CRM114-Status: GOOD ( 12.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This adds the MDIO block found in the BCM6846. Use the new "brcm,bcm6846-mdio" compatible (merged to the networking tree) for this block. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/broadcom/bcm6846.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/broadcom/bcm6846.dtsi b/arch/arm/boot/dts/broadcom/bcm6846.dtsi index dc0c87c79569..53ae3c7c583b 100644 --- a/arch/arm/boot/dts/broadcom/bcm6846.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm6846.dtsi @@ -223,5 +223,14 @@ nandcs: nand@0 { reg = <0>; }; }; + + mdio: mdio@2060 { + compatible = "brcm,bcm6846-mdio"; + reg = <0x02060 0x10>, <0x5a068 0x4>; + reg-names = "mdio", "mdio_indir_rw"; + #size-cells = <1>; + #address-cells = <0>; + status = "disabled"; + }; }; }; From patchwork Wed Oct 16 06:41:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13837792 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 4808ED206A0 for ; Wed, 16 Oct 2024 06:50:07 +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=cOsfHDlJmo8umkafLupKpMxdPsfuN4znjWiW3hFd5FU=; b=E6Xk9wPZ9MPpa4UhykhkAQB1WP reK37/Lj8ToN/IHVP++STO/CtUVZf7E/Xfbly7dZAGdhie/n2R932UijvF+ouYDQTyY5B1kiQGUeg m4su0wSmwZuCyBg9Am8Swp23kHfVr+QEdCvTBtwHHMAfgzxMmMoblKJTxceZMtwgGtyggjbJ3G65j qEuMVFL7xzQdjkgywr/0FFGtrYnjH6PGGoB7PYAqb7Rnj8mdDfz6cPIp1LqGdwNn9sJsZ4FLzc1cQ 9vbQjP3+axClqgNYQsxVMndY8HIOUOCzazdYwzt5ZYpwgCEvLjgjzlzqUYNFSgaKwnQx6vFAypmtd GwXFWvjw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0xr0-0000000AjPB-163f; Wed, 16 Oct 2024 06:49:54 +0000 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0xic-0000000Ai33-2t9w for linux-arm-kernel@lists.infradead.org; Wed, 16 Oct 2024 06:41:16 +0000 Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-539f58c68c5so5142084e87.3 for ; Tue, 15 Oct 2024 23:41:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729060872; x=1729665672; 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=cOsfHDlJmo8umkafLupKpMxdPsfuN4znjWiW3hFd5FU=; b=wWhboH/MwtolBNIFmVfu7FkeUIPC6dCC57215f4HdOX+Ivi5DcwxmOKoRpijQCbD/a NyJfFQUEr31xu5Q32cex93bxVLYGa7iFFzqfrEWSm/XFcUsrtLBLOANqor1Zo/m/ocTd N8rzVclKSrEdGbYwg2Us92Do+nH8ROHVT+snCNe75bSfjEH0ZPG8W6Y3iE9WSpoIURBN 1XOX3vjgRbNf+6bwTFaICJlY/ijnSOQUQYlCEEUU2+kQkDsf3xCj6qgMne/K9eYdNdjY odD3O0YzUK+oeEuH3ep5JQuE4fwkmXg/2aZ/Kb8qBbrIPMMbEVpybIvKqdQeDingf65Q fvJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729060872; x=1729665672; 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=cOsfHDlJmo8umkafLupKpMxdPsfuN4znjWiW3hFd5FU=; b=WQM/vYvBDwqTtTfo9frKeZOuM6hIUKN2XLqV2JvvhibTSsGvGCU6omyjBTlDlNhh+3 sTg78TnKVCGqESG1qxDGBnkV6O9G0wfEGeCxmRH7AbUguiYRWKu4t2UEVRPnIf5RYRMt 6C7LFKEFDPSCRbO1GMCUMVUXW7sDKtU4VQndCVFoLx3AvK1I14lnD0kT0uCCjov1/VQj GVCGb/n49y3UDvfekZLBjBnY4w/Nig27patY2nRfbiZvKpLUMxHvrN4QLNVkoy+J95g4 5nmAq38Gx71qJokuQgZPpwehI+JgX5+58R51lov3s8JfBvzzVb2/84bueeng/FQgXNaC o7YQ== X-Forwarded-Encrypted: i=1; AJvYcCVFb2joAV8pTnrLOgnroG61GvhNW5Y1HG4XjpMe4zpvIZ19aFor4BQX7E2TYAfQXNCHJrTZe6yXDu+TJ3i+m+58@lists.infradead.org X-Gm-Message-State: AOJu0YwPFtyZKvoSdYCSKJs5v6QypH0n4t/QvkWXySJ3dA4SeHj+XNey SosaqxFcO4bSm61Zn77/I60ThX/Eh7PA4SburYovNEtwkatf+DRoylMkcOadOdI= X-Google-Smtp-Source: AGHT+IGsu+xuIJsXMdj21xMoaGfRZyH1qFEMLBfm8K8kYzHhW1Te4G6gCJofTlsEog/uQSxavkmsOg== X-Received: by 2002:a05:6512:3d23:b0:52c:cd77:fe03 with SMTP id 2adb3069b0e04-539e54e713cmr9372122e87.14.1729060872483; Tue, 15 Oct 2024 23:41:12 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-539ffff3a50sm357455e87.144.2024.10.15.23.41.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2024 23:41:11 -0700 (PDT) From: Linus Walleij Date: Wed, 16 Oct 2024 08:41:05 +0200 Subject: [PATCH v2 5/9] ARM: dts: bcm6846: Add LED controller MIME-Version: 1.0 Message-Id: <20241016-genexis-xg6846b-base-v2-5-6a7cc2ee57eb@linaro.org> References: <20241016-genexis-xg6846b-base-v2-0-6a7cc2ee57eb@linaro.org> In-Reply-To: <20241016-genexis-xg6846b-base-v2-0-6a7cc2ee57eb@linaro.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Zhang , Anand Gore , Kursad Oney , Florian Fainelli , =?utf-8?b?UmFmYcWCIE1p?= =?utf-8?b?xYJlY2tp?= , Benjamin Larsson , Broadcom internal kernel review list Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linus Walleij X-Mailer: b4 0.14.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241015_234114_853570_292298AB X-CRM114-Status: GOOD ( 10.98 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add the BCMBCA LED controller to the BCM6846 DTSI. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/broadcom/bcm6846.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/broadcom/bcm6846.dtsi b/arch/arm/boot/dts/broadcom/bcm6846.dtsi index 53ae3c7c583b..371c16af27f3 100644 --- a/arch/arm/boot/dts/broadcom/bcm6846.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm6846.dtsi @@ -198,6 +198,14 @@ rng@b80 { reg = <0xb80 0x28>; }; + leds: led-controller@800 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "brcm,bcm63138-leds"; + reg = <0x800 0xdc>; + status = "disabled"; + }; + hsspi: spi@1000 { #address-cells = <1>; #size-cells = <0>; From patchwork Wed Oct 16 06:41:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13837793 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 1329AD206A0 for ; Wed, 16 Oct 2024 06:51: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=feT/7XmQcrVtoa6vvcgiQdzp+mqlGEZb5gary+Ro0Ac=; b=phP1poFZL5J0+H37ByKdavMkCn gfsbvuQG/I1rApjRauW8PFZfA77eD7T2uNsNrKN3TvtOlU2qTz254W7yUQqDSJiiXnM8L2CFXjtaj hv0qWNsF6WFP7zhmbfa/F434DVx5lpI40Ew+MF7ol9FdhX+GZxowYa9CmgfNXEgdJT0tbxnNqaRvn FxykLA/zgcfqq9S2AW3uRBEeEnGeSZrrtGx6zgt++MERbHckEBswzDKEq7WQCRCEszUunn66By8U5 yy2LuECztZJ3AeyJ7mqMJj4LVF3LrTF1L1R4DelsATiH9jtwFzDFfBbFXH/gXJk6ikAYxl3SKEOOi 0KySDkOg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0xsS-0000000Ajd3-3Dsi; Wed, 16 Oct 2024 06:51:24 +0000 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0xif-0000000Ai4T-05k3 for linux-arm-kernel@lists.infradead.org; Wed, 16 Oct 2024 06:41:19 +0000 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2f7657f9f62so61213031fa.3 for ; Tue, 15 Oct 2024 23:41:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729060875; x=1729665675; 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=feT/7XmQcrVtoa6vvcgiQdzp+mqlGEZb5gary+Ro0Ac=; b=r9ctN1rJB2RwkKVtzV7SPTZ/d3zfI/Cv1paX5wZeYikktu85d6gnBrB1QzDL7RCCbk 5DuUP1k0KY5wMoEIR7iMgMxy+Kqn1XBnkU2sQhbuEz4T53BGTH9wud8fAAu7Gc7CvuVO XY0Q1ez6Cdd19dmdoViUma5UUcSYMVWgKFL2iFpOFOTp1kJG8UrD9x0S4GM+y1E7n1dU udlqu0jix9/YOFEne7NTMilSF9KAYufankaREn1wOh5qjavor4Sh+hjV1hKgjZ75e6cM 3yRB+bruvT2UprIyAq2pSUD9tEdjHmZsL3qV4C7Sj9G8x+WW5S4uxM76WXB+0VQBS9SM NgDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729060875; x=1729665675; 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=feT/7XmQcrVtoa6vvcgiQdzp+mqlGEZb5gary+Ro0Ac=; b=lFPR1T/h4BR9fiHi9bP6Ic+paDrz9ey+yaKPwhAhDCdp38fVrMGq4mDXRJQBn3GfQi rl0KEJPoW9WwAWBNXxyxGHhIenYq5u6NxSbRLQAsYwUWxjyLT/qz1B0m42AX8H7m4EbN la08aSx76V1OQSdrpp8EeaPUhGRuxlZvcsH/4m/rrWMIfDcQAOoakf4MaCvwHzFc5/un Opkbf8VpMB/pBmGfeJUIdEOpnxsDa6zaAqdqmXYPIii+IG523BIy+CC/P5+ZOaRuL/j6 sKcOu7uJQZJDVnPDctWImyz/i0QU0+nX0EBgti+aKq7sRhOjfeOJn99O1/cVQL/PKj/c sZvA== X-Forwarded-Encrypted: i=1; AJvYcCVzK6IwVa1xot0K4ExGVfYrZb8Mbzn4757AkZ+rDANhp5napgDgrm8GbElTijCV6OGu2ZnrH5Qoa8o2hZfEyLPc@lists.infradead.org X-Gm-Message-State: AOJu0Yyc7rU+JCFIVeB51aTwTjC/9VfnvP0QFlVTLpXoQyT2WAHi9vnS K6K2ElMjmiPwZZdccEXHOajFY7Z6FhCwb0r5l8jGmRz0aNrfiy1O7w9HTZzjCvBfWHCEOUJhlDg 1 X-Google-Smtp-Source: AGHT+IEcOSxSHiOL67XtheXoGabAKLmm5j7st4EBhXlI+whhH2LShcIJ5e0wxd2agXFBbk4Z7L/63A== X-Received: by 2002:a05:6512:b02:b0:539:fd10:f07b with SMTP id 2adb3069b0e04-53a03f96215mr2013640e87.55.1729060874721; Tue, 15 Oct 2024 23:41:14 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-539ffff3a50sm357455e87.144.2024.10.15.23.41.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2024 23:41:13 -0700 (PDT) From: Linus Walleij Date: Wed, 16 Oct 2024 08:41:06 +0200 Subject: [PATCH v2 6/9] ARM: dts: bcm6846: Add ARM PL081 DMA block MIME-Version: 1.0 Message-Id: <20241016-genexis-xg6846b-base-v2-6-6a7cc2ee57eb@linaro.org> References: <20241016-genexis-xg6846b-base-v2-0-6a7cc2ee57eb@linaro.org> In-Reply-To: <20241016-genexis-xg6846b-base-v2-0-6a7cc2ee57eb@linaro.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Zhang , Anand Gore , Kursad Oney , Florian Fainelli , =?utf-8?b?UmFmYcWCIE1p?= =?utf-8?b?xYJlY2tp?= , Benjamin Larsson , Broadcom internal kernel review list Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linus Walleij X-Mailer: b4 0.14.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241015_234117_251088_5FC97EFD X-CRM114-Status: GOOD ( 15.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 The ARM PL081 DMA controller can be found in the BCM6846 memory map, and it turns out to work. The block may be used as DMA engine for some of the peripherals (maybe the EMMC controller found in the same group of peripherals?) but it can always be used as a memcpy engine, which is a generic "blitter". I tested it with the dmatest module, and it copies lots of data very fast and fires hundreds of thousands of interrupts so it works just fine. Add it to the BCM6846 DTSI file. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/broadcom/bcm6846.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/broadcom/bcm6846.dtsi b/arch/arm/boot/dts/broadcom/bcm6846.dtsi index 371c16af27f3..131e1802bd86 100644 --- a/arch/arm/boot/dts/broadcom/bcm6846.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm6846.dtsi @@ -240,5 +240,18 @@ mdio: mdio@2060 { #address-cells = <0>; status = "disabled"; }; + + pl081_dma: dma-controller@59000 { + compatible = "arm,pl081", "arm,primecell"; + // The magic B105F00D info is missing + arm,primecell-periphid = <0x00041081>; + reg = <0x59000 0x1000>; + interrupts = ; + memcpy-burst-size = <256>; + memcpy-bus-width = <32>; + clocks = <&periph_clk>; + clock-names = "apb_pclk"; + #dma-cells = <2>; + }; }; }; From patchwork Wed Oct 16 06:41:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13837794 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 59A38D206A2 for ; Wed, 16 Oct 2024 06:53:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=hFgpgpsGiP4+DQBthLLgLzgemSHp+0cBH1ixssAB0HI=; b=3iMDcU0o7xp3TdhMkrt1VXnjeB sNOIMqkke9yrscIaGqxvp4cUpjJ4jJzKUOHcdc9/msy7NR+YhLSbmSPrIGQHR5bwRXs1VizfuzFck Ni0ruicbq0n69aX4DveO3yfDhByPS4Bxt66tytWWlxXpPgekVG1V5vj4ScuRPU9nFvC2jLkBT3k+3 sAqUSbOGyanTGDdLLTPl3MXzNI1X91z/qdaeyyB9zpVFf01JrwdybkXC1HN2HrkijLegJf5pQMAi/ Rw3Z6LRq2a4t0fDQsMLsMgGYyqOkTfVndPaLnNi8Ay1CLiKI4YkXcqYoi5rmIQcBE3PlMRxHZLVHK KBHiFUgQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0xuU-0000000Ak54-0zUA; Wed, 16 Oct 2024 06:53:30 +0000 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0xih-0000000Ai6k-0ZMs for linux-arm-kernel@lists.infradead.org; Wed, 16 Oct 2024 06:41:20 +0000 Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-539e4b7409fso629599e87.0 for ; Tue, 15 Oct 2024 23:41:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729060877; x=1729665677; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=hFgpgpsGiP4+DQBthLLgLzgemSHp+0cBH1ixssAB0HI=; b=WdHyFJj0o0tycTWKCf4I2dpzldJV4cIAUz5n5sWs9ogBh6ifdNBWAvVWHXQuyz3vTP 4nGYLwxfQNgJ34MMrxojLzb7+WOUyKrkapLRPaixw7G4DDfhOXguJHpFgwJ6grvFkxOF A3l28AyQ2EwN37nHdErS3U1jkEcUnrvSAk3lcIgGYXqwQbzpUOP5WEGOYmGoUpgTTC6a ahwQkCrI6cLlHU4QcTSgyXpLtwffZYT/o748SccdjgZ+pQBuHZTFT5lCcPiyUM/AoV7y ajwizL3cE+5lsn+pVlwsXR6hh/KnOeNzySCUWyhFpJ/14nMVlkQ3RlL2dh1fbFLTS/U/ snYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729060877; x=1729665677; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hFgpgpsGiP4+DQBthLLgLzgemSHp+0cBH1ixssAB0HI=; b=LhJMYkT0M6GizKOyLhftBVQ4+R2VxAKS6hMtdF4w5fY2cjM9HkyVD3n/rHU9boNsBS OMpefGnDNBPtrFYjaQQ0GXcvBYZQX4aqFP0tgr5mVZB6ae72r5XIjAz4dFQgn+ZadnsN t27tTSdCIW17zUEcz9DeZ7A3aRbkCUwE0Af29bz3W5jj0wTbGqa/JzJRSHoctAIptpjc SGYaHzIKFE+uRSqWxBaqcq+waEnMYzqJRd10D3AlBjok7ajRhxCbi42PPUg8R6M/Lxef +wgIsu7Z7/TTlJbrzimKqk4S8n5RvW9r0ABF0XAXUCeN4RYzZJayFZ+i1gTifNospZf1 151A== X-Forwarded-Encrypted: i=1; AJvYcCXOumPT3dutEARlNTH4UEdCSQJyvN8d+wLxEb4fXpp+moviqvHMKQVGJhINDeRM0Wia1vYKRJvsy/hRRCOm1p83@lists.infradead.org X-Gm-Message-State: AOJu0YxIzsVIf4OoCHtGf5O/XRjKYAJ09Z5DVjOSva63gC9O5i8C7ROE b/PDEM2aei3KRRzEOgqS9V5j5Yx8B4nlUD15XI7o8r/AhUIYT0TSVoxpokJLONM= X-Google-Smtp-Source: AGHT+IHPijTbw1Ile15FsNhFh7LGc1VKad2r/labDe/V/6ubAVX+wXP9wTKEnlvFzbpNAdkhTeKO/g== X-Received: by 2002:ac2:51c7:0:b0:539:e3a2:3a25 with SMTP id 2adb3069b0e04-539e3a23b81mr4818043e87.18.1729060876922; Tue, 15 Oct 2024 23:41:16 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-539ffff3a50sm357455e87.144.2024.10.15.23.41.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2024 23:41:15 -0700 (PDT) From: Linus Walleij Date: Wed, 16 Oct 2024 08:41:07 +0200 Subject: [PATCH v2 7/9] dt-bindings: vendor-prefixes: Add Genexis MIME-Version: 1.0 Message-Id: <20241016-genexis-xg6846b-base-v2-7-6a7cc2ee57eb@linaro.org> References: <20241016-genexis-xg6846b-base-v2-0-6a7cc2ee57eb@linaro.org> In-Reply-To: <20241016-genexis-xg6846b-base-v2-0-6a7cc2ee57eb@linaro.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Zhang , Anand Gore , Kursad Oney , Florian Fainelli , =?utf-8?b?UmFmYcWCIE1p?= =?utf-8?b?xYJlY2tp?= , Benjamin Larsson , Broadcom internal kernel review list Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linus Walleij X-Mailer: b4 0.14.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241015_234119_270425_92FC6793 X-CRM114-Status: UNSURE ( 9.82 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Genexis is Swedish/Dutch company producing broadband access equipment. Link: https://genexis.eu/ Acked-by: Rob Herring (Arm) Signed-off-by: Linus Walleij --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index b320a39de7fe..43d936361fdd 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -567,6 +567,8 @@ patternProperties: description: Gemtek Technology Co., Ltd. "^genesys,.*": description: Genesys Logic, Inc. + "^genexis,.*": + description: Genexis BV/AB "^geniatech,.*": description: Geniatech, Inc. "^giantec,.*": From patchwork Wed Oct 16 06:41:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13837795 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 6E38BD206A2 for ; Wed, 16 Oct 2024 06:55:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=BIlz5IPvjiz3SstcywK4OPs5YHovdzCuvfijsrKaVOk=; b=T9806fztHAy1t5h9vEYOancndL EIHmfucQnIc88oIF24vjm2cYZdpYqx9YseEJNPponaKgls0n96Hm+5pD9xLhKi6Nq0AjL3HuFyYGg aJwfOTZNIuYn5HLIgsiSYW1IbUgSi5t/eMU8DPUMnLY7Tpxx1IQguf+SZgFepwGm4CV4APK4exFaT OPzo/g4PHtRWttG7lZ7EPANZO4cgi56uy1Yp5evx80DhNpUN+xyYn15RICj3N1Ng6YJ2sazezMyT6 3mgkIUF6G9GQjQzkeoOycN6lpvN8PK0vqn8a8QQTjudslr6St8wDCWTRGuBBXtcSCHcJKdYf5/WGR +m3LXEfg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0xvu-0000000AkN4-2cm9; Wed, 16 Oct 2024 06:54:58 +0000 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0xij-0000000Ai7f-16q8 for linux-arm-kernel@lists.infradead.org; Wed, 16 Oct 2024 06:41:22 +0000 Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-539f0f9ee49so3701790e87.1 for ; Tue, 15 Oct 2024 23:41:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729060879; x=1729665679; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=BIlz5IPvjiz3SstcywK4OPs5YHovdzCuvfijsrKaVOk=; b=mLbLSaJNO/X4YlLXlzFBMG9+xd3XHSYFn+voFIV212ccy3wnNGaNVtZOn0RddxK+TN +jFGAo5L3caM1Yj0rg9pXSEqlRUqKzZ0JgH3XWqcdgCSZjFqDaljXiabPI5eoE4RssPX TA4ooktv1oi/8jKXmpzZRL57sirCfAJoe128cDFMOEDZUgeHac+Wy4Hf3TLcxDOjFteZ bTIDKUDAKdAe3fRvmwc4HP6Sg47OgB0i/yF25nGK+JO/pDPs/7VYWXEvILB9Mn6ovv+F CyjZC/H4LKaefmJOel7Xx6Z2WHkdhJS2Q21w1G6yrQCA/HLujxrbhfA7bToWrIq4Ur0n s9uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729060879; x=1729665679; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BIlz5IPvjiz3SstcywK4OPs5YHovdzCuvfijsrKaVOk=; b=j3WUFJ9+ekBfIn893233eKB5L3NAAChz5RMeFOyc1YA8s2kxvHrnxtF+XfyInpbYDY yx+CFGCS5Glo+/0cLRKQXrIGwwsUvQyKTT2/3arEcQAX/LXPKFWtwbu9m1VSQzxsLvWT b4itfn/R6j/+EF4g3yVBrOTYMWW4cqNy7GEPa5kJguwSsZSM0+mwMuIe9LoXFUBK8ct3 ra0ZFNoXgi2y2K8RHClcO2lXmbP7jgn+uKYUs+FeaYhCgmj9GYvKOmslcdXhQsXHeuf2 NY6cQJPDhYEJQrnzRVZrOsTzZdyDjAT+G5UplnOoL0ssKZjlq4ynabm5bF7MtTH28lyt Efmg== X-Forwarded-Encrypted: i=1; AJvYcCWTzSyTNLtecKa9k1BLp4Ikj30yp0k2gt4Xegv184esEYvNa61oM3TTEaM2IMpDbHFZc6jlAR8FfKH+LZ4jl8xl@lists.infradead.org X-Gm-Message-State: AOJu0YynmDoG0eCpeUn0WiIf83uGjN9I2xQRZVsSN/cOJ3naE1pwznW1 gPBLrg9dzHzyAJ3h81cKfM7yyeAl5jgt/mYQBXcKxaRN7az/v60Bk5x4ca2w34A= X-Google-Smtp-Source: AGHT+IEFWOW/C7ZLL+reAmPUbpTe6R9fF0neCSI1+DeQWuWYugIqwNUU+AJ96gTPxNJbri/ehs113Q== X-Received: by 2002:a05:6512:2313:b0:539:edbe:ac86 with SMTP id 2adb3069b0e04-53a03f0739amr1892074e87.10.1729060879088; Tue, 15 Oct 2024 23:41:19 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-539ffff3a50sm357455e87.144.2024.10.15.23.41.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2024 23:41:17 -0700 (PDT) From: Linus Walleij Date: Wed, 16 Oct 2024 08:41:08 +0200 Subject: [PATCH v2 8/9] dt-bindings: arm: bcmbca: Add Genexis XG6846B MIME-Version: 1.0 Message-Id: <20241016-genexis-xg6846b-base-v2-8-6a7cc2ee57eb@linaro.org> References: <20241016-genexis-xg6846b-base-v2-0-6a7cc2ee57eb@linaro.org> In-Reply-To: <20241016-genexis-xg6846b-base-v2-0-6a7cc2ee57eb@linaro.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Zhang , Anand Gore , Kursad Oney , Florian Fainelli , =?utf-8?b?UmFmYcWCIE1p?= =?utf-8?b?xYJlY2tp?= , Benjamin Larsson , Broadcom internal kernel review list Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linus Walleij X-Mailer: b4 0.14.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241015_234121_341494_1AB66D80 X-CRM114-Status: GOOD ( 10.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This adds the device tree bindings for the Genexis XG6846B router/gateway/broadband modem. Acked-by: Rob Herring (Arm) Signed-off-by: Linus Walleij --- Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml b/Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml index 07892cbdd23c..2223234be687 100644 --- a/Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml +++ b/Documentation/devicetree/bindings/arm/bcm/brcm,bcmbca.yaml @@ -115,6 +115,7 @@ properties: items: - enum: - brcm,bcm96846 + - genexis,xg6846b - const: brcm,bcm6846 - const: brcm,bcmbca From patchwork Wed Oct 16 06:41:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13837796 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 55F09D206A2 for ; Wed, 16 Oct 2024 06:56: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=0dEMPSv5xphvOh5Xq8FMvCt68pBBmIf3u2KGvjXht9A=; b=ofAnIYuMiTWr9m3/twMbbJ/4jY I+UCEj9vh3eZjpOXRygKYXGUNsmojfR4jrD0+wUEeSm/uiVaFspUqbkAimK54GlEpPfE1p1aPIq+B x1gm6a9GLN4RRufhoNyAMK/1FKh/zer0CyJJEItXP2cK/14NM3K+rVCX2gKzlOy/w1bmm/1Sq5jsU m9fKCg3B9f7EZg3S/Aho+1a7DJhUkxZA0XyMceJsCGk7To5jLVFAU9Mx1VdnOp91AfjN+JBeZ+bAI lu+c/hP7zw6XiWADQ4ccdi36tPsAjsVQQDu+8SCE9ZYUOZ4kudAi1k7Zhls8ZU6LLg6eL+Psaj32/ ZjPHPL1w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0xxI-0000000AkTJ-3YqR; Wed, 16 Oct 2024 06:56:24 +0000 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0xik-0000000Ai8L-3nWN for linux-arm-kernel@lists.infradead.org; Wed, 16 Oct 2024 06:41:24 +0000 Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-539e59dadebso4996727e87.0 for ; Tue, 15 Oct 2024 23:41:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729060881; x=1729665681; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=0dEMPSv5xphvOh5Xq8FMvCt68pBBmIf3u2KGvjXht9A=; b=H3TX838CscDTPwUWacyt0AgwvNxjqWz3fWAqFee+ulFCpMfxTvGsOuM1tbVBhF6+E9 7fmvJa7h7qZ15ZJcleqrn5lUfS/hcou/94efwpI9jKmcSWDhXamch2Xi4zoPpEJx6+Es Myoc+fie5kTZxX8UQm3h17xf5ywlVJ8gjLhf+pYNN585PE6DLd9VIR4Dfg4rwN1K/6+F OIGIZPp4rGhneNA7sq1pLMhIFx0m6ODYRaDJXY/xKWJ7RNk/0e4pdlyZ7c7Ss9dR5SlP afNEylHVnoOp9gRxL6FWR6hb3uSy4Fbf8MTnvGtzH9i4MTKIN82j+8/CFfMgDBuDDpbO NleA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729060881; x=1729665681; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0dEMPSv5xphvOh5Xq8FMvCt68pBBmIf3u2KGvjXht9A=; b=NXh6B+/Bnws/U4n+XBpsGXCK1xMvDevIUDpuXqVglwZLqrsM36f0+7YWgaytGOMxwC R9utc4bVtdXC5IqpoPMf3BVNGBUdgLIaYlC/xs1KcR88+DwIEZI1/f2mTmg9LxobO3DA dKXVzvmQBveRshkl35hfpTUD7SH9kiqc5kQU2lnbe3WF4AYW2zqySrij6LnwOS38zlv8 /rAr5Kb/9mt+NQCRK8jh9bhF9txw64AX8ccTD5TGA4UdtAb/Fp/zeyO8MpwLXxfkkxa8 XIdPK/IatW0grRBliwYS6By4Pil788JnP5xz3IDryTb29mrVu7XSjw28XeCs+loZX+9M dk9g== X-Forwarded-Encrypted: i=1; AJvYcCXLLaG5X3lKvBZq61xqjp8oW5INTvJkSAxmq9aGKECTZpqcUWgGV72gyKz3UESjzsGHr7ujRq3FWaBHKj8i39yb@lists.infradead.org X-Gm-Message-State: AOJu0YylwYCkkRptq8qIfODKUcBesSxbyQWODCTFD8I2vHX2579NG0Ix l5iDgWLedLRs/xa30enRa4iOjtjlojDPOsT4FHPOsR759M8uhMDW4k1ShUnuGII= X-Google-Smtp-Source: AGHT+IE1uwJsu4omVJZUuXDa+VUU3bsy1rWYXx0Mw4z24bvaSwhAuZkLlEhhmePOw0bz5A8igadJAQ== X-Received: by 2002:a05:6512:281c:b0:539:edd1:e56a with SMTP id 2adb3069b0e04-53a03f8dc08mr1737804e87.59.1729060881261; Tue, 15 Oct 2024 23:41:21 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-539ffff3a50sm357455e87.144.2024.10.15.23.41.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2024 23:41:19 -0700 (PDT) From: Linus Walleij Date: Wed, 16 Oct 2024 08:41:09 +0200 Subject: [PATCH v2 9/9] ARM: dts: broadcom: Add Genexis XG6846B DTS file MIME-Version: 1.0 Message-Id: <20241016-genexis-xg6846b-base-v2-9-6a7cc2ee57eb@linaro.org> References: <20241016-genexis-xg6846b-base-v2-0-6a7cc2ee57eb@linaro.org> In-Reply-To: <20241016-genexis-xg6846b-base-v2-0-6a7cc2ee57eb@linaro.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Zhang , Anand Gore , Kursad Oney , Florian Fainelli , =?utf-8?b?UmFmYcWCIE1p?= =?utf-8?b?xYJlY2tp?= , Benjamin Larsson , Broadcom internal kernel review list Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linus Walleij X-Mailer: b4 0.14.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241015_234123_297680_F277CB16 X-CRM114-Status: GOOD ( 15.62 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This adds a device tree for the Genexis XG6846B router. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/broadcom/Makefile | 1 + .../boot/dts/broadcom/bcm6846-genexis-xg6846b.dts | 244 +++++++++++++++++++++ 2 files changed, 245 insertions(+) diff --git a/arch/arm/boot/dts/broadcom/Makefile b/arch/arm/boot/dts/broadcom/Makefile index 5881bcc95eba..d23cf466127b 100644 --- a/arch/arm/boot/dts/broadcom/Makefile +++ b/arch/arm/boot/dts/broadcom/Makefile @@ -36,6 +36,7 @@ dtb-$(CONFIG_ARCH_BCM2835) += \ bcm2835-rpi-zero.dtb \ bcm2835-rpi-zero-w.dtb dtb-$(CONFIG_ARCH_BCMBCA) += \ + bcm6846-genexis-xg6846b.dtb \ bcm947622.dtb \ bcm963138.dtb \ bcm963138dvt.dtb \ diff --git a/arch/arm/boot/dts/broadcom/bcm6846-genexis-xg6846b.dts b/arch/arm/boot/dts/broadcom/bcm6846-genexis-xg6846b.dts new file mode 100644 index 000000000000..a3616fb7b3a8 --- /dev/null +++ b/arch/arm/boot/dts/broadcom/bcm6846-genexis-xg6846b.dts @@ -0,0 +1,244 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2024 Linus Walleij + */ + +/dts-v1/; + +#include "bcm6846.dtsi" +#include +#include +#include + +/ { + model = "Genexis XG6846B Ethernet layer 2/3 router"; + compatible = "genexis,xg6846b", "brcm,bcm6846", "brcm,bcmbca"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + /* Micron D9PTK 256 MB RAM */ + memory@0 { + device_type = "memory"; + reg = <0x0 0x10000000>; + }; + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + secondary-boot@0 { + no-map; + reg = <0x00000000 0x00008000>; + }; + pmc3-firmware@8000 { + no-map; + reg = <0x00008000 0x00100000>; + }; + }; + + gpio-keys { + compatible = "gpio-keys-polled"; + poll-interval = <20000>; + + /* Called "canyon rescue button" in the vendor DTB */ + button-restart { + label = "Reset"; + linux,code = ; + gpios = <&gpio0 41 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&gpio0 { + status = "okay"; +}; + +&gpio1 { + status = "okay"; +}; + +&gpio2 { + status = "okay"; + /* Totally 79 GPIOs are available */ + ngpios = <15>; +}; + +&uart0 { + status = "okay"; +}; + +&leds { + status = "okay"; + brcm,serial-shift-bits = <16>; + + led@0 { + reg = <0>; + active-low; + function = "ext"; + color = ; + }; + + led@1 { + reg = <1>; + active-low; + function = "ext"; + color = ; + }; + + led@3 { + reg = <3>; + active-low; + function = LED_FUNCTION_WAN; + color = ; + }; + + led@4 { + reg = <4>; + active-low; + function = LED_FUNCTION_WAN; + color = ; + }; + + led@5 { + reg = <5>; + active-low; + function = LED_FUNCTION_POWER; + color = ; + }; + + led@6 { + reg = <6>; + active-low; + function = LED_FUNCTION_POWER; + color = ; + }; + + led@15 { + reg = <15>; + active-low; + function = LED_FUNCTION_USB; + color = ; + }; + + led@7 { + /* Activity 03 */ + reg = <7>; + active-low; + function = "lan1"; + color = ; + }; + + led@8 { + /* Activity 04 */ + reg = <8>; + active-low; + function = "lan1"; + color = ; + }; + + led@9 { + /* Activity 03 */ + reg = <9>; + active-low; + function = "lan2"; + color = ; + }; + + led@10 { + /* Activity 04 */ + reg = <10>; + active-low; + function = "lan2"; + color = ; + }; + + led@11 { + /* Activity 03 */ + reg = <11>; + active-low; + function = "lan3"; + color = ; + }; + + led@12 { + /* Activity 04 */ + reg = <12>; + active-low; + function = "lan3"; + color = ; + }; + + led@13 { + /* Activity 03 */ + reg = <13>; + active-low; + function = "lan4"; + color = ; + }; + + led@14 { + /* Activity 04 */ + reg = <14>; + active-low; + function = "lan4"; + color = ; + }; +}; + +&hsspi { + status = "okay"; +}; + +&nand_controller { + brcm,wp-not-connected; + status = "okay"; +}; + +&nandcs { + nand-on-flash-bbt; + brcm,nand-ecc-use-strap; + + /* Winbond W29N02GV, 256MB with 128KB erase blocks */ + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + loader@0 { + label = "loader"; + reg = <0x00000000 0x00400000>; + }; + image@400000 { + label = "image"; + reg = <0x00400000 0x0fb00000>; + }; + /* 0x00ff0000-0x00ffffff: bad block list */ + }; +}; + +&mdio { + status = "okay"; + + phy1: ethernet-phy@1 { + reg = <1>; + }; + phy2: ethernet-phy@2 { + reg = <2>; + }; + phy3: ethernet-phy@3 { + reg = <3>; + }; + phy4: ethernet-phy@4 { + reg = <4>; + }; + phy21: ethernet-phy@21 { + reg = <21>; + }; +};