From patchwork Sat Jan 20 13:55:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Lunn X-Patchwork-Id: 189739 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp1625335dyb; Sat, 20 Jan 2024 05:56:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IFuueCCnPVmVfPPsNqL3ZCx36Ff5ILqRhhL+GE40QUx8biSpe5ZxEW6Tj32AUcCoYpjq09D X-Received: by 2002:ae9:e507:0:b0:783:65fc:2de1 with SMTP id w7-20020ae9e507000000b0078365fc2de1mr2032943qkf.50.1705758974468; Sat, 20 Jan 2024 05:56:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705758974; cv=pass; d=google.com; s=arc-20160816; b=ahP3iL9jNNBGPDULcYm5M4Jq5WESBI64isJ7yWDmLatjTkaqNhAbBLI/EnV7L5iU/F xfbHVpNSdHVJAkjINJIWFzeP39T45DTmvd/nZsm1RcrYJ7rhviv9cCfPZGtjrurFAtSq ZmUq6vu5Qv+SWOV/V9xqr4Yj3+z+FToHQDH/ghnUPSFg3FA7VskcWPa5x49dFloSgiGT ixyF0FmmzpZY6gUEytDtxi8D48dy6FDrX4akcQwOxQZAz5C1zGv512OaLdBEl0flhezW HG/Ygno3bl67IakwWXAlzG/eWeovswYZ7VawjLapUw+vZMA56wc+aE8rxpOb1cmQf3NC +1/g== 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:references:in-reply-to:message-id :date:subject:cc:to:from:feedback-id:dkim-signature:dkim-signature; bh=82nmu2DyJPwmac1Y1zUdWc9LMCywxycb33mNUkKF/Pk=; fh=Dcr2EZcgCdCEJxu+15I7l56ArkqMAO3ak2ijy+D8nlM=; b=DttdDGtUlruVSSfzfmgB4vrE++MlA2wFi3moMzYNlOoeGRT6aAHtIU5Afcw0Sd9e4+ b8VK8aSeJ5da/vanK/ebec/CUi0mbe+VGt2N08iXEjbtj0Z+EECx2+jAhSLo7QJ6iuX9 PlH0ttmhCgXrQFy+d5LybmGOMQxg/n4NNqKjbwbMZ0ol/Z2ls4NFIiGWDweS7LI3HVa0 iroAx4n08yyj59FZZBzEnC0bUueakuWZbeTHnPxSZ8uIFsOQhDX5wrmaTqy/Ztn7UNZR PmRy4GLC1LgukMToH7TjEOx0M4ngnPieW8bd+YVKihE07eU2wh1BuUbb86SX05Ayo7Gr zlGw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@feathertop.org header.s=fm2 header.b=Y1TNoElf; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="gC7Mc/MX"; arc=pass (i=1 spf=pass spfdomain=feathertop.org dkim=pass dkdomain=feathertop.org dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-31808-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31808-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id p13-20020a05620a112d00b007835a915c1esi1486428qkk.309.2024.01.20.05.56.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jan 2024 05:56:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31808-ouuuleilei=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=@feathertop.org header.s=fm2 header.b=Y1TNoElf; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="gC7Mc/MX"; arc=pass (i=1 spf=pass spfdomain=feathertop.org dkim=pass dkdomain=feathertop.org dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-31808-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31808-ouuuleilei=gmail.com@vger.kernel.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 384A01C2190D for ; Sat, 20 Jan 2024 13:56:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2182CFC18; Sat, 20 Jan 2024 13:56:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=feathertop.org header.i=@feathertop.org header.b="Y1TNoElf"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="gC7Mc/MX" Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7DFA7DF78; Sat, 20 Jan 2024 13:55:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=66.111.4.26 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705758960; cv=none; b=dHt7vloqysinIaQrfYSDfLtlxbaRC5bwWdE5cW/bGxz6A83QwzHivL2ow3aHTrvj2lDc6ozdKcpLf8J7tiuWta+/VBr+yDpToD5gjM5o+G5m+hlXP497Vk/SBmkqyk8TYvo5kbwUtsUAMJRBvWPWC2BiDfDAvRv9kR6ctO22UJY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705758960; c=relaxed/simple; bh=XF1rzcXaPzvVRbMj4jDvYxIkaTS+viUNUKoifgHJfKU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=bDT1OFt7+W5R9+KgaNG8qrfLsj+sjAPRq3HhPN+1JsPlzNUk1A8e68duMs/m125vtGq2/WsMItZ7lFSjrQXRCi5PGhxqhFtYYwPqZdix2ayCXQ5quG1JLgIDGQJ1a8M8g+GQjQNJEIC6Fqh4DQdQ0BKNfMHtRtLyHYq92cnod1g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=feathertop.org; spf=pass smtp.mailfrom=feathertop.org; dkim=pass (2048-bit key) header.d=feathertop.org header.i=@feathertop.org header.b=Y1TNoElf; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=gC7Mc/MX; arc=none smtp.client-ip=66.111.4.26 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=feathertop.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=feathertop.org Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.nyi.internal (Postfix) with ESMTP id 6C7F65C0111; Sat, 20 Jan 2024 08:55:54 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Sat, 20 Jan 2024 08:55:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=feathertop.org; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm2; t=1705758954; x= 1705845354; bh=82nmu2DyJPwmac1Y1zUdWc9LMCywxycb33mNUkKF/Pk=; b=Y 1TNoElf7L0Tiz7cvPKzRTJ/Z65vkfcg728xZm32T9V+qHzy4y/ITJYn14uNV1l8n 5/8QzBEfbVvvHJpIo+heI3z/LL7euL1ra5wRh9dHiOCm1vgpHtk9PVimuu3mkqEf fpbl1Y+BApk8OQpWbaq6jJengkutKE999WyLmDc9n3NgstoxD7p1SzeIHwQ+OFjR bTpRstCZ5n23Q27IPS17000yhVYfzcPyQJVb7cN3NeVQ0Fxyo8oHp4ewI04kU0/+ LJCA+PKbehOYSunreYefwciBTv+j3z6wa/YtOaUFZXvEBohN83hFxbPHNvKK0LCG RkBG7OKmiMk2/XkYPd4Dw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1705758954; x= 1705845354; bh=82nmu2DyJPwmac1Y1zUdWc9LMCywxycb33mNUkKF/Pk=; b=g C7Mc/MXYwOt4TvOfksJ5XlcmEfxsVzsQUFg4DHMJGu0a/IvWr86c2ucFjjRjobsn OemaIBL4/3dZp4/X7SnJo/kCaA/fCPb3aDC8us92KF+u9R1piPXNqfEQXknnMPnW 8UdCBTZh706eNyxLs13bptIPjECnBk5KWkuXlA0BWmdMM/JwD4JZ5hQkaGDmHI0G NLpRjGVpApWsuzRbpFwGa+dGYt9vyLK8uzVyDn55l/tGMu5WnLr3n2gdE3V8pIOA tBdsmaJxIo1TuIxzBAJLsFr5OnVVMFwJcE4tsweNtRLS8F1yYmvuMqv6FtobMDl8 3ZOosW0dk0zmydYQItKtg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdekvddgheelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhimhcu nfhunhhnuceothhimhesfhgvrghthhgvrhhtohhprdhorhhgqeenucggtffrrghtthgvrh hnpeefffeuhfetgeeikeejvefgtdefteehgfdvhfetfeeuffeuhffhfeekgfekgeehieen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehtihhmse hfvggrthhhvghrthhophdrohhrgh X-ME-Proxy: Feedback-ID: i1f8241ce:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 20 Jan 2024 08:55:47 -0500 (EST) Received: by feathertop.org (sSMTP sendmail emulation); Sun, 21 Jan 2024 00:55:43 +1100 From: Tim Lunn To: linux-rockchip@lists.infradead.org, conor.dooley@microchip.com, robh+dt@kernel.org, krzysztof.kozlowski@linaro.org, devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Tim Lunn , Chris Morgan , Chris Zhong , Conor Dooley , Heiko Stuebner , Krzysztof Kozlowski , Lee Jones , Zhang Qing , linux-kernel@vger.kernel.org Subject: [PATCH v3 1/3] dt-bindings: rockchip: rk809 fix existing example Date: Sun, 21 Jan 2024 00:55:27 +1100 Message-Id: <20240120135529.899403-2-tim@feathertop.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240120135529.899403-1-tim@feathertop.org> References: <20240120135529.899403-1-tim@feathertop.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788617922298897218 X-GMAIL-MSGID: 1788617922298897218 The example for rk809 picked up the wrong compatible string when the binding was converted to yaml. As a result it also specified too many vccX-supply properties. Fix typo in the example specifying wrong compatible string for rk809. Remove additional vccX-supply properties that dont exist on rk809 so that binding checks pass again. Signed-off-by: Tim Lunn Acked-by: Conor Dooley Fixes: 6c38ca03406e ("dt-bindings: mfd: rk808: Convert bindings to yaml") --- Changes in v3: - Drop label from rk809 node Changes in v2: - Fix vcc-supply warning detected by dt_binding bot Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml b/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml index 839c0521f1e5..eb057607dc54 100644 --- a/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml +++ b/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml @@ -126,8 +126,8 @@ examples: #address-cells = <1>; #size-cells = <0>; - rk808: pmic@1b { - compatible = "rockchip,rk808"; + pmic@1b { + compatible = "rockchip,rk809"; reg = <0x1b>; #clock-cells = <1>; clock-output-names = "xin32k", "rk808-clkout2"; @@ -146,9 +146,6 @@ examples: vcc7-supply = <&vcc_sysin>; vcc8-supply = <&vcc3v3_sys>; vcc9-supply = <&vcc_sysin>; - vcc10-supply = <&vcc_sysin>; - vcc11-supply = <&vcc_sysin>; - vcc12-supply = <&vcc3v3_sys>; regulators { vdd_center: DCDC_REG1 { From patchwork Sat Jan 20 13:55:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Lunn X-Patchwork-Id: 189740 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp1625465dyb; Sat, 20 Jan 2024 05:56:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IEQyTQXElDUKKrWCSA+r+w6CiO6QBTF0d9DZWnnLxUDCauBwtl2cGVMutb3J6WL252IB9xx X-Received: by 2002:a05:6e02:4a7:b0:361:a975:58a9 with SMTP id e7-20020a056e0204a700b00361a97558a9mr2033418ils.35.1705758996166; Sat, 20 Jan 2024 05:56:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705758996; cv=pass; d=google.com; s=arc-20160816; b=O2+nANVX80TUYrGFi8DjixpT4WJEcqWt3zGavj+3iPkNDr9OSZMaqzPD2lRz0r3hv3 KjsmSxksTPyenfavFJ+6vTn7Oa3e04PUbpTmUFbRd5HTnuAcVYtRXVEGsq8YLaLmMDB2 WIOQptMu39NoOfEo8EZYoBGSUY8FXpko1POQ3aFuRsvdFsoLr3/aGZf8QGO+YZMg6xKH kSZK23t5J50Z/4GykzhZRmH664+pAQHzmKVGGGNDdptqNH+fx1sn+2k78YXD/ELAWg7U 4YlAO5bOFhT2wfsFxYP30K+lgV6dZt0+Poise2tALLRV85UXs2uy4iHR7Ld2tMLNQJaz Pqmw== 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:references:in-reply-to:message-id :date:subject:cc:to:from:feedback-id:dkim-signature:dkim-signature; bh=H3ZIhWvDzeIyb6EIczhf//Qpvcp1gbT/BqWghJiTSGw=; fh=MqW9iCxmbVp2B4KR7c0hR79uyypX4xgnAkUyhBCQklg=; b=yCEOIQOHfshl0B+WGbGSc5LIm141oVTeJCjZU79AvQQW/Ud1uVIQ6yH4LUsMCx4kFV EIZXYYm9LvKSMiy6zDQ+dKb+hjy2StUFDsBRCW7LgrpngaHjsi+N6Re7sIwKRpB7qlIe mX/FYkTQ5vDSDWzQEdxzm7+0H604HBycLQt2OInjE2+vnMmxTQIp1IEVeLxudnRVfvQX S0WQGbdU6L/tYylfvoVMX6FbBhgaQKkBSKlqW4To/0nt5eUaE0DNF0S56hxdQ0T+jf9N KM1vM7vZ/9C2KM/uSfzGUMnjkvW6tE4/ACBmzoPvQrtuT9QPNJK0NBXJ6u7Kqn0tUc1L osKg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@feathertop.org header.s=fm2 header.b=l4w2gcnQ; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=r2yLakiM; arc=pass (i=1 spf=pass spfdomain=feathertop.org dkim=pass dkdomain=feathertop.org dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-31809-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31809-ouuuleilei=gmail.com@vger.kernel.org" Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l184-20020a6388c1000000b005ce19c6867bsi5237849pgd.507.2024.01.20.05.56.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jan 2024 05:56:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31809-ouuuleilei=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=@feathertop.org header.s=fm2 header.b=l4w2gcnQ; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=r2yLakiM; arc=pass (i=1 spf=pass spfdomain=feathertop.org dkim=pass dkdomain=feathertop.org dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-31809-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31809-ouuuleilei=gmail.com@vger.kernel.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 764CC283880 for ; Sat, 20 Jan 2024 13:56:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9334810785; Sat, 20 Jan 2024 13:56:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=feathertop.org header.i=@feathertop.org header.b="l4w2gcnQ"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="r2yLakiM" Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3DCADF9FE; Sat, 20 Jan 2024 13:56:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=66.111.4.26 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705758967; cv=none; b=M1mi/bCGHhQHNIXbGGC6duCC/aCcjTbOI6+Pb80EMfjmmam//+GAqxLLPURNhGi/R9m3bPgZm5sjALpj9Crvkr6WmjcHb3GZN0SYJrNwxvFR/rT4UhD8jush0GR6pcDags3wjEdPTRTgqTv98OyvOV7fD1dLUwZTjdFwGmiZagk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705758967; c=relaxed/simple; bh=U3i7yUwvOhKXOTUEFBocfxLZ6fxKbUHQANrGjOz6HS0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=O7SMaYy/E303LNMB2ZpmqOWhdNi6AwrXbPxeLGzk56QV4Gtn+LtiXU1r8lalfu+FKCKB7vZ24pGcccnoiOkRZU32JK10LYod/TvHoGXOTWemvO2usp837v5lohcLXAzoaf0p68lj+DGVpMJh1pysOTo94qej/3NkXheZYb7mpog= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=feathertop.org; spf=pass smtp.mailfrom=feathertop.org; dkim=pass (2048-bit key) header.d=feathertop.org header.i=@feathertop.org header.b=l4w2gcnQ; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=r2yLakiM; arc=none smtp.client-ip=66.111.4.26 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=feathertop.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=feathertop.org Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 00B7E5C0109; Sat, 20 Jan 2024 08:56:05 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sat, 20 Jan 2024 08:56:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=feathertop.org; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm2; t=1705758964; x= 1705845364; bh=H3ZIhWvDzeIyb6EIczhf//Qpvcp1gbT/BqWghJiTSGw=; b=l 4w2gcnQq2kdMz316sGwX2QVWhr127q+uhsCfYs2W7sIQtYJtGDNACi3vxNsMhtvp fOK3quuX0+JRhWAkWuf5i5RshiZlxwKo21F2nXVMYBbnRulIXNe+1x+kM+jk5y6P +cxjUA5X9NGhc6j14OAclMkYx6PV631ItqGkgjWMzHgJoxL/YtcyA3NNmAAk/dUq hXchz+6iyDIK+GyZtHL29OnH1M2nXGzjpMpGkdJe8pvVGs0F5SgShqxZqmJI2dWm 5HhvFMFQcijNsiXRAaojm0m7jPuzJwP0KV28SgqH4Xk6gLrj6cLsJQ3T3KgcVZHY qHTwRTbYYVSZa4Df0thYA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1705758964; x= 1705845364; bh=H3ZIhWvDzeIyb6EIczhf//Qpvcp1gbT/BqWghJiTSGw=; b=r 2yLakiMPGF5GD9lzyOksYt0B5QuZk5chHFuaSwd6upDhKn2NAIVLJnReX71DIfvS ZZkszwe1nkyrKTjwDfFDX2593jJA3k18HCYw5Oo1vwLIY6IgknLEJpCJE//zGaJJ qEUTHI3aZTnkja34jtaU7qxrmG864wSgg7IZbfDU79TLu3PETcL5NcazcufW3xdP QnyoKXml/rJhfYSC/dka9YPW9Dn358DesFz8KAxh5orux7JI800CUGSw3Cife6Ni TARtGA1L8tbcnypZ+/cPH3YzIpjCly2/SWVJ6UGrME0gOEFLROYmdLRRK+SMZRCc aZckcv2XSh3CbnTL9Iu0A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdekvddgheekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhimhcu nfhunhhnuceothhimhesfhgvrghthhgvrhhtohhprdhorhhgqeenucggtffrrghtthgvrh hnpeefffeuhfetgeeikeejvefgtdefteehgfdvhfetfeeuffeuhffhfeekgfekgeehieen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehtihhmse hfvggrthhhvghrthhophdrohhrgh X-ME-Proxy: Feedback-ID: i1f8241ce:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 20 Jan 2024 08:55:58 -0500 (EST) Received: by feathertop.org (sSMTP sendmail emulation); Sun, 21 Jan 2024 00:55:55 +1100 From: Tim Lunn To: linux-rockchip@lists.infradead.org, conor.dooley@microchip.com, robh+dt@kernel.org, krzysztof.kozlowski@linaro.org, devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Tim Lunn , Chris Zhong , Conor Dooley , Heiko Stuebner , Krzysztof Kozlowski , Lee Jones , Zhang Qing , linux-kernel@vger.kernel.org Subject: [PATCH v3 2/3] dt-bindings: rockchip: rk809: Document audio codec properties Date: Sun, 21 Jan 2024 00:55:28 +1100 Message-Id: <20240120135529.899403-3-tim@feathertop.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240120135529.899403-1-tim@feathertop.org> References: <20240120135529.899403-1-tim@feathertop.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788617945143184182 X-GMAIL-MSGID: 1788617945143184182 Rockchip RK809 shares the same audio codec block as the rk817 mfd, and is compatible with the existing rk817_codec driver. This patch introduces to the binding the standard property #sound-dai-cells and also an optional codec child node to hold codec specific properties. Currently there is only one property in this node however the downstream driver shows a number of other properties that are supported by the codec hardware, that could be implemented in the future. This maintains the existing driver ABI and keeps consistency with the rk817 bindings. Signed-off-by: Tim Lunn --- Changes in v3: - split out clocks into separate patch and group example properties where properties are introduced. - remove descriptions from #sound-dai-cells node .../bindings/mfd/rockchip,rk809.yaml | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml b/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml index eb057607dc54..be0616201f52 100644 --- a/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml +++ b/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml @@ -12,7 +12,7 @@ maintainers: description: | Rockchip RK809 series PMIC. This device consists of an i2c controlled MFD - that includes regulators, an RTC, and power button. + that includes regulators, an RTC, a power button, and an audio codec. properties: compatible: @@ -93,6 +93,22 @@ properties: unevaluatedProperties: false unevaluatedProperties: false + '#sound-dai-cells': + const: 0 + + codec: + description: | + The child node for the codec to hold additional properties. If no + additional properties are required for the codec, this node can be + omitted. + type: object + additionalProperties: false + properties: + rockchip,mic-in-differential: + type: boolean + description: + Describes if the microphone uses differential mode. + allOf: - if: properties: @@ -137,6 +153,7 @@ examples: pinctrl-0 = <&pmic_int_l_pin>; rockchip,system-power-controller; wakeup-source; + #sound-dai-cells = <0>; vcc1-supply = <&vcc_sysin>; vcc2-supply = <&vcc_sysin>; @@ -281,5 +298,9 @@ examples: }; }; }; + + rk817_codec: codec { + rockchip,mic-in-differential; + }; }; }; From patchwork Sat Jan 20 13:55:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Lunn X-Patchwork-Id: 189741 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp1625486dyb; Sat, 20 Jan 2024 05:56:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IGMCeSi5JAUPhEM5QSeYOUgpS2Zk+YFRZlmDx+i05AM7M2pguOHvUnk0pn6WeC+IBkwmLR4 X-Received: by 2002:a05:620a:469e:b0:783:92e9:613c with SMTP id bq30-20020a05620a469e00b0078392e9613cmr1290995qkb.67.1705759001475; Sat, 20 Jan 2024 05:56:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705759001; cv=pass; d=google.com; s=arc-20160816; b=fX1PwQ5XklBQMh/RWvqyYmrdUfgkm4vAGgleOIphnvPOd6XOabtW5AYPYzPos8eKfC miYslggc/QNxOrBNmSK+Dtn+4nXd8qsNHeaYh6JMxzrVXawVqLFJ6rHJmi8nRWYhHMUe IY63UZP+hmjKbMrnlghBJtVLsSU4HW28JZrjCcum6q6PeXTtnGGhiDJkiE5SJurYJoUt yAJVJJWcrQo9TLgvMWp5MnPmr6INywU0SZYlINZS9JmGAlncByvwn3hs0jYWGVhmw/iJ 4q1pc2SNfGZQaE+VwFp96F5NKfT8buhSv/daSx2j52Q2S4tF7oaMZI1uj3BulHLyLcg5 cOEA== 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:references:in-reply-to:message-id :date:subject:cc:to:from:feedback-id:dkim-signature:dkim-signature; bh=tyVLqYgWirTx9KCAu+OuFKeKwsREXEGBOgBztayJRGQ=; fh=MqW9iCxmbVp2B4KR7c0hR79uyypX4xgnAkUyhBCQklg=; b=yeoXANa3NY6mqJNqcdAjiEmhjEEpCHTVORi8/jnpGC6pWiF6kx/bQiyeHRJBA8XqZ0 XZ4nPxTHJp+mKHxv3f3l2Y460vCXPPa5oqYT9dAizqFnUbiS5WXzN7VMcfdn92fq57N3 /bge3Sz1uIzeBnj/ym0axETZxbRBYEr41ssejZmF7zxH6R0u1bi8pLNH066FqjdpCW4x uZskS0R/uyRyZwpl5MNCtRGPdUgmPOVh0XqvUeNBeQd23rGbxLYnl5gLSMhGqW9faqdJ fQ4MV8bDz3NbijSsLSGiB36OIk4LRMgFT2JMnlj/BhKvtdJ20qafTtWPEdO8B4SNDa5p eCFA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@feathertop.org header.s=fm2 header.b=ADznj0gl; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=JhZmH4kZ; arc=pass (i=1 spf=pass spfdomain=feathertop.org dkim=pass dkdomain=feathertop.org dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-31810-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31810-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id pc20-20020a05620a841400b00783155238bbsi1432027qkn.67.2024.01.20.05.56.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jan 2024 05:56:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31810-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@feathertop.org header.s=fm2 header.b=ADznj0gl; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=JhZmH4kZ; arc=pass (i=1 spf=pass spfdomain=feathertop.org dkim=pass dkdomain=feathertop.org dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-31810-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31810-ouuuleilei=gmail.com@vger.kernel.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 3954B1C20B35 for ; Sat, 20 Jan 2024 13:56:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B13E11727; Sat, 20 Jan 2024 13:56:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=feathertop.org header.i=@feathertop.org header.b="ADznj0gl"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="JhZmH4kZ" Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D855C1094E; Sat, 20 Jan 2024 13:56:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=66.111.4.26 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705758977; cv=none; b=aqdwXg8U7fL3QuoReDM63fR7klo3J97P3YA/aiFR1lvI0GCNLRqqUdFeww1ehnyWE/6p2Cs3dT1AQ/GkMgBd5dSgzPTmnVPRoFuCw4NoZPvtm9KmdIWcGXH9ckjwA30zkAN+NE0uTyaN4r0OCaojrCPM6Poux/OqMYzHaXoGA0U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705758977; c=relaxed/simple; bh=G1BajSfR2TDS+zWxcpFImQCmFzmvtbzvPyYBnFF1ITU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=tyIYoAoW5i5mtb6iEIJ5XQBC0SzLXXeOiNorN8451f8tkvzcMBLd4BZhICkZSifJJUSsV7PTAIKJfmtH1ZGqWnLKffu1Ys1GHbR83qFwF+0APOUQKcc4LLipi5zaXS1TrPAbpuW/Hkgb9YQmq19dV/Tyq48LOL1xcLNFFEjkX0s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=feathertop.org; spf=pass smtp.mailfrom=feathertop.org; dkim=pass (2048-bit key) header.d=feathertop.org header.i=@feathertop.org header.b=ADznj0gl; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=JhZmH4kZ; arc=none smtp.client-ip=66.111.4.26 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=feathertop.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=feathertop.org Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id D613C5C0110; Sat, 20 Jan 2024 08:56:14 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sat, 20 Jan 2024 08:56:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=feathertop.org; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm2; t=1705758974; x= 1705845374; bh=tyVLqYgWirTx9KCAu+OuFKeKwsREXEGBOgBztayJRGQ=; b=A Dznj0glwb950CRBoGhKJlZKLZcHFthp5aBCt/90elos34umI7QBTIOc8fYAB1tFp kDf5D+Rg0ibcciGFW6eCmB+PEnpfOPb/vfD0AtwK0u4jJn+LYN6tEg+i2nzi4Kpg m5FSFtAvmXBMGz6svZjx11B3P0aMiPjlnrhtw72Gv63kpx9Uv1nmsJ35/JxyhtH7 JryWrMlMyHnL74lytv0KG0dHsUF0yvxz/gDpLUDEd21zPl0sTvgdloZxPYF4EkWb ltthWWQuUJVdsg9ewI12z5kJUJOy0xnb2NPedumwaxj7hYWfmnHFxQAmVao+CKPU sqb8jsbnFWFUlYnN1QYog== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1705758974; x= 1705845374; bh=tyVLqYgWirTx9KCAu+OuFKeKwsREXEGBOgBztayJRGQ=; b=J hZmH4kZXC5IJJKIlmJLpfWOWlgNr1DHHYKGdk8a3QPsYCSSP+T3FBwAR8jsanb6G EOiJgjt8yEsjdl4By1vD7rEgncdLmDmbf3cCTFCV10V+PKmNCf3YgwnUXvWhGNcA pft7rNx+FHjG8tyqSxr3hjOH4yBtS1j2xuA+uW07Mqc4stD0Rb68gmKS7Mi3SKBo g2WdvO124ttKzGuSINLllPLj8FqTJvboyhOmMPIKVpgGH/LMdtqHP5OV8ZxUVMYL IDY98FI6rSFgMbvocSAAeXdcmEbbgqMF2hDVDHt8zuSdV5zoblDKEH1hccTxd1/u vA7dx2YprwlBCqEG7ZEUg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdekvddgheekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhimhcu nfhunhhnuceothhimhesfhgvrghthhgvrhhtohhprdhorhhgqeenucggtffrrghtthgvrh hnpeefffeuhfetgeeikeejvefgtdefteehgfdvhfetfeeuffeuhffhfeekgfekgeehieen ucevlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepmhgrihhlfhhrohhmpehtihhmse hfvggrthhhvghrthhophdrohhrgh X-ME-Proxy: Feedback-ID: i1f8241ce:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 20 Jan 2024 08:56:08 -0500 (EST) Received: by feathertop.org (sSMTP sendmail emulation); Sun, 21 Jan 2024 00:56:05 +1100 From: Tim Lunn To: linux-rockchip@lists.infradead.org, conor.dooley@microchip.com, robh+dt@kernel.org, krzysztof.kozlowski@linaro.org, devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Tim Lunn , Chris Zhong , Conor Dooley , Heiko Stuebner , Krzysztof Kozlowski , Lee Jones , Zhang Qing , linux-kernel@vger.kernel.org Subject: [PATCH v3 3/3] dt-bindings: rockchip: rk809: Document audio codec clock Date: Sun, 21 Jan 2024 00:55:29 +1100 Message-Id: <20240120135529.899403-4-tim@feathertop.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240120135529.899403-1-tim@feathertop.org> References: <20240120135529.899403-1-tim@feathertop.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788617950648035439 X-GMAIL-MSGID: 1788617950648035439 Rockchip RK809 shares the same audio codec block as the rk817 mfd, and is compatible with the existing rk817_codec driver. This patch introduces the clock required for the audio codec. This clock provides the I2S master clock for the audio data. The codec driver finds the clock by the name "mclk" and will fail to register if this is missing. Clock-names is kept here to keep compatibility with the exisitng driver ABI and also to be consistent with the rk817 binding. This series fixes the following warning from dtb check: pmic@20: '#sound-dai-cells', 'assigned-clock-parents', 'assigned-clocks', 'clock-names', 'clocks', 'codec' do not match any of the regexes: 'pinctrl-[0-9]+' Signed-off-by: Tim Lunn --- Changes in v3: - split out clocks into separate patch and group example properties where properties are introduced. - Address review comments - drop clock descriptions that arent required - set maxitems on clocks Changes in v2: - Fix missing include and pinctrl for codec example .../devicetree/bindings/mfd/rockchip,rk809.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml b/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml index be0616201f52..0174261449ab 100644 --- a/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml +++ b/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml @@ -93,6 +93,13 @@ properties: unevaluatedProperties: false unevaluatedProperties: false + clocks: + maxItems: 1 + + clock-names: + items: + - const: mclk + '#sound-dai-cells': const: 0 @@ -135,6 +142,7 @@ additionalProperties: false examples: - | + #include #include #include #include @@ -149,8 +157,10 @@ examples: clock-output-names = "xin32k", "rk808-clkout2"; interrupt-parent = <&gpio3>; interrupts = <10 IRQ_TYPE_LEVEL_LOW>; + clock-names = "mclk"; + clocks = <&cru SCLK_I2S1_OUT>; pinctrl-names = "default"; - pinctrl-0 = <&pmic_int_l_pin>; + pinctrl-0 = <&pmic_int_l_pin>, <&i2s1_2ch_mclk>; rockchip,system-power-controller; wakeup-source; #sound-dai-cells = <0>;