From patchwork Sat May 18 20:39:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13667698 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 D73F2C25B74 for ; Sat, 18 May 2024 20:39:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=mkHvpm1WmzZiVSEPPd4zZO73jEE9buCU2AhGST1HiBc=; b=KnmrCdIM17ZWLH E7BWYkaCDD5Gh/KaD81k/JQ8J/yR87AFGBb9VnIEGAoqwaZ+IEA+uWvHOyv4cR8q2LZGVDswe2Sh0 vIj10tlW0xUUExmXmam0L347XjGnyDDfBZLLv4q42stwrhS9etCtpOGaajygFVMf6+EcM+tyn7w3Y L8R8HlhPi1CQ+YcdGr4fTt9aXKlnXmyhrpTbBETM/YnFNvkvYhQJb4lhl6UkM4mly9ygCeQLBxEo4 mf8xkSUreYN6mvmPBNvXShLDrlS7M+BUMLCWU9EePDtbC5C5Jl5sHzfrzOX6kiJIK29AXUPX/IfJR fQbygNk7ngHfWtKLkcdQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s8QqB-0000000AjQp-1acj; Sat, 18 May 2024 20:39:39 +0000 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s8Qq8-0000000AjOm-0OL0 for linux-arm-kernel@lists.infradead.org; Sat, 18 May 2024 20:39:37 +0000 Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-a5a5c930cf6so580311466b.0 for ; Sat, 18 May 2024 13:39:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716064766; x=1716669566; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=vra2zeL7tZNPCyev4soGTccFuRymfpD1WOFRkTQfoJU=; b=N2fmxkFJOMwmzPsYQdgrcSOuHgz9QcaszL68fOFCyV+9p437HQ+pcC56YWlpyxl5Li arxbIVkeblqFyP9NAntFaB3R7uhConvshmqIJqEc/0FiCtT5aNCTFWdj4xoFxbDf+0TI u+wz4fTvOkQWTb8+JD0w7wymLUpddMg/A5bCrKEuhkj5JzmOJ2vgyRK4uos77gffVEm6 t8asPhMO936Yz8KVawtMXFJGhJ7JptFoqdALfSh2Vefg1dIVRY3Ik0q8o0iiMiFaXsW9 NNhqLefrfOfPAZDlSnK11/sXjyFMtQ/SP1im/sQ+DjomcNxplSiIiLh7E6SHc09p8sJC Zn7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716064766; x=1716669566; 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=vra2zeL7tZNPCyev4soGTccFuRymfpD1WOFRkTQfoJU=; b=dGLTSTdckBqqQkXhWw1iQYg5zQkxTFGzF+wJRpNsW1ZjpB9sBE36MF+H0CdvKEZ6bA dgiBTju6PLhzaz2P3kKdTMI3ajRd9CJ7ypjHoM4uQ3/4JGItb6C1vwMQ052Dq6BgtYtJ k8ywDehK++ihNKdcLeACgvrQGZnxc+6TipwZe6oNunpcwqB7TwCp2lqlWcEOcW46tN9m kjf9PxJXsWP/bsJJlVrVs/BDb0DrAUvpuhAk9vU1BtNwiQvCCHvr/kJFJ1+2BXJAYmnN AWTayAt4+ERMuOeni8gG1kibbA6YD2AgY9VmBq5CAtaSHU9sBgfki+adPGxJ4/KiXXkk 8HyA== X-Forwarded-Encrypted: i=1; AJvYcCXQ+b2DAAh9RhZF0949dorCSCWM5NGxOY3W14f7Flqx0POi/3Jl6+Y2aoBhIKJmADyTvOWkcww5/dSbtSPCWqwyXWvEbV2vE/WffZXlEFRXrRc5VI4= X-Gm-Message-State: AOJu0YxznLvjuZ07o6Nlh/VVzajNQm+TVVXwr2ToMh+NOOfr9bZyEK7c 33XzGULKl2wECdOlZUUmkmcFZDKpMix/sQbqZV66EvoVDu2F1Y6Xh1XFwo2gO1U= X-Google-Smtp-Source: AGHT+IHwxt3y3qbfk5PrbEW7Ji1FqvmX1SLB2RJGTBIAQusDHgQ50K6ImMA2W5PaqD7Uk3W7mRaD3A== X-Received: by 2002:a17:906:3154:b0:a5c:d694:bb33 with SMTP id a640c23a62f3a-a5cd694c6a6mr707249666b.45.1716064765707; Sat, 18 May 2024 13:39:25 -0700 (PDT) Received: from krzk-bin.. ([178.197.206.169]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a90d0e919sm529625866b.85.2024.05.18.13.39.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 May 2024 13:39:25 -0700 (PDT) From: Krzysztof Kozlowski To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liviu Dudau , Sudeep Holla , Lorenzo Pieralisi , Linus Walleij , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Krzysztof Kozlowski , Jiaxun Yang Subject: [PATCH 1/2] dt-bindings: arm: arm,juno-fpga-apb-regs: document FPGA syscon Date: Sat, 18 May 2024 22:39:02 +0200 Message-ID: <20240518203903.119608-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240518_133936_144314_982EAC7E X-CRM114-Status: GOOD ( 12.76 ) 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 Add dedicated bindings for the FPGA syscon registers on ARM Juno board, to fully document the block and also fix dtbs_check warning: juno.dtb: apbregs@10000: compatible: ['syscon', 'simple-mfd'] is too short Signed-off-by: Krzysztof Kozlowski Reviewed-by: Conor Dooley --- Cc: Jiaxun Yang --- .../bindings/arm/arm,juno-fpga-apb-regs.yaml | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/arm,juno-fpga-apb-regs.yaml diff --git a/Documentation/devicetree/bindings/arm/arm,juno-fpga-apb-regs.yaml b/Documentation/devicetree/bindings/arm/arm,juno-fpga-apb-regs.yaml new file mode 100644 index 000000000000..97a7a6281d62 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/arm,juno-fpga-apb-regs.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/arm,juno-fpga-apb-regs.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ARM Juno FPGA APB Registers + +maintainers: + - Linus Walleij + +properties: + compatible: + items: + - const: arm,juno-fpga-apb-regs + - const: syscon + - const: simple-mfd + + reg: + maxItems: 1 + + ranges: true + + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + +patternProperties: + "^led@[0-9a-f]+,[0-9a-f]$": + $ref: /schemas/leds/register-bit-led.yaml# + +required: + - compatible + - reg + - ranges + - "#address-cells" + - "#size-cells" + +additionalProperties: false + +examples: + - | + syscon@10000 { + compatible = "arm,juno-fpga-apb-regs", "syscon", "simple-mfd"; + reg = <0x010000 0x1000>; + ranges = <0x0 0x10000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + + led@8,0 { + compatible = "register-bit-led"; + reg = <0x08 0x04>; + offset = <0x08>; + mask = <0x01>; + label = "vexpress:0"; + linux,default-trigger = "heartbeat"; + default-state = "on"; + }; + }; From patchwork Sat May 18 20:39:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13667699 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 98623C25B74 for ; Sat, 18 May 2024 20:39:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=OLk9lc3VrpO9Q+wj6LSTbhRStL2fl5MBesAxNY9dzOw=; b=GGNr3DG4Szh9is ILHz/gtG5NnAAdFhv7yaGr3gjoPObCe4fDncYEDmJN0zHC9yuudrg5kYObS4q4kfAxSS73bqwX75q c88zlZ/i3qNmqJd5fpDlFFlf3kT5ZR1vDjYG6XQJwA6schT9ijjYC5V5f0Wjh9xyc0znPJojtpDx6 E8n6hALoC/izezI2+RkVKJwschDN8c35GMM+tyJ06AkXPTyerumcK2le6OEJh2+v1IJW3zMMa6g7X +AHEShuc2D8ZqebHD9tTAx1S2nBuu7mmHintz27GwfOWgTEHfh/rOOWRFxDS1lwULqAbZHoHctuH6 2nIU57I7EcfMxqP31/ig==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s8QqG-0000000AjSf-1ZGy; Sat, 18 May 2024 20:39:44 +0000 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s8QqD-0000000AjOs-2iEg for linux-arm-kernel@lists.infradead.org; Sat, 18 May 2024 20:39:43 +0000 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a599a298990so631719066b.2 for ; Sat, 18 May 2024 13:39:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716064767; x=1716669567; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Oyuvjp8sxI6GAbBY6i1paMWee54WjCXFX+m3o/u+49w=; b=avb4TxdX3sR012DNEOjsWec0uv2BiQ4DEOSNLeKMGHbtLyIZ5Rlkp4idvaIpMhiyFk p4dpdTdflmErMtfqs1+6IfoiSQ060veBC3E+TEg7tfBJL1TyuyVXVpx99B4ELUsYYgVd bDmqsWTqdBttC9UyXe233vNk+vJutIn+I8rcewXeLnQMgArDNO9HR7YMEapSJ6LThnlI wege7NjAQKjnCUJKgJcw5rqmP+OuFP3kI0ocLX4TFZkM5tmSHRGxgn9Wkmaz62KZpjrr gsa68eW2/OYE5v9vwystcHFb6wNMg3fjUNil0B4ObWVKSFjkvyDvRoQU3zmkcISIS1lW 84CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716064767; x=1716669567; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Oyuvjp8sxI6GAbBY6i1paMWee54WjCXFX+m3o/u+49w=; b=KW83GIb+hYL0QNri9zs9jKpF9MlbTlhhAYOs7roX7L44oss2u0QP+mMxqZHzZWkPRZ 96VMvkkCrR4DvfgJ2jKufqwrMUeNDD/K7xH6R1iubTcVp1XrmlOvKRXlW44GK3rYJaj9 wfFKOYZUQnY11H6thbz8mSSdQqcCdDG7KFtcRzOWBTDS5FyRXQ6VnPTksjiAj/jlPkfw eSyEzttPEVOdjckMZRGafXZACsNfcznI5DJf8FoTiFDlOGEI04fBqDvv6NXm4bnWa61d OmR6bFGE3+MXq3W5SByR/DJZM8sKm2YqIpXLQrYTRL8q47rYQbX1Lu0pP1LUnMxfjs4B fhag== X-Forwarded-Encrypted: i=1; AJvYcCXkM5CPoJT4fEjMswxtW3Qa+vLI/1V0k7nEIwsFtvL7906o9DtWKdZkD7h2wFdcO2D2uw12IyB1jFzccUKnuWiCaA6fYikgcRGnCPTU49a99Y0AOlc= X-Gm-Message-State: AOJu0Yx4rVRCTBhaiUBtiM/Y4j8t8Ph3oJMD8mWizrCylw2qpDsLX6qo B7lS7r6n9k3zLLsGwq7zU9XzLQXEq6eC+zzmTqsJOplk3O/1qe7wf+4VC7qsVn4= X-Google-Smtp-Source: AGHT+IFmAaJlVwRteEECl5DmhNyp25lyL6ct8KI5P5ZBAGIXVrtR/R+jrwf/V9O0lNpRj9x6NEwBeg== X-Received: by 2002:a17:906:bb06:b0:a59:b490:6e62 with SMTP id a640c23a62f3a-a5a2d5c95bemr1763678766b.40.1716064767145; Sat, 18 May 2024 13:39:27 -0700 (PDT) Received: from krzk-bin.. ([178.197.206.169]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a90d0e919sm529625866b.85.2024.05.18.13.39.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 May 2024 13:39:26 -0700 (PDT) From: Krzysztof Kozlowski To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liviu Dudau , Sudeep Holla , Lorenzo Pieralisi , Linus Walleij , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Krzysztof Kozlowski , Jiaxun Yang Subject: [PATCH 2/2] arm64: dts: juno: add dedicated FPGA syscon compatible Date: Sat, 18 May 2024 22:39:03 +0200 Message-ID: <20240518203903.119608-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240518203903.119608-1-krzysztof.kozlowski@linaro.org> References: <20240518203903.119608-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240518_133941_696944_98E0C836 X-CRM114-Status: GOOD ( 11.01 ) 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 Each syscon node must come with a dedicated/specific compatible, which is also reported by dtbs_check: juno.dtb: apbregs@10000: compatible: ['syscon', 'simple-mfd'] is too short Signed-off-by: Krzysztof Kozlowski --- Cc: Jiaxun Yang --- arch/arm64/boot/dts/arm/juno-motherboard.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/arm/juno-motherboard.dtsi b/arch/arm64/boot/dts/arm/juno-motherboard.dtsi index be42932f7e21..6ca73f41408d 100644 --- a/arch/arm64/boot/dts/arm/juno-motherboard.dtsi +++ b/arch/arm64/boot/dts/arm/juno-motherboard.dtsi @@ -158,7 +158,8 @@ v2m_sysctl: sysctl@20000 { }; apbregs@10000 { - compatible = "syscon", "simple-mfd"; + compatible = "arm,juno-fpga-apb-regs", + "syscon", "simple-mfd"; reg = <0x010000 0x1000>; ranges = <0x0 0x10000 0x1000>; #address-cells = <1>;