Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5042285pxb; Wed, 26 Jan 2022 03:38:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJwIpIaVrDBVVnvSreeJeSGoZAhJ4ed8VtlhVLm6DTWWxR77oK4QPPGreUwVZYFGlLspAsyT X-Received: by 2002:a17:906:49c4:: with SMTP id w4mr19266532ejv.745.1643197093600; Wed, 26 Jan 2022 03:38:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643197093; cv=none; d=google.com; s=arc-20160816; b=DgbIVfP/fF0xJf+hBOf2EMRp3iA8Fav/rCvh4bfKfSx23X3rcgVkDsD1/wSZgjNhvZ +pItnD++5+WStecxRiR32BXYlRKWlNMeBbzVyE5W96fvl1N2RHRSzYy83sbeNWtKpsFI V5i7vK8a+GiCXCQ0h97DFs03I2fzpOWDtuA0yCK7VwA5ZEAt0C7AK/KjqE4tIpEO+29K JT7K4mpGxeXknAsh6FNJMBdDqWaFxui78Ly6Vp0aHZWL7A3rllUqmKnRqESzsn/qDVyH 0z5d/yZaWO3kc4BkQWj4QkW+AoHuHR7HesGmbhfoah6LgU8XayltapDgizNFtSWtWtKP lG5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GqNmRcbIdcR0lkfAVtnAna+7uu5s/9KhZCPTpg6gW2o=; b=zYS4sic1gmkEmxC1jQ5iFf2IQE5U3H1jMWKl9eHE+fiEo8y7dNgklwUNorcvpqy/R0 4c+t8dzrmoXJgSLAgv0woh2TmNXIX37d6VQ1PGsG7UE8cc7s7wbobGWRofrjy+TVKjOh a99qECY0dUYlpK57vLCyKlGuN/lSB8TV7cua96Zva8IQLiplLagNUBm5OyYtzE4mXkoX j/Bi+YbiM32U2LiEEM6HxID/s42nfQ4vNOGr2s67l8vJ2LtAkYI3IQ7jPUMwC/1tr0UP R7i/dvFPI/tHXJjk1okdjw2hjkZ8Zav0l72HQ8q23swjawhX41/c0n7Zo732T+IzhFUy xjvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=eAYD8V1p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b4si7597607ejl.70.2022.01.26.03.37.45; Wed, 26 Jan 2022 03:38:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=eAYD8V1p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233871AbiAYWbn (ORCPT + 99 others); Tue, 25 Jan 2022 17:31:43 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:54038 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233863AbiAYWbZ (ORCPT ); Tue, 25 Jan 2022 17:31:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=GqNmRcbIdcR0lkfAVtnAna+7uu5s/9KhZCPTpg6gW2o=; b=eAYD8V1pKf5FniCp1ZOXlFPHYo T4qZh9jHM/326fW33sOnTFWI9W3uO7UWjCm/iy4gNq2oRLgByu8WCKD+sy88lKO9hJZpT617KGds8 tHyi9iBqEllOS/LPoXWlthqgSKYysvcwMvJyfYgM8p/N8kSp89DKGVn6m1NFK78m2Ayk=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nCUL5-002ifq-RF; Tue, 25 Jan 2022 23:30:59 +0100 Date: Tue, 25 Jan 2022 23:30:59 +0100 From: Andrew Lunn To: nick.hawkins@hpe.com Cc: verdun@hpe.com, Rob Herring , Russell King , Krzysztof Kozlowski , Shawn Guo , Stanislav Jakubek , Sam Ravnborg , Linus Walleij , Hao Fang , Arnd Bergmann , "Russell King (Oracle)" , Geert Uytterhoeven , Mark Rutland , Ard Biesheuvel , Anshuman Khandual , Lukas Bulwahn , Masahiro Yamada , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] Adding architectural support for HPE's GXP BMC. This is the first of a series of patches to support HPE's BMC with Linux Kernel. Message-ID: References: <20220125194609.32314-1-nick.hawkins@hpe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220125194609.32314-1-nick.hawkins@hpe.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > + mdio0: mdio@c0004080 { > + compatible = "hpe,gxp-umac-mdio"; > + reg = <0xc0004080 0x10>; > + #address-cells = <1>; > + #size-cells = <0>; > + ext_phy0: ethernt-phy@0 { > + compatible = "ethernet-phy-ieee802.3-c22"; c22 is the default, so you don't strictly need this. > + phy-mode = "sgmii"; > + reg = <0>; > + }; > + }; > + > + mdio1: mdio@c0005080 { > + compatible = "hpe,gxp-umac-mdio"; > + reg = <0xc0005080 0x10>; > + #address-cells = <1>; > + #size-cells = <0>; > + int_phy0: ethernt-phy@0 { > + compatible = "ethernet-phy-ieee802.3-c22"; > + phy-mode = "gmii"; > + reg = <0>; > + }; > + int_phy1: ethernt-phy@1 { > + compatible = "ethernet-phy-ieee802.3-c22"; > + phy-mode = "gmii"; > + reg = <1>; > + }; > + }; > + > + umac0: umac@c0004000 { > + compatible = "hpe, gxp-umac"; A space in a compatible? > + reg = <0xc0004000 0x80>; > + interrupts = <10>; > + interrupt-parent = <&vic0>; > + mac-address = [94 18 82 16 04 d8]; That is pretty unusual. Normally you leave the bootloader to fill this in with a per board MAC address. The danger with listing it here is that you have multiple boards in the same network using this MAC address, and then bad things happen. > + phy-handle = <&ext_phy0>; > + int-phy-handle = <&int_phy0>; Two phy-handles? Some very odd going on here! > + xreg_kyes: xreg_keys { > + compatible = "gpio-keys-polled"; > + poll-interval = <100>; > + > + IdButton { > + label = "ID Button"; > + linux,code = <200>; include/dt-bindings/input/linux-event-codes.h However #define KEY_PLAYCD 200 A BMC has a CD player? Maybe i have this wrong? > + PortOwner@0 { > + label = "Port Owner"; > + linux,code = <200>; > + gpios = <&gpio 250 1>; Two CD players? > + }; > + > + PortOwner@1 { > + label = "Port Owner"; > + linux,code = <201>; #define KEY_PAUSECD 201 And you can pause the second player? Andrew