From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (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 13FED35F5FB for ; Mon, 29 Jun 2026 09:48:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782726508; cv=none; b=DMuf3Lb5ts2dnT+shB0GbaBJY/UnLsm92KxcMZmxTrfIsld7I3BgssHEioGpD/vp3UZdf70uDoOm5kBNLt90io0AxFrTN3w5BAinrjrKb8RXauH7TARrbU4lZWxdL6C0M3OGXRi4FamXU7niWHxLRz9PRm9DfiqvsWaKpSmmYcw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782726508; c=relaxed/simple; bh=OxKtXeEQOCsLezLC5NsYG/0Pupwv5ZCAASPZOhyK0Vk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=FJr1Q9RsPxlVFxLrPE0kKg5SivTsi1J6QrAHNw7T3AsYZGSjn7W1VahvoXU25SIPzwFeqsdzc2SGGxJdJfcGrQHowQx3BStFXbrscNfroKvonSZJfrB8I+TH4t5JzZ6CxXKZsIaG3AI3LopfLMhyjvMZHZx30uLh8FMBX8PTPoU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=XSvtf+en; arc=none smtp.client-ip=209.85.214.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="XSvtf+en" Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-2c9b1edf2bdso9059965ad.1 for ; Mon, 29 Jun 2026 02:48:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782726506; x=1783331306; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=zTD44WdJSK3FZpGp1YBqkIsU4pLxtym31A5/dbuPSIk=; b=XSvtf+en4RgViTA8QtN94felQb7qbhXBL78L9WIc5NdBrKtdQw8qNjnjrxj9C25v4C 43jjtnTcXzzlV0tPxPJF7+mSm7pO5/bRFw+1l0Rwu0xZxrMXvURkVBW2qvnwm63lLzVz pwdfiIBtT66NihwLERC0adA0XIJMJKWEePJRb5YHf/SqA6H2jyo0hNPK7Ye+PhlNCN+b xqOUSrGoGmFnOojA5ko579oH5VQSKpY3V4e+NjZq/TVR/p+o5Pfp954esaqwfDc+2/bW wg35NcmRmwHxlVn7HtDRyncXk2xPqMVHwBNtuAiR1BTR65yADyaqcRX2DvjuTjCZFnPD m5jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782726506; x=1783331306; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zTD44WdJSK3FZpGp1YBqkIsU4pLxtym31A5/dbuPSIk=; b=ZaKH0687fmS6qQ5ctCusTQOWN0gnuU6s+m5XLu4m4WnkX2yJ37sM3cySfLs5hbhdVn YvNy5WwdPf42t2pz4wiFsG1Pw9wwY0BG3uQR3PNhMUrqQfFynXFd78VpVD4q3mRPABID JmV6E0wpg3vHs9dp7UK/zhNZ7dtdS/LcbdeDxLhZH0R78+cnHVb9Q1BsOaTjuswgjPDk S9jarPf3mChwLhNe9T7tzuPs8kGZx1i4fxw+hRWY6ri1kqKzvlnWMBkiDKvymrwvvTB3 aKoyQmviaWsJ1pPRD3iAWOOBow87VkQsBfn6W2bxgpx6mnNDV7VxqCkxGk+C/OVna1Os SRpA== X-Forwarded-Encrypted: i=1; AHgh+Ro7v1ARCcIVe+i4m+knmInYpngJnQ/mdoDFbw7+LYLk9vwMGXExszmNPmbSWAlsBkoaIdeOq+49DGj8ZNI=@vger.kernel.org X-Gm-Message-State: AOJu0YyDb/VPiAaAWlwy/iHTUyGxCh2sPLse94gNaWcymb1qHilwsYyw XANAeH/N4T5+ihVdkGxd/HCIrWq4/TguRLt2t56Sx8MGh5jJeHWWxCl3wgrc6Q== X-Gm-Gg: AfdE7cltb0w/dYN54CEvD9nH70r2bHbomOvpPfw8PU3ICobVIWMHc1gK6bd2igJKXXo LdlSeuX1Ck7LfGvDMlM4XC09l+dkaoC2Bu8mfUxPlWrlZihIN6Ihm4CwGfni26ZFosOQXhwEJSf HbYchWI3/n7P3Vp7vWOb4knTqNuvE6c0fSGV0//wQ7/85WzJpUJoTAeEaTaKFNNdDCSS9iGgMyW LUDWQZBkvVCXO8gbe9K0tclbAdAOuQ9gG2WJj0gTCUPbtRMlj+SRODGW2eLAvjneKoF1/nuVlc0 uAN0WD9aPmlgFrWvz8RNjbRnDw41S2zi6JN+PyLP6dkx3X+3bbrdApQdD1sm8AjB6msUPzW7eWa qexRUl6QEGf8tY7KpLcW4dRS+d/xARtgpfxidE8NGB8poU4s8z3NwG8WVDRnSZ5bbwJW9DyfEa2 NnA0CCi2+4WXDm8qiQz9CapVt55KUsKwTJmL0jElsF3vY9CWwPid4tPlAxl1D/OUZOOg== X-Received: by 2002:a17:902:f612:b0:2c7:f2c6:89e0 with SMTP id d9443c01a7336-2c98549d2a7mr85863555ad.4.1782726506210; Mon, 29 Jun 2026 02:48:26 -0700 (PDT) Received: from [192.168.0.100] (60-250-196-139.hinet-ip.hinet.net. [60.250.196.139]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2c7f5af8a07sm88963245ad.25.2026.06.29.02.48.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 29 Jun 2026 02:48:25 -0700 (PDT) Message-ID: Date: Mon, 29 Jun 2026 17:48:19 +0800 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 1/4] dt-bindings: reset: nuvoton,ma35d1-reset: add simple-mfd and child node support To: Krzysztof Kozlowski Cc: Vinod Koul , Neil Armstrong , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Arnd Bergmann , Catalin Marinas , Jacky Huang , Shan-Chun Hung , Hui-Ping Chen , Joey Lu , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20260625023958.569299-1-a0987203069@gmail.com> <20260625023958.569299-2-a0987203069@gmail.com> <20260625-striped-demonic-jerboa-502afb@quoll> Content-Language: en-US From: Joey Lu In-Reply-To: <20260625-striped-demonic-jerboa-502afb@quoll> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 6/25/2026 3:51 PM, Krzysztof Kozlowski wrote: > On Thu, Jun 25, 2026 at 10:39:55AM +0800, Joey Lu wrote: >> The MA35D1 system-management syscon node hosts the USB PHY register >> block at offset 0x60. To model usb-phy@60 as a DT child of the syscon >> node the binding must allow: > Explain why do you need child node. If you have fixed device @0x60, you do > not need DT child node at all. Compatible implies that child existence. The commit message will be rewritten to state the motivation: the USB PHY register block at offset 0x60 needs a referenceable DT node because consumer drivers (dwc2, ehci0/ohci0, ehci1/ohci1) look it up via `phys = <&usb_phy N>`, which requires an explicit node with a phandle. Optional per-board calibration properties (`nuvoton,rcalcode`, `nuvoton,oc-active-high`) also need to be expressed in DT. > >> - simple-mfd as an optional third compatible so the MFD core can >> instantiate child platform devices. >> >> - #address-cells and #size-cells (each const: 1) so child nodes can >> carry a reg property. >> >> - An open child-node pattern (patternProperties "^.*@[0-9a-f]+$") >> to pass dt-schema validation. > No. Do not explain what you did - we can read the diff. You must explain > WHY you are doing that. Addressed above. >> Signed-off-by: Joey Lu >> --- >> .../bindings/reset/nuvoton,ma35d1-reset.yaml | 13 ++++++++++++- >> 1 file changed, 12 insertions(+), 1 deletion(-) >> >> diff --git a/Documentation/devicetree/bindings/reset/nuvoton,ma35d1-reset.yaml b/Documentation/devicetree/bindings/reset/nuvoton,ma35d1-reset.yaml >> index 3ce7dcecd87a..1fda7e8f4b5d 100644 >> --- a/Documentation/devicetree/bindings/reset/nuvoton,ma35d1-reset.yaml >> +++ b/Documentation/devicetree/bindings/reset/nuvoton,ma35d1-reset.yaml >> @@ -19,6 +19,8 @@ properties: >> items: >> - const: nuvoton,ma35d1-reset >> - const: syscon >> + - const: simple-mfd >> + minItems: 2 >> >> reg: >> maxItems: 1 >> @@ -26,6 +28,16 @@ properties: >> '#reset-cells': >> const: 1 >> >> + '#address-cells': >> + const: 1 >> + >> + '#size-cells': >> + const: 1 >> + >> +patternProperties: >> + "^.*@[0-9a-f]+$": > This must be specific. The `patternProperties` key will be changed from `"^.*@[0-9a-f]+$"` to `"^usb-phy@[0-9a-f]+$"` so it matches only USB PHY child nodes, following the naming convention used by existing vendor bindings. >> + type: object > Missing ref and additionalProps. Please look at other simple-mfd. `$ref: /schemas/phy/nuvoton,ma35d1-usb2-phy.yaml#` will be added under the patternProperties entry, alongside `type: object`, so the child node will be validated against the PHY binding schema. This follows the pattern used by existing vendor bindings. Thanks for review. >> + >> required: >> - compatible >> - reg >> @@ -43,4 +55,3 @@ examples: >> #reset-cells = <1>; >> }; >> ... >> - >> -- >> 2.43.0 >>