From patchwork Tue Nov 28 21:48:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 171008 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp4247683vqx; Tue, 28 Nov 2023 13:48:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IH9YemIPL4jjEPyQvJKbOgg0j8+2wh/v/rWZFFiJJ24y5Wwzm26O18Cw3OsUyDxGBP7emcn X-Received: by 2002:a17:90a:e7cf:b0:280:9074:eb36 with SMTP id kb15-20020a17090ae7cf00b002809074eb36mr17728451pjb.14.1701208120954; Tue, 28 Nov 2023 13:48:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701208120; cv=none; d=google.com; s=arc-20160816; b=OPYbCXp7kcOq3sfrIMcNgRLbwyg4jvzaE8y+J32URjyqPHuUPV4eoZY5b+Uhk1JkHJ iE7Xt1Wz4dJ5XE6PToNvkjNFrsTf7Rz0bheqSH4GIhnG920d3PXi1w8GUz+nNPI280ux ALR6QS0hLSCkK2wumMCBCeYupqi5HWNlfGXuhFvPT2XX01p+XZ0+LgDu+/ZpDvU2U9lA c0NxIUeefiX6J6sMTQ7RBZXA2zECjXi3ldaTxtfSE5kgHaBcKhSVPYVXT+DA1ChVW8yB vDyaIbApHwCaQKvmZ8Hqe9/xXckf0//2dmnTy0aaVwCeicZClOUj1o9TnOupEqbQljsV 2Y8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=t7ww6mzqGGsPSUlmzuVBNdpMvbBkDIB8lVn3IEY42Yw=; fh=wTfmjxHdGMCUD/GBFcWiH6cKqAGyXRbWlIcLE1EGWD4=; b=xUncnfdigawlv7CbSDMsyWaa2lP+b9XFndEsJi/cKfUbrbA89F5uL9+9Pk004vwLQO D1dTm/tQxIyP7KKv5jpuxP0rsY7ZGS+xji8IM3egxKXAvzVTao01BXD/xqy9CNaFxXJx 2adUTSfiSpX2xVMomVTTba/kjc5TRZ1JxRbYQH7sXxsZqEEyLWKYUYeWCm7FnFjlnPG5 fKgCqYOnHi22DN7rrYNIwaUGG2RvnHXpO2hpqcOf2QdZIbrw1uWKzGMTPSz7CRkH/AT5 DX/z1HCt5wdrH/uz575A10MGcd1BPE4CDjnrsfjLYMXWyLTtSC07Z/tZnkAJJiKfUFHR qBXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id e18-20020a17090301d200b001cfb971ee05si8237585plh.78.2023.11.28.13.48.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 13:48:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id C10628047D5A; Tue, 28 Nov 2023 13:48:38 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346611AbjK1VsX (ORCPT + 99 others); Tue, 28 Nov 2023 16:48:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234863AbjK1VsP (ORCPT ); Tue, 28 Nov 2023 16:48:15 -0500 Received: from mail-ot1-f53.google.com (mail-ot1-f53.google.com [209.85.210.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6E7510EB; Tue, 28 Nov 2023 13:48:21 -0800 (PST) Received: by mail-ot1-f53.google.com with SMTP id 46e09a7af769-6d7fa93afe9so3521392a34.2; Tue, 28 Nov 2023 13:48:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701208101; x=1701812901; 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=t7ww6mzqGGsPSUlmzuVBNdpMvbBkDIB8lVn3IEY42Yw=; b=OUSOzlMkutmpO/8LaqU0b2QWTG0+mxb6y24078ZbqgagW0UPA7YESsUkkZ/cPgqjbq oEnjZUK2wNR3Gnb87gtV2C5KQbtoV+CTF59u28WtZbgcDENDW+cjh0PG5qJoVEcD7gy0 C32R0sCHWh/aS1h9m/wE2HpUNI+eZEsrSfDTr1yNzbwFy8A0fKP2IsTGPCR2b2z4ktVy chOfLxxfveaOImGxilUoX75LgJwwBMRQtk+SYO9m/L74TBbgGF8FJPxx6Z9R7eoJx/jy zOPtWV530Ycoi8flaG3QrZd0xKGTREbKFNOgCpjbF1F1kNLf6a9K4n7CXgL/XBNDHV+i JtBA== X-Gm-Message-State: AOJu0YyqPZM4L7YFzf4q+4oZVRBoEzqy2r0XBCkPL5OXf9yCTGUZb1s9 3r5G3OtfxSARG2YNBeZm/A== X-Received: by 2002:a05:6830:4390:b0:6d8:1889:72af with SMTP id s16-20020a056830439000b006d8188972afmr11498728otv.2.1701208100908; Tue, 28 Nov 2023 13:48:20 -0800 (PST) Received: from herring.priv (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id be5-20020a056830350500b006d6496747b6sm1789545otb.80.2023.11.28.13.48.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 13:48:20 -0800 (PST) Received: (nullmailer pid 3975986 invoked by uid 1000); Tue, 28 Nov 2023 21:48:18 -0000 From: Rob Herring To: Dmitry Torokhov , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Chen Zhong Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH] dt-bindings: input: mediatek,pmic-keys: Drop incomplete example Date: Tue, 28 Nov 2023 15:48:16 -0600 Message-ID: <20231128214816.3975893-1-robh@kernel.org> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 28 Nov 2023 13:48:38 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783846006870683239 X-GMAIL-MSGID: 1783846006870683239 The example for the Mediatek PMIC keys is incomplete as the binding is the full PMIC, not just the sub-functions. It is preferred for MFD examples to be complete in the top-level MFD device binding rather than piecemeal in each sub-function binding. This also fixes an undocumented (by schema) compatible warning for "mediatek,mt6397". Signed-off-by: Rob Herring Reviewed-by: Krzysztof Kozlowski --- .../bindings/input/mediatek,pmic-keys.yaml | 24 +------------------ 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/Documentation/devicetree/bindings/input/mediatek,pmic-keys.yaml b/Documentation/devicetree/bindings/input/mediatek,pmic-keys.yaml index e34c9e78d38d..70567d92c746 100644 --- a/Documentation/devicetree/bindings/input/mediatek,pmic-keys.yaml +++ b/Documentation/devicetree/bindings/input/mediatek,pmic-keys.yaml @@ -90,26 +90,4 @@ required: unevaluatedProperties: false -examples: - - | - #include - #include - - pmic { - compatible = "mediatek,mt6397"; - - keys { - compatible = "mediatek,mt6397-keys"; - mediatek,long-press-mode = <1>; - power-off-time-sec = <0>; - - key-power { - linux,keycodes = ; - wakeup-source; - }; - - key-home { - linux,keycodes = ; - }; - }; - }; +...