From patchwork Fri Jun 17 22:00:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Lamparter X-Patchwork-Id: 582632 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 354A0C43334 for ; Fri, 17 Jun 2022 22:00:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235162AbiFQWAe (ORCPT ); Fri, 17 Jun 2022 18:00:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231913AbiFQWAd (ORCPT ); Fri, 17 Jun 2022 18:00:33 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CE115D1BE for ; Fri, 17 Jun 2022 15:00:32 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id n185so2901919wmn.4 for ; Fri, 17 Jun 2022 15:00:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=K7FoG6ztFtZyiQp7FHG2cAzqigxqkWxA7fExlR/2Tw0=; b=gJcpiYREXfuQrSgL9op3qZ1HVnFgKOyEEZIH96VwcKj5ac0Bnn+HJ8FVIlKjAv2IYs VAxptLBINW5YMWbjQ9rVkuQwi2MvXX6Zzqx9e2CDDJbKZz4jKA0dH2fpeUi5w96m9aIt 0WYk8+bc/Mj+DudmE+/jusd11upeifAkAUIm2JtLWb22wB6luYKWsrrBG/kRw8kRFWzt T/iTkW0/5oD0sxfQbNjKR5Xk3w4z5earCwZ0KsKQBE4JkGjg3ykb++LnxXLzb8NzTe/c HzcoX3tFq3y0+8PTgmvDPDQHnX+uRaqT694yk/0sS0fJgp2LomjtxT/GOiEaI/0qKH5I ywOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=K7FoG6ztFtZyiQp7FHG2cAzqigxqkWxA7fExlR/2Tw0=; b=ll72QhPWRKIJlKrtceDIM+QLAZYqYaucXqFSvw2QBWtE7vF773pes5pZZl0/v0uIH4 a0YM1yxpOXbBzoTNeMeahGOyZP2KZa5bJVVJiz7tdi6NmzybJeGHIiVN/+17FPoHHJTA hvj6b1AjbVT0NgU47JSdsrLPi4UKDDtPwGnjXZxeJdySdMLEXs6x69/yX30pDlemLEN3 Mdavzss5uebol0qxamCelgajAQksq6L+FRkY5OLHNlrtZY7JpwnZMsSDuZW/SoD9YG7v 0zQSSH92XGmh/rMU1/i+4AG3mSTB5sArWvqdK7NUfxZKt5RFj+5JcWaLuzHj+M0f80hN g6uA== X-Gm-Message-State: AJIora8EDlmU5Q4/L6j/9OpIWMNs7pHXItdtqTnDgZs37Mn3i929HXnk KwkO4do3AjzfqhiTvF/cQzm/lqTrX7E= X-Google-Smtp-Source: AGRyM1sRacSaz+ZrXtob4F8nijzcvHmCY5YGeuYj17sqcFTDVatKY/dmqfouI60E93cpAKbwrDdLdQ== X-Received: by 2002:a05:600c:354f:b0:39c:78c8:a854 with SMTP id i15-20020a05600c354f00b0039c78c8a854mr12137215wmq.121.1655503230672; Fri, 17 Jun 2022 15:00:30 -0700 (PDT) Received: from debian64.daheim (p5b0d7eeb.dip0.t-ipconnect.de. [91.13.126.235]) by smtp.gmail.com with ESMTPSA id j11-20020a05600c190b00b0039c5328ad92sm12347776wmq.41.2022.06.17.15.00.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jun 2022 15:00:29 -0700 (PDT) Received: from chuck by debian64.daheim with local (Exim 4.95) (envelope-from ) id 1o2K0z-007aMW-FI; Sat, 18 Jun 2022 00:00:29 +0200 From: Christian Lamparter To: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com Cc: Florian Fainelli , Hauke Mehrtens , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , Rob Herring Subject: [PATCH v2 1/2] dt-bindings: ARM: add bindings for the Meraki MR26 Date: Sat, 18 Jun 2022 00:00:28 +0200 Message-Id: <20220617220029.1808063-1-chunkeey@gmail.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org mark the Meraki MR26 and its SoC (BCM53015) as supported in the bindings documentation file. "BCM53011 and BCM53015 with dual-core Cortex-A9 CPU at 800 MHz, 256KB L2 cache, 16-bit DDR2 interface, USB3, integrated switch, GPHYs and packet accelerator" Signed-off-by: Christian Lamparter Acked-by: Rob Herring --- v1->v2: added Rob's ACK --- .../devicetree/bindings/arm/bcm/brcm,bcm4708.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml index 8b7e87fb6c34..958df32b4899 100644 --- a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml +++ b/Documentation/devicetree/bindings/arm/bcm/brcm,bcm4708.yaml @@ -87,6 +87,13 @@ properties: - const: brcm,bcm53012 - const: brcm,bcm4708 + - description: BCM53015 based boards + items: + - enum: + - meraki,mr26 + - const: brcm,bcm53015 + - const: brcm,bcm4708 + - description: BCM53016 based boards items: - enum: From patchwork Fri Jun 17 22:00:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Lamparter X-Patchwork-Id: 582821 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8D74DC433EF for ; Fri, 17 Jun 2022 22:00:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231913AbiFQWAf (ORCPT ); Fri, 17 Jun 2022 18:00:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbiFQWAd (ORCPT ); Fri, 17 Jun 2022 18:00:33 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFC425D1A4 for ; Fri, 17 Jun 2022 15:00:31 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id q9so7248334wrd.8 for ; Fri, 17 Jun 2022 15:00:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OCL3Sf6QQ2x1AKkKoXlg181Ap1kNxrArD9oN9eWO6pI=; b=KLrmE0qwXU9sI32TF+LZblewI0XJkSfs2VNG0Bi545BOnXutFNq0+apdt2lG8SHO7h ZvV3q92yYuUzcfnZJWtUu6aJ0/bu6m1zaEM6gqsopWM+4H/1o6rEnadLfAqB6IcuMBDC dvP6/+gujBjTg7LdbrfbJpnH3nBHpxgiQN0XFbQyWFzpLj8MFWQ6nT3pNefH5mNV3J4n HBbDzV6mBcMeIkH7fVMl5Gq90lMwfqOGN7P93fOVcNbry4mClZYl+DGV4WV4ULSXcBo6 9oymBqE6SHZhcApmcYZiphJJGVR2hCJ0ANFFwDieqe0sZCHL8Z70nrxEmm+NyK/RhCW7 LTxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=OCL3Sf6QQ2x1AKkKoXlg181Ap1kNxrArD9oN9eWO6pI=; b=WFnvccsSxagL0Ev40Zvcum6b4Yfobdox2eSoMnkeVx+BV6SHw6G7q4Ny8kat4wBelE 3YTKEj1CRnfPn8WjYwCvXbNsLwKFLlOvElPCorq3+yJv0nJOtYnrmWXSL7e3i3FwqzN/ 1kUKl7BHEYEVSYWuUBrBQpKqCZj7rVvz5lBBmARovrzl/WBvYqNOBN3zuXclDqJ16jsM IVKClyt1X/crX0VPuM2NZTDii9AXIszzFwn5QEWbaTn1uP7GASDpiZFZOwqqCZax2kgX znI/3zg/cpm3rWciKrCLDMiDNKKfwbwPtjYkcMI3/Ae8/6zcklwCJ676QigF5eOGPRpg LLww== X-Gm-Message-State: AJIora9w1wHzEKKwZrhTrX1kXckI55vQA+mXEyLTKAl4Pppk9OvlCg9C +OP/pClF2lAC2c3ZkjcFnyU= X-Google-Smtp-Source: AGRyM1vT3EqbC9JaXSnY0tfYUGxK6D7Xk3sH/bv4eIaua2BOHMYRMPekDOIjYRPbcZvWZT1dBt5q2Q== X-Received: by 2002:a5d:5231:0:b0:21b:838e:65ba with SMTP id i17-20020a5d5231000000b0021b838e65bamr1767118wra.412.1655503230366; Fri, 17 Jun 2022 15:00:30 -0700 (PDT) Received: from debian64.daheim (p5b0d7eeb.dip0.t-ipconnect.de. [91.13.126.235]) by smtp.gmail.com with ESMTPSA id f8-20020a05600c4e8800b003974b95d897sm11995480wmq.37.2022.06.17.15.00.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jun 2022 15:00:29 -0700 (PDT) Received: from chuck by debian64.daheim with local (Exim 4.95) (envelope-from ) id 1o2K0z-007aMZ-G6; Sat, 18 Jun 2022 00:00:29 +0200 From: Christian Lamparter To: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com Cc: Florian Fainelli , Hauke Mehrtens , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , Rob Herring Subject: [PATCH v2 2/2] ARM: BCM5301X: Add DT for Meraki MR26 Date: Sat, 18 Jun 2022 00:00:29 +0200 Message-Id: <20220617220029.1808063-2-chunkeey@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220617220029.1808063-1-chunkeey@gmail.com> References: <20220617220029.1808063-1-chunkeey@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Meraki MR26 is an EOL wireless access point featuring a PoE ethernet port and two dual-band 3x3 MIMO 802.11n radios and 1x1 dual-band WIFI dedicated to scanning. Thank you Amir for the unit and PSU. Hardware info: SOC : Broadcom BCM53015A1KFEBG (dual-core Cortex-A9 CPU at 800 MHz) RAM : SK Hynix Inc. H5TQ1G63EFR, 1 GBit DDR3 SDRAM = 128 MiB NAND : Spansion S34ML01G100TF100, 1 GBit SLC NAND Flash = 128 MiB ETH : 1 GBit Ethernet Port - PoE (TPS23754 PoE Interface) WIFI0 : Broadcom BCM43431KMLG, BCM43431 802.11 abgn (3x3:3) WIFI1 : Broadcom BCM43431KMLG, BCM43431 802.11 abgn (3x3:3) WIFI2 : Broadcom BCM43428 "Air Marshal" 802.11 abgn (1x1:1) BUTTON: One reset key behind a small hole next to the Ethernet Port LEDS : One amber (fault), one white (indicator) LED, separate RGB-LED MISC : Atmel AT24C64 8KiB EEPROM i2c : Ti INA219 26V, 12-bit, i2c output current/voltage/power monitor SERIAL: WARNING: The serial port needs a TTL/RS-232 3V3 level converter! The Serial setting is 115200-8-N-1. The board has a populated right angle 1x4 0.1" pinheader. The pinout is: VCC (next to J3, has the pin 1 indicator), RX, TX, GND. Odd stuff: - uboot does not support lzma compression, but gzip'd uImage/DTB work. - uboot claims to support FIT, but fails to pass the DTB to the kernel. Appending the dtb after the kernel image works. - RGB-controller is supported through an external userspace program. - The ubi partition contains a "board-config" volume. It stores the MAC Address (0x66 in binary) and Serial No. (0x7c alpha-numerical). - SoC's temperature sensor always reports that it is on fire. This causes the system to immediately shutdown! Looking at reported "418 degree Celsius" suggests that this sensor is not working. WIFI: b43 is able to initialize all three WIFIs @ 802.11bg. | b43-phy0: Broadcom 43431 WLAN found (core revision 29) | bcma-pci-bridge 0000:01:00.0: bus1: Switched to core: 0x812 | b43-phy0: Found PHY: Analog 9, Type 7 (HT), Revision 1 | b43-phy0: Found Radio: Manuf 0x17F, ID 0x2059, Revision 0, Version 1 | b43-phy0 warning: 5 GHz band is unsupported on this PHY | b43-phy1: Broadcom 43431 WLAN found (core revision 29) | bcma-pci-bridge 0001:01:00.0: bus2: Switched to core: 0x812 | b43-phy1: Found PHY: Analog 9, Type 7 (HT), Revision 1 | b43-phy1: Found Radio: Manuf 0x17F, ID 0x2059, Revision 0, Version 1 | b43-phy1 warning: 5 GHz band is unsupported on this PHY | b43-phy2: Broadcom 43228 WLAN found (core revision 30) | bcma-pci-bridge 0002:01:00.0: bus3: Switched to core: 0x812 | b43-phy2: Found PHY: Analog 9, Type 4 (N), Revision 16 | b43-phy2: Found Radio: Manuf 0x17F, ID 0x2057, Revision 9, Version 1 | Broadcom 43xx driver loaded [ Features: NL ] Signed-off-by: Christian Lamparter --- v1 -> v2: - gpio-key's restart node renamed to key-restart (Rob) needs an opended paperclip due to the "pinhole" to be pressed. references: --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/bcm53015-meraki-mr26.dts | 166 +++++++++++++++++++++ 2 files changed, 167 insertions(+) create mode 100644 arch/arm/boot/dts/bcm53015-meraki-mr26.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 184899808ee7..9ad78c358330 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -135,6 +135,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \ bcm47094-luxul-xwr-3150-v1.dtb \ bcm47094-netgear-r8500.dtb \ bcm47094-phicomm-k3.dtb \ + bcm53015-meraki-mr26.dtb \ bcm53016-meraki-mr32.dtb \ bcm94708.dtb \ bcm94709.dtb \ diff --git a/arch/arm/boot/dts/bcm53015-meraki-mr26.dts b/arch/arm/boot/dts/bcm53015-meraki-mr26.dts new file mode 100644 index 000000000000..14f58033efeb --- /dev/null +++ b/arch/arm/boot/dts/bcm53015-meraki-mr26.dts @@ -0,0 +1,166 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Broadcom BCM470X / BCM5301X ARM platform code. + * DTS for Meraki MR26 / Codename: Venom + * + * Copyright (C) 2022 Christian Lamparter + */ + +/dts-v1/; + +#include "bcm4708.dtsi" +#include "bcm5301x-nand-cs0-bch8.dtsi" +#include + +/ { + compatible = "meraki,mr26", "brcm,bcm53015", "brcm,bcm4708"; + model = "Meraki MR26"; + + memory@0 { + reg = <0x00000000 0x08000000>; + device_type = "memory"; + }; + + leds { + compatible = "gpio-leds"; + + led-0 { + function = LED_FUNCTION_FAULT; + color = ; + gpios = <&chipcommon 13 GPIO_ACTIVE_HIGH>; + panic-indicator; + }; + led-1 { + function = LED_FUNCTION_INDICATOR; + color = ; + gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>; + }; + }; + + keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + + key-restart { + label = "Reset"; + linux,code = ; + gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; + }; + }; +}; + +&uart0 { + clock-frequency = <50000000>; + /delete-property/ clocks; +}; + +&uart1 { + status = "disabled"; +}; + +&gmac0 { + status = "okay"; +}; + +&gmac1 { + status = "disabled"; +}; +&gmac2 { + status = "disabled"; +}; +&gmac3 { + status = "disabled"; +}; + +&nandcs { + nand-ecc-algo = "hw"; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <0x1>; + #size-cells = <0x1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x200000>; + read-only; + }; + + partition@200000 { + label = "u-boot-env"; + reg = <0x200000 0x200000>; + /* empty */ + }; + + partition@400000 { + label = "u-boot-backup"; + reg = <0x400000 0x200000>; + /* empty */ + }; + + partition@600000 { + label = "u-boot-env-backup"; + reg = <0x600000 0x200000>; + /* empty */ + }; + + partition@800000 { + label = "ubi"; + reg = <0x800000 0x7780000>; + }; + }; +}; + +&srab { + status = "okay"; + + ports { + port@0 { + reg = <0>; + label = "poe"; + }; + + port@5 { + reg = <5>; + label = "cpu"; + ethernet = <&gmac0>; + + fixed-link { + speed = <1000>; + duplex-full; + }; + }; + }; +}; + +&i2c0 { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&pinmux_i2c>; + + clock-frequency = <100000>; + + ina219@40 { + compatible = "ti,ina219"; /* PoE power */ + reg = <0x40>; + shunt-resistor = <60000>; /* = 60 mOhms */ + }; + + eeprom@56 { + compatible = "atmel,24c64"; + reg = <0x56>; + pagesize = <32>; + read-only; + #address-cells = <1>; + #size-cells = <1>; + + /* it's empty */ + }; +}; + +&thermal { + status = "disabled"; + /* does not work, reads 418 degree Celsius */ +};