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: <fc8bd7f5-3874-4958-be3d-eda9352cb534@alliedtelesis.co.nz>
Date: Tue, 24 Sep 2024 21:23:48 +0000
From: Chris Packham <Chris.Packham@...iedtelesis.co.nz>
To: Krzysztof Kozlowski <krzk@...nel.org>
CC: "andi.shyti@...nel.org" <andi.shyti@...nel.org>, "robh@...nel.org"
	<robh@...nel.org>, "krzk+dt@...nel.org" <krzk+dt@...nel.org>,
	"conor+dt@...nel.org" <conor+dt@...nel.org>, "tsbogend@...ha.franken.de"
	<tsbogend@...ha.franken.de>, "linux-i2c@...r.kernel.org"
	<linux-i2c@...r.kernel.org>, "devicetree@...r.kernel.org"
	<devicetree@...r.kernel.org>, "linux-kernel@...r.kernel.org"
	<linux-kernel@...r.kernel.org>, "linux-mips@...r.kernel.org"
	<linux-mips@...r.kernel.org>
Subject: Re: [PATCH v3 3/3] mips: dts: realtek: Add I2C controllers


On 24/09/24 20:50, Krzysztof Kozlowski wrote:
> On Tue, Sep 24, 2024 at 11:02:30AM +1200, Chris Packham wrote:
>> Add the I2C controllers that are part of the RTL9300 SoC.
>>
>> Signed-off-by: Chris Packham <chris.packham@...iedtelesis.co.nz>
>> ---
>>
>> Notes:
>>      Changes in v2:
>>      - Use reg property
>>
>>   arch/mips/boot/dts/realtek/rtl930x.dtsi | 18 ++++++++++++++++++
>>   1 file changed, 18 insertions(+)
>>
>> diff --git a/arch/mips/boot/dts/realtek/rtl930x.dtsi b/arch/mips/boot/dts/realtek/rtl930x.dtsi
>> index cf1b38b6c353..cc43025cd46c 100644
>> --- a/arch/mips/boot/dts/realtek/rtl930x.dtsi
>> +++ b/arch/mips/boot/dts/realtek/rtl930x.dtsi
>> @@ -33,12 +33,30 @@ lx_clk: clock-175mhz {
>>   	switch0: switch@...00000 {
>>   		compatible = "realtek,rtl9302c-switch", "syscon", "simple-mfd";
>>   		reg = <0x1b000000 0x10000>;
>> +		#address-cells = <1>;
>> +		#size-cells = <1>;
>>   
>>   		reboot {
>>   			compatible = "syscon-reboot";
>>   			offset = <0x0c>;
>>   			value = <0x01>;
>>   		};
>> +
>> +		i2c0: i2c@36c {
>> +			compatible = "realtek,rtl9300-i2c";
>> +			reg = <0x36c 0x14>;
>> +			status = "disabled";
>> +			#address-cells = <1>;
>> +			#size-cells = <0>;
>> +		};
> This should be sent as one series... You have dependency otherwise. Also
> this points to issue of mixing nodes with and without unit address.
>
> I think i2c children should be under some sort of "i2c" bus node.

something like this?

switch@...00000 {
    i2c-controller {
      i2c-mst1 {
          status = "okay";
          i2c@0 {
             reg = <0>;
             gpio@20 {
                 reg = <0x20>;
             };
          };
          i2c@2 {
             reg = <2>;
             gpio@20 {
                 reg = <0x20>;
             };
          };
      };
      i2c-mst2 {
          status = "disabled";
      };
   };
};

> Please propose entire realtek,rtl9302c-switch binding with the I2C. It's
> very confusing to see it partial.
Yep will combine these series.
>
>
> Best regards,
> Krzysztof
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ