From patchwork Thu Jun 27 10:32:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13714146 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E8589C3064D for ; Thu, 27 Jun 2024 10:35:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=/72dXFog72t1SdKELuSTolYPlqsqPYanROz8CyzAPAs=; b=SLNTDIHk2RQ5iQ/x4UkqSWZVjt 58/0j+zNmhlHCpyyGO67Z+rPuUcfaDeNoTxDGOYiYK+mbYpMPPnG37RYps1RWi/AWhmlhVWLM6vZE 9lF9Bq1R8D1iMj8YJgNGqMSS5ffX5Dw6bpW9VBRgOVwcKM/wpVnKZoU4q8j9SQr6hgj0h+SjsShsv PnmQPuv7qoFjaVflbHW7WkNRZ2Df5u9MbBB/Lgxbd/7SmfrEE9TEBsD45ZMhIR0opo+fMYzOo37yy FBh7iYnr4Oen+LtXEd0LZbYq2ch8NsN0w7QMgM9hQHj4kjhbaYfqAqSodVPTvyu2gSP3FRacGmPbY iOrwqCEw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMmSs-00000009yA5-1W8n; Thu, 27 Jun 2024 10:34:54 +0000 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMmQm-00000009xCu-0OBa for linux-arm-kernel@lists.infradead.org; Thu, 27 Jun 2024 10:32:48 +0000 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-4217c7eb6b4so62700085e9.2 for ; Thu, 27 Jun 2024 03:32:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719484362; x=1720089162; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=/72dXFog72t1SdKELuSTolYPlqsqPYanROz8CyzAPAs=; b=jwv3LvGVp2z/CTDfv37kxclCB8pFzw53gdAX4dCoNJxNCqG9MWdM3apslE/Eboxk2J FDJbW1UoWQg8lQNqlBgXY0rwSExlq09XMHLNNZZbJclPsrveC6LdqFrlIy7Q8fzJi2DI t9p3DwXdfSVMq7heep3aSMwDabRpQmtHLBTPv3ETkr4eCGG+Uiu15EiwnOHGW/Kgldhh GAofXclSK64y2c3q+czRUEW/lfpXd9ahuxtg5u/s1uo6sWuJG0ZIvowm7lYGMyX11KG6 5WbaS5lv8a2IAYY1np/CuxDO1pzTlb3kD2J0eXscbQcs+bDpTituI94CTwVfhRsObwNH RgUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719484362; x=1720089162; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/72dXFog72t1SdKELuSTolYPlqsqPYanROz8CyzAPAs=; b=FhdTmbTlpzVtVxE6/K4zGYPgiAl0oo+TP2flglyn4WVY7A1RD9CAar0jYIJLtuMcK+ 47IzMdc9oMczWsqjcf361uuxS+M72Yw2aNqImjyqHeJvLUvxCi094pAHDIZwERx7rNjz LqWT0klruFLqLWHB36Hgin5P/ZmqGXyEeA9Lb5Wsy4ST5bfDA3TqfWVJjA7vwfz6WatM 1zGlbjKPAyIQJ6nytH1VXqP89zCI8Jc27yvGCw2/x0yGDB9c849VeUt0Q5fKr1Vt0WIh ezCnLNpbzXPCwE8E4A0HVR3UpEH3mcnKVEiVBt9svd+VKotbqZmXiJuahujqUMW1W6L/ /xEQ== X-Forwarded-Encrypted: i=1; AJvYcCU7U9aEE//szTQRuy6a8GOSy+kH0vaWHlmzbI3WUjpRenGYi/uc9n5uAklHYTVsf+gGgtX+Dquf1HfTuPadfI9raWOL2lPJEsOLgLKsJDqRaoPz4XA= X-Gm-Message-State: AOJu0Yz9C51KkNA8EAPAOVlE0aT/lbPkK3EeQGci7dswq8GE89pbSxq9 JFQCS5HdMg8wOnkrsQaRCORztlGiexO5X2pNsmVaaEnT96B7Dtoa/UfjBofZmfRq4j3IQ81t+3m Q X-Google-Smtp-Source: AGHT+IH/kzOIaLiKteMbLy0cBtwbkcTKMmn/pR09hom4+eGaNN6ZSj4lhnuKK1SwTp4TkCxMefFcUg== X-Received: by 2002:a05:600c:44d2:b0:425:5f60:b818 with SMTP id 5b1f17b1804b1-4255f60b971mr27977775e9.27.1719484362203; Thu, 27 Jun 2024 03:32:42 -0700 (PDT) Received: from [127.0.1.1] ([178.197.219.137]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-367435852afsm1384352f8f.53.2024.06.27.03.32.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jun 2024 03:32:41 -0700 (PDT) From: Krzysztof Kozlowski Date: Thu, 27 Jun 2024 12:32:19 +0200 Subject: [PATCH v4 3/7] dt-bindings: soc: intel: lgm-syscon: Move to dedicated schema MIME-Version: 1.0 Message-Id: <20240627-dt-bindings-mfd-syscon-split-v4-3-dc6699a9f3e4@linaro.org> References: <20240627-dt-bindings-mfd-syscon-split-v4-0-dc6699a9f3e4@linaro.org> In-Reply-To: <20240627-dt-bindings-mfd-syscon-split-v4-0-dc6699a9f3e4@linaro.org> To: Orson Zhai , Baolin Wang , Chunyan Zhang , Jacky Huang , Shan-Chun Hung , Khuong Dinh , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chuanhua Lei , Rahul Tanwar , 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, Conor Dooley , Krzysztof Kozlowski , Rahul Tanwar , Amireddy Mallikarjuna reddy , "Zhu, Yi Xin" X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3048; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=UtbVZYDkzkryXQABqoTO7fSXMXAyEAw/L2jsCfy/SN8=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmfT+8Vs4KySkM/ISHPM/mllt44fo8lqKyxHXmU 2d3Cv6UqxWJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZn0/vAAKCRDBN2bmhouD 1y6XD/4z7Yy9cF49133e6MlToxL2tOnL28Qw24UdqrqQypVdhDuvNCe6ajObx+40WkuhuiFbKxu UkGNNeaC+cqKg3eG+uPLEuU5TotMNOsHBeyIBjYXVuFMhh5U58OaFes/xEaGk0phhwpfMXnrZC3 MK3AOI9j3+Z44/6tYGWODKrVQ2SmI7tmCvMNteG1ZZzo1rImQUhAN8fVJIAKmqAwZ4mBLAd4S9Q 0qSpDl5q9AlUPXvax0kerX9rNKB2ivtODdzeNUKCK9YuaiGOHDFpXy7mQfDh3iKIWSE7CkcERf4 wikiN4ItXnv1IdlNYeeWcOGMqWfa7HIODhIgibDHEb3JpTPScuhZ0YqcsWxqptxqYWng7JHmsL+ 5R1kovA92+EV+JvYkuJnrP8K1j5sX96dqH6hMzEJgaDuGt5yBL7m7LIMjIpMVCEAM8Zp0CZmuGl uFbLwuF/24O3HRyQaIRekk6WrPesH8tSm6x+6jEWHqQ3cTddVe7PBCMiDisEJV0AghtO5+P1/7B d6P3KNw/aZ8fezv4lE0xkMFNudo/OlTJ+Binwaq+YYLey/apPvZK0CKZZzyXgbEvxHwEmG8ABc1 hp7mzxr5poffPo9wh8NiQyZRKec3GUDuUvSkYZ9n6nuyWXiGxq6EvkSDZikdzOJsHIql35TtADc nDby8bfT1SG/7qQ== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240627_033245_533709_10552465 X-CRM114-Status: GOOD ( 15.66 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org intel,lgm-syscon is not a simple syscon device - it has children - thus it should be fully documented in its own binding. Reviewed-by: Conor Dooley Reviewed-by: Rob Herring (Arm) Signed-off-by: Krzysztof Kozlowski --- Context might depend on patch in Lee's MFD tree: https://lore.kernel.org/all/171828959006.2643902.8308227314531523435.b4-ty@kernel.org/ and also further patches here depend on this one. We need to cleanup intel's emails. Does this bounce? Cc: Rahul Tanwar Cc: Amireddy Mallikarjuna reddy Cc: "Zhu, Yi Xin" --- Documentation/devicetree/bindings/mfd/syscon.yaml | 1 - .../bindings/soc/intel/intel,lgm-syscon.yaml | 57 ++++++++++++++++++++++ 2 files changed, 57 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mfd/syscon.yaml b/Documentation/devicetree/bindings/mfd/syscon.yaml index cc1e9fec5cc7..0e19eb0772f1 100644 --- a/Documentation/devicetree/bindings/mfd/syscon.yaml +++ b/Documentation/devicetree/bindings/mfd/syscon.yaml @@ -77,7 +77,6 @@ properties: - hisilicon,pcie-sas-subctrl - hisilicon,peri-subctrl - hpe,gxp-sysreg - - intel,lgm-syscon - loongson,ls1b-syscon - loongson,ls1c-syscon - lsi,axxia-syscon diff --git a/Documentation/devicetree/bindings/soc/intel/intel,lgm-syscon.yaml b/Documentation/devicetree/bindings/soc/intel/intel,lgm-syscon.yaml new file mode 100644 index 000000000000..6951d55356d5 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/intel/intel,lgm-syscon.yaml @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/intel/intel,lgm-syscon.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Intel Lightning Mountain(LGM) Syscon + +maintainers: + - Chuanhua Lei + - Rahul Tanwar + +properties: + compatible: + items: + - const: intel,lgm-syscon + - const: syscon + + reg: + maxItems: 1 + + ranges: true + + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + +patternProperties: + "^emmc-phy@[0-9a-f]+$": + $ref: /schemas/phy/intel,lgm-emmc-phy.yaml# + +required: + - compatible + - reg + - "#address-cells" + - "#size-cells" + +additionalProperties: false + +examples: + - | + chiptop@e0200000 { + compatible = "intel,lgm-syscon", "syscon"; + reg = <0xe0200000 0x100>; + ranges = <0x0 0xe0200000 0x100>; + #address-cells = <1>; + #size-cells = <1>; + + emmc-phy@a8 { + compatible = "intel,lgm-emmc-phy"; + reg = <0x00a8 0x10>; + clocks = <&emmc>; + #phy-cells = <0>; + }; + };