soc: samsung: usi: implement support for USIv1
Subsystems (4)
v6 cover soc: samsung: usi: implement support for USIv1
Hey folks,
This patch series adds support for USIv1 in the existing exynos-usi driver, as well as dedicated sysreg compatibles for exynos8895.
The USIv1 IP-core is found on some ARM64 Exynos SoCs (like Exynos8895). It provides selectable serial protocols (one of: HSI2C0, HSI2C1, HSI2C0_1, SPI, UART, UART_HSI2C1). It's a bit different from USIv2 as it doesn't have any known MMIO register map and the serial protocols that it implements share the same register base, hence why the way of modelling it in device trees will be with ranges, like so:
usi1: usi@10460000 {
compatible = "samsung,exynos8895-usi";
ranges = <0x0 0x10460000 0x11000>;
clocks = <1>, <2>;
clock-names = "pclk", "ipclk";
#address-cells = <1>;
#size-cells = <1>;
samsung,sysreg = <&syscon_peric0 0x1004>;
status = "disabled";
hsi2c_5: i2c@0 {
compatible = "samsung,exynos8895-hsi2c";
reg = <0x0 0x1000>;
... };
};
This patchset also assumes that [1] and [2] have been merged before it. This has to be applied before the device tree changes [3].
Best regards,
Ivaylo
[1]: https://lore.kernel.org/all/[email protected]/
[2]: https://lore.kernel.org/all/[email protected]/
[3]: https://lore.kernel.org/all/[email protected]/
Changes in v6:
- move the action reset after usi init
- make sure clocks are enabled during unconfiguring, otherwise return
Changes in v5:
- add r-b tag from Krzysztof
- make the usiv1 code a bit more symmetric
- split the action reset into a different commmit
Changes in v4:
- merge the first and second patch and don't break compilation
- add exynos8895 compatible in the binding's oneOf:
- keep exynos850's compatible in the first allOf: if
- add exynos_usi_remove callback and error path at the end of probe, making sure to also have a removal routine for usiv2 and not just v1
Changes in v3:
- drop the sysreg patch as it was applied
- add a patch at the beginning of the series for renaming all USI_V2 constants to USI_MODE_ and a patch at the end to rename them in dt
- redo the usi binding support for 8895 to hopefully match all feedback from Krzysztof
- change the description of the usiv1 and 8895 binding patch in order to account for the constants changes
- change the subject and description of the usiv1 driver support patch because we're adding support for exynos8895 in the first place
- make exynos_usi_modes a two dimensional array while also accounting for the merged usi mode constants
Changes in v2:
- add r-b from Krzysztof Kozlowski <[email protected]>
- restrict the possible ids of samsung,mode with an allOf:if:then
- set the properties samsung,clkreq-on and reg to false for non-usiv2
- only make use of exynos_usi_modes
- make sure pclk and ipclk are enabled
Ivaylo Ivanov (4):
dt-bindings: soc: samsung: usi: add USIv1 and samsung,exynos8895-usi
soc: samsung: usi: add a routine for unconfiguring the ip
soc: samsung: usi: implement support for USIv1 and exynos8895
arm64: dts: exynos: update all samsung,mode constants
.../bindings/soc/samsung/exynos-usi.yaml | 99 ++++++++++++------- arch/arm64/boot/dts/exynos/exynos850.dtsi | 14 +-- arch/arm64/boot/dts/exynos/exynosautov9.dtsi | 48 ++++----- .../arm64/boot/dts/exynos/exynosautov920.dtsi | 2 +- .../boot/dts/exynos/google/gs101-oriole.dts | 4 +- arch/arm64/boot/dts/exynos/google/gs101.dtsi | 2 +- drivers/soc/samsung/exynos-usi.c | 99 ++++++++++++++++--- include/dt-bindings/soc/samsung,exynos-usi.h | 17 +++- 8 files changed, 200 insertions(+), 85 deletions(-)
Signature · 1 line
2.43.0
PATCH v6 1/4 dt-bindings: soc: samsung: usi: add USIv1 and samsung,exynos8895-usi
Add new constants for choosing the additional USIv1 configuration modes in device tree. Those are further used in the USI driver to figure out which value to write into SW_CONF register. Modify the current USI IP-core bindings to include information about USIv1 and a compatible for exynos8895.
In the original bindings commit, protocol mode definitions were named with the version of the supported USI (in this case, V2) with the idea of leaving enough room in the future for other versions of this block. This, however, is not how the modes should be modelled. The modes are not version specific and you should not be able to tell USI which version of a mode to use - that has to be handled in the driver - thus encoding this information in the binding is meaningless. Only one constant per mode is needed, so while we're at it, add new constants with the prefix USI_MODE and mark the old ones as depracated.
--- .../bindings/soc/samsung/exynos-usi.yaml | 99 ++++++++++++------- include/dt-bindings/soc/samsung,exynos-usi.h | 17 +++- 2 files changed, 79 insertions(+), 37 deletions(-)
Documentation/devicetree/bindings/soc/samsung/exynos-usi.yaml +66 -33
@@ -11,11 +11,21 @@ maintainers: - Krzysztof Kozlowski <[email protected]> description: | - USI IP-core provides selectable serial protocol (UART, SPI or High-Speed I2C). - USI shares almost all internal circuits within each protocol, so only one - protocol can be chosen at a time. USI is modeled as a node with zero or more - child nodes, each representing a serial sub-node device. The mode setting - selects which particular function will be used. + The USI IP-core provides configurable support for serial protocols, enabling + different serial communication modes depending on the version. + + In USIv1, configurations are available to enable either one or two protocols + simultaneously in select combinations - High-Speed I2C0, High-Speed + I2C1, SPI, UART, High-Speed I2C0 and I2C1 or both High-Speed + I2C1 and UART. + + In USIv2, only one protocol can be active at a time, either UART, SPI, or + High-Speed I2C. + + The USI core shares internal circuits across protocols, meaning only the + selected configuration is active at any given time. USI is modeled as a node + with zero or more child nodes, each representing a serial sub-node device. The + mode setting selects which particular function will be used. properties: $nodename:
@@ -31,6 +41,7 @@ properties: - const: samsung,exynos850-usi - enum: - samsung,exynos850-usi + - samsung,exynos8895-usi reg: maxItems: 1
@@ -64,7 +75,7 @@ properties: samsung,mode: $ref: /schemas/types.yaml#/definitions/uint32 - enum: [0, 1, 2, 3] + enum: [0, 1, 2, 3, 4, 5, 6] description: Selects USI function (which serial protocol to use). Refer to <include/dt-bindings/soc/samsung,exynos-usi.h> for valid USI mode values.
@@ -101,37 +112,59 @@ required: - samsung,sysreg - samsung,mode -if: - properties: - compatible: - contains: - enum: - - samsung,exynos850-usi +allOf: + - if: + properties: + compatible: + contains: + enum: + - samsung,exynos850-usi + + then: + properties: + reg: + maxItems: 1 + + clocks: + items: + - description: Bus (APB) clock + - description: Operating clock for UART/SPI/I2C protocol + + clock-names: + maxItems: 2 + + samsung,mode: + enum: [0, 1, 2, 3] + + required: + - reg + - clocks + - clock-names + + - if: + properties: + compatible: + contains: + enum: + - samsung,exynos8895-usi -then: - properties: - reg: - maxItems: 1 + then: + properties: + reg: false - clocks: - items: - - description: Bus (APB) clock - - description: Operating clock for UART/SPI/I2C protocol + clocks: + items: + - description: Bus (APB) clock + - description: Operating clock for UART/SPI protocol - clock-names: - maxItems: 2 + clock-names: + maxItems: 2 - required: - - reg - - clocks - - clock-names + samsung,clkreq-on: false -else: - properties: - reg: false - clocks: false - clock-names: false - samsung,clkreq-on: false + required: + - clocks + - clock-names additionalProperties: false
@@ -144,7 +177,7 @@ examples: compatible = "samsung,exynos850-usi"; reg = <0x138200c0 0x20>; samsung,sysreg = <&sysreg_peri 0x1010>; - samsung,mode = <USI_V2_UART>; + samsung,mode = <USI_MODE_UART>; samsung,clkreq-on; /* needed for UART mode */ #address-cells = <1>; #size-cells = <1>;
include/dt-bindings/soc/samsung,exynos-usi.h +13 -4
@@ -9,9 +9,18 @@#ifndef __DT_BINDINGS_SAMSUNG_EXYNOS_USI_H#define __DT_BINDINGS_SAMSUNG_EXYNOS_USI_H -#define USI_V2_NONE 0 -#define USI_V2_UART 1 -#define USI_V2_SPI 2 -#define USI_V2_I2C 3 +#define USI_MODE_NONE 0 +#define USI_MODE_UART 1 +#define USI_MODE_SPI 2 +#define USI_MODE_I2C 3 +#define USI_MODE_I2C1 4 +#define USI_MODE_I2C0_1 5 +#define USI_MODE_UART_I2C1 6 + +/* Deprecated */ +#define USI_V2_NONE USI_MODE_NONE +#define USI_V2_UART USI_MODE_UART +#define USI_V2_SPI USI_MODE_SPI +#define USI_V2_I2C USI_MODE_I2C#endif /* __DT_BINDINGS_SAMSUNG_EXYNOS_USI_H */
Signature · 1 line
2.43.0
PATCH v6 2/4 soc: samsung: usi: add a routine for unconfiguring the ip
In reply to Ivaylo IvanovAdd a devm_add_action_or_reset() routine for unconfiguring the USI IP block whenever the device gets removed.
--- drivers/soc/samsung/exynos-usi.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+)
drivers/soc/samsung/exynos-usi.c +28 -0
@@ -174,6 +174,30 @@ static int exynos_usi_configure(struct exynos_usi *usi)return 0 ; } +static void exynos_usi_unconfigure (void *data) +{ +struct exynos_usi *usi = data; +u32 val; +int ret; + + ret =clk_bulk_prepare_enable (usi->data->num_clks, usi->clks); +if (ret) +return ; + +/* Make sure that we've stopped providing the clock to USI IP */ + val =readl (usi->regs +USI_OPTION ); + val &= ~USI_OPTION_CLKREQ_ON ; + val |= ~USI_OPTION_CLKSTOP_ON ; +writel (val, usi->regs +USI_OPTION ); + +/* Set USI block state to reset */ + val =readl (usi->regs +USI_CON ); + val |=USI_CON_RESET ; +writel (val, usi->regs +USI_CON ); + +clk_bulk_disable_unprepare (usi->data->num_clks, usi->clks); +} +static int exynos_usi_parse_dt (struct device_node *np,struct exynos_usi *usi) {int ret;
@@ -255,6 +279,10 @@ static int exynos_usi_probe(struct platform_device *pdev)if (ret)return ret; + ret =devm_add_action_or_reset (&pdev->dev, exynos_usi_unconfigure, usi); +if (ret) +return ret; +/* Make it possible to embed protocol nodes into USI np */ return of_platform_populate (np,NULL ,NULL , dev); }
Signature · 1 line
2.43.0
PATCH v6 3/4 soc: samsung: usi: implement support for USIv1 and exynos8895
In reply to Ivaylo IvanovUSIv1 IP-core is found on some ARM64 Exynos SoCs (like Exynos8895) and provides selectable serial protocols (one of: HSI2C0, HSI2C1, HSI2C0_1, SPI, UART, UART_HSI2C1).
USIv1, unlike USIv2, doesn't have any known register map. Underlying protocols that it implements have no offset, like with Exynos850. Desired protocol can be chosen via SW_CONF register from System Register block of the same domain as USI.
In order to select a particular protocol, the protocol has to be selected via the System Register. Unlike USIv2, there's no need for any setup before the given protocol becomes accessible apart from enabling the APB clock and the protocol operating clock.
Modify the existing driver in order to allow USIv1 instances in Exynos8895 to probe and set their protocol. While we're at it, make use of the new mode constants in place of the old ones.
--- drivers/soc/samsung/exynos-usi.c | 71 ++++++++++++++++++++++++++------ 1 file changed, 58 insertions(+), 13 deletions(-)
drivers/soc/samsung/exynos-usi.c +58 -13
@@ -16,6 +16,18 @@#include <dt-bindings/soc/samsung,exynos-usi.h> +/* USIv1: System Register: SW_CONF register bits */ +#define USI_V1_SW_CONF_NONE 0x0 +#define USI_V1_SW_CONF_I2C0 0x1 +#define USI_V1_SW_CONF_I2C1 0x2 +#define USI_V1_SW_CONF_I2C0_1 0x3 +#define USI_V1_SW_CONF_SPI 0x4 +#define USI_V1_SW_CONF_UART 0x8 +#define USI_V1_SW_CONF_UART_I2C1 0xa +#define USI_V1_SW_CONF_MASK (USI_V1_SW_CONF_I2C0 | USI_V1_SW_CONF_I2C1 | \ + USI_V1_SW_CONF_I2C0_1 | USI_V1_SW_CONF_SPI | \ + USI_V1_SW_CONF_UART | USI_V1_SW_CONF_UART_I2C1) +/* USIv2: System Register: SW_CONF register bits */ #define USI_V2_SW_CONF_NONE 0x0#define USI_V2_SW_CONF_UART BIT(0)
@@ -34,7 +46,8 @@#define USI_OPTION_CLKSTOP_ON BIT(2)enum exynos_usi_ver { -USI_VER2 =2 , +USI_VER1 =0 , +USI_VER2 , };struct exynos_usi_variant {
@@ -66,19 +79,39 @@ struct exynos_usi_mode {unsigned int val;/* mode register value */ }; -static const struct exynos_usi_mode exynos_usi_modes[] = { - [USI_V2_NONE ] = { .name ="none" , .val =USI_V2_SW_CONF_NONE }, - [USI_V2_UART ] = { .name ="uart" , .val =USI_V2_SW_CONF_UART }, - [USI_V2_SPI ] = { .name ="spi" , .val =USI_V2_SW_CONF_SPI }, - [USI_V2_I2C ] = { .name ="i2c" , .val =USI_V2_SW_CONF_I2C }, +#define USI_MODES_MAX (USI_MODE_UART_I2C1 + 1) +static const struct exynos_usi_mode exynos_usi_modes[][USI_MODES_MAX ] = { + [USI_VER1 ] = { + [USI_MODE_NONE ] = { .name ="none" , .val =USI_V1_SW_CONF_NONE }, + [USI_MODE_UART ] = { .name ="uart" , .val =USI_V1_SW_CONF_UART }, + [USI_MODE_SPI ] = { .name ="spi" , .val =USI_V1_SW_CONF_SPI }, + [USI_MODE_I2C ] = { .name ="i2c" , .val =USI_V1_SW_CONF_I2C0 }, + [USI_MODE_I2C1 ] = { .name ="i2c1" , .val =USI_V1_SW_CONF_I2C1 }, + [USI_MODE_I2C0_1 ] = { .name ="i2c0_1" , .val =USI_V1_SW_CONF_I2C0_1 }, + [USI_MODE_UART_I2C1 ] = { .name ="uart_i2c1" , .val =USI_V1_SW_CONF_UART_I2C1 }, + }, [USI_VER2 ] = { + [USI_MODE_NONE ] = { .name ="none" , .val =USI_V2_SW_CONF_NONE }, + [USI_MODE_UART ] = { .name ="uart" , .val =USI_V2_SW_CONF_UART }, + [USI_MODE_SPI ] = { .name ="spi" , .val =USI_V2_SW_CONF_SPI }, + [USI_MODE_I2C ] = { .name ="i2c" , .val =USI_V2_SW_CONF_I2C }, + }, };static const char *const exynos850_usi_clk_names[] = {"pclk" ,"ipclk" };static const struct exynos_usi_variant exynos850_usi_data = { .ver =USI_VER2 , .sw_conf_mask =USI_V2_SW_CONF_MASK , - .min_mode =USI_V2_NONE , - .max_mode =USI_V2_I2C , + .min_mode =USI_MODE_NONE , + .max_mode =USI_MODE_I2C , + .num_clks =ARRAY_SIZE (exynos850_usi_clk_names), + .clk_names = exynos850_usi_clk_names, +}; + +static const struct exynos_usi_variant exynos8895_usi_data = { + .ver =USI_VER1 , + .sw_conf_mask =USI_V1_SW_CONF_MASK , + .min_mode =USI_MODE_NONE , + .max_mode =USI_MODE_UART_I2C1 , .num_clks =ARRAY_SIZE (exynos850_usi_clk_names), .clk_names = exynos850_usi_clk_names, };
@@ -87,6 +120,9 @@ static const struct of_device_id exynos_usi_dt_match[] = { { .compatible = "samsung,exynos850-usi", .data = &exynos850_usi_data, + }, { + .compatible = "samsung,exynos8895-usi", + .data = &exynos8895_usi_data, }, { }/* sentinel */ };
@@ -109,14 +145,15 @@ static int exynos_usi_set_sw_conf(struct exynos_usi *usi, size_t mode)if (mode < usi->data->min_mode || mode > usi->data->max_mode)return -EINVAL ; - val = exynos_usi_modes[mode].val; + val = exynos_usi_modes[usi->data->ver][mode].val; ret =regmap_update_bits (usi->sysreg, usi->sw_conf, usi->data->sw_conf_mask, val);if (ret)return ret; usi->mode = mode; -dev_dbg (usi->dev,"protocol: %s\n" , exynos_usi_modes[usi->mode].name); +dev_dbg (usi->dev,"protocol: %s\n" , + exynos_usi_modes[usi->data->ver][usi->mode].name);return 0 ; }
@@ -168,10 +205,13 @@ static int exynos_usi_configure(struct exynos_usi *usi)if (ret)return ret; -if (usi->data->ver ==USI_VER2 ) -return exynos_usi_enable (usi); +if (usi->data->ver ==USI_VER1 ) + ret =clk_bulk_prepare_enable (usi->data->num_clks, + usi->clks); +else if (usi->data->ver ==USI_VER2 ) + ret =exynos_usi_enable (usi); -return 0 ; +return ret; }static void exynos_usi_unconfigure (void *data)
@@ -180,6 +220,11 @@ static void exynos_usi_unconfigure(void *data)u32 val;int ret; +if (usi->data->ver ==USI_VER1 ) { +clk_bulk_disable_unprepare (usi->data->num_clks, usi->clks); +return ; + } + ret =clk_bulk_prepare_enable (usi->data->num_clks, usi->clks);if (ret)return ;
Signature · 1 line
2.43.0
PATCH v6 4/4 arm64: dts: exynos: update all samsung,mode constants
In reply to Ivaylo IvanovUpdate all samsung,mode property values to account for renaming USI_V2 constants to USI_MODE in the bindings.
--- arch/arm64/boot/dts/exynos/exynos850.dtsi | 14 +++--- arch/arm64/boot/dts/exynos/exynosautov9.dtsi | 48 +++++++++---------- .../arm64/boot/dts/exynos/exynosautov920.dtsi | 2 +- .../boot/dts/exynos/google/gs101-oriole.dts | 4 +- arch/arm64/boot/dts/exynos/google/gs101.dtsi | 2 +- 5 files changed, 35 insertions(+), 35 deletions(-)
arch/arm64/boot/dts/exynos/exynos850.dtsi +7 -7
@@ -651,7 +651,7 @@ usi_uart: usi@138200c0 { compatible = "samsung,exynos850-usi"; reg = <0x138200c0 0x20>; samsung,sysreg = <&sysreg_peri 0x1010>; - samsung,mode = <USI_V2_UART>; + samsung,mode = <USI_MODE_UART>; #address-cells = <1>; #size-cells = <1>; ranges;
@@ -677,7 +677,7 @@ usi_hsi2c_0: usi@138a00c0 { compatible = "samsung,exynos850-usi"; reg = <0x138a00c0 0x20>; samsung,sysreg = <&sysreg_peri 0x1020>; - samsung,mode = <USI_V2_I2C>; + samsung,mode = <USI_MODE_I2C>; #address-cells = <1>; #size-cells = <1>; ranges;
@@ -706,7 +706,7 @@ usi_hsi2c_1: usi@138b00c0 { compatible = "samsung,exynos850-usi"; reg = <0x138b00c0 0x20>; samsung,sysreg = <&sysreg_peri 0x1030>; - samsung,mode = <USI_V2_I2C>; + samsung,mode = <USI_MODE_I2C>; #address-cells = <1>; #size-cells = <1>; ranges;
@@ -735,7 +735,7 @@ usi_hsi2c_2: usi@138c00c0 { compatible = "samsung,exynos850-usi"; reg = <0x138c00c0 0x20>; samsung,sysreg = <&sysreg_peri 0x1040>; - samsung,mode = <USI_V2_I2C>; + samsung,mode = <USI_MODE_I2C>; #address-cells = <1>; #size-cells = <1>; ranges;
@@ -764,7 +764,7 @@ usi_spi_0: usi@139400c0 { compatible = "samsung,exynos850-usi"; reg = <0x139400c0 0x20>; samsung,sysreg = <&sysreg_peri 0x1050>; - samsung,mode = <USI_V2_SPI>; + samsung,mode = <USI_MODE_SPI>; #address-cells = <1>; #size-cells = <1>; ranges;
@@ -796,7 +796,7 @@ usi_cmgp0: usi@11d000c0 { compatible = "samsung,exynos850-usi"; reg = <0x11d000c0 0x20>; samsung,sysreg = <&sysreg_cmgp 0x2000>; - samsung,mode = <USI_V2_I2C>; + samsung,mode = <USI_MODE_I2C>; #address-cells = <1>; #size-cells = <1>; ranges;
@@ -855,7 +855,7 @@ usi_cmgp1: usi@11d200c0 { compatible = "samsung,exynos850-usi"; reg = <0x11d200c0 0x20>; samsung,sysreg = <&sysreg_cmgp 0x2010>; - samsung,mode = <USI_V2_I2C>; + samsung,mode = <USI_MODE_I2C>; #address-cells = <1>; #size-cells = <1>; ranges;
arch/arm64/boot/dts/exynos/exynosautov9.dtsi +24 -24
192 lines not on this page · raw message
arch/arm64/boot/dts/exynos/exynosautov920.dtsi +1 -1
@@ -223,7 +223,7 @@ usi_0: usi@108800c0 { "samsung,exynos850-usi"; reg = <0x108800c0 0x20>; samsung,sysreg = <&syscon_peric0 0x1000>; - samsung,mode = <USI_V2_UART>; + samsung,mode = <USI_MODE_UART>; #address-cells = <1>; #size-cells = <1>; ranges;
arch/arm64/boot/dts/exynos/google/gs101-oriole.dts +2 -2
@@ -161,12 +161,12 @@ &usi_uart { }; &usi8 { - samsung,mode = <USI_V2_I2C>; + samsung,mode = <USI_MODE_I2C>; status = "okay"; }; &usi12 { - samsung,mode = <USI_V2_I2C>; + samsung,mode = <USI_MODE_I2C>; status = "okay"; };
arch/arm64/boot/dts/exynos/google/gs101.dtsi +1 -1
@@ -825,7 +825,7 @@ usi_uart: usi@10a000c0 { <&cmu_peric0 CLK_GOUT_PERIC0_PERIC0_TOP1_IPCLK_0>; clock-names = "pclk", "ipclk"; samsung,sysreg = <&sysreg_peric0 0x1020>; - samsung,mode = <USI_V2_UART>; + samsung,mode = <USI_MODE_UART>; status = "disabled"; serial_0: serial@10a00000 {
Signature · 1 line
2.43.0
Re: [PATCH v6 4/4] arm64: dts: exynos: update all samsung,mode constants
Quoted 18 lines · Ivaylo Ivanov
Update all samsung,mode property values to account for renaming
USI_V2constants toUSI_MODEin the bindings.Signed-off-by Ivaylo Ivanov <[email protected]>--- arch/arm64/boot/dts/exynos/exynos850.dtsi | 14 +++--- arch/arm64/boot/dts/exynos/exynosautov9.dtsi | 48 +++++++++---------- .../arm64/boot/dts/exynos/exynosautov920.dtsi | 2 +- .../boot/dts/exynos/google/gs101-oriole.dts | 4 +- arch/arm64/boot/dts/exynos/google/gs101.dtsi | 2 +- 5 files changed, 35 insertions(+), 35 deletions(-)arch/arm64/boot/dts/exynos/exynos850.dtsi +0
-0@@ -651,7 +651,7 @@ usi_uart: usi@138200c0 { compatible = "samsung,exynos850-usi";
...
arch/arm64/boot/dts/exynos/google/gs101-oriole.dts
Quoted 4 lines
arch/arm64/boot/dts/exynos/google/gs101-oriole.dts +0
-0
This patch won't apply anymore since gs101-oriole was moved to pixel-common.
I didn't see that [1] was applied yesterday. I could make a new patch that also covers these changes, but I'd expect the rest of this series to get applied first.
Quoted 28 lines
arch/arm64/boot/dts/exynos/google/gs101-oriole.dts +2
-2@@ -161,12 +161,12 @@ &usi_uart { }; &usi8 { - samsung,mode = <USI_V2_I2C>; + samsung,mode = <USI_MODE_I2C>; status = "okay"; }; &usi12 { - samsung,mode = <USI_V2_I2C>; + samsung,mode = <USI_MODE_I2C>; status = "okay"; };arch/arm64/boot/dts/exynos/google/gs101.dtsi +1
-1@@ -825,7 +825,7 @@ usi_uart: usi@10a000c0 { <&cmu_peric0 CLK_GOUT_PERIC0_PERIC0_TOP1_IPCLK_0>; clock-names = "pclk", "ipclk"; samsung,sysreg = <&sysreg_peric0 0x1020>; - samsung,mode = <USI_V2_UART>; + samsung,mode = <USI_MODE_UART>; status = "disabled"; serial_0: serial@10a00000 {
Krzysztof Kozlowski
maintainerRe: [PATCH v6 4/4] arm64: dts: exynos: update all samsung,mode constants
Quoted 29 lines · Ivaylo Ivanov
Quoted 18 lines · Ivaylo Ivanov
Update all samsung,mode property values to account for renaming
USI_V2constants toUSI_MODEin the bindings.Signed-off-by Ivaylo Ivanov <[email protected]>--- arch/arm64/boot/dts/exynos/exynos850.dtsi | 14 +++--- arch/arm64/boot/dts/exynos/exynosautov9.dtsi | 48 +++++++++---------- .../arm64/boot/dts/exynos/exynosautov920.dtsi | 2 +- .../boot/dts/exynos/google/gs101-oriole.dts | 4 +- arch/arm64/boot/dts/exynos/google/gs101.dtsi | 2 +- 5 files changed, 35 insertions(+), 35 deletions(-)arch/arm64/boot/dts/exynos/exynos850.dtsi +0
-0@@ -651,7 +651,7 @@ usi_uart: usi@138200c0 { compatible = "samsung,exynos850-usi";...
arch/arm64/boot/dts/exynos/google/gs101-oriole.dts
Quoted 4 lines
arch/arm64/boot/dts/exynos/google/gs101-oriole.dts +0
-0This patch won't apply anymore since gs101-oriole was moved to pixel-common.
Quoted 4 lines
I didn't see that [1] was applied yesterday. I could make a new patch that also covers these changes, but I'd expect the rest of this series to get applied first.
I applied the rest I think, so please rebase this one.
I cleared my patch queue for Samsung, I think, so let me know if I missed anything. There were some dependencies so it took me some time. Pings outside of merge window are fine.
Best regards,
Krzysztof