Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp38034746rwd; Wed, 12 Jul 2023 01:56:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlFgl0RIjlbmrLxOkmoZyS7/2sPi6b/RRPNYFmpys6RXuPWCdbhX17Iw7x/r44KNzaQQxYJf X-Received: by 2002:a62:ea12:0:b0:67a:72d5:3365 with SMTP id t18-20020a62ea12000000b0067a72d53365mr1772528pfh.6.1689152182984; Wed, 12 Jul 2023 01:56:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689152182; cv=none; d=google.com; s=arc-20160816; b=wWl3/PLC0rHmR0rqdKOx3L4RVy2LXlkkLE3ERGaZtMQtW1PeYz6zTaKQRIwuV+aVrz ZOPpba8K8cDY8oSfGZtmFD3EbbMTJwcbtfcChOiwsTO5HzUf1u4PFTKk/pU2kzk19g2h rQ8SGpfYXgR2+FFW+meaptR5QZ13Bidylaykzi6ZlUvl7lCIc0AKpl1LTkfKxGvv6J/X SkjovicESgjKrtTuObG9wRuPsRTCCez9eWkMFxgENReoxFKfh/ZU8kOsvhFjOfvsbTtt n9cSDtRhnrt0/jaW9yiAc08lEy1Y0Qy0K2cSSMMthYlkhFbaOEVa8Ng5zD/yvFp3D9UT ndFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=xRswFWEq5Q0hoPRcdiuVBaZQX0PfVAZ2UDfle8aIlUE=; fh=li9yboTw6dC/gGdAW79pKUklzjWxJ3yvLHXNUo+cefg=; b=tLJexeyJL0vAn261a0vKPt7fBPx3V/WS5eoNGL6f9s27jrJdu974d0vAobBQrU1EL8 5O8YwxBADsefT77hKDnAJQKnVb6PkL6qWPJvKJa85COBY1CBUQLfcjftFjbn3MeF1fF5 PDj8rNmAn5XmGRmR9V4iosbCwcyCWTYLfUAxjNTXB3ukHwIRE/jmDP005ilNID7Mt3Xd C1O+4y8a/5vdOm8aL2GfNdVaCuTTok3infPslc2NF0KN4/4tMf0xr2PZ+Ezcvs1DTsXb ZKyj0lPHZdA5y+HbmWodvf8gi8fXaATfp5LkdJLDnYMdjmFz0tEknpPVIkaiYwpDXNPj eRfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="fJZ9RA/T"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s7-20020a635e07000000b0055bc3404854si2782811pgb.757.2023.07.12.01.56.10; Wed, 12 Jul 2023 01:56:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="fJZ9RA/T"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232508AbjGLIcc (ORCPT + 99 others); Wed, 12 Jul 2023 04:32:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231308AbjGLIcE (ORCPT ); Wed, 12 Jul 2023 04:32:04 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A48781986 for ; Wed, 12 Jul 2023 01:27:40 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-51e43473ee0so6726661a12.3 for ; Wed, 12 Jul 2023 01:27:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689150459; x=1691742459; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=xRswFWEq5Q0hoPRcdiuVBaZQX0PfVAZ2UDfle8aIlUE=; b=fJZ9RA/TOfW/IC7fCyPAJeek5s+alQxRdIrfd0JYbwONJWEN5wgmVtQk/uBwGvgMPi Ekj0s1QiHEf7pKE5viNqe93nyRpPCdXldCvPsxmA519pZqq+UG8khASlq2SKM7vxZS+A G/+H1qGbvFQ2nlo0bt0O41Lfl4tFxGyVZqXVI8eHmJAiA6JcnzGWqxcIPM3jYn0uVpv7 B3nw6Qt1EApCxDwi8CHa9MXoWpa9FyU3I5jiNmROM9TalQCXSZ9xgvEKVBIJT9SFFpvH R5ZtzbqiKnI15Leik+DjJQm67U2RxOnoK1V3ONK9ToRnfJjI3pbuxgAAnTbpy9yoJsTQ R7wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689150459; x=1691742459; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xRswFWEq5Q0hoPRcdiuVBaZQX0PfVAZ2UDfle8aIlUE=; b=aaHtCmgxlC0Q2j6pvPDRRb2PwqAZKHhEYUo9LlNS9zkSg16ZTqa+ElWkTHrWD/P/N/ hOfiQRauxFZ8ro+55cIIaJpR9833dhhIHZN8E97w5/wgkACLgO0DQQM34hcmUIlxRVzK JHDG2VXlGU6zVaQPqG/9r35SKHOi0LOQt/uQlLhHElL3BKy4YfRr0qFsxz8cFdPEITFz AGC4WJpHPnFnvj6cjoo9tbE0Bl3GIVn8cWSV0asuMRWYYDRGWfUga3N4WB08hsL3w4Hm aZ49Re21U+52BHZpTNFnYFE8BXmIUbTf9advn56eC0JrbKU6gvyy+m+8103NeKIXscSK poEA== X-Gm-Message-State: ABy/qLatATceV+VZHD3FnMqZOyVdMjVtniS96F84G5Gu4uZujlKUbCTD GsD1M2gsutwpS6zuIsaMRAKphg== X-Received: by 2002:aa7:d741:0:b0:51d:a483:6089 with SMTP id a1-20020aa7d741000000b0051da4836089mr18195659eds.24.1689150459132; Wed, 12 Jul 2023 01:27:39 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.104]) by smtp.gmail.com with ESMTPSA id j4-20020a50ed04000000b0051e2a6cef4fsm2397601eds.36.2023.07.12.01.27.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Jul 2023 01:27:38 -0700 (PDT) Message-ID: Date: Wed, 12 Jul 2023 10:27:36 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v1 2/2] ARM: dts: aspeed: yosemitev4: add Facebook Yosemite V4 BMC Content-Language: en-US To: Delphine CC Chiu , patrick@stwcx.xyz, Arnd Bergmann , Olof Johansson , soc@kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org References: <20230712073752.54624-1-Delphine_CC_Chiu@wiwynn.com> <20230712073752.54624-3-Delphine_CC_Chiu@wiwynn.com> From: Krzysztof Kozlowski In-Reply-To: <20230712073752.54624-3-Delphine_CC_Chiu@wiwynn.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/07/2023 09:37, Delphine CC Chiu wrote: > Add linux device tree entry related to > Yosemite V4 specific devices connected to BMC SoC. > > Signed-off-by: Delphine CC Chiu > --- > arch/arm/boot/dts/Makefile | 1 + > .../dts/aspeed-bmc-facebook-yosemitev4.dts | 570 ++++++++++++++++++ > 2 files changed, 571 insertions(+) > create mode 100644 arch/arm/boot/dts/aspeed-bmc-facebook-yosemitev4.dts > > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index 59829fc90315..871e6d271262 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -1631,6 +1631,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ > aspeed-bmc-facebook-galaxy100.dtb \ > aspeed-bmc-facebook-greatlakes.dtb \ > aspeed-bmc-facebook-minipack.dtb \ > + aspeed-bmc-facebook-yosemitev4.dtb \ > aspeed-bmc-facebook-tiogapass.dtb \ > aspeed-bmc-facebook-wedge40.dtb \ > aspeed-bmc-facebook-wedge100.dtb \ > diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-yosemitev4.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-yosemitev4.dts > new file mode 100644 > index 000000000000..1df151fb6ff3 > --- /dev/null > +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-yosemitev4.dts > @@ -0,0 +1,570 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later > +// Copyright 2022 Facebook Inc. > + > +/dts-v1/; > +#include "aspeed-g6.dtsi" > +#include > +#include > +#include > + > +/ { > + model = "Facebook Yosemite V4 BMC"; > + compatible = "facebook,yosemitev4-bmc", "aspeed,ast2600"; > + > + aliases { > + serial4 = &uart5; > + serial5 = &uart6; > + serial6 = &uart7; > + serial7 = &uart8; > + serial8 = &uart9; > + }; > + > + chosen { > + bootargs = "console=ttyS4,57600n8"; Use stdout-path > + }; > + > + memory@80000000 { > + device_type = "memory"; > + reg = <0x80000000 0x80000000>; > + }; ... > + > +&i2c0 { > + status = "okay"; > + bus-frequency = <400000>; > + multi-master; > + adm1278@40 { Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification: https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation > + compatible = "adi,adm1278"; > + reg = <0x40>; > + }; > +}; > + > +&i2c1 { > + status = "okay"; > + bus-frequency = <400000>; > + multi-master; > + adm1278@40 { Look, you already got such comment so you are repeating same mistakes. https://lore.kernel.org/all/a8854c8e-8868-461d-9f7b-d5b44f7288c7@linaro.org/ Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification: https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation > + compatible = "adi,adm1278"; > + reg = <0x40>; > + }; > +}; > + > +&i2c2 { > + status = "okay"; > + bus-frequency = <400000>; > + multi-master; > + adm1278@40 { Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification: https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation > + compatible = "adi,adm1278"; I stop here, there is no point to review same mistakes. Best regards, Krzysztof