lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <24c8071f-3ec8-c0e5-8a18-7783cf7af092@ti.com>
Date:   Thu, 3 Aug 2023 11:07:53 +0530
From:   Jayesh Choudhary <j-choudhary@...com>
To:     Roger Quadros <rogerq@...nel.org>, <nm@...com>, <vigneshr@...com>
CC:     <s-vadapalli@...com>, <afd@...com>, <kristo@...nel.org>,
        <robh+dt@...nel.org>, <krzysztof.kozlowski+dt@...aro.org>,
        <conor+dt@...nel.org>, <a-bhatia1@...com>, <r-ravikumar@...com>,
        <sabiya.d@...com>, <devicetree@...r.kernel.org>,
        <linux-kernel@...r.kernel.org>,
        <linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH v8 2/5] arm64: dts: ti: k3-j784s4-main: Add WIZ and SERDES
 PHY nodes

Hello Roger,

On 01/08/23 22:26, Roger Quadros wrote:
> 
> 
> On 01/08/2023 10:00, Jayesh Choudhary wrote:
>> From: Siddharth Vadapalli <s-vadapalli@...com>
>>
>> J784S4 SoC has 4 Serdes instances along with their respective WIZ
>> instances. Add device-tree nodes for them and disable them by default.
>>
>> Signed-off-by: Siddharth Vadapalli <s-vadapalli@...com>
>> [j-choudhary@...com: fix serdes_wiz clock order & disable serdes refclk]
>> Signed-off-by: Jayesh Choudhary <j-choudhary@...com>
>> ---
>>   arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 172 +++++++++++++++++++++
>>   1 file changed, 172 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
>> index 8a816563706b..fbf5ab94d785 100644
>> --- a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
>> +++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi
>> @@ -6,9 +6,19 @@
>>    */
>>   
>>   #include <dt-bindings/mux/mux.h>
>> +#include <dt-bindings/phy/phy.h>
>> +#include <dt-bindings/phy/phy-ti.h>
>>   
>>   #include "k3-serdes.h"
>>   
>> +/ {
>> +	serdes_refclk: serdes-refclk {
> 
> standard name should begin with clock
> 
>> +		#clock-cells = <0>;
>> +		compatible = "fixed-clock";
>> +		status = "disabled";
>> +	};
>> +};
>> +
>>   &cbass_main {
>>   	msmc_ram: sram@...00000 {
>>   		compatible = "mmio-sram";
>> @@ -709,6 +719,168 @@ main_sdhci1: mmc@...0000 {
>>   		status = "disabled";
>>   	};
>>   
>> +	serdes_wiz0: wiz@...0000 {
>> +		compatible = "ti,j784s4-wiz-10g";
>> +		#address-cells = <1>;
>> +		#size-cells = <1>;
>> +		power-domains = <&k3_pds 404 TI_SCI_PD_EXCLUSIVE>;
>> +		clocks = <&k3_clks 404 2>, <&k3_clks 404 6>, <&serdes_refclk>, <&k3_clks 404 5>;
>> +		clock-names = "fck", "core_ref_clk", "ext_ref_clk", "core_ref1_clk";
>> +		assigned-clocks = <&k3_clks 404 6>;
>> +		assigned-clock-parents = <&k3_clks 404 10>;
>> +		num-lanes = <4>;
>> +		#reset-cells = <1>;
>> +		#clock-cells = <1>;
>> +		ranges = <0x5060000 0x00 0x5060000 0x10000>;
>> +> +		status = "disabled";
>> +
> drop blank lines here and rest of this file where you set status to "disabled".
> 
>> +		serdes0: serdes@...0000 {
> 
> phy@...0000

According to the bindings, serdes is valid.
(./Documentation/devicetree/bindings/phy/ti,phy-j721e-wiz.yaml)
It would throw dtbs_check errors with phy@.
If its a binding change that you are suggesting, then it can be picked
up later on for all platform at once.

So keeping it as serdes@...0000 on all the suggested places.

> 
>> +			compatible = "ti,j721e-serdes-10g";
>> +			reg = <0x05060000 0x010000>;

[...]

>> +
>> +		serdes1: serdes@...0000 {
> 
> phy@...0000
>> +			compatible = "ti,j721e-serdes-10g";
>> +			reg = <0x05070000 0x010000>;
>> +			reg-names = "torrent_phy";

[...]

>> +
>> +		status = "disabled";
>> +
>> +		serdes2: serdes@...0000 {
> 
> phy@...0000
> 
>> +			compatible = "ti,j721e-serdes-10g";
>> +			reg = <0x05020000 0x010000>;

[...]

>> +		status = "disabled";
>> +
>> +		serdes4: serdes@...0000 {
> 
> phy@...0000
> 
>> +			/*

[...]

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ