Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp443806rdb; Mon, 15 Jan 2024 02:21:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IHwRdvZTJsVJlh2aS5JTiHsTdKh6ATI8d9k7cTjAsYBr3nWPz2HMdXVTnoZsSTNoyFGSKuW X-Received: by 2002:a05:6a00:2a09:b0:6d9:ac49:4e36 with SMTP id ce9-20020a056a002a0900b006d9ac494e36mr6342242pfb.68.1705314080114; Mon, 15 Jan 2024 02:21:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705314080; cv=none; d=google.com; s=arc-20160816; b=wKOpf2AKSgAai8sUfWXHX6sg23C384H/DbARHHlN/Mlw4Po2pOfl2WXgHsLgMGOCNW YGUcm0TLbyD4e5zExFLqWL8mquIfjJ5OD/RCssGfKXez3qi+ETmmRgcaShLhze4JSxCt 9ZyyFphhYYOHPaSh8qAKKl6gfdpANJkAUDiVESTx42LPlPaYjHcUWrMxToZtqmFP/cVH zdP7rA1jx9Jdiy5QPFp1DVBCUr5gD4TP8PS+meCBA1zV3Ll7wapx8rwuD+6cGHUzbJU/ wGQpT1N4oIWWZX3EU+crJIpGmPRvR5QbYtrVRVM15tCtvjWmRcDYrlPaXMvsqlpKNU8z /D5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=GYQHYPV8K9HIiDvchtyIy3OoQ6MZlVvvckJN2lDq4TA=; fh=c6L2lJ4kmPVcNZXOo6XRot5GqlYIjrrIaS9FWb5F9TM=; b=CDgdr4KekzmCmWfnV0wHYcZpOQLxCedf3MlaAez/8tSVGsm8YRMVSL16CnFeznFjFt xNSX0J7c9jV0vdatOrzM8mFZEurnJN5LL4fgvd+7R9COzU6Mql/2Pzp6Pxqz7NWEPqa8 kO5BnLKg5R7X3mlu9WXDIUes3FUdI2lklRoOW9iAmuL4CuBWMfBCG2aVrbNeLoU2qEsz 46onyRPRoGSeKxTjqULorhtP0TbXpTkD5zvog/qydq8sWVgp72VWpgskAlCD+E+V9lJO tYSLQiF+ys264EYouK4EmyDRqsU34J0DcXPMvMAUbluH6TGk6Yr5PBnHT0CK23p6hyEn T/xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h8GCfyT6; spf=pass (google.com: domain of linux-kernel+bounces-25875-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25875-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id i62-20020a62c141000000b006d941d5ca2csi8279941pfg.6.2024.01.15.02.21.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 02:21:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25875-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h8GCfyT6; spf=pass (google.com: domain of linux-kernel+bounces-25875-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25875-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id CEB63B20DE9 for ; Mon, 15 Jan 2024 10:21:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D00E5101C8; Mon, 15 Jan 2024 10:21:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="h8GCfyT6" Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3802EF9C7 for ; Mon, 15 Jan 2024 10:21:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a293f2280c7so1006723166b.1 for ; Mon, 15 Jan 2024 02:21:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705314063; x=1705918863; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=GYQHYPV8K9HIiDvchtyIy3OoQ6MZlVvvckJN2lDq4TA=; b=h8GCfyT6BTw9tqIFoJQ6T29/Oy3pKuTTcDB0dEWu0HPhYuz6rG0uwX+g+bdwidGiU3 BBjv44zb0ReGc2qcjBVBZzbidUhnDiomd4B7UGV/7bmseOlHMFXXYuDlCdhQgW1LTfiM +zoj19OXLNatVSo8s5U6rQhKHt03BrzolhZYMpSwL6xhRexbywNxCpkqux+NR2OxLDoj +n4NNbXahZMuC00N+vywAM33dUQ1gbpj55twkt+iQxzUB7Hl39U7oGC+oS7Ctp5E/yyE o2yJJoC00furd6F/+bXWAvXaBk9fXgpWhZVt8uhTE1hfh//kq2lDrAGwpsOSo+5GjDu3 wlRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705314063; x=1705918863; h=content-transfer-encoding:in-reply-to:autocrypt: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=GYQHYPV8K9HIiDvchtyIy3OoQ6MZlVvvckJN2lDq4TA=; b=Sx8bYHc2hdyMLx5ZWMXmQc4rYzznwjQnG2C53dPsfm5N9rCNtyKalxln0nbAw3JRjm kRDCk4IfjzCsO0wIIWJDKcOfZ//gqrmUl4nnG6htvuBZUFG1awN+Nb9mhmKQDyncDuAJ AeIimYeDIV3Ok5VMRtPHJtrTgBsfUlgxSjVheqmHGtYW5L82DXZY9eZrBtiWneY04it1 BuWjLhG7r4V4+7HbiCbqcIDzn9EdXrWpxK9kD+Pr8gDTGv8fTf32x9+4Uw23orwi5XrV 9DuuSOdXxgh1vjeK7KjKBsX1ydZHbqLWupyWzNJR/Y1pNJ730Q0DyJ2IJjFxrF485HHc TZWQ== X-Gm-Message-State: AOJu0YxUxt2jlLJcmDvrR+3h0/v5Es/7lS9k4fZUwncjn8sR5zTJlTxI 23bsJ3OKz+g6YMBrleAbZxqyhRW0CdjPaA== X-Received: by 2002:a17:907:8b85:b0:a2d:9ac6:7c2d with SMTP id tb5-20020a1709078b8500b00a2d9ac67c2dmr578141ejc.133.1705314063472; Mon, 15 Jan 2024 02:21:03 -0800 (PST) Received: from [192.168.1.20] ([178.197.215.66]) by smtp.gmail.com with ESMTPSA id qk28-20020a170906d9dc00b00a28d1d73654sm5090256ejb.207.2024.01.15.02.21.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 15 Jan 2024 02:21:02 -0800 (PST) Message-ID: Date: Mon, 15 Jan 2024 11:21:01 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 4/5] arm64: dts: add description for solidrun am642 som and evaluation board Content-Language: en-US To: Josua Mayer , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alessandro Zummo , Alexandre Belloni Cc: Yazan Shhady , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-rtc@vger.kernel.org" References: <20240112-add-am64-som-v2-0-1385246c428c@solid-run.com> <20240112-add-am64-som-v2-4-1385246c428c@solid-run.com> <60d78882-0ec5-4cd1-b68d-f75b73cb6cdb@linaro.org> <1656bf68-c3b4-476d-984e-f231541058f6@solid-run.com> <0b03af70-7dc4-4a4f-b9dc-218ef365c237@linaro.org> <2879689e-5a4e-4242-a23b-d2aa9f004b1d@solid-run.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2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JQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <2879689e-5a4e-4242-a23b-d2aa9f004b1d@solid-run.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 15/01/2024 11:05, Josua Mayer wrote: > Am 15.01.24 um 08:29 schrieb Krzysztof Kozlowski: > >> On 14/01/2024 15:16, Josua Mayer wrote: >>> Am 12.01.24 um 18:22 schrieb Krzysztof Kozlowski: >>> >>>>> + /* PRU Ethernet Controller */ >>>>> + icssg1_eth: icssg1-eth { >>>> Node names should be generic. >>> This name intentionally includes the name of the ip block within am64 soc >>> providing software-defined ethernet controller through coprocessors TI call "pru". >> Why? This intentionally should not include specific name. > I understand. Which is why I imagined in the other reference had intentionally > diverged from that rule. >> >> Also, wrap your emails at proper length so they will be manageable... >> >>>> 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 = "ti,am642-icssg-prueth"; >>>>> + pinctrl-names = "default"; >>>>> + pinctrl-0 = <&pru_rgmii1_pins_default>, <&pru_rgmii2_pins_default>; >>>>> + >>>>> + sram = <&oc_sram>; >>>>> + ti,prus = <&pru1_0>, <&rtu1_0>, <&tx_pru1_0>, <&pru1_1>, <&rtu1_1>, <&tx_pru1_1>; >>>>> + firmware-name = "ti-pruss/am65x-sr2-pru0-prueth-fw.elf", >>>>> + "ti-pruss/am65x-sr2-rtu0-prueth-fw.elf", >>>>> + "ti-pruss/am65x-sr2-txpru0-prueth-fw.elf", >>>>> + "ti-pruss/am65x-sr2-pru1-prueth-fw.elf", >>>>> + "ti-pruss/am65x-sr2-rtu1-prueth-fw.elf", >>>>> + "ti-pruss/am65x-sr2-txpru1-prueth-fw.elf"; >>>>> + >>>>> + ti,pruss-gp-mux-sel = <2>, /* MII mode */ >>>>> + <2>, >>>>> + <2>, >>>>> + <2>, /* MII mode */ >>>>> + <2>, >>>>> + <2>; >>>>> + >>>>> + ti,mii-g-rt = <&icssg1_mii_g_rt>; >>>>> + ti,mii-rt = <&icssg1_mii_rt>; >>>>> + ti,iep = <&icssg1_iep0>, <&icssg1_iep1>; >>>>> + >>>>> + interrupt-parent = <&icssg1_intc>; >>>>> + interrupts = <24 0 2>, <25 1 3>; >>>> None of these are typical interrupt constants/flags? >>>> >>>>> + interrupt-names = "tx_ts0", "tx_ts1"; >>>>> + >>>>> + dmas = <&main_pktdma 0xc200 15>, /* egress slice 0 */ >>>>> + <&main_pktdma 0xc201 15>, /* egress slice 0 */ >>>>> + <&main_pktdma 0xc202 15>, /* egress slice 0 */ >>>>> + <&main_pktdma 0xc203 15>, /* egress slice 0 */ >>>>> + <&main_pktdma 0xc204 15>, /* egress slice 1 */ >>>>> + <&main_pktdma 0xc205 15>, /* egress slice 1 */ >>>>> + <&main_pktdma 0xc206 15>, /* egress slice 1 */ >>>>> + <&main_pktdma 0xc207 15>, /* egress slice 1 */ >>>>> + <&main_pktdma 0x4200 15>, /* ingress slice 0 */ >>>>> + <&main_pktdma 0x4201 15>, /* ingress slice 1 */ >>>>> + <&main_pktdma 0x4202 0>, /* mgmnt rsp slice 0 */ >>>>> + <&main_pktdma 0x4203 0>; /* mgmnt rsp slice 1 */ >>>>> + dma-names = "tx0-0", "tx0-1", "tx0-2", "tx0-3", >>>>> + "tx1-0", "tx1-1", "tx1-2", "tx1-3", >>>>> + "rx0", "rx1"; >>>>> + >>>>> + status = "okay"; >>>> Drop. Didn't you get such comments before? >>> Yes, but again I can point to an in-tree example of the same structure. >>> I see no reason for describing the same thing differently in different places. >> So if there is a bug, you are going to duplicate it. > I was torn between making my own solution, and using recently > added and topical (to my submission) code as template. >> >> Please provide real argument why this is needed, not "I saw it >> somewhere", or drop it. Otherwise it's a NAK from me. > I will attempt to improve the magic numbers in this whole node, > and reconsider the node name. Thanks. What magic numbers? My comment was under one specific line. There are no numbers in status. Best regards, Krzysztof