Received: by 2002:a89:b8d:0:b0:1ff:3fb7:5d92 with SMTP id br13csp11308lqb; Sun, 16 Jun 2024 06:19:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXf8M/qkeKbKPhjK9JtN+x6zdV+oXUSVEiw9Y87WXcZWiyaIZ/o5ifrhCgnlUJlgT+D8kKxKwWUFsuRsdh0nADTwC39XcVukal0jnKApQ== X-Google-Smtp-Source: AGHT+IGKz/Fp2uwdTkroo8Q9zPZ3YYlHCA5Fowz5ImQPe7+Vz69/qel6lMVGLwXNqEDkhP9OpVAv X-Received: by 2002:a05:620a:28cc:b0:795:eb86:af7f with SMTP id af79cd13be357-798d23fb7e0mr931097285a.1.1718543990406; Sun, 16 Jun 2024 06:19:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718543990; cv=pass; d=google.com; s=arc-20160816; b=QIr7YqqgOlVd+KbY0uxcSpabsQ3gTF3+Aw+Y1tEf98GlpJbgFd1OncWjwI07gwOuUL 1rZi4Lsx6Ea2vpLnDFC1AKM8GDM0VivoXkahGzXEzeFHhdZGb8WouK/S5V8TkrKI0Uvt I5bQtgY4Tej5oVcDeAFzmwLJt/hAHlEl4zAyqWtJpXFI9d3TY4aHVEcH1o8cHxYCLYTR 9TQVxSV9ZhE/gGZg0YWYf2mKwdhJnBLeCRVtaoQaIL9TbhIauVYG5N1vIdBfmaGvdt8K WWKeQ++uW6+zQK9xC/N+wG3bBy2V5pMbO3M0S1a8wslSq0BfsBw0vnjc1YjHPRfFsoIP HvKQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=Y9RC7qP2hOgwXMsoy3J2wjG1fwHEObGM33Zw9CpfKZU=; fh=eoXAfGtL0DOtP/ItyWe5IeUAjIKk4vhVqTvrtPBK5uI=; b=yTtuJstksXNdqd/1f3xQ4Y8NTT7wIfkld1Q5s8H6NjXKfaqrk9Uja4LaU+lSUTN5wE RR5vJY6vpHlzTXI1Mqae1Bf9QcAg52i+4r4Irn4wawAlpisQ15Zk5IUpvVexkTM4kCFa tz4ybk8WDL255fG8VB4ttPrvpPkiydfCb5FRiWb36+MhqPnK3OxhoSgkI6Z9PZkBgqxV EC5LndyLYSZBaqrxGqyYSQo/v1AFFkFNM2AUQt9KcCOqeHZR+kra53RrZB6SE0OPMF9/ AG5BuzXB/mHAVT2rS5ahqMdAe74xIHR1fiPGwrTtgxYzLUET7tOmmE6qwgfMAifBfZkj j03g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=s1TC7hss; 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-216296-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216296-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-798aac9dbb1si775597285a.10.2024.06.16.06.19.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jun 2024 06:19:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-216296-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=s1TC7hss; 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-216296-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216296-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id F1D631C21842 for ; Sun, 16 Jun 2024 13:19:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2809C188CD9; Sun, 16 Jun 2024 13:19:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="s1TC7hss" Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (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 4650D179641 for ; Sun, 16 Jun 2024 13:19:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718543979; cv=none; b=JglbK2BS/wmFP2dwJS4Lay//UJ+Te4263i+ZmsryOIq/vzlu0hbkPVa/kNKsgAtQhC3Nmol7yduI+RK2iBMAgknuvDYsCewgB2DKMVoMaVFHiQAMXmH0U0H3EtrXMd7k20Q4F4LC5uTZHzm8b71bLolfyyDlUBu5+t6ksg0FnMI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718543979; c=relaxed/simple; bh=KsuesC+AIOWnKwWhlFMQqxP1c7Aqz3KwBjkPKaoEn4s=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=B19Z6Dq9W55y1GGb4LLkZnUhAh9asrE/LXyBoJmccWkX2JtOUL26aTmjVk63i8+O0uzgJG5e5x6N0abUmY/GV/1ft8cvPYGU3902sXgMgM9OVN3sfrmt0SJOUnJ/ZHFlwvUlbhkgROOvHEgccyVNAfHQZdzmHPktt0PttRmO7OA= 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=s1TC7hss; arc=none smtp.client-ip=209.85.208.53 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-f53.google.com with SMTP id 4fb4d7f45d1cf-57c7681ccf3so4089629a12.2 for ; Sun, 16 Jun 2024 06:19:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718543974; x=1719148774; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=Y9RC7qP2hOgwXMsoy3J2wjG1fwHEObGM33Zw9CpfKZU=; b=s1TC7hss0hKZrvcAMyDEMub+eNRspgcAIOaNSi8425BgJfHwYBqoZ9l78TF75bWFt7 JyjUxbH1ypuEU1oKgk3AAFX3LUmZAWzUOUhy7nPs1IT0EhUfe17cebJxEG//LY37Evty oCkGTZLxwdo/kb98ihUyH3WtkWEIRC7zgYBKVYaBVSREbnc0Hv1VqEZi0Rvn9FqTziIZ 1ZkaL83rNReErwMTyuRaamI0qNoDFQ6ZeaWj0J9anXnRtE/gA6elK/BnV/WtcLStcaiW wFcwj1CnoQxyAxg7YwV0Keb117UnAbu+hqiwehpQBWSX5ErJMLQUgmbVsFYskf1lrAx2 PsiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718543974; x=1719148774; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Y9RC7qP2hOgwXMsoy3J2wjG1fwHEObGM33Zw9CpfKZU=; b=UMZLxn6SzrFeXuH4HTciUSqT4EeY9S3gsED7bbtgDjw9J7LY/6VyI2v7XtQdKEkoeo B9d0v6LaV/sf8L/eCaRYbBwM5nKL30IKSvavr20BOlybWcasFVKMvc+A4wPIX4dkdkX7 tJ8RkVa9P3ChrfIgVC6aZgVbeXnoyex+3zAX5ZyjzhuroIuT9FgOBNL3iYikNo+TeRYa MrG9PPavMx+yRwFSYO/ilerCxFfIlOj88wN2C0vAr/KhVOf/qffdcwvItZMSXyZ50n27 aqFNJDdPBjm2kGF+BMgBoFcPUq/uuByzsjBRoRKmZQuNXAmhjODoFBvkKZpwRUGKk0XB Qwpg== X-Forwarded-Encrypted: i=1; AJvYcCUrwmOQst4BylyYNtm2sL9xcOo44gb8GzoKN1t9yiWzU8AKpfb4lVdEHraNplxaZgq2zaHskm7gn8+dwIAEo+VhhbmBv8nOktrweQT1 X-Gm-Message-State: AOJu0YyP9LBS3eG6cV7PsUVX03s8HY6oyTy6L4kVcPw2IXARt98mawVc HVJnmib1Lc2fyKFa4NQEaTEjmI/RiXf/6lzxZyzleO4c1or3ulT8unJeI5q28Ms= X-Received: by 2002:a50:8714:0:b0:57c:ab84:1095 with SMTP id 4fb4d7f45d1cf-57cbd652420mr4227643a12.7.1718543974453; Sun, 16 Jun 2024 06:19:34 -0700 (PDT) Received: from [127.0.1.1] ([78.10.207.147]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57cb7438815sm5099603a12.80.2024.06.16.06.19.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jun 2024 06:19:33 -0700 (PDT) From: Krzysztof Kozlowski Subject: [PATCH v2 0/7] dt-bindings: mfd: syscon: Document more compatibles and require simpe-mfd description Date: Sun, 16 Jun 2024 15:19:20 +0200 Message-Id: <20240616-dt-bindings-mfd-syscon-split-v2-0-571b5850174a@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAFjmbmYC/33Nyw6CMBCF4Vchs3YMbUWCK9/DsKj0wiTYkk5DJ IR3t5K4dfmfxXc2YJvIMtyqDZJdiCmGEvJUwTDq4C2SKQ2ylpe6ES2ajE8KhoJnfDmDvPIQA/I 8UUbVWqm67tpIZaAQc7KO3gf/6EuPxDmm9XhbxHf9wd1/eBFYo9au2OVBKH2fKOgUzzF56Pd9/ wAhMnwyyQAAAA== To: Orson Zhai , Baolin Wang , Chunyan Zhang , Vadivel Murugan , Jacky Huang , Shan-Chun Hung , Khuong Dinh , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lars Povlsen , Steen Hegelund , Daniel Machon , UNGLinuxDriver@microchip.com, Nishanth Menon , Matthias Brugger , AngeloGioacchino Del Regno Cc: Jiaxun Yang , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3459; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=KsuesC+AIOWnKwWhlFMQqxP1c7Aqz3KwBjkPKaoEn4s=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmbuZZ4iKC72/2IrXQ++FeWFww/PEerhVXjYS9F gps/xdFZaaJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZm7mWQAKCRDBN2bmhouD 13DLD/9rH6dQNL9jR/EbdncCtbVy7XfBgF23WzTSQ+Zetujhw6InK0iBU9oEm1RSW3H741evTzS 1a/HpapRRfre/jtZ28lyZFE5wDJtLVowZIvWiV2jPC7wUUKnfnGG6xy4y+UO8W5ajNybtQ541QU yot4HM7h7n+P3OEtjlAu/pcnQTY04MxIgmVemOiNdK5wVaachnub0WN1lw7kq89xWlOE8fu3uGF tnpdejWgoKJJmv7sGMTWEAZQc8OHoTyKB7yx1oohIa7Cs6hJ8sbOkke3QMD5t3NWu73TKtdH5Nb 859EmTDIORS+lqwHissSo564KiYjXD9R8rP9RbHlnm8z6Ei9M9c9PjRGCumfhcwUeAnl4RMUmyG 2KVhL94LusXQxhLgF7VzRrTd0kWeET5MXGiMPNXOSGONX7hLTF325XYNnwXD422YRnFsz5jeZ3E sYlIHRRhBcSjhWfbP0Qp4HBS26bwIjW0poIo71YXoa1SNEwQoz11kT0lUmeECJlvrQaemHs6gcc QaTo6mmP7lI/Zt3UkwBNGkzXz9kdIlb71FNORzwYJgARNszOWJSOCq1bHLiwfjR4gYkqiOUUphs 9BR9xpFHp42gZ2DHz2Ura9j0DlxBEcJ5gszm3JLaES0vrHheDY/DuIzOhANOqbiCgpIg5vV4zYw 5vzsTOP0J6u1U5Q== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B Hi, Dependency ========== Rebased on Lee's MFD tree, because dependency is there already: https://lore.kernel.org/all/171828959006.2643902.8308227314531523435.b4-ty@kernel.org/ Merging ======= Preferrably everything via MFD tree (file/context dependencies). Changes in v2: =================== - Add acks - lgm-syscon: add ranges to binding and example - syscon.yaml: add big select with all compatibles for older dtschema - Link to v1: https://lore.kernel.org/r/20240519-dt-bindings-mfd-syscon-split-v1-0-aaf996e2313a@linaro.org Description/problem =================== Simple syscon nodes can be documented in common syscon.yaml, however devices with simple-mfd compatible, thus some children, should have their own schema listing these children. Such listing makes the binding specific, allows better validation (so the incorrect child would not appear in the simple-mfd node) and actually enforces repeated rule for simple-mfd devices: "simple-mfd" is only for simple devices, where the children do not depend on the parent. Currently the syscon+simple-mfd binding is quite broad and allows any child or property, thus above rule cannot be enforced. Solution ======== 1. Split the syscon.yaml binding into common syscon properties, used potentially by many bindings, and only simple syscon devices (NO simple-mfd!). 2. Move some known simple-mfd bindings from syscon.yaml to dedicated files. This patchset might introduce new dtbs_check warnings for devices having simple-mfd and being part of syscon.yaml previously. I fixed some of them, but probably not all. Best regards, Krzysztof To: Lee Jones To: Rob Herring To: Krzysztof Kozlowski To: Conor Dooley To: Lars Povlsen To: Steen Hegelund To: Daniel Machon To: UNGLinuxDriver@microchip.com To: Nishanth Menon To: Matthias Brugger To: AngeloGioacchino Del Regno Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-mediatek@lists.infradead.org --- Krzysztof Kozlowski (7): dt-bindings: mfd: syscon: Drop hwlocks dt-bindings: soc: sprd: sc9863a-glbregs: Document SC9863A syscon dt-bindings: soc: intel: lgm-syscon: Move to dedicated schema dt-bindings: soc: microchip: sparx5-cpu-syscon: Move to dedicated schema dt-bindings: soc: ti: am654-serdes-ctrl: Move to dedicated schema dt-bindings: mfd: syscon: Split and enforce documenting MFD children dt-bindings: mfd: syscon: Add APM poweroff mailbox .../devicetree/bindings/mfd/syscon-common.yaml | 72 +++++ Documentation/devicetree/bindings/mfd/syscon.yaml | 306 ++++++++++++--------- .../bindings/soc/intel/intel,lgm-syscon.yaml | 56 ++++ .../soc/microchip/microchip,sparx5-cpu-syscon.yaml | 49 ++++ .../bindings/soc/sprd/sprd,sc9863a-glbregs.yaml | 55 ++++ .../bindings/soc/ti/ti,am654-serdes-ctrl.yaml | 42 +++ 6 files changed, 457 insertions(+), 123 deletions(-) --- base-commit: fe6ba540b2ce777eb4f59991c3ef20ad8a319a1a change-id: 20240517-dt-bindings-mfd-syscon-split-37e23996523d Best regards, -- Krzysztof Kozlowski