Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2522085lqz; Tue, 2 Apr 2024 23:37:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUPf9EqCU5rILK4UUBXuuCoachKJg3Rinm4lBxExPcFgculFQb2y1lxrTEAqlQeYh8fpqtID4a0Y7SjqgEMSUpf2U4ia9MncWDizsHDFw== X-Google-Smtp-Source: AGHT+IESpCJL9ucZAKjWWGo/DbGIUTbf69vAj/+xmuOsERR9dgGr7ARCS6zpRIfQCbEI8s5r2Uzn X-Received: by 2002:a17:906:488:b0:a4e:1d5f:73ae with SMTP id f8-20020a170906048800b00a4e1d5f73aemr1401848eja.12.1712126270563; Tue, 02 Apr 2024 23:37:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712126270; cv=pass; d=google.com; s=arc-20160816; b=Ks+VK1zcwKz+2D8Eel5uaXyOZbe66n9b8s9WmAzfM0ighorbVuGsA3msBwWCmF4jtG wLTHgHTwDwlejSLrT3/Q4mS3/nUh+S7cz98sij4byx/8vYeVjq1osa9hxCn/AlqQ8dX/ cCdNnc+0x0JIGv7CvGkubBiUS0X75S9U+5o2Xr7YeBRSkJg8HEfU8tWDxrxeMOtm+py2 3Inorq51Qq0vGj+JNRHnWWw7j7zhxImMW1CazgDAMk6GGKA/mGHddIMUBZ7A/ak2evHt akSsUS9uIoQQsoxUNW4hn71qyNrzgJdivhhru0blg3YDhavuOs0IvhMKSQapQA4pBjMv a1MQ== 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=flphd8KBnN04TNMBTQsstnty1o8ja1/EGgTu99pUKpw=; fh=wi+U5L8gpxgT5hHsGCr7yXxz3sOoO0YAMb61y/JDyYI=; b=E1iXByHmNxoOZsRZnay4O8wcK5A8o8BkG5F6KYUa1H0bhl2zbuQekP+fH0N9K0kF6Z VBx2Pma8TNLbhRAovTLoRDqfaNxaCIwOP22iOA94JwsIvheS6mIS87ApEUBE8PsYM7sI BKjL9kKGA0pjGG5fi0R+e0MJrXQMqXiosqa4bZBg85SW2KKy4tl12kv+vpu6BeU7rUnp QiJ7tsS23HTZrYeszo8td58fF+bO1d6e+aDeaquyJISSRpIkZku/sMXcY+ycUwv8CmLh 4Am1f8vvEow0YRXFYwFj5FZHTifnA07xQ7OpYGZKTd2HYHgw6+XMRGzyZpaiI/W77bRA sC8Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jMpfz+Pa; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-129080-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129080-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id u16-20020a17090626d000b00a4e109afd18si6550771ejc.578.2024.04.02.23.37.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 23:37:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129080-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jMpfz+Pa; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-129080-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129080-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 am.mirrors.kernel.org (Postfix) with ESMTPS id C37E01F22CF0 for ; Wed, 3 Apr 2024 06:27:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 72A6F50A75; Wed, 3 Apr 2024 06:27:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jMpfz+Pa" 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 75F1A45941; Wed, 3 Apr 2024 06:27:11 +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=1712125631; cv=none; b=I0TPu8OHOdnFf4gnDTr+CjsV+ys2GoI0jWGbpWiIYigGHyMWqdUBKcQ4nCSiWyyXe/vdnByQ+KvIzuYwvKZcD6YBBkMBabzPV2SXa7hhPlNRo7DAbrgo44Rj1Gc2EoOmv9CwRJtwPRWqTheImx/7yN/PK+ybg9lIglBo1iaGiBU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712125631; c=relaxed/simple; bh=WAGggC/YAADO88TPD8W+g1SxwOBampJG3PNx3bfTBRc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=uif1tqtWK+acGMFBK2typ7Jvovx8TMmRWRMGNYVKDFcJcfTPRV8ukXa4JeXj4FTJaqXFrSSZuF+/QrjHwOiz18DH4dcjN3FOL3/5gAeWPRq9s+DnLov3g03LhT+iryl+ii0w/Rka7jsGfOZlGASKIztbJBvGZQJt5ZZ0P8a7B/Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jMpfz+Pa; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 926E4C433C7; Wed, 3 Apr 2024 06:27:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712125631; bh=WAGggC/YAADO88TPD8W+g1SxwOBampJG3PNx3bfTBRc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=jMpfz+PaMyh+vTpK5hcgRa8CvA805HLL/3vHGwMf3rTtc/hwY0TmpiJreMln5R9nS l8AkUxCJsO071XpXvp2kW5CvMwMULt9TG+zMK6uNILeb53wr+1d7daun2hNqxIiAsS zpzNslfl/rzMfYRBpFJDqAJm8Cy2iMEDo0sC0jDT2niaz5xWT6D+fu9rX0cLx3Hsvb FWwwcZ9HXCvDQh/ppTAltsUh1yPpu7RupJLo4E177ftZ7EOAOxsivL7vebwUTtU/iE YZdkhV52ywoyHljtbIKFaHwOWZrmCdGcdA0DZnmHCpwt5QtvVkzF7KvDUl5YOFcC7q rbHOaueEZMb6g== Message-ID: Date: Wed, 3 Apr 2024 08:27:06 +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+QFxwl7pDsAKR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LMdnRBY fv0= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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. Please fix them and send when your DTS is ready. Best regards, Krzysztof