Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1175295rdb; Tue, 30 Jan 2024 09:59:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IEFkS4dzwwAgMyCER+xzMK4luZ2yXqNh6tQy1qhWCFO0wWH55pcZJ59+YbFaCRWUq+JifkV X-Received: by 2002:a05:622a:88:b0:42b:e1ad:714 with SMTP id o8-20020a05622a008800b0042be1ad0714mr989364qtw.51.1706637586446; Tue, 30 Jan 2024 09:59:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706637586; cv=pass; d=google.com; s=arc-20160816; b=DeW/jxc8VLGm8L+I85qC12jZbNV5U2uLvLTCeeoPB8aFcvo0Jjt0ytgLCImHHQICMS cPUjN9rnVi0qDgEnqPoAHABmuf4rNy3WAQUhJorXu6IX2LL91eIjj1zqYRrq/PzU8HGL rfc9+QPXD/HtMVtRRrg5998FSXNRv4vewzkwEqwlmaqntSmPtGf4AECMoFZbNRX/iOwI 59hbnF9vQVLnDK9mYnmWA8DwhK8jx0dv3JVaWGEKSkpxxTfR59oYgBbHtA3H/50Z6iyn 54EKg/u/ywZRWXnaWg5heW1Wp73IJzUerm60iHcW/ojipQoO0ZW2/9IhRNGxGvsHIRNs VaxQ== 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:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=UgHUTX9LXYroMHHIZUCA3xA7OBCQHGBSeN9sd6vR7D4=; fh=WhfuV/2tmXgxwQ+B9wGqRAJ6R2O8KNasTZ2Nm4pxHew=; b=j18JHJmi2uqx2t649G5Faas2fI2H8HSRwIDWTaTd458R59wUZ/0npyVZ0vJO7Tpp6G COvOE4Yz1wDlLA3PU93a8bvWQUVj+BQFi+3ijV4LXWU00dcJ8NZ1qu5utKoenPg6Cfcx eJ9mYqhoP2wpaPZ75/jLEEchQraaihUrYnp00Kgqh0NvT36MRdS1Ax0zmBab2l1dx65Y NA0IW29zRgw37a0aFNzYHRDI4v14oCM+s9W+rYppsYEs9bznHT4Cf//mvZFbDheFvex1 jZsL2KYtQw58WTt7WNuf5RCrEwWlpyjn9iUbNgHVnCnGoZdyhf9pHW5cM/ql1H5q/4l/ FIAA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FQVZcKZO; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-45070-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45070-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id b4-20020a05620a118400b00784e57a957esi1208789qkk.587.2024.01.30.09.59.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 09:59:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45070-linux.lists.archive=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=@linaro.org header.s=google header.b=FQVZcKZO; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-45070-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45070-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 273311C25888 for ; Tue, 30 Jan 2024 17:59:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ED724155A39; Tue, 30 Jan 2024 17:59:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="FQVZcKZO" Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1308F151CDC for ; Tue, 30 Jan 2024 17:59:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706637545; cv=none; b=eJd2wNQprJ5pTe7HKR06PAx26s9uWihN8I120oKaWxJW457305erClcH3fGHUuPI9+Yg6cL9myb7AgGzz9jewBm0APZQkPkO6E0QUIS5luP1gtyjvxNcoD/sykRrtd14Gb+tzklXNQQQfdKARUyi2grugTC1CgDnTAQ68MfgL5I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706637545; c=relaxed/simple; bh=mNdeMPp9kt0FWgQWSFLBY7gbjxsw83wvcE3qv+u0rTY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=nVL0phPxiU4iXUmW74UX8eQWVO0d2k4kaHcZtlXKMHnAYBuA6oNhYsoLpJEY64clNknGrGSc0877nrpR31v5vdU2vm1NP0oWO4ht0jCUirFYzSeEW38dv+75Xjk5ikKWyAO7y+CIuMwlLjZhxrR2hxiPrJyWabvYNxKLLsfTpVU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=FQVZcKZO; arc=none smtp.client-ip=209.85.218.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a35b32bd055so302598866b.2 for ; Tue, 30 Jan 2024 09:59:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706637542; x=1707242342; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=UgHUTX9LXYroMHHIZUCA3xA7OBCQHGBSeN9sd6vR7D4=; b=FQVZcKZO5GMwApAhBRWUhNRVSAf5AB0eJVjrcZ4uQLNXz+XJyu+Vivul7TiZFmAGXP ML2U3TFhqDynTlWfr6c7nczje98tVLK7L/YgYmSgCwGg8RnNnOl9bsg7KXbg0qBdhR4A RkVOnAjpgVZNH4bd9+RcL+fITYK7pRMnel9BUaRwlZEwwRKBTIN/sj5kICZptX1GXMKK GfD6dkbLpFwLlQ8V460DFVmoAiBc+/Guqp1ZEF4aFRZ5ZbTaHx1DD0WV63jFmZDnU4u/ pK/n48or6KGW+C8HsoAdRWKq62jDjpVEucdH9sv42DtE0eewFfxyLPayN5wGXvoA0uBd tJVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706637542; x=1707242342; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=UgHUTX9LXYroMHHIZUCA3xA7OBCQHGBSeN9sd6vR7D4=; b=IVS8inE+dZf694F0lt6zHw9Y4/ot+MI1W1nRGqgCra2qCUmXTnNkdkvHBeqnmPdNsZ MtSkEd2rTfAWwTxZ6ndKzBXFRNgrvHATn8sl3rbfJ/WoZ2skZsDB5vsej8VAvEdqka2a +Q/DhUsTX/OxYoCOqhG1xW7aKCrYO/blylpTRFQ1fmOqPggC1qdY+Vki6B/lQThEUIRT gHP8UkUZzDyBK+UDDpowwDwiOp3dQfNfle+LviSclebRPQzT+s77JG8FHIAWZ50mDSkH lYhZDV3gnsPeQbMgqu4Mbt4Wr3gLPh47YTimJSdsFuGDQFSM2r1Leijiy8eS8s0d2612 vuKA== X-Gm-Message-State: AOJu0YyxJwVczjxVym0bhc5ZYt5K7jrKQtorBIFfqCBtdQZPOZIzc5fC sHzVtBTo7kiboEDRRthVbLIRcU4GGu3NTdGAXmnMuB2jHJ97URSxLowPWVn1cmg= X-Received: by 2002:a17:906:34ca:b0:a35:9cf0:56d9 with SMTP id h10-20020a17090634ca00b00a359cf056d9mr5374596ejb.70.1706637542185; Tue, 30 Jan 2024 09:59:02 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCU7upOCq2IQkNWCJzJREgFQGpJRAjj1co/EKnZ4J8n6L3pSa7Gur57T69Rs5tzNk3/zC/FIp5ur1ys3RpdaBS51d1jJbfeiEPG6n5TBMOnS5CjFJspLheO/YHysBxa/RND4tBuWtxyg8luT4oxqdVmke8ryDunCGm4CKV+BpeJBDmslDx3griEV+Q8MD+1B0vqkz46nrDLWinplWJeXwBfNyut1314UCVnOyyybs2cQwy6G+UK1FHSWaIfX9WtBpzoXUYosMvqb1UF0GTndL9Qz7L6PDYHomDpk714kw2TLFnitssW5m1luzMue/xTC50XdhchQ4ZkCvEF2ggs9ZP4D9fyK0YGLvHwnljGYQGsFfPdA Received: from [192.168.1.20] ([178.197.222.62]) by smtp.gmail.com with ESMTPSA id vh5-20020a170907d38500b00a3517d26918sm4798338ejc.107.2024.01.30.09.59.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Jan 2024 09:59:01 -0800 (PST) Message-ID: Date: Tue, 30 Jan 2024 18:58:59 +0100 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 2/3] dt-bindings: fpga: xlnx,fpga-slave-selectmap: add DT schema Content-Language: en-US To: Charles Perry Cc: mdf , hao wu , yilun xu , trix , krzysztof kozlowski+dt , Brian CODY , Allen VANDIVER , linux-fpga , devicetree , linux-kernel References: <20240129225602.3832449-1-charles.perry@savoirfairelinux.com> <20240129225602.3832449-2-charles.perry@savoirfairelinux.com> <1489222458.382780.1706629544559.JavaMail.zimbra@savoirfairelinux.com> <32669bc7-90b5-48d9-8845-2e072a477c6e@linaro.org> <154341320.386005.1706634341891.JavaMail.zimbra@savoirfairelinux.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzL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ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <154341320.386005.1706634341891.JavaMail.zimbra@savoirfairelinux.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 30/01/2024 18:05, Charles Perry wrote: > > > ----- On Jan 30, 2024, at 11:05 AM, Krzysztof Kozlowski krzysztof.kozlowski@linaro.org wrote: > >> On 30/01/2024 16:45, Charles Perry wrote: >>> >>>>> + >>>>> + reg: >>>>> + description: >>>>> + At least 1 byte of memory mapped IO >>>>> + maxItems: 1 >>>>> + >>>>> + prog_b-gpios: >>>> >>>> >>>> No underscores in names. >>>> >>> >>> This is heavily based on "xlnx,fpga-slave-serial.yaml" which uses an underscore. >>> I can use a dash instead but that would make things inconsistent across the two >>> schemas. >> >> Inconsistency is not a problem. Duplicating technical debt is. >> >>> >>>> >>>>> + description: >>>>> + config pin (referred to as PROGRAM_B in the manual) >>>>> + maxItems: 1 >>>>> + >>>>> + done-gpios: >>>>> + description: >>>>> + config status pin (referred to as DONE in the manual) >>>>> + maxItems: 1 >>>>> + >>>>> + init-b-gpios: >>>> >>>> Is there init-a? Open other bindings and look how these are called there. >>>> >>> >>> No, the "-b" is there to denote that the signal is active low. I think its >>> shorthand >>> for "bar" which is the overline (‾) that electronic engineer put on top of the >>> name of the >>> signal on schematics. It comes from the datasheet. >> >> Then just "init-gpios" >> >> ... >> >>>>> +required: >>>>> + - compatible >>>>> + - reg >>>>> + - prog_b-gpios >>>>> + - done-gpios >>>>> + - init-b-gpios >>>>> + >>>>> +additionalProperties: true >>>> >>>> Nope, this cannot bue true. >>>> >>> >>> Ok, I'll put this to false but I'm not quite sure I understand the implications. >>> >>> My reasoning behind assigning this to true was that the FPGA is an external >>> device on a bus that needs to be configured by a bus controller. The bus >>> controller >>> would be the parent of the fpga DT node and the later would contain properties >>> parsed by the bus controller driver. >> >> Which bus controller? MMIO bus does not parse children properties. >> Anyway, if that's the case you miss $ref to respective >> peripheral-props.yaml matching your bus and then "unevaluatedProperties: >> false". > > This one: https://elixir.bootlin.com/linux/v6.8-rc2/source/Documentation/devicetree/bindings/bus/imx-weim.txt#L56 Eh, ok, so after fast check WEIM looks like some memory interface bus, so the bus bindings should be moved to memory-controllers and converted to YAML. Then you add child node properties to own schema and reference in mc-peripheral-props, which is then referenced in your binding here, as I mentioned. Best regards, Krzysztof