On 07/11/2022 13:38, Sinthu Raja wrote: > From: Sinthu Raja <sinthu.raja@xxxxxx> > > The SK architecture comprises of baseboard and a SOM board. The > AM68 Starter Kit's baseboard contains most of the actual connectors, > power supply etc. The System on Module (SoM) is plugged on to the base > board. Therefore, add support for peripherals brought out in the base > board. > > Schematics: https://www.ti.com/lit/zip/SPRR463 > > Signed-off-by: Sinthu Raja <sinthu.raja@xxxxxx> > --- > > Changes in V2: > *Addressed the review comments: > - Updated the commit description. > - Updated the regulator nodes: fixedregulator to "regulator-" > - Updated the commit $subject to align with rest of the commits. > - Dropped the blank lines > - Changed the node names that are added with underscore("_") with "-" > > V1: https://lore.kernel.org/linux-arm-kernel/20221018123849.23695-3-sinthu.raja@xxxxxx/ > > arch/arm64/boot/dts/ti/Makefile | 2 + > .../boot/dts/ti/k3-am68-sk-base-board.dts | 447 ++++++++++++++++++ > 2 files changed, 449 insertions(+) > create mode 100644 arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts > > diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile > index 4555a5be2257..eeeebda30e3d 100644 > --- a/arch/arm64/boot/dts/ti/Makefile > +++ b/arch/arm64/boot/dts/ti/Makefile > @@ -12,6 +12,8 @@ dtb-$(CONFIG_ARCH_K3) += k3-am6528-iot2050-basic-pg2.dtb > dtb-$(CONFIG_ARCH_K3) += k3-am6548-iot2050-advanced.dtb > dtb-$(CONFIG_ARCH_K3) += k3-am6548-iot2050-advanced-pg2.dtb > > +dtb-$(CONFIG_ARCH_K3) += k3-am68-sk-base-board.dtb > + > dtb-$(CONFIG_ARCH_K3) += k3-j721e-common-proc-board.dtb > dtb-$(CONFIG_ARCH_K3) += k3-j721e-sk.dtb > > diff --git a/arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts b/arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts > new file mode 100644 > index 000000000000..ad727495e99b > --- /dev/null > +++ b/arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts > @@ -0,0 +1,447 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/ > + * > + * Base Board: https://www.ti.com/lit/zip/SPRR463 > + */ > + > +/dts-v1/; > + > +#include "k3-am68-sk-som.dtsi" > +#include <dt-bindings/net/ti-dp83867.h> > +#include <dt-bindings/phy/phy-cadence.h> > +#include <dt-bindings/phy/phy.h> > +#include <dt-bindings/mux/ti-serdes.h> > + > +/ { > + compatible = "ti,am68-sk", "ti,j721s2"; > + model = "Texas Instruments AM68 SK"; > + > + chosen { > + stdout-path = "serial2:115200n8"; > + }; > + > + aliases { > + serial2 = &main_uart8; > + mmc1 = &main_sdhci1; > + can0 = &mcu_mcan0; > + can1 = &mcu_mcan1; > + can2 = &main_mcan6; > + can3 = &main_mcan7; > + }; > + > + vusb_main: regulator-vusb-main5v0 { > + /* USB MAIN INPUT 5V DC */ > + compatible = "regulator-fixed"; > + regulator-name = "vusb-main5v0"; > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + regulator-always-on; > + regulator-boot-on; > + }; > + > + vsys_3v3: regulator-vsys3v3 { > + /* Output of LM5141 */ > + compatible = "regulator-fixed"; > + regulator-name = "vsys_3v3"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + vin-supply = <&vusb_main>; > + regulator-always-on; > + regulator-boot-on; > + }; > + > + vdd_mmc1: regulator-sd { > + /* Output of TPS22918 */ > + compatible = "regulator-fixed"; > + regulator-name = "vdd_mmc1"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-boot-on; > + enable-active-high; > + vin-supply = <&vsys_3v3>; > + gpio = <&exp1 10 GPIO_ACTIVE_HIGH>; > + }; > + > + vdd_sd_dv: gpio-regulator-tlv71033 { regulator-tlv... not gpio-regulator. Node names should be generic. https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation > + /* Output of TLV71033 */ > + compatible = "regulator-gpio"; > + regulator-name = "tlv71033"; > + pinctrl-names = "default"; > + pinctrl-0 = <&vdd_sd_dv_pins_default>; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <3300000>; > + regulator-boot-on; > + vin-supply = <&vsys_3v3>; > + gpios = <&main_gpio0 49 GPIO_ACTIVE_HIGH>; > + states = <1800000 0x0>, > + <3300000 0x1>; > + }; > + Best regards, Krzysztof