* [PATCH v3 1/3] dt-bindings: i2c: dw: Document compatible thead,th1520-i2c
2024-06-18 7:42 [PATCH v3 0/3] Add I2C support on TH1520 Thomas Bonnefille
@ 2024-06-18 7:42 ` Thomas Bonnefille
2024-06-19 6:40 ` Jarkko Nikula
2024-06-18 7:42 ` [PATCH v3 2/3] riscv: dts: thead: Add TH1520 I2C nodes Thomas Bonnefille
` (4 subsequent siblings)
5 siblings, 1 reply; 17+ messages in thread
From: Thomas Bonnefille @ 2024-06-18 7:42 UTC (permalink / raw)
To: Andi Shyti, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Jisheng Zhang, Guo Ren, Fu Wei, Drew Fustini,
Emil Renner Berthing, Conor Dooley, Jarkko Nikula
Cc: Palmer Dabbelt, Albert Ou, Paul Walmsley, Thomas Petazzoni,
Miquèl Raynal, linux-i2c, devicetree, linux-kernel,
linux-riscv, Thomas Bonnefille, Conor Dooley
Add documentation for compatible string thead,th1520-i2c which can be
used specifically for the TH1520 SoC.
Signed-off-by: Thomas Bonnefille <thomas.bonnefille@bootlin.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
---
Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml b/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml
index d9293c57f573..60035a787e5c 100644
--- a/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml
+++ b/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml
@@ -33,6 +33,10 @@ properties:
- const: snps,designware-i2c
- description: Baikal-T1 SoC System I2C controller
const: baikal,bt1-sys-i2c
+ - description: T-HEAD TH1520 SoCs I2C controller
+ items:
+ - const: thead,th1520-i2c
+ - const: snps,designware-i2c
reg:
minItems: 1
--
2.45.2
^ permalink raw reply related [flat|nested] 17+ messages in thread* Re: [PATCH v3 1/3] dt-bindings: i2c: dw: Document compatible thead,th1520-i2c
2024-06-18 7:42 ` [PATCH v3 1/3] dt-bindings: i2c: dw: Document compatible thead,th1520-i2c Thomas Bonnefille
@ 2024-06-19 6:40 ` Jarkko Nikula
2024-06-19 7:37 ` Icenowy Zheng
2024-06-19 7:39 ` Krzysztof Kozlowski
0 siblings, 2 replies; 17+ messages in thread
From: Jarkko Nikula @ 2024-06-19 6:40 UTC (permalink / raw)
To: Thomas Bonnefille, Andi Shyti, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Jisheng Zhang, Guo Ren, Fu Wei, Drew Fustini,
Emil Renner Berthing, Conor Dooley
Cc: Palmer Dabbelt, Albert Ou, Paul Walmsley, Thomas Petazzoni,
Miquèl Raynal, linux-i2c, devicetree, linux-kernel,
linux-riscv, Conor Dooley
Hi
On 6/18/24 10:42 AM, Thomas Bonnefille wrote:
> Add documentation for compatible string thead,th1520-i2c which can be
> used specifically for the TH1520 SoC.
>
> Signed-off-by: Thomas Bonnefille <thomas.bonnefille@bootlin.com>
> Acked-by: Conor Dooley <conor.dooley@microchip.com>
> ---
> Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml b/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml
> index d9293c57f573..60035a787e5c 100644
> --- a/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml
> +++ b/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml
> @@ -33,6 +33,10 @@ properties:
> - const: snps,designware-i2c
> - description: Baikal-T1 SoC System I2C controller
> const: baikal,bt1-sys-i2c
> + - description: T-HEAD TH1520 SoCs I2C controller
> + items:
> + - const: thead,th1520-i2c
> + - const: snps,designware-i2c
>
Your comment below makes me thinking is this change needed? So is it
enough to specify "snps,designware-i2c" for the compatible string in
patch 2/3?
"It appears that the TH1520 I2C is already supported in the upstream
kernel through the Synopsis Designware I2C adapter driver."
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH v3 1/3] dt-bindings: i2c: dw: Document compatible thead,th1520-i2c
2024-06-19 6:40 ` Jarkko Nikula
@ 2024-06-19 7:37 ` Icenowy Zheng
2024-06-19 7:39 ` Krzysztof Kozlowski
1 sibling, 0 replies; 17+ messages in thread
From: Icenowy Zheng @ 2024-06-19 7:37 UTC (permalink / raw)
To: Jarkko Nikula, Thomas Bonnefille, Andi Shyti, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Jisheng Zhang, Guo Ren, Fu Wei,
Drew Fustini, Emil Renner Berthing, Conor Dooley
Cc: Palmer Dabbelt, Albert Ou, Paul Walmsley, Thomas Petazzoni,
Miquèl Raynal, linux-i2c, devicetree, linux-kernel,
linux-riscv, Conor Dooley
在 2024-06-19星期三的 09:40 +0300,Jarkko Nikula写道:
>
> Your comment below makes me thinking is this change needed? So is it
> enough to specify "snps,designware-i2c" for the compatible string in
> patch 2/3?
I think it's a common practice to have a SoC-specific compatible along
with the specific compatible, in case any silicon quirk is found.
>
> "It appears that the TH1520 I2C is already supported in the upstream
> kernel through the Synopsis Designware I2C adapter driver."
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH v3 1/3] dt-bindings: i2c: dw: Document compatible thead,th1520-i2c
2024-06-19 6:40 ` Jarkko Nikula
2024-06-19 7:37 ` Icenowy Zheng
@ 2024-06-19 7:39 ` Krzysztof Kozlowski
2024-06-19 13:42 ` Jarkko Nikula
1 sibling, 1 reply; 17+ messages in thread
From: Krzysztof Kozlowski @ 2024-06-19 7:39 UTC (permalink / raw)
To: Jarkko Nikula, Thomas Bonnefille, Andi Shyti, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Jisheng Zhang, Guo Ren, Fu Wei,
Drew Fustini, Emil Renner Berthing, Conor Dooley
Cc: Palmer Dabbelt, Albert Ou, Paul Walmsley, Thomas Petazzoni,
Miquèl Raynal, linux-i2c, devicetree, linux-kernel,
linux-riscv, Conor Dooley
On 19/06/2024 08:40, Jarkko Nikula wrote:
> Hi
>
> On 6/18/24 10:42 AM, Thomas Bonnefille wrote:
>> Add documentation for compatible string thead,th1520-i2c which can be
>> used specifically for the TH1520 SoC.
>>
>> Signed-off-by: Thomas Bonnefille <thomas.bonnefille@bootlin.com>
>> Acked-by: Conor Dooley <conor.dooley@microchip.com>
>> ---
>> Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml | 4 ++++
>> 1 file changed, 4 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml b/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml
>> index d9293c57f573..60035a787e5c 100644
>> --- a/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml
>> +++ b/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml
>> @@ -33,6 +33,10 @@ properties:
>> - const: snps,designware-i2c
>> - description: Baikal-T1 SoC System I2C controller
>> const: baikal,bt1-sys-i2c
>> + - description: T-HEAD TH1520 SoCs I2C controller
>> + items:
>> + - const: thead,th1520-i2c
>> + - const: snps,designware-i2c
>>
>
> Your comment below makes me thinking is this change needed? So is it
> enough to specify "snps,designware-i2c" for the compatible string in
> patch 2/3?
SoC specific compatible is always required (see writing bindings doc).
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH v3 1/3] dt-bindings: i2c: dw: Document compatible thead,th1520-i2c
2024-06-19 7:39 ` Krzysztof Kozlowski
@ 2024-06-19 13:42 ` Jarkko Nikula
0 siblings, 0 replies; 17+ messages in thread
From: Jarkko Nikula @ 2024-06-19 13:42 UTC (permalink / raw)
To: Krzysztof Kozlowski, Thomas Bonnefille, Andi Shyti, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Jisheng Zhang, Guo Ren, Fu Wei,
Drew Fustini, Emil Renner Berthing, Conor Dooley
Cc: Palmer Dabbelt, Albert Ou, Paul Walmsley, Thomas Petazzoni,
Miquèl Raynal, linux-i2c, devicetree, linux-kernel,
linux-riscv, Conor Dooley
On 6/19/24 10:39 AM, Krzysztof Kozlowski wrote:
> On 19/06/2024 08:40, Jarkko Nikula wrote:
>> Hi
>>
>> On 6/18/24 10:42 AM, Thomas Bonnefille wrote:
>>> Add documentation for compatible string thead,th1520-i2c which can be
>>> used specifically for the TH1520 SoC.
>>>
>>> Signed-off-by: Thomas Bonnefille <thomas.bonnefille@bootlin.com>
>>> Acked-by: Conor Dooley <conor.dooley@microchip.com>
>>> ---
>>> Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml | 4 ++++
>>> 1 file changed, 4 insertions(+)
>>>
>>> diff --git a/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml b/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml
>>> index d9293c57f573..60035a787e5c 100644
>>> --- a/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml
>>> +++ b/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml
>>> @@ -33,6 +33,10 @@ properties:
>>> - const: snps,designware-i2c
>>> - description: Baikal-T1 SoC System I2C controller
>>> const: baikal,bt1-sys-i2c
>>> + - description: T-HEAD TH1520 SoCs I2C controller
>>> + items:
>>> + - const: thead,th1520-i2c
>>> + - const: snps,designware-i2c
>>>
>>
>> Your comment below makes me thinking is this change needed? So is it
>> enough to specify "snps,designware-i2c" for the compatible string in
>> patch 2/3?
>
> SoC specific compatible is always required (see writing bindings doc).
>
Fair enough.
Reviewed-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH v3 2/3] riscv: dts: thead: Add TH1520 I2C nodes
2024-06-18 7:42 [PATCH v3 0/3] Add I2C support on TH1520 Thomas Bonnefille
2024-06-18 7:42 ` [PATCH v3 1/3] dt-bindings: i2c: dw: Document compatible thead,th1520-i2c Thomas Bonnefille
@ 2024-06-18 7:42 ` Thomas Bonnefille
2024-06-25 21:30 ` Drew Fustini
2024-06-18 7:42 ` [PATCH v3 3/3] riscv: dts: thead: Enable I2C on the BeagleV-Ahead Thomas Bonnefille
` (3 subsequent siblings)
5 siblings, 1 reply; 17+ messages in thread
From: Thomas Bonnefille @ 2024-06-18 7:42 UTC (permalink / raw)
To: Andi Shyti, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Jisheng Zhang, Guo Ren, Fu Wei, Drew Fustini,
Emil Renner Berthing, Conor Dooley, Jarkko Nikula
Cc: Palmer Dabbelt, Albert Ou, Paul Walmsley, Thomas Petazzoni,
Miquèl Raynal, linux-i2c, devicetree, linux-kernel,
linux-riscv, Thomas Bonnefille
Add nodes for the six I2C on the T-Head TH1520 RISCV SoC.
Signed-off-by: Thomas Bonnefille <thomas.bonnefille@bootlin.com>
---
arch/riscv/boot/dts/thead/th1520.dtsi | 60 +++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/thead/th1520.dtsi
index d88d4cade02c..f0b2b05e9bd4 100644
--- a/arch/riscv/boot/dts/thead/th1520.dtsi
+++ b/arch/riscv/boot/dts/thead/th1520.dtsi
@@ -232,6 +232,36 @@ uart3: serial@ffe7f04000 {
status = "disabled";
};
+ i2c0: i2c@ffe7f20000 {
+ compatible = "thead,th1520-i2c", "snps,designware-i2c";
+ reg = <0xff 0xe7f20000 0x0 0x4000>;
+ interrupts = <44 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&clk CLK_I2C0>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "disabled";
+ };
+
+ i2c1: i2c@ffe7f24000 {
+ compatible = "thead,th1520-i2c", "snps,designware-i2c";
+ reg = <0xff 0xe7f24000 0x0 0x4000>;
+ interrupts = <45 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&clk CLK_I2C1>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "disabled";
+ };
+
+ i2c4: i2c@ffe7f28000 {
+ compatible = "thead,th1520-i2c", "snps,designware-i2c";
+ reg = <0xff 0xe7f28000 0x0 0x4000>;
+ interrupts = <48 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&clk CLK_I2C4>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "disabled";
+ };
+
gpio@ffe7f34000 {
compatible = "snps,dw-apb-gpio";
reg = <0xff 0xe7f34000 0x0 0x1000>;
@@ -320,6 +350,16 @@ padctrl0_apsys: pinctrl@ffec007000 {
clocks = <&clk CLK_PADCTRL0>;
};
+ i2c2: i2c@ffec00c000 {
+ compatible = "thead,th1520-i2c", "snps,designware-i2c";
+ reg = <0xff 0xec00c000 0x0 0x4000>;
+ interrupts = <46 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&clk CLK_I2C2>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "disabled";
+ };
+
uart2: serial@ffec010000 {
compatible = "snps,dw-apb-uart";
reg = <0xff 0xec010000 0x0 0x4000>;
@@ -331,6 +371,16 @@ uart2: serial@ffec010000 {
status = "disabled";
};
+ i2c3: i2c@ffec014000 {
+ compatible = "thead,th1520-i2c", "snps,designware-i2c";
+ reg = <0xff 0xec014000 0x0 0x4000>;
+ interrupts = <47 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&clk CLK_I2C3>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "disabled";
+ };
+
dmac0: dma-controller@ffefc00000 {
compatible = "snps,axi-dma-1.01a";
reg = <0xff 0xefc00000 0x0 0x1000>;
@@ -405,6 +455,16 @@ uart5: serial@fff7f0c000 {
status = "disabled";
};
+ i2c5: i2c@fff7f2c000 {
+ compatible = "thead,th1520-i2c", "snps,designware-i2c";
+ reg = <0xff 0xf7f2c000 0x0 0x4000>;
+ interrupts = <49 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&clk CLK_I2C5>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "disabled";
+ };
+
timer4: timer@ffffc33000 {
compatible = "snps,dw-apb-timer";
reg = <0xff 0xffc33000 0x0 0x14>;
--
2.45.2
^ permalink raw reply related [flat|nested] 17+ messages in thread* Re: [PATCH v3 2/3] riscv: dts: thead: Add TH1520 I2C nodes
2024-06-18 7:42 ` [PATCH v3 2/3] riscv: dts: thead: Add TH1520 I2C nodes Thomas Bonnefille
@ 2024-06-25 21:30 ` Drew Fustini
0 siblings, 0 replies; 17+ messages in thread
From: Drew Fustini @ 2024-06-25 21:30 UTC (permalink / raw)
To: Thomas Bonnefille
Cc: Andi Shyti, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Jisheng Zhang, Guo Ren, Fu Wei, Emil Renner Berthing,
Conor Dooley, Jarkko Nikula, Palmer Dabbelt, Albert Ou,
Paul Walmsley, Thomas Petazzoni, Miquèl Raynal, linux-i2c,
devicetree, linux-kernel, linux-riscv
On Tue, Jun 18, 2024 at 09:42:39AM +0200, Thomas Bonnefille wrote:
> Add nodes for the six I2C on the T-Head TH1520 RISCV SoC.
>
> Signed-off-by: Thomas Bonnefille <thomas.bonnefille@bootlin.com>
> ---
> arch/riscv/boot/dts/thead/th1520.dtsi | 60 +++++++++++++++++++++++++++++++++++
> 1 file changed, 60 insertions(+)
>
> diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/thead/th1520.dtsi
> index d88d4cade02c..f0b2b05e9bd4 100644
> --- a/arch/riscv/boot/dts/thead/th1520.dtsi
> +++ b/arch/riscv/boot/dts/thead/th1520.dtsi
> @@ -232,6 +232,36 @@ uart3: serial@ffe7f04000 {
> status = "disabled";
> };
>
> + i2c0: i2c@ffe7f20000 {
> + compatible = "thead,th1520-i2c", "snps,designware-i2c";
> + reg = <0xff 0xe7f20000 0x0 0x4000>;
> + interrupts = <44 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&clk CLK_I2C0>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> + status = "disabled";
> + };
> +
> + i2c1: i2c@ffe7f24000 {
> + compatible = "thead,th1520-i2c", "snps,designware-i2c";
> + reg = <0xff 0xe7f24000 0x0 0x4000>;
> + interrupts = <45 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&clk CLK_I2C1>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> + status = "disabled";
> + };
> +
> + i2c4: i2c@ffe7f28000 {
> + compatible = "thead,th1520-i2c", "snps,designware-i2c";
> + reg = <0xff 0xe7f28000 0x0 0x4000>;
> + interrupts = <48 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&clk CLK_I2C4>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> + status = "disabled";
> + };
> +
> gpio@ffe7f34000 {
> compatible = "snps,dw-apb-gpio";
> reg = <0xff 0xe7f34000 0x0 0x1000>;
> @@ -320,6 +350,16 @@ padctrl0_apsys: pinctrl@ffec007000 {
> clocks = <&clk CLK_PADCTRL0>;
> };
>
> + i2c2: i2c@ffec00c000 {
> + compatible = "thead,th1520-i2c", "snps,designware-i2c";
> + reg = <0xff 0xec00c000 0x0 0x4000>;
> + interrupts = <46 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&clk CLK_I2C2>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> + status = "disabled";
> + };
> +
> uart2: serial@ffec010000 {
> compatible = "snps,dw-apb-uart";
> reg = <0xff 0xec010000 0x0 0x4000>;
> @@ -331,6 +371,16 @@ uart2: serial@ffec010000 {
> status = "disabled";
> };
>
> + i2c3: i2c@ffec014000 {
> + compatible = "thead,th1520-i2c", "snps,designware-i2c";
> + reg = <0xff 0xec014000 0x0 0x4000>;
> + interrupts = <47 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&clk CLK_I2C3>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> + status = "disabled";
> + };
> +
> dmac0: dma-controller@ffefc00000 {
> compatible = "snps,axi-dma-1.01a";
> reg = <0xff 0xefc00000 0x0 0x1000>;
> @@ -405,6 +455,16 @@ uart5: serial@fff7f0c000 {
> status = "disabled";
> };
>
> + i2c5: i2c@fff7f2c000 {
> + compatible = "thead,th1520-i2c", "snps,designware-i2c";
> + reg = <0xff 0xf7f2c000 0x0 0x4000>;
> + interrupts = <49 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&clk CLK_I2C5>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> + status = "disabled";
> + };
> +
> timer4: timer@ffffc33000 {
> compatible = "snps,dw-apb-timer";
> reg = <0xff 0xffc33000 0x0 0x14>;
>
> --
> 2.45.2
>
Reviewed-by: Drew Fustini <dfustini@tenstorrent.com>
^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH v3 3/3] riscv: dts: thead: Enable I2C on the BeagleV-Ahead
2024-06-18 7:42 [PATCH v3 0/3] Add I2C support on TH1520 Thomas Bonnefille
2024-06-18 7:42 ` [PATCH v3 1/3] dt-bindings: i2c: dw: Document compatible thead,th1520-i2c Thomas Bonnefille
2024-06-18 7:42 ` [PATCH v3 2/3] riscv: dts: thead: Add TH1520 I2C nodes Thomas Bonnefille
@ 2024-06-18 7:42 ` Thomas Bonnefille
2024-06-25 21:30 ` Drew Fustini
2024-07-21 22:47 ` Emil Renner Berthing
2024-06-25 21:28 ` [PATCH v3 0/3] Add I2C support on TH1520 Drew Fustini
` (2 subsequent siblings)
5 siblings, 2 replies; 17+ messages in thread
From: Thomas Bonnefille @ 2024-06-18 7:42 UTC (permalink / raw)
To: Andi Shyti, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Jisheng Zhang, Guo Ren, Fu Wei, Drew Fustini,
Emil Renner Berthing, Conor Dooley, Jarkko Nikula
Cc: Palmer Dabbelt, Albert Ou, Paul Walmsley, Thomas Petazzoni,
Miquèl Raynal, linux-i2c, devicetree, linux-kernel,
linux-riscv, Thomas Bonnefille
This commit enables the I2C0 controller of the TH1520, together with
the FT24C32A EEPROM that is connected to it.
In addition, this commit also enables the I2C controllers I2C2, I2C4
and I2C5 as they are all three exposed on headers (P9 19 and 20 for I2C2,
P9 17 and 18 for I2C5 and MikroBus 7 and 5 for I2C4).
It also defined the required pinctrl nodes.
Signed-off-by: Thomas Bonnefille <thomas.bonnefille@bootlin.com>
---
arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts | 84 ++++++++++++++++++++++
1 file changed, 84 insertions(+)
diff --git a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts
index 57a2578123eb..b5c4f1811955 100644
--- a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts
+++ b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts
@@ -122,6 +122,19 @@ led-pins {
};
&padctrl0_apsys {
+ i2c2_pins: i2c2-0 {
+ i2c-pins {
+ pins = "I2C2_SDA",
+ "I2C2_SCL";
+ function = "i2c";
+ bias-pull-up = <48000>;
+ drive-strength = <7>;
+ input-enable;
+ input-schmitt-enable;
+ slew-rate = <0>;
+ };
+ };
+
uart0_pins: uart0-0 {
tx-pins {
pins = "UART0_TXD";
@@ -145,8 +158,79 @@ rx-pins {
};
};
+&padctrl1_apsys {
+ i2c0_pins: i2c0-0 {
+ i2c-pins {
+ pins = "I2C0_SDA",
+ "I2C0_SCL";
+ function = "i2c";
+ bias-pull-up = <48000>;
+ drive-strength = <7>;
+ input-enable;
+ input-schmitt-enable;
+ slew-rate = <0>;
+ };
+ };
+
+ i2c4_pins: i2c4-0 {
+ i2c-pins {
+ pins = "GPIO0_19", /* I2C4_SDA */
+ "GPIO0_18"; /* I2C4_SCL */
+ function = "i2c";
+ bias-pull-up = <48000>;
+ drive-strength = <7>;
+ input-enable;
+ input-schmitt-enable;
+ slew-rate = <0>;
+ };
+ };
+
+ i2c5_pins: i2c5-0 {
+ i2c-pins {
+ pins = "QSPI1_D0_MOSI", /* I2C5_SDA */
+ "QSPI1_CSN0"; /* I2C5_SCL */
+ function = "i2c";
+ bias-pull-up = <48000>;
+ drive-strength = <7>;
+ input-enable;
+ input-schmitt-enable;
+ slew-rate = <0>;
+ };
+ };
+};
+
&uart0 {
pinctrl-names = "default";
pinctrl-0 = <&uart0_pins>;
status = "okay";
};
+
+&i2c0 {
+ clock-frequency = <100000>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c0_pins>;
+ status = "okay";
+
+ eeprom@50 {
+ compatible = "atmel,24c32";
+ reg = <0x50>;
+ };
+};
+
+&i2c2 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c2_pins>;
+ status = "okay";
+};
+
+&i2c4 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c4_pins>;
+ status = "okay";
+};
+
+&i2c5 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c5_pins>;
+ status = "okay";
+};
--
2.45.2
^ permalink raw reply related [flat|nested] 17+ messages in thread* Re: [PATCH v3 3/3] riscv: dts: thead: Enable I2C on the BeagleV-Ahead
2024-06-18 7:42 ` [PATCH v3 3/3] riscv: dts: thead: Enable I2C on the BeagleV-Ahead Thomas Bonnefille
@ 2024-06-25 21:30 ` Drew Fustini
2024-07-21 22:47 ` Emil Renner Berthing
1 sibling, 0 replies; 17+ messages in thread
From: Drew Fustini @ 2024-06-25 21:30 UTC (permalink / raw)
To: Thomas Bonnefille
Cc: Andi Shyti, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Jisheng Zhang, Guo Ren, Fu Wei, Emil Renner Berthing,
Conor Dooley, Jarkko Nikula, Palmer Dabbelt, Albert Ou,
Paul Walmsley, Thomas Petazzoni, Miquèl Raynal, linux-i2c,
devicetree, linux-kernel, linux-riscv
On Tue, Jun 18, 2024 at 09:42:40AM +0200, Thomas Bonnefille wrote:
> This commit enables the I2C0 controller of the TH1520, together with
> the FT24C32A EEPROM that is connected to it.
> In addition, this commit also enables the I2C controllers I2C2, I2C4
> and I2C5 as they are all three exposed on headers (P9 19 and 20 for I2C2,
> P9 17 and 18 for I2C5 and MikroBus 7 and 5 for I2C4).
> It also defined the required pinctrl nodes.
>
> Signed-off-by: Thomas Bonnefille <thomas.bonnefille@bootlin.com>
> ---
> arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts | 84 ++++++++++++++++++++++
> 1 file changed, 84 insertions(+)
>
> diff --git a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts
> index 57a2578123eb..b5c4f1811955 100644
> --- a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts
> +++ b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts
> @@ -122,6 +122,19 @@ led-pins {
> };
>
> &padctrl0_apsys {
> + i2c2_pins: i2c2-0 {
> + i2c-pins {
> + pins = "I2C2_SDA",
> + "I2C2_SCL";
> + function = "i2c";
> + bias-pull-up = <48000>;
> + drive-strength = <7>;
> + input-enable;
> + input-schmitt-enable;
> + slew-rate = <0>;
> + };
> + };
> +
> uart0_pins: uart0-0 {
> tx-pins {
> pins = "UART0_TXD";
> @@ -145,8 +158,79 @@ rx-pins {
> };
> };
>
> +&padctrl1_apsys {
> + i2c0_pins: i2c0-0 {
> + i2c-pins {
> + pins = "I2C0_SDA",
> + "I2C0_SCL";
> + function = "i2c";
> + bias-pull-up = <48000>;
> + drive-strength = <7>;
> + input-enable;
> + input-schmitt-enable;
> + slew-rate = <0>;
> + };
> + };
> +
> + i2c4_pins: i2c4-0 {
> + i2c-pins {
> + pins = "GPIO0_19", /* I2C4_SDA */
> + "GPIO0_18"; /* I2C4_SCL */
> + function = "i2c";
> + bias-pull-up = <48000>;
> + drive-strength = <7>;
> + input-enable;
> + input-schmitt-enable;
> + slew-rate = <0>;
> + };
> + };
> +
> + i2c5_pins: i2c5-0 {
> + i2c-pins {
> + pins = "QSPI1_D0_MOSI", /* I2C5_SDA */
> + "QSPI1_CSN0"; /* I2C5_SCL */
> + function = "i2c";
> + bias-pull-up = <48000>;
> + drive-strength = <7>;
> + input-enable;
> + input-schmitt-enable;
> + slew-rate = <0>;
> + };
> + };
> +};
> +
> &uart0 {
> pinctrl-names = "default";
> pinctrl-0 = <&uart0_pins>;
> status = "okay";
> };
> +
> +&i2c0 {
> + clock-frequency = <100000>;
> + pinctrl-names = "default";
> + pinctrl-0 = <&i2c0_pins>;
> + status = "okay";
> +
> + eeprom@50 {
> + compatible = "atmel,24c32";
> + reg = <0x50>;
> + };
> +};
> +
> +&i2c2 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&i2c2_pins>;
> + status = "okay";
> +};
> +
> +&i2c4 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&i2c4_pins>;
> + status = "okay";
> +};
> +
> +&i2c5 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&i2c5_pins>;
> + status = "okay";
> +};
>
> --
> 2.45.2
>
Reviewed-by: Drew Fustini <dfustini@tenstorrent.com>
^ permalink raw reply [flat|nested] 17+ messages in thread* Re: [PATCH v3 3/3] riscv: dts: thead: Enable I2C on the BeagleV-Ahead
2024-06-18 7:42 ` [PATCH v3 3/3] riscv: dts: thead: Enable I2C on the BeagleV-Ahead Thomas Bonnefille
2024-06-25 21:30 ` Drew Fustini
@ 2024-07-21 22:47 ` Emil Renner Berthing
1 sibling, 0 replies; 17+ messages in thread
From: Emil Renner Berthing @ 2024-07-21 22:47 UTC (permalink / raw)
To: Thomas Bonnefille, Andi Shyti, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Jisheng Zhang, Guo Ren, Fu Wei, Drew Fustini,
Emil Renner Berthing, Conor Dooley, Jarkko Nikula
Cc: Palmer Dabbelt, Albert Ou, Paul Walmsley, Thomas Petazzoni,
Miquèl Raynal, linux-i2c, devicetree, linux-kernel,
linux-riscv
Thomas Bonnefille wrote:
> This commit enables the I2C0 controller of the TH1520, together with
> the FT24C32A EEPROM that is connected to it.
> In addition, this commit also enables the I2C controllers I2C2, I2C4
> and I2C5 as they are all three exposed on headers (P9 19 and 20 for I2C2,
> P9 17 and 18 for I2C5 and MikroBus 7 and 5 for I2C4).
> It also defined the required pinctrl nodes.
>
> Signed-off-by: Thomas Bonnefille <thomas.bonnefille@bootlin.com>
> ---
> arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts | 84 ++++++++++++++++++++++
> 1 file changed, 84 insertions(+)
>
> diff --git a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts
> index 57a2578123eb..b5c4f1811955 100644
> --- a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts
> +++ b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts
> @@ -122,6 +122,19 @@ led-pins {
> };
>
> &padctrl0_apsys {
> + i2c2_pins: i2c2-0 {
> + i2c-pins {
> + pins = "I2C2_SDA",
> + "I2C2_SCL";
> + function = "i2c";
> + bias-pull-up = <48000>;
nit: This and below can just be written
bias-pull-up;
> + drive-strength = <7>;
> + input-enable;
> + input-schmitt-enable;
> + slew-rate = <0>;
> + };
> + };
> +
> uart0_pins: uart0-0 {
> tx-pins {
> pins = "UART0_TXD";
> @@ -145,8 +158,79 @@ rx-pins {
> };
> };
>
> +&padctrl1_apsys {
> + i2c0_pins: i2c0-0 {
> + i2c-pins {
> + pins = "I2C0_SDA",
> + "I2C0_SCL";
> + function = "i2c";
> + bias-pull-up = <48000>;
> + drive-strength = <7>;
> + input-enable;
> + input-schmitt-enable;
> + slew-rate = <0>;
> + };
> + };
> +
> + i2c4_pins: i2c4-0 {
> + i2c-pins {
> + pins = "GPIO0_19", /* I2C4_SDA */
> + "GPIO0_18"; /* I2C4_SCL */
> + function = "i2c";
> + bias-pull-up = <48000>;
> + drive-strength = <7>;
> + input-enable;
> + input-schmitt-enable;
> + slew-rate = <0>;
> + };
> + };
> +
> + i2c5_pins: i2c5-0 {
> + i2c-pins {
> + pins = "QSPI1_D0_MOSI", /* I2C5_SDA */
> + "QSPI1_CSN0"; /* I2C5_SCL */
> + function = "i2c";
> + bias-pull-up = <48000>;
> + drive-strength = <7>;
> + input-enable;
> + input-schmitt-enable;
> + slew-rate = <0>;
> + };
> + };
> +};
> +
> &uart0 {
> pinctrl-names = "default";
> pinctrl-0 = <&uart0_pins>;
> status = "okay";
> };
> +
> +&i2c0 {
> + clock-frequency = <100000>;
> + pinctrl-names = "default";
> + pinctrl-0 = <&i2c0_pins>;
> + status = "okay";
> +
> + eeprom@50 {
> + compatible = "atmel,24c32";
> + reg = <0x50>;
> + };
> +};
> +
> +&i2c2 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&i2c2_pins>;
> + status = "okay";
> +};
> +
> +&i2c4 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&i2c4_pins>;
> + status = "okay";
> +};
> +
> +&i2c5 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&i2c5_pins>;
> + status = "okay";
> +};
These nodes are still not sorted alphabetically.
>
> --
> 2.45.2
>
>
> _______________________________________________
> linux-riscv mailing list
> linux-riscv@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH v3 0/3] Add I2C support on TH1520
2024-06-18 7:42 [PATCH v3 0/3] Add I2C support on TH1520 Thomas Bonnefille
` (2 preceding siblings ...)
2024-06-18 7:42 ` [PATCH v3 3/3] riscv: dts: thead: Enable I2C on the BeagleV-Ahead Thomas Bonnefille
@ 2024-06-25 21:28 ` Drew Fustini
2024-06-28 9:30 ` Andi Shyti
2024-07-10 7:48 ` (subset) " Andi Shyti
5 siblings, 0 replies; 17+ messages in thread
From: Drew Fustini @ 2024-06-25 21:28 UTC (permalink / raw)
To: Thomas Bonnefille
Cc: Andi Shyti, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Jisheng Zhang, Guo Ren, Fu Wei, Emil Renner Berthing,
Conor Dooley, Jarkko Nikula, Palmer Dabbelt, Albert Ou,
Paul Walmsley, Thomas Petazzoni, Miquèl Raynal, linux-i2c,
devicetree, linux-kernel, linux-riscv, Conor Dooley
On Tue, Jun 18, 2024 at 09:42:37AM +0200, Thomas Bonnefille wrote:
> This adds I2C support in the device tree of the T-Head TH1520 RISCV-SoC
> and a default configuration for the BeagleV-Ahead. It appears that the
> TH1520 I2C is already supported in the upstream kernel through the
> Synopsis Designware I2C adapter driver.
>
> This patch depends on the clock patch from Drew Fustini
> Link: https://lore.kernel.org/linux-riscv/20240615-th1520-clk-v1-0-3ba4978c4d6b@tenstorrent.com
> and the pinctrl patch from Emil Renner Berthing
> Link: https://lore.kernel.org/linux-riscv/20240103132852.298964-1-emil.renner.berthing@canonical.com
>
> Changed from v1:
> 1. Remove redundant example for Synopsis DesignWare-I2C bindings
> 2. Remove Node Ordering commit as it has already been taken
> 3. Remove EEPROM label
> 4. Rebase on pinctrl and clock driver patches
> 5. Add pinctrl configuration
> 6. Replaced the fixed-clock with a correct configuration
>
> Changed from v2:
> 1. Reorder nodes to conserve ascending register node ordering
> 2. Add support for I2C2 as it probably use the same controller
> 3. Format comments to match kernel coding style
> 4. Reorder nodes to conserve alphabetical node ordering
> 6. Declare I2C2
> 6. Set pinctrl pull-up resistor to the highest value
>
> Signed-off-by: Thomas Bonnefille <thomas.bonnefille@bootlin.com>
> ---
> Thomas Bonnefille (3):
> dt-bindings: i2c: dw: Document compatible thead,th1520-i2c
> riscv: dts: thead: Add TH1520 I2C nodes
> riscv: dts: thead: Enable I2C on the BeagleV-Ahead
>
> .../bindings/i2c/snps,designware-i2c.yaml | 4 ++
> arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts | 84 ++++++++++++++++++++++
> arch/riscv/boot/dts/thead/th1520.dtsi | 60 ++++++++++++++++
> 3 files changed, 148 insertions(+)
The I2C controllers and the EEPROM probe okay on the BeagleV Ahead:
[ 3.834654] i2c_dev: i2c /dev entries driver
[ 4.037875] at24 0-0050: supply vcc not found, using dummy regulator
[ 4.050303] at24 0-0050: 4096 byte 24c32 EEPROM, writable, 1 bytes/write
The EEPROM on I2C0 is working correctly:
# hexdump -C /sys/class/i2c-dev/i2c-0/device/0-0050/eeprom
[ 196.438252] random: crng init done
00000000 42 45 41 47 4c 45 56 2d 41 48 45 41 44 2d 41 30 |BEAGLEV-AHEAD-A0|
00000010 0a ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
00000020 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
*
00001000
I did have to modify the .config to enable the necessary drivers.
Could you add patch that includes these in arch/riscv/configs/defconfig?
CONFIG_I2C_DESIGNWARE_CORE
CONFIG_I2C_DESIGNWARE_PLATFORM
CONFIG_EEPROM_AT24
Thanks,
Drew
^ permalink raw reply [flat|nested] 17+ messages in thread* Re: [PATCH v3 0/3] Add I2C support on TH1520
2024-06-18 7:42 [PATCH v3 0/3] Add I2C support on TH1520 Thomas Bonnefille
` (3 preceding siblings ...)
2024-06-25 21:28 ` [PATCH v3 0/3] Add I2C support on TH1520 Drew Fustini
@ 2024-06-28 9:30 ` Andi Shyti
2024-06-28 10:49 ` Conor Dooley
2024-07-10 7:48 ` (subset) " Andi Shyti
5 siblings, 1 reply; 17+ messages in thread
From: Andi Shyti @ 2024-06-28 9:30 UTC (permalink / raw)
To: Thomas Bonnefille
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Jisheng Zhang,
Guo Ren, Fu Wei, Drew Fustini, Emil Renner Berthing, Conor Dooley,
Jarkko Nikula, Palmer Dabbelt, Albert Ou, Paul Walmsley,
Thomas Petazzoni, Miquèl Raynal, linux-i2c, devicetree,
linux-kernel, linux-riscv, Conor Dooley
Hi,
On Tue, Jun 18, 2024 at 09:42:37AM GMT, Thomas Bonnefille wrote:
> This adds I2C support in the device tree of the T-Head TH1520 RISCV-SoC
> and a default configuration for the BeagleV-Ahead. It appears that the
> TH1520 I2C is already supported in the upstream kernel through the
> Synopsis Designware I2C adapter driver.
>
> This patch depends on the clock patch from Drew Fustini
> Link: https://lore.kernel.org/linux-riscv/20240615-th1520-clk-v1-0-3ba4978c4d6b@tenstorrent.com
> and the pinctrl patch from Emil Renner Berthing
> Link: https://lore.kernel.org/linux-riscv/20240103132852.298964-1-emil.renner.berthing@canonical.com
I think after these two go in...
> Changed from v1:
> 1. Remove redundant example for Synopsis DesignWare-I2C bindings
> 2. Remove Node Ordering commit as it has already been taken
> 3. Remove EEPROM label
> 4. Rebase on pinctrl and clock driver patches
> 5. Add pinctrl configuration
> 6. Replaced the fixed-clock with a correct configuration
>
> Changed from v2:
> 1. Reorder nodes to conserve ascending register node ordering
> 2. Add support for I2C2 as it probably use the same controller
> 3. Format comments to match kernel coding style
> 4. Reorder nodes to conserve alphabetical node ordering
> 6. Declare I2C2
> 6. Set pinctrl pull-up resistor to the highest value
>
> Signed-off-by: Thomas Bonnefille <thomas.bonnefille@bootlin.com>
> ---
> Thomas Bonnefille (3):
> dt-bindings: i2c: dw: Document compatible thead,th1520-i2c
... this goes throught i2c...
> riscv: dts: thead: Add TH1520 I2C nodes
> riscv: dts: thead: Enable I2C on the BeagleV-Ahead
... and these two go thrhough Conor's branches.
Do you mind sending a ping when Drew's patches are included in
the merge window? I can put the first patch on a special branch
to keep it under my watch.
Andi
^ permalink raw reply [flat|nested] 17+ messages in thread* Re: [PATCH v3 0/3] Add I2C support on TH1520
2024-06-28 9:30 ` Andi Shyti
@ 2024-06-28 10:49 ` Conor Dooley
0 siblings, 0 replies; 17+ messages in thread
From: Conor Dooley @ 2024-06-28 10:49 UTC (permalink / raw)
To: Andi Shyti
Cc: Thomas Bonnefille, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Jisheng Zhang, Guo Ren, Fu Wei, Drew Fustini,
Emil Renner Berthing, Conor Dooley, Jarkko Nikula, Palmer Dabbelt,
Albert Ou, Paul Walmsley, Thomas Petazzoni, Miquèl Raynal,
linux-i2c, devicetree, linux-kernel, linux-riscv
[-- Attachment #1: Type: text/plain, Size: 2247 bytes --]
On Fri, Jun 28, 2024 at 11:30:28AM +0200, Andi Shyti wrote:
> Hi,
>
> On Tue, Jun 18, 2024 at 09:42:37AM GMT, Thomas Bonnefille wrote:
> > This adds I2C support in the device tree of the T-Head TH1520 RISCV-SoC
> > and a default configuration for the BeagleV-Ahead. It appears that the
> > TH1520 I2C is already supported in the upstream kernel through the
> > Synopsis Designware I2C adapter driver.
> >
> > This patch depends on the clock patch from Drew Fustini
> > Link: https://lore.kernel.org/linux-riscv/20240615-th1520-clk-v1-0-3ba4978c4d6b@tenstorrent.com
> > and the pinctrl patch from Emil Renner Berthing
> > Link: https://lore.kernel.org/linux-riscv/20240103132852.298964-1-emil.renner.berthing@canonical.com
>
> I think after these two go in...
>
> > Changed from v1:
> > 1. Remove redundant example for Synopsis DesignWare-I2C bindings
> > 2. Remove Node Ordering commit as it has already been taken
> > 3. Remove EEPROM label
> > 4. Rebase on pinctrl and clock driver patches
> > 5. Add pinctrl configuration
> > 6. Replaced the fixed-clock with a correct configuration
> >
> > Changed from v2:
> > 1. Reorder nodes to conserve ascending register node ordering
> > 2. Add support for I2C2 as it probably use the same controller
> > 3. Format comments to match kernel coding style
> > 4. Reorder nodes to conserve alphabetical node ordering
> > 6. Declare I2C2
> > 6. Set pinctrl pull-up resistor to the highest value
> >
> > Signed-off-by: Thomas Bonnefille <thomas.bonnefille@bootlin.com>
> > ---
> > Thomas Bonnefille (3):
> > dt-bindings: i2c: dw: Document compatible thead,th1520-i2c
>
> ... this goes throught i2c...
>
> > riscv: dts: thead: Add TH1520 I2C nodes
> > riscv: dts: thead: Enable I2C on the BeagleV-Ahead
>
> ... and these two go thrhough Conor's branches.
>
> Do you mind sending a ping when Drew's patches are included in
> the merge window? I can put the first patch on a special branch
> to keep it under my watch.
I think you can apply the binding whenever you want actually, there's no
need for the i2c binding (or driver changes, were there to be any) to
be held until the clock binding/driver is accepted.
Thanks,
Conor.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: (subset) [PATCH v3 0/3] Add I2C support on TH1520
2024-06-18 7:42 [PATCH v3 0/3] Add I2C support on TH1520 Thomas Bonnefille
` (4 preceding siblings ...)
2024-06-28 9:30 ` Andi Shyti
@ 2024-07-10 7:48 ` Andi Shyti
2024-07-10 8:21 ` Krzysztof Kozlowski
5 siblings, 1 reply; 17+ messages in thread
From: Andi Shyti @ 2024-07-10 7:48 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Jisheng Zhang,
Guo Ren, Fu Wei, Drew Fustini, Emil Renner Berthing, Conor Dooley,
Jarkko Nikula, Thomas Bonnefille
Cc: Palmer Dabbelt, Albert Ou, Paul Walmsley, Thomas Petazzoni,
Miquèl Raynal, linux-i2c, devicetree, linux-kernel,
linux-riscv, Conor Dooley
Hi
On Tue, 18 Jun 2024 09:42:37 +0200, Thomas Bonnefille wrote:
> This adds I2C support in the device tree of the T-Head TH1520 RISCV-SoC
> and a default configuration for the BeagleV-Ahead. It appears that the
> TH1520 I2C is already supported in the upstream kernel through the
> Synopsis Designware I2C adapter driver.
>
> This patch depends on the clock patch from Drew Fustini
> Link: https://lore.kernel.org/linux-riscv/20240615-th1520-clk-v1-0-3ba4978c4d6b@tenstorrent.com
> and the pinctrl patch from Emil Renner Berthing
> Link: https://lore.kernel.org/linux-riscv/20240103132852.298964-1-emil.renner.berthing@canonical.com
>
> [...]
Applied to i2c/i2c-host on
git://git.kernel.org/pub/scm/linux/kernel/git/local tree
Thank you,
Andi
Patches applied
===============
[1/3] dt-bindings: i2c: dw: Document compatible thead,th1520-i2c
commit: 00fa2450c11138c1c3171224cd2727a3a6240bae
^ permalink raw reply [flat|nested] 17+ messages in thread* Re: (subset) [PATCH v3 0/3] Add I2C support on TH1520
2024-07-10 7:48 ` (subset) " Andi Shyti
@ 2024-07-10 8:21 ` Krzysztof Kozlowski
2024-07-10 13:01 ` Andi Shyti
0 siblings, 1 reply; 17+ messages in thread
From: Krzysztof Kozlowski @ 2024-07-10 8:21 UTC (permalink / raw)
To: Andi Shyti, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Jisheng Zhang, Guo Ren, Fu Wei, Drew Fustini,
Emil Renner Berthing, Conor Dooley, Jarkko Nikula,
Thomas Bonnefille
Cc: Palmer Dabbelt, Albert Ou, Paul Walmsley, Thomas Petazzoni,
Miquèl Raynal, linux-i2c, devicetree, linux-kernel,
linux-riscv, Conor Dooley
On 10/07/2024 09:48, Andi Shyti wrote:
> Hi
>
> On Tue, 18 Jun 2024 09:42:37 +0200, Thomas Bonnefille wrote:
>> This adds I2C support in the device tree of the T-Head TH1520 RISCV-SoC
>> and a default configuration for the BeagleV-Ahead. It appears that the
>> TH1520 I2C is already supported in the upstream kernel through the
>> Synopsis Designware I2C adapter driver.
>>
>> This patch depends on the clock patch from Drew Fustini
>> Link: https://lore.kernel.org/linux-riscv/20240615-th1520-clk-v1-0-3ba4978c4d6b@tenstorrent.com
>> and the pinctrl patch from Emil Renner Berthing
>> Link: https://lore.kernel.org/linux-riscv/20240103132852.298964-1-emil.renner.berthing@canonical.com
>>
>> [...]
>
> Applied to i2c/i2c-host on
>
> git://git.kernel.org/pub/scm/linux/kernel/git/local tree
Something got odd in the git repo above in your ty letters.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: (subset) [PATCH v3 0/3] Add I2C support on TH1520
2024-07-10 8:21 ` Krzysztof Kozlowski
@ 2024-07-10 13:01 ` Andi Shyti
0 siblings, 0 replies; 17+ messages in thread
From: Andi Shyti @ 2024-07-10 13:01 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Jisheng Zhang,
Guo Ren, Fu Wei, Drew Fustini, Emil Renner Berthing, Conor Dooley,
Jarkko Nikula, Thomas Bonnefille, Palmer Dabbelt, Albert Ou,
Paul Walmsley, Thomas Petazzoni, Miquèl Raynal, linux-i2c,
devicetree, linux-kernel, linux-riscv, Conor Dooley
Hi Krzysztof,
On Wed, Jul 10, 2024 at 10:21:57AM GMT, Krzysztof Kozlowski wrote:
> On 10/07/2024 09:48, Andi Shyti wrote:
> > Hi
> >
> > On Tue, 18 Jun 2024 09:42:37 +0200, Thomas Bonnefille wrote:
> >> This adds I2C support in the device tree of the T-Head TH1520 RISCV-SoC
> >> and a default configuration for the BeagleV-Ahead. It appears that the
> >> TH1520 I2C is already supported in the upstream kernel through the
> >> Synopsis Designware I2C adapter driver.
> >>
> >> This patch depends on the clock patch from Drew Fustini
> >> Link: https://lore.kernel.org/linux-riscv/20240615-th1520-clk-v1-0-3ba4978c4d6b@tenstorrent.com
> >> and the pinctrl patch from Emil Renner Berthing
> >> Link: https://lore.kernel.org/linux-riscv/20240103132852.298964-1-emil.renner.berthing@canonical.com
> >>
> >> [...]
> >
> > Applied to i2c/i2c-host on
> >
> > git://git.kernel.org/pub/scm/linux/kernel/git/local tree
>
> Something got odd in the git repo above in your ty letters.
yes, I also noticed that sometimes b4 ty is not able to resolve
to the right repo. I haven't had the time to check what goes
wrong.
Anyway, thanks, the right repo is:
git://git.kernel.org/pub/scm/linux/kernel/git/andi.shyti/linux.git
Andi
^ permalink raw reply [flat|nested] 17+ messages in thread