Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1329052rdb; Tue, 30 Jan 2024 15:32:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IFAq+XiadYv9WDyb8UFv/ZjHdSpQPcDBmSkQXBVlmVWh5gj6gfZDfq7NuSbcywmfIiRwT1J X-Received: by 2002:a05:6870:15c7:b0:218:889f:46fc with SMTP id k7-20020a05687015c700b00218889f46fcmr137723oad.30.1706657559767; Tue, 30 Jan 2024 15:32:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706657559; cv=pass; d=google.com; s=arc-20160816; b=H7csZlU2tyU4E2x2oogyY03+A9OTDk+Y3BoTvsHKOPk8XYkcNELHbfCLe29HOvAg6p qfsZnGKU4tOWleNjUXvRpfigzD8AnhW/QpDkRDDYJbKKZ+o5oH7j/q49RHP0fDeDmGBE TzVwoYZmWhfDQh4WLnbfOBjZEe43t+zNIay2XyGyCRhUc7Ir8d57LnbntroagEnZMe0/ we1TsPqQgF9FTwEUjqHW8sY5O5KQG0PwMjccGSRaCRcQzLYJ5QpOEa2q8ewJuL+N0Wzk jR3hYQM8s+3sJ4zrQin8zQcFSGESeiLVEUab+ndzuSchpXpnJIFVVd4h4+gs2CgRhpSk s6eA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=thread-index:thread-topic:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject :references:in-reply-to:message-id:cc:to:from:date:dkim-signature :dkim-filter; bh=BA4JQridKzT3Qj0Bblif/Dl05zQNFxAGDsMmT6xiiWA=; fh=znYmwCecP1IIF6QnhS0wJ+0mVbwDWGv3w7y/TKNUjYk=; b=f37jAacZ9CpjaTrpINXO2AR6QdTW3XZ4bi10ghFrHU+UlLJfo62tRm3lTJDAt52rq6 NoqPUFt3VNlvVCh+k5o8OFfBrQdyqgKWwLERS96XSK8bSn1HR1Ek78GYpybo6J/pWhRG TZLjI2FwdwDn9hTXM7cx7lQ7uLHehn7Bc6Jsp8xMS1Bs3Hu+cE32Bl8nAuGdNr66nHZY i27r5YEcL1Rj9za3lscMWXXszF1QDBQftWZAnnIATvS6bvYRO+NyN84zlfZKic3Y+Pa3 hs8epcMGfZ8S6ObD6y1YPDxmWzVaseCSEvTqp5XOV8ZWwCURIhrhswO+/NDeBdX1ly4R 0SxQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@savoirfairelinux.com header.s=DFC430D2-D198-11EC-948E-34200CB392D2 header.b=XbUNHyDS; arc=pass (i=1 spf=pass spfdomain=savoirfairelinux.com dkim=pass dkdomain=savoirfairelinux.com); spf=pass (google.com: domain of linux-kernel+bounces-45483-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45483-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z187-20020a6333c4000000b005ceef6e1c1csi8411952pgz.708.2024.01.30.15.32.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 15:32:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45483-linux.lists.archive=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=@savoirfairelinux.com header.s=DFC430D2-D198-11EC-948E-34200CB392D2 header.b=XbUNHyDS; arc=pass (i=1 spf=pass spfdomain=savoirfairelinux.com dkim=pass dkdomain=savoirfairelinux.com); spf=pass (google.com: domain of linux-kernel+bounces-45483-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45483-linux.lists.archive=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 E7185288545 for ; Tue, 30 Jan 2024 23:32:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ACF9279959; Tue, 30 Jan 2024 23:32:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=savoirfairelinux.com header.i=@savoirfairelinux.com header.b="XbUNHyDS" Received: from mail.savoirfairelinux.com (mail.savoirfairelinux.com [208.88.110.44]) (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 4ED6E7EEFD; Tue, 30 Jan 2024 23:32:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=208.88.110.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706657543; cv=none; b=bX4JFNjJFaQckUDPFWtSawUkjqIq098gRBqNRsEHmTLgK9eSnaXsrBqneJctCYVDKq1jO+HOwQ32Dr7MlyHcxKbjl9U18R2mHwpZxcek1D3CznRCgRYu/4eJkKgtSO/yTvxro8sMWMA4ByyhwiAbycpckOzIxzOc4gY8cFrgMdk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706657543; c=relaxed/simple; bh=LNLe7G+sUEBgyWggG7WM7RWLo2yZedbsnX7Ohqrkqa4=; h=Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject: MIME-Version:Content-Type; b=mq469gZV+yYE/+U39hFMkTY5/j9BBfvGQ26ZzV8cOTr8UJQAuWsj53yl6Ol6qwkw6Tc+catinJ8Sn2OU/XqM747PszteM4RLvaEasUhqPwMMdbtkzOomNmBP44ub7TI6zYKTg2KGoPMmyyCQjUos8+axpL+6jjqVbmYoPZdladg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=savoirfairelinux.com; spf=pass smtp.mailfrom=savoirfairelinux.com; dkim=pass (2048-bit key) header.d=savoirfairelinux.com header.i=@savoirfairelinux.com header.b=XbUNHyDS; arc=none smtp.client-ip=208.88.110.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=savoirfairelinux.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=savoirfairelinux.com Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id BED8A9C47A8; Tue, 30 Jan 2024 18:32:12 -0500 (EST) Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavis, port 10032) with ESMTP id ihIR16aTfH4Y; Tue, 30 Jan 2024 18:32:12 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id 0B4FF9C47AB; Tue, 30 Jan 2024 18:32:12 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.savoirfairelinux.com 0B4FF9C47AB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=savoirfairelinux.com; s=DFC430D2-D198-11EC-948E-34200CB392D2; t=1706657532; bh=BA4JQridKzT3Qj0Bblif/Dl05zQNFxAGDsMmT6xiiWA=; h=Date:From:To:Message-ID:MIME-Version; b=XbUNHyDSl0gBsr4cCsjFR4BlqmGJ5WErUDf2j384p7TLk7L0IPzhdQldARfor5h3B xOCshe42bzEydP0Yyl4VZpsUedUnQxI8Cl/T+h/LQLABxp2OipfJw04WMssHnzULPj 7QwtEDEZuU7n+tfXVG5HPRklYF80zhVFpor2xyTSGGSb9iSrIP53Q8/ogWUzzJEFN0 EoVfgVqJdq/oLkLTZ5CMgySGNht7JuRJ6MzEhq4dpR3bwenCJvFgLI48h6/aHbJQYx 7EOB6VTMzn3AI9Ir6l+bpwk6PBQXM8o7tQTOPv4qo3zL8uuEXujtbYkUV4GFq9Q/kD mv/BF4CVMwTrQ== X-Virus-Scanned: amavis at mail.savoirfairelinux.com Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavis, port 10026) with ESMTP id VukIkSh6H6CV; Tue, 30 Jan 2024 18:32:11 -0500 (EST) Received: from mail.savoirfairelinux.com (mail.savoirfairelinux.com [192.168.48.237]) by mail.savoirfairelinux.com (Postfix) with ESMTP id D49819C47A8; Tue, 30 Jan 2024 18:32:11 -0500 (EST) Date: Tue, 30 Jan 2024 18:32:11 -0500 (EST) From: Charles Perry To: Krzysztof Kozlowski Cc: mdf , hao wu , yilun xu , trix , krzysztof kozlowski+dt , Brian CODY , Allen VANDIVER , linux-fpga , devicetree , linux-kernel Message-ID: <1723200717.393172.1706657531814.JavaMail.zimbra@savoirfairelinux.com> In-Reply-To: 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> Subject: Re: [PATCH 2/3] dt-bindings: fpga: xlnx,fpga-slave-selectmap: add DT schema Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: Zimbra 8.8.15_GA_4581 (ZimbraWebClient - FF120 (Linux)/8.8.15_GA_4581) Thread-Topic: dt-bindings: fpga: xlnx,fpga-slave-selectmap: add DT schema Thread-Index: bDEku0F6XFcq/uoMeZdjacG4xvsqgA== ----- On Jan 30, 2024, at 12:58 PM, Krzysztof Kozlowski krzysztof.kozlowski= @linaro.org wrote: > On 30/01/2024 18:05, Charles Perry wrote: >>=20 >>=20 >> ----- On Jan 30, 2024, at 11:05 AM, Krzysztof Kozlowski >> krzysztof.kozlowski@linaro.org wrote: >>=20 >>> 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 u= nderscore. >>>> I can use a dash instead but that would make things inconsistent acros= s 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 th= ere. >>>>> >>>> >>>> No, the "-b" is there to denote that the signal is active low. I think= its >>>> shorthand >>>> for "bar" which is the overline (=E2=80=BE) that electronic engineer p= ut 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 imp= lications. >>>> >>>> My reasoning behind assigning this to true was that the FPGA is an ext= ernal >>>> device on a bus that needs to be configured by a bus controller. The b= us >>>> controller >>>> would be the parent of the fpga DT node and the later would contain pr= operties >>>> 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". >>=20 >> This one: >> https://elixir.bootlin.com/linux/v6.8-rc2/source/Documentation/devicetre= e/bindings/bus/imx-weim.txt#L56 >=20 > 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. >=20 > Best regards, > Krzysztof Thank you for pointing that out, mc-peripheral-props.yaml seems to be exactly what I was looking for. Regards, Charles