Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2522913lqz; Tue, 2 Apr 2024 23:40:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWsJl6l0tPcTRHqhq8+u1AEQIgcRyaOnB6jbwhwjm6fNqwShzTIK9Xlu+1tYBT3VV3glX4XrFaZRrjVKAgBPm/Kmy1I+1sIGJxwtLPNYw== X-Google-Smtp-Source: AGHT+IGHtPFp1JKqtb/KQbWWBS7JcEY6acrDdiHzybaWYSCxn6ijJbZgGeZaLKwuVuAZ+OMdth4m X-Received: by 2002:a05:6358:528e:b0:181:6575:1a23 with SMTP id g14-20020a056358528e00b0018165751a23mr17289978rwa.6.1712126434387; Tue, 02 Apr 2024 23:40:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712126434; cv=pass; d=google.com; s=arc-20160816; b=TsN78KAgQhFCEEYW8HTIJCtCbWQw9vEAi3kHiXh+7Rykd00bJ8QUzRCnrBfdssBBez BJ4vSDzCk6LFBd+DU/+wEwLf9MGHh1Rz+YkUth607pdZaHUcqAtQfgipMU9f90D4vThw B8haMMas/Z/BtKles9bEOrHV+z/NL1yIjlsZxIa0D0SI9Jk69vMYXf7iFwUTrzHGkChg BTf3i0SsWS7h/UpgL7WRT7tgNp1nXAXLFjwCZX6bcC8m5zgWN34cLUn1WQFMiSsQ6hZX jkwblmHNLPwi5zDx77ipUMirrHoXHzY/VIXu/2bEBf99DiDaHbAwWP3XuQBTjYWCvIFK RbtA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=x/pg4AOlSZknTuulj3V7/n7o6p0wn0+hDSayqu9zVdQ=; fh=wi+U5L8gpxgT5hHsGCr7yXxz3sOoO0YAMb61y/JDyYI=; b=C4V10WHO3da0/3KJUPD/i15kfIJP1+3aUL8MHpO6h953pXIJv4eKVu3pXP8vm/9bqN mxkcnFxe9A4NUD2at+dn5dyhtNmRwbaFrSdlomgaDc39ewaVlXx1MPLFCbMi/AoLwN16 minNEK+GHmvyq9H9FiKQqSWM6RbsZIYi6edD9r0oq3zdNtGxdLrGUEG560kTerFs0Sgv EIcmBZwXw2toY6AJhRRtoag+9A9wzthSYN8l21KBXTTb1ZnOvHowK4lb7zT8SmQ32YBf 975Plv8Ot1d1Ne+fX9M+JOCuqoymGNMnZi3nL08fgZF8ZhpR10CHH853IEBUlcqHqr/d /1cg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="IqUAQ/gC"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-129090-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129090-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id p17-20020a639511000000b005f3d54ea770si1573854pgd.714.2024.04.02.23.40.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 23:40:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129090-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="IqUAQ/gC"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-129090-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129090-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 04D28283A14 for ; Wed, 3 Apr 2024 06:40:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CBD572E62F; Wed, 3 Apr 2024 06:40:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IqUAQ/gC" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CD45733F9; Wed, 3 Apr 2024 06:40:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712126425; cv=none; b=TgLK+xSHt7R2bIOROxo2DoDPndjk2OwKV4fQ65gGzqRzUMbOqz0XTfYgnCl+Um3hUFkt3L6iFxA8LNIzR/reKPmLrAcsfu7JQmzC1rjhJdWO5Qbu8naG1d/UfOARPGEzeMUSHyi+XKbEmwUi3uMGD+GpMglsPctWT/1Zmq9qba4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712126425; c=relaxed/simple; bh=1W65hmedM/cTWDS6TB/8KfE7+mFA66kSmp3Dq/GjtSQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=rj9FDblbMWoquOoJaaTq1xD7IKheN9xGUEzFQahS5rZc8ehsPf/I8Ac2lvELtb644vLEtLb+CqQvSbNcwmb+BFbNvEiQUsxk5l5A1oPl9Y9tLCbwlvKT/m6VUTU2LDs13oaiFIqX0b61WHHhUHIfhluyBJDHjfJnBYl/6PcvZxM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IqUAQ/gC; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 471CDC433F1; Wed, 3 Apr 2024 06:40:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712126425; bh=1W65hmedM/cTWDS6TB/8KfE7+mFA66kSmp3Dq/GjtSQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=IqUAQ/gC9cYncOCkqyLgCkYtsm57mStkmVNE7ze/4h//76FoFUHDHaOTmN7lwVehv gu3UTBAMQgyPfoYJLKo0G2SNBbOc57NQqPM4woEQTvkFwEfakH1X5C724x6yFNKjJ+ 3fpvbgXFhESsZgDzFovvbR8VKGjlemGYI5CMwdLNbc2ienQBW3VM67z+9mx3RbGgFU AJM2rauLQrOS9vuuoqCtctSUmRBwy6sueVlpWWBPL6OqH2k2m15uaxGdq1FqQdMfrJ 5bh+2MisL1AfWwghgIHgL4+AjJg4cqcx7j6au/2TYNuJbNpPcrB0njGgRvYNcBU30F BSsP5MPHGUCgA== Message-ID: <083e50de-1c99-4a58-8b55-4dec26d97c1b@kernel.org> Date: Wed, 3 Apr 2024 08:40:19 +0200 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] dt-bindings: mfd: syscon: Add ti,am62p-cpsw-mac-efuse compatible To: Siddharth Vadapalli Cc: lee@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, srk@ti.com References: <20240402105708.4114146-1-s-vadapalli@ti.com> <2e9b6a91-43d3-4b23-830d-40e607505d8c@kernel.org> <30065bdc-ccef-4610-b1c1-7661f801b8e9@ti.com> <4b1380a8-0136-4395-ba42-9bcff2e1bdb0@kernel.org> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzk@kernel.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++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgPO8PBQkUX63hAAoJEBuTQ307 QWKbBn8P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3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 03/04/2024 08:32, Siddharth Vadapalli wrote: > On Wed, Apr 03, 2024 at 08:27:06AM +0200, Krzysztof Kozlowski wrote: >> On 03/04/2024 07:35, Siddharth Vadapalli wrote: >>> On Tue, Apr 02, 2024 at 08:06:27PM +0200, Krzysztof Kozlowski wrote: >>>> On 02/04/2024 14:30, Siddharth Vadapalli wrote: >>>>> On Tue, Apr 02, 2024 at 02:08:32PM +0200, Krzysztof Kozlowski wrote: >>>>>> On 02/04/2024 12:57, Siddharth Vadapalli wrote: >>>>>>> The CTRLMMR_MAC_IDx registers within the CTRL_MMR space of TI's AM62p SoC >>>>>>> contain the MAC Address programmed in the eFuse. Add compatible for >>>>>>> allowing the CPSW driver to obtain a regmap for the CTRLMMR_MAC_IDx >>>>>>> registers within the System Controller device-tree node. The default MAC >>>>>>> Address for the interface corresponding to the first MAC port will be set >>>>>>> to the value programmed in the eFuse. >>>>>>> >>>>>>> Signed-off-by: Siddharth Vadapalli >>>>>>> --- >>>>>>> >>>>>>> This patch is based on linux-next tagged next-20240402. >>>>>> >>>>>> Where is the DTS using it? >>>>> >>>>> The current implementation in the device-tree for older TI K3 SoCs is as >>>>> follows: >>>>> >>>>> cpsw_port1: port@1 { >>>>> reg = <1>; >>>>> ti,mac-only; >>>>> label = "port1"; >>>>> phys = <&phy_gmii_sel 1>; >>>>> mac-address = [00 00 00 00 00 00]; >>>>> ti,syscon-efuse = <&wkup_conf 0x200>; >>>>> }; >>>>> >>>>> The "ti,syscon-efuse" property passes the reference to the System >>>>> Controller node as well as the offset to the CTRLMMR_MAC_IDx registers >>>>> within the CTRL_MMR space. >>>> >>>> Please reference upstream DTS or lore link to patch under review. >>> >>> An example of the existing implementation in the device-tree for AM64x >>> is: >>> https://github.com/torvalds/linux/blob/d4e8c8ad5d14ad51ed8813442d81c43019fd669d/arch/arm64/boot/dts/ti/k3-am64-main.dtsi#L697 >>> It uses: >>> ti,syscon-efuse = <&main_conf 0x200>; >>> >>> and "main_conf" node is defined at: >>> https://github.com/torvalds/linux/blob/d4e8c8ad5d14ad51ed8813442d81c43019fd669d/arch/arm64/boot/dts/ti/k3-am64-main.dtsi#L40 >> >> It is quite different than your bindings, so your bindings are incorrect. > > Sorry I didn't understand what you mean. The references I have provided > are for existing DTS where "main_conf"/"wkup_conf" (System Controller > nodes) have the compatible "syscon", unlike in AM62p at: > https://github.com/torvalds/linux/blob/20f8173afaac90dd9dca11be4aa602a47776077f/arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi#L8 > which has the "simple-bus" compatible for the "wkup_conf" node. > > Also, shouldn't the device-tree bindings patches be posted first and get > merged before I post the device-tree patches that utilize the > compatible/properties that have been added in the bindings? That is the > reason why I had shared the "DIFF" for the DTS changes that I will be > posting once this patch for the new compatible is accepted. > That's not the process. I will be NAKing bindings which do not have any users, because I do not trust you test them. The process is almost always: 1. Send bindings, 2. Send driver changes (if applicable) in the same patchset. 3. Send DTS, usually in separate patches and provide lore link to the bindings in the changelog or cover letter. Best regards, Krzysztof