Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1715362lqs; Sun, 16 Jun 2024 01:07:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXf5tx3nvW2gun28gx/6kRb37QalBCO4L/Zy0NUkSoKazswAn5XPIRcSPQCuTlNFUx+cdxrxNEyREO9dEWNuRG0dTlUM+C3tjASOuU1CA== X-Google-Smtp-Source: AGHT+IEUpfWc+f65dNUxZiTtPgv7tCs/xRcShgrag12iG/8iy0E2pbVQnDKGH76GVz/VI24n8ns6 X-Received: by 2002:a17:903:2450:b0:1f8:6d9e:fa9c with SMTP id d9443c01a7336-1f86d9f0150mr56974115ad.6.1718525233249; Sun, 16 Jun 2024 01:07:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718525233; cv=pass; d=google.com; s=arc-20160816; b=TTKVtZsUWXucBeRrx5o+Q3EFlSoEbn/9RDzlY79vnfnVM7j7EVhled1at5BFIwY0BJ UGIWH7XyREAOL0UkQ/kRSOIOq55NaCPJd8QBefLEjxX8gCIcMIwumkAGIyQlIWleoNDp bWzfgNFXW8tfha/fiibpfzMrRXpsMiAgDNasblC+j/y+kowCxvMXs61K3DCoB/kajF7N tvahDDtn8JYX6bhvvWgQBPJIxZ/EAfbGIpn8ehUbEDiPZs930e+nCLXgrIeAwrPLcQjD k6WKHf7ZRe/jp9cxCL5zpxw3gLAY/hQQXcErCLIl9FwfIi/hgIvXnYUxXY8XenZ5O/Yf cppg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=40sPRExwP3s/3ZijtGHfQupkdXxmU+DCpAvlWfd+DeA=; fh=OT4RTr/vyN96t8QRWPguu4YGYkL1G/tp36HlbDRFSsg=; b=qBvRBVpAOEUaKT2yoSibwDlCWnxxJhaLa03mfLFnISYmZ9yfz0Q/McTBas7tQYYo3d EcS456Cmx7Q5NB8VQsmzVi7/clwZtskvRVigMbLJVCFlHEpyaJDsXicY1Th55fxxH7zZ Ue1YwK94kTme2ZjYI2OF6DeuDcdOpnHWP80BOb23u+tnkrnqsed3OUNMqbFWd5H2+KTf TK+xzj+k5CcIqhpH/UZXITwQjWN+ve6ekhFuxOGjXGSOQr5vOj2Z4HmvPi3clFKCffHU 1S9/xrN4NKilrHiiJCo5mCdA7tsuQSXdRty8MRkiCCulynHh3oNwQMMixFMIQ1MQLFA2 6z9w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LYhUVOqx; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-216185-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216185-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f855ee2f07si70632925ad.352.2024.06.16.01.07.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jun 2024 01:07:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-216185-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LYhUVOqx; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-216185-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216185-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 D526C2829EF for ; Sun, 16 Jun 2024 08:07:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 03EC018412B; Sun, 16 Jun 2024 08:07:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="LYhUVOqx" Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (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 7CC3116D4ED for ; Sun, 16 Jun 2024 08:07:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718525226; cv=none; b=WaQkVGEmimPPKMz1ErGQniModG9it9+Oxv4tmlC18zFqwT6/kCuN2V6L3J6hDcn5OtxeuGDp5fefJ/oBfpK6XuW9oSmgbRhA9bhyQqtKYl6rEjnZS1/0t/smKFZVr/xOaBI2JEu21tC1rngt0gSbGiZLwejbRJBCZmpaslvDmuM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718525226; c=relaxed/simple; bh=NMqn47xTcZUZtwmPaIuc3UPEQIWpCFeoW4y6K898tQg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZPB6OkTLmKstM/H27fZSdq7BARwYuvb2d4QbF6RQBNyf7U7NlMpKfsIsK9ZH44g3lDI+jHs7i4W52w5OjVmUPljv2gGdotR82gLgj3+arCfvhIQ2JCo6jL2XjKdexrJOoQO3xUQmBXQo8TrVUOngIdjRH5PBli6urtThZvHIAi4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=LYhUVOqx; arc=none smtp.client-ip=209.85.208.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-57c68c3f8adso4143793a12.1 for ; Sun, 16 Jun 2024 01:07:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718525223; x=1719130023; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=40sPRExwP3s/3ZijtGHfQupkdXxmU+DCpAvlWfd+DeA=; b=LYhUVOqxejydiFfbCdwojhZuV7d36fyWHmqjrwMhAJzK3HIxNttdskTBK+fk+gv25c OyX4IugI09D85Jfum5RZrZxvW+rYFJDl6kZB4EPC0fJ+oZoJTWWMZqfqa9WUHfGDf6lv Fv5Zp+2znXxotWtqZ3b/qbMyhZqQSL/dqpvBkt+iiYlUczIxrOob6VU8dHRxcQtvVoPH vSbo995vW+Ae9D5AIvIG26zbAf0dg9rAxAQlSPQXbvXJS8Zf956sPRxsWq82HaQbm7Pm /RYPc1viDeNAVhtgN5pAX4AFzCckmLxr7qZwAiVyF98YWPZy87FLDgd6ESW7uGvmfVau on1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718525223; x=1719130023; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=40sPRExwP3s/3ZijtGHfQupkdXxmU+DCpAvlWfd+DeA=; b=iUijCSJBPdPmafpaIYg2J9CHRgcA9IcEwsZI3fvwQhA2hfrkureBzxY2CpB5MzNSwe +2c+rjugILFIaMQjEzUp6r37JRtfkjGAbGjaD5xhjt6suBTV3UsTaF0/SpA4yeUzu/iy +csl3a+thXGGHWCdjR8pj/ui0t10Z48dnBovgElbHgw0aq+diF6yTB773TH/eUbgVbFN X/EZckGy7O2YHbGytqtzVOARgBKXBApDNShsZLAoMeCckkVimuN3jbc4fqy39ZaJY1FL jxDiPMyurdJ+B+Xgb3lT0ctrzSFdiEz8y27d6D+RH9RNQZZJLVnDZs1uph3rNufdVp/w bBgw== X-Forwarded-Encrypted: i=1; AJvYcCVEnSBHSOgr5CZG0cfrzcJhTYMH8kmHURm1YdTUY/tLKZzPZeU4reNc6a6182cf74AlDNW0eDwJMwtGIzJtuDvhbA4eAfQDfTeBLI6V X-Gm-Message-State: AOJu0YyCVRIF3HykU30DWnWkOmcBKB60PRNwPgiuufJDRa/Z+qtOwk+i WoaeUDEbbudNVsL68puwvEsx315vly5JdfxU4MoJj8oTrVfK+STut2l+NCrlH+g= X-Received: by 2002:a17:906:5f9a:b0:a68:b73d:30d0 with SMTP id a640c23a62f3a-a6f60d13d2emr555195466b.6.1718525222766; Sun, 16 Jun 2024 01:07:02 -0700 (PDT) Received: from krzk-bin.. ([78.10.207.147]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f56db620csm383485566b.71.2024.06.16.01.07.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jun 2024 01:07:02 -0700 (PDT) From: Krzysztof Kozlowski To: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH] dt-bindings: mfd: Explain lack of child dependency in simple-mfd Date: Sun, 16 Jun 2024 10:06:59 +0200 Message-ID: <20240616080659.8777-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Common mistake of usage of 'simple-mfd' compatible is a dependency of children on resources acquired and managed by the parent, e.g. clocks. Extend the simple-mfd documentation to cover this case. Signed-off-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/mfd/mfd.txt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/mfd.txt b/Documentation/devicetree/bindings/mfd/mfd.txt index 336c0495c8a3..98b4340b65f3 100644 --- a/Documentation/devicetree/bindings/mfd/mfd.txt +++ b/Documentation/devicetree/bindings/mfd/mfd.txt @@ -18,12 +18,13 @@ A typical MFD can be: Optional properties: - compatible : "simple-mfd" - this signifies that the operating system should - consider all subnodes of the MFD device as separate devices akin to how - "simple-bus" indicates when to see subnodes as children for a simple - memory-mapped bus. For more complex devices, when the nexus driver has to - probe registers to figure out what child devices exist etc, this should not - be used. In the latter case the child devices will be determined by the - operating system. + consider all subnodes of the MFD device as separate and independent devices + akin to how "simple-bus" indicates when to see subnodes as children for a + simple memory-mapped bus. "Independent devices" means that children do not + need any resources to be provided by the parent device. + For more complex devices, when the nexus driver has to probe registers to + figure out what child devices exist etc, this should not be used. In the + latter case the child devices will be determined by the operating system. - ranges: Describes the address mapping relationship to the parent. Should set the child's base address to 0, the physical address within parent's address -- 2.43.0