Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp14010239pxu; Mon, 4 Jan 2021 10:23:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3/e4sQDs9Af638asVO/fI3aN8yBm9ZZ58/a2YC/UL8FHvuYQDODrlujjBWzfNKkM541YT X-Received: by 2002:aa7:c886:: with SMTP id p6mr72292561eds.207.1609784583187; Mon, 04 Jan 2021 10:23:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609784583; cv=none; d=google.com; s=arc-20160816; b=rq5tKeNSgRxXIZsWsz3Trejh3Z4/0TUiI2IaDtG67LpN7ZJuJfFSItkLTvvUZOTh+H z1YYqHVyfKRHcfQy63ssgfWFHJXxqJ+XlnlHm2gX8iME3kw/7FUp1bBsXiVwzjHVkucU nS8FOvHOAXLeNETtGUM0hwtmw0XVL63RjZiwmF3wVNVWIDbEQdhov817TS7U/sO4HyWt p1/wpYoZ7pAWCwliCiGVNvtWmdefw5mu5oX5DOxrTLnSyK08eF3dwNacS0UAY4Bt2f9E oH6VkOsE0tTsOGBKNLpg43aDt421U7WRUK4LEIwq0IN4SQFb/aLflP77u0Cr71Cwl9wI /R2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=y+NTvbLk4IzzMQK1/SZQ7lLpxAYEqAF6MOVXtS7spWg=; b=mJQtRPLAfk59Z0qERaVGEKzIS3TILn5IsIyFuTM/mmikOvwKBsWpBh4y+0ZKtH4to/ NKEyZWnpeX7MszjpQ7NeRz5u2G/EiSRtHYQhKIOkrG0hTYWhuZUDRjMT0WGKNDeLGbES 6Ll1nqjvgXfuCcdioGYVx55kZlN/QzjtYzKBoKulIqJVyWG1ch+nH6BAoUHMrDD1iiWO 27EfX27l28Y8vPudpoytwSpzyYRGIlgpCUo34DQNvb8Q1xG4IEx535771MPkrAcDTQU+ VyPiqirtQv26Xlk9kWkLSO9GAm1IvoxJHFbCZ8WRkSuAdpgvneT3rkXJwsNM6bwjKUQx gtRQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l19si23815826edb.391.2021.01.04.10.22.39; Mon, 04 Jan 2021 10:23:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727520AbhADSTK (ORCPT + 99 others); Mon, 4 Jan 2021 13:19:10 -0500 Received: from mail-wm1-f45.google.com ([209.85.128.45]:39292 "EHLO mail-wm1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726452AbhADSTK (ORCPT ); Mon, 4 Jan 2021 13:19:10 -0500 Received: by mail-wm1-f45.google.com with SMTP id 3so127537wmg.4; Mon, 04 Jan 2021 10:18:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=y+NTvbLk4IzzMQK1/SZQ7lLpxAYEqAF6MOVXtS7spWg=; b=AsMwAr/K7cyLetQtcPFpqs/NqKQabPftA/pVy0Wiu/KAq4PpwmK4msAZH1aN0QoBXN ZXM7Xj/NFoZISFhjP46zxMksV+YTqZaxappTzgpZFjo+go83E1mEShg4Cy6895gIWdl2 q0kmq81inI8rw9rOPTlQhXEo/PMAs+rIcKr2Ov3a8zyfK5Bg9eY96uV9jdD8WaAm9ORH 9vUsQsAK0htmHmhBHAct6Qbh5DOF6DdHXS9TIlRnBreob3uQafRLMdDYgiI9fXZjTh36 G6EXatwzCzePU5sq+9P7TssECoiW+HrFbpFi7cLPcAfy0YQyLeoQkRTH3HJcNH2qj3iQ +NTQ== X-Gm-Message-State: AOAM533Q57kutc8TeDN7MtU3TUl/n2XCVZDmstjqfK74m0/P1cf6fWCH 9cAS37TiYTowWykSDMxQtSI= X-Received: by 2002:a1c:4483:: with SMTP id r125mr143991wma.80.1609784308269; Mon, 04 Jan 2021 10:18:28 -0800 (PST) Received: from kozik-lap (adsl-84-226-167-205.adslplus.ch. [84.226.167.205]) by smtp.googlemail.com with ESMTPSA id x7sm210739wmi.11.2021.01.04.10.18.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jan 2021 10:18:27 -0800 (PST) Date: Mon, 4 Jan 2021 19:18:25 +0100 From: Krzysztof Kozlowski To: Mark Brown Cc: Timon Baetz , Marek Szyprowski , Liam Girdwood , Rob Herring , MyungJoo Ham , Chanwoo Choi , Lee Jones , Sebastian Reichel , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Subject: Re: [PATCH v6 2/8] regulator: dt-bindings: Document max8997-pmic nodes Message-ID: <20210104181825.GB27043@kozik-lap> References: <20201230205139.1812366-1-timon.baetz@protonmail.com> <20201230205139.1812366-2-timon.baetz@protonmail.com> <20210104135156.GB5645@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210104135156.GB5645@sirena.org.uk> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 04, 2021 at 01:51:56PM +0000, Mark Brown wrote: > On Wed, Dec 30, 2020 at 08:52:07PM +0000, Timon Baetz wrote: > > > +- charger: Node for configuring the charger driver. > > + Required properties: > > + - compatible: "maxim,max8997-battery" > > + Optional properties: > > + - extcon: extcon specifier for charging events > > + - charger-supply: regulator node for charging current > > + > > +- muic: Node used only by extcon consumers. > > + Required properties: > > + - compatible: "maxim,max8997-muic" > > Why do these need to appear in the DT binding? We know these features > are there simply from knowing this is a max8997. If you refer to children nodes, then we do not know these entirely because the features could be disabled (pins not connected). In such case these subnodes can be disabled and MFD framework will not instantiate children devices. If you mean "the properties" like extcon or charger, then indeed it's a good question. In theory, wires still could be routed differently, e.g. different charging regulator used as a charger. In practice this is highly unlikely, however such DT design allows easier hooking up of different devices and even potential re-usage of kernel drivers (also unlikely...). Best regards, Krzysztof