From ee279c7c6e1ddaaeb6cb64eda4613400acbaa73e Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 23 Jun 2021 11:08:12 +0900 Subject: [PATCH] ODROID-G12: Add to dtbo for otg. Change-Id: I6aae8f62570f7aebdc5a53094c14abf52022eac0 --- MAINTAINERS | 5 +++ .../dts/amlogic/overlays/odroidc4/Makefile | 2 +- .../overlays/odroidc4/otg_host_mode.dts | 33 +++++++++++++++++++ .../dts/amlogic/overlays/odroidn2/Makefile | 3 +- .../overlays/odroidn2/otg_host_mode.dts | 33 +++++++++++++++++++ 5 files changed, 74 insertions(+), 2 deletions(-) create mode 100644 arch/arm64/boot/dts/amlogic/overlays/odroidc4/otg_host_mode.dts create mode 100644 arch/arm64/boot/dts/amlogic/overlays/odroidn2/otg_host_mode.dts diff --git a/MAINTAINERS b/MAINTAINERS index 6270a2a70fb3..19e122a52f4f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -15246,3 +15246,8 @@ F: include/linux/amlogic/media/video_sink/v4lvideo_ext.h AMLOGIC POWER DOMAIN DRIVER M: Zhiqiang Liang F: drivers/amlogic/power/power_domain.c + +HARDKERNEL USB OTG OVERLAY +M: Chris KIM +F: arch/arm64/boot/dts/amlogic/overlays/odroidc4/otg_host_mode.dts +F: arch/arm64/boot/dts/amlogic/overlays/odroidn2/otg_host_mode.dts diff --git a/arch/arm64/boot/dts/amlogic/overlays/odroidc4/Makefile b/arch/arm64/boot/dts/amlogic/overlays/odroidc4/Makefile index 0097731679aa..a01aac8d932b 100644 --- a/arch/arm64/boot/dts/amlogic/overlays/odroidc4/Makefile +++ b/arch/arm64/boot/dts/amlogic/overlays/odroidc4/Makefile @@ -24,7 +24,7 @@ dtbo-$(CONFIG_ARCH_MESON64_ODROIDC4) += spi0.dtbo \ gpio_shortcut.dtbo \ esp8089.dtbo \ fanspeed-full.dtbo \ - pwm_ef.dtbo + otg_host_mode.dtbo targets += $(dtbo-y) always := $(dtbo-y) diff --git a/arch/arm64/boot/dts/amlogic/overlays/odroidc4/otg_host_mode.dts b/arch/arm64/boot/dts/amlogic/overlays/odroidc4/otg_host_mode.dts new file mode 100644 index 000000000000..b1579f3efbf5 --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/overlays/odroidc4/otg_host_mode.dts @@ -0,0 +1,33 @@ +/* + * arch/arm64/boot/dts/amlogic/overlays/odroidc4/otg_host_mode.dts + * + * Copyright (C) 2017 Amlogic, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + */ + +/dts-v1/; +/plugin/; + +/{ + fragment@0 { + target = <&usb3_phy_v2>; + + __overlay__ { + status = "okay"; + portnum = <1>; + otg = <0>; + gpio-vbus-power = ""; + gpios = <>; + }; + }; +}; diff --git a/arch/arm64/boot/dts/amlogic/overlays/odroidn2/Makefile b/arch/arm64/boot/dts/amlogic/overlays/odroidn2/Makefile index d4bc4caf9cd0..80691d4bdfab 100644 --- a/arch/arm64/boot/dts/amlogic/overlays/odroidn2/Makefile +++ b/arch/arm64/boot/dts/amlogic/overlays/odroidn2/Makefile @@ -23,7 +23,8 @@ dtbo-$(CONFIG_ARCH_MESON64_ODROIDN2) += spi0.dtbo \ gpio_spdif.dtbo \ sdio.dtbo \ gpio_shortcut.dtbo \ - codec_mm_cma.dtbo + codec_mm_cma.dtbo \ + otg_host_mode.dtbo targets += $(dtbo-y) always := $(dtbo-y) diff --git a/arch/arm64/boot/dts/amlogic/overlays/odroidn2/otg_host_mode.dts b/arch/arm64/boot/dts/amlogic/overlays/odroidn2/otg_host_mode.dts new file mode 100644 index 000000000000..53df5fa2185f --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/overlays/odroidn2/otg_host_mode.dts @@ -0,0 +1,33 @@ +/* + * arch/arm64/boot/dts/amlogic/overlays/odroidn2/otg_host_mode.dts + * + * Copyright (C) 2017 Amlogic, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + */ + +/dts-v1/; +/plugin/; + +/{ + fragment@0 { + target = <&usb3_phy_v2>; + + __overlay__ { + status = "okay"; + portnum = <1>; + otg = <0>; + gpio-vbus-power = ""; + gpios = <>; + }; + }; +};