From nobody Tue Dec 16 13:51:37 2025 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="LYhUVOqx" 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-Google-Smtp-Source: AGHT+IEWqzaL4rz2SQto4mPk3yipJY71jqGFV2WhkQttfBqISZrqBKrS2Uxip+JUE2MkM/v/hkOMEA== 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: quoted-printable Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Conor Dooley --- 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: =20 - compatible : "simple-mfd" - this signifies that the operating system sho= uld - 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 devi= ces + akin to how "simple-bus" indicates when to see subnodes as children for a + simple memory-mapped bus. "Independent devices" means that children do n= ot + 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. =20 - ranges: Describes the address mapping relationship to the parent. Should= set the child's base address to 0, the physical address within parent's addr= ess --=20 2.43.0