arm64: dts: exynos: Add E850-96 board support
Subsystems (6)
Sam Protsenko
maintainerv4 cover arm64: dts: exynos: Add E850-96 board support
WinLink's E850-96 is a dev board based on Exynos850 SoC [1]. The board's design follows 96boards specifications, hence it's compatible with 96boards mezzanines [2].
This patch series adds the initial support for E850-96 board and Exynos850 SoC, along with corresponding bindings. Only basic platform components are enabled at the moment (like serial, I2C, eMMC, RTC, WDT, clock driver, etc). Right now with this patch series it's possible to run the kernel with BusyBox rootfs as a RAM disk. More features are coming soon.
[1] https://www.samsung.com/semiconductor/minisite/exynos/products/mobileprocessor/exynos-850/
[2] https://www.96boards.org/products/mezzanine/
Changes in v4:
- Removed slew_rate pin nodes
- Moved rtcclk clock to board dts file
Changes in v3:
- Ordered the pinctrl_alive phandle alphabetically (patch 7/7)
- No other changes in v3
Changes in v2:
- Rebased on krzk/linux.git (for-next), to account for Exynos7885 changes
- Added missing and new tags (R-b and Ack)
- Addressed all comments for v1
Sam Protsenko (7):
dt-bindings: clock: exynos850: Add bindings for Exynos850 sysreg
clocks
clk: samsung: exynos850: Add missing sysreg clocks
dt-bindings: Add vendor prefix for WinLink
dt-bindings: arm: samsung: Document E850-96 board binding
dt-bindings: pinctrl: samsung: Add pin drive definitions for Exynos850
arm64: dts: exynos: Add initial Exynos850 SoC support
arm64: dts: exynos: Add initial E850-96 board support
.../bindings/arm/samsung/samsung-boards.yaml | 6 + .../devicetree/bindings/vendor-prefixes.yaml | 2 + arch/arm64/boot/dts/exynos/Makefile | 1 + .../boot/dts/exynos/exynos850-e850-96.dts | 195 +++++ .../boot/dts/exynos/exynos850-pinctrl.dtsi | 643 +++++++++++++++ arch/arm64/boot/dts/exynos/exynos850.dtsi | 741 ++++++++++++++++++ drivers/clk/samsung/clk-exynos850.c | 29 + include/dt-bindings/clock/exynos850.h | 12 +- include/dt-bindings/pinctrl/samsung.h | 13 +- 9 files changed, 1638 insertions(+), 4 deletions(-) create mode 100644 arch/arm64/boot/dts/exynos/exynos850-e850-96.dts create mode 100644 arch/arm64/boot/dts/exynos/exynos850-pinctrl.dtsi create mode 100644 arch/arm64/boot/dts/exynos/exynos850.dtsi
Signature · 1 line
2.30.2
Sam Protsenko
maintainerPATCH v4 1/7 dt-bindings: clock: exynos850: Add bindings for Exynos850 sysreg clocks
System Register is used to configure system behavior, like USI protocol, etc. SYSREG clocks should be provided to corresponding syscon nodes, to make it possible to modify SYSREG registers.
While at it, add also missing PMU and GPIO clocks, which looks necessary and might be needed for corresponding Exynos850 features soon.
---
Changes in v4:
- (none)
Changes in v3:
- (none)
Changes in v2:
- Added R-b tag by Krzysztof Kozlowski
- Added Ack tag by Rob Herring
- Added Ack tag by Chanwoo Choi
include/dt-bindings/clock/exynos850.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)
include/dt-bindings/clock/exynos850.h +9 -3
@@ -82,7 +82,10 @@#define CLK_GOUT_I3C_PCLK 19#define CLK_GOUT_I3C_SCLK 20#define CLK_GOUT_SPEEDY_PCLK 21 -#define APM_NR_CLK 22 +#define CLK_GOUT_GPIO_ALIVE_PCLK 22 +#define CLK_GOUT_PMU_ALIVE_PCLK 23 +#define CLK_GOUT_SYSREG_APM_PCLK 24 +#define APM_NR_CLK 25/* CMU_CMGP */ #define CLK_RCO_CMGP 1
@@ -99,7 +102,8 @@#define CLK_GOUT_CMGP_USI0_PCLK 12#define CLK_GOUT_CMGP_USI1_IPCLK 13#define CLK_GOUT_CMGP_USI1_PCLK 14 -#define CMGP_NR_CLK 15 +#define CLK_GOUT_SYSREG_CMGP_PCLK 15 +#define CMGP_NR_CLK 16/* CMU_HSI */ #define CLK_MOUT_HSI_BUS_USER 1
@@ -167,7 +171,9 @@#define CLK_GOUT_MMC_EMBD_SDCLKIN 10#define CLK_GOUT_SSS_ACLK 11#define CLK_GOUT_SSS_PCLK 12 -#define CORE_NR_CLK 13 +#define CLK_GOUT_GPIO_CORE_PCLK 13 +#define CLK_GOUT_SYSREG_CORE_PCLK 14 +#define CORE_NR_CLK 15/* CMU_DPU */ #define CLK_MOUT_DPU_USER 1
Signature · 1 line
2.30.2
Re: [PATCH v4 1/7] dt-bindings: clock: exynos850: Add bindings for Exynos850 sysreg clocks
Quoted 11 lines · Sam Protsenko
System Register is used to configure system behavior, like USI protocol, etc. SYSREG clocks should be provided to corresponding syscon nodes, to make it possible to modify SYSREG registers.
While at it, add also missing PMU and GPIO clocks, which looks necessary and might be needed for corresponding Exynos850 features soon.
Reviewed-by Krzysztof Kozlowski<[email protected]>Acked-by Rob Herring<[email protected]>Acked-by Chanwoo Choi<[email protected]>Signed-off-by Sam Protsenko<[email protected]>
Apologies for late reply, this patch is applied now.
Re: [PATCH v4 1/7] dt-bindings: clock: exynos850: Add bindings for Exynos850 sysreg clocks
Quoted 8 lines · Sylwester Nawrocki
Quoted 7 lines · Sam Protsenko
System Register is used to configure system behavior, like USI protocol, etc. SYSREG clocks should be provided to corresponding syscon nodes, to make it possible to modify SYSREG registers.
While at it, add also missing PMU and GPIO clocks, which looks necessary and might be needed for corresponding Exynos850 features soon.
Quoted 7 lines
Quoted 4 lines
Reviewed-by Krzysztof Kozlowski<[email protected]>Acked-by Rob Herring<[email protected]>Acked-by Chanwoo Choi<[email protected]>Signed-off-by Sam Protsenko<[email protected]>Apologies for late reply, this patch is applied now.
Sam,
The clock is used in the DTSI, so since this was applied, there are only two choices now:
1. wait for next cycle with DTSI and DTS,
2. Resubmit with replacing the newly added clocks in DTSI/DTS with numbers and a TODO note.
Best regards,
Krzysztof
Sam Protsenko
maintainerRe: [PATCH v4 1/7] dt-bindings: clock: exynos850: Add bindings for Exynos850 sysreg clocks
Quoted 18 lines · Krzysztof Kozlowski
Quoted 8 lines · Sylwester Nawrocki
Quoted 7 lines · Sam Protsenko
System Register is used to configure system behavior, like USI protocol, etc. SYSREG clocks should be provided to corresponding syscon nodes, to make it possible to modify SYSREG registers.
While at it, add also missing PMU and GPIO clocks, which looks necessary and might be needed for corresponding Exynos850 features soon.
Quoted 7 lines
Quoted 4 lines
Reviewed-by Krzysztof Kozlowski<[email protected]>Acked-by Rob Herring<[email protected]>Acked-by Chanwoo Choi<[email protected]>Signed-off-by Sam Protsenko<[email protected]>Apologies for late reply, this patch is applied now.
Quoted 8 lines
Sam,
The clock is used in the DTSI, so since this was applied, there are only two choices now:
1. wait for next cycle with DTSI and DTS,
2. Resubmit with replacing the newly added clocks in DTSI/DTS with numbers and a TODO note.
But why? I thought because Sylwester applied my clock patches, those will get into v5.17, and so DTSI/DTS might rely on those clocks? If I get it wrong, please let me know why, and I'll go with item (2) you suggested.
Quoted 2 lines
Best regards,
Krzysztof
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH v4 1/7] dt-bindings: clock: exynos850: Add bindings for Exynos850 sysreg clocks
Quoted 29 lines · Sam Protsenko
Quoted 18 lines · Krzysztof Kozlowski
Quoted 8 lines · Sylwester Nawrocki
Quoted 7 lines · Sam Protsenko
System Register is used to configure system behavior, like USI protocol, etc. SYSREG clocks should be provided to corresponding syscon nodes, to make it possible to modify SYSREG registers.
While at it, add also missing PMU and GPIO clocks, which looks necessary and might be needed for corresponding Exynos850 features soon.
Quoted 7 lines
Quoted 4 lines
Reviewed-by Krzysztof Kozlowski<[email protected]>Acked-by Rob Herring<[email protected]>Acked-by Chanwoo Choi<[email protected]>Signed-off-by Sam Protsenko<[email protected]>Apologies for late reply, this patch is applied now.
Quoted 8 lines
Sam,
The clock is used in the DTSI, so since this was applied, there are only two choices now:
1. wait for next cycle with DTSI and DTS,
2. Resubmit with replacing the newly added clocks in DTSI/DTS with numbers and a TODO note.
Quoted 4 lines
But why? I thought because Sylwester applied my clock patches, those will get into v5.17, and so DTSI/DTS might rely on those clocks? If I get it wrong, please let me know why, and I'll go with item (2) you suggested.
If I apply the DTSI+DTS, all my builds will start failing. The linux-next (since Sylwester's tree is included) should build fine, but my tree won't be buildable anymore. Then arm-soc pulls my tree and gets said because it does not build. Later, Linus will be unhappy if he pulls arm-soc (thus mine) before clock tree.
Other solution, instead of using raw numbers, is to copy-paste the clock macros you use directly in DTSI and do not include the clock header. This actually might be cleaner choice - changes will be limited to one place in DTSI.
Best regards,
Krzysztof
Re: [PATCH v4 1/7] dt-bindings: clock: exynos850: Add bindings for Exynos850 sysreg clocks
Quoted 35 lines · Krzysztof Kozlowski
Quoted 29 lines · Sam Protsenko
Quoted 18 lines · Krzysztof Kozlowski
Quoted 8 lines · Sylwester Nawrocki
Quoted 7 lines · Sam Protsenko
System Register is used to configure system behavior, like USI protocol, etc. SYSREG clocks should be provided to corresponding syscon nodes, to make it possible to modify SYSREG registers.
While at it, add also missing PMU and GPIO clocks, which looks necessary and might be needed for corresponding Exynos850 features soon.
Quoted 7 lines
Quoted 4 lines
Reviewed-by Krzysztof Kozlowski<[email protected]>Acked-by Rob Herring<[email protected]>Acked-by Chanwoo Choi<[email protected]>Signed-off-by Sam Protsenko<[email protected]>Apologies for late reply, this patch is applied now.
Quoted 8 lines
Sam,
The clock is used in the DTSI, so since this was applied, there are only two choices now:
1. wait for next cycle with DTSI and DTS,
2. Resubmit with replacing the newly added clocks in DTSI/DTS with numbers and a TODO note.Quoted 4 lines
But why? I thought because Sylwester applied my clock patches, those will get into v5.17, and so DTSI/DTS might rely on those clocks? If I get it wrong, please let me know why, and I'll go with item (2) you suggested.
Quoted 4 lines
If I apply the DTSI+DTS, all my builds will start failing. The linux-next (since Sylwester's tree is included) should build fine, but my tree won't be buildable anymore. Then arm-soc pulls my tree and gets said because it does not build. Later, Linus will be unhappy if he pulls
s/said/sad/ obviously :)
Quoted 10 lines
arm-soc (thus mine) before clock tree.
Other solution, instead of using raw numbers, is to copy-paste the clock macros you use directly in DTSI and do not include the clock header. This actually might be cleaner choice - changes will be limited to one place in DTSI.
Best regards,
Krzysztof
Best regards,
Krzysztof
Sam Protsenko
maintainerRe: [PATCH v4 1/7] dt-bindings: clock: exynos850: Add bindings for Exynos850 sysreg clocks
In reply to Krzysztof KozlowskiQuoted 36 lines · Krzysztof Kozlowski
Quoted 29 lines · Sam Protsenko
Quoted 18 lines · Krzysztof Kozlowski
Quoted 8 lines · Sylwester Nawrocki
Quoted 7 lines · Sam Protsenko
System Register is used to configure system behavior, like USI protocol, etc. SYSREG clocks should be provided to corresponding syscon nodes, to make it possible to modify SYSREG registers.
While at it, add also missing PMU and GPIO clocks, which looks necessary and might be needed for corresponding Exynos850 features soon.
Quoted 7 lines
Quoted 4 lines
Reviewed-by Krzysztof Kozlowski<[email protected]>Acked-by Rob Herring<[email protected]>Acked-by Chanwoo Choi<[email protected]>Signed-off-by Sam Protsenko<[email protected]>Apologies for late reply, this patch is applied now.
Quoted 8 lines
Sam,
The clock is used in the DTSI, so since this was applied, there are only two choices now:
1. wait for next cycle with DTSI and DTS,
2. Resubmit with replacing the newly added clocks in DTSI/DTS with numbers and a TODO note.Quoted 4 lines
But why? I thought because Sylwester applied my clock patches, those will get into v5.17, and so DTSI/DTS might rely on those clocks? If I get it wrong, please let me know why, and I'll go with item (2) you suggested.
Quoted 6 lines
If I apply the DTSI+DTS, all my builds will start failing. The linux-next (since Sylwester's tree is included) should build fine, but my tree won't be buildable anymore. Then arm-soc pulls my tree and gets said because it does not build. Later, Linus will be unhappy if he pulls arm-soc (thus mine) before clock tree.
I see. Thanks for the explanation!
Quoted 5 lines
Other solution, instead of using raw numbers, is to copy-paste the clock macros you use directly in DTSI and do not include the clock header. This actually might be cleaner choice - changes will be limited to one place in DTSI.
Will do so in v5.
Quoted 2 lines
Best regards,
Krzysztof
Sam Protsenko
maintainerPATCH v4 2/7 clk: samsung: exynos850: Add missing sysreg clocks
In reply to Sam ProtsenkoSystem Register is used to configure system behavior, like USI protocol, etc. SYSREG clocks should be provided to corresponding syscon nodes, to make it possible to modify SYSREG registers.
While at it, add also missing PMU and GPIO clocks, which looks necessary and might be needed for corresponding Exynos850 features soon.
---
Changes in v4:
- (none)
Changes in v3:
- (none)
Changes in v2:
- Added R-b tag by Krzysztof Kozlowski
- Added Ack tag by Chanwoo Choi
drivers/clk/samsung/clk-exynos850.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+)
drivers/clk/samsung/clk-exynos850.c +29 -0
@@ -426,11 +426,14 @@ CLK_OF_DECLARE(exynos850_cmu_top, "samsung,exynos850-cmu-top",#define CLK_CON_DIV_DIV_CLK_APM_I3C 0x1808#define CLK_CON_GAT_CLKCMU_CMGP_BUS 0x2000#define CLK_CON_GAT_GATE_CLKCMU_CHUB_BUS 0x2014 +#define CLK_CON_GAT_GOUT_APM_APBIF_GPIO_ALIVE_PCLK 0x2018 +#define CLK_CON_GAT_GOUT_APM_APBIF_PMU_ALIVE_PCLK 0x2020#define CLK_CON_GAT_GOUT_APM_APBIF_RTC_PCLK 0x2024#define CLK_CON_GAT_GOUT_APM_APBIF_TOP_RTC_PCLK 0x2028#define CLK_CON_GAT_GOUT_APM_I3C_APM_PMIC_I_PCLK 0x2034#define CLK_CON_GAT_GOUT_APM_I3C_APM_PMIC_I_SCLK 0x2038#define CLK_CON_GAT_GOUT_APM_SPEEDY_APM_PCLK 0x20bc +#define CLK_CON_GAT_GOUT_APM_SYSREG_APM_PCLK 0x20c0static const unsigned long apm_clk_regs[]__initconst = {PLL_CON0_MUX_CLKCMU_APM_BUS_USER ,
@@ -445,11 +448,14 @@ static const unsigned long apm_clk_regs[] __initconst = {CLK_CON_DIV_DIV_CLK_APM_I3C ,CLK_CON_GAT_CLKCMU_CMGP_BUS ,CLK_CON_GAT_GATE_CLKCMU_CHUB_BUS , +CLK_CON_GAT_GOUT_APM_APBIF_GPIO_ALIVE_PCLK , +CLK_CON_GAT_GOUT_APM_APBIF_PMU_ALIVE_PCLK ,CLK_CON_GAT_GOUT_APM_APBIF_RTC_PCLK ,CLK_CON_GAT_GOUT_APM_APBIF_TOP_RTC_PCLK ,CLK_CON_GAT_GOUT_APM_I3C_APM_PMIC_I_PCLK ,CLK_CON_GAT_GOUT_APM_I3C_APM_PMIC_I_SCLK ,CLK_CON_GAT_GOUT_APM_SPEEDY_APM_PCLK , + CLK_CON_GAT_GOUT_APM_SYSREG_APM_PCLK, };/* List of parent clocks for Muxes in CMU_APM */
@@ -512,6 +518,14 @@ static const struct samsung_gate_clock apm_gate_clks[] __initconst = { CLK_CON_GAT_GOUT_APM_I3C_APM_PMIC_I_SCLK, 21, 0, 0),GATE (CLK_GOUT_SPEEDY_PCLK ,"gout_speedy_pclk" ,"dout_apm_bus" ,CLK_CON_GAT_GOUT_APM_SPEEDY_APM_PCLK ,21 ,0 ,0 ), +/* TODO: Should be enabled in GPIO driver (or made CLK_IS_CRITICAL) */ +GATE (CLK_GOUT_GPIO_ALIVE_PCLK ,"gout_gpio_alive_pclk" ,"dout_apm_bus" , +CLK_CON_GAT_GOUT_APM_APBIF_GPIO_ALIVE_PCLK ,21 ,CLK_IGNORE_UNUSED , +0 ), +GATE (CLK_GOUT_PMU_ALIVE_PCLK ,"gout_pmu_alive_pclk" ,"dout_apm_bus" , +CLK_CON_GAT_GOUT_APM_APBIF_PMU_ALIVE_PCLK ,21 ,0 ,0 ), +GATE (CLK_GOUT_SYSREG_APM_PCLK ,"gout_sysreg_apm_pclk" ,"dout_apm_bus" , + CLK_CON_GAT_GOUT_APM_SYSREG_APM_PCLK, 21, 0, 0), }; static const struct samsung_cmu_info apm_cmu_info __initconst = {
@@ -541,6 +555,7 @@ static const struct samsung_cmu_info apm_cmu_info __initconst = {#define CLK_CON_GAT_GOUT_CMGP_ADC_PCLK_S0 0x200c#define CLK_CON_GAT_GOUT_CMGP_ADC_PCLK_S1 0x2010#define CLK_CON_GAT_GOUT_CMGP_GPIO_PCLK 0x2018 +#define CLK_CON_GAT_GOUT_CMGP_SYSREG_CMGP_PCLK 0x2040#define CLK_CON_GAT_GOUT_CMGP_USI_CMGP0_IPCLK 0x2044#define CLK_CON_GAT_GOUT_CMGP_USI_CMGP0_PCLK 0x2048#define CLK_CON_GAT_GOUT_CMGP_USI_CMGP1_IPCLK 0x204c
@@ -556,6 +571,7 @@ static const unsigned long cmgp_clk_regs[] __initconst = {CLK_CON_GAT_GOUT_CMGP_ADC_PCLK_S0 ,CLK_CON_GAT_GOUT_CMGP_ADC_PCLK_S1 ,CLK_CON_GAT_GOUT_CMGP_GPIO_PCLK , +CLK_CON_GAT_GOUT_CMGP_SYSREG_CMGP_PCLK ,CLK_CON_GAT_GOUT_CMGP_USI_CMGP0_IPCLK ,CLK_CON_GAT_GOUT_CMGP_USI_CMGP0_PCLK , CLK_CON_GAT_GOUT_CMGP_USI_CMGP1_IPCLK,
@@ -610,6 +626,9 @@ static const struct samsung_gate_clock cmgp_gate_clks[] __initconst = {GATE (CLK_GOUT_CMGP_USI1_PCLK ,"gout_cmgp_usi1_pclk" ,"gout_clkcmu_cmgp_bus" ,CLK_CON_GAT_GOUT_CMGP_USI_CMGP1_PCLK ,21 ,0 ,0 ), +GATE (CLK_GOUT_SYSREG_CMGP_PCLK ,"gout_sysreg_cmgp_pclk" , +"gout_clkcmu_cmgp_bus" , + CLK_CON_GAT_GOUT_CMGP_SYSREG_CMGP_PCLK, 21, 0, 0), }; static const struct samsung_cmu_info cmgp_cmu_info __initconst = {
@@ -910,10 +929,12 @@ CLK_OF_DECLARE(exynos850_cmu_peri, "samsung,exynos850-cmu-peri",#define CLK_CON_DIV_DIV_CLK_CORE_BUSP 0x1800#define CLK_CON_GAT_GOUT_CORE_CCI_550_ACLK 0x2038#define CLK_CON_GAT_GOUT_CORE_GIC_CLK 0x2040 +#define CLK_CON_GAT_GOUT_CORE_GPIO_CORE_PCLK 0x2044#define CLK_CON_GAT_GOUT_CORE_MMC_EMBD_I_ACLK 0x20e8#define CLK_CON_GAT_GOUT_CORE_MMC_EMBD_SDCLKIN 0x20ec#define CLK_CON_GAT_GOUT_CORE_SSS_I_ACLK 0x2128#define CLK_CON_GAT_GOUT_CORE_SSS_I_PCLK 0x212c +#define CLK_CON_GAT_GOUT_CORE_SYSREG_CORE_PCLK 0x2130static const unsigned long core_clk_regs[]__initconst = {PLL_CON0_MUX_CLKCMU_CORE_BUS_USER ,
@@ -924,10 +945,12 @@ static const unsigned long core_clk_regs[] __initconst = {CLK_CON_DIV_DIV_CLK_CORE_BUSP ,CLK_CON_GAT_GOUT_CORE_CCI_550_ACLK ,CLK_CON_GAT_GOUT_CORE_GIC_CLK , +CLK_CON_GAT_GOUT_CORE_GPIO_CORE_PCLK ,CLK_CON_GAT_GOUT_CORE_MMC_EMBD_I_ACLK ,CLK_CON_GAT_GOUT_CORE_MMC_EMBD_SDCLKIN ,CLK_CON_GAT_GOUT_CORE_SSS_I_ACLK ,CLK_CON_GAT_GOUT_CORE_SSS_I_PCLK , + CLK_CON_GAT_GOUT_CORE_SYSREG_CORE_PCLK, };/* List of parent clocks for Muxes in CMU_CORE */
@@ -972,6 +995,12 @@ static const struct samsung_gate_clock core_gate_clks[] __initconst = { CLK_CON_GAT_GOUT_CORE_SSS_I_ACLK, 21, 0, 0),GATE (CLK_GOUT_SSS_PCLK ,"gout_sss_pclk" ,"dout_core_busp" ,CLK_CON_GAT_GOUT_CORE_SSS_I_PCLK ,21 ,0 ,0 ), +/* TODO: Should be enabled in GPIO driver (or made CLK_IS_CRITICAL) */ +GATE (CLK_GOUT_GPIO_CORE_PCLK ,"gout_gpio_core_pclk" ,"dout_core_busp" , +CLK_CON_GAT_GOUT_CORE_GPIO_CORE_PCLK ,21 ,CLK_IGNORE_UNUSED ,0 ), +GATE (CLK_GOUT_SYSREG_CORE_PCLK ,"gout_sysreg_core_pclk" , +"dout_core_busp" , + CLK_CON_GAT_GOUT_CORE_SYSREG_CORE_PCLK, 21, 0, 0), }; static const struct samsung_cmu_info core_cmu_info __initconst = {
Signature · 1 line
2.30.2
Sylwester Nawrocki
AppliedRe: [PATCH v4 2/7] clk: samsung: exynos850: Add missing sysreg clocks
Quoted 10 lines · Sam Protsenko
System Register is used to configure system behavior, like USI protocol, etc. SYSREG clocks should be provided to corresponding syscon nodes, to make it possible to modify SYSREG registers.
While at it, add also missing PMU and GPIO clocks, which looks necessary and might be needed for corresponding Exynos850 features soon.
Reviewed-by Krzysztof Kozlowski<[email protected]>Acked-by Chanwoo Choi<[email protected]>Signed-off-by Sam Protsenko<[email protected]>
Applied, thanks.
Sam Protsenko
maintainerPATCH v4 3/7 dt-bindings: Add vendor prefix for WinLink
In reply to Sam ProtsenkoWinLink Co., Ltd is a hardware design and manufacturing company based in South Korea. Official web-site: [1].
---
Changes in v4:
- (none)
Changes in v3:
- (none)
Changes in v2:
- Added Ack tag by Rob Herring
Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
@@ -1328,6 +1328,8 @@ patternProperties: description: Wiligear, Ltd. "^winbond,.*": description: Winbond Electronics corp. + "^winlink,.*": + description: WinLink Co., Ltd "^winstar,.*": description: Winstar Display Corp. "^wits,.*":
Signature · 1 line
2.30.2
Re: [PATCH v4 3/7] dt-bindings: Add vendor prefix for WinLink
Quoted 7 lines · Sam Protsenko
WinLink Co., Ltd is a hardware design and manufacturing company based in South Korea. Official web-site: [1].
Acked-by Rob Herring <[email protected]>Signed-off-by Sam Protsenko <[email protected]>
Ack goes after your SoB. First you create patch, sign it and then Rob sees it and acks it.
Best regards,
Krzysztof
Sam Protsenko
maintainerRe: [PATCH v4 3/7] dt-bindings: Add vendor prefix for WinLink
Quoted 5 lines · Krzysztof Kozlowski
Quoted 3 lines · Sam Protsenko
WinLink Co., Ltd is a hardware design and manufacturing company based in South Korea. Official web-site: [1].
Quoted 8 lines
Quoted 4 lines
Acked-by Rob Herring <[email protected]>Signed-off-by Sam Protsenko <[email protected]>Ack goes after your SoB. First you create patch, sign it and then Rob sees it and acks it.
Sorry, just mixed that up. It's even documented in [1]. Anyway, I can see that you already fixed that and applied this patch, thanks!
[1] Documentation/process/maintainer-tip.rst
Quoted 3 lines
Best regards,
Krzysztof
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Krzysztof Kozlowski
AppliedRe: (subset) [PATCH v4 3/7] dt-bindings: Add vendor prefix for WinLink
In reply to Sam ProtsenkoQuoted 6 lines · Sam Protsenko
WinLink Co., Ltd is a hardware design and manufacturing company based in South Korea. Official web-site: [1].
Applied, thanks!
[3/7] dt-bindings: Add vendor prefix for WinLink
commit: 2d6a1c7d57723efcb23a345d0ea5a10d76350390
Best regards,
Signature · 1 line
Krzysztof Kozlowski <[email protected]>
Sam Protsenko
maintainerPATCH v4 4/7 dt-bindings: arm: samsung: Document E850-96 board binding
In reply to Sam ProtsenkoAdd binding for the WinLink E850-96 board, which is based on Samsung Exynos850 SoC.
---
Changes in v4:
- (none)
Changes in v3:
- (none)
Changes in v2:
- Moved Exynos850/E850-96 binding before Exynos Auto V9 entry
- Rebased on krzk/linux.git (for-next), to account for Exynos7885 changes
.../devicetree/bindings/arm/samsung/samsung-boards.yaml | 6 ++++++ 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/arm/samsung/samsung-boards.yaml +6 -0
@@ -205,6 +205,12 @@ properties: - samsung,jackpotlte # Samsung Galaxy A8 (2018) - const: samsung,exynos7885 + - description: Exynos850 based boards + items: + - enum: + - winlink,e850-96 # WinLink E850-96 + - const: samsung,exynos850 + - description: Exynos Auto v9 based boards items: - enum:
Signature · 1 line
2.30.2
Krzysztof Kozlowski
AppliedRe: (subset) [PATCH v4 4/7] dt-bindings: arm: samsung: Document E850-96 board binding
Quoted 4 lines · Sam Protsenko
Add binding for the WinLink E850-96 board, which is based on Samsung Exynos850 SoC.
Applied, thanks!
[4/7] dt-bindings: arm: samsung: Document E850-96 board binding
commit: e1ba2f940ba4c4c3b4d0a520301a920591c421f9
Best regards,
Signature · 1 line
Krzysztof Kozlowski <[email protected]>
Sam Protsenko
maintainerPATCH v4 5/7 dt-bindings: pinctrl: samsung: Add pin drive definitions for Exynos850
In reply to Sam ProtsenkoAll Exynos850 GPIO blocks can use EXYNOS5420_PIN_DRV* definitions, except GPIO_HSI block. Add pin drive strength definitions for GPIO_HSI block correspondingly.
---
Changes in v4:
- (none)
Changes in v3:
- (none)
Changes in v2:
- Added Ack tag by Rob Herring
include/dt-bindings/pinctrl/samsung.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-)
include/dt-bindings/pinctrl/samsung.h +12 -1
@@ -36,7 +36,10 @@#define EXYNOS5260_PIN_DRV_LV4 2#define EXYNOS5260_PIN_DRV_LV6 3 -/* Drive strengths for Exynos5410, Exynos542x and Exynos5800 */ +/* +* Drive strengths for Exynos5410, Exynos542x, Exynos5800 and Exynos850 (except +* GPIO_HSI block) +*/ #define EXYNOS5420_PIN_DRV_LV1 0#define EXYNOS5420_PIN_DRV_LV2 1#define EXYNOS5420_PIN_DRV_LV3 2
@@ -56,6 +59,14 @@#define EXYNOS5433_PIN_DRV_SLOW_SR5 0xc#define EXYNOS5433_PIN_DRV_SLOW_SR6 0xf +/* Drive strengths for Exynos850 GPIO_HSI block */ +#define EXYNOS850_HSI_PIN_DRV_LV1 0/* 1x */ +#define EXYNOS850_HSI_PIN_DRV_LV1_5 1/* 1.5x */ +#define EXYNOS850_HSI_PIN_DRV_LV2 2/* 2x */ +#define EXYNOS850_HSI_PIN_DRV_LV2_5 3/* 2.5x */ +#define EXYNOS850_HSI_PIN_DRV_LV3 4/* 3x */ +#define EXYNOS850_HSI_PIN_DRV_LV4 5/* 4x */ +#define EXYNOS_PIN_FUNC_INPUT 0#define EXYNOS_PIN_FUNC_OUTPUT 1#define EXYNOS_PIN_FUNC_2 2
Signature · 1 line
2.30.2
Krzysztof Kozlowski
AppliedRe: (subset) [PATCH v4 5/7] dt-bindings: pinctrl: samsung: Add pin drive definitions for Exynos850
Quoted 5 lines · Sam Protsenko
All Exynos850 GPIO blocks can use EXYNOS5420_PIN_DRV* definitions, except
GPIO_HSIblock. Add pin drive strength definitions forGPIO_HSIblock correspondingly.
Applied, thanks!
[5/7] dt-bindings: pinctrl: samsung: Add pin drive definitions for Exynos850
commit: 51b1a5729469cef57a3c97aa014aa6e1d2b8d864
Best regards,
Signature · 1 line
Krzysztof Kozlowski <[email protected]>
Sam Protsenko
maintainerPATCH v4 6/7 arm64: dts: exynos: Add initial Exynos850 SoC support
In reply to Sam ProtsenkoSamsung Exynos850 is ARMv8-based mobile-oriented SoC. This patch adds initial SoC support. It's not comprehensive yet, some more devices will be added later. Right now only crucial system components and most needed platform devices are defined.
Crucial features (needed to boot Linux up to shell with serial console):
* Octa cores (Cortex-A55), supporting PSCI v1.0
* ARM architected timer (armv8-timer)
* Interrupt controller (GIC-400)
* Pinctrl nodes for GPIO
* Serial node
Basic platform features:
* Clock controller CMUs
* OSCCLK clock
* MCT timer
* ARM PMU (Performance Monitor Unit)
* Chip-id
* RTC
* Reset
* Watchdog timers
* eMMC
* I2C
* HSI2C
* USI
All those features were already enabled and tested on E850-96 board with minimal BusyBox rootfs.
---
Changes in v4:
- Removed fast slew rate nodes from pinctrl dtsi
- Added R-b tag by Chanho Park
- Moved "rtcclk" clock to board dts file
- Specified "rtc_src" clock for rtc node in board dts file
- Specified "rtcclk" clock for cmu_hsi node in board dts file
Changes in v3:
- (none)
Changes in v2:
- Merged spi*_cs_func_pins nodes (Chip Select pin) into spi*_pins nodes
- Removed spi*_cs_pins nodes (GPIO configuration for SPI CS pins)
- Sorted pinctrl_peri "pins" nodes by name
- Removed USI aliases
- Added TODO comment for RTC clock (needs to be implemented in PMIC)
- Sorted cmu nodes by unit address
- Sorted pinctrl nodes by unit address
.../boot/dts/exynos/exynos850-pinctrl.dtsi | 643 +++++++++++++++ arch/arm64/boot/dts/exynos/exynos850.dtsi | 741 ++++++++++++++++++ 2 files changed, 1384 insertions(+) create mode 100644 arch/arm64/boot/dts/exynos/exynos850-pinctrl.dtsi create mode 100644 arch/arm64/boot/dts/exynos/exynos850.dtsi
arch/arm64/boot/dts/exynos/exynos850-pinctrl.dtsi new file +643 -0
@@ -0,0 +1,643 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Samsung's Exynos850 SoC pin-mux and pin-config device tree source + * + * Copyright (C) 2017 Samsung Electronics Co., Ltd. + * Copyright (C) 2021 Linaro Ltd. + * + * Samsung's Exynos850 SoC pin-mux and pin-config options are listed as device + * tree nodes in this file. + */ + +#include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/pinctrl/samsung.h> + +&pinctrl_alive { + gpa0: gpa0 { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&gic>; + interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; + }; + + gpa1: gpa1 { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&gic>; + interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>; + }; + + gpa2: gpa2 { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&gic>; + interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>; + }; + + gpa3: gpa3 { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&gic>; + interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; + }; + + gpa4: gpa4 { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&gic>; + interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>; + }; + + gpq0: gpq0 { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + /* I2C5 (also called CAM_PMIC_I2C in TRM) */ + i2c5_pins: i2c5-pins { + samsung,pins = "gpa3-5", "gpa3-6"; + samsung,pin-function = <EXYNOS_PIN_FUNC_3>; + samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; + samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>; + }; + + /* I2C6 (also called MOTOR_I2C in TRM) */ + i2c6_pins: i2c6-pins { + samsung,pins = "gpa3-7", "gpa4-0"; + samsung,pin-function = <EXYNOS_PIN_FUNC_3>; + samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; + samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>; + }; + + /* USI: UART_DEBUG_0 pins */ + uart0_pins: uart0-pins { + samsung,pins = "gpq0-0", "gpq0-1"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; + }; + + /* USI: UART_DEBUG_1 pins */ + uart1_pins: uart1-pins { + samsung,pins = "gpa3-7", "gpa4-0"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; + }; +}; + +&pinctrl_cmgp { + gpm0: gpm0 { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&gic>; + interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>; + }; + + gpm1: gpm1 { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&gic>; + interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>; + }; + + gpm2: gpm2 { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&gic>; + interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; + }; + + gpm3: gpm3 { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&gic>; + interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>; + }; + + gpm4: gpm4 { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&gic>; + interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>; + }; + + gpm5: gpm5 { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&gic>; + interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>; + }; + + /* USI_CMGP0: HSI2C function */ + hsi2c3_pins: hsi2c3-pins { + samsung,pins = "gpm0-0", "gpm1-0"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; + samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>; + }; + + /* USI_CMGP0: UART function (4 pins, Auto Flow Control) */ + uart1_single_pins: uart1-single-pins { + samsung,pins = "gpm0-0", "gpm1-0", "gpm2-0", "gpm3-0"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; + }; + + /* USI_CMGP0: UART function (2 pins, Non-Auto Flow Control) */ + uart1_dual_pins: uart1-dual-pins { + samsung,pins = "gpm0-0", "gpm1-0"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; + }; + + /* USI_CMGP0: SPI function */ + spi1_pins: spi1-pins { + samsung,pins = "gpm0-0", "gpm1-0", "gpm2-0", "gpm3-0"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; + samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>; + }; + + /* USI_CMGP1: HSI2C function */ + hsi2c4_pins: hsi2c4-pins { + samsung,pins = "gpm4-0", "gpm5-0"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; + samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>; + }; + + /* USI_CMGP1: UART function (4 pins, Auto Flow Control) */ + uart2_single_pins: uart2-single-pins { + samsung,pins = "gpm4-0", "gpm5-0", "gpm6-0", "gpm7-0"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; + }; + + /* USI_CMGP1: UART function (2 pins, Non-Auto Flow Control) */ + uart2_dual_pins: uart2-dual-pins { + samsung,pins = "gpm4-0", "gpm5-0"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; + }; + + /* USI_CMGP1: SPI function */ + spi2_pins: spi2-pins { + samsung,pins = "gpm4-0", "gpm5-0", "gpm6-0", "gpm7-0"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; + samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>; + }; +}; + +&pinctrl_aud { + gpb0: gpb0 { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpb1: gpb1 { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + aud_codec_mclk_pins: aud-codec-mclk-pins { + samsung,pins = "gpb0-0"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>; + }; + + aud_codec_mclk_idle_pins: aud-codec-mclk-idle-pins { + samsung,pins = "gpb0-0"; + samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>; + samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>; + }; + + aud_i2s0_pins: aud-i2s0-pins { + samsung,pins = "gpb0-1", "gpb0-2", "gpb0-3", "gpb0-4"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>; + }; + + aud_i2s0_idle_pins: aud-i2s0-idle-pins { + samsung,pins = "gpb0-1", "gpb0-2", "gpb0-3", "gpb0-4"; + samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>; + samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>; + }; + + aud_i2s1_pins: aud-i2s1-pins { + samsung,pins = "gpb1-0", "gpb1-1", "gpb1-2", "gpb1-3"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>; + }; + + aud_i2s1_idle_pins: aud-i2s1-idle-pins { + samsung,pins = "gpb1-0", "gpb1-1", "gpb1-2", "gpb1-3"; + samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>; + samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>; + }; + + aud_fm_pins: aud-fm-pins { + samsung,pins = "gpb1-4"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>; + }; + + aud_fm_idle_pins: aud-fm-idle-pins { + samsung,pins = "gpb1-4"; + samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>; + samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>; + }; +}; + +&pinctrl_hsi { + gpf2: gpf2 { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + sd2_clk_pins: sd2-clk-pins { + samsung,pins = "gpf2-0"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; + samsung,pin-drv = <EXYNOS850_HSI_PIN_DRV_LV2>; + }; + + sd2_cmd_pins: sd2-cmd-pins { + samsung,pins = "gpf2-1"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; + samsung,pin-drv = <EXYNOS850_HSI_PIN_DRV_LV2>; + }; + + sd2_bus1_pins: sd2-bus1-pins { + samsung,pins = "gpf2-2"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; + samsung,pin-drv = <EXYNOS850_HSI_PIN_DRV_LV2>; + }; + + sd2_bus4_pins: sd2-bus4-pins { + samsung,pins = "gpf2-3", "gpf2-4", "gpf2-5"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; + samsung,pin-drv = <EXYNOS850_HSI_PIN_DRV_LV2>; + }; + + sd2_pdn_pins: sd2-pdn-pins { + samsung,pins = "gpf2-0", "gpf2-1", "gpf2-2", "gpf2-3", + "gpf2-4", "gpf2-5"; + samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>; + samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>; + }; +}; + +&pinctrl_core { + gpf0: gpf0 { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpf1: gpf1 { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + sd0_clk_pins: sd0-clk-pins { + samsung,pins = "gpf0-0"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; + samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>; + }; + + sd0_cmd_pins: sd0-cmd-pins { + samsung,pins = "gpf0-1"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; + samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>; + }; + + sd0_rdqs_pins: sd0-rdqs-pins { + samsung,pins = "gpf0-2"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>; + samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>; + }; + + sd0_nreset_pins: sd0-nreset-pins { + samsung,pins = "gpf0-3"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; + samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>; + }; + + sd0_bus1_pins: sd0-bus1-pins { + samsung,pins = "gpf1-0"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; + samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>; + }; + + sd0_bus4_pins: sd0-bus4-pins { + samsung,pins = "gpf1-1", "gpf1-2", "gpf1-3"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; + samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>; + }; + + sd0_bus8_pins: sd0-bus8-pins { + samsung,pins = "gpf1-4", "gpf1-5", "gpf1-6", "gpf1-7"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; + samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>; + }; +}; + +&pinctrl_peri { + gpc0: gpc0 { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpc1: gpc1 { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpg0: gpg0 { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpg1: gpg1 { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpg2: gpg2 { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpg3: gpg3 { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpp0: gpp0 { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + gpp1: gpp1 { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpp2: gpp2 { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + sensor_mclk0_in_pins: sensor-mclk0-in-pins { + samsung,pins = "gpc0-0"; + samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>; + samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; + samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV3>; + }; + + sensor_mclk0_out_pins: sensor-mclk0-out-pins { + samsung,pins = "gpc0-0"; + samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>; + samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>; + samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV3>; + }; + + sensor_mclk0_fn_pins: sensor-mclk0-fn-pins { + samsung,pins = "gpc0-0"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; + samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV3>; + }; + + sensor_mclk1_in_pins: sensor-mclk1-in-pins { + samsung,pins = "gpc0-1"; + samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>; + samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; + samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV3>; + }; + + sensor_mclk1_out_pins: sensor-mclk1-out-pins { + samsung,pins = "gpc0-1"; + samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>; + samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>; + samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV3>; + }; + + sensor_mclk1_fn_pins: sensor-mclk1-fn-pins { + samsung,pins = "gpc0-1"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; + samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV3>; + }; + + sensor_mclk2_in_pins: sensor-mclk2-in-pins { + samsung,pins = "gpc0-2"; + samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>; + samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; + samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV3>; + }; + + sensor_mclk2_out_pins: sensor-mclk2-out-pins { + samsung,pins = "gpc0-2"; + samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>; + samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>; + samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV3>; + }; + + sensor_mclk2_fn_pins: sensor-mclk2-fn-pins { + samsung,pins = "gpc0-2"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; + samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV3>; + }; + + /* USI: HSI2C0 */ + hsi2c0_pins: hsi2c0-pins { + samsung,pins = "gpc1-0", "gpc1-1"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; + samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>; + }; + + /* USI: HSI2C1 */ + hsi2c1_pins: hsi2c1-pins { + samsung,pins = "gpc1-2", "gpc1-3"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; + samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>; + }; + + /* USI: HSI2C2 */ + hsi2c2_pins: hsi2c2-pins { + samsung,pins = "gpc1-4", "gpc1-5"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; + samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>; + }; + + /* USI: SPI */ + spi0_pins: spi0-pins { + samsung,pins = "gpp2-0", "gpp2-1", "gpp2-2", "gpp2-3"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; + samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>; + }; + + i2c0_pins: i2c0-pins { + samsung,pins = "gpp0-0", "gpp0-1"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; + samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>; + }; + + i2c1_pins: i2c1-pins { + samsung,pins = "gpp0-2", "gpp0-3"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; + samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>; + }; + + i2c2_pins: i2c2-pins { + samsung,pins = "gpp0-4", "gpp0-5"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; + samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>; + }; + + i2c3_pins: i2c3-pins { + samsung,pins = "gpp1-0", "gpp1-1"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; + samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>; + }; + + i2c4_pins: i2c4-pins { + samsung,pins = "gpp1-2", "gpp1-3"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; + samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>; + }; + + xclkout_pins: xclkout-pins { + samsung,pins = "gpq0-2"; + samsung,pin-function = <EXYNOS_PIN_FUNC_2>; + samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; + }; +};
arch/arm64/boot/dts/exynos/exynos850.dtsi new file +741 -0
741 lines not on this page · raw message
Signature · 1 line
2.30.2
Sam Protsenko
maintainerPATCH v4 7/7 arm64: dts: exynos: Add initial E850-96 board support
In reply to Sam ProtsenkoE850-96 is a 96boards development board manufactured by WinLink. It incorporates Samsung Exynos850 SoC, and is compatible with 96boards mezzanine boards [1], as it follows 96boards standards.
This patch adds minimal support for E850-96 board. Next features are enabled in board dts file and verified with minimal BusyBox rootfs:
* User buttons
* LEDs
* Serial console
* Watchdog timers
* RTC
* eMMC
[1] https://www.96boards.org/products/mezzanine/
---
Changes in v4:
- Moved "rtcclk" clock to board dts file
- Specified "rtc_src" clock for rtc node in board dts file
- Specified "rtcclk" clock for cmu_hsi node in board dts file
- Improved comment for RAM memory node
Changes in v3:
- Ordered the pinctrl_alive phandle alphabetically (forgot to do so in
v2)
Changes in v2:
- Removed board_id and board_rev properties
- Removed BOARD_ID and BOARD_REV constants
- Put dtb in alphabetical order in Makefile
- Added "color" and "function" properties to LED nodes
- Sorted all phandle overrides by phandle name
- Removed 'broken-cd' property in eMMC node
- Added memory node
arch/arm64/boot/dts/exynos/Makefile | 1 + .../boot/dts/exynos/exynos850-e850-96.dts | 195 ++++++++++++++++++ 2 files changed, 196 insertions(+) create mode 100644 arch/arm64/boot/dts/exynos/exynos850-e850-96.dts
arch/arm64/boot/dts/exynos/Makefile +1 -0
@@ -3,4 +3,5 @@ dtb-$(CONFIG_ARCH_EXYNOS) += \ exynos5433-tm2.dtb \ exynos5433-tm2e.dtb \ exynos7-espresso.dtb \ + exynos850-e850-96.dtb \ exynosautov9-sadk.dtb
arch/arm64/boot/dts/exynos/exynos850-e850-96.dts new file +195 -0
195 lines not on this page · raw message
Signature · 1 line
2.30.2