Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1648792lqo; Sat, 18 May 2024 12:26:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUalUry+ANcuwwtrVPSqa2qxpskUw1Z+UYnaA1oIxpqeUF6Iyc8XH7OmSBhF0CKK15FyLQBvsng8NRSvnoY9UO1iAFKT8TZ9SManDNL9Q== X-Google-Smtp-Source: AGHT+IF2vx+/uwjCu88+CtBKmu0/RXmq09Ks1qwylWospTEMLr6iwbyr2b8awdD20yhIyz0Qq0fv X-Received: by 2002:a17:906:a8f:b0:a58:ea69:3f5c with SMTP id a640c23a62f3a-a5a2d676767mr1582787566b.75.1716060397348; Sat, 18 May 2024 12:26:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716060397; cv=pass; d=google.com; s=arc-20160816; b=pXG2RCt0k6CifSPtgyWyZM4drpjclpNPsOE1/R7ms2FMOm6rC26o5SKMEKjs+6zmxs LT8euB5HE3bRltpJGockoTZCjO8Zm0mw3IRMWw7j72taAD0FEaeQfP+7UE5/z37suR/H O6eh4inw2r9TSclVMs9U2Z8uRWTvKSSs7A3HtW5ECAVQRjAtdXDK7VvikJ4tE4wyOou2 pOrDS7uG/FqAbJ5OElsCfNPi1d7IDr/gkWAvDaXxNAUxJgpmKLVS2VbStdKP1A3NIiqn 1PU0knSKVRneP5Je9xzfufZm2en4gMrwMynvWP5p6MeweG/ebrtnEbMRtWDj7sQuNcEi CX5g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=0r3XLKBEKGKXrlo5dTq9Ou/a0segRiKJucpi0RjGCeM=; fh=2lRtGE91oT5uHnmWcFKRG3Lyybh62aeBknkjhIJz69Y=; b=CplvJdq15DzRIsdgFqNex6Jr5zlGI9Do3sQSCTvWLIMtz/rqimsVUEn8n+EIorqIP2 aKCftOMonSjla+zKRwi+EB9RuoOvbMpH1o5BaFhfg0txpeO7g7DMp9wXpwjsj+VTd9lV kopoxuzXm1Z3HKNzC18gla++dLiVxy5Ux+YOk1bbgAjKww+6jAfoslaw/RshwIkYYqB5 cFSqb8rTbCCKHFBq7W2LDgVji+hhFym12UkynTjcS8yR3EHj2O6wKH5vt+4BI6KSMwLh bVdnNOZjQKlL7vswRK+T5p2n3R5NPMz5SyaHA8vUqs4ZkvLawvbfohQMQ5Frulvs2+YJ iRZg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FGnlxQVS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-182945-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182945-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a179460d6si1058177066b.12.2024.05.18.12.26.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 May 2024 12:26:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-182945-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FGnlxQVS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-182945-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182945-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 am.mirrors.kernel.org (Postfix) with ESMTPS id D58951F221EA for ; Sat, 18 May 2024 19:26:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BD67A5FEE6; Sat, 18 May 2024 19:26:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FGnlxQVS" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 BBFAD6A33E; Sat, 18 May 2024 19:26:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716060375; cv=none; b=XQP5WJML2UqZPTK5JyiWMky18thdUXjPWG1gFbrD4ShpQen6ZaoZgjK/nIfwKqmTBpeQgB7B4N6xc5bhYAZRI6sC6phX1O4MbHyDOdv7u0WRowYNx8WTZj29wFlZdkGJONEXgsCMkkYIQe0L2xLRalG1jyvFcGtkGxn5fzb8m0w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716060375; c=relaxed/simple; bh=pS7/FQKAboSjZ4dU+UOgLuhCwuMawr64gb0JWqrROIQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=tmpCPvvXK4aVBRO+/31CfwMZyt5l85KPUu5tODOfHWRBLaGYN/rQ+OxUKtGJNLAijtxVHVUTzg8JDjKVTCz/rGik5+q9auy72qwsbGnNIGk9T7CA2vywvIZWBaxvrMeqLcAgIvfvdzbSnOs7YuTsvGGtY6RnsAmItKle8cEqGuM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FGnlxQVS; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 73AD9C113CC; Sat, 18 May 2024 19:26:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716060375; bh=pS7/FQKAboSjZ4dU+UOgLuhCwuMawr64gb0JWqrROIQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=FGnlxQVSLyGfCh1HpdC3bZZOPEuzKKBdWozEWgsTmwrcyTMKl5Ue4qdREsC9SUTpK OyO7ymdSgCjqp+7h0emx8YFLY7htd9JTxSsj6ImCQAlCLMZTbjTkAIiZsN0MXyTNgA mfmynlRTkIf9bJKoMwl17eNNi6xSo2e+RfLU/MwpL3mciYefllRTgVENchg5tkyATA p6PB7CtBOJBfnNG0Zv8h5/Dni25TtcH4lvv1u65nhHBPHQr5Pcln4VgY+TjuXLuhlo +m5+iZNlb4BQ86AndXenc7as14rxqmvbYKi56K6rFsRV0O+hwALojnbuzaHjDo9kae VnhAD0zc1mMXw== Message-ID: <418f3270-553b-4b01-b906-2855956b2b4e@kernel.org> Date: Sat, 18 May 2024 21:26:08 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] dt-bindings: mfd: syscon: Add img,boston-platform-regs To: Jiaxun Yang , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "paulburton@kernel.org" , Thomas Bogendoerfer Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, "linux-mips@vger.kernel.org" References: <20240513-boston-syscon-v1-0-93ff557d3548@flygoat.com> <20240513-boston-syscon-v1-1-93ff557d3548@flygoat.com> <31769e8d-ab52-4f4c-84ca-2f546287d006@kernel.org> <61445fe0-9137-44a6-ab36-ffb8985254df@app.fastmail.com> <2245e750-0b5d-49d1-88f3-7c1c75f275e7@kernel.org> <2aec4e38-f596-47d7-9e2a-a99e628dff5a@app.fastmail.com> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJg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c3OcfKqVcZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: <2aec4e38-f596-47d7-9e2a-a99e628dff5a@app.fastmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 17/05/2024 12:15, Jiaxun Yang wrote: >>> >>> Do you mind telling dumb as me how to test bindings properly? >>> >>> I tried to run make check_dtbs after applying this patch and that's all >>> the warnings I got: >>> ``` >>> arch/mips/boot/dts/img/boston.dtb: Warning (interrupt_map): Failed prerequisite 'interrupt_provider' >>> /home/flygoat/linux-next/arch/mips/boot/dts/img/boston.dtb: /: 'model' is a required property >>> from schema $id: http://devicetree.org/schemas/root-node.yaml# >>> arch/mips/boot/dts/img/boston.dtb: /: failed to match any schema with compatible: ['img,boston'] >>> arch/mips/boot/dts/img/boston.dtb: /cpus/cpu@0: failed to match any schema with compatible: ['img,mips'] >>> arch/mips/boot/dts/img/boston.dtb: /system-controller@17ffd000/clock: failed to match any schema with compatible: ['img,boston-clock'] >>> /home/flygoat/linux-next/arch/mips/boot/dts/img/boston.dtb: uart@17ffe000: $nodename:0: 'uart@17ffe000' does not match '^serial(@.*)?$' >>> from schema $id: http://devicetree.org/schemas/serial/8250.yaml# >>> ``` >>> >>> I think there is no new warning introduced by this patch. >>> Did I miss anything here? >> >> Indeed there might be no warning for this, because syscon allows a lot, >> including children. You need custom binding anyway. > > Hi Krzysztof, > > I really don't understand the reason behind having a custom binding for > such device. It even doesn't have a driver and purely rely on generic > syscon regmap to work. > > I can see devices like mediatek,mt8365-syscfg being described by simple > binding have a similar nature, they all describe a register bank and with > serval sub nodes to describe devices being instanced under that register > block. > > What makes img,boston-platform-regs special here? Nothing is special here, I am in writing a patchset which will fix this up and all will be treated similarly. Bindings for devices should be specific, which then allows to see that you do not have dependency of children on the parent, and your current patch allows basically anything as a child. It allows also an dependency, even if you did not code it. Best regards, Krzysztof