From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oi1-f180.google.com (mail-oi1-f180.google.com [209.85.167.180]) (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 2BEAE317164 for ; Fri, 15 May 2026 14:15:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778854538; cv=none; b=Bx5/Iw94azGIPLE+IQxjp30xnfQ4GIj0mMEi9HjNkRwaa7XjFddNM18quApaBigI7P+vRP5F1uDn4VJ3daR2t5StNJLwseLwYR7KAdDW5ZlUeCpir3bYUyTrXBWijQVgrmCmG4f2BK82z1CHpts7Bg9wiu8KB07Wrh8xujfvOwA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778854538; c=relaxed/simple; bh=AxIVVOkP8DzfUfnvY2EXq41TePoQG93Dw8tHUJ2/FXg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ELVFH9VfrML8/3A8lGaIcmw0Q2lTW5MmGzyJ2mB4YcGVh46YM+5AtzVKI4F51FakpqxhvXP9s4JC0+Wt//wWg1EqksbBFc19WR/9mC2gmqzIzjdOGwx5fHDx8AUUAueGIqOKWi7azbjSRdoVffAXPw2wHMQhbfU30s8mSaEra9I= 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=HLw/s0Tp; arc=none smtp.client-ip=209.85.167.180 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="HLw/s0Tp" Received: by mail-oi1-f180.google.com with SMTP id 5614622812f47-47c941f7213so6016286b6e.1 for ; Fri, 15 May 2026 07:15:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778854536; x=1779459336; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=X3Ba1jDpFlV6BYps4ROIqTWMi/TLCycbOgGvzvGmAoI=; b=HLw/s0TpdyB9b+Cnbtd5LNKL0CcnZSA4okKrMtybZgK0qcaGd8wCrP4vZerumNCP/S g+/AbTg5JYBRDRL4pz9p0k+4SQrms9z6wqErao1Zdd4bR6RLBrQEwClsT3s4MXqUrzQ9 82ohDatr4nHoQlw2hqKmNvyUv26aXtnW0oQKZ4iclcCAt+t/MPhoDkqx6fKAPzK86krU B7O4mwsaPr2LYALMRUzBgXNGsirvdjxs+IyyfBklQ42T45EgbhR83YRmR+zWxLCRwDcp ny5hbvigiXRQlXZrIUoP4NhgEljHZyWJYQtKnKWMfuIBk0SWAeppoJcTFFN393VEGUXR k+vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778854536; x=1779459336; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=X3Ba1jDpFlV6BYps4ROIqTWMi/TLCycbOgGvzvGmAoI=; b=nS5SekQOiiNy6LGQPRYGtHqLK9yJgAQ78nwI1yhWnu+YCRbBbSf8OY2DfuOfESoUOw TfBV0Y2VeMSidyY1/P/2w38KLbhzXNYFsykh/l+M0zgx0ZNK2Sz9KZQh+s7FtGkFApKe FOiu8KbO7Od53QFWwjUP8o3HNfyG/fjrbyucXH7SYy6Q0ieSod6eWfkfbY8o5mtL9W7N yfiLEQx6jR/4S59F2JZd8koG6xlD/Cq1J6UhdMSKBe+ObWO10szDqflKNTvPFz7c4u3J Mzt+g764eYApPzMoGCMBwsp0eEnnIK+aajNyTGhK2n6UNCw9WeVFSgYN0wwhQl8sOu/L 8drw== X-Forwarded-Encrypted: i=1; AFNElJ/wrpNtm8EUFmwkWmCVqy60hRAUc/lTqqT44pcKv9SRuE+Y7Y7liPxmCeJ4ua+a43g37n+6qg+RnvGz@vger.kernel.org X-Gm-Message-State: AOJu0YygcfRaGvoFrIwY83ibrfRsbgZE+lxsfuO+kb3BORywYEt6gkBc MmULBRk3Ra1lZ9NXo4Nil7f9/3Lh9lqy3fW2pHRbgq+OM+/rk1MTfkcx X-Gm-Gg: Acq92OGJlh/eattneWq1yfucuOsrLZ1VdUuSSX2E0uRIZkqAgR0Bjj61GYnzNhSo5n9 MroS6yYGZeC+n7lrPaf9x1/z5FuIRvZCzZj6pV8w2F+8991zENl8Rdztg0uxFKcrP0E3/WGvUmt 8p9FsPLtOq4zSdDK4i2tLVNf1FYA/IVd9f+t6q4ogT8ximnDSxLLUaWsKCKwECRPq3/V/8UMGWM 4yX/DdlRAdbREW4DwkC2tKsTTZOieyQVEEkhJANlHjvsUT1meUM1WdsezBgo/ZIcU4zeh7/UER3 fMKBzDJcv8uvZUXBiYOf6xlNzGkPkqNExQYw4edUASnBdAZgWDIexI91ndwN12MzjHKK9uq3hBn Q8rO3ecIIjdNSfyBtHshTY6gXk0i2cUus/iOVdFOwbc7bKOQTK6pyD/MF8tPd6wpXsMrCCDmfen i2D66eQhX7Z8mgSth+YHwOC4ML5y/BuhR++3qznuyffirD X-Received: by 2002:a05:6808:1982:b0:467:2a6e:adb3 with SMTP id 5614622812f47-482e5729bb3mr2592192b6e.23.1778854535958; Fri, 15 May 2026 07:15:35 -0700 (PDT) Received: from neuromancer.localdomain ([2600:1700:fb0:1bc0:8c2e:6a8e:445a:9169]) by smtp.gmail.com with ESMTPSA id 5614622812f47-482ee38a5ecsm876341b6e.7.2026.05.15.07.15.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 May 2026 07:15:35 -0700 (PDT) Date: Fri, 15 May 2026 09:15:33 -0500 From: Chris Morgan To: Krzysztof Kozlowski Cc: Chris Morgan , linux-rockchip@lists.infradead.org, linux-pm@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, xsf@rock-chips.com, sre@kernel.org, simona@ffwll.ch, airlied@gmail.com, tzimmermann@suse.de, mripard@kernel.org, maarten.lankhorst@linux.intel.com, jesszhan0024@gmail.com, neil.armstrong@linaro.org, heiko@sntech.de, conor+dt@kernel.org, krzk+dt@kernel.org, robh@kernel.org Subject: Re: [PATCH 1/6] dt-bindings: power: supply: sgm41542: document sgm41542 Message-ID: References: <20260427170914.5062-1-macroalpha82@gmail.com> <20260427170914.5062-2-macroalpha82@gmail.com> <20260428-bulky-nebulous-reindeer-ed45ed@quoll> <534f0795-0002-4c04-a83c-fa1b3ce68216@kernel.org> <20260429-boisterous-cyber-hyena-ce870a@quoll> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260429-boisterous-cyber-hyena-ce870a@quoll> On Wed, Apr 29, 2026 at 01:58:22PM +0200, Krzysztof Kozlowski wrote: > On Tue, Apr 28, 2026 at 02:54:53PM -0500, Chris Morgan wrote: > > On Tue, Apr 28, 2026 at 05:09:49PM +0200, Krzysztof Kozlowski wrote: > > > On 28/04/2026 16:09, Chris Morgan wrote: > > > > On Tue, Apr 28, 2026 at 09:47:00AM +0200, Krzysztof Kozlowski wrote: > > > >> On Mon, Apr 27, 2026 at 12:09:09PM -0500, Chris Morgan wrote: > > > >>> From: Chris Morgan > > > >>> > > > >>> Document the SG Micro sgm41542 battery charger/boost converter. > > > >>> > > > >>> Signed-off-by: Chris Morgan > > > >>> --- > > > >>> .../supply/sgmicro,sgm41542-charger.yaml | 99 +++++++++++++++++++ > > > >>> 1 file changed, 99 insertions(+) > > > >>> create mode 100644 Documentation/devicetree/bindings/power/supply/sgmicro,sgm41542-charger.yaml > > > >>> > > > >>> diff --git a/Documentation/devicetree/bindings/power/supply/sgmicro,sgm41542-charger.yaml b/Documentation/devicetree/bindings/power/supply/sgmicro,sgm41542-charger.yaml > > > >>> new file mode 100644 > > > >>> index 000000000000..3e5041e5b551 > > > >>> --- /dev/null > > > >>> +++ b/Documentation/devicetree/bindings/power/supply/sgmicro,sgm41542-charger.yaml > > > >> > > > >> Filename must match compatible. > > > > > > > > Acknowledged. > > > > > > > >> > > > >>> @@ -0,0 +1,99 @@ > > > >>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > > >>> +%YAML 1.2 > > > >>> +--- > > > >>> +$id: http://devicetree.org/schemas/power/supply/sgmicro,sgm41542-charger.yaml# > > > >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > >>> + > > > >>> +title: SGM41542 Battery Charger > > > >>> + > > > >>> +description: | > > > >> > > > >> Do not need '|' unless you need to preserve formatting. > > > >> > > > > > > > > Will fix. > > > > > > > >>> + The SGMicro SGM41542 is a single cell battery charger/boost controller. > > > >>> + > > > >>> +maintainers: > > > >>> + - Chris Morgan > > > >>> + - Xu Shengfei > > > >>> + > > > >>> +properties: > > > >>> + compatible: > > > >>> + const: sgmicro,sgm41542 > > > >>> + > > > >>> + input-current-limit-microamp: > > > >> > > > >> Missing vendor prefix. > > > >> > > > > > > > > This *appears* to be a standard value (perhaps not formally, but in use by > > > > enough devices to suggest a defacto standard), which is why I did not use > > > > the vendor prefix here. Do I need to add that for this one? > > > > > > I know, I found these other properties but I think they were just coming > > > from old schema. > > > > > > If it is really a common property, then should be defined in a common > > > schema and this did not happen. > > > > Would now be a good time to add it to the power-supply.yaml document? > > It looks like this value is used by about 10 other devices. > > I have mixed feelings. Adding it there would mean that all schemas using > unevaluatedProperties will get that property. That suggests they have > such limiting ability in hardware or this ABI is implemented in some > generic part of the kernel. > > None of these are true, I think. > > Maybe we need some documented guidance on usage of common schemas. > > Best regards, > Krzysztof Would you recommend I just use the vendor prefix then here? Or add this to power supply as an option? Or is there a 3rd option you would like for me to pursue? Thank you, Chris > > > _______________________________________________ > Linux-rockchip mailing list > Linux-rockchip@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-rockchip