Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp857473pxb; Fri, 22 Apr 2022 12:46:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYVVBhk2NbAewo9w+Y1CM8A5FZ3xLu3XuGBvDb3mHwUZPTaGvNBDrV2xZy/jsmEit/GynR X-Received: by 2002:a05:6a00:228c:b0:50c:6a9a:a325 with SMTP id f12-20020a056a00228c00b0050c6a9aa325mr6338417pfe.79.1650656796290; Fri, 22 Apr 2022 12:46:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650656796; cv=none; d=google.com; s=arc-20160816; b=QMbWQRANdLsqnJZ5HkaKtdJThFeaCG2oiaa20s2e49K7nww4SZ3pEg1lFb7JKDRwX0 u+nYd2Uhd0wEZSWSZHiaYDidJYLAo368L7VjlbGrH21WUhU7g/eoydBoJABS0i1FCYsw vFMvfKmyoBIucHYw+BdmI57vuuMIFqBaJVm9Mf+oXzYVKoXAaameH438dFEdaoeKyP5w tuTPgb5fIiLC+LZvw0GOnZgCkv32bD5XmcT/+uyxrKIqP6hhDIymUUMWdBgqWYwEOXD4 CSENCk1TjrFFS+c7jrnj8afH1GkcNYPSwI/WmoHf+5xza7Kf1A6E0Kfw3N7rEH/nWyBO TSWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:references:in-reply-to :sensitivity:importance:date:subject:cc:to:from:message-id :mime-version:dkim-signature; bh=JKDFD5qOa3jZFRTl2cmy5euTyUf6uXxIDJra4LUEVzk=; b=n3xOavdeNQHvDZigHGcfd7IMRfyYQG/W7EwklkRn7IicuUi1HP+BylnrcL9L3QGE0Z Hd0mmtdnTFnhCg99INEYmZUkqfYPXVI4MLo2dkuONPbkbEaUJlLs4t5o72x9Y0uSaVg/ ZFeUCuRfOmo2/9y6lucfzqfbDzHu0pgWSBV4zR3BCIkwdHOFuxn+jZ83CFUoN8PfMSEK SAaCYlkeWYhHYk+ES7bN5D6Rv0ee8thQJXNde87d0UbelpXHRi25/qE5xBrFsDHe3imF ZqdFbqfzpor7UiqEfPWSoybuUeSqDQtA7rqOI4073XbmfMbLPDagg59tWYBX007VJL7v 7KjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=jlyq4cgf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j13-20020a17090a840d00b001d2865c095fsi9163558pjn.61.2022.04.22.12.46.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 12:46:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=jlyq4cgf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 12FEF208589; Fri, 22 Apr 2022 11:48:56 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357201AbiDSUkP (ORCPT + 99 others); Tue, 19 Apr 2022 16:40:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239482AbiDSUkN (ORCPT ); Tue, 19 Apr 2022 16:40:13 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F0AF40910; Tue, 19 Apr 2022 13:37:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1650400612; bh=nM0QsTSHImhNtVCVh89StLB1opnXuQrH2wxHbxs6XBA=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=jlyq4cgfBSJ4vunKDweFSvyh6F+sz/1pWDI8nWlS2T5qoPZ/gQtIC6+Ye+o/sScRf g//fgUsnJiPBhtDydIvFTqhFGWbXFR/+aDIGbMMXSTHIqidt2gtI9xPgWN6SsxzpCN cZD9et57ilv4zaI0FBOMIok+7FiBnQ0Uya/fT9LY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [217.61.157.75] ([217.61.157.75]) by web-mail.gmx.net (3c-app-gmx-bap70.server.lan [172.19.172.170]) (via HTTP); Tue, 19 Apr 2022 22:36:52 +0200 MIME-Version: 1.0 Message-ID: From: Frank Wunderlich To: Krzysztof Kozlowski Cc: Frank Wunderlich , linux-rockchip@lists.infradead.org, Kishon Vijay Abraham I , Vinod Koul , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Bjorn Helgaas , Philipp Zabel , Johan Jonker , Peter Geis , Michael Riesch , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Aw: Re: Re: [RFC/RFT 1/6] dt-bindings: phy: rockchip: add pcie3 phy Content-Type: text/plain; charset=UTF-8 Date: Tue, 19 Apr 2022 22:36:52 +0200 Importance: normal Sensitivity: Normal In-Reply-To: References: <20220416135458.104048-1-linux@fw-web.de> <20220416135458.104048-2-linux@fw-web.de> <38e60bb2-123b-09cf-d6ef-3a07c6984108@linaro.org> Content-Transfer-Encoding: quoted-printable X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID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4AnqJPfJjtymlpWCmon0CQXE4WcGRjUd UFanqQGFulfOyG+e2GZPj2COnvRICnVGcRlmuSaXpH0CZF9G6jpscQcn/iQ8U8cTxqUHwikOp IMbQN0W X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE autolearn=no 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 > Gesendet: Dienstag, 19=2E April 2022 um 21:43 Uhr > Von: "Krzysztof Kozlowski" > An: "Frank Wunderlich" > Cc: "Frank Wunderlich" , linux-rockchip@lists=2Einfra= dead=2Eorg, "Kishon Vijay Abraham I" , "Vinod Koul" , "Rob Herring" , "Krzysztof Kozlowski"= , "Heiko Stuebner" , "Lorenzo Pie= ralisi" , "Krzysztof Wilczy=C5=84ski" , "Bjorn Helgaas" , "Philipp Zabel" , "Johan Jonker" , "Peter Geis" = , "Michael Riesch" , linux-phy@lists=2Einfradead=2Eorg, devicetree@vger=2Ekernel=2Eorg, linu= x-arm-kernel@lists=2Einfradead=2Eorg, linux-kernel@vger=2Ekernel=2Eorg, lin= ux-pci@vger=2Ekernel=2Eorg > Betreff: Re: Aw: Re: [RFC/RFT 1/6] dt-bindings: phy: rockchip: add pcie3= phy > > On 19/04/2022 19:49, Frank Wunderlich wrote: > >> The list should be strictly ordered (defined), so: > >> items: > >> - const: =2E=2E=2E > >> - const: =2E=2E=2E > >> - const: =2E=2E=2E > >> minItems: 1 > >> > >> However the question is - why the clocks have different amount? Is it > >> per different SoC implementation? > >=20 > > i only know the rk3568, which needs the clocks defined here, don't kno= w about rk3588 yet=2E > > in rk3568 TPM i have the pcie-part seems missing (at least the specifi= c register definition), so i had used the driver as i got it from the downs= tream kernel=2E > >=20 > > not yet looked if i find a rk3588 TPM and if this part is there as i c= annot test it (one of the reasons this is a rfc/rft)=2E >=20 > You can skip RK3588 compatible or define it this strictly also for that > chip=2E currently driver does clk_bulk initialization so i would define it like yo= u suggested (without any SoC specific switch): clocks: minItems: 1 maxItems: 3 clock-names: items: - const: "refclk_m" - const: "refclk_n" - const: "pclk" minItems: 1 > >>> + > >>> + "#phy-cells": > >>> + const: 0 > >>> + > >>> + resets: > >>> + maxItems: 1 > >>> + > >>> + reset-names: > >>> + const: phy > >>> + > >>> + rockchip,phy-grf: > >>> + $ref: /schemas/types=2Eyaml#/definitions/phandle > >>> + description: phandle to the syscon managing the phy "general re= gister files" > >>> + > >>> + rockchip,pipe-grf: > >>> + $ref: /schemas/types=2Eyaml#/definitions/phandle > >>> + description: phandle to the syscon managing the pipe "general r= egister files" > >>> + > >>> + rockchip,pcie30-phymode: > >>> + $ref: '/schemas/types=2Eyaml#/definitions/uint32' > >>> + description: | > >>> + use PHY_MODE_PCIE_AGGREGATION if not defined > >> > >> I don't understand the description=2E Do you mean here a case when th= e > >> variable is missing? > >=20 > > yes, if the property is not set, then value is PHY_MODE_PCIE_AGGREGATI= ON =3D 4 >=20 > Then just use "default: 4" >=20 > >=20 > >>> + minimum: 0x0 > >>> + maximum: 0x4 > >> > >> Please explain these values=2E Register values should not be part of > >> bindings, but instead some logical behavior of hardware or its logic= =2E > >=20 > > it's a bitmask, so maybe > >=20 > > description: | > > bit0: bifurcation for port 0 > > bit1: bifurcation for port 1 > > bit2: aggregation >=20 > That's good=2E I got impression you have a header with these values=2E I= f > yes - mention it here=2E >=20 > > use PHY_MODE_PCIE_AGGREGATION (4) as default >=20 > Just use default as I wrote above=2E so like this? rockchip,pcie30-phymode: $ref: '/schemas/types=2Eyaml#/definitions/uint32' description: | set the phy-mode for enabling bifurcation bit0: bifurcation for port 0 bit1: bifurcation for port 1 bit2: aggregation constants are defined in the dt-bindings/phy/phy-rockchip-pcie3=2Eh minimum: 0x0 maximum: 0x4 default: 0x4 regards Frank