Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3808491rwa; Tue, 23 Aug 2022 10:25:17 -0700 (PDT) X-Google-Smtp-Source: AA6agR5i5eZK9kkV/2GDYg54LrhiMbfrfLbyKFt8LiR3ZpirQdvk4zILgmI+PD4HVX1t/VfsBVMp X-Received: by 2002:a05:6402:22ea:b0:445:d29c:9694 with SMTP id dn10-20020a05640222ea00b00445d29c9694mr4442663edb.359.1661275516978; Tue, 23 Aug 2022 10:25:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661275516; cv=none; d=google.com; s=arc-20160816; b=WuyrATGxw7b4tGExPg38VJR8JUQH/iVtjf3BdvTBPPxK6Nf9DEwdMM1hhIU+MNOf+B QYCINAU0/h0SoOYxPaysnKFtKlPnLdb9+VEpnKCjfsvDZde03cPp3QjfVEq/gn4xPAmA 6sTopkw0i8z692DXxCwgy9P4DHHw50RfhfbFjMve2FSMk9OWQNY8my3HINHLzt1bwdPp 0Vx5WcM2jmtDfqSsszaAlQ87PmWAd/ivXvsOZRlx9Xa/w7yNKv30WEpz1UR50sBAXmV1 5XToiosJ6mo/SC9Motf6X0lEeRhn/fgYks2P5tw6bY8l3CwkyUVCkeAXt/b2irKx2d4q Z10w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=94ObA0sxNMfnUjuPe8k5nNJuRKk7+0BvBgJlyDjNB6U=; b=SSuu9dsqR2G+iH9xu9vKpFcOFU6x/pF53u26pUIMZTa06FLthf/qZ3F7gy478kT9Yz nBNrSmuOd4P7LjuJ2MoMdVfRm7rRI3kGSXok9lKlVnLpIQn1aVgBg72NgA6RZ1iVOQCH ODwPcGwbiwrlDZC3/cQosWvYRpBcRE/4pZsiIfjpKlYMCH9TTCGEedF+zu13H8926lc5 xEvT3t9a+5BTnA2MlHuOvTxKM2E3asW4lOGxEkC8dAkh8tdEH8aqtCRjnL4lyr8ZLL5u 3WVmfvahZwJZ31jVGtfh3LUq4GDDvd9iIIW+CpBlPWVbHgbi9OjZjApc03ZTnzSkXyWN tFTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MDkEhUd3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k5-20020a1709067ac500b00730a20dd838si191224ejo.84.2022.08.23.10.24.48; Tue, 23 Aug 2022 10:25:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MDkEhUd3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233691AbiHWRRm (ORCPT + 99 others); Tue, 23 Aug 2022 13:17:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229522AbiHWRQ6 (ORCPT ); Tue, 23 Aug 2022 13:16:58 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABE93A4B31 for ; Tue, 23 Aug 2022 06:41:52 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id d8so7349165lfq.0 for ; Tue, 23 Aug 2022 06:41:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=94ObA0sxNMfnUjuPe8k5nNJuRKk7+0BvBgJlyDjNB6U=; b=MDkEhUd3g66BHtv8ayb5PFnYCSFsUOgMs1J3OFRtFIDpx5xhG7xgYbSmjimRv6ufky 0wfiKTXYXbklnpVEt8tDV6m2bVs5LPglAFfaoUDTPIGO+GoX/RuIhFzfuv6ktR2mq6Bm XslsG1lxC6yywPsVcLVlAjbeWcpCz2+qrLnSTa7/rLHuRufNM/MTRldUkatcSxYQuae7 4G8OafImliELiwM/yF4BMHPZa6QWfkELACZZ74akC/cKMfVHwJ1t5R4ZXZDHXtC3EhHW DMI7bWkl64txNuxh2FKPvy0o+5mFvYDc7zCn7cjkMOtZFrBAJALhoUCrkv9loDPHUF1f 8SkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=94ObA0sxNMfnUjuPe8k5nNJuRKk7+0BvBgJlyDjNB6U=; b=tpqKhPDqYztBXb1+XmPVfIpXjDOC0126k46RZ/AZfb4B56c/03dIwqLznxsJnrqPKI BRi2Jy6OW+U8IdJCr7Tt44CRG1dM4AxHpOQNZjDDpzJeQGwlz1alBBcmzdGRVOB/95uC kT1a07mW6ClP82nVOV5enzUcCh8Od7P0HsHZqwjBkPjhxmJtZEr9IK+f0x6zu97mMiEq 4U8j6aXOBPSiOth3KOpRdae03hM8PMy9afnz/UjKyJbEq+FEBWHdQDqH8AeV2jcKdkN9 abLXh6Zgqmao7BjJR0gDsY1PmKFVbhI0+kX8u8RktlQZHFwUPQGfhOngiBv0FA94kUE6 u8PQ== X-Gm-Message-State: ACgBeo0WgwlsOj87zVr9VtxLbedKN8AvcocsBu0n9bvcFWWFPFcbsPoF iEXMvxl+xV6p/HM17y5CIVSKzw== X-Received: by 2002:a05:6512:39d3:b0:492:e172:e313 with SMTP id k19-20020a05651239d300b00492e172e313mr3623919lfu.628.1661262111019; Tue, 23 Aug 2022 06:41:51 -0700 (PDT) Received: from [192.168.0.11] (89-27-92-210.bb.dnainternet.fi. [89.27.92.210]) by smtp.gmail.com with ESMTPSA id p16-20020ac24ed0000000b0048b1b2233ddsm1493031lfr.120.2022.08.23.06.41.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 Aug 2022 06:41:49 -0700 (PDT) Message-ID: Date: Tue, 23 Aug 2022 16:41:44 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [RFC PATCH v2 1/4] dt-bindings: net: can: add STM32 bxcan DT bindings Content-Language: en-US To: Dario Binacchi , linux-kernel@vger.kernel.org Cc: Alexandre Torgue , Amarula patchwork , Marc Kleine-Budde , michael@amarulasolutions.com, Dario Binacchi , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Krzysztof Kozlowski , Maxime Coquelin , Paolo Abeni , Rob Herring , Wolfgang Grandegger , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-can@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, netdev@vger.kernel.org References: <20220820082936.686924-1-dario.binacchi@amarulasolutions.com> <20220820082936.686924-2-dario.binacchi@amarulasolutions.com> From: Krzysztof Kozlowski In-Reply-To: <20220820082936.686924-2-dario.binacchi@amarulasolutions.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20/08/2022 11:29, Dario Binacchi wrote: > Add documentation of device tree bindings for the STM32 basic extended > CAN (bxcan) controller. > > Signed-off-by: Dario Binacchi > Signed-off-by: Dario Binacchi > > --- > > Changes in v2: > - Change the file name into 'st,stm32-bxcan-core.yaml'. > - Rename compatibles: > - st,stm32-bxcan-core -> st,stm32f4-bxcan-core > - st,stm32-bxcan -> st,stm32f4-bxcan > - Rename master property to st,can-master. > - Remove the status property from the example. > - Put the node child properties as required. > > .../bindings/net/can/st,stm32-bxcan.yaml | 136 ++++++++++++++++++ > 1 file changed, 136 insertions(+) > create mode 100644 Documentation/devicetree/bindings/net/can/st,stm32-bxcan.yaml > > diff --git a/Documentation/devicetree/bindings/net/can/st,stm32-bxcan.yaml b/Documentation/devicetree/bindings/net/can/st,stm32-bxcan.yaml > new file mode 100644 > index 000000000000..288631b5556d > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/can/st,stm32-bxcan.yaml > @@ -0,0 +1,136 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/net/can/st,stm32-bxcan.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: STMicroelectronics bxCAN controller > + > +description: STMicroelectronics BxCAN controller for CAN bus > + > +maintainers: > + - Dario Binacchi > + > +allOf: > + - $ref: can-controller.yaml# > + > +properties: > + compatible: > + enum: > + - st,stm32f4-bxcan-core > + > + reg: > + maxItems: 1 > + > + resets: > + maxItems: 1 > + > + clocks: > + description: > + Input clock for registers access > + maxItems: 1 > + > + '#address-cells': > + const: 1 > + > + '#size-cells': > + const: 0 > + > +additionalProperties: false > + > +required: > + - compatible > + - reg > + - resets > + - clocks > + - '#address-cells' > + - '#size-cells' > + > +patternProperties: No improvements here, so my comment stay. Please fix it. > + "^can@[0-9]+$": > + type: object > + description: > + A CAN block node contains two subnodes, representing each one a CAN > + instance available on the machine. I still do not understand why you need children. You did not CC me on driver change, so difficult to say. You did not describe the parent device - there is no description. Why do you need parent device at all? This looks like some driver-driven-bindings instead of just real hardware description. Best regards, Krzysztof